[PATCH 2/2] powerpc/compat_sys: swap hi/lo parts of 64-bit syscall args in LE mode

2021-01-02 Thread Will Springer
test` (ftruncate64). Signed-off-by: Will Springer --- arch/powerpc/kernel/sys_ppc32.c | 49 +++-- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index d36c6391eaf5..16ff0399a257 100644

[PATCH 1/2] powerpc: use kernel endianness in MSR in 32-bit signal handler

2021-01-02 Thread Will Springer
: Will Springer --- arch/powerpc/kernel/signal_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index 934cbdf6dd10..75ee918a120a 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel

[PATCH 0/2] powerpc: fixes for 32-bit little-endian processes

2021-01-02 Thread Will Springer
hen I took off for the holidays.) Cheers, Will Springer [she/her] [1]: https://github.com/ptitSeb/box86 [2]: https://voidlinux-ppc.org/ Joseph J Allen (1): powerpc: use kernel endianness in MSR in 32-bit signal handler Will Springer (1): powerpc/compat_sys: swap hi/lo parts of 64-bit sysca

Re: CONFIG_PPC_VAS depends on 64k pages...?

2020-12-02 Thread Will Springer
x27;t noticed any problems so far, over a few different days of testing. My change is now in the Void Linux kernel package, and is working for others as well (including the Void maintainer Daniel/q66 who I CC'd initially). > > Bulent > > > > > From: "Sukad

CONFIG_PPC_VAS depends on 64k pages...?

2020-11-19 Thread Will Springer
concerned about. I do have to say I'm quite satisfied with the results of the NX accelerator, though. Being able to shuffle data to a RaptorCS box over gigE and get compressed data back faster than most software gzip could ever hope to achieve is no small feat, let alone the instantaneous r

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

2020-06-09 Thread Will Springer
On Saturday, May 30, 2020 3:56:47 PM PDT you wrote: > 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

Re: ppc64le and 32-bit LE userland compatibility

2020-06-05 Thread Will Springer
On Saturday, May 30, 2020 3:17:24 PM PDT Will Springer wrote: > 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. >

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 defi

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 c

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 th

ppc64le and 32-bit LE userland compatibility

2020-05-29 Thread Will Springer
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 been designated for this (unless you count the patchset from a decade ago [1])