Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. Signed-off-by: Christophe Leroy --- mm/arch_pgtable_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/arch_pgtable_te

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-13 Thread Jonathan Corbet
On Wed, 11 Sep 2019 16:11:29 -0600 Jens Axboe wrote: > On 9/11/19 12:43 PM, Dan Carpenter wrote: > > > > I kind of hate all this extra documentation because now everyone thinks > > they can invent new hoops to jump through. > > FWIW, I completely agree with Dan (Carpenter) here. I absolutely

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 09:03, Christophe Leroy a écrit : Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. Signed-off-by: Christophe Leroy ---   mm/arch_pgtable_test.c | 3 +++   1 file chan

Re: [PATCH] media: v4l: cadence: Fix how unsued lanes are handled in 'csi2rx_start()'

2019-09-13 Thread walter harms
Am 12.09.2019 22:44, schrieb Christophe JAILLET: > The 2nd parameter of 'find_first_zero_bit()' is a number of bits, not of > bytes. So use 'BITS_PER_LONG' instead of 'sizeof(lanes_used)'. > > Fixes: 1fc3b37f34f6 ("media: v4l: cadence: Add Cadence MIPI-CSI2 RX driver") > Signed-off-by: Christop

Re: [PATCH v5 0/4] Raspberry Pi 4 DMA addressing support

2019-09-13 Thread Matthias Brugger
On 12/09/2019 21:32, Stefan Wahren wrote: > > Am 12.09.19 um 19:18 schrieb Matthias Brugger: >> >> On 10/09/2019 11:27, Matthias Brugger wrote: >>> >>> On 09/09/2019 21:33, Stefan Wahren wrote: Hi Nicolas, Am 09.09.19 um 11:58 schrieb Nicolas Saenz Julienne: > Hi all, > t

Re: [PATCH] KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl

2019-09-13 Thread Cornelia Huck
On Thu, 12 Sep 2019 13:23:38 +0200 Thomas Huth wrote: > Hmm, we already talked about deprecating support for pre-3.15 kernel > stuff in the past (see > https://wiki.qemu.org/ChangeLog/2.12#Future_incompatible_changes for > example), Btw: did we ever do that? I don't quite recall what code we wer

Re: [RFC 1/3] dt-bindings: dma: Add documentation for DMA domains

2019-09-13 Thread Peter Ujfalusi
On 12/09/2019 20.03, Vinod Koul wrote: > On 09-09-19, 09:30, Peter Ujfalusi wrote: > or domain-dma-controller? >>> >>> I feel dma-domain-controller sounds fine as we are defining domains for >>> dmaengine. Another thought which comes here is that why not extend this to >>> slave as well an

[RFC] Improve memset

2019-09-13 Thread Borislav Petkov
Hi, since the merge window is closing in and y'all are on a conference, I thought I should take another stab at it. It being something which Ingo, Linus and Peter have suggested in the past at least once. Instead of calling memset: 8100cd8d: e8 0e 15 7a 00 callq 8

[PATCH] serial: uartps: Fix uartps_major handling

2019-09-13 Thread Michal Simek
There are two parts which should be fixed. The first one is to assigned uartps_major at the end of probe() to avoid complicated logic when something fails. The second part is initialized uartps_major number to 0 when last device is removed. This will ensure that on next probe driver will ask for ne

Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16240

2019-09-13 Thread Ardelean, Alexandru
On Thu, 2019-09-12 at 18:39 -0300, Rodrigo Carvalho wrote: > This patch add device tree binding documentation for ADIS16240. > > Signed-off-by: Rodrigo Ribeiro Carvalho > --- > V2: > - Remove true constant for spi-cpha and spi-cpol > - Add description field for spi-cpha and spi-cpol > - Add

Re: [PATCH v3] input: keyboard: snvs_pwrkey: Send key events for i.MX6 S, DL and Q

2019-09-13 Thread robin
Hi Dmitry, On 2019-09-12 22:13, Dmitry Torokhov wrote: Hi Robin, On Wed, Sep 04, 2019 at 06:23:29AM +, Robin van der Gracht wrote: The first generation i.MX6 processors does not send an interrupt when the power key is pressed. It sends a power down request interrupt if the key is release

Re: KASAN: slab-out-of-bounds Read in handle_vmptrld

2019-09-13 Thread Paolo Bonzini
On 13/09/19 06:46, Greg Kroah-Hartman wrote: > USB drivers expect kmalloc to return DMA-able memory. I don't know > about specific alignment issues, that should only an issue for the host > controller being used here, which you do not say in the above list. I have no idea, this is just the analys

Re: [PATCH] KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl

2019-09-13 Thread Thomas Huth
On 13/09/2019 09.20, Cornelia Huck wrote: > On Thu, 12 Sep 2019 13:23:38 +0200 > Thomas Huth wrote: > >> Hmm, we already talked about deprecating support for pre-3.15 kernel >> stuff in the past (see >> https://wiki.qemu.org/ChangeLog/2.12#Future_incompatible_changes for >> example), > > Btw: di

Re: [RFC] Improve memset

2019-09-13 Thread Ingo Molnar
* Borislav Petkov wrote: > Hi, > > since the merge window is closing in and y'all are on a conference, I > thought I should take another stab at it. It being something which Ingo, > Linus and Peter have suggested in the past at least once. > > Instead of calling memset: > > 8100cd8d:

Re: [PATCH] KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl

2019-09-13 Thread David Hildenbrand
On 13.09.19 09:34, Thomas Huth wrote: > On 13/09/2019 09.20, Cornelia Huck wrote: >> On Thu, 12 Sep 2019 13:23:38 +0200 >> Thomas Huth wrote: >> >>> Hmm, we already talked about deprecating support for pre-3.15 kernel >>> stuff in the past (see >>> https://wiki.qemu.org/ChangeLog/2.12#Future_incom

New list for people to share maintainer workflows

2019-09-13 Thread Theodore Y. Ts'o
At the Maintainer's Summit yesterday, we created a new mailing list: workfl...@vger.kernel.org, where various Maintainers can share their workflows for handling patch review, collection, testing, and submission. We will also be discussing what requirements should be for infrastructure that will be

Re: [PATCH v3] input: keyboard: snvs_pwrkey: Send key events for i.MX6 S, DL and Q

2019-09-13 Thread robin
On 2019-09-04 08:52, Marco Felsch wrote: Hi Robin, thanks for the patch it looks quite good, just two minor nitpicks. On 19-09-04 06:23, Robin van der Gracht wrote: The first generation i.MX6 processors does not send an interrupt when the power key is pressed. It sends a power down request int

[GIT PULL] EDAC pile for 5.4

2019-09-13 Thread Borislav Petkov
Hi Linus, here's an early pull request from EDAC-land for the upcoming merge window. The new thing this time around is that we have three maintainers now and a new, old repo. New because it is new for the EDAC tree which is hosted there from now on and old because it is Tony's and mine's old RAS r

Re: [PATCH] KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl

2019-09-13 Thread Thomas Huth
On 13/09/2019 09.37, David Hildenbrand wrote: > On 13.09.19 09:34, Thomas Huth wrote: >> On 13/09/2019 09.20, Cornelia Huck wrote: >>> On Thu, 12 Sep 2019 13:23:38 +0200 >>> Thomas Huth wrote: >>> Hmm, we already talked about deprecating support for pre-3.15 kernel stuff in the past (see

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-13 Thread Nikolaus Voss
Bob, On Thu, 12 Sep 2019, Moore, Robert wrote: The ability to unload an ACPI table (especially AML tables such as SSDTs) is in the process of being deprecated in ACPICA -- since it is also deprecated in the current ACPI specification. This is being done because of the difficulty of deleting th

Re: [PATCH] hv_balloon: Add the support of hibernation

2019-09-13 Thread David Hildenbrand
On 12.09.19 21:18, Dexuan Cui wrote: >> From: David Hildenbrand >> Sent: Thursday, September 12, 2019 3:09 AM >> On 12.09.19 01:36, Dexuan Cui wrote: >>> When hibernation is enabled, we must ignore the balloon up/down and >>> hot-add requests from the host, if any. >> >> Why do you even care about

Re: [PATCH v4 4/6] arm64: dts: meson: sei510: Add minimal thermal zone

2019-09-13 Thread Amit Kucheria
On Thu, Aug 22, 2019 at 4:59 AM Kevin Hilman wrote: > > Guillaume La Roque writes: > > > Add minimal thermal zone for two temperature sensor > > One is located close to the DDR and the other one is > > located close to the PLLs (between the CPU and GPU) > > > > Signed-off-by: Guillaume La Roque

Re: [PATCH] KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl

2019-09-13 Thread David Hildenbrand
On 13.09.19 09:43, Thomas Huth wrote: > On 13/09/2019 09.37, David Hildenbrand wrote: >> On 13.09.19 09:34, Thomas Huth wrote: >>> On 13/09/2019 09.20, Cornelia Huck wrote: On Thu, 12 Sep 2019 13:23:38 +0200 Thomas Huth wrote: > Hmm, we already talked about deprecating support f

Re: [RFC] Improve memset

2019-09-13 Thread Borislav Petkov
On Fri, Sep 13, 2019 at 09:35:30AM +0200, Ingo Molnar wrote: > That looks exciting - I'm wondering what effects this has on code > footprint - for example defconfig vmlinux code size, and what the average > per call site footprint impact is? > > If the footprint effect is acceptable, then I'd ex

Re: [PATCH 4/5] thermal: Add generic power domain warming device driver.

2019-09-13 Thread Ulf Hansson
On Thu, 12 Sep 2019 at 22:18, Thara Gopinath wrote: > > On 09/12/2019 11:04 AM, Ulf Hansson wrote: > > Hi Ulf, > > Thanks for the review. > > On Tue, 10 Sep 2019 at 19:14, Thara Gopinath > > wrote: > >> > >> Resources modeled as power domains in linux kenrel > >> can be used to warm the SoC(eg.

Re: [PATCH] media: v4l: cadence: Fix how unsued lanes are handled in 'csi2rx_start()'

2019-09-13 Thread Maxime Ripard
Hi Christophe, On Thu, Sep 12, 2019 at 10:44:50PM +0200, Christophe JAILLET wrote: > The 2nd parameter of 'find_first_zero_bit()' is a number of bits, not of > bytes. So use 'BITS_PER_LONG' instead of 'sizeof(lanes_used)'. > > Fixes: 1fc3b37f34f6 ("media: v4l: cadence: Add Cadence MIPI-CSI2 RX dr

Re: [PATCH 3/6] ARM: dts: sunxi: h3/h5: Add MBUS controller node

2019-09-13 Thread Maxime Ripard
On Thu, Sep 12, 2019 at 10:46:58PM +0200, Jernej Škrabec wrote: > Dne četrtek, 12. september 2019 ob 22:34:27 CEST je Maxime Ripard napisal(a): > > On Thu, Sep 12, 2019 at 10:28:37PM +0200, Jernej Škrabec wrote: > > > Dne četrtek, 12. september 2019 ob 22:20:57 CEST je Maxime Ripard > napisal(a):

[PATCH v2] cpupower : Handle set and info subcommands correctly

2019-09-13 Thread Abhishek Goel
Cpupower tool has set and info options which are being used only by x86 machines. This patch removes support for these two subcommands from generic cpupower utility. Thus, these two subcommands will now be available only for intel. This removes the ambiguous error message while using set option in

Re: [PATCH v5 0/4] Raspberry Pi 4 DMA addressing support

2019-09-13 Thread Matthias Brugger
On 12/09/2019 21:32, Stefan Wahren wrote: > > Am 12.09.19 um 19:18 schrieb Matthias Brugger: >> >> On 10/09/2019 11:27, Matthias Brugger wrote: >>> >>> On 09/09/2019 21:33, Stefan Wahren wrote: Hi Nicolas, Am 09.09.19 um 11:58 schrieb Nicolas Saenz Julienne: > Hi all, > t

[PATCH] genirq/debugfs: fix spelling mistake "effectiv" -> "effective"

2019-09-13 Thread Colin King
From: Colin Ian King There is a spelling mistake in the debugfs output, fix it. Signed-off-by: Colin Ian King --- kernel/irq/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c index c1eccd4f6520..55b1b7ce667e 100644 --- a/k

[GIT PULL] RAS updates for 5.4

2019-09-13 Thread Borislav Petkov
Hi Linus, please pull this branch git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras-core-for-linus to receive the latest meager RAS updates for 5.4: - Enable processing of action-optional MCEs which have the Overflow bit set (Tony Luck) - -Wmissing-prototypes warning fix and a

Re: [PATCH] perf record: fix priv level with branch sampling for paranoid=2

2019-09-13 Thread Stephane Eranian
On Tue, Sep 3, 2019 at 11:26 PM Stephane Eranian wrote: > > Now that the default perf_events paranoid level is set to 2, a regular user > cannot monitor kernel level activity anymore. As such, with the following > cmdline: > > $ perf record -e cycles date > > The perf tool first tries cycles:uk bu

Re: [PATCH v1 0/2] pinctrl: Add new pinctrl/GPIO driver

2019-09-13 Thread Mika Westerberg
On Thu, Sep 12, 2019 at 11:11:32AM +0100, Linus Walleij wrote: > Hi Rahul, > > thanks for your patches! > > On Thu, Sep 12, 2019 at 8:59 AM Rahul Tanwar > wrote: > > > This series is to add pinctrl & GPIO controller driver for a new SoC. > > Patch 1 adds pinmux & GPIO controller driver. > > Pat

Re: [PATCH] arm: dts: renesas: r8a77980: Remove r8a77970 DU compatible

2019-09-13 Thread Simon Horman
On Thu, Sep 12, 2019 at 11:37:34AM +0100, Kieran Bingham wrote: > The r8a77970 was added with an compatible string for a differnet device > rather than adding the correct compatible to the driver. > > Remove the unnecessary compatible which is for a different platform. > > Signed-off-by: Kieran B

Re: [PATCH] arm64: dts: renesas: r8a77970: Fix PWM3

2019-09-13 Thread Simon Horman
On Thu, Sep 12, 2019 at 11:31:43AM +0100, Kieran Bingham wrote: > The pwm3 was incorrectly added with a compatible reference to the > renesas,pwm-r8a7790 (H2) due to a single characther ommision. > > Fix the compatible string. > > Fixes: de625477c632 ("arm64: dts: renesas: r8a779{7|8}0: add PWM s

Re: Thunderbolt DP oddity on v5.2.9 on iMac 12,2

2019-09-13 Thread Mika Westerberg
Hi Brad, On Tue, Sep 03, 2019 at 04:33:23PM +0300, Mika Westerberg wrote: > On Tue, Sep 03, 2019 at 08:54:02PM +0800, Brad Campbell wrote: > > On 3/9/19 7:55 pm, Mika Westerberg wrote: > > > On Tue, Sep 03, 2019 at 07:11:32PM +0800, Brad Campbell wrote: > > > > > > I think the problem is that for

Re: [PATCH 02/10] mm,madvise: call soft_offline_page() without MF_COUNT_INCREASED

2019-09-13 Thread David Hildenbrand
On 12.09.19 03:37, Naoya Horiguchi wrote: > On Wed, Sep 11, 2019 at 12:27:22PM +0200, David Hildenbrand wrote: >> On 10.09.19 12:30, Oscar Salvador wrote: >>> From: Naoya Horiguchi >>> >>> Currently madvise_inject_error() pins the target via get_user_pages_fast. >>> The call to get_user_pages_fast

Re: [PATCH v2] arm: dts: imx6qdl: add gpio expander pca9535

2019-09-13 Thread Gilles Doffe
Hi Marco, Ack for all, v3 incoming. Thank you, Gilles - Le 12 Sep 19, à 12:12, Marco Felsch m.fel...@pengutronix.de a écrit : > Hi Gilles, > > On 19-09-12 06:01, Gilles Doffe wrote: >> Hi Marco, >> >> Thanks for your reply and sorry about the delay. > > No worries ;) > >> - Le 22 Ju

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Anshuman Khandual
On 09/13/2019 12:41 PM, Christophe Leroy wrote: > > > Le 13/09/2019 à 09:03, Christophe Leroy a écrit : >> >> >> Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : >>> On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. >>

[RFC PATCH 03/15] spi: make `cs_change_delay` the first user of the `spi_delay` logic

2019-09-13 Thread Alexandru Ardelean
Since the logic for `spi_delay` struct + `spi_delay_exec()` has been copied from the `cs_change_delay` logic, it's natural to make this delay, the first user. The `cs_change_delay` logic requires that the default remain 10 uS, in case it is unspecified/unconfigured. So, there is some special handl

Re: [PATCH v3] drm: bridge/dw_hdmi: add audio sample channel status setting

2019-09-13 Thread Neil Armstrong
On 13/09/2019 08:37, Jonas Karlman wrote: > On 2019-09-11 19:02, Cheng-yi Chiang wrote: >> On Thu, Sep 12, 2019 at 12:54 AM Jernej Škrabec >> wrote: >>> Dne sreda, 11. september 2019 ob 18:23:59 CEST je Neil Armstrong napisal(a): On 11/09/2019 10:26, Cheng-Yi Chiang wrote: > From: Yakir

[RFC PATCH 01/15] spi: move `cs_change_delay` backwards compat logic outside switch

2019-09-13 Thread Alexandru Ardelean
The `cs_change_delay` backwards compatibility value could be moved outside of the switch statement. The only reason to do it, is to make the next patches easier to diff. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) dif

[RFC PATCH 05/15] spi: sprd: convert transfer word delay to spi_delay struct

2019-09-13 Thread Alexandru Ardelean
The Spreadtrum SPI driver is the only user of the `word_delay` field in the `spi_transfer` struct. This change converts the field to use the `spi_delay` struct. This also enforces the users to specify the delay unit to be `SPI_DELAY_UNIT_SCK`. Signed-off-by: Alexandru Ardelean --- drivers/spi/s

[RFC PATCH 07/15] spi: spidev: use new `word_delay` field for spi transfers

2019-09-13 Thread Alexandru Ardelean
The `word_delay` field had it's type changed to `struct spi_delay`. This allows users to specify nano-second or clock-cycle delays (if needed). Converting to use `word_delay` is straightforward: it's just assigning the value to `word_delay.value` and hard-coding the `word_delay.unit` to `SPI_DELAY

[RFC PATCH 11/15] spi: tegra114: use `spi_transfer_delay` helper

2019-09-13 Thread Alexandru Ardelean
The tegra114 driver has a weird/separate `tegra_spi_transfer_delay()` function that does 2 delays: one mdelay() and one udelay(). This was introduced via commit f4fade12d506e14867a2b0a5e2f7aaf227297d8b ("spi/tegra114: Correct support for cs_change"). There doesn't seem to be a mention in that com

[RFC PATCH 12/15] spi: spi-loopback-test: use new `delay` field

2019-09-13 Thread Alexandru Ardelean
This change replaces the use of the `delay_usecs` field with the new `delay` field. The code/test still uses micro-seconds, but they are now configured and used via the `struct spi_delay` format of the `delay` field. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi-loopback-test.c | 12

[RFC PATCH 08/15] spi: core,atmel: convert `word_delay_usecs` -> `word_delay` for spi_device

2019-09-13 Thread Alexandru Ardelean
This change does a conversion from the `word_delay_usecs` -> `word_delay` for the `spi_device` struct. This allows users to specify inter-word delays in other unit types (nano-seconds or clock cycles), depending on how users want. The Atmel SPI driver is the only current user of the `word_delay_u

[RFC PATCH 00/15] Unify SPI delays into an `struct spi_delay`

2019-09-13 Thread Alexandru Ardelean
Initially, I started this patchset thinking: "we need a new delay for something-something" (in case someone is curios, we need a CS-hold-time for the first transfer, because the CS wakes a chip from sleep-mode). Then I added the delay, and felt a bit dirty-inside about adding a new one (just like

[RFC PATCH 13/15] spi: spidev: use new `delay` field for spi transfers

2019-09-13 Thread Alexandru Ardelean
The `delay` field has type `struct spi_delay`. This allows users to specify nano-second or clock-cycle delays (if needed). Converting to use `delay` is straightforward: it's just assigning the value to `delay.value` and hard-coding the `delay.unit` to `SPI_DELAY_UNIT_USECS`. This keeps the uapi f

[RFC PATCH 09/15] spi: introduce `delay` field for `spi_transfer` + spi_transfer_exec()

2019-09-13 Thread Alexandru Ardelean
The change introduces the `delay` field to the `spi_transfer` struct as an `struct spi_delay` type. This intends to eventually replace `delay_usecs`. But, since there are many users of `delay_usecs`, this needs some intermediate work. A helper called `spi_transfer_delay()` is also added, which mai

[RFC PATCH 02/15] spi: introduce spi_delay struct as "value + unit" & spi_delay_exec()

2019-09-13 Thread Alexandru Ardelean
There are plenty of delays that have been introduced in SPI core. Most of them are in micro-seconds, some need to be in nano-seconds, and some in clock-cycles. For some of these delays (related to transfers & CS timing) it may make sense to have a `spi_delay` struct that abstracts these a bit. Th

[RFC PATCH 14/15] spi: tegra114: change format for `spi_set_cs_timing()` function

2019-09-13 Thread Alexandru Ardelean
The initial version of `spi_set_cs_timing()` was implemented with consideration only for clock-cycles as delay. For cases like `CS setup` time, it's sometimes needed that micro-seconds (or nano-seconds) are required, or sometimes even longer delays, for cases where the device needs a little longer

[RFC PATCH 15/15] spi: implement SW control for CS times

2019-09-13 Thread Alexandru Ardelean
This change implements CS control for setup, hold & inactive delays. The `cs_setup` delay is completely new, and can help with cases where asserting the CS, also brings the device out of power-sleep, where there needs to be a longer (than usual), before transferring data. The `cs_hold` time can o

Re: [RFC][PATCH] drm: kirin: Fix dsi probe/attach logic

2019-09-13 Thread Andrzej Hajda
On 12.09.2019 16:18, Matt Redfearn wrote: > > On 12/09/2019 14:21, Andrzej Hajda wrote: >> On 12.09.2019 04:38, John Stultz wrote: >>> On Wed, Sep 4, 2019 at 3:26 AM Andrzej Hajda wrote: On 03.09.2019 18:18, John Stultz wrote: > On Mon, Sep 2, 2019 at 6:22 AM Andrzej Hajda wrote: >>

[RFC PATCH 04/15] iio: imu: adis: convert cs_change_delay to spi_delay struct

2019-09-13 Thread Alexandru Ardelean
The ADIS library is one of the few users of the new `cs_change_delay` parameter for an spi_transfer. The introduction of the `spi_delay` struct, requires that the users of of `cs_change_delay` get an update. This change updates the ADIS library. Signed-off-by: Alexandru Ardelean --- drivers/iio

[RFC PATCH 10/15] spi: use new `spi_transfer_delay` helper where straightforward

2019-09-13 Thread Alexandru Ardelean
For many places in the spi drivers, using the new `spi_transfer_delay` helper is straightforward. It's just replacing: ``` if (t->delay_usecs) udelay(t->delay_usecs); ``` with `spi_transfer_delay(t)` which handles both `delay_usecs` and the new `delay` field. This change replaces in all pla

[RFC PATCH 06/15] spi: orion: use new `word_delay` field for SPI transfers

2019-09-13 Thread Alexandru Ardelean
The `word_delay` field had it's type changed to `struct spi_delay`. This allows users to specify nano-second or clock-cycle delays (if needed). Converting to use `word_delay` is straightforward: it just uses the new `spi_delay_exec()` routine, that handles the `unit` part. Signed-off-by: Alexandr

Re: [PATCH v5 0/4] Raspberry Pi 4 DMA addressing support

2019-09-13 Thread Stefan Wahren
Am 13.09.19 um 10:09 schrieb Matthias Brugger: > > On 12/09/2019 21:32, Stefan Wahren wrote: >> Am 12.09.19 um 19:18 schrieb Matthias Brugger: >>> On 10/09/2019 11:27, Matthias Brugger wrote: On 09/09/2019 21:33, Stefan Wahren wrote: > Hi Nicolas, > > Am 09.09.19 um 11:58 schrieb N

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Kirill A. Shutemov
On Fri, Sep 13, 2019 at 02:12:45PM +0530, Anshuman Khandual wrote: > > > On 09/13/2019 12:41 PM, Christophe Leroy wrote: > > > > > > Le 13/09/2019 à 09:03, Christophe Leroy a écrit : > >> > >> > >> Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : > >>> On 09/13/2019 11:53 AM, Christophe Leroy

Re: [RFC] Improve memset

2019-09-13 Thread Rasmus Villemoes
On 13/09/2019 09.22, Borislav Petkov wrote: > > Instead of calling memset: > > 8100cd8d: e8 0e 15 7a 00 callq 817ae2a0 > <__memset> > > and having a JMP inside it depending on the feature supported, let's simply > have the REP; STOSB directly in the code: > > ..

[PATCH v2 0/4] spi: introduce `struct spi_delay` data-type

2019-09-13 Thread Alexandru Ardelean
Discussion reference: https://lore.kernel.org/lkml/20190913114550.956-1-alexandru.ardel...@analog.com/ This changeset introduces an `spi_delay` struct/data-type and makes the IIO ADIS driver library the first user of this. The patchset base is Jonathan's `iio/togreg` branch, but it also applie

[PATCH v2 2/4] spi: introduce spi_delay struct as "value + unit" & spi_delay_exec()

2019-09-13 Thread Alexandru Ardelean
There are plenty of delays that have been introduced in SPI core. Most of them are in micro-seconds, some need to be in nano-seconds, and some in clock-cycles. For some of these delays (related to transfers & CS timing) it may make sense to have a `spi_delay` struct that abstracts these a bit. Th

[PATCH v2 3/4] spi: make `cs_change_delay` the first user of the `spi_delay` logic

2019-09-13 Thread Alexandru Ardelean
Since the logic for `spi_delay` struct + `spi_delay_exec()` has been copied from the `cs_change_delay` logic, it's natural to make this delay, the first user. The `cs_change_delay` logic requires that the default remain 10 uS, in case it is unspecified/unconfigured. So, there is some special handl

[PATCH v2 1/4] spi: move `cs_change_delay` backwards compat logic outside switch

2019-09-13 Thread Alexandru Ardelean
The `cs_change_delay` backwards compatibility value could be moved outside of the switch statement. The only reason to do it, is to make the next patches easier to diff. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) dif

[PATCH v2 4/4] iio: imu: adis: convert cs_change_delay to spi_delay struct

2019-09-13 Thread Alexandru Ardelean
The ADIS library is one of the few users of the new `cs_change_delay` parameter for an spi_transfer. The introduction of the `spi_delay` struct, requires that the users of of `cs_change_delay` get an update. This change updates the ADIS library. Signed-off-by: Alexandru Ardelean --- drivers/iio

Re: [RFC] Improve memset

2019-09-13 Thread Linus Torvalds
On Fri, Sep 13, 2019 at 8:22 AM Borislav Petkov wrote: > > since the merge window is closing in and y'all are on a conference, I > thought I should take another stab at it. It being something which Ingo, > Linus and Peter have suggested in the past at least once. > > Instead of calling memset: > >

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

2019-09-13 Thread Anshuman Khandual
On 09/12/2019 10:44 PM, Christophe Leroy wrote: > > > Le 12/09/2019 à 08:02, Anshuman Khandual a écrit : >> This adds a test module which will validate architecture page table helpers >> and accessors regarding compliance with generic MM semantics expectations. >> This will help various archite

Re: [GIT PULL] cgroup fixes for v5.3-rc8

2019-09-13 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Sep 2019 14:11:50 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-5.3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a7f89616b7376495424f682b6086e0c391a89a1d Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] KVM: x86: work around leak of uninitialized stack contents

2019-09-13 Thread Paolo Bonzini
On 13/09/19 01:52, Sean Christopherson wrote: >>> >> Perhaps you could also add a comment like the one Paolo added when he >> made the same change in kvm_read_guest_virt? >> See commit 353c0956a618 ("KVM: x86: work around leak of uninitialized >> stack contents (CVE-2019-7222)"). > I have a better

Re: [PATCH v2] fork: check exit_signal passed in clone3() call

2019-09-13 Thread Christian Brauner
On Wed, Sep 11, 2019 at 03:52:36PM +0200, Christian Brauner wrote: > On Wed, Sep 11, 2019 at 06:48:52AM -0700, Andrew Morton wrote: > > On Tue, 10 Sep 2019 18:58:52 +0100 Eugene Syromiatnikov > > wrote: > > > > > Previously, higher 32 bits of exit_signal fields were lost when > > > copied to the

[PATCH] qed: fix spelling mistake "fullill" -> "fulfill"

2019-09-13 Thread Colin King
From: Colin Ian King There is a spelling mistake in a DP_VERBOSE debug message. Fix it. (Using American English spelling as this is the most common way to spell this in the kernel). Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_vf.c | 2 +- 1 file changed, 1 insertion(+

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-13 Thread Laurent Dufour
Le 13/09/2019 à 04:00, Aneesh Kumar K.V a écrit : On 9/13/19 12:56 AM, Laurent Dufour wrote: Le 12/09/2019 à 16:44, Aneesh Kumar K.V a écrit : Laurent Dufour writes: + +    idx = 2; +    while (idx < len) { +    unsigned int block_size = local_buffer[idx++]; +    unsigned int npsize

Re: [PATCH v2] KVM: x86: Handle unexpected MMIO accesses using master abort semantics

2019-09-13 Thread Paolo Bonzini
On 13/09/19 03:56, Sean Christopherson wrote: > Use master abort semantics, i.e. reads return all ones and writes are > dropped, to handle unexpected MMIO accesses when reading guest memory > instead of returning X86EMUL_IO_NEEDED, which in turn gets interpreted > as a guest page fault. > > Emulat

Re: [PATCH 5/6] media: sun4i: Add H3 deinterlace driver

2019-09-13 Thread Maxime Ripard
Hi, On Thu, Sep 12, 2019 at 10:43:28PM +0200, Jernej Škrabec wrote: > Dne četrtek, 12. september 2019 ob 22:26:47 CEST je Maxime Ripard napisal(a): > > > + clk_set_rate(dev->mod_clk, 3); I just realized I missed this too. If you really need the rate to be fixed, and if the controller cann

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

2019-09-13 Thread Kirill A. Shutemov
On Fri, Sep 13, 2019 at 02:32:04PM +0530, Anshuman Khandual wrote: > > On 09/12/2019 10:44 PM, Christophe Leroy wrote: > > > > > > Le 12/09/2019 à 08:02, Anshuman Khandual a écrit : > >> This adds a test module which will validate architecture page table helpers > >> and accessors regarding comp

Re: [RFC] Improve memset

2019-09-13 Thread Rasmus Villemoes
On 13/09/2019 11.00, Linus Torvalds wrote: > On Fri, Sep 13, 2019 at 8:22 AM Borislav Petkov wrote: >> >> since the merge window is closing in and y'all are on a conference, I >> thought I should take another stab at it. It being something which Ingo, >> Linus and Peter have suggested in the past

[PATCH] mm, thp: Do not queue fully unmapped pages for deferred split

2019-09-13 Thread Kirill A. Shutemov
Adding fully unmapped pages into deferred split queue is not productive: these pages are about to be freed or they are pinned and cannot be split anyway. Signed-off-by: Kirill A. Shutemov --- mm/rmap.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/mm/rmap.c

Re: [PATCH v3 2/2] dwc: PCI: intel: Intel PCIe RC controller driver

2019-09-13 Thread Dilip Kota
On 9/12/2019 6:49 PM, Gustavo Pimentel wrote: On Thu, Sep 12, 2019 at 10:23:31, Dilip Kota wrote: Quoting Andrew Murray: Quoting Gustavo Pimentel: On 9/12/2019 4:25 PM, Andrew Murray wrote: [...] +static void intel_pcie_max_link_width_setup(struct intel_pcie_port *lpp) +{ + u32 mask

Re: [PATCH v4 2/6] thermal: amlogic: Add thermal driver to support G12 SoCs

2019-09-13 Thread Amit Kucheria
On Thu, Aug 22, 2019 at 3:54 AM Guillaume La Roque wrote: > > Amlogic G12A and G12B SoCs integrate two thermal sensors > with the same design. > One is located close to the DDR controller and the other one is > located close to the PLLs (between the CPU and GPU). Merge into one paragraph? > The

[PATCH] mtd: rawnand: fix spelling mistake "gravepagess" -> "gravepages"

2019-09-13 Thread Colin King
From: Colin Ian King There is a spelling mistake in a NS_ERR error message. Fix it. Signed-off-by: Colin Ian King --- drivers/mtd/nand/raw/nandsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c index 9a70754

Re: [PATCH v5 0/4] Raspberry Pi 4 DMA addressing support

2019-09-13 Thread Matthias Brugger
On 13/09/2019 10:50, Stefan Wahren wrote: > Am 13.09.19 um 10:09 schrieb Matthias Brugger: >> >> On 12/09/2019 21:32, Stefan Wahren wrote: >>> Am 12.09.19 um 19:18 schrieb Matthias Brugger: On 10/09/2019 11:27, Matthias Brugger wrote: > On 09/09/2019 21:33, Stefan Wahren wrote: >> H

Re: [PATCH v2 1/2] gpiolib: introduce devm_fwnode_gpiod_get_index()

2019-09-13 Thread Mika Westerberg
On Thu, Sep 12, 2019 at 08:22:38PM -0700, Dmitry Torokhov wrote: > devm_fwnode_get_index_gpiod_from_child() is too long, besides the fwnode > in question does not have to be a child of device node. Let's rename it > to devm_fwnode_gpiod_get_index() and keep the old name for compatibility > for now.

Re: [PATCH v2 2/2] gpiolib: introduce fwnode_gpiod_get_index()

2019-09-13 Thread Mika Westerberg
On Thu, Sep 12, 2019 at 08:22:39PM -0700, Dmitry Torokhov wrote: > This introduces fwnode_gpiod_get_index() that iterates through common gpio > suffixes when trying to locate a GPIO within a given firmware node. > > We also switch devm_fwnode_gpiod_get_index() to call > fwnode_gpiod_get_index() in

Applied "ASoC: fsl_sai: Implement set_bclk_ratio" to the asoc tree

2019-09-13 Thread Mark Brown
The patch ASoC: fsl_sai: Implement set_bclk_ratio has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

[PATCH V2 1/2] ASoC: fsl_mqs: add DT binding documentation

2019-09-13 Thread Shengjiu Wang
Add the DT binding documentation for NXP MQS driver Signed-off-by: Shengjiu Wang --- Changes in v2 -refine the comments for properties .../devicetree/bindings/sound/fsl,mqs.txt | 36 +++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/s

[PATCH V2 2/2] ASoC: fsl_mqs: Add MQS component driver

2019-09-13 Thread Shengjiu Wang
MQS (medium quality sound), is used to generate medium quality audio via a standard digital output pin. It can be used to connect stereo speakers or headphones simply via power amplifier stages without an additional DAC chip. It only accepts 2-channel, LSB-valid 16bit, MSB shift-out first, frame sy

[PATCH net] net: stmmac: Hold rtnl lock in suspend/resume callbacks

2019-09-13 Thread Jose Abreu
We need to hold rnl lock in suspend and resume callbacks because phylink requires it. Otherwise we will get a WARN() in suspend and resume. Also, move phylink start and stop callbacks to inside device's internal lock so that we prevent concurrent HW accesses. Fixes: 74371272f97f ("net: stmmac: Co

Re: [PATCH 0/3] fix emulation error on Windows bootup

2019-09-13 Thread Paolo Bonzini
On 11/09/19 21:53, Sean Christopherson wrote: > On Wed, Sep 11, 2019 at 05:51:05PM +0200, Paolo Bonzini wrote: >> On 27/08/19 15:07, Jan Dakinevich wrote: >>> This series intended to fix (again) a bug that was a subject of the >>> following change: >>> >>> 6ea6e84 ("KVM: x86: inject exceptions p

[PATCH] x86/mm: Enable 5-level paging support by default

2019-09-13 Thread Kirill A. Shutemov
Support of boot-time switching between 4- and 5-level paging mode is upstream since 4.17. We run internal testing with 5-level paging support enabled for a while and it doesn't not cause any functional or performance regression on 4-level paging hardware. The only 5-level paging related regressio

Re: [PATCH] RDMA/bnxt_re: fix spelling mistake "missin_resp" -> "missing_resp"

2019-09-13 Thread Selvin Xavier
On Thu, Sep 12, 2019 at 8:40 PM Jason Gunthorpe wrote: > > On Wed, Sep 11, 2019 at 10:28:56AM +0100, Colin King wrote: > > From: Colin Ian King > > > > There is a spelling mistake in a literal string, fix it. > > > > Signed-off-by: Colin Ian King > > --- > > drivers/infiniband/hw/bnxt_re/hw_cou

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

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 11:02, Anshuman Khandual a écrit : +#if !defined(__PAGETABLE_PMD_FOLDED) && !defined(__ARCH_HAS_4LEVEL_HACK) #ifdefs have to be avoided as much as possible, see below Yeah but it has been bit difficult to avoid all these $ifdef because of the availability (or lack of it)

Re: [PATCH] xen: xen-pciback: Reset MSI-X state when exposing a device

2019-09-13 Thread Spassov, Stanislav
On Thu, Dec 13, 2018 at 07:54, Chao Gao wrote: >On Thu, Dec 13, 2018 at 12:54:52AM -0700, Jan Beulich wrote: > On 13.12.18 at 04:46, wrote: >>> On Wed, Dec 12, 2018 at 08:21:39AM -0700, Jan Beulich wrote: >>> On 12.12.18 at 16:18, wrote: > On Wed, Dec 12, 2018 at 01:51:01AM -0700, Jan

Re: [PATCH] net/mlx5: Remove unneeded variable in mlx5_unload_one

2019-09-13 Thread Saeed Mahameed
On Fri, 2019-09-13 at 00:59 +0800, zhong jiang wrote: > mlx5_unload_one do not need local variable to store different value, > Hence just remove it. > > Signed-off-by: zhong jiang > --- > drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >

Re: [PATCH v5 0/4] Raspberry Pi 4 DMA addressing support

2019-09-13 Thread Stefan Wahren
Am 13.09.19 um 11:25 schrieb Matthias Brugger: > > On 13/09/2019 10:50, Stefan Wahren wrote: >> Am 13.09.19 um 10:09 schrieb Matthias Brugger: >>> On 12/09/2019 21:32, Stefan Wahren wrote: Am 12.09.19 um 19:18 schrieb Matthias Brugger: > On 10/09/2019 11:27, Matthias Brugger wrote: >>

Re: [PATCH V7 3/3] arm64/mm: Enable memory hot remove

2019-09-13 Thread Catalin Marinas
On Fri, Sep 13, 2019 at 11:28:01AM +0530, Anshuman Khandual wrote: > On 09/13/2019 01:45 AM, Catalin Marinas wrote: > > On Tue, Sep 03, 2019 at 03:15:58PM +0530, Anshuman Khandual wrote: > >> @@ -770,6 +1022,28 @@ int __meminit vmemmap_populate(unsigned long start, > >> unsigned long end, int node

Re: [PATCH v3 2/2] dwc: PCI: intel: Intel PCIe RC controller driver

2019-09-13 Thread andriy.shevche...@intel.com
On Fri, Sep 13, 2019 at 05:20:26PM +0800, Dilip Kota wrote: > On 9/12/2019 6:49 PM, Gustavo Pimentel wrote: > > On Thu, Sep 12, 2019 at 10:23:31, Dilip Kota > > wrote: > > Hi, I just return from parental leave, therefore I still trying to get > > the pace in mailing list discussion. > > > > Howe

Re: [PATCH 3/4] arm64: Kconfig: Fix VEXPRESS driver dependencies

2019-09-13 Thread Sudeep Holla
On Thu, Sep 12, 2019 at 03:48:47AM +0530, Amit Kucheria wrote: > Push various VEXPRESS drivers behind ARCH_VEXPRESS dependency so that it > doesn't get enabled by default on other platforms. > I couldn't understand the motivation for these changes from the cover letter. > Signed-off-by: Amit Kuch

[GIT PULL] arm64 updates for 5.4

2019-09-13 Thread Will Deacon
Hi Linus, Here is the arm64 pull for 5.4 in anticipation of the merge window opening next week. Although there isn't tonnes of code in terms of line count, there are a fair few headline features which I've noted both in the tag and also in the merge commits when I pulled everything together. The

Re: [PATCH] tty: 8250_of: Use software emulated RS485 direction control

2019-09-13 Thread Andy Shevchenko
On Fri, Sep 13, 2019 at 07:01:05AM +0200, Heiko Schocher wrote: > Use software emulated RS485 direction control to provide RS485 API > > Currently it is not possible to use rs485 as pointer to > rs485_config struct in struct uart_port is NULL in case we > configure the port through device tree. T

Re: [PATCH 1/2] watchdog: pm8916_wdt: fix pretimeout registration flow

2019-09-13 Thread Loic Poulain
On Wed, 11 Sep 2019 at 19:54, Guenter Roeck wrote: > > On Wed, Sep 11, 2019 at 10:04:12AM +0200, Loic Poulain wrote: > > Hi Guenter, Jorge, > > > > On Mon, 9 Sep 2019 at 00:50, Guenter Roeck wrote: > > > > > On 9/6/19 1:30 PM, Jorge Ramirez-Ortiz wrote: > > > > When an IRQ is present in the dts,

  1   2   3   4   5   6   7   8   9   10   >