Periodic locking IO is causing server to stop responding

2021-03-29 Thread Ian Coetzee
Hi All, We have run into a slight mishap here on one of our servers, which I am hoping you could help narrow down to a cause. One of our servers locks up every so often, seemingly because of a disk IO lockup. Symptoms include high load average (106) stemming from the processor waiting around

[PATCH v3 02/27] perf jevents: Support unit value "cpu_core" and "cpu_atom"

2021-03-29 Thread Jin Yao
For some Intel platforms, such as Alderlake, which is a hybrid platform and it consists of atom cpu and core cpu. Each cpu has dedicated event list. Part of events are available on core cpu, part of events are available on atom cpu. The kernel exports new cpu pmus: cpu_core and cpu_atom. The event

[PATCH v3 03/27] perf pmu: Simplify arguments of __perf_pmu__new_alias

2021-03-29 Thread Jin Yao
Simplify the arguments of __perf_pmu__new_alias() by passing the whole 'struct pme_event' pointer. Signed-off-by: Jin Yao --- v3: - No change. tools/perf/util/pmu.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/tools/perf/util/pmu.c

[PATCH v3 01/27] tools headers uapi: Update tools's copy of linux/perf_event.h

2021-03-29 Thread Jin Yao
To get the changes in: Liang Kan's patch ("perf: Introduce PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU") Kan's patch is in review at the moment, but the following perf tool patches need this interface for hybrid support. This patch can be removed after Kan's patch is upstreamed. Signed-of

[PATCH v3 00/27] perf tool: AlderLake hybrid support series 1

2021-03-29 Thread Jin Yao
AlderLake uses a hybrid architecture utilizing Golden Cove cores (core cpu) and Gracemont cores (atom cpu). Each cpu has dedicated event list. Some events are available on core cpu, some events are available on atom cpu and some events can be available on both. Kernel exports new pmus "cpu_core" a

[PATCH v3 04/27] perf pmu: Save pmu name

2021-03-29 Thread Jin Yao
On hybrid platform, one event is available on one pmu (such as, available on cpu_core or on cpu_atom). This patch saves the pmu name to the pmu field of struct perf_pmu_alias. Then next we can know the pmu which the event can be enabled on. Signed-off-by: Jin Yao --- v3: - Change pmu to pmu_nam

[PATCH v3 05/27] perf pmu: Save detected hybrid pmus to a global pmu list

2021-03-29 Thread Jin Yao
We identify the cpu_core pmu and cpu_atom pmu by explicitly checking following files: For cpu_core, checks: "/sys/bus/event_source/devices/cpu_core/cpus" For cpu_atom, checks: "/sys/bus/event_source/devices/cpu_atom/cpus" If the 'cpus' file exists, the pmu exists. But in order not to hardcode t

[PATCH v3 06/27] perf pmu: Add hybrid helper functions

2021-03-29 Thread Jin Yao
The functions perf_pmu__is_hybrid and perf_pmu__find_hybrid_pmu can be used to identify the hybrid platform and return the found hybrid cpu pmu. All the detected hybrid pmus have been saved in 'perf_pmu__hybrid_pmus' list. So we just need to search this list. perf_pmu__hybrid_type_to_pmu converts

[PATCH v3 09/27] perf parse-events: Create two hybrid cache events

2021-03-29 Thread Jin Yao
For cache events, they have pre-defined configs. The kernel needs to know where the cache event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HW_CACHE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HW_CACHE_PMU'. The new attr.

[PATCH v3 08/27] perf parse-events: Create two hybrid hardware events

2021-03-29 Thread Jin Yao
For hardware events, they have pre-defined configs. The kernel needs to know where the event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HARDWARE_PMU'. The new attr.conf

[PATCH v3 07/27] perf stat: Uniquify hybrid event name

2021-03-29 Thread Jin Yao
It would be useful to tell user the pmu which the event belongs to. perf-stat has supported '--no-merge' option and it can print the pmu name after the event name, such as: "cycles [cpu_core]" Now this option is enabled by default for hybrid platform but change the format to: "cpu_core/cycles/"

[PATCH v3 11/27] perf pmu: Support 'cycles' and 'branches' inside hybrid PMU

2021-03-29 Thread Jin Yao
On hybrid platform, user may want to enable the hardware event only on one PMU. So following syntax is supported: cpu_core// cpu_atom// # perf stat -e cpu_core/cpu-cycles/ -a -- sleep 1 Performance counter stats for 'system wide': 6,049,336 cpu_core/cpu-cycles/ 1.

[PATCH v3 12/27] perf parse-events: Support no alias assigned event inside hybrid PMU

2021-03-29 Thread Jin Yao
On hybrid platform, similar to hardware event, user may want to enable other events only on one PMU. So following syntax should be supported: cpu_core// cpu_atom// But the syntax doesn't work for some events, such as cache event. Before: # perf stat -e cpu_core/LLC-loads/ -a -- sleep 1 even

[PATCH v3 10/27] perf parse-events: Create two hybrid raw events

2021-03-29 Thread Jin Yao
On hybrid platform, same raw event is possible to be available on both cpu_core pmu and cpu_atom pmu. So it's supported to create two raw events for one event encoding. # ./perf stat -e r3c -a -vv -- sleep 1 Control descriptor is not initialized --

[PATCH v3 13/27] perf record: Create two hybrid 'cycles' events by default

2021-03-29 Thread Jin Yao
When evlist is empty, for example no '-e' specified in perf record, one default 'cycles' event is added to evlist. While on hybrid platform, it needs to create two default 'cycles' events. One is for cpu_core, the other is for cpu_atom. This patch actually calls evsel__new_cycles() two times to c

[PATCH v3 15/27] perf stat: Filter out unmatched aggregation for hybrid event

2021-03-29 Thread Jin Yao
perf-stat has supported some aggregation modes, such as --per-core, --per-socket and etc. While for hybrid event, it may only available on part of cpus. So for --per-core, we need to filter out the unavailable cores, for --per-socket, filter out the unavailable sockets, and so on. Before: # per

[PATCH v3 17/27] perf script: Support PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU

2021-03-29 Thread Jin Yao
For a hybrid system, the perf subsystem doesn't know which PMU the events belong to. So the PMU aware version PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU are introduced. Now define the new output[] entries for these two types. Signed-off-by: Jin Yao --- v3: - No change. tools/perf/built

[PATCH v3 14/27] perf stat: Add default hybrid events

2021-03-29 Thread Jin Yao
Previously if '-e' is not specified in perf stat, some software events and hardware events are added to evlist by default. Before: # ./perf stat -a -- sleep 1 Performance counter stats for 'system wide': 24,044.40 msec cpu-clock # 23.946 CPUs utilized

[PATCH v3 16/27] perf stat: Warn group events from different hybrid PMU

2021-03-29 Thread Jin Yao
If a group has events which are from different hybrid PMUs, shows a warning: "WARNING: events in group from different hybrid PMUs!" This is to remind the user not to put the core event and atom event into one group. Next, just disable grouping. # perf stat -e "{cpu_core/cycles/,cpu_atom/cycle

[PATCH v3 26/27] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid

2021-03-29 Thread Jin Yao
Currently we don't support shadow stat for hybrid. root@ssp-pwrt-002:~# ./perf stat -e cycles,instructions -a -- sleep 1 Performance counter stats for 'system wide': 12,883,109,591 cpu_core/cycles/ 6,405,163,221 cpu_atom/cycles/ 555,553,778 cpu_core/inst

[PATCH v3 21/27] perf tests: Skip 'Setup struct perf_event_attr' test for hybrid

2021-03-29 Thread Jin Yao
For hybrid, kernel introduces new perf type PERF_TYPE_HARDWARE_PMU (6) and it's assigned to hybrid hardware events. # ./perf test 17 -vvv ... compare matching [event:base-stat] to [event-6-17179869184-4] [cpu] * 0 [flags] 0|8 8 [type] 0 6 ->FAI

[PATCH v3 20/27] perf tests: Add hybrid cases for 'Roundtrip evsel->name' test

2021-03-29 Thread Jin Yao
Since for one hw event, two hybrid events are created. For example, evsel->idx evsel__name(evsel) 0 cycles 1 cycles 2 instructions 3 instructions ... So for comparing the evsel name on hybrid, the evsel->idx needs to be divided by 2.

[PATCH v3 27/27] perf Documentation: Document intel-hybrid support

2021-03-29 Thread Jin Yao
Add some words and examples to help understanding of Intel hybrid perf support. Signed-off-by: Jin Yao --- v3: - No functional change. tools/perf/Documentation/intel-hybrid.txt | 228 ++ tools/perf/Documentation/perf-record.txt | 1 + tools/perf/Documentation/perf-stat.t

[PATCH v3 23/27] perf tests: Support 'Parse and process metrics' test for hybrid

2021-03-29 Thread Jin Yao
Some events are not supported. Only pick up some cases for hybrid. # ./perf test 67 67: Parse and process metrics : Ok Signed-off-by: Jin Yao --- v3: - No functional change. tools/perf/tests/parse-metric.c | 10 -- 1 file changed, 8 insertions

[PATCH v3 22/27] perf tests: Support 'Track with sched_switch' test for hybrid

2021-03-29 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the number of events in evlist is not expected in next test steps. Now we just use one event "cpu_core/cycles:u/" for hybrid. # ./perf test 35 35: Track with sched_switch : Ok Signed-o

[PATCH v3 25/27] perf tests: Support 'Convert perf time to TSC' test for hybrid

2021-03-29 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the second evsel in evlist also needs initialization. With this patch, # ./perf test 71 71: Convert perf time to TSC: Ok Signed-off-by: Jin Yao --- v3: - No functional change. too

[PATCH v3 19/27] perf tests: Add hybrid cases for 'Parse event definition strings' test

2021-03-29 Thread Jin Yao
Add basic hybrid test cases for 'Parse event definition strings' test. # ./perf test 6 6: Parse event definition strings : Ok Signed-off-by: Jin Yao --- v3: - Use PERF_TYPE_RAW for cpu_core/cycles/ tools/perf/tests/parse-events.c | 170 +++

[PATCH v3 24/27] perf tests: Support 'Session topology' test for hybrid

2021-03-29 Thread Jin Yao
Force to create one event "cpu_core/cycles/" by default, otherwise in evlist__valid_sample_type, the checking of 'if (evlist->core.nr_entries == 1)' would be failed. # ./perf test 41 41: Session topology: Ok Signed-off-by: Jin Yao --- v3: - No

[PATCH v3 18/27] perf record: Uniquify hybrid event name

2021-03-29 Thread Jin Yao
For perf-record, it would be useful to tell user the pmu which the event belongs to. For example, # perf record -a -- sleep 1 # perf report # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 106 of event '

Re: [PATCH 3/3] iio: adc: ad7923: register device with devm_iio_device_register

2021-03-29 Thread Lars-Peter Clausen
On 3/28/21 11:46 PM, Lucas Stankus wrote: Registers the device using the devm variant. This is the final step of converting the ad7923 to only use devm routines, meaning that the ad7923_remove() function is no longer needed to release resources on device detach. Signed-off-by: Lucas Stankus H

[PATCH] powerpc/8xx: Load modules closer to kernel text

2021-03-29 Thread Christophe Leroy
On the 8xx, TASK_SIZE is 0x8000. The space between TASK_SIZE and PAGE_OFFSET is not used. Use it to load modules in order to minimise the distance between kernel text and modules and avoid trampolines in modules to access kernel functions or other module functions. Define a 16Mbytes area for

Re: [PATCH 16/17] auxdisplay: ht16k33: Add support for segment displays

2021-03-29 Thread Robin van der Gracht
Hello Geert, On 2021-03-22 15:48, Geert Uytterhoeven wrote: The Holtek HT16K33 LED controller is not only used for driving dot-matrix displays, but also for driving segment displays. Add support for 4-digit 7-segment and quad 14-segment alphanumeric displays, like the Adafruit 7-segment and 14-

Re: [PATCH v2 05/20] drm/dp: Add backpointer to drm_device in drm_dp_aux

2021-03-29 Thread Thierry Reding
On Fri, Mar 26, 2021 at 04:37:52PM -0400, Lyude Paul wrote: > This is something that we've wanted for a while now: the ability to > actually look up the respective drm_device for a given drm_dp_aux struct. > This will also allow us to transition over to using the drm_dbg_*() helpers > for debug mes

[PATCH] perf vendor events: Add missing model numbers

2021-03-29 Thread Jin Yao
Kernel has supported COMETLAKE/COMETLAKE_L to use the SKYLAKE events and supported TIGERLAKE_L/TIGERLAKE/ROCKETLAKE to use the ICELAKE events. But pmu-events mapfile.csv is missing these model numbers. Now add the missing model numbers to mapfile.csv. Signed-off-by: Jin Yao --- tools/perf/pmu-e

Re: [PATCH] spi: dt-bindings: nvidia,tegra210-quad: Use documented compatible "jedec,spi-nor" in example

2021-03-29 Thread Thierry Reding
On Sat, Mar 27, 2021 at 03:33:57PM -0500, Rob Herring wrote: > The 'spi-nor' compatible used in the example is not documented. Use the > documented 'jedec,spi-nor' compatible instead. > > Cc: Mark Brown > Cc: Thierry Reding > Cc: Jonathan Hunter > Cc: linux-...@vger.kernel.org > Cc: linux-te...

Re: [PATCH][next] mlxsw: spectrum_router: remove redundant initialization of variable force

2021-03-29 Thread Ido Schimmel
On Sat, Mar 27, 2021 at 10:33:34PM +, Colin King wrote: > From: Colin Ian King > > The variable force is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused

Re: [PATCH 12/17] ASoC: tegra: tegra20_das: clarify expression

2021-03-29 Thread Thierry Reding
On Fri, Mar 26, 2021 at 04:59:22PM -0500, Pierre-Louis Bossart wrote: > cppcheck warning: > > sound/soc/tegra/tegra20_das.c:64:60: style: Boolean result is used in > bitwise operation. Clarify expression with > parentheses. [clarifyCondition] > reg = otherdap << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_

Re: [PATCH 13/17] ASoC: tegra: tegra20_das: align function prototypes

2021-03-29 Thread Thierry Reding
On Fri, Mar 26, 2021 at 04:59:23PM -0500, Pierre-Louis Bossart wrote: > cppcheck warnings: > > sound/soc/tegra/tegra20_das.c:35:40: style:inconclusive: Function > 'tegra20_das_connect_dap_to_dac' argument 1 names different: > declaration 'dap_id' definition 'dap'. [funcArgNamesDifferent] > > int

Re: [PATCH 16/17] auxdisplay: ht16k33: Add support for segment displays

2021-03-29 Thread Geert Uytterhoeven
Hoi Robin, On Mon, Mar 29, 2021 at 9:09 AM Robin van der Gracht wrote: > On 2021-03-22 15:48, Geert Uytterhoeven wrote: > > The Holtek HT16K33 LED controller is not only used for driving > > dot-matrix displays, but also for driving segment displays. > > > > Add support for 4-digit 7-segment and

[PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303

2021-03-29 Thread Qing Zhang
When using the Loongson-3A4000 machine for serial port debugging, there is no /dev/ttyUSB* output, which makes the serial port unavailable, For convenience, we open this configuration. zhangqing@loongson-pc:~$ cat /sys/firmware/lefi/boardinfo Board Info Manufacturer: THTF Board Name

[PATCH] locking/mutex: initialize osq lock in __MUTEX_INITIALIZER()

2021-03-29 Thread Nikitas Angelinas
Since __MUTEX_INITIALIZER() is used on memory that is initialized to 0 anyway this change should not have an effect, but it seems better to initialize osq explicitly for completeness, as done in other macros and functions that initialize mutex and rwsem. Signed-off-by: Nikitas Angelinas --- incl

Re: [PATCH 0/3] iio: adc: ad7923: convert driver resources routines to device-managed counterparts

2021-03-29 Thread Alexandru Ardelean
On Mon, Mar 29, 2021 at 12:48 AM Lucas Stankus wrote: > > Following the initiative proposed by Alexandru, this patch series aims > to convert the ad7923 to use only device-managed routines. > This idea is becoming popular it seems :) Thanks to Lars for pointing out that spi_set_drvdata() omissio

Re: drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c:2267:16: warning: taking address of packed member 'hw_tx_obj' of class or structure 'mcp251xfd_tx_obj_load_buf::(anonymous)' may result in an unalign

2021-03-29 Thread Marc Kleine-Budde
On 27.03.2021 18:16:14, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e > commit: eb79a267c9b3e608e7762a1b221428f37ace3aa3 can: mcp251xfd: rename all > remaining occurrence to mcp251x

Re: [kbuild-all] Re: include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(st

2021-03-29 Thread Marc Kleine-Budde
On 23.03.2021 15:00:55, Rasmus Villemoes wrote: [...] > So let us guess that it's the ABI choice -mabi=apcs-gnu > > $ arm-linux-gnueabihf-gcc -O2 -msoft-float -mabi=apcs-gnu -Q > --help=target | grep struct > -mstructure-size-boundary=32 > > Bingo. (-msoft-float is also included jus

[PATCH v3 2/4] dt-bindings: usb: mtk-xhci: remove redefinitions of usb3-lpm-capable

2021-03-29 Thread Chunfeng Yun
The property usb3-lpm-capable is defined in usb-xhci.yaml which is already referenced in this file, so no need 'description' and 'type' anymore. Signed-off-by: Chunfeng Yun --- v3: new patch --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 +--- 1 file changed, 1 insertion(+)

[PATCH v3 1/4] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-29 Thread Chunfeng Yun
Add support common property usb2-lpm-disable Signed-off-by: Chunfeng Yun --- v3: remove redefinition of type and description suggested by Rob v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/device

[PATCH v3 4/4] usb: xhci-mtk: support quirk to disable usb2 lpm

2021-03-29 Thread Chunfeng Yun
The xHCI driver support usb2 HW LPM by default, here add support XHCI_HW_LPM_DISABLE quirk, then we can disable usb2 lpm when need it. Signed-off-by: Chunfeng Yun --- v2~3: no changes --- drivers/usb/host/xhci-mtk.c | 3 +++ drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 4 insertions(+) di

[PATCH v3 3/4] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-03-29 Thread Chunfeng Yun
The MediaTek 0.96 xHCI controller on some platforms does not support bulk stream even HCCPARAMS says supporting, due to MaxPSASize is set a default value 1 by mistake, here use XHCI_BROKEN_STREAMS quirk to fix it. Fixes: 94a631d91ad3 ("usb: xhci-mtk: check hcc_params after adding primary hcd") Sig

Re: [PATCH] xen/pciback: Fix incorrect type warnings

2021-03-29 Thread Juergen Gross
On 26.03.21 19:14, Muhammad Usama Anjum wrote: Correct enum pci_channel_io_normal should be used instead of putting integer value 1. Fix following smatch warnings: drivers/xen/xen-pciback/pci_stub.c:805:40: warning: incorrect type in argument 2 (different base types) drivers/xen/xen-pciback/pci

Re: [PATCH] move_mount: allow to add a mount into an existing group

2021-03-29 Thread Pavel Tikhomirov
On 3/29/21 12:47 AM, Andrei Vagin wrote: On Thu, Mar 25, 2021 at 03:14:44PM +0300, Pavel Tikhomirov wrote: Previously a sharing group (shared and master ids pair) can be only inherited when mount is created via bindmount. This patch adds an ability to add an existing private mount into an exi

Re: linux-next: build failure after merge of the staging tree

2021-03-29 Thread Alexandru Ardelean
On Mon, 29 Mar 2021 at 09:15, Greg KH wrote: > > On Mon, Mar 29, 2021 at 04:55:25PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the staging tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/iio/adc/ti-ads131e08.c: In function 'ads131e08

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-29 Thread Peter Zijlstra
On Sun, Mar 28, 2021 at 01:53:15AM +0100, Thomas Gleixner wrote: > Though the little devil in my head tells me, that making AMX support > depend on the CPUID faulting capability might be not the worst thing. > > Then we actually enforce CPUID faulting (finally) on CPUs which support > it, which wo

[PATCH 1/2] dt-bindings: usb: dwc3-imx8mp: Use the correct name for child node "snps,dwc3"

2021-03-29 Thread Zhen Lei
File snps,dwc3.yaml describes the schema of Synopsys DesignWare USB3 Controller, it directly or indirectly contains "$ref: usb.yaml". So the node name of "snps,dwc3" must start with "usb". Otherwise, the following warning will be displayed: Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.exa

[PATCH 0/2] dt-bindings: usb: dwc3-imx8mp: Use the correct name for child node "snps,dwc3"

2021-03-29 Thread Zhen Lei
File snps,dwc3.yaml describes the schema of Synopsys DesignWare USB3 Controller, it directly or indirectly contains "$ref: usb.yaml". So the node name of "snps,dwc3" must start with "usb". Otherwise, the following warning will be displayed: Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.exa

[PATCH 2/2] arm64: dts: imx8mp: Use the correct name for child node "snps,dwc3"

2021-03-29 Thread Zhen Lei
After the node name of "snps,dwc3" has been corrected to start with "usb" in fsl,imx8mp-dwc3.yaml. Its name in dts should be modified accordingly. Signed-off-by: Zhen Lei --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ar

Re: [PATCH 16/17] auxdisplay: ht16k33: Add support for segment displays

2021-03-29 Thread Robin van der Gracht
On 2021-03-29 09:15, Geert Uytterhoeven wrote: Hoi Robin, On Mon, Mar 29, 2021 at 9:09 AM Robin van der Gracht wrote: On 2021-03-22 15:48, Geert Uytterhoeven wrote: > The Holtek HT16K33 LED controller is not only used for driving > dot-matrix displays, but also for driving segment displays. >

[PATCH v5 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized for the touchscreen use case. By implementing it as an IIO ADC device, we can make use of resistive-adc-touch and iio-hwmon drivers. Polled readings are currently not implemented to keep this patch small, so iio-hwmon will

[PATCH v5 0/3] mainline ti tsc2046 adc driver

2021-03-29 Thread Oleksij Rempel
changes v5: - remove type for the settling-time-us property changes v4: - spell fixes - add more comments - make code more readable - move scan_buf to the priv - use FIELD_GET to extract ADC data - make some multi line code as one line - do not use atomic API for trig_more_count - fix build warnin

[PATCH v5 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel Reviewed-by: Rob Herring --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/device

[PATCH v5 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties

2021-03-29 Thread Oleksij Rempel
Settling time and over sampling is a typical challenge for different IIO ADC devices. So, introduce channel specific settling-time-us and oversampling-ratio properties to cover this use case. Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 1 fil

Re: [PATCH 03/17] ASoC: atmel: atmel-i2s: remove useless initialization

2021-03-29 Thread Codrin.Ciubotariu
On 26.03.2021 23:59, Pierre-Louis Bossart wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Cppcheck complains: > > sound/soc/atmel/atmel-i2s.c:628:6: style: Redundant initialization for 'err'. > The initialized value is overwritten before

linux-next: manual merge of the rust tree with the kbuild tree

2021-03-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rust tree got a conflict in: Makefile between commit: b0600f0d9b54 ("kbuild: check the minimum assembler version in Kconfig") from the kbuild tree and commit: 98898dfbdf72 ("Rust support") from the rust tree. I fixed it up (see below) and can ca

[syzbot] WARNING: suspicious RCU usage in io_sq_thread

2021-03-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:81b1d39f Merge tag '5.12-rc4-smb3' of git://git.samba.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=156f3d9ed0 kernel config: https://syzkaller.appspot.com/x/.config?x=d4e9addca54f3b44 das

[syzbot] general protection fault in io_commit_cqring (2)

2021-03-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:81b1d39f Merge tag '5.12-rc4-smb3' of git://git.samba.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10ce6fe6d0 kernel config: https://syzkaller.appspot.com/x/.config?x=daeff30c2474a60f das

[syzbot] WARNING: still has locks held in io_sq_thread

2021-03-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:81b1d39f Merge tag '5.12-rc4-smb3' of git://git.samba.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10fcce62d0 kernel config: https://syzkaller.appspot.com/x/.config?x=d4e9addca54f3b44 das

Re: [PATCH] sched,psi: fix typo in comment

2021-03-29 Thread Peter Zijlstra
On Sat, Mar 27, 2021 at 08:46:10PM +0800, Xie XiuQi wrote: > s/exceution/execution/ > s/possibe/possible/ > s/manupulations/manipulations/ > > Signed-off-by: Xie XiuQi Xie, if you'd have bothered to check the development tree of the code you're patching, you'd have found it's long since fixed.

Re: [PATCH 02/17] ASoC: atmel: fix shadowed variable

2021-03-29 Thread Codrin.Ciubotariu
On 26.03.2021 23:59, Pierre-Louis Bossart wrote: > Fix cppcheck warning: > > sound/soc/atmel/atmel-classd.c:51:14: style: Local variable 'pwm_type' > shadows outer variable [shadowVariable] > const char *pwm_type; > ^ > sound/soc/atmel/atmel-classd.c:226:27: note: Shadowed declarat

Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
On Mon, Mar 22, 2021 at 02:27:22PM +, Jonathan Cameron wrote: > > > > +static DECLARE_TI_TSC2046_8_CHANNELS(tsc2046_adc, 12); > > > > + > > > > +static const struct tsc2046_adc_dcfg tsc2046_adc_dcfg_tsc2046e = { > > > > + .channels = tsc2046_adc_channels, > > > > + .num_channels = A

[tip:x86/vmware] BUILD SUCCESS 0b4a285e2c65c2c9449c6eccb87298e385213e7b

2021-03-29 Thread kernel test robot
randconfig-a002-20210329 x86_64 randconfig-a003-20210329 x86_64 randconfig-a006-20210329 x86_64 randconfig-a001-20210329 x86_64 randconfig-a005-20210329 x86_64 randconfig-a004-20210329 i386 randconfig-a003

[tip:locking/core] BUILD SUCCESS bd9a5fc2edb0bdcb0756298daa31ddd6a02f0634

2021-03-29 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a002-20210329 x86_64 randconfig-a003

Re: [kbuild-all] Re: [PATCH] riscv: Use $(LD) instead of $(CC) to link vDSO

2021-03-29 Thread Rong Chen
Hi Nathan, On 3/27/21 7:58 AM, Nathan Chancellor wrote: On Sat, Mar 27, 2021 at 12:05:34AM +0800, kernel test robot wrote: Hi Nathan, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.12-rc4 next-20210326] [If your patch is appli

Re: [PATCH net-next v2] net: axienet: Remove redundant dev_err call in axienet_probe()

2021-03-29 Thread Michal Simek
On 3/29/21 3:45 AM, Huang Guobin wrote: > From: Guobin Huang > > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Reported-by: Hulk Robot > Signed-off-by: Guobin Huang > --- > drivers/net/ethernet/xilinx/xil

Re: [PATCH v7 01/13] dt-bindings: mfd: Add 'nxp,imx8mq-vpu-ctrl' to syscon list

2021-03-29 Thread Lee Jones
On Mon, 29 Mar 2021, Benjamin Gaignard wrote: > Add 'nxp,imx8mq-vpu-ctrl' in the list of possible syscon. > It will used to access to the VPU control registers. > > Signed-off-by: Benjamin Gaignard > Acked-by: Rob Herring > --- > version 7: > - Add Rob ack > Documentation/devicetree/bindings/

Re: [PATCH 1/8] mm: cma: introduce cma_release_nowait()

2021-03-29 Thread Michal Hocko
On Fri 26-03-21 14:32:01, Mike Kravetz wrote: [...] > - Just change the mutex to an irq safe spinlock. Yes please. > AFAICT, the potential > downsides could be: > - Interrupts disabled during long bitmap scans How large those bitmaps are in practice? > - Wasted cpu cycles (spinning) if

Re: [External] [PATCH 7/8] hugetlb: make free_huge_page irq safe

2021-03-29 Thread Michal Hocko
On Sat 27-03-21 15:06:36, Muchun Song wrote: > On Thu, Mar 25, 2021 at 8:29 AM Mike Kravetz wrote: > > > > Commit c77c0a8ac4c5 ("mm/hugetlb: defer freeing of huge pages if in > > non-task context") was added to address the issue of free_huge_page > > being called from irq context. That commit han

[Resend PATCH V3 2/5] soc: qcom: dcc: Add driver support for Data Capture and Compare unit(DCC)

2021-03-29 Thread Souradeep Chowdhury
The DCC is a DMA Engine designed to capture and store data during system crash or software triggers.The DCC operates based on user inputs via the sysfs interface.The user gives addresses as inputs and these addresses are stored in the form of linkedlists.In case of a system crash or a manual softwa

[Resend PATCH V3 3/5] DCC: Added the sysfs entries for DCC(Data Capture and Compare) driver

2021-03-29 Thread Souradeep Chowdhury
The DCC is a DMA engine designed to store register values either in case of a system crash or in case of software triggers manually done by the user.Using DCC hardware and the sysfs interface of the driver the user can exploit various functionalities of DCC.The user can specify the register address

[Resend PATCH V3 1/5] dt-bindings: Added the yaml bindings for DCC

2021-03-29 Thread Souradeep Chowdhury
Documentation for Data Capture and Compare(DCC) device tree bindings in yaml format. Reviewed-by: Rob Herring Signed-off-by: Souradeep Chowdhury --- .../devicetree/bindings/arm/msm/qcom,dcc.yaml | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation

[Resend PATCH V3 5/5] arm64: dts: qcom: sm8150: Add Data Capture and Compare(DCC) support node

2021-03-29 Thread Souradeep Chowdhury
Add the DCC(Data Capture and Compare) device tree node entry along with the addresses for register regions. Signed-off-by: Souradeep Chowdhury --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/bo

Re: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32

2021-03-29 Thread Peter Zijlstra
On Sat, Mar 27, 2021 at 06:06:38PM +, guo...@kernel.org wrote: > From: Guo Ren > > Some architectures don't have sub-word swap atomic instruction, > they only have the full word's one. > > The sub-word swap only improve the performance when: > NR_CPUS < 16K > * 0- 7: locked byte > * 8

[Resend PATCH V3 4/5] MAINTAINERS:Add the entry for DCC(Data Capture and Compare) driver support

2021-03-29 Thread Souradeep Chowdhury
Added the entries for all the files added as a part of driver support for DCC(Data Capture and Compare). Signed-off-by: Souradeep Chowdhury --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d92f85c..fb28218 100644 --- a/MAINTAINERS +++ b/

Re: [PATCH v2 4/4] erofs: add on-disk compression configurations

2021-03-29 Thread Chao Yu
On 2021/3/29 14:55, Gao Xiang wrote: I found a reference here, https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v5.11#n99 also vaguely remembered some threads from Linus, but hard to find now :-( Sure, we can follow this rule for e

Re: [kernel/resource] cf1e4e12c9: WARNING:possible_recursive_locking_detected

2021-03-29 Thread Alistair Popple
Not sure why I didn't hit this in testing but the problem is obvious: I missed that revoke_iomem() calls devmem_is_allowed() which on x86 calls region_intersects(). I guess I must have forgotten to do a boot test with CONFIG_IO_STRICT_DEVMEM. Will put a fix together. - Alistair On Monday, 29

[PATCH net 1/1] xdp: fix xdp_return_frame() kernel BUG throw for page_pool memory model

2021-03-29 Thread Ong Boon Leong
xdp_return_frame() may be called outside of NAPI context to return xdpf back to page_pool. xdp_return_frame() calls __xdp_return() with napi_direct = false. For page_pool memory model, __xdp_return() calls xdp_return_frame_no_direct() unconditionally and below false negative kernel BUG throw happen

Re: [PATCH V3 1/5] dt-bindings: Added the yaml bindings for DCC

2021-03-29 Thread schowdhu
On 2021-03-29 12:02, Souradeep Chowdhury wrote: Documentation for Data Capture and Compare(DCC) device tree bindings in yaml format. Resent this patch by adding the review tag Link as follows https://lore.kernel.org/lkml/20210329074909.vpO1kbU39ZSxJpJFZqQc-9i_h5ucqyd4gqZK3a1DQtg@z/ Signed-

[PATCH 4.4 11/33] u64_stats,lockdep: Fix u64_stats_init() vs lockdep

2021-03-29 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit d5b0e0677bfd5efd17c5bbb00156931f0d41cb85 ] Jakub reported that: static struct net_device *rtl8139_init_board(struct pci_dev *pdev) { ... u64_stats_init(&tp->rx_stats.syncp); u64_stats_init(&tp->tx_stats.syncp);

[PATCH 4.4 01/33] net: fec: ptp: avoid register access when ipg clock is disabled

2021-03-29 Thread Greg Kroah-Hartman
From: Heiko Thiery [ Upstream commit 6a4d7234ae9a3bb31181f348ade9bbdb55aeb5c5 ] When accessing the timecounter register on an i.MX8MQ the kernel hangs. This is only the case when the interface is down. This can be reproduced by reading with 'phc_ctrl eth0 get'. Like described in the change in 9

[PATCH 4.4 13/33] ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls

2021-03-29 Thread Greg Kroah-Hartman
From: Sergei Trofimovich [ Upstream commit 0ceb1ace4a2778e34a5414e5349712ae4dc41d85 ] In https://bugs.gentoo.org/769614 Dmitry noticed that `ptrace(PTRACE_GET_SYSCALL_INFO)` does not work for syscalls called via glibc's syscall() wrapper. ia64 has two ways to call syscalls from userspace: via `

[PATCH 4.4 10/33] atm: idt77252: fix null-ptr-dereference

2021-03-29 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit 4416e98594dc04590ebc498fc4e530009535c511 ] this one is similar to the phy_data allocation fix in uPD98402, the driver allocate the idt77105_priv and store to dev_data but later dereference using dev->dev_data, which will cause null-ptr-dereference. fix this is

[PATCH 4.4 12/33] nfs: we dont support removing system.nfs4_acl

2021-03-29 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 4f8be1f53bf615102d103c0509ffa9596f65b718 ] The NFSv4 protocol doesn't have any notion of reomoving an attribute, so removexattr(path,"system.nfs4_acl") doesn't make sense. There's no documented return value. Arguably it could be EOPNOTSUPP but I'm a litt

[PATCH 4.4 14/33] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign

2021-03-29 Thread Greg Kroah-Hartman
From: Sergei Trofimovich [ Upstream commit 61bf318eac2c13356f7bd1c6a05421ef504ccc8a ] In https://bugs.gentoo.org/769614 Dmitry noticed that `ptrace(PTRACE_GET_SYSCALL_INFO)` does not return error sign properly. The bug is in mismatch between get/set errors: static inline long syscall_get_error

[PATCH 4.4 15/33] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-29 Thread Greg Kroah-Hartman
From: Borislav Petkov Jim Mattson reported that Debian 9 guests using a 4.9-stable kernel are exploding during alternatives patching: kernel BUG at /build/linux-dqnRSc/linux-4.9.228/arch/x86/kernel/alternative.c:709! invalid opcode: [#1] SMP Modules linked in: CPU: 1 PID: 1 Comm: s

[PATCH 4.4 16/33] squashfs: fix inode lookup sanity checks

2021-03-29 Thread Greg Kroah-Hartman
From: Sean Nyekjaer commit c1b2028315c6b15e8d6725e0d5884b15887d3daa upstream. When mouting a squashfs image created without inode compression it fails with: "unable to read inode lookup table" It turns out that the BLOCK_OFFSET is missing when checking the SQUASHFS_METADATA_SIZE agaist the actu

[PATCH 4.4 17/33] squashfs: fix xattr id and id lookup sanity checks

2021-03-29 Thread Greg Kroah-Hartman
From: Phillip Lougher commit 8b44ca2b634527151af07447a8090a5f3a043321 upstream. The checks for maximum metadata block size is missing SQUASHFS_BLOCK_OFFSET (the two byte length count). Link: https://lkml.kernel.org/r/2069685113.2081245.1614583677...@webmail.123-reg.co.uk Fixes: f37aa4c7366e23f

[PATCH 4.4 18/33] bus: omap_l3_noc: mark l3 irqs as IRQF_NO_THREAD

2021-03-29 Thread Greg Kroah-Hartman
From: Grygorii Strashko [ Upstream commit 7d7275b3e866cf8092bd12553ec53ba26864f7bb ] The main purpose of l3 IRQs is to catch OCP bus access errors and identify corresponding code places by showing call stack, so it's important to handle L3 interconnect errors as fast as possible. On RT these IRQ

[PATCH 4.4 19/33] macvlan: macvlan_count_rx() needs to be aware of preemption

2021-03-29 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit dd4fa1dae9f4847cc1fd78ca468ad69e16e5db3e ] macvlan_count_rx() can be called from process context, it is thus necessary to disable preemption before calling u64_stats_update_begin() syzbot was able to spot this on 32bit arch: WARNING: CPU: 1 PID: 4632 at inc

[PATCH 4.4 02/33] powerpc/4xx: Fix build errors from mfdcr()

2021-03-29 Thread Greg Kroah-Hartman
From: Michael Ellerman [ Upstream commit eead089311f4d935ab5d1d8fbb0c42ad44699ada ] lkp reported a build error in fsp2.o: CC arch/powerpc/platforms/44x/fsp2.o {standard input}:577: Error: unsupported relocation against base Which comes from: pr_err("GESR0: 0x%08x\n", mfdcr(base + P

[PATCH 4.4 20/33] net: dsa: bcm_sf2: Qualify phydev->dev_flags based on port

2021-03-29 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit 47142ed6c34d544ae9f0463e58d482289cbe0d46 ] Similar to commit 92696286f3bb37ba50e4bd8d1beb24afb759a799 ("net: bcmgenet: Set phydev->dev_flags only for internal PHYs") we need to qualify the phydev->dev_flags based on whether the port is connected to an int

[PATCH 4.4 21/33] e1000e: add rtnl_lock() to e1000_reset_task

2021-03-29 Thread Greg Kroah-Hartman
From: Vitaly Lifshits [ Upstream commit 21f857f0321d0d0ea9b1a758bd55dc63d1cb2437 ] A possible race condition was found in e1000_reset_task, after discovering a similar issue in igb driver via commit 024a8168b749 ("igb: reinit_locked() should be called with rtnl_lock"). Added rtnl_lock() and rtn

[PATCH 4.4 22/33] e1000e: Fix error handling in e1000_set_d0_lplu_state_82571

2021-03-29 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit b52912b8293f2c496f42583e65599aee606a0c18 ] There is one e1e_wphy() call in e1000_set_d0_lplu_state_82571 that we have caught its return value but lack further handling. Check and terminate the execution flow just like other e1e_wphy() in this function. Fixes:

  1   2   3   4   5   6   7   8   9   10   >