[PATCH] arm64: dts: marvell: armada_8k: reserve memory for ATF

2018-11-13 Thread Emmanuel Vadot
Like 4436a371 for 37xx, reserve the PSCI area memory region so kernels can call the code there. Region address is taken from the ATF code [1] and is 2MiB aligned. [1] plat/marvell/a8k/common/include/platform_def.h Signed-off-by: Emmanuel Vadot --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi

[REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2018-11-13 Thread Ville Syrjälä
Hi Paul, After 4.20-rc1 some of my 32bit UP machines no longer reboot/shutdown. I bisected this down to commit 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds"). I traced the hang into -> cpufreq_suspend() -> cpufreq_stop_governor() ->

[PATCH] arm64: dts: marvell: armada_8k: reserve memory for ATF

2018-11-13 Thread Emmanuel Vadot
Like 4436a371 for 37xx, reserve the PSCI area memory region so kernels can call the code there. Region address is taken from the ATF code [1] and is 2MiB aligned. [1] plat/marvell/a8k/common/include/platform_def.h Signed-off-by: Emmanuel Vadot --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi

[REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2018-11-13 Thread Ville Syrjälä
Hi Paul, After 4.20-rc1 some of my 32bit UP machines no longer reboot/shutdown. I bisected this down to commit 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds"). I traced the hang into -> cpufreq_suspend() -> cpufreq_stop_governor() ->

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
Adding in CC Monty and Dave. On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
Adding in CC Monty and Dave. On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Qian Cai
On 11/13/18 at 8:33 AM, Paul Moore wrote: > On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > > >>> On Mon, Nov 12, 2018 at

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Qian Cai
On 11/13/18 at 8:33 AM, Paul Moore wrote: > On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > > >>> On Mon, Nov 12, 2018 at

[PATCH 3/3] ARM: davinci: fix da850-evm boot in legacy mode

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. We now have the option to specify the GPIO base manually for

[PATCH 2/3] gpio: davinci: restore a way to manually specify the GPIO base

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. Other boards may be broken too, which I haven't tested. The

[PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") the davinci GPIO driver fails to probe if we boot in legacy mode from any of the board files. Since the driver now expects every interrupt to be defined as a separate resource, split the

[PATCH 3/3] ARM: davinci: fix da850-evm boot in legacy mode

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. We now have the option to specify the GPIO base manually for

[PATCH 2/3] gpio: davinci: restore a way to manually specify the GPIO base

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. Other boards may be broken too, which I haven't tested. The

[PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") the davinci GPIO driver fails to probe if we boot in legacy mode from any of the board files. Since the driver now expects every interrupt to be defined as a separate resource, split the

[PATCH 0/3] ARM: davinci: fix ethernet support on da850-evm

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Ethernet doesn't work on da850-evm in legacy boot mode since v4.19. This series addresses two problems I've found. I guess with this kind of intrusive changes in the GPIO driver, other boards may be broken at the moment too. Bartosz Golaszewski (3): ARM: davinci:

[PATCH 0/3] ARM: davinci: fix ethernet support on da850-evm

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Ethernet doesn't work on da850-evm in legacy boot mode since v4.19. This series addresses two problems I've found. I guess with this kind of intrusive changes in the GPIO driver, other boards may be broken at the moment too. Bartosz Golaszewski (3): ARM: davinci:

[PATCH v5 9/9] MAINTAINERS: Move the Freescale QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
The driver was ported to the SPI framework so it can be used as a generic SPI memory driver and not only for SPI NOR. Reflect this transition in the MAINTAINERS file. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-13 Thread Schrempf Frieder
This driver is derived from the SPI NOR driver at mtd/spi-nor/fsl-quadspi.c. It uses the new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash chips (2 buses with 2 CS each). The controller does not support generic SPI messages. This patch

[PATCH v5 9/9] MAINTAINERS: Move the Freescale QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
The driver was ported to the SPI framework so it can be used as a generic SPI memory driver and not only for SPI NOR. Reflect this transition in the MAINTAINERS file. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-13 Thread Schrempf Frieder
This driver is derived from the SPI NOR driver at mtd/spi-nor/fsl-quadspi.c. It uses the new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash chips (2 buses with 2 CS each). The controller does not support generic SPI messages. This patch

[PATCH v5 7/9] ARM: dts: ls1021a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 1 - 1 file changed, 1

[PATCH v5 8/9] ARM64: dts: ls1046a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 - 1 file changed, 1

[PATCH v5 7/9] ARM: dts: ls1021a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 1 - 1 file changed, 1

[PATCH v5 8/9] ARM64: dts: ls1046a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 - 1 file changed, 1

[PATCH v5 6/9] mtd: fsl-quadspi: Remove the driver as it was replaced by spi-fsl-qspi.c

2018-11-13 Thread Schrempf Frieder
There's a new driver using the SPI memory interface of the SPI framework at spi/spi-fsl-qspi.c, which can be used together with m25p80.c to replace the functionality of this SPI NOR driver. The new driver is already in use and this code is not compiled anymore, so let's remove it. Signed-off-by:

[PATCH v5 6/9] mtd: fsl-quadspi: Remove the driver as it was replaced by spi-fsl-qspi.c

2018-11-13 Thread Schrempf Frieder
There's a new driver using the SPI memory interface of the SPI framework at spi/spi-fsl-qspi.c, which can be used together with m25p80.c to replace the functionality of this SPI NOR driver. The new driver is already in use and this code is not compiled anymore, so let's remove it. Signed-off-by:

[PATCH v5 5/9] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Adjust the documentation of the new SPI memory interface based driver to reflect the new drivers settings. The "old" driver was using the "fsl,qspi-has-second-chip" property to select one of two dual chip setups (two chips on one bus or two chips on separate buses). And it used the order in which

[PATCH v5 5/9] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Adjust the documentation of the new SPI memory interface based driver to reflect the new drivers settings. The "old" driver was using the "fsl,qspi-has-second-chip" property to select one of two dual chip setups (two chips on one bus or two chips on separate buses). And it used the order in which

[PATCH v5 1/9] ARM: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'bus-num', 'fsl,spi-num-chipselects' and 'fsl,spi-flash-chipselects' were never

[PATCH v5 1/9] ARM: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'bus-num', 'fsl,spi-num-chipselects' and 'fsl,spi-flash-chipselects' were never

[PATCH v5 4/9] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Move the documentation of the old SPI NOR driver to the place of the new SPI memory interface based driver. Signed-off-by: Frieder Schrempf --- .../bindings/{mtd/fsl-quadspi.txt => spi/spi-fsl-qspi.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git

[PATCH v5 4/9] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Move the documentation of the old SPI NOR driver to the place of the new SPI memory interface based driver. Signed-off-by: Frieder Schrempf --- .../bindings/{mtd/fsl-quadspi.txt => spi/spi-fsl-qspi.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git

[PATCH v5 2/9] arm64: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'num-cs' and 'bus-num' were never read by the driver and can be removed. The

[PATCH v5 0/9] Port the FSL QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
Now that the SPI memory interface was introduced by Boris, it is possible to move drivers from mtd/spi-nor to the SPI framework in order to use them for different type of SPI memory chips. Patch 1 and 2 removes some unused properties from the devicetree and fixes the reg properties to correctly

[PATCH v5 2/9] arm64: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'num-cs' and 'bus-num' were never read by the driver and can be removed. The

[PATCH v5 0/9] Port the FSL QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
Now that the SPI memory interface was introduced by Boris, it is possible to move drivers from mtd/spi-nor to the SPI framework in order to use them for different type of SPI memory chips. Patch 1 and 2 removes some unused properties from the devicetree and fixes the reg properties to correctly

[PATCH RFC] ARM64: dts: marvell: Add DTS file for Turris Mox

2018-11-13 Thread Marek Behún
This is a RFC, please do not merge. This adds basic support for the Turris Mox board from CZ.NIC. Turris Mox is as modular router based on the Armada 3720 SOC (same as EspressoBin). The basic module can be extended by different modules. When those modules are connected, U-Boot has to let kernel

[PATCH RFC] ARM64: dts: marvell: Add DTS file for Turris Mox

2018-11-13 Thread Marek Behún
This is a RFC, please do not merge. This adds basic support for the Turris Mox board from CZ.NIC. Turris Mox is as modular router based on the Armada 3720 SOC (same as EspressoBin). The basic module can be extended by different modules. When those modules are connected, U-Boot has to let kernel

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined in tpm2_get_pcr_allocation(),

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined in tpm2_get_pcr_allocation(),

Re: [PATCH] pinctrl: meson: fix pull enable register calculation

2018-11-13 Thread Neil Armstrong
On 13/11/2018 11:55, Jerome Brunet wrote: > We just changed the code so we apply bias disable on the correct > register but forgot to align the register calculation. The result > is that we apply the change on the correct register, but possibly > at the incorrect offset/bit > > This went

Re: [PATCH] pinctrl: meson: fix pull enable register calculation

2018-11-13 Thread Neil Armstrong
On 13/11/2018 11:55, Jerome Brunet wrote: > We just changed the code so we apply bias disable on the correct > register but forgot to align the register calculation. The result > is that we apply the change on the correct register, but possibly > at the incorrect offset/bit > > This went

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Paul Moore
On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > >>> On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: > > Running the

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Paul Moore
On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > >>> On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: > > Running the

Re: [PATCH 0/2] drm/meson: Allow using optional canvas provider

2018-11-13 Thread Neil Armstrong
On 05/11/2018 15:02, Maxime Jourdan wrote: > Hi Neil, > > On Mon, Nov 5, 2018 at 1:51 PM Neil Armstrong wrote: >> >> Hi Maxime, >> >> On 05/11/2018 11:45, Maxime Jourdan wrote: >>> The meson DRM driver currently uses constant, static canvas indexes. >>> >>> This is not optimal and could conflict

Re: [PATCH] drm/meson: venc: dmt mode must use encp

2018-11-13 Thread Neil Armstrong
On 13/11/2018 09:35, Neil Armstrong wrote: > On 12/11/2018 19:41, Jorge Ramirez-Ortiz wrote: >> From: Jorge Ramirez-Ortiz >> >> The video mode for DMT is only populated to support encp. >> >> Signed-off-by: Jorge Ramirez-Ortiz >> --- >> drivers/gpu/drm/meson/meson_venc.c | 15 --- >>

Re: [PATCH 0/2] drm/meson: Allow using optional canvas provider

2018-11-13 Thread Neil Armstrong
On 05/11/2018 15:02, Maxime Jourdan wrote: > Hi Neil, > > On Mon, Nov 5, 2018 at 1:51 PM Neil Armstrong wrote: >> >> Hi Maxime, >> >> On 05/11/2018 11:45, Maxime Jourdan wrote: >>> The meson DRM driver currently uses constant, static canvas indexes. >>> >>> This is not optimal and could conflict

Re: [PATCH] drm/meson: venc: dmt mode must use encp

2018-11-13 Thread Neil Armstrong
On 13/11/2018 09:35, Neil Armstrong wrote: > On 12/11/2018 19:41, Jorge Ramirez-Ortiz wrote: >> From: Jorge Ramirez-Ortiz >> >> The video mode for DMT is only populated to support encp. >> >> Signed-off-by: Jorge Ramirez-Ortiz >> --- >> drivers/gpu/drm/meson/meson_venc.c | 15 --- >>

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > This patch fix the return value by adjusting to NODE_RECLAIM_NOSCAN. Since > node_reclaim() is only called in page_alloc.c, move it to mm/internal.h. linux/swap.h is included in quite a few places in the kernel, but let's see what's

Re: [REGRESSION] brcmfmac: NULL pointer deference starting next-20181107

2018-11-13 Thread Jon Hunter
On 13/11/2018 13:21, Jon Hunter wrote: ... >> IMHO the best fix here would be to modify efivar_entry_size(), >> adding: >> >> if (!ops) >>     return -ENOENT; >> >> Which makes it return the same error as when we do have efivar >> support but the requested variable is not found. > >

[PATCH] arm64: dts: actions: s700: Add I2C controller nodes

2018-11-13 Thread Parthiban Nallathambi
Add I2C controller nodes for Actions Semiconductor S700 SoC. Signed-off-by: Parthiban Nallathambi --- arch/arm64/boot/dts/actions/s700.dtsi | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > This patch fix the return value by adjusting to NODE_RECLAIM_NOSCAN. Since > node_reclaim() is only called in page_alloc.c, move it to mm/internal.h. linux/swap.h is included in quite a few places in the kernel, but let's see what's

Re: [REGRESSION] brcmfmac: NULL pointer deference starting next-20181107

2018-11-13 Thread Jon Hunter
On 13/11/2018 13:21, Jon Hunter wrote: ... >> IMHO the best fix here would be to modify efivar_entry_size(), >> adding: >> >> if (!ops) >>     return -ENOENT; >> >> Which makes it return the same error as when we do have efivar >> support but the requested variable is not found. > >

[PATCH] arm64: dts: actions: s700: Add I2C controller nodes

2018-11-13 Thread Parthiban Nallathambi
Add I2C controller nodes for Actions Semiconductor S700 SoC. Signed-off-by: Parthiban Nallathambi --- arch/arm64/boot/dts/actions/s700.dtsi | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:59 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject:

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:59 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject:

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 05:04:20AM -0800, Matthew Wilcox wrote: >On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 05:04:20AM -0800, Matthew Wilcox wrote: >On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 01:56:11PM +0100, Michal Hocko wrote: >On Tue 13-11-18 16:04:36, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return value 0 means

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 01:56:11PM +0100, Michal Hocko wrote: >On Tue 13-11-18 16:04:36, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return value 0 means

Re: [PATCH v4 6/6] tpm: ensure that the output of PCR read contains the correct digest size

2018-11-13 Thread Roberto Sassu
On 11/8/2018 3:08 PM, Jarkko Sakkinen wrote: On Tue, Nov 06, 2018 at 04:01:59PM +0100, Roberto Sassu wrote: This patch protects against data corruption that could happen in the bus, by checking that that the digest size returned by the TPM during a PCR read matches the size of the algorithm

Re: [PATCH] net/9p: include trans_common.h to fix missing prototype warning.

2018-11-13 Thread Dominique Martinet
Adeodato Simó wrote on Tue, Nov 13, 2018: > This silences -Wmissing-prototypes when defining p9_release_pages. > > Signed-off-by: Adeodato Simó > --- > net/9p/trans_common.c | 1 + > 1 file changed, 1 insertion(+) > > It was suggested in the kernel-janitors mailing list that silencing >

Re: [PATCH v6 4/4] arm64: defconfig: Enable PWM_SUN4I

2018-11-13 Thread Maxime Ripard
On Tue, Nov 13, 2018 at 05:45:35PM +0530, Jagan Teki wrote: > Allwinner PWM support need for ARM64 Allwinner SoC's > which used pwms, builds it as module. > > Signed-off-by: Jagan Teki Applied all 4 patches, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering

Re: [PATCH v4 6/6] tpm: ensure that the output of PCR read contains the correct digest size

2018-11-13 Thread Roberto Sassu
On 11/8/2018 3:08 PM, Jarkko Sakkinen wrote: On Tue, Nov 06, 2018 at 04:01:59PM +0100, Roberto Sassu wrote: This patch protects against data corruption that could happen in the bus, by checking that that the digest size returned by the TPM during a PCR read matches the size of the algorithm

Re: [PATCH] net/9p: include trans_common.h to fix missing prototype warning.

2018-11-13 Thread Dominique Martinet
Adeodato Simó wrote on Tue, Nov 13, 2018: > This silences -Wmissing-prototypes when defining p9_release_pages. > > Signed-off-by: Adeodato Simó > --- > net/9p/trans_common.c | 1 + > 1 file changed, 1 insertion(+) > > It was suggested in the kernel-janitors mailing list that silencing >

Re: [PATCH v6 4/4] arm64: defconfig: Enable PWM_SUN4I

2018-11-13 Thread Maxime Ripard
On Tue, Nov 13, 2018 at 05:45:35PM +0530, Jagan Teki wrote: > Allwinner PWM support need for ARM64 Allwinner SoC's > which used pwms, builds it as module. > > Signed-off-by: Jagan Teki Applied all 4 patches, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering

Re: [RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-13 Thread Li, Aubrey
On 2018/11/13 18:25, David Laight wrote: > From: Li, Aubrey >> Sent: 12 November 2018 01:41 > ... >> VZEROUPPER instruction resets the init state. If context switch happens >> to occur exactly after VZEROUPPER instruction, XINUSE bitmap is empty(all >> zeros), which indicates the task is not using

Re: [RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-13 Thread Li, Aubrey
On 2018/11/13 18:25, David Laight wrote: > From: Li, Aubrey >> Sent: 12 November 2018 01:41 > ... >> VZEROUPPER instruction resets the init state. If context switch happens >> to occur exactly after VZEROUPPER instruction, XINUSE bitmap is empty(all >> zeros), which indicates the task is not using

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the

Re: [PATCH] mm/hugetl.c: keep the page mapping info when free_huge_page() hit the VM_BUG_ON_PAGE

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 20:38:16, Yongkai Wu wrote: > It is better to keep page mapping info when free_huge_page() hit the > VM_BUG_ON_PAGE, > so we can get more infomation from the coredump for further analysis. The patch seems to be whitespace damaged. Put that aside, have you actually seen a case

Re: [PATCH] mm/hugetl.c: keep the page mapping info when free_huge_page() hit the VM_BUG_ON_PAGE

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 20:38:16, Yongkai Wu wrote: > It is better to keep page mapping info when free_huge_page() hit the > VM_BUG_ON_PAGE, > so we can get more infomation from the coredump for further analysis. The patch seems to be whitespace damaged. Put that aside, have you actually seen a case

Re: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread mika.westerb...@linux.intel.com
On Tue, Nov 13, 2018 at 12:36:20PM +, Shameerali Kolothum Thodi wrote: > > @@ -156,9 +156,9 @@ static void pcie_do_write_cmd(struct controller *ctrl, > > u16 cmd, > > slot_ctrl |= (cmd & mask); > > ctrl->cmd_busy = 1; > > smp_mb(); > > + ctrl->slot_ctrl = slot_ctrl; > > Actually

Re: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread mika.westerb...@linux.intel.com
On Tue, Nov 13, 2018 at 12:36:20PM +, Shameerali Kolothum Thodi wrote: > > @@ -156,9 +156,9 @@ static void pcie_do_write_cmd(struct controller *ctrl, > > u16 cmd, > > slot_ctrl |= (cmd & mask); > > ctrl->cmd_busy = 1; > > smp_mb(); > > + ctrl->slot_ctrl = slot_ctrl; > > Actually

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of > Shameerali Kolothum Thodi > Sent: 13 November 2018 12:36 > To: mika.westerb...@linux.intel.com > Cc: linux-...@vger.kernel.org; Lukas Wunner ; linux- > ker...@vger.kernel.org; Linuxarm > Subject:

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of > Shameerali Kolothum Thodi > Sent: 13 November 2018 12:36 > To: mika.westerb...@linux.intel.com > Cc: linux-...@vger.kernel.org; Lukas Wunner ; linux- > ker...@vger.kernel.org; Linuxarm > Subject:

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 16:04:36, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the return value of

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 16:04:36, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the return value of

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-13 Thread Andy Shevchenko
+Cc: mailing lists On Tue, Nov 13, 2018 at 5:21 AM Loic Wei-Yu-Neng wrote: > Here you go, > I attached my patch. Thanks, though in a kernel we have not using attachments. Moreover, since you forgot to include mailing lists the patchwork doesn't catch this either. Can you send it in a regular

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-13 Thread Andy Shevchenko
+Cc: mailing lists On Tue, Nov 13, 2018 at 5:21 AM Loic Wei-Yu-Neng wrote: > Here you go, > I attached my patch. Thanks, though in a kernel we have not using attachments. Moreover, since you forgot to include mailing lists the patchwork doesn't catch this either. Can you send it in a regular

Re: [PATCH] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
Am Freitag, 9. November 2018, 13:53:35 CET schrieb Heiko Stuebner: > From: Heiko Stuebner > > The bq24196 is another variant of the bq24190 charger ic. > Its register set is identical to the bq24192 and it even reuses > the same part number (0x5). > > Signed-off-by: Heiko Stuebner > --- looks

Re: [PATCH] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
Am Freitag, 9. November 2018, 13:53:35 CET schrieb Heiko Stuebner: > From: Heiko Stuebner > > The bq24196 is another variant of the bq24190 charger ic. > Its register set is identical to the bq24192 and it even reuses > the same part number (0x5). > > Signed-off-by: Heiko Stuebner > --- looks

[PATCH v2] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
From: Heiko Stuebner The bq24196 is another variant of the bq24190 charger ic. Its register set is identical to the bq24192 and it even reuses the same part number (0x5). Signed-off-by: Heiko Stuebner --- This should go on top of the bq24192 support patches from Brian Masney / Jonathan Marek

[PATCH v2] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
From: Heiko Stuebner The bq24196 is another variant of the bq24190 charger ic. Its register set is identical to the bq24192 and it even reuses the same part number (0x5). Signed-off-by: Heiko Stuebner --- This should go on top of the bq24192 support patches from Brian Masney / Jonathan Marek

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Roberto Sassu
On 11/13/2018 1:34 PM, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen : On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Roberto Sassu
On 11/13/2018 1:34 PM, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen : On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:25 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject:

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:25 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject:

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Jarkko Sakkinen
On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: > > Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen > > : > > >On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu wrote: > > >> > > >> Unfortunately, I

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Jarkko Sakkinen
On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: > > Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen > > : > > >On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu wrote: > > >> > > >> Unfortunately, I

RE: [PATCH v6 00/17] Removed nested TPM operations

2018-11-13 Thread Winkler, Tomas
> > [was Detach TPM space code out of the tpm_transmit() flow but the scope > expanded a bit.] I believe you making this series artificially large we can merge the first 4 patches and leave the rest for further discussion. Thanks Tomas

RE: [PATCH v6 00/17] Removed nested TPM operations

2018-11-13 Thread Winkler, Tomas
> > [was Detach TPM space code out of the tpm_transmit() flow but the scope > expanded a bit.] I believe you making this series artificially large we can merge the first 4 patches and leave the rest for further discussion. Thanks Tomas

[PATCH v6 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up

[PATCH v6 17/17] tpm: remove @flags from tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/char/tpm/tpm-dev-common.c | 2 +- drivers/char/tpm/tpm-interface.c | 18 drivers/char/tpm/tpm-sysfs.c

[PATCH v6 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up

[PATCH v6 17/17] tpm: remove @flags from tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/char/tpm/tpm-dev-common.c | 2 +- drivers/char/tpm/tpm-interface.c | 18 drivers/char/tpm/tpm-sysfs.c

[PATCH v6 13/17] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2018-11-13 Thread Jarkko Sakkinen
Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have been treated in the same way. Signed-off-by: Jarkko

[PATCH v6 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Jarkko Sakkinen
Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110 +++ drivers/char/tpm/tpm-interface.c |

[PATCH v6 13/17] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2018-11-13 Thread Jarkko Sakkinen
Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have been treated in the same way. Signed-off-by: Jarkko

[PATCH v6 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Jarkko Sakkinen
Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110 +++ drivers/char/tpm/tpm-interface.c |

<    5   6   7   8   9   10   11   12   13   >