Re: [PATCH 3/4] arch: define CONFIG_PAGE_SIZE_*KB on all architectures

2024-02-28 Thread Stafford Horne
ex 44fc1fd56717..7925ce09ab5a 100644 > --- a/arch/openrisc/include/asm/page.h > +++ b/arch/openrisc/include/asm/page.h > @@ -18,7 +18,7 @@ > > /* PAGE_SHIFT determines the page size */ > > -#define PAGE_SHIFT 13 > +#define PAGE_SHIFT CONFIG_PAGE_SHIFT > #ifdef __A

Re: [PATCH 16/17] [RFC] arch: turn -Wmissing-prototypes off conditionally

2023-08-11 Thread Stafford Horne
On Thu, Aug 10, 2023 at 04:19:34PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann ,,, > --- > Below is the full list of warnings I see in defconfig builds for reference, > these > do not need to be part of the changelog. ... > arch/openrisc/kernel/process.c:100:6: error: no previous prototype

Re: [PATCH 3/3] mm, arch: add generic implementation of pfn_valid() for FLATMEM

2023-01-28 Thread Stafford Horne
((pfn) < max_mapnr) > - > #define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr))) > > #endif /* __ASSEMBLY__ */ For OpenRISC Acked-by: Stafford Horne ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH 2/3] openrisc: ptrace: Remove duplicate operation

2022-08-30 Thread Stafford Horne
> Signed-off-by: Guo Ren Acked-by: Stafford Horne > --- > arch/openrisc/kernel/ptrace.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c > index b971740fc2aa..cc53fa676706 100644 > --- a/arch/openr

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Stafford Horne
ow_registers(regs); > } > > -void release_thread(struct task_struct *dead_task) > -{ > -} > - > /* > * Copy the thread-specific (arch specific) info from the current > * process to the new one p For OpenRISC bits. Acked-by: Stafford Horne _

[PATCH v6 2/4] PCI: Move isa_dma_bridge_buggy out of dma.h

2022-07-22 Thread Stafford Horne
devices supported on x86_32 ever set this. A new global header linux/isa-dma.h is added to provide a common place to maintain the definition. Suggested-by: Arnd Bergmann Suggested-by: Christoph Hellwig Acked-by: Geert Uytterhoeven Reviewed-by: Christoph Hellwig Signed-off-by: Stafford Horne

[PATCH v5 2/4] PCI: Move isa_dma_bridge_buggy out of dma.h

2022-07-21 Thread Stafford Horne
devices supported on x86_32 ever set this. A new global header linux/isa-dma.h is added to provide a common place to maintain the definition. Suggested-by: Arnd Bergmann Suggested-by: Christoph Hellwig Acked-by: Geert Uytterhoeven Reviewed-by: Christoph Hellwig Signed-off-by: Stafford Horne

[PATCH v4 2/3] PCI: Move isa_dma_bridge_buggy out of dma.h

2022-07-20 Thread Stafford Horne
devices supported on x86_32 ever set this. A new global header linux/isa-dma.h is added to provide a common place to maintain the definition. Suggested-by: Arnd Bergmann Suggested-by: Christoph Hellwig Signed-off-by: Stafford Horne --- Since v3: - New patch. arch/alpha/include/asm/dma.h

Re: [PATCH V4 10/26] openrisc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-24 Thread Stafford Horne
AGE_READONLY_X, > + [VM_SHARED | VM_WRITE] = PAGE_SHARED, > + [VM_SHARED | VM_WRITE | VM_READ]= PAGE_SHARED_X, > + [VM_SHARED | VM_EXEC] = PAGE_READONLY, > + [VM_SHARED | VM_EXEC | VM_READ]

Re: [PATCH v2 18/18] uaccess: drop maining CONFIG_SET_FS users

2022-02-24 Thread Stafford Horne
long count) > { > - mm_segment_t old_fs; > long ret; > > if (unlikely(count <= 0)) > return 0; > > - old_fs = force_uaccess_begin(); > pagefault_disable(); > ret = strncpy_from_user(dst, unsafe_addr, count); > pagefault

Re: [PATCH v2 13/18] uaccess: generalize access_ok()

2022-02-24 Thread Stafford Horne
the get_fs() > - */ > -#ifndef __access_ok > -static inline int __access_ok(unsigned long addr, unsigned long size) > -{ > - return 1; > -} > -#endif > +#include > > /* > * These are the main single-value transfer routines. They automatically > diff --git a/include/linux

Re: architectures that still need to remove set_fs()

2022-01-18 Thread Stafford Horne
Hi, On Tue, Jan 18, 2022 at 08:48:36AM +0100, Christoph Hellwig wrote: > Hi all, > > you are in this list because your architecture still implements and > uses address space overrides using set_fs(), which are deprecated and > have been removed from all mainstream architecture ports. To help > c

Re: [PATCH 2/8] opeinrisc: switch to generic version of pte allocation

2020-06-27 Thread Stafford Horne
ser page tables. > > The pte_alloc_one_kernel() is kept back because its implementation on > openrisc is different than the generic one. > > Signed-off-by: Mike Rapoport Thank's for this. Acked-by: Stafford Horne ___ linux-s

Re: [PATCH 17/17] arch: rename copy_thread_tls() back to copy_thread()

2020-06-26 Thread Stafford Horne
arg, struct task_struct *p, unsigned long tls) > { For the OpenRISC bit. Acked-by: Stafford Horne Also, I would agree with what Kees mentioned about aligning the parameters. Sure that would be more work but it would be appreciated. -Stafford ___ linu

Re: [PATCH 05/26] openrisc: map as uncached in ioremap

2019-08-30 Thread Stafford Horne
On Fri, Aug 30, 2019 at 06:07:05PM +0200, Christoph Hellwig wrote: > On Fri, Aug 23, 2019 at 10:55:39PM +0900, Stafford Horne wrote: > > On Sat, Aug 17, 2019 at 09:32:32AM +0200, Christoph Hellwig wrote: > > > Openrisc is the only architecture not mapping ioremap as uncached, &g

Re: [PATCH 05/26] openrisc: map as uncached in ioremap

2019-08-23 Thread Stafford Horne
ristoph Hellwig > --- > arch/openrisc/include/asm/io.h | 20 +++- > arch/openrisc/include/asm/pgtable.h | 2 +- > arch/openrisc/mm/ioremap.c | 8 > 3 files changed, 8 insertions(+), 22 deletions(-) Acked-by: Stafford Horne Thanks, -Stafford

Re: [PATCH 3/7] openrisc: remove the partial DMA_ATTR_NON_CONSISTENT support

2019-06-16 Thread Stafford Horne
t; coherency bugs. The below looks good. I am always happy to what looks like legacy copy & paste cruft. Acked-by: Stafford Horne > Signed-off-by: Christoph Hellwig > --- > arch/openrisc/kernel/dma.c | 22 +- > 1 file changed, 9 insertions(+), 13 deletio

Re: [PATCH v2 01/21] openrisc: prefer memblock APIs returning virtual address

2019-01-26 Thread Stafford Horne
BLE + __pa(pte))); > > /* Fill the newly allocated page with PTE'S */ This seems reasonable to me. Acked-by: Stafford Horne ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [uclibc-ng-devel] [PATCH 4/4] arc: Use new common syscall() implementation

2018-01-05 Thread Stafford Horne
On Fri, Jan 05, 2018 at 03:33:55PM -0800, Vineet Gupta wrote: > On 12/13/2017 10:29 PM, Stafford Horne wrote: > > Traditionally arc has had a generic syscall implementation of syscall() > > matchig the common implementation. > > > > During an audit it was found that t

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-04 Thread Stafford Horne
On Sat, Mar 04, 2017 at 11:15:17AM -0800, H. Peter Anvin wrote: > On 03/04/17 05:05, Russell King - ARM Linux wrote: > >> > >> +static int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr) > >> +{ > >> + int op = (encoded_op >> 28) & 7; > >> + int cmp = (encoded_op >> 24) & 15; > >> +

Re: [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2016-10-25 Thread Stafford Horne
m/unistd.h | 1 + Acked-by: Stafford Horne [openrisc] arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h| 5 + 12 files changed, 16 insertions(+) diff --git