[PATCH v3 2/8] iio: adc: max1027: Make it optional to use interrupts

2019-10-07 Thread Miquel Raynal
The chip has a 'start conversion' and a 'end of conversion' pair of pins. They can be used but this is absolutely not mandatory as regular polling of the value is totally fine with the current internal clocking setup. Turn the interrupts optional and do not error out if they are not inquired in the

[PATCH v3 0/8] Introduce max12xx ADC support

2019-10-07 Thread Miquel Raynal
Hello, here is a patchset updating the existing max1027.c driver (for 10-bit max1027/29/31 ADCs) with a few corrections/improvements and then introducing their 12-bit cousins named max1227/29/31. As on my hardware setup the "start conversion" and "end of conversion" pin are not wired (which is abs

[PATCH v3 5/8] iio: adc: max1027: Introduce 12-bit devices support

2019-10-07 Thread Miquel Raynal
Maxim's max12xx series is very similar to the max10xx series, with the difference of the measurements depth which is upgraded from 10 to 12 bits per channel. Everything else looks the same. Signed-off-by: Miquel Raynal --- drivers/iio/adc/Kconfig | 4 ++-- drivers/iio/adc/max1027.c | 38 +

[PATCH v3 7/8] dt-bindings: Add 1027/1029/1031 SPI ADCs as trivial devices

2019-10-07 Thread Miquel Raynal
In the same time, remove the dedicated bindings file which is now useless. Signed-off-by: Miquel Raynal --- .../bindings/iio/adc/max1027-adc.txt | 22 --- .../devicetree/bindings/trivial-devices.yaml | 6 + 2 files changed, 6 insertions(+), 22 deletions(-) delete

[PATCH v3 8/8] dt-bindings: Add max12xx SPI ADC series as trivial devices

2019-10-07 Thread Miquel Raynal
Update the compatible list with three Maxim ADCs compatibles. Signed-off-by: Miquel Raynal --- .../bindings/iio/adc/max1027-adc.txt | 28 +++ .../devicetree/bindings/trivial-devices.yaml | 6 2 files changed, 34 insertions(+) create mode 100644 Documentation/devi

[PATCH v3 3/8] iio: adc: max1027: Reset the device at probe time

2019-10-07 Thread Miquel Raynal
All the registers are configured by the driver, let's reset the chip at probe time, avoiding any conflict with a possible earlier configuration. Signed-off-by: Miquel Raynal --- drivers/iio/adc/max1027.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/adc/max1027.c b/driv

[PATCH v3 4/8] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-07 Thread Miquel Raynal
Maxim's max1027/29/31 series returns the measured voltages with a resolution of 10 bits. There is a very similar series, max1227/29/31 which works identically but uses a resolution of 12 bits. Prepare the support for these chips by turning the 'depth' into a macro parameter instead of hardcoding it

[PATCH v3 6/8] dt-bindings: iio: adc: max1027: Mark interrupts as optional

2019-10-07 Thread Miquel Raynal
The chips have a 'start conversion' and a 'end of conversion' pair of pins. They can be used but this is absolutely not mandatory as regular polling is supported by the chip depending on its internal clocking setup. There is no physical reason to force the use of interrupts so turn them optional.

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Christian Brauner
On Mon, Oct 07, 2019 at 03:18:04PM +0200, Andrea Parri wrote: > On Mon, Oct 07, 2019 at 01:01:17PM +0200, Christian Brauner wrote: > > When assiging and testing taskstats in taskstats_exit() there's a race > > when writing and reading sig->stats when a thread-group with more than > > one thread exi

[PATCH v8 0/6] ad5820: Multiple fixes

2019-10-07 Thread Ricardo Ribalda Delgado
-Support for enable-pin, of-autoload, enable-gpios and ad5821 and ad5823 For some reason these patchset was lost in translation for a year ;) v8: I screwed up sending v7, I sent it from a dirty directory and clicked on send-all without checking what was under v7*. Sorry :( This made patchwork ve

[PATCH v8 5/6] media: ad5820: DT new compatible devices

2019-10-07 Thread Ricardo Ribalda Delgado
Document new compatible devices. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentatio

[PATCH v8 2/6] media: ad5820: DT new optional field enable-gpios

2019-10-07 Thread Ricardo Ribalda Delgado
Document new enable-gpio field. It can be used to disable the part without turning down its regulator. Cc: devicet...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/medi

[PATCH v8 3/6] media: ad5820: Add support for enable pin

2019-10-07 Thread Ricardo Ribalda Delgado
This patch adds support for a programmable enable pin. It can be used in situations where the ANA-vcc is not configurable (dummy-regulator), or just to have a more fine control of the power saving. The use of the enable pin is optional. Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Mach

[PATCH v8 1/6] media: ad5820: Define entity function

2019-10-07 Thread Ricardo Ribalda Delgado
Without this patch, media_device_register_entity throws a warning: dev_warn(mdev->dev, "Entity type for entity %s was not initialized!\n", entity->name); Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart --- drivers/media/i2c/ad5820.

Re: [PATCH v2 1/3] regulator: fixed: add possibility to enable by clock

2019-10-07 Thread Guenter Roeck
On Tue, Sep 10, 2019 at 06:21:15AM +, Philippe Schenker wrote: > This commit adds the possibility to choose the compatible > "regulator-fixed-clock" in devicetree. > > This is a special regulator-fixed that has to have a clock, from which > the regulator gets switched on and off. > > Signed-o

[PATCH v8 4/6] media: ad5820: Add support for of-autoload

2019-10-07 Thread Ricardo Ribalda Delgado
Since kernel 4.16, i2c devices with DT compatible tag are modprobed using their DT modalias. Without this patch, if this driver is build as module it would never be autoprobed. There is no need to mask it with CONFIG_OF to allow ACPI loading, this also builds find with CONFIG_OF=n. Signed-off-by:

[PATCH v8 6/6] media: ad5820: Add support for ad5821 and ad5823

2019-10-07 Thread Ricardo Ribalda Delgado
According to the datasheet, both AD5821 and AD5820 share a compatible register-set: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5821.pdf Some camera modules also refer that AD5823 is a replacement of AD5820: https://download.kamami.com/p564094-OV8865_DS.pdf Suggested-by:

Re: [PATCH v5 0/6] arm64: vdso32: Address various issues

2019-10-07 Thread Will Deacon
Hi Vincenzo, On Thu, Oct 03, 2019 at 06:48:32PM +0100, Vincenzo Frascino wrote: > This patch series is meant to address the various compilation issues > reported recently for arm64 vdso32 [1]. > > From v4, the series contains a cleanup of lib/vdso Kconfig as well since > CROSS_COMPILE_COMPAT_VDSO

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-10-07 Thread Dmitry Vyukov
On Mon, Oct 7, 2019 at 2:33 PM Walter Wu wrote: > On Mon, 2019-10-07 at 14:19 +0200, Dmitry Vyukov wrote: > > On Mon, Oct 7, 2019 at 2:03 PM Walter Wu wrote: > > My idea was just to always print "heap-out-of-bounds" and don't > > differentiate if the size come from userspace or not. > > Got it. >

Re: [PATCH RESEND v8 0/4] Make IPA use PM_EM

2019-10-07 Thread Quentin Perret
Hi Daniel, On Mon, Oct 7, 2019 at 6:35 AM Daniel Lezcano wrote: > the series does no longer apply, do you think it is possible to give it > a respin? Right, I'll try to fix the conflicts and post a v9 shortly. Thanks, Quentin

Re: [RFC PATCH v1 3/3] usb: phy: mxs: optimize disconnect line condition

2019-10-07 Thread Igor Opaniuk
HI Fabio, On Mon, Oct 7, 2019 at 3:51 PM Fabio Estevam wrote: > > Hi Igor, > > On Mon, Oct 7, 2019 at 9:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > We only have below cases to disconnect line when suspend: > > 1. Device mode without connection to any host/charger(no vbus). > >

[PATCH] iwlegacy: make array interval static, makes object smaller

2019-10-07 Thread Colin King
From: Colin Ian King Don't populate the array interval on the stack but instead make it static. Makes the object code smaller by 121 bytes. Before: textdata bss dec hex filename 167797 29676 448 197921 30521 wireless/intel/iwlegacy/common.o After: textdata

Re: kexec breaks with 5.4 due to memzero_explicit

2019-10-07 Thread Hans de Goede
Hi, On 07-10-2019 15:09, Ingo Molnar wrote: * Hans de Goede wrote: Hi, On 07-10-2019 10:50, Hans de Goede wrote: Hi, On 07-10-2019 05:09, Arvind Sankar wrote: Hi, arch/x86/purgatory/purgatory.ro has an undefined symbol memzero_explicit. This has come from commit 906a4bb97f5d ("crypto: sh

Re: [PATCH 0/4] HiSilicon hip08 uncore PMU events additions

2019-10-07 Thread John Garry
As an alternative, how about just add a maintainers entry for reviewers per arch? As a start, I don't mind being added there for arm64: --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12767,6 +12767,10 @@ F: arch/*/events/* F: arch/*/events/*/* F: tools/perf/ +PERFORMANCE EVENTS SUBSYSTE

[PATCH 1/3] dt-bindings: arm: stm32: Add missing STM32 boards

2019-10-07 Thread Alexandre Torgue
This commit documents missing STM32 boards: -STM32MCU: F429 disco/eval, F469-disco, F746 disco/eval, F769 disco, H743 disco/eval. -STM32MPU: MP157 dk1/dk2/ed1/ev1. Signed-off-by: Alexandre Torgue diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentation/devicetree/bi

[PATCH 2/3] dt-bindings: pinctrl: stm32: Fix 'st,syscfg' description field

2019-10-07 Thread Alexandre Torgue
As there is only one item "st,syscfg" this commit moves phandle description fields under "description" tag. It'll fix a validation issue seen during stm32 DT check. Signed-off-by: Alexandre Torgue diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devi

[PATCH 3/3] dt-bindings: usb: generic-ehci: Add "companion" entry

2019-10-07 Thread Alexandre Torgue
"companion" entry is present in "generic.txt" usb binding file. This commit adds it also in generic-ehci yaml binding. Signed-off-by: Alexandre Torgue diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml index 059f6ef1ad4

[PATCH 0/3] dt-bindings: fix issues seen during STM32 DT validation

2019-10-07 Thread Alexandre Torgue
This series updates yaml files to clean some issues seen during STM32 device trees validation. Alexandre Torgue (3): dt-bindings: arm: stm32: Add missing STM32 boards dt-bindings: pinctrl: stm32: Fix 'st,syscfg' description field dt-bindings: usb: generic-ehci: Add "companion" entry .../d

[PATCH 07/10] rtc: ds1347: set range

2019-10-07 Thread Alexandre Belloni
The DS1347 handle dates from year to . Leap years are claimed to be handled correctly in the datasheet. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index 75c522c8a

[PATCH 08/10] rtc: ds1347: properly handle oscillator failures

2019-10-07 Thread Alexandre Belloni
The comment in the probe function stating that it disables oscillator stop detection and glitch filtering is incorrect as it sets bits 3 and 4 while it should be setting 5 and 6 to achieve that. Then, it is safe to assume that the oscillator failure detection is actually enabled. Properly handle o

[PATCH 10/10] rtc: ds1347: handle century register

2019-10-07 Thread Alexandre Belloni
The DS1347 can handle years from 0 to , add century register support. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c

[PATCH 05/10] rtc: ds1347: mask ALM OUT when reading time

2019-10-07 Thread Alexandre Belloni
Bit 7 of the minutes registers is ALM OUT. It indicates an alarm fired. Mask it out when reading the time. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index 0

[PATCH 01/10] rtc: add a timestamp for year 0

2019-10-07 Thread Alexandre Belloni
A few RTCs handle dates from year 0 to year . Add a timestamp even if years before 1970 will probably never be used. Signed-off-by: Alexandre Belloni --- include/linux/rtc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/rtc.h b/include/linux/rtc.h index df666cf29ef1..2680

[PATCH 09/10] rtc: ds1347: use regmap_update_bits

2019-10-07 Thread Alexandre Belloni
Use regmap_update_bits instead of open coding. Also add proper error handling. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index eeaf43586bce..a49c

[PATCH 06/10] rtc: ds1347: convert to devm_rtc_allocate_device

2019-10-07 Thread Alexandre Belloni
This allows further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index 763eb60e5e8f..75c522c8ab26 100644 --- a/drivers/rtc/r

[PATCH 04/10] rtc: ds1347: simplify getting .driver_data

2019-10-07 Thread Alexandre Belloni
Get 'driver_data' from 'struct device' directly. Going via spi_device is an unnecessary step. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index 013

[PATCH 02/10] rtc: ds1347: remove verbose messages

2019-10-07 Thread Alexandre Belloni
Printing debugging (and opaque) information is not useful and only clutters the boot log. Remove those messages. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index d392a

[PATCH 03/10] rtc: ds1347: remove useless read

2019-10-07 Thread Alexandre Belloni
DS1347_SECONDS_REG is read at probe time but the value is simply discarded. Remove that useless read. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1347.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c index ab5533c7f99d..013

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Dmitry Vyukov
On Mon, Oct 7, 2019 at 3:18 PM Andrea Parri wrote: > > On Mon, Oct 07, 2019 at 01:01:17PM +0200, Christian Brauner wrote: > > When assiging and testing taskstats in taskstats_exit() there's a race > > when writing and reading sig->stats when a thread-group with more than > > one thread exits: > >

Re: [PATCH V4 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-10-07 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Mon, Oct 07, 2019 at 03:06:17PM +0200, Ingo Molnar wrote: > > > > * Anshuman Khandual wrote: > > > > > This adds a test module which will validate architecture page table > > > helpers > > > and accessors regarding compliance with generic MM semantics expect

Re: [RFT] rtc: da9063: Handle invalid IRQ from platform_get_irq_byname()

2019-10-07 Thread Alexandre Belloni
On 04/10/2019 17:05:10+0200, Krzysztof Kozlowski wrote: > platform_get_irq_byname() might return -errno which later would be > cast to an unsigned int and used in request_irq(). > > Signed-off-by: Krzysztof Kozlowski > > --- > > Not marking as cc-stable as this was not reproduced and not tested

[PATCH] rtl8xxxu: make arrays static, makes object smaller

2019-10-07 Thread Colin King
From: Colin Ian King Don't populate const arrays on the stack but instead make them static. Makes the object code smaller by 60 bytes. Before: textdata bss dec hex filename 151338768 0 239015d5d realtek/rtl8xxxu/rtl8xxxu_8192e.o 152096392 0 2160

Re: kexec breaks with 5.4 due to memzero_explicit

2019-10-07 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Hans de Goede wrote: > > > Hi, > > > > On 07-10-2019 10:50, Hans de Goede wrote: > > > Hi, > > > > > > On 07-10-2019 05:09, Arvind Sankar wrote: > > > > Hi, arch/x86/purgatory/purgatory.ro has an undefined symbol > > > > memzero_explicit. This has come from commi

Re: [PATCH 03/10] rtc: armada38x: Use of_device_get_match_data()

2019-10-07 Thread Alexandre Belloni
On 04/10/2019 14:43:27-0700, Stephen Boyd wrote: > Use the more modern API to get the match data out of the of match table. > This saves some code, lines, and nicely avoids referencing the match > table when it is undefined with configurations where CONFIG_OF=n. > > Cc: Arnd Bergmann > Cc: Geert

Re: [PATCH v5 0/6] arm64: vdso32: Address various issues

2019-10-07 Thread Vincenzo Frascino
Hi Will, On 07/10/2019 14:31, Will Deacon wrote: > Hi Vincenzo, > > On Thu, Oct 03, 2019 at 06:48:32PM +0100, Vincenzo Frascino wrote: >> This patch series is meant to address the various compilation issues >> reported recently for arm64 vdso32 [1]. >> >> From v4, the series contains a cleanup of

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Christian Brauner
On Mon, Oct 07, 2019 at 03:50:47PM +0200, Dmitry Vyukov wrote: > On Mon, Oct 7, 2019 at 3:18 PM Andrea Parri wrote: > > > > On Mon, Oct 07, 2019 at 01:01:17PM +0200, Christian Brauner wrote: > > > When assiging and testing taskstats in taskstats_exit() there's a race > > > when writing and reading

Re: kexec breaks with 5.4 due to memzero_explicit

2019-10-07 Thread Ingo Molnar
* Hans de Goede wrote: > Hi, > > On 07-10-2019 15:09, Ingo Molnar wrote: > > > > * Hans de Goede wrote: > > > > > Hi, > > > > > > On 07-10-2019 10:50, Hans de Goede wrote: > > > > Hi, > > > > > > > > On 07-10-2019 05:09, Arvind Sankar wrote: > > > > > Hi, arch/x86/purgatory/purgatory.ro h

Re: [PATCH 2/3] dt-bindings: net: adi: Fix yaml verification issue

2019-10-07 Thread Rob Herring
On Mon, Oct 7, 2019 at 5:26 AM Alexandre Torgue wrote: > > This commit fixes an issue seen during yaml check ("make dt_binding_check"). > Each enum were not declared as uint32. > > "Documentation/devicetree/bindings/net/adi,adin.yaml: > properties:adi,rx-internal-delay-ps: > ..., 'enum': [1600, 18

Re: [PATCH] PCI:cadence:Driver refactored to use as a core library.

2019-10-07 Thread Andrew Murray
On Tue, Oct 01, 2019 at 04:49:12PM -0500, Bjorn Helgaas wrote: > On Tue, Oct 01, 2019 at 11:07:28AM +0100, Andrew Murray wrote: > > Hi Tom, > > > > Thanks for the patch. > > > > I'd suggest that you rename the subject of this series to "PCI: cadence: > > ..." > > to be consistent with the existi

[PATCH v1 1/3] lib/sort: Move swap, cmp and cmp_r function types for wider use

2019-10-07 Thread Andy Shevchenko
The function types for swap, cmp and cmp_r functions are already being in use by modules. Move them to types.h that everybody in kernel will be able to use generic types instead of custom ones. This adds more sense to the comment in bsearch() later on. Signed-off-by: Andy Shevchenko --- includ

[PATCH v1 3/3] tracing: Use generic type for comparator function

2019-10-07 Thread Andy Shevchenko
Comparator function type, cmp_func_t, is defined in the types.h, use it in the code. Signed-off-by: Andy Shevchenko --- kernel/trace/ftrace.c | 12 ++-- kernel/trace/trace_branch.c | 8 kernel/trace/trace_stat.c | 6 ++ kernel/trace/trace_stat.h | 2 +- 4 files

[PATCH v1 2/3] lib/bsearch: Use generic type for comparator function

2019-10-07 Thread Andy Shevchenko
Comparator function type, cmp_func_t, is defined in the types.h, use it in bsearch() and, thus, add more sense to the corresponding comment in the code. Signed-off-by: Andy Shevchenko --- include/linux/bsearch.h | 2 +- lib/bsearch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletion

Re: [PATCH v2 1/3] regulator: fixed: add possibility to enable by clock

2019-10-07 Thread Philippe Schenker
On Mon, 2019-10-07 at 06:29 -0700, Guenter Roeck wrote: > On Tue, Sep 10, 2019 at 06:21:15AM +, Philippe Schenker wrote: > > This commit adds the possibility to choose the compatible > > "regulator-fixed-clock" in devicetree. > > > > This is a special regulator-fixed that has to have a clock,

Re: [PATCH RFC net-next 0/2] drivers: net: virtio_net: Implement

2019-10-07 Thread Julio Faracco
Em seg, 7 de out de 2019 às 04:43, Michael S. Tsirkin escreveu: > > On Sun, Oct 06, 2019 at 03:45:13PM -0300, jcfara...@gmail.com wrote: > > From: Julio Faracco > > > > Driver virtio_net is not handling error events for TX provided by > > dev_watchdog. This event is reached when transmission que

Re: [PATCH] firmware: vpd: Add an interface to read VPD value

2019-10-07 Thread Cheng-yi Chiang
On Mon, Oct 7, 2019 at 8:27 PM Guenter Roeck wrote: > > On 10/7/19 1:03 AM, Tzung-Bi Shih wrote: > > On Mon, Oct 7, 2019 at 3:16 PM Cheng-Yi Chiang > > wrote: > >> > >> Add an interface for other driver to query VPD value. > >> This will be used for ASoC machine driver to query calibration > >>

Re: [PATCH] net: hns: make arrays static, makes object smaller

2019-10-07 Thread David Miller
From: Colin King Date: Mon, 7 Oct 2019 11:55:10 +0100 > From: Colin Ian King > > Don't populate the arrays port_map and sl_map on the stack but > instead make them static. Makes the object code smaller by 64 bytes. > > Before: >text data bss dec hex filename > 49575

Re: [PATCH] net: hns3: make array tick_array static, makes object smaller

2019-10-07 Thread David Miller
From: Colin King Date: Mon, 7 Oct 2019 12:09:35 +0100 > From: Colin Ian King > > Don't populate the array tick_array on the stack but instead make it > static. Makes the object code smaller by 29 bytes. > > Before: >text data bss dec hex filename > 19191 4

Re: [PATCH V4 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-10-07 Thread Kirill A. Shutemov
On Mon, Oct 07, 2019 at 03:51:58PM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Mon, Oct 07, 2019 at 03:06:17PM +0200, Ingo Molnar wrote: > > > > > > * Anshuman Khandual wrote: > > > > > > > This adds a test module which will validate architecture page table > > > > hel

Re: [PATCH RFC net-next 2/2] drivers: net: virtio_net: Add tx_timeout function

2019-10-07 Thread Julio Faracco
Em seg, 7 de out de 2019 às 04:51, Michael S. Tsirkin escreveu: > > On Sun, Oct 06, 2019 at 03:45:15PM -0300, jcfara...@gmail.com wrote: > > From: Julio Faracco > > > > To enable dev_watchdog, virtio_net should have a tx_timeout defined > > (.ndo_tx_timeout). This is only a skeleton to throw a w

Re: [PATCH] cgroup: short-circuit current_cgns_cgroup_from_root() on the default hierarchy

2019-10-07 Thread Tejun Heo
On Sun, Sep 29, 2019 at 04:06:58PM +0800, Miaohe Lin wrote: > Like commit 13d82fb77abb ("cgroup: short-circuit cset_cgroup_from_root() on > the default hierarchy"), short-circuit current_cgns_cgroup_from_root() on > the default hierarchy. > > Signed-off-by: Miaohe Lin Applied to cgroup/for-5.5.

[PATCH] pinctrl: rzn1: array reg_drive static, makes object smaller

2019-10-07 Thread Colin King
From: Colin Ian King Don't populate the array reg_drive on the stack but instead make it static. Makes the object code smaller by 32 bytes. Before: textdata bss dec hex filename 31991 15696 0 47687ba47 drivers/pinctrl/pinctrl-rzn1.o After: textdata

Re: kexec breaks with 5.4 due to memzero_explicit

2019-10-07 Thread Hans de Goede
Hi, On 07-10-2019 15:09, Ingo Molnar wrote: * Hans de Goede wrote: Hi, On 07-10-2019 10:50, Hans de Goede wrote: Hi, On 07-10-2019 05:09, Arvind Sankar wrote: Hi, arch/x86/purgatory/purgatory.ro has an undefined symbol memzero_explicit. This has come from commit 906a4bb97f5d ("crypto: sh

Re: [PATCH -next] drm/amd/display: remove set but not used variable 'core_freesync'

2019-10-07 Thread Harry Wentland
On 2019-10-06 6:57 a.m., YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > rivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c: > In function mod_freesync_get_settings: > drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:984:24: > warning: variab

Re: [PATCH 2/3] dt-bindings: net: adi: Fix yaml verification issue

2019-10-07 Thread Alexandre Torgue
Hi Rob On 10/7/19 3:56 PM, Rob Herring wrote: On Mon, Oct 7, 2019 at 5:26 AM Alexandre Torgue wrote: This commit fixes an issue seen during yaml check ("make dt_binding_check"). Each enum were not declared as uint32. "Documentation/devicetree/bindings/net/adi,adin.yaml: properties:adi,rx-int

Re: [PATCH 1/3] dt-bindings: media: Fix id path for sun4i-a10-csi

2019-10-07 Thread Alexandre Torgue
On 10/7/19 1:00 PM, Maxime Ripard wrote: Hi Alexandre, On Mon, Oct 07, 2019 at 12:25:50PM +0200, Alexandre Torgue wrote: This commit fixes id path of allwinner,sun4i-a10-csi.yaml location. Fixes: c5e8f4ccd775 ("media: dt-bindings: media: Add Allwinner A10 CSI binding") Signed-off-by: Alexan

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Dmitry Vyukov
On Mon, Oct 7, 2019 at 3:55 PM Christian Brauner wrote: > > On Mon, Oct 07, 2019 at 03:50:47PM +0200, Dmitry Vyukov wrote: > > On Mon, Oct 7, 2019 at 3:18 PM Andrea Parri wrote: > > > > > > On Mon, Oct 07, 2019 at 01:01:17PM +0200, Christian Brauner wrote: > > > > When assiging and testing taskst

Re: [PATCH] Remove GP_REPLAY state from rcu_sync

2019-10-07 Thread Oleg Nesterov
On 10/04, Joel Fernandes wrote: > > On Fri, Oct 04, 2019 at 05:41:03PM +0200, Oleg Nesterov wrote: > > On 10/04, Joel Fernandes (Google) wrote: > > > > > > Taking a step back, why did we intend to have > > > to wait for a new GP if another rcu_sync_exit() comes while one is still > > > in progress?

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Christian Brauner
On Mon, Oct 07, 2019 at 04:08:41PM +0200, Dmitry Vyukov wrote: > On Mon, Oct 7, 2019 at 3:55 PM Christian Brauner > wrote: > > > > On Mon, Oct 07, 2019 at 03:50:47PM +0200, Dmitry Vyukov wrote: > > > On Mon, Oct 7, 2019 at 3:18 PM Andrea Parri > > > wrote: > > > > > > > > On Mon, Oct 07, 2019 at

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-07 Thread Petr Mladek
On Mon 2019-10-07 09:07:02, Qian Cai wrote: > On Mon, 2019-10-07 at 14:43 +0200, Michal Hocko wrote: > > On Mon 07-10-19 08:11:44, Qian Cai wrote: > > > On Mon, 2019-10-07 at 13:37 +0200, Michal Hocko wrote: > > > > On Mon 07-10-19 07:04:00, Qian Cai wrote: > > > > > > > > > > > > > > > > On Oct

Re: [RESEND PATCH 0/5] Add bluetooth support for Orange Pi 3

2019-10-07 Thread Ondřej Jirman
Hi Maxime, On Fri, Aug 23, 2019 at 12:31:34PM +0200, megous hlavni wrote: > From: Ondrej Jirman > > (Resend to add missing lists, sorry for the noise.) > > This series implements bluetooth support for Xunlong Orange Pi 3 board. > > The board uses AP6256 WiFi/BT 5.0 chip. > > Summary of change

Re: [PATCH v2 5.4 regression fix] x86/boot: Provide memzero_explicit

2019-10-07 Thread Hans de Goede
Hi, On 07-10-2019 16:00, Ingo Molnar wrote: * Hans de Goede wrote: The purgatory code now uses the shared lib/crypto/sha256.c sha256 implementation. This needs memzero_explicit, implement this. Reported-by: Arvind Sankar Fixes: 906a4bb97f5d ("crypto: sha256 - Use get/put_unaligned_be32 to

Re: [PATCH] m68k: defconfig: Update defconfigs for v5.4-rc1

2019-10-07 Thread Max Staudt
Hi Geert, (CC linux-ide) As for the Amiga defconfig, how about moving from IDE drivers to ATA? The old IDE stack is slated for removal in less than 2 years, and people should probably move over to libata instead. How about the following changes? Is there any Amiga IDE controller left without a

Re: [PATCH 0/5] Optimize single thread migration

2019-10-07 Thread Tejun Heo
On Fri, Oct 04, 2019 at 12:57:38PM +0200, Michal Koutný wrote: > Hello. > > The important part is the patch 02 where the reasoning is. > > The rest is mostly auxiliar and split out into separate commits for > better readability. > > The patches are based on v5.3. This is great. Applied to the

Re: [PATCH] drm/amd/display: Fix typo in some comments

2019-10-07 Thread Harry Wentland
On 2019-10-05 7:32 a.m., Christophe JAILLET wrote: > p and g are switched in 'amdpgu_dm' > > Signed-off-by: Christophe JAILLET Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --g

Re: [PATCH] staging: rtl8712: align arguments with open parenthesis in file rtl8712_led.c

2019-10-07 Thread Dan Carpenter
On Sun, Oct 06, 2019 at 09:39:02PM -0300, Gabriela Bittencourt wrote: > Cleans up checks of "Alignment should match open parenthesis" > > Signed-off-by: Gabriela Bittencourt > --- > drivers/staging/rtl8712/rtl8712_led.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dr

Re: [PATCH net-next] net: stmmac: Fix sparse warning

2019-10-07 Thread David Miller
From: Jose Abreu Date: Mon, 7 Oct 2019 15:16:08 +0200 > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > index 8b76745a7ec4..40b0756f3a14 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/et

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Andrea Parri
> > > static struct taskstats *taskstats_tgid_alloc(struct task_struct *tsk) > > > { > > > struct signal_struct *sig = tsk->signal; > > > - struct taskstats *stats; > > > + struct taskstats *stats_new, *stats; > > > > > > - if (sig->stats || thread_group_empty(tsk)) > > > -

Re: [PATCH RFC net-next 1/2] drivers: net: virtio_net: Add tx_timeout stats field

2019-10-07 Thread Julian Wiedmann
On 06.10.19 20:45, jcfara...@gmail.com wrote: > From: Julio Faracco > > For debug purpose of TX timeout events, a tx_timeout entry was added to > monitor this special case: when dev_watchdog identifies a tx_timeout and > throw an exception. We can both consider this event as an error, but > drive

Re: [PATCH v5 0/6] arm64: vdso32: Address various issues

2019-10-07 Thread Will Deacon
On Mon, Oct 07, 2019 at 02:54:29PM +0100, Vincenzo Frascino wrote: > On 07/10/2019 14:31, Will Deacon wrote: > > On Thu, Oct 03, 2019 at 06:48:32PM +0100, Vincenzo Frascino wrote: > >> This patch series is meant to address the various compilation issues > >> reported recently for arm64 vdso32 [1].

[PATCH RT] locking/rtmutex: Clean ->pi_blocked_on in the error case

2019-10-07 Thread Sebastian Andrzej Siewior
From: Peter Zijlstra The function rt_mutex_wait_proxy_lock() cleans ->pi_blocked_on in case of failure (timeout, signal). The same cleanup is required in __rt_mutex_start_proxy_lock(). In both the cases the tasks was interrupted by a signal or timeout while acquiring the lock and after the interr

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-10-07 Thread Tejun Heo
Hello, On Wed, Oct 02, 2019 at 03:28:00PM +0900, Namhyung Kim wrote: > On Sat, Sep 21, 2019 at 6:04 AM Tejun Heo wrote: > > > > On Fri, Sep 20, 2019 at 05:47:45PM +0900, Namhyung Kim wrote: > > > Thanks for the sharing information! For 32-bit, while the ino itself is > > > not > > > monotonic,

Re: [PATCH 2/3] watchdog: sam9x60_wdt: introduce sam9x60 watchdog timer driver

2019-10-07 Thread Eugen.Hristev
On 07.10.2019 16:14, Alexandre Belloni wrote: > > On 07/10/2019 05:36:38-0700, Guenter Roeck wrote: >> On 10/7/19 12:58 AM, eugen.hris...@microchip.com wrote: >> [ ... ] >>> Hello Guenter, >>> >>> Thank you for the feedback. >>> After reviewing this, can you please guide me towards one of the >

Re: [PATCH V8 2/2] arm64/mm: Enable memory hot remove

2019-10-07 Thread Catalin Marinas
On Mon, Sep 23, 2019 at 11:13:45AM +0530, Anshuman Khandual wrote: > The arch code for hot-remove must tear down portions of the linear map and > vmemmap corresponding to memory being removed. In both cases the page > tables mapping these regions must be freed, and when sparse vmemmap is in > use t

Re: [PATCH v2] taskstats: fix data-race

2019-10-07 Thread Dmitry Vyukov
On Mon, Oct 7, 2019 at 4:14 PM Andrea Parri wrote: > > > > > static struct taskstats *taskstats_tgid_alloc(struct task_struct *tsk) > > > > { > > > > struct signal_struct *sig = tsk->signal; > > > > - struct taskstats *stats; > > > > + struct taskstats *stats_new, *stats; > > > > >

Re: [PATCH] iio: imu: adis16480: clean up a condition

2019-10-07 Thread Dan Carpenter
On Mon, Oct 07, 2019 at 10:21:07AM +0100, Jonathan Cameron wrote: > On Sun, 6 Oct 2019 21:14:40 +0300 > Dan Carpenter wrote: > > > On Sun, Oct 06, 2019 at 09:51:33AM +0100, Jonathan Cameron wrote: > > > On Thu, 26 Sep 2019 14:36:30 +0300 > > > Dan Carpenter wrote: > > > > > > > On Thu, Sep 26

KASAN: use-after-free Read in __cfg8NUM_wpan_dev_from_attrs

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=125aaafd60 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link: https://syz

Re: hmm pud-entry callback locking?

2019-10-07 Thread Jerome Glisse
On Sat, Oct 05, 2019 at 02:29:40PM +0200, Thomas Hellström (VMware) wrote: > Hi, Jerome, > > I was asked by Kirill to try to unify the pagewalk pud_entry and pmd_entry > callbacks. The only user of the pagewalk pud-entry is currently hmm. > > But the pagewalk code call pud_entry only for huge pud

Re: [RFCv1 1/5] arm64: dts: meson: Add missing 5V_EN gpio signal for VCC5V regulator

2019-10-07 Thread Neil Armstrong
Hi Anand, On 07/10/2019 15:16, Anand Moon wrote: > As per schematics add missing 5V_EN gpio signal to enable > VCC5V regulator node. > > Fixes: c35f6dc5c377 (arm64: dts: meson: Add minimal support for Odroid-N2) > Cc: Martin Blumenstingl > Cc: Jerome Brunet > Cc: Neil Armstrong > Signed-off-by

Re: [PATCH] mm: thp: move deferred split queue to memcg's nodeinfo

2019-10-07 Thread Vlastimil Babka
On 10/2/19 10:43 AM, Michal Hocko wrote: > On Wed 02-10-19 06:16:43, Yang Shi wrote: >> The commit 87eaceb3faa59b9b4d940ec9554ce251325d83fe ("mm: thp: make >> deferred split shrinker memcg aware") makes deferred split queue per >> memcg to resolve memcg pre-mature OOM problem. But, all nodes end u

Re: [RFCv1 2/5] arm64: dts: meson: Add missing pwm control gpio signal for pwm-regulator

2019-10-07 Thread Neil Armstrong
On 07/10/2019 15:16, Anand Moon wrote: > As per schematics add missing VDDCPUA_PWM and VDDCPUB_PWM > gpio signal use to enable/disable the pwm regulator for DVFS. > > Fixes: d14734a04a8a (arm64: dts: meson-g12b-odroid-n2: enable DVFS) > Cc: Martin Blumenstingl > Cc: Jerome Brunet > Cc: Neil Arms

Re: [RFCv1 3/5] arm64: dts: meson: Add missing regulator linked to VDDAO_3V3 regulator to FLASH_VDD

2019-10-07 Thread Neil Armstrong
On 07/10/2019 15:16, Anand Moon wrote: > As per schematics add missing VDDAO_3V3 power supply to FLASH_VDD > regulator. Also add TFLASH_VDD_EN signal name to gpio pin. > > Fixes: c35f6dc5c377 (arm64: dts: meson: Add minimal support for Odroid-N2) > Cc: Martin Blumenstingl > Cc: Jerome Brunet > C

Re: [RFCv1 4/5] arm64: dts: meson: Add missing regulator linked to VCCV5 regulator to VDDIO_C/TF_IO

2019-10-07 Thread Neil Armstrong
On 07/10/2019 15:16, Anand Moon wrote: > As per schematics add missing VCCV5 power supply to VDDIO_C/TF_IO > regulator. Also add TF_3V3N_1V8_EN signal name to gpio pin. > > Fixes: c35f6dc5c377 (arm64: dts: meson: Add minimal support for Odroid-N2) > Cc: Martin Blumenstingl > Cc: Jerome Brunet >

Re: [PATCH] regulator: fixed: Prevent NULL pointer dereference when !CONFIG_OF

2019-10-07 Thread Guenter Roeck
On Sun, Sep 22, 2019 at 10:29:28AM +0800, Axel Lin wrote: > Use of_device_get_match_data which has NULL test for match before > dereference match->data. Add NULL test for drvtype so it still works > for fixed_voltage_ops when !CONFIG_OF. > > Signed-off-by: Axel Lin > Reviewed-by: Philippe Schenke

Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y

2019-10-07 Thread Neil Armstrong
On 07/10/2019 15:16, Anand Moon wrote: > Using microSD card we cannot get the mainline kernel to boot What's the link with microSD card here ? > using mainline u-boot it fails with below logs. > Build PWM_MESSON as build-in solve the issue. > > [1.569240] meson-gx-mmc ffe05000.sd: Got CD GPI

Re: [PATCH v2 1/3] regulator: fixed: add possibility to enable by clock

2019-10-07 Thread Guenter Roeck
On 10/7/19 6:57 AM, Philippe Schenker wrote: On Mon, 2019-10-07 at 06:29 -0700, Guenter Roeck wrote: On Tue, Sep 10, 2019 at 06:21:15AM +, Philippe Schenker wrote: This commit adds the possibility to choose the compatible "regulator-fixed-clock" in devicetree. This is a special regulator-f

Re: [PATCH 4.9 00/47] 4.9.196-stable review

2019-10-07 Thread Guenter Roeck
On 10/6/19 10:20 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.196 release. There are 47 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 5.3 000/166] 5.3.5-stable review

2019-10-07 Thread Guenter Roeck
On 10/6/19 10:19 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.3.5 release. There are 166 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH v5 0/6] arm64: vdso32: Address various issues

2019-10-07 Thread Vincenzo Frascino
On 07/10/2019 15:15, Will Deacon wrote: > On Mon, Oct 07, 2019 at 02:54:29PM +0100, Vincenzo Frascino wrote: >> On 07/10/2019 14:31, Will Deacon wrote: >>> On Thu, Oct 03, 2019 at 06:48:32PM +0100, Vincenzo Frascino wrote: This patch series is meant to address the various compilation issues >>

Re: KASAN: use-after-free Read in __cfg8NUM_wpan_dev_from_attrs

2019-10-07 Thread Jiri Pirko
Mon, Oct 07, 2019 at 04:19:09PM CEST, syzbot+9cb7edb2906ea1e83...@syzkaller.appspotmail.com wrote: >Hello, > >syzbot found the following crash on: > >HEAD commit:056ddc38 Merge branch 'stmmac-next' >git tree: net-next >console output: https://syzkaller.appspot.com/x/log.txt?x=125aaafd600

Re: [PATCH] x86/mm: determine whether the fault address is canonical

2019-10-07 Thread Ingo Molnar
* Sean Christopherson wrote: > On Fri, Oct 04, 2019 at 07:39:08AM -0700, Dave Hansen wrote: > > On 10/4/19 6:45 AM, Changbin Du wrote: > > > +static inline bool is_canonical_addr(u64 addr) > > > +{ > > > +#ifdef CONFIG_X86_64 > > > + int shift = 64 - boot_cpu_data.x86_phys_bits; > > > > I thin

<    4   5   6   7   8   9   10   11   12   13   >