Re: [PATCH v2] powerpc: Support CMDLINE_EXTEND

2019-07-31 Thread Christophe Leroy
Le 01/08/2019 à 04:12, Chris Packham a écrit : Bring powerpc in line with other architectures that support extending or overriding the bootloader provided command line. The current behaviour is most like CMDLINE_FROM_BOOTLOADER where the bootloader command line is preferred but the kernel con

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #12 from Christophe Leroy (christophe.le...@c-s.fr) --- On my side under QEMU, deactivating KASAN on lib/mpi significantly reduces boot time. For that, just add the following on top of lib/mpi/Makefile: KASAN_SANITIZE := n -- You ar

[PATCH] powerpc/powernv: Print helpful message when cores guarded

2019-07-31 Thread Joel Stanley
Often the firmware will guard out cores after a crash. This often undesirable, and is not immediately noticeable. This adds an informative message when a CPU device tree nodes are marked bad in the device tree. Signed-off-by: Joel Stanley --- Tested on qemu 4.1 with this patch applied: https:

[PATCH] powerpc/configs: Add debug config fragment

2019-07-31 Thread Andrew Donnellan
Add a debug config fragment that we can use to put useful debug options into. Currently we only define a target for powernv[_be]_debug_defconfig, and the only option included is to enable debugfs SCOM access. Suggested-by: Michael Ellerman Signed-off-by: Andrew Donnellan --- arch/powerpc/Makef

Re: [PATCH 3/3] powerpc/spinlock: Fix oops in shared-processor spinlocks

2019-07-31 Thread Andrew Donnellan
On 28/7/19 10:54 pm, Christopher M. Riedl wrote: Booting w/ ppc64le_defconfig + CONFIG_PREEMPT results in the attached kernel trace due to calling shared-processor spinlocks while not running in an SPLPAR. Previously, the out-of-line spinlocks implementations were selected based on CONFIG_PPC_SPL

Re: [PATCH 2/3] powerpc/spinlocks: Rename SPLPAR-only spinlocks

2019-07-31 Thread Andrew Donnellan
On 28/7/19 10:54 pm, Christopher M. Riedl wrote: The __rw_yield and __spin_yield locks only pertain to SPLPAR mode. Rename them to make this relationship obvious. Signed-off-by: Christopher M. Riedl Reviewed-by: Andrew Donnellan --- arch/powerpc/include/asm/spinlock.h | 6 -- arch/p

Re: [PATCH 1/3] powerpc/spinlocks: Refactor SHARED_PROCESSOR

2019-07-31 Thread Andrew Donnellan
On 28/7/19 10:54 pm, Christopher M. Riedl wrote: Determining if a processor is in shared processor mode is not a constant so don't hide it behind a #define. Signed-off-by: Christopher M. Riedl This seems aesthetically more right. Reviewed-by: Andrew Donnellan --- arch/powerpc/include/as

[PATCH v2] powerpc: Support CMDLINE_EXTEND

2019-07-31 Thread Chris Packham
Bring powerpc in line with other architectures that support extending or overriding the bootloader provided command line. The current behaviour is most like CMDLINE_FROM_BOOTLOADER where the bootloader command line is preferred but the kernel config can provide a fallback so CMDLINE_FROM_BOOTLOADE

Re: [PATCH] powerpc: Support CMDLINE_EXTEND

2019-07-31 Thread Chris Packham
On Wed, 2019-07-31 at 09:23 +0200, Christophe Leroy wrote: > > Le 30/07/2019 à 23:10, Chris Packham a écrit : > > > > Hi Christophe, > > > > On Tue, 2019-07-30 at 09:02 +0200, Christophe Leroy wrote: > > > > > > > > > Le 24/07/2019 à 07:33, Chris Packham a écrit : > > > > > > > > > > > > Dev

Re: [RFC PATCH] powerpc/64s/radix: introduce option to disable broadcast tlbie

2019-07-31 Thread Nicholas Piggin
Christophe Leroy's on July 31, 2019 11:56 pm: > > > Le 31/07/2019 à 14:32, Nicholas Piggin a écrit : >> This is an initial hack of a quick option to disable use of the tlbie >> instruction. This takes the simplest possible initial pass of just >> replacing low level tlbie functions with IPIs. Thi

[PATCH 0/8] Raspberry Pi 4 DMA addressing support

2019-07-31 Thread Nicolas Saenz Julienne
Hi all, this series attempts to address some issues we found while bringing up the new Raspberry Pi 4 in arm64 and it's intended to serve as a follow up of this discussion: https://lkml.org/lkml/2019/7/17/476 The new Raspberry Pi 4 has up to 4GB of memory but most peripherals can only address the

[PATCH 6/8] dma-direct: turn ARCH_ZONE_DMA_BITS into a variable

2019-07-31 Thread Nicolas Saenz Julienne
Some architectures, notably arm64, are interested in tweaking this depending on their runtime dma addressing limitations. Signed-off-by: Nicolas Saenz Julienne --- arch/powerpc/include/asm/page.h | 9 - arch/powerpc/mm/mem.c | 14 -- arch/s390/include/asm/page.h

Re: [PATCH] hwrng: Use device-managed registration API

2019-07-31 Thread Ludovic Desroches
On Thu, Jul 25, 2019 at 04:01:55PM +0800, Chuhong Yuan wrote: > External E-Mail > > > Use devm_hwrng_register to simplify the implementation. > Manual unregistration and some remove functions can be > removed now. > > Signed-off-by: Chuhong Yuan > --- > drivers/char/hw_random/atmel-rng.c |

Re: microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Randy Dunlap
On 7/31/19 10:15 AM, Mike Rapoport wrote: > On Wed, Jul 31, 2019 at 04:41:14PM +0200, Michal Hocko wrote: >> On Wed 31-07-19 17:21:29, Mike Rapoport wrote: >>> On Wed, Jul 31, 2019 at 03:00:37PM +0200, Michal Hocko wrote: I am sorry, but I still do not follow. Who is consuming that node i

Re: microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Mike Rapoport
On Wed, Jul 31, 2019 at 04:41:14PM +0200, Michal Hocko wrote: > On Wed 31-07-19 17:21:29, Mike Rapoport wrote: > > On Wed, Jul 31, 2019 at 03:00:37PM +0200, Michal Hocko wrote: > > > > > > I am sorry, but I still do not follow. Who is consuming that node id > > > information when NUMA=n. In other

[PATCH v10 06/22] powerpc: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For powerpc pmd_large() already exists and does what we wan

Re: microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Michal Hocko
On Wed 31-07-19 17:21:29, Mike Rapoport wrote: > On Wed, Jul 31, 2019 at 03:00:37PM +0200, Michal Hocko wrote: > > On Wed 31-07-19 15:26:32, Mike Rapoport wrote: > > > On Wed, Jul 31, 2019 at 01:40:16PM +0200, Michal Hocko wrote: > > > > On Wed 31-07-19 14:14:22, Mike Rapoport wrote: > > > > > On W

Re: microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Mike Rapoport
On Wed, Jul 31, 2019 at 03:00:37PM +0200, Michal Hocko wrote: > On Wed 31-07-19 15:26:32, Mike Rapoport wrote: > > On Wed, Jul 31, 2019 at 01:40:16PM +0200, Michal Hocko wrote: > > > On Wed 31-07-19 14:14:22, Mike Rapoport wrote: > > > > On Wed, Jul 31, 2019 at 10:03:09AM +0200, Michal Hocko wrote:

Re: [RFC PATCH] powerpc/64s/radix: introduce option to disable broadcast tlbie

2019-07-31 Thread Christophe Leroy
Le 31/07/2019 à 14:32, Nicholas Piggin a écrit : This is an initial hack of a quick option to disable use of the tlbie instruction. This takes the simplest possible initial pass of just replacing low level tlbie functions with IPIs. This means it's not as performant as it could be if we spend

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #11 from Erhard F. (erhar...@mailbox.org) --- I opened bug #204397 with your output. The G4 DP won't boot to a stage where I can get a dmesg, even if waiting for 10 minutes. -- You are receiving this mail because: You are watching t

microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Michal Hocko
On Wed 31-07-19 15:26:32, Mike Rapoport wrote: > On Wed, Jul 31, 2019 at 01:40:16PM +0200, Michal Hocko wrote: > > On Wed 31-07-19 14:14:22, Mike Rapoport wrote: > > > On Wed, Jul 31, 2019 at 10:03:09AM +0200, Michal Hocko wrote: > > > > On Wed 31-07-19 09:24:21, Mike Rapoport wrote: > > > > > [ so

[RFC PATCH] powerpc/64s/radix: introduce option to disable broadcast tlbie

2019-07-31 Thread Nicholas Piggin
This is an initial hack of a quick option to disable use of the tlbie instruction. This takes the simplest possible initial pass of just replacing low level tlbie functions with IPIs. This means it's not as performant as it could be if we spend some time optmizing it, but on the other hand having a

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-31 Thread Mike Rapoport
On Wed, Jul 31, 2019 at 01:40:16PM +0200, Michal Hocko wrote: > On Wed 31-07-19 14:14:22, Mike Rapoport wrote: > > On Wed, Jul 31, 2019 at 10:03:09AM +0200, Michal Hocko wrote: > > > On Wed 31-07-19 09:24:21, Mike Rapoport wrote: > > > > [ sorry for a late reply too, somehow I missed this thread be

[Bug 204371] BUG kmalloc-4k (Tainted: G W ): Object padding overwritten

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204371 --- Comment #4 from m...@ellerman.id.au --- bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=204371 > > --- Comment #2 from Andrew Morton (a...@linux-foundation.org) --- > (switched to email. Please respo

Re: [PATCH] powerpc: Use nid as fallback for chip_id

2019-07-31 Thread Srikar Dronamraju
* Michael Ellerman [2019-07-29 22:41:55]: > > > > + chip_id = of_get_ibm_chip_id(np); > > + if (chip_id == -1) > > + chip_id = of_node_to_nid(np); > > + > > of_node_put(np); > > - return of_get_ibm_chip_id(np); > > + return chip_id; > > } > > A nid is not a chip-id. >

Re: [PATCH v2 5/5] powerpc/configs: Disable SCOM_DEBUGFS in powernv_defconfig

2019-07-31 Thread Michael Ellerman
Andrew Donnellan writes: > On 9/5/19 3:54 pm, Andrew Donnellan wrote: >> On 9/5/19 3:37 pm, Nicholas Piggin wrote: >>> Andrew Donnellan's on May 9, 2019 3:11 pm: SCOM_DEBUGFS is really not needed for anything other than low-level hardware debugging. opal-prd uses its own interf

Re: [Bug 204371] BUG kmalloc-4k (Tainted: G W ): Object padding overwritten

2019-07-31 Thread Michael Ellerman
bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=204371 > > --- Comment #2 from Andrew Morton (a...@linux-foundation.org) --- > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > > On Mon, 29 Jul 2019 22

Re: [PATCH 107/107] perf vendor events power9: Added missing event descriptions

2019-07-31 Thread Michael Ellerman
Arnaldo Carvalho de Melo writes: > From: Michael Petlan > > Documentation source: > > https://wiki.raptorcs.com/w/images/6/6b/POWER9_PMU_UG_v12_28NOV2018_pub.pdf > > Signed-off-by: Michael Petlan > Reviewed-by: Madhavan Srinivasan > Cc: Ananth N Mavinakayanahalli > Cc: Carl Love > Cc: Michael

Re: [PATCH] drivers/macintosh/smu.c: Mark expected switch fall-through

2019-07-31 Thread Michael Ellerman
Kees Cook writes: > On Wed, Jul 31, 2019 at 12:28:55AM +1000, Michael Ellerman wrote: >> Stephen Rothwell writes: >> > Mark switch cases where we are expecting to fall through. >> > >> > This patch fixes the following warning (Building: powerpc): >> > >> > drivers/macintosh/smu.c: In function 'sm

Re: [PATCH v2] powerpc/powernv: Restrict OPAL symbol map to only be readable by root

2019-07-31 Thread Michael Ellerman
Andrew Donnellan writes: > On 3/5/19 5:52 pm, Andrew Donnellan wrote: >> Currently the OPAL symbol map is globally readable, which seems bad as it >> contains physical addresses. >> >> Restrict it to root. >> >> Suggested-by: Michael Ellerman >> Cc: Jordan Niethe >> Cc: Stewart Smith >> Fixes

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-31 Thread Michal Hocko
On Wed 31-07-19 14:14:22, Mike Rapoport wrote: > On Wed, Jul 31, 2019 at 10:03:09AM +0200, Michal Hocko wrote: > > On Wed 31-07-19 09:24:21, Mike Rapoport wrote: > > > [ sorry for a late reply too, somehow I missed this thread before ] > > > > > > On Tue, Jul 30, 2019 at 10:14:15AM +0200, Michal H

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #10 from Christophe Leroy (christophe.le...@c-s.fr) --- Yes feel free to take anything I have attached here. -- You are receiving this mail because: You are watching the assignee of the bug.

Re: [PATCH v2 1/5] powerpc/powernv: Move SCOM access code into powernv platform

2019-07-31 Thread Michael Ellerman
Andrew Donnellan writes: > On 9/5/19 3:11 pm, Andrew Donnellan wrote: >> The powernv platform is the only one that directly accesses SCOMs. Move the >> support code to platforms/powernv, and get rid of the PPC_SCOM Kconfig >> option, as SCOM support is always selected when compiling for powernv. >

Applied "ASoC: tegra: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: tegra: use devm_platform_ioremap_resource() to simplify code 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 th

Applied "ASoC: tegra20_das: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: tegra20_das: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: rockchip: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: rockchip: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: imx-audmux: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: imx-audmux: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: mt8173: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: mt8173: use devm_platform_ioremap_resource() to simplify code 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 t

Applied "ASoC: mt6797: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: mt6797: use devm_platform_ioremap_resource() to simplify code 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 t

Applied "ASoC: bcm2835-i2s: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: bcm2835-i2s: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: ep93xx-i2s: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: ep93xx-i2s: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: sirf: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: sirf: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: mxs-saif: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: mxs-saif: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: spear: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: spear: use devm_platform_ioremap_resource() to simplify code 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 th

Applied "ASoC: sun8i-codec-analog: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: sun8i-codec-analog: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: meson: axg-tdm-formatter: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: axg-tdm-formatter: use devm_platform_ioremap_resource() to simplify code 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 (us

Applied "ASoC: kirkwood-i2s: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: kirkwood-i2s: use devm_platform_ioremap_resource() to simplify code 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 sometim

Applied "ASoC: psc-ac97: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: psc-ac97: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify code 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 somet

Applied "ASoC: codecs: jz4725b: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: codecs: jz4725b: use devm_platform_ioremap_resource() to simplify code 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 some

Applied "ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: sun8i-codec: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: sun8i-codec: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: sunxi: sun50i-codec-analog: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: sunxi: sun50i-codec-analog: use devm_platform_ioremap_resource() to simplify code 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 (

Applied "ASoC: xtfpga-i2s: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: xtfpga-i2s: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: uniphier: aio-dma: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: uniphier: aio-dma: use devm_platform_ioremap_resource() to simplify code 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 s

Applied "ASoC: meson: axg-fifo: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: axg-fifo: use devm_platform_ioremap_resource() to simplify code 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 some

Applied "ASoC: codecs: msm8916-wcd: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: codecs: msm8916-wcd: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: mmp-sspa: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: mmp-sspa: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: meson: axg-spdifout: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: axg-spdifout: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: au1x: psc-i2s: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: au1x: psc-i2s: use devm_platform_ioremap_resource() to simplify code 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 someti

Applied "ASoC: meson: g12a-tohdmitx: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: g12a-tohdmitx: use devm_platform_ioremap_resource() to simplify code 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 (usuall

Applied "ASoC: meson: axg-pdm: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: axg-pdm: use devm_platform_ioremap_resource() to simplify code 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 somet

Applied "ASoC: inno_rk3036: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: inno_rk3036: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: stm32: sai: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: stm32: sai: use devm_platform_ioremap_resource() to simplify code 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

Applied "ASoC: jz4740: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: jz4740: use devm_platform_ioremap_resource() to simplify code 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 t

Applied "ASoC: meson: axg-spdifin: use devm_platform_ioremap_resource() to simplify code" to the asoc tree

2019-07-31 Thread Mark Brown
The patch ASoC: meson: axg-spdifin: use devm_platform_ioremap_resource() to simplify code 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

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-31 Thread Mike Rapoport
On Wed, Jul 31, 2019 at 10:03:09AM +0200, Michal Hocko wrote: > On Wed 31-07-19 09:24:21, Mike Rapoport wrote: > > [ sorry for a late reply too, somehow I missed this thread before ] > > > > On Tue, Jul 30, 2019 at 10:14:15AM +0200, Michal Hocko wrote: > > > [Sorry for a late reply] > > > > > > O

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #9 from Erhard F. (erhar...@mailbox.org) --- Hmm, nice.. I'll try to get the G4 booting further by prolonging HUNG_TASK_TIMEOUT and PANIC_TIMEOUT to 10min. Probably the btrfs guys also want to know about this btrfs deadlock. I try to

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #8 from Christophe Leroy (christophe.le...@c-s.fr) --- Created attachment 284061 --> https://bugzilla.kernel.org/attachment.cgi?id=284061&action=edit Screenshot2 Then it reverts to text mode and continue booting -- You are receivi

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #7 from Christophe Leroy (christophe.le...@c-s.fr) --- Created attachment 284059 --> https://bugzilla.kernel.org/attachment.cgi?id=284059&action=edit Screenshot1 When booting QEMU in graphic mode, it first hangs for some time here.

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #6 from Christophe Leroy (christophe.le...@c-s.fr) --- >> = >> OpenBIOS 1.1 [Oct 19 2017 07:00] >> Configuration device id QEMU version 1 machine id 1 >> CPUs: 1 >> Memory: 20

[PATCH v3 10/10] powerpc/fsl_booke/kaslr: dump out kernel offset information on panic

2019-07-31 Thread Jason Yan
When kaslr is enabled, the kernel offset is different for every boot. This brings some difficult to debug the kernel. Dump out the kernel offset when panic so that we can easily debug the kernel. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin

[PATCH v3 08/10] powerpc/fsl_booke/kaslr: clear the original kernel if randomized

2019-07-31 Thread Jason Yan
The original kernel still exists in the memory, clear it now. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/kaslr_b

[PATCH v3 09/10] powerpc/fsl_booke/kaslr: support nokaslr cmdline parameter

2019-07-31 Thread Jason Yan
One may want to disable kaslr when boot, so provide a cmdline parameter 'nokaslr' to support this. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook --- arch/powerpc/kernel/k

[PATCH v3 06/10] powerpc/fsl_booke/32: implement KASLR infrastructure

2019-07-31 Thread Jason Yan
This patch add support to boot kernel from places other than KERNELBASE. Since CONFIG_RELOCATABLE has already supported, what we need to do is map or copy kernel to a proper place and relocate. Freescale Book-E parts expect lowmem to be mapped by fixed TLB entries(TLB1). The TLB1 entries are not su

[PATCH v3 07/10] powerpc/fsl_booke/32: randomize the kernel image offset

2019-07-31 Thread Jason Yan
After we have the basic support of relocate the kernel in some appropriate place, we can start to randomize the offset now. Entropy is derived from the banner and timer, which will change every build and boot. This not so much safe so additionally the bootloader may pass entropy via the /chosen/ka

[PATCH v3 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c

2019-07-31 Thread Jason Yan
These two variables are both defined in init_32.c and init_64.c. Move them to init-common.c. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook Reviewed-by: Christophe Leroy -

[PATCH v3 05/10] powerpc/fsl_booke/32: introduce reloc_kernel_entry() helper

2019-07-31 Thread Jason Yan
Add a new helper reloc_kernel_entry() to jump back to the start of the new kernel. After we put the new kernel in a randomized place we can use this new helper to enter the kernel and begin to relocate again. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy

[PATCH v3 00/10] implement KASLR for powerpc/fsl_booke/32

2019-07-31 Thread Jason Yan
This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals. Since CONFIG_RELOCATABLE has already supported, what we need to do is map or copy kernel to a proper place and relocate. Freescale Boo

[PATCH v3 04/10] powerpc/fsl_booke/32: introduce create_tlb_entry() helper

2019-07-31 Thread Jason Yan
Add a new helper create_tlb_entry() to create a tlb entry by the virtual and physical address. This is a preparation to support boot kernel at a randomized address. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerr

[PATCH v3 01/10] powerpc: unify definition of M_IF_NEEDED

2019-07-31 Thread Jason Yan
M_IF_NEEDED is defined too many times. Move it to a common place. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook Reviewed-by: Christophe Leroy --- arch/powerpc/include/as

[PATCH v3 03/10] powerpc: introduce kimage_vaddr to store the kernel base

2019-07-31 Thread Jason Yan
Now the kernel base is a fixed value - KERNELBASE. To support KASLR, we need a variable to store the kernel base. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook Reviewed-by

[Bug 204375] kernel 5.2.4 w. KASAN enabled fails to boot on a PowerMac G4 3,6 at very early stage

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204375 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284057 --> https://bugzilla.kernel.org/attachment.cgi?id=284057&action=edit early boot picture (PowerMac G4 DP, kernel 5.2.5) Thanks! Your patch cleanly applied against

[Bug 204371] BUG kmalloc-4k (Tainted: G W ): Object padding overwritten

2019-07-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204371 --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- On Tue, 30 Jul 2019 11:52:44 -0700 Andrew Morton wrote: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > > On Mon, 29 Jul 2019 2

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-31 Thread Michal Hocko
On Wed 31-07-19 09:24:21, Mike Rapoport wrote: > [ sorry for a late reply too, somehow I missed this thread before ] > > On Tue, Jul 30, 2019 at 10:14:15AM +0200, Michal Hocko wrote: > > [Sorry for a late reply] > > > > On Mon 15-07-19 17:55:07, Hoan Tran OS wrote: > > > Hi, > > > > > > On 7/12/

Re: [PATCH] powerpc/kasan: fix early boot failure on PPC32

2019-07-31 Thread Christophe Leroy
Le 31/07/2019 à 08:01, Christophe Leroy a écrit : Due to commit 4a6d8cf90017 ("powerpc/mm: don't use pte_alloc_kernel() until slab is available on PPC32"), pte_alloc_kernel() cannot be used during early KASAN init. Fix it by using memblock_alloc() instead. Reported-by: Erhard F. Fixes: 2edb

Re: [PATCH] powerpc: Support CMDLINE_EXTEND

2019-07-31 Thread Christophe Leroy
Le 30/07/2019 à 23:10, Chris Packham a écrit : Hi Christophe, On Tue, 2019-07-30 at 09:02 +0200, Christophe Leroy wrote: Le 24/07/2019 à 07:33, Chris Packham a écrit : Device tree aware platforms can make use of CMDLINE_EXTEND to extend the kernel command line provided by the bootloader.