[RFC PATCH] mm/gup: try_pin_compound_head() can be static

2019-12-17 Thread kbuild test robot
Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") Signed-off-by: kbuild test robot --- gup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 038b71165a761..849a6f55938e6 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -75,7 +75,7 @@ static inline stru

Re: [PATCH v9 23/25] mm/gup: track FOLL_PIN pages

2019-12-17 Thread kbuild test robot
Hi John, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on rdma/for-next] [also build test WARNING on linus/master v5.5-rc2 next-20191216] [cannot apply to mmotm/master vfio/next] [if your patch is applied to the wrong git tree, please drop us a note to help impro

Re: [RFC PATCH 2/2] mm/mmu_gather: Avoid multiple page walk cache flush

2019-12-17 Thread Peter Zijlstra
On Tue, Dec 17, 2019 at 12:47:13PM +0530, Aneesh Kumar K.V wrote: > On tlb_finish_mmu() kernel does a tlb flush before mmu gather table > invalidate. > The mmu gather table invalidate depending on kernel config also does another > TLBI. Avoid the later on tlb_finish_mmu(). That is already avoide

Re: [RFC PATCH 1/2] mm/mmu_gather: Invalidate TLB correctly on batch allocation failure and flush

2019-12-17 Thread Peter Zijlstra
On Tue, Dec 17, 2019 at 12:47:12PM +0530, Aneesh Kumar K.V wrote: > Architectures for which we have hardware walkers of Linux page table should > flush TLB on mmu gather batch allocation failures and batch flush. Some > architectures like POWER supports multiple translation modes (hash and radix) >

Re: [PATCH 08/10] crypto/NX: Add NX GZIP user space API

2019-12-17 Thread Herbert Xu
On Sun, Dec 15, 2019 at 05:05:19AM -0800, Haren Myneni wrote: > > On power9, userspace can send GZIP compression requests directly to NX > once kernel establishes NX channel / window. This patch provides GZIP > engine access to user space via /dev/crypto/nx-gzip device node with > open, VAS_TX_WIN

Re: [RFC PATCH 2/2] mm/mmu_gather: Avoid multiple page walk cache flush

2019-12-17 Thread Aneesh Kumar K.V
On 12/17/19 2:28 PM, Peter Zijlstra wrote: On Tue, Dec 17, 2019 at 12:47:13PM +0530, Aneesh Kumar K.V wrote: On tlb_finish_mmu() kernel does a tlb flush before mmu gather table invalidate. The mmu gather table invalidate depending on kernel config also does another TLBI. Avoid the later on tlb_

Re: [RFC PATCH 1/2] mm/mmu_gather: Invalidate TLB correctly on batch allocation failure and flush

2019-12-17 Thread Aneesh Kumar K.V
On 12/17/19 2:39 PM, Peter Zijlstra wrote: On Tue, Dec 17, 2019 at 12:47:12PM +0530, Aneesh Kumar K.V wrote: Architectures for which we have hardware walkers of Linux page table should flush TLB on mmu gather batch allocation failures and batch flush. Some architectures like POWER supports multi

Re: [PATCH] drivers: char: tpm: remove unneeded MODULE_VERSION() usage

2019-12-17 Thread Jarkko Sakkinen
On Mon, 2019-12-16 at 09:42 +0100, Enrico Weigelt, metux IT consult wrote: > Remove MODULE_VERSION(), as it isn't needed at all: the only version > making sense is the kernel version. Take the following line away: > See also: https://lkml.org/lkml/2017/11/22/480 And just before SOB: Link: https

Re: [PATCH] drivers: char: tpm: remove unneeded MODULE_VERSION() usage

2019-12-17 Thread Jarkko Sakkinen
On Tue, 2019-12-17 at 13:16 +0200, Jarkko Sakkinen wrote: > On Mon, 2019-12-16 at 09:42 +0100, Enrico Weigelt, metux IT consult wrote: > > Remove MODULE_VERSION(), as it isn't needed at all: the only version > > making sense is the kernel version. > > Take the following line away: > > > See also:

Re: [Intel-gfx] [PATCH v3 4/7] drm/i915/perf: open access for CAP_SYS_PERFMON privileged process

2019-12-17 Thread Alexey Budankov
On 17.12.2019 12:45, Lionel Landwerlin wrote: > On 16/12/2019 22:03, Alexey Budankov wrote: >> Open access to i915_perf monitoring for CAP_SYS_PERFMON privileged processes. >> For backward compatibility reasons access to i915_perf subsystem remains open >> for CAP_SYS_ADMIN privileged processes b

Re: [RFC PATCH 2/2] mm/mmu_gather: Avoid multiple page walk cache flush

2019-12-17 Thread Peter Zijlstra
On Tue, Dec 17, 2019 at 03:45:36PM +0530, Aneesh Kumar K.V wrote: > On 12/17/19 2:28 PM, Peter Zijlstra wrote: > > On Tue, Dec 17, 2019 at 12:47:13PM +0530, Aneesh Kumar K.V wrote: > > > On tlb_finish_mmu() kernel does a tlb flush before mmu gather table > > > invalidate. > > > The mmu gather tab

Re: [RFC PATCH 1/2] mm/mmu_gather: Invalidate TLB correctly on batch allocation failure and flush

2019-12-17 Thread Peter Zijlstra
On Tue, Dec 17, 2019 at 04:18:40PM +0530, Aneesh Kumar K.V wrote: > On 12/17/19 2:39 PM, Peter Zijlstra wrote: > > On Tue, Dec 17, 2019 at 12:47:12PM +0530, Aneesh Kumar K.V wrote: > > > Architectures for which we have hardware walkers of Linux page table > > > should > > > flush TLB on mmu gather

[PATCH RFC v1 1/3] powerpc/memtrace: Enforce power of 2 for memory buffer size

2019-12-17 Thread David Hildenbrand
The code mentions "Trace memory needs to be aligned to the size", and e.g., round_up() is documented to work on power of 2 only. Also, the whole search is not optimized e.g., for being aligned to memory block size only while allocating multiple memory blocks. Let's just limit to powers of 2 that a

[PATCH RFC v1 2/3] powerpc/memtrace: Factor out readding memory into memtrace_free_node()

2019-12-17 Thread David Hildenbrand
While at it, move it, we want to reuse it soon. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Andrew Morton Cc: David Hildenbrand Cc: Allison Randal Cc: Jens Axboe Cc: Anshuman Khandual Cc: Thomas Gleixner Cc: Balbir Singh Cc: Rashmica Gupta Cc: linuxppc-dev@lis

[PATCH RFC v1 3/3] powerpc/memtrace: Don't offline memory blocks via offline_pages()

2019-12-17 Thread David Hildenbrand
offline_pages() should not be called outside of the MM core. Especially, having to manually fiddle with the memory block states is a sign that this is not a good idea. To offline memory block devices cleanly, device_offline() should be used. This is the only remaining caller of offline_pages(), exc

Re: [PATCH RFC v1 0/3] powerpc/memtrace: Don't offline memory blocks via offline_pages()

2019-12-17 Thread David Hildenbrand
On 17.12.19 13:38, David Hildenbrand wrote: > This RFC is based on linux-next and > - 2 patches from "PATCH RFC v4 00/13] virtio-mem: paravirtualized memory" > -> "mm: Allow to offline unmovable PageOffline() pages via > MEM_GOING_OFFLINE" [1] > -> "mm/memory_hotplug: Introduce offline_and_r

Re: [Intel-gfx] [PATCH v3 4/7] drm/i915/perf: open access for CAP_SYS_PERFMON privileged process

2019-12-17 Thread Lionel Landwerlin
On 16/12/2019 22:03, Alexey Budankov wrote: Open access to i915_perf monitoring for CAP_SYS_PERFMON privileged processes. For backward compatibility reasons access to i915_perf subsystem remains open for CAP_SYS_ADMIN privileged processes but CAP_SYS_ADMIN usage for secure i915_perf monitoring is

Re: [PATCH v3 3/3] powerpc: Book3S 64-bit "heavyweight" KASAN support

2019-12-17 Thread Daniel Axtens
Hi Christophe, I'm working through your feedback, thank you. Regarding this one: >> --- a/arch/powerpc/kernel/process.c >> +++ b/arch/powerpc/kernel/process.c >> @@ -2081,7 +2081,14 @@ void show_stack(struct task_struct *tsk, unsigned >> long *stack) >> /* >> * See if

Re: [PATCH v5 0/5] Append new variables to vmcoreinfo (TCR_EL1.T1SZ for arm64 and MAX_PHYSMEM_BITS for all archs)

2019-12-17 Thread Borislav Petkov
On Mon, Dec 16, 2019 at 12:16:12PM +0530, Bhupesh Sharma wrote: > I remember there was a suggestion during the review of an earlier > version to keep them as a separate patch(es) so that the documentation > text is easier to review, Documentation text is one sentence, respectively. Not really wort

Re: [RFC PATCH] mm/gup: try_pin_compound_head() can be static

2019-12-17 Thread John Hubbard
On 12/17/19 12:03 AM, kbuild test robot wrote: Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") Signed-off-by: kbuild test robot --- gup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 038b71165a761..849a6f55938e6 100644 --- a/mm/gup.c +

[PATCH v12 23/25] mm/gup: track FOLL_PIN pages

2019-12-17 Thread John Hubbard
Add tracking of pages that were pinned via FOLL_PIN. As mentioned in the FOLL_PIN documentation, callers who effectively set FOLL_PIN are required to ultimately free such pages via unpin_user_page(). The effect is similar to FOLL_GET, and may be thought of as "FOLL_GET for DIO and/or RDMA use". P

Re: [PATCH v3 1/7] capabilities: introduce CAP_SYS_PERFMON to kernel and user space

2019-12-17 Thread Stephen Smalley
On 12/16/19 2:58 PM, Alexey Budankov wrote: Introduce CAP_SYS_PERFMON capability devoted to secure system performance monitoring and observability so that CAP_SYS_PERFMON would assist CAP_SYS_ADMIN capability in its governing role for perf_events, i915_perf and other subsystems of the kernel. C

[Bug 205885] BUG: KASAN: null-ptr-deref in strncpy+0x3c/0x60

2019-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205885 --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- 5.5-rc1 works with identical kernel .config. And on -rc2 I get that without KASAN as well. I'll do a bisect and report back. -- You are receiving this mail because: You are watching the a

[Bug 205889] New: CONFIG_PPC_85xx with CONFIG_CORENET_GENERIC outputs uImage instead of zImage

2019-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205889 Bug ID: 205889 Summary: CONFIG_PPC_85xx with CONFIG_CORENET_GENERIC outputs uImage instead of zImage Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.5

Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

2019-12-17 Thread Will Deacon
On Thu, Dec 12, 2019 at 12:49:52PM -0800, Linus Torvalds wrote: > On Thu, Dec 12, 2019 at 11:34 AM Will Deacon wrote: > > > > The root of my concern in all of this, and what started me looking at it in > > the first place, is the interaction with 'typeof()'. Inheriting 'volatile' > > for a pointer

[Bug 205885] BUG: KASAN: null-ptr-deref in strncpy+0x3c/0x60

2019-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205885 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286333|0 |1 is obsolete|

[Bug 205885] [Bisected] BUG: KASAN: null-ptr-deref in strncpy+0x3c/0x60

2019-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205885 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 286345 --> https://bugzilla.kernel.org/attachment.cgi?id=286345&action=edit bisect.log -- You are receiving this mail because: You are watching the assignee of the bug

[Bug 205885] [Bisected] BUG: KASAN: null-ptr-deref in strncpy+0x3c/0x60

2019-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205885 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286345|0 |1 is obsolete|

Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

2019-12-17 Thread Linus Torvalds
On Tue, Dec 17, 2019 at 9:07 AM Will Deacon wrote: > > However, I'm really banging my head against the compiler trying to get > your trick above to work for pointer types when the pointed-to-type is > not defined. You are right, of course. The trick works fine with arithmetic types, but since it

Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

2019-12-17 Thread Linus Torvalds
On Tue, Dec 17, 2019 at 10:04 AM Linus Torvalds wrote: > > Let me think about it. .. and in the short term, maybe for code generation, the right thing is to just do the cast in the bitops, where we can just cast to "unsigned long *" and remove the volatile that way. I'm still hoping there's a tr

Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

2019-12-17 Thread Will Deacon
On Tue, Dec 17, 2019 at 10:05:53AM -0800, Linus Torvalds wrote: > On Tue, Dec 17, 2019 at 10:04 AM Linus Torvalds > wrote: > > > > Let me think about it. > > .. and in the short term, maybe for code generation, the right thing > is to just do the cast in the bitops, where we can just cast to > "u

Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

2019-12-17 Thread Linus Torvalds
On Tue, Dec 17, 2019 at 10:04 AM Linus Torvalds wrote: > > Let me think about it. How about we just get rid of the union entirely, and just use 'unsigned long' or 'unsigned long long' depending on the size. Something like the attached patch - it still requires that it be an arithmetic type, but

[PATCH] asm-generic/tlb: Avoid potential double flush

2019-12-17 Thread Peter Zijlstra
On Tue, Dec 17, 2019 at 01:34:16PM +0100, Peter Zijlstra wrote: > Perhaps if we replace !tlb->end with something like: > > !tlb->freed_tables && !tlb->cleared_p* > > (which GCC should be able to do with a single load and mask) > > I've not really thought too hard about it yet, I need to run so

[PATCH 1/1] kvm/book3s_64: Fixes crash caused by not cleaning vhost IOTLB

2019-12-17 Thread Leonardo Bras
Fixes a bug that happens when a virtual machine is created without DDW, with vhost supporting a virtio-net device. In this scenario, an IOMMU with 32-bit DMA window will possibly map IOVA's to different memory addresses. As the code works today, H_STUFF_TCE hypercall will be dealt only with kvm c

[PATCH] powerpc/setup_64: use DEFINE_DEBUGFS_ATTRIBUTE to define fops_rfi_flush

2019-12-17 Thread Chen Zhou
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Signed-off-by: Chen

Re: [PATCH 01/10] soc: sunxi: convert to devm_platform_ioremap_resource

2019-12-17 Thread Chen-Yu Tsai
On Sun, Dec 15, 2019 at 1:54 AM Yangtao Li wrote: > > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li Acked-by: Chen-Yu Tsai > --- > drivers/soc/sunxi/sunxi_sram.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/soc/sunx

[PATCH-tty-testing] tty/serial/8250: Add has_sysrq to plat_serial8250_port

2019-12-17 Thread Dmitry Safonov
In contrast to 8250/8250_of, legacy_serial on powerpc does fill (struct plat_serial8250_port). The reason is likely that it's done on device_initcall(), not on probe. So, 8250_core is not yet probed. Propagate value from platform_device on 8250 probe - in case powepc legacy driver it's initialized

Re: [PATCH] powerpc: ensure that swiotlb buffer is allocated from low memory

2019-12-17 Thread Michael Ellerman
On Wed, 2019-12-04 at 12:35:24 UTC, Mike Rapoport wrote: > From: Mike Rapoport > > Some powerpc platforms (e.g. 85xx) limit DMA-able memory way below 4G. If a > system has more physical memory than this limit, the swiotlb buffer is not > addressable because it is allocated from memblock using top

Re: [PATCH v3] ocxl: Fix potential memory leak on context creation

2019-12-17 Thread Michael Ellerman
On Mon, 2019-12-09 at 10:55:13 UTC, Frederic Barrat wrote: > If we couldn't fully init a context, we were leaking memory. > > Fixes: b9721d275cc2 ("ocxl: Allow external drivers to use OpenCAPI contexts") > Signed-off-by: Frederic Barrat Applied to powerpc fixes, thanks. https://git.kernel.org/p

Re: [PATCH] powerpc/irq: fix stack overflow verification

2019-12-17 Thread Michael Ellerman
On Mon, 2019-12-09 at 06:19:08 UTC, Christophe Leroy wrote: > Before commit 0366a1c70b89 ("powerpc/irq: Run softirqs off the top of > the irq stack"), check_stack_overflow() was called by do_IRQ(), before > switching to the irq stack. > In that commit, do_IRQ() was renamed __do_irq(), and is now ex

Re: [PATCH] powerpc/8xx: fix bogus __init on mmu_mapin_ram_chunk()

2019-12-17 Thread Michael Ellerman
On Sat, 2019-12-14 at 08:10:29 UTC, Christophe Leroy wrote: > Remove __init qualifier for mmu_mapin_ram_chunk() as it is called by > mmu_mark_initmem_nx() and mmu_mark_rodata_ro() which are not __init > functions. > > At the same time, mark it static as it is only used in this file. > > Reported-

Re: [PATCH v2] powerpc: Fix __clear_user() with KUAP enabled

2019-12-17 Thread Michael Ellerman
On Mon, 2019-12-09 at 13:22:21 UTC, Andrew Donnellan wrote: > The KUAP implementation adds calls in clear_user() to enable and disable > access to userspace memory. However, it doesn't add these to > __clear_user(), which is used in the ptrace regset code. > > As there's only one direct user of __

Re: [PATCH v2] powerpc/pseries/cmm: fix managed page counts when migrating pages between zones

2019-12-17 Thread Michael Ellerman
On Mon, 2019-12-16 at 10:30:58 UTC, David Hildenbrand wrote: > Commit 63341ab03706 (virtio-balloon: fix managed page counts when migrati= > ng > pages between zones) fixed a long existing BUG in the virtio-balloon > driver when pages would get migrated between zones. I did not try to > reproduce o

[PATCH 1/2] powerpc/pseries/svm: Don't access some SPRs

2019-12-17 Thread Sukadev Bhattiprolu
Ultravisor disables some CPU features like EBB and BHRB in the HFSCR for secure virtual machines (SVMs). If the SVMs attempt to access related registers, they will get a Program Interrupt. Use macros/wrappers to skip accessing EBB and BHRB registers in secure VMs. Signed-off-by: Sukadev Bhattipro

[PATCH 2/2] powerpc/pseries/svm: Disable PMUs in SVMs

2019-12-17 Thread Sukadev Bhattiprolu
For now, disable hardware PMU facilities in secure virtual machines (SVMs) to prevent any information leak between SVMs and the (untrusted) HV. With this, a simple 'myperf' program that uses the perf_event_open() fails for SVMs (with the corresponding fix to UV). In normal VMs and on the bare-meta

Re: [PATCH v3 3/3] powerpc: Book3S 64-bit "heavyweight" KASAN support

2019-12-17 Thread Daniel Axtens
Daniel Axtens writes: > Hi Christophe, > > I'm working through your feedback, thank you. Regarding this one: > >>> --- a/arch/powerpc/kernel/process.c >>> +++ b/arch/powerpc/kernel/process.c >>> @@ -2081,7 +2081,14 @@ void show_stack(struct task_struct *tsk, unsigned >>> long *stack) >>>

Re: [PATCH 1/1] kvm/book3s_64: Fixes crash caused by not cleaning vhost IOTLB

2019-12-17 Thread Alexey Kardashevskiy
On 18/12/2019 08:06, Leonardo Bras wrote: > Fixes a bug that happens when a virtual machine is created without DDW, > with vhost supporting a virtio-net device. > > In this scenario, an IOMMU with 32-bit DMA window will possibly map > IOVA's to different memory addresses. > > As the code works

Re: [RFC PATCH 1/2] mm/mmu_gather: Invalidate TLB correctly on batch allocation failure and flush

2019-12-17 Thread Aneesh Kumar K.V
Peter Zijlstra writes: > On Tue, Dec 17, 2019 at 04:18:40PM +0530, Aneesh Kumar K.V wrote: >> On 12/17/19 2:39 PM, Peter Zijlstra wrote: >> > On Tue, Dec 17, 2019 at 12:47:12PM +0530, Aneesh Kumar K.V wrote: >> > > Architectures for which we have hardware walkers of Linux page table >> > > shoul

[PATCH v2 1/3] powerpc/mmu_gather: Enable RCU_TABLE_FREE even for !SMP case

2019-12-17 Thread Aneesh Kumar K.V
A follow up patch is going to make sure we correctly invalidate page walk cache before we free page table pages. In order to keep things simple enable RCU_TABLE_FREE even for !SMP so that we don't have to fixup the !SMP case differently in the followup patch Signed-off-by: Aneesh Kumar K.V --- a

[PATCH v2 2/3] mm/mmu_gather: Invalidate TLB correctly on batch allocation failure and flush

2019-12-17 Thread Aneesh Kumar K.V
From: Peter Zijlstra Architectures for which we have hardware walkers of Linux page table should flush TLB on mmu gather batch allocation failures and batch flush. Some architectures like POWER supports multiple translation modes (hash and radix) and in the case of POWER only radix translation mo

[PATCH v2 3/3] asm-generic/tlb: Avoid potential double flush

2019-12-17 Thread Aneesh Kumar K.V
From: Peter Zijlstra Aneesh reported that: tlb_flush_mmu() tlb_flush_mmu_tlbonly() tlb_flush() <-- #1 tlb_flush_mmu_free() tlb_table_flush() tlb_table_invalidate() tlb_flush_mmu_tlbonly()

Re: [PATCH V3 1/2] KVM: PPC: Add skip_page_out parameter

2019-12-17 Thread Paul Mackerras
On Sat, Dec 14, 2019 at 06:11:04PM -0800, Sukadev Bhattiprolu wrote: > > This patch is based on Bharata's v11 KVM patches for secure guests: > https://lists.ozlabs.org/pipermail/linuxppc-dev/2019-November/200918.html > --- > > From: Sukadev Bhattiprolu > Date: Fri, 13 Dec 2019 15:06:16 -0600 > S

Re: [PATCH V3 2/2] KVM: PPC: Implement H_SVM_INIT_ABORT hcall

2019-12-17 Thread Paul Mackerras
On Sat, Dec 14, 2019 at 06:12:08PM -0800, Sukadev Bhattiprolu wrote: > > Implement the H_SVM_INIT_ABORT hcall which the Ultravisor can use to > abort an SVM after it has issued the H_SVM_INIT_START and before the > H_SVM_INIT_DONE hcalls. This hcall could be used when Ultravisor > encounters secur

Re: [PATCH-tty-testing] tty/serial/8250: Add has_sysrq to plat_serial8250_port

2019-12-17 Thread Greg Kroah-Hartman
On Wed, Dec 18, 2019 at 04:01:11AM +, Dmitry Safonov wrote: > In contrast to 8250/8250_of, legacy_serial on powerpc does fill > (struct plat_serial8250_port). The reason is likely that it's done on > device_initcall(), not on probe. So, 8250_core is not yet probed. > > Propagate value from pla

Re: [PATCH v3 3/3] powerpc: Book3S 64-bit "heavyweight" KASAN support

2019-12-17 Thread Daniel Axtens
>>[For those not immersed in ppc64, in real mode, the top nibble or 2 bits >>(depending on radix/hash mmu) of the address is ignored. The linear >>mapping is placed at 0xc000. This means that a pointer to >>part of the linear mapping will work both in real mode, where

Re: [PATCH 04/14] powerpc/vas: Setup IRQ mapping and register port for each window

2019-12-17 Thread Oliver O'Halloran
On Wed, Nov 27, 2019 at 12:07 PM Haren Myneni wrote: > > *snip* > > @@ -36,7 +62,18 @@ static int init_vas_instance(struct platform_device *pdev) > return -ENODEV; > } > > - if (pdev->num_resources != 4) { > + rc = of_property_read_u64(dn, "ibm,vas-port", &port)

[PATCH v15 03/23] selftests/vm/pkeys: Move generic definitions to header file

2019-12-17 Thread Sandipan Das
From: Ram Pai This moves all the generic definitions and helper functions to a header file. cc: Dave Hansen cc: Florian Weimer Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Hansen Signed-off-by: Sandipan Das --- tools/testing/selftests/vm/pkey-helpers.h| 3

[PATCH v15 06/23] selftests/vm/pkeys: Typecast the pkey register

2019-12-17 Thread Sandipan Das
From: Ram Pai The size of the pkey register can vary across architectures. Hence, the pkey_reg_t type is introduced for abstraction in preparation for multi-arch support. cc: Dave Hansen cc: Florian Weimer Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Hansen Sig

[PATCH v15 07/23] selftests: vm: pkeys: Add helpers for pkey bits

2019-12-17 Thread Sandipan Das
This introduces some functions that help with setting or fetching bits of a particular pkey. This also adds an abstraction for getting a pkey's bit position in the pkey register as this may vary across architectures. cc: Dave Hansen cc: Florian Weimer cc: Ram Pai Signed-off-by: Sandipan Das --