[PATCH 1/1] powerpc/eeh: differentiate duplicate detection message

2019-10-16 Thread Sam Bobroff
Currently when an EEH error is detected, the system log receives the same (or almost the same) message twice: EEH: PHB#0 failure detected, location: N/A EEH: PHB#0 failure detected, location: N/A or EEH: eeh_dev_check_failure: Frozen PHB#0-PE#0 detected EEH: Frozen PHB#0-PE#0 detected This looks

Re: system call hook triggers kernel panic

2019-10-16 Thread Oliver O'Halloran
On Thu, Oct 17, 2019 at 1:01 PM Yi Li wrote: > > Hi, *snip* > The kernel module can be insert correctly, and we mount a tmpfs, then umount. > Kernel panic when doing umount: > " > [ 148.569777] umount /home/adam/test 0x0 > [ 148.608227] umount2 returned 0 > [ 148.608268] Unable to handle

Re: [PATCH] powernv/eeh: Fix oops when probing cxl devices

2019-10-16 Thread Sam Bobroff
On Wed, Oct 16, 2019 at 06:28:33PM +0200, Frederic Barrat wrote: > Recent cleanup in the way EEH support is added to a device causes a > kernel oops when the cxl driver probes a device and creates virtual > devices discovered on the FPGA: > > BUG: Kernel NULL pointer dereference at 0x00a0

Re: [PATCH 2/2] virtio_ring: Use DMA API if memory is encrypted

2019-10-16 Thread Jason Wang
On 2019/10/15 下午3:35, Christoph Hellwig wrote: On Fri, Oct 11, 2019 at 06:25:19PM -0700, Ram Pai wrote: From: Thiago Jung Bauermann Normally, virtio enables DMA API with VIRTIO_F_IOMMU_PLATFORM, which must be set by both device and guest driver. However, as a hack, when DMA API returns

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Benjamin Herrenschmidt
On Wed, 2019-10-16 at 20:30 +1100, Michael Ellerman wrote: > I think the main reason is that in some configurations we can't use 64K > pages for MMIO, so the 64K vmalloc mappings and 4K MMIO mappings need to > be in different segments. > > It's possible that's no longer true on modern configs.

Re: Linux PowerPC, PPC4xx

2019-10-16 Thread Benjamin Herrenschmidt
On Wed, 2019-10-16 at 15:19 +0200, Carlo Pisani wrote: > hi > I am a student, I represent a group of friends running a couple of > opensource projects(1), and we are lost with this(2) problem. > > I wrote here(2) a couple of years ago, we are still working with > kernel > 4.11.0 and there is

system call hook triggers kernel panic

2019-10-16 Thread Yi Li
Hi, We tried to replace the umount system call with our own code. Bellow is the simplified test case. When doing umount, there is kernel panic (on centos7 4.14.0-115.10.1.el7a.ppc64le kernel) on P9 OpenPOWER machine. Could you please give suggestions on how to make the system call hook work

Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Yuehaibing
On 2019/10/17 0:44, Florian Fainelli wrote: > On 10/16/19 3:46 AM, YueHaibing wrote: >> devm_platform_ioremap_resource() internally have platform_get_resource() >> and devm_ioremap_resource() in it. So instead of calling them separately >> use devm_platform_ioremap_resource() directly. > > Did

[PATCH v9 5/5] kasan debug: track pages allocated for vmalloc shadow

2019-10-16 Thread Daniel Axtens
Provide the current number of vmalloc shadow pages in /sys/kernel/debug/kasan/vmalloc_shadow_pages. Signed-off-by: Daniel Axtens --- v8: rename kasan_vmalloc/shadow_pages -> kasan/vmalloc_shadow_pages On v4 (no dynamic freeing), I saw the following approximate figures on my test VM: - fresh

[PATCH v9 4/5] x86/kasan: support KASAN_VMALLOC

2019-10-16 Thread Daniel Axtens
In the case where KASAN directly allocates memory to back vmalloc space, don't map the early shadow page over it. We prepopulate pgds/p4ds for the range that would otherwise be empty. This is required to get it synced to hardware on boot, allowing the lower levels of the page tables to be filled

[PATCH v9 3/5] fork: support VMAP_STACK with KASAN_VMALLOC

2019-10-16 Thread Daniel Axtens
Supporting VMAP_STACK with KASAN_VMALLOC is straightforward: - clear the shadow region of vmapped stacks when swapping them in - tweak Kconfig to allow VMAP_STACK to be turned on with KASAN Reviewed-by: Dmitry Vyukov Signed-off-by: Daniel Axtens --- arch/Kconfig | 9 +

[PATCH v9 2/5] kasan: add test for vmalloc

2019-10-16 Thread Daniel Axtens
Test kasan vmalloc support by adding a new test to the module. Signed-off-by: Daniel Axtens -- v5: split out per Christophe Leroy --- lib/test_kasan.c | 26 ++ 1 file changed, 26 insertions(+) diff --git lib/test_kasan.c lib/test_kasan.c index

[PATCH v9 1/5] kasan: support backing vmalloc space with real shadow memory

2019-10-16 Thread Daniel Axtens
Hook into vmalloc and vmap, and dynamically allocate real shadow memory to back the mappings. Most mappings in vmalloc space are small, requiring less than a full page of shadow space. Allocating a full shadow page per mapping would therefore be wasteful. Furthermore, to ensure that different

[PATCH v9 0/5] kasan: support backing vmalloc space with real shadow memory

2019-10-16 Thread Daniel Axtens
Currently, vmalloc space is backed by the early shadow page. This means that kasan is incompatible with VMAP_STACK. This series provides a mechanism to back vmalloc space with real, dynamically allocated memory. I have only wired up x86, because that's the only currently supported arch I can work

[Bug 205201] Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M

2019-10-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205201 --- Comment #1 from Christian Zigotzky (chzigot...@xenosoft.de) --- I have the same problem with my analog PCI TV card Typhoon TView RDS + FM Stereo (BT878 chip) in my AmigaOne X5000. It only works with reducing the mem size to 3500MB

Re: [PATCH v2 0/6] KVM: PPC: Book3S: HV: XIVE: Allocate less VPs in OPAL

2019-10-16 Thread Greg Kurz
On Fri, 27 Sep 2019 13:53:32 +0200 Greg Kurz wrote: > This brings some fixes and allows to start more VMs with an in-kernel > XIVE or XICS-on-XIVE device. > > Changes since v1 (https://patchwork.ozlabs.org/cover/1166099/): > - drop a useless patch > - add a patch to show VP ids in debugfs > -

Re: [PATCH] powerpc/pseries: safely roll back failed DLPAR cpu add

2019-10-16 Thread Nathan Lynch
Nathan Lynch writes: > Move dlpar_offline_cpu() before dlpar_online_cpu() so the latter can > use the former to re-offline any threads it has onlined when it > encounters an error. Since moving this code yields a few valid checkpatch warnings, I've submitted a v2 which cleans these up first.

[PATCH v2 1/2] powerpc/pseries: address checkpatch warnings in dlpar_offline_cpu

2019-10-16 Thread Nathan Lynch
Remove some stray blank lines, convert a printk to pr_warn, and address a line length violation. One functional change: use WARN_ON instead of BUG_ON in case H_PROD of a ceded thread yields an unexpected result from the platform. We can expect this code path to get uninterruptibly stuck in

[PATCH v2 0/2] safely roll back failed DLPAR cpu add

2019-10-16 Thread Nathan Lynch
This is a respin of https://patchwork.ozlabs.org/patch/1164930/. Changes since v1: * Address checkpatch warnings in dlpar_offline_cpu before moving it. * Add Fixes: tags. Nathan Lynch (2): powerpc/pseries: address checkpatch warnings in dlpar_offline_cpu powerpc/pseries: safely roll back

[PATCH v2 2/2] powerpc/pseries: safely roll back failed DLPAR cpu add

2019-10-16 Thread Nathan Lynch
dlpar_online_cpu() attempts to online all threads of a core that has been added to an LPAR. If onlining a non-primary thread fails (e.g. due to an allocation failure), the core is left with at least one thread online. dlpar_cpu_add() attempts to roll back the whole operation, releasing the core

Re: [PATCH v5 03/23] PCI: hotplug: Add a flag for the movable BARs feature

2019-10-16 Thread Bjorn Helgaas
On Wed, Oct 16, 2019 at 06:50:30PM +0300, Sergey Miroshnichenko wrote: > On 10/16/19 1:14 AM, Bjorn Helgaas wrote: > > On Mon, Sep 30, 2019 at 03:59:25PM +0300, Sergey Miroshnichenko wrote: > > > On 9/28/19 1:02 AM, Bjorn Helgaas wrote: > > > > It's possible that a hot-add will trigger this

Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > devm_platform_ioremap_resource() internally have platform_get_resource() > and devm_ioremap_resource() in it. So instead of calling them separately > use devm_platform_ioremap_resource() directly. Did your coccinelle script not cover

Re: [PATCH -next 02/13] hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Acked-by: Florian Fainelli -- Florian

[PATCH] powernv/eeh: Fix oops when probing cxl devices

2019-10-16 Thread Frederic Barrat
Recent cleanup in the way EEH support is added to a device causes a kernel oops when the cxl driver probes a device and creates virtual devices discovered on the FPGA: BUG: Kernel NULL pointer dereference at 0x00a0 Faulting instruction address: 0xc0048070 Oops: Kernel

Re: [PATCH -next 06/13] hwrng: meson - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Kevin Hilman
YueHaibing writes: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Reviewed-by: Kevin Hilman

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Cameron Berkenpas
Seems to work for me so far! I've tried successfully against 5.2.21 and 5.3.6. Thanks! -Cameron On 10/15/19 10:51 PM, Aneesh Kumar K.V wrote: With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), kernel now split the 64TB address range into 4

[PATCH V2 1/2] powerpc/powernv: ocxl move SPA definition

2019-10-16 Thread christophe lombard
The Scheduled Process Area, located in system momory, contains a list of Scheduled Processes (Structure of Process Element) to be serviced by the AFUs. The process elements contain the address context and other state information for the processes scheduled to run on the AFUs. Update, rename and

[PATCH V2 2/2] powerpc/powernv: ocxl move TL definition

2019-10-16 Thread christophe lombard
Specifies the templates in the Transaction Layer that the OpenCAPI device/host support when transmitting/receiving DL/DLX frames to or from the OpenCAPI device/host. Update, rename and create new few platform-specific calls which can be used by drivers. No functional change. Signed-off-by:

[PATCH V2 0/2] ocxl: Move SPA and TL definitions

2019-10-16 Thread christophe lombard
This series moves the definition and the management of scheduled process area (SPA) and of the templates (Transaction Layer) for an ocxl card, using the OCAPI interface. The code is now located in the specific arch powerpc platform. These patches will help for a futur implementation of the ocxl

Re: [PATCH v5 03/23] PCI: hotplug: Add a flag for the movable BARs feature

2019-10-16 Thread Sergey Miroshnichenko
On 10/16/19 1:14 AM, Bjorn Helgaas wrote: On Mon, Sep 30, 2019 at 03:59:25PM +0300, Sergey Miroshnichenko wrote: Hello Bjorn, On 9/28/19 1:02 AM, Bjorn Helgaas wrote: On Fri, Aug 16, 2019 at 07:50:41PM +0300, Sergey Miroshnichenko wrote: When hot-adding a device, the bridge may have windows

Re: [EXTERNAL] [RFC PATCH] powernv/eeh: Fix oops when probing cxl devices

2019-10-16 Thread Frederic Barrat
Le 15/10/2019 à 21:41, Frederic Barrat a écrit : Le 15/10/2019 à 07:42, Sam Bobroff a écrit : On Fri, Sep 27, 2019 at 02:45:10PM +0200, Frederic Barrat wrote: Recent cleanup in the way EEH support is added to a device causes a kernel oops when the cxl driver probes a device and creates

Re: [PATCH v6 06/10] mm/memory_hotplug: Poison memmap in remove_pfn_range_from_zone()

2019-10-16 Thread David Hildenbrand
On 06.10.19 10:56, David Hildenbrand wrote: Let's poison the pages similar to when adding new memory in sparse_add_section(). Also call remove_pfn_range_from_zone() from memunmap_pages(), so we can poison the memmap from there as well. While at it, calculate the pfn in memunmap_pages() only

Re: [PATCH v8 1/5] kasan: support backing vmalloc space with real shadow memory

2019-10-16 Thread Mark Rutland
Hi Andrey, On Wed, Oct 16, 2019 at 03:19:50PM +0300, Andrey Ryabinin wrote: > On 10/14/19 4:57 PM, Daniel Axtens wrote: > >>> + /* > >>> + * Ensure poisoning is visible before the shadow is made visible > >>> + * to other CPUs. > >>> + */ > >>> + smp_wmb(); > >> > >> I'm not quite understand

Linux PowerPC, PPC4xx

2019-10-16 Thread Carlo Pisani
hi I am a student, I represent a group of friends running a couple of opensource projects(1), and we are lost with this(2) problem. I wrote here(2) a couple of years ago, we are still working with kernel 4.11.0 and there is broken support for initializing the PCI. The PCI initialization of the

Linux PowerPC, PPC4xx

2019-10-16 Thread Carlo Pisani
hi I am a student, I represent a group of friends running a couple of opensource projects(1), and we are lost with this(2) problem. I wrote here(2) a couple of years ago, we are still working with kernel 4.11.0 and there is broken support for initializing the PCI. The PCI initialization of the

Re: [PATCH -next 11/13] hwrng: st - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Patrice CHOTARD
Hi On 10/16/19 12:46 PM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing > --- > drivers/char/hw_random/st-rng.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git

Re: [PATCH v8 1/5] kasan: support backing vmalloc space with real shadow memory

2019-10-16 Thread Andrey Ryabinin
On 10/14/19 4:57 PM, Daniel Axtens wrote: > Hi Andrey, > > >>> + /* >>> +* Ensure poisoning is visible before the shadow is made visible >>> +* to other CPUs. >>> +*/ >>> + smp_wmb(); >> >> I'm not quite understand what this barrier do and why it needed. >> And if it's really

Re: [PATCH v6] numa: make node_to_cpumask_map() NUMA_NO_NODE aware

2019-10-16 Thread Yunsheng Lin
On 2019/10/16 0:58, Greg KH wrote: > On Tue, Oct 15, 2019 at 06:40:29PM +0800, Yunsheng Lin wrote: >> On 2019/10/14 17:25, Greg KH wrote: >>> On Mon, Oct 14, 2019 at 04:00:46PM +0800, Yunsheng Lin wrote: On 2019/10/12 18:47, Greg KH wrote: > On Sat, Oct 12, 2019 at 12:40:01PM +0200, Greg

[PATCH -next 09/13] hwrng: pasemi - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/pasemi-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/pasemi-rng.c

[PATCH -next 12/13] hwrng: tx4939 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/tx4939-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/tx4939-rng.c

[PATCH -next 13/13] hwrng: xgene - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/xgene-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/xgene-rng.c

[PATCH -next 11/13] hwrng: st - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/st-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/st-rng.c b/drivers/char/hw_random/st-rng.c

[PATCH -next 10/13] hwrng: pic32 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/pic32-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/pic32-rng.c

[PATCH -next 08/13] hwrng: omap - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/omap-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c

[PATCH -next 07/13] hwrng: npcm - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/npcm-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/npcm-rng.c

[PATCH -next 06/13] hwrng: meson - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/meson-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/meson-rng.c

[PATCH -next 04/13] hwrng: hisi - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/hisi-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/hisi-rng.c

[PATCH -next 05/13] hwrng: ks-sa - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/ks-sa-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/ks-sa-rng.c

[PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. YueHaibing (13): hwrng: atmel - use devm_platform_ioremap_resource() to simplify code hwrng: bcm2835

[PATCH -next 02/13] hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/bcm2835-rng.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/char/hw_random/bcm2835-rng.c

[PATCH -next 03/13] hwrng: exynos - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/exynos-trng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/exynos-trng.c

[PATCH -next 01/13] hwrng: atmel - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/atmel-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/atmel-rng.c

Re: [PATCH V6 2/2] mm/debug: Add tests validating architecture page table helpers

2019-10-16 Thread Anshuman Khandual
On 10/15/2019 11:39 PM, Qian Cai wrote: > On Tue, 2019-10-15 at 14:51 +0530, Anshuman Khandual wrote: >> +static unsigned long __init get_random_vaddr(void) >> +{ >> +unsigned long random_vaddr, random_pages, total_user_pages; >> + >> +total_user_pages = (TASK_SIZE - FIRST_USER_ADDRESS)

Re: [PATCH 03/34] powerpc: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
On 2019-10-16 20:33:08 [+1100], Michael Ellerman wrote: > Christophe Leroy writes: > > Le 15/10/2019 à 21:17, Sebastian Andrzej Siewior a écrit : > >> From: Thomas Gleixner > >> > >> CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. > >> Both PREEMPT and PREEMPT_RT

Re: [PATCH 03/34] powerpc: Use CONFIG_PREEMPTION

2019-10-16 Thread Michael Ellerman
Christophe Leroy writes: > Le 15/10/2019 à 21:17, Sebastian Andrzej Siewior a écrit : >> From: Thomas Gleixner >> >> CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. >> Both PREEMPT and PREEMPT_RT require the same functionality which today >> depends on CONFIG_PREEMPT.

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Michael Ellerman
Christoph Hellwig writes: > On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: >> With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel >> regions in the same 0xc range"), kernel now split the 64TB address range >> into 4 contexts each of 16TB. That implies we can do

Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers

2019-10-16 Thread Anshuman Khandual
On 10/16/2019 12:12 AM, Qian Cai wrote: > On Tue, 2019-10-15 at 20:51 +0530, Anshuman Khandual wrote: >> >> On 10/15/2019 08:11 PM, Qian Cai wrote: >>> The x86 will crash with linux-next during boot due to this series (v5) with >>> the >>> config below plus CONFIG_DEBUG_VM_PGTABLE=y. I am not

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Aneesh Kumar K.V
On 10/16/19 11:35 AM, Christoph Hellwig wrote: On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), kernel now split the 64TB address range into 4 contexts each of 16TB. That implies

Re: [PATCH v2 00/29] vmlinux.lds.h: Refactor EXCEPTION_TABLE and NOTES

2019-10-16 Thread Heiko Carstens
On Thu, Oct 10, 2019 at 05:05:40PM -0700, Kees Cook wrote: > Arch maintainers: please send Acks (if you haven't already) for your > respective linker script changes; the intention is for this series to > land via -tip. > > v1:

Re: [PATCH v2 06/29] s390: Move RO_DATA into "text" PT_LOAD Program Header

2019-10-16 Thread Heiko Carstens
On Thu, Oct 10, 2019 at 05:05:46PM -0700, Kees Cook wrote: > In preparation for moving NOTES into RO_DATA, move RO_DATA back into the > "text" PT_LOAD Program Header, as done with other architectures. The > "data" PT_LOAD now starts with the writable data section. > > Signed-off-by: Kees Cook >

Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers

2019-10-16 Thread Michal Hocko
On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: > > > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) with > > the > > config below plus CONFIG_DEBUG_VM_PGTABLE=y. I am not sure if v6 would > > address > > it. > > > >

RE: [PATCH 2/2] virtio_ring: Use DMA API if memory is encrypted

2019-10-16 Thread Ram Pai
On Tue, Oct 15, 2019 at 09:35:01AM +0200, Christoph Hellwig wrote: > On Fri, Oct 11, 2019 at 06:25:19PM -0700, Ram Pai wrote: > > From: Thiago Jung Bauermann > > > > Normally, virtio enables DMA API with VIRTIO_F_IOMMU_PLATFORM, which must > > be set by both device and guest driver. However, as

Re: [PATCH 03/34] powerpc: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
On 2019-10-16 06:57:48 [+0200], Christophe Leroy wrote: > > > Le 15/10/2019 à 21:17, Sebastian Andrzej Siewior a écrit : > > From: Thomas Gleixner > > > > CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. > > Both PREEMPT and PREEMPT_RT require the same functionality

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Christoph Hellwig
On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: > With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel > regions in the same 0xc range"), kernel now split the 64TB address range > into 4 contexts each of 16TB. That implies we can do only 16TB linear > mapping. This