Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-05-30 Thread Aneesh Kumar K.V
On 5/30/20 12:52 AM, Dan Williams wrote: On Fri, May 29, 2020 at 3:55 AM Aneesh Kumar K.V wrote: On 5/29/20 3:22 PM, Jan Kara wrote: Hi! On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: Thanks Michal. I also missed Jeff in this email thread. And I think you'll also need some of the

Re: ppc64le and 32-bit LE userland compatibility

2020-05-30 Thread Christophe Leroy
Le 29/05/2020 à 21:03, Will Springer a écrit : [...] Also worth noting is the one other outstanding bug, where the time-related syscalls in the 32-bit vDSO seem to return garbage. It doesn't look like an endian bug to me, and it doesn't affect standard syscalls (which is why if you run

[PATCH v2] powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG

2020-05-30 Thread Christophe Leroy
'thread' doesn't exist in kuap_check() macro. Use 'current' instead. Reported-by: kbuild test robot Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection") Cc: sta...@vger.kernel.org Signed-off-by: Christophe Leroy --- v2: Changed author and signed-off-by ... and

[GIT PULL] Please pull powerpc/linux.git powerpc-5.7-6 tag

2020-05-30 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull two more powerpc fixes for 5.7. These are both regressions with small "obviously correct" fixes. cheers The following changes since commit 8659a0e0efdd975c73355dbc033f79ba3b31e82c: powerpc/64s: Disable STRICT_KERNEL_RWX

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-05-30 Thread Dan Williams
On Sat, May 30, 2020 at 12:18 AM Aneesh Kumar K.V wrote: > > On 5/30/20 12:52 AM, Dan Williams wrote: > > On Fri, May 29, 2020 at 3:55 AM Aneesh Kumar K.V > > wrote: > >> > >> On 5/29/20 3:22 PM, Jan Kara wrote: > >>> Hi! > >>> > >>> On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: >

Re: [PATCH] powerpc/32: disable KASAN with pages bigger than 16k

2020-05-30 Thread Christophe Leroy
Le 28/05/2020 à 12:17, Christophe Leroy a écrit : Mapping of early shadow area is implemented by using a single static page table having all entries pointing to the same early shadow page. The shadow area must therefore occupy full PGD entries. The shadow area has a size of 128Mbytes

Re: ppc64le and 32-bit LE userland compatibility

2020-05-30 Thread Segher Boessenkool
Hi! On Fri, May 29, 2020 at 07:03:48PM +, Will Springer wrote: > Hey all, a couple of us over in #talos-workstation on freenode have been > working on an effort to bring up a Linux PowerPC userland that runs in 32-bit > little-endian mode, aka ppcle. As far as we can tell, no ABI has ever

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.7-6 tag

2020-05-30 Thread pr-tracker-bot
The pull request you sent on Sun, 31 May 2020 00:05:02 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.7-6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ffeb595d84811dde16a28b33d8a7cf26d51d51b3 Thank you! --

Re: ppc64le and 32-bit LE userland compatibility

2020-05-30 Thread Will Springer
On Saturday, May 30, 2020 8:37:43 AM PDT Christophe Leroy wrote: > There is a series at > https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=173231 to > switch powerpc to the Generic C VDSO. > > Can you try and see whether it fixes your issue ? > > Christophe Sure thing, I spotted

[PATCH v1 3/4] KVM: PPC: Book3S HV: migrate remaining normal-GFNs to secure-GFNs in H_SVM_INIT_DONE

2020-05-30 Thread Ram Pai
H_SVM_INIT_DONE incorrectly assumes that the Ultravisor has explicitly called H_SVM_PAGE_IN for all secure pages. These GFNs continue to be normal GFNs associated with normal PFNs; when infact, these GFNs should have been secure GFNs associated with device PFNs. Move all the PFN associated with

[PATCH v1 2/4] KVM: PPC: Book3S HV: track shared GFNs of secure VMs

2020-05-30 Thread Ram Pai
During the life of SVM, its GFNs can transition from secure to shared state and vice-versa. Since the kernel does not track GFNs that are shared, it is not possible to disambiguate a shared GFN from a GFN whose PFN has not yet been migrated to a device-PFN. The ability to identify a shared GFN is

[PATCH v1 4/4] KVM: PPC: Book3S HV: migrate hot plugged memory

2020-05-30 Thread Ram Pai
From: Laurent Dufour When a memory slot is hot plugged to a SVM, GFNs associated with that memory slot automatically default to secure GFN. Hence migrate the PFNs associated with these GFNs to device-PFNs. uv_migrate_mem_slot() is called to achieve that. It will not call UV_PAGE_IN since this

[PATCH 4/8] macintosh/adb-iop: Access current_req and adb_iop_state when inside lock

2020-05-30 Thread Finn Thain
Drop the redundant local_irq_save/restore() from adb_iop_start() because the caller has to do it anyway. This is the pattern used in via-macii. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 13 + 1 file changed, 5

[PATCH 8/8] macintosh/adb-iop: Implement SRQ autopolling

2020-05-30 Thread Finn Thain
The adb_driver.autopoll method is needed during ADB bus scan and device address assignment. Implement this method so that the IOP's list of device addresses can be updated. When the list is empty, disable SRQ autopolling. Cc: Joshua Thompson Cc: Geert Uytterhoeven Tested-by: Stan Johnson

[PATCH v1 1/4] KVM: PPC: Book3S HV: Fix function definition in book3s_hv_uvmem.c

2020-05-30 Thread Ram Pai
Without this fix, GIT gets confused. It generates incorrect function context for code changes. Weird, but true. Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Bharata B Rao Cc: Aneesh Kumar K.V Cc: Sukadev Bhattiprolu Cc: Laurent Dufour Cc: Thiago Jung Bauermann

[PATCH v1 0/4] Migrate non-migrated pages of a SVM.

2020-05-30 Thread Ram Pai
This patch series migrates the non-migrate pages of a SVM. This is required when the UV calls H_SVM_INIT_DONE, and when a memory-slot is hotplugged to a Secure VM. Laurent Dufour (1): KVM: PPC: Book3S HV: migrate hot plugged memory Ram Pai (3): KVM: PPC: Book3S HV: Fix function definition in

Re: [musl] ppc64le and 32-bit LE userland compatibility

2020-05-30 Thread Will Springer
On Friday, May 29, 2020 12:24:27 PM PDT Rich Felker wrote: > The argument passing for pread/pwrite is historically a mess and > differs between archs. musl has a dedicated macro that archs can > define to override it. But it looks like it should match regardless of > BE vs LE, and musl already

[PATCH 3/8] macintosh/adb-iop: Adopt bus reset algorithm from via-macii driver

2020-05-30 Thread Finn Thain
This algorithm is slightly shorter and avoids the surprising adb_iop_start() call in adb_iop_poll(). Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git

[PATCH 2/8] macintosh/adb-iop: Correct comment text

2020-05-30 Thread Finn Thain
This patch improves comment style and corrects some misunderstandings in the text. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git

[PATCH 1/8] macintosh/adb-iop: Remove dead and redundant code

2020-05-30 Thread Finn Thain
Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 29 - 1 file changed, 29 deletions(-) diff --git a/drivers/macintosh/adb-iop.c b/drivers/macintosh/adb-iop.c index fca31640e3ef..ce28ff40fb9c 100644 ---

[PATCH 6/8] macintosh/adb-iop: Implement idle -> sending state transition

2020-05-30 Thread Finn Thain
In the present algorithm, the 'idle' state transition does not take place until there's a bus timeout. Once idle, the driver does not automatically proceed with the next request. Change the algorithm so that queued ADB requests will be sent as soon as the driver becomes idle. This is to take

[PATCH 0/8] Mac ADB IOP driver fixes

2020-05-30 Thread Finn Thain
The adb-iop driver was never finished. Some deficiencies have become apparent over the years. For example, - Mouse and/or keyboard may stop working if used together - SRQ autopoll list cannot be changed - Some bugs were found by inspection This patch series contains fixes for the known bugs

Re: ppc64le and 32-bit LE userland compatibility

2020-05-30 Thread Will Springer
On Saturday, May 30, 2020 12:22:12 PM PDT Segher Boessenkool wrote: > The original sysv PowerPC supplement > http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf > supports LE as well, and most powerpcle ports use that. But, the > big-endian Linux ABI differs in quite a few places, and it of

[PATCH 7/8] macintosh/adb-iop: Implement sending -> idle state transition

2020-05-30 Thread Finn Thain
On leaving the 'sending' state, proceed to the 'idle' state if no reply is expected. Drop redundant test for adb_iop_state == sending && current_req. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 7 +++ 1 file changed, 3

[PATCH 5/8] macintosh/adb-iop: Resolve static checker warnings

2020-05-30 Thread Finn Thain
drivers/macintosh/adb-iop.c:215:28: warning: Using plain integer as NULL pointer drivers/macintosh/adb-iop.c:170:5: warning: symbol 'adb_iop_probe' was not declared. Should it be static? drivers/macintosh/adb-iop.c:177:5: warning: symbol 'adb_iop_init' was not declared. Should it be static?