Re: [PATCH] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-08-16 Thread Alistair Francis
t; TASK_SIZE to FIXADDR_START. We also move FIXADDR_TOP, FIXADDR_SIZE, > and FIXADDR_START defines to asm/pgtable.h so that we can avoid > cyclic > header includes. > > Signed-off-by: Anup Patel This fixes the RV32 issue. Tested-by: Alistair Francis Alistair > ---

Re: [PATCH v5 2/2] RISC-V: Setup initial page tables in two stages

2019-08-15 Thread Alistair Francis
On Thu, 2019-08-15 at 13:29 -0700, Paul Walmsley wrote: > On Thu, 15 Aug 2019, David Abdurachmanov wrote: > > > Yes, I do see those in Fedora/RISCV build farm every morning, but > > with > > riscv64 and 5.2.0-rc7 kernel. > > [...] > > > fedora-riscv-4 login: [178876.406122] Unable to handle

Re: [PATCH v5 2/2] RISC-V: Setup initial page tables in two stages

2019-08-15 Thread Alistair Francis
On Thu, 2019-08-15 at 12:07 -0700, David Abdurachmanov wrote: > On Thu, Aug 15, 2019 at 11:57 AM Alistair Francis > wrote: > > On Wed, 2019-07-10 at 17:05 -0700, Paul Walmsley wrote: > > > On Fri, 7 Jun 2019, Anup Patel wrote: > > > > > > > Currently, th

Re: [PATCH v5 2/2] RISC-V: Setup initial page tables in two stages

2019-08-15 Thread Alistair Francis
On Wed, 2019-07-10 at 17:05 -0700, Paul Walmsley wrote: > On Fri, 7 Jun 2019, Anup Patel wrote: > > > Currently, the setup_vm() does initial page table setup in one-shot > > very early before enabling MMU. Due to this, the setup_vm() has to > > map > > all possible kernel virtual addresses since

[PATCH 2/2] riscv: defconfig: Update the defconfig

2019-08-13 Thread Alistair Francis
Update the defconfig: - Add CONFIG_HW_RANDOM=y and CONFIG_HW_RANDOM_VIRTIO=y to enable VirtIORNG when running on QEMU Signed-off-by: Alistair Francis --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs

[PATCH 1/2] riscv: rv32_defconfig: Update the defconfig

2019-08-13 Thread Alistair Francis
Update the rv32_defconfig: - Add 'CONFIG_DEVTMPFS_MOUNT=y' to match the RISC-V defconfig - Add CONFIG_HW_RANDOM=y and CONFIG_HW_RANDOM_VIRTIO=y to enable VirtIORNG when running on QEMU Signed-off-by: Alistair Francis --- arch/riscv/configs/rv32_defconfig | 3 +++ 1 file changed, 3

Re: [PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-13 Thread Alistair Francis
On Tue, Aug 13, 2019 at 12:41 PM Arnd Bergmann wrote: > > On Tue, Aug 13, 2019 at 9:01 PM Alistair Francis wrote: > > On Mon, Aug 12, 2019 at 2:49 AM Arnd Bergmann wrote: > > > > > diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h > > > >

Re: [PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-13 Thread Alistair Francis
On Mon, Aug 12, 2019 at 2:49 AM Arnd Bergmann wrote: > > On Sat, Aug 10, 2019 at 3:11 AM Alistair Francis > wrote: > > > > Update the #defines around sys_fstat64() and sys_fstatat64() to match > > the #defines around the __NR3264_fstatat and __NR3264_fstat definiti

Re: [PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-11 Thread Alistair Francis
On Sun, Aug 11, 2019 at 5:00 PM Andy Lutomirski wrote: > > On Fri, Aug 9, 2019 at 6:11 PM Alistair Francis > wrote: > > > > Update the #defines around sys_fstat64() and sys_fstatat64() to match > > the #defines around the __NR3264_fstatat and __NR3264_fstat definiti

[PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-09 Thread Alistair Francis
Update the #defines around sys_fstat64() and sys_fstatat64() to match the #defines around the __NR3264_fstatat and __NR3264_fstat definitions in include/uapi/asm-generic/unistd.h. This avoids compiler failures if one is defined. Signed-off-by: Alistair Francis --- include/linux/syscalls.h | 2

[PATCH 1/2] arm64: defconfig: Cleanup the defconfig

2019-08-08 Thread Alistair Francis
Re-run savedefconfig to cleanup the defconfig. Signed-off-by: Alistair Francis --- arch/arm64/configs/defconfig | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0e58ef02880c

[PATCH 2/2] arm64: defconfig: Enable sound drivers on Allwinner devices

2019-08-08 Thread Alistair Francis
Enable the sound drivers for Allwinner devices. Signed-off-by: Alistair Francis --- arch/arm64/configs/defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b17ed20e1754..3dc12c3b9bf8 100644 --- a/arch/arm64/configs

Re: [PATCH RESEND 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-16 Thread Alistair Francis
On Thu, Jul 4, 2019 at 2:19 AM Arnd Bergmann wrote: > > On Thu, Jul 4, 2019 at 9:20 AM Andreas Schwab wrote: > > > > On Jul 03 2019, Alistair Francis wrote: > > > > > On Wed, Jul 3, 2019 at 12:08 AM Andreas Schwab wrote: > > >> &

Re: [PATCH] Revert "of/device: Really only set bus DMA mask when appropriate"

2019-07-11 Thread Alistair Francis
On Thu, Jul 11, 2019 at 4:01 AM Robin Murphy wrote: > > Hi Alistair, > > On 10/07/2019 23:27, Alistair Francis wrote: > > On Thu, Feb 28, 2019 at 2:42 PM Robin Murphy wrote: > >> > >> On 2019-02-28 10:33 pm, Alistair Fran

Re: [PATCH] Revert "of/device: Really only set bus DMA mask when appropriate"

2019-07-10 Thread Alistair Francis
On Thu, Feb 28, 2019 at 2:42 PM Robin Murphy wrote: > > On 2019-02-28 10:33 pm, Alistair Francis wrote: > > This reverts commit 6778be4e520959659b27a441c06a84c9cb009085. > > > > Reverting the commit fixes these error messages and an non-functioning > > USB bus whe

Re: [PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-09 Thread Alistair Francis
On Thu, Jul 4, 2019 at 1:34 AM Arnd Bergmann wrote: > > On Thu, Jul 4, 2019 at 12:18 AM Alistair Francis wrote: > > On Wed, Jul 3, 2019 at 12:47 PM Arnd Bergmann wrote: > > > On Wed, Jul 3, 2019 at 8:45 PM Alistair Francis > > > wrote: > > >

Re: [PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-03 Thread Alistair Francis
On Wed, Jul 3, 2019 at 12:47 PM Arnd Bergmann wrote: > > On Wed, Jul 3, 2019 at 8:45 PM Alistair Francis wrote: > > > > On Wed, Jul 3, 2019 at 1:41 AM Arnd Bergmann wrote: > > > > > > On Wed, Jul 3, 2019 at 2:21 AM Alistair Francis > > > wr

Re: [PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-03 Thread Alistair Francis
On Wed, Jul 3, 2019 at 1:41 AM Arnd Bergmann wrote: > > On Wed, Jul 3, 2019 at 2:21 AM Alistair Francis > wrote: > > > > The glibc implementation of siginfo_t results in an allignment of 8 bytes > > for the union _sifields on RV32. The kernel has an allignment of 4

Re: [PATCH RESEND 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-03 Thread Alistair Francis
On Wed, Jul 3, 2019 at 12:08 AM Andreas Schwab wrote: > > On Jul 02 2019, Alistair Francis wrote: > > > In the RISC-V 32-bit glibc port [1] the siginfo_t struct in the kernel > > doesn't line up with the struct in glibc. In glibc world the _sifields > > union is 8 byte

[PATCH RESEND 1/2] uapi/asm-generic: Allow defining a custom __SIGINFO struct

2019-07-02 Thread Alistair Francis
-by: Alistair Francis --- include/uapi/asm-generic/siginfo.h | 32 -- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index cb3d6c267181..09b0a1abac14 100644 --- a/include/uapi/asm-generic

[PATCH RESEND 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-02 Thread Alistair Francis
to the struct to avoid allignment mismatches. Signed-off-by: Alistair Francis --- arch/riscv/include/uapi/asm/siginfo.h | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 arch/riscv/include/uapi/asm/siginfo.h diff --git a/arch/riscv/include/uapi/asm/siginfo.h b/arch

[PATCH RESEND 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-02 Thread Alistair Francis
/commits/alistair/rv32.next Alistair Francis (2): uapi/asm-generic: Allow defining a custom __SIGINFO struct riscv/include/uapi: Define a custom __SIGINFO struct for RV32 arch/riscv/include/uapi/asm/siginfo.h | 32 +++ include/uapi/asm-generic/siginfo.h| 32

[PATCH 1/2] uapi/asm-generic: Allow defining a custom __SIGINFO struct

2019-07-02 Thread Alistair Francis
-by: Alistair Francis --- include/uapi/asm-generic/siginfo.h | 32 -- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index cb3d6c267181..09b0a1abac14 100644 --- a/include/uapi/asm-generic

[PATCH 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-02 Thread Alistair Francis
being lost in the waitid syscall. This doesn't seem to be a great fix, but it is somewhat similar to what x32 does (which has 64-bit time_t like RV32) and I can't figure out why the two allignments are different. 1: https://github.com/alistair23/glibc/commits/alistair/rv32.next Alistair Francis (2

[PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-02 Thread Alistair Francis
to the struct to avoid allignment mismatches. Signed-off-by: Alistair Francis --- arch/riscv/include/uapi/asm/siginfo.h | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 arch/riscv/include/uapi/asm/siginfo.h diff --git a/arch/riscv/include/uapi/asm/siginfo.h b/arch

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-18 Thread Alistair Francis
On Mon, 2019-06-17 at 20:26 -0700, Paul Walmsley wrote: > On Mon, 17 Jun 2019, Alistair Francis wrote: > > > > The legacy M-mode U-boot handles the phy reset already, and I’ve > > > been > > > able to load upstream S-mode uboot as a payload via TFTP, and >

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-17 Thread Alistair Francis
On Mon, 2019-06-17 at 09:14 -0500, Troy Benjegerdes wrote: > > On Jun 17, 2019, at 6:34 AM, Paul Walmsley < > > paul.walms...@sifive.com> wrote: > > > > On Mon, 17 Jun 2019, Andreas Schwab wrote: > > > > > On Jun 17 2019, Paul Walmsley wrote: > > > > > > > On Mon, 17 Jun 2019, Andreas Schwab

Re: [PATCH v2] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-26 Thread Alistair Francis
On Mon, 2019-03-25 at 19:22 -0700, Palmer Dabbelt wrote: > On Mon, 25 Mar 2019 00:01:45 PDT (-0700), a...@brainfault.org wrote: > > On Mon, Mar 25, 2019 at 12:18 PM Christoph Hellwig < > > h...@infradead.org> wrote: > > > On Mon, Mar 25, 2019 at 01:25:50PM +0800, Alan Kao wrote: > > > > Hi Anup, >

Re: [PATCH] irqchip: plic: Fix priority base offset

2019-03-26 Thread Alistair Francis
On Fri, Mar 22, 2019 at 6:27 AM Christoph Hellwig wrote: > > On Wed, Mar 20, 2019 at 05:04:58PM -0700, Alistair Francis wrote: > > > Well, it starts at 0x00, but the first one is reserved. If you think > > > that is too confusing I'd rather throw in a comment explainin

Re: [PATCH] irqchip: plic: Fix priority base offset

2019-03-20 Thread Alistair Francis
On Wed, Mar 20, 2019 at 4:49 PM Christoph Hellwig wrote: > > On Wed, Mar 20, 2019 at 10:39:52PM +, Alistair Francis wrote: > > According to the FU540 and E31 manuals the PLIC source priority > > address starts at an offset of 0x04 and not 0x00. To aviod confusion >

[PATCH] irqchip: plic: Fix priority base offset

2019-03-20 Thread Alistair Francis
According to the FU540 and E31 manuals the PLIC source priority address starts at an offset of 0x04 and not 0x00. To aviod confusion update the address and source offset to match the documentation. This causes no difference in functionality. Signed-off-by: Alistair Francis --- drivers/irqchip

Re: [PATCH] Revert "of/device: Really only set bus DMA mask when appropriate"

2019-02-28 Thread Alistair Francis
On Thu, Feb 28, 2019 at 2:39 PM Paul Walmsley wrote: > > Hello Alistair, > > On Thu, 28 Feb 2019, Alistair Francis wrote: > > > This reverts commit 6778be4e520959659b27a441c06a84c9cb009085. > > > > Reverting the commit fixes these error messages and an non-funct

[PATCH] Revert "of/device: Really only set bus DMA mask when appropriate"

2019-02-28 Thread Alistair Francis
:03:00.0: startup error -19 xhci_hcd :03:00.0: USB bus 2 deregistered xhci_hcd :03:00.0: WARNING: Host System Error xhci_hcd :03:00.0: remove, state 1 Signed-off-by: Alistair Francis --- I'm not sure if this is the correct fix, it's possible something else is wrong, but I

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-22 Thread Alistair Francis
On Thu, Feb 21, 2019 at 9:37 PM kra...@redhat.com wrote: > > On Thu, Feb 21, 2019 at 10:44:06AM -0800, Alistair Francis wrote: > > On Thu, Feb 21, 2019 at 3:52 AM kra...@redhat.com wrote: > > > > > > On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrot

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-21 Thread Alistair Francis
On Thu, Feb 21, 2019 at 3:52 AM kra...@redhat.com wrote: > > On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrote: > > When running RISC-V QEMU with the Bochs device attached via PCIe the > > probe of the Bochs device fails with: > > [drm:bochs_hw_i

[PATCH] drm/bochs: Fix the ID mismatch error

2019-02-20 Thread Alistair Francis
() is called before bochs_load(). Signed-off-by: Alistair Francis Reported-by: David Abdurachmanov --- drivers/gpu/drm/bochs/bochs_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c index f3dd66ae990a..aa35007262cd 100644

Re: [PATCH] riscv: Partially revert "Remove stat64 family from default syscall set"

2019-02-07 Thread Alistair Francis
On Thu, Feb 7, 2019 at 3:04 PM David Abdurachmanov wrote: > > On Thu, Feb 7, 2019 at 11:56 PM Alistair Francis > wrote: > > > > To fix systemd/sysVinit crashes enable __ARCH_WANT_STAT64. > > > > systemd failed to start with this error for 32-bit RISC-V: > >

[PATCH] riscv: Partially revert "Remove stat64 family from default syscall set"

2019-02-07 Thread Alistair Francis
]--- sysVinit had a similar problem as well. By enabling __ARCH_WANT_STAT64 for 32-bit RISC-V the problem disapears and 32-bit RISC-V is able to boot. Signed-off-by: Alistair Francis --- This was tested with this fork of glibc to enable 32-bit RISC-V support: https://github.com/riscv/riscv-glibc

Re: [PATCH v4] RISC-V: defconfig: Enable Generic PCIE by default

2019-01-15 Thread Alistair Francis
On Tue, 2019-01-15 at 07:26 -0800, Christoph Hellwig wrote: > On Sat, Jan 12, 2019 at 12:41:26AM +0000, Alistair Francis wrote: > > Enable generic PCIe by default in the RISC-V defconfig, this allows > > us > > to use QEMU's PCIe support out of the box. > > > >

[PATCH v4] RISC-V: defconfig: Enable Generic PCIE by default

2019-01-11 Thread Alistair Francis
Enable generic PCIe by default in the RISC-V defconfig, this allows us to use QEMU's PCIe support out of the box. Signed-off-by: Alistair Francis --- arch/riscv/configs/defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/configs/defconfig b/arch/riscv

Re: [PATCH v3] RISC-V: defconfig: Enable Generic PCIE by default

2019-01-11 Thread Alistair Francis
On Sat, 2019-01-12 at 00:03 +, Alistair Francis wrote: > Enable generic PCIe by default in the RISC-V defconfig, this allows > us > to use QEMU's PCIe support out of the box. > > Signed-off-by: Alistair Francis > --- > arch/riscv/configs/defconfig | 5 +++-- > 1 fi

[PATCH v3] RISC-V: defconfig: Enable Generic PCIE by default

2019-01-11 Thread Alistair Francis
Enable generic PCIe by default in the RISC-V defconfig, this allows us to use QEMU's PCIe support out of the box. Signed-off-by: Alistair Francis --- arch/riscv/configs/defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/riscv/configs/defconfig b/arch/riscv

[PATCH v2] RISC-V: defconfig: Enable Generic PCIE by default

2019-01-10 Thread Alistair Francis
Enable generic PCIe by default in the RISC-V defconfig, this allows us to use QEMU's PCIe support out of the box. Signed-off-by: Alistair Francis --- arch/riscv/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig

Re: [PATCH] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-21 Thread Alistair Francis
On Fri, 2018-12-21 at 14:34 -0800, Paul Walmsley wrote: > > On Fri, 21 Dec 2018, Alistair Francis wrote: > > > On Fri, 2018-12-21 at 11:27 -0800, Paul Walmsley wrote: > > > On Fri, 21 Dec 2018, Alistair Francis wrote: > > > > > > > When the

Re: [PATCH] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-21 Thread Alistair Francis
On Fri, 2018-12-21 at 11:27 -0800, Paul Walmsley wrote: > On Fri, 21 Dec 2018, Alistair Francis wrote: > > > When the MicroSemi driver does eventually go upstream this will > > probably have to be discussed though as either the config or device > > tree will need to be e

[PATCH v2] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-21 Thread Alistair Francis
Enable generic PCIe by default in the RISC-V defconfig, this allows us to use QEMU's PCIe support out of the box. Signed-off-by: Alistair Francis --- v2: - Keep the Xilinx PCIE enabled arch/riscv/configs/defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/configs

Re: [PATCH] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-21 Thread Alistair Francis
On Fri, 2018-12-21 at 11:13 -0800, Paul Walmsley wrote: > Hello Alistair, > > On Fri, 21 Dec 2018, Alistair Francis wrote: > > > Enable generic PCIe by default in the RISC-V defconfig, this allows > > us > > to use QEMU's PCIe support out of the box. Also remove t

[PATCH] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-21 Thread Alistair Francis
Enable generic PCIe by default in the RISC-V defconfig, this allows us to use QEMU's PCIe support out of the box. Also remove the Xilinx PCIe support by default as this is rarely used and conflicts with the more commonly used (out of tree) MicroSemi PCIe root complex. Signed-off-by: Alistair

<    1   2