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 __ASSEMBLY__ > #define PAGE_SIZE (1 << PAGE_SHIFT) > #else For the openrisc bits, Acked-by: Stafford Horne

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-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um

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 __

Re: [PATCH v6 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-22 Thread Stafford Horne
On Fri, Jul 22, 2022 at 06:38:21PM -0500, Bjorn Helgaas wrote: > On Sat, Jul 23, 2022 at 06:49:41AM +0900, Stafford Horne wrote: > > The definition of the pci header function pci_get_legacy_ide_irq is only > > used in platforms that support PNP. So many of the architecutres

Re: [PATCH v5 4/4] asm-generic: Add new pci.h and use it

2022-07-22 Thread Stafford Horne
On Fri, Jul 22, 2022 at 05:31:46PM -0500, Bjorn Helgaas wrote: > On Sat, Jul 23, 2022 at 06:43:31AM +0900, Stafford Horne wrote: > > > I will respin a v6 as we didn't get a reply on this. Bjorn are you > > planning to apply the series before the upcoming merge window? &g

[PATCH v6 4/4] asm-generic: Add new pci.h and use it

2022-07-22 Thread Stafford Horne
Morel Acked-by: Geert Uytterhoeven Reviewed-by: Arnd Bergmann Signed-off-by: Stafford Horne --- Since v5: - Remove unneeded include in asm-generic/pci.h arch/arm64/include/asm/pci.h | 10 ++ arch/csky/include/asm/pci.h | 17 ++--- arch/riscv/include/asm/pci.h | 23

[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 v6 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-22 Thread Stafford Horne
: Rafael J. Wysocki Reviewed-by: Christoph Hellwig Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Stafford Horne --- arch/alpha/include/asm/pci.h | 6 -- arch/arm/include/asm/pci.h | 5 - arch/arm64/include/asm/pci.h | 6 -- arch/csky/include

Re: [PATCH v5 4/4] asm-generic: Add new pci.h and use it

2022-07-22 Thread Stafford Horne
On Fri, Jul 22, 2022 at 09:53:07AM +0200, Arnd Bergmann wrote: > On Thu, Jul 21, 2022 at 11:58 PM Stafford Horne wrote: > > On Thu, Jul 21, 2022 at 12:37:33PM -0500, Bjorn Helgaas wrote: > > > > > Thanks, you are right, I think some of the earlier functions may have >

Re: [PATCH v3 2/2] asm-generic: Add new pci.h and use it

2022-07-21 Thread Stafford Horne
t; >architectures it is removed. > > > > Suggested-by: Arnd Bergmann > > Link: > > https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpvazcycyv40pzncj...@mail.gmail.com/ > > Signed-off-by: Stafford Horne > > --- > > Second note on

Re: [PATCH v5 4/4] asm-generic: Add new pci.h and use it

2022-07-21 Thread Stafford Horne
On Thu, Jul 21, 2022 at 12:37:33PM -0500, Bjorn Helgaas wrote: > On Thu, Jul 21, 2022 at 10:49:24PM +0900, Stafford Horne wrote: > > The asm/pci.h used for many newer architectures share similar > > definitions. Move the common parts to asm-generic/pci.h to allow for &

[PATCH v5 4/4] asm-generic: Add new pci.h and use it

2022-07-21 Thread Stafford Horne
Morel Acked-by: Geert Uytterhoeven Reviewed-by: Arnd Bergmann Signed-off-by: Stafford Horne --- Since v4: - Add reviewed-by arch/arm64/include/asm/pci.h | 10 ++ arch/csky/include/asm/pci.h | 17 ++--- arch/riscv/include/asm/pci.h | 23 --- arch/um

[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 v5 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-21 Thread Stafford Horne
: Rafael J. Wysocki Reviewed-by: Christoph Hellwig Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Stafford Horne --- Since v4: - Also remove pci_get_legacy_ide_irq from arm64, csky, riscv at this point. arch/alpha/include/asm/pci.h | 6 -- arch/arm/include

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
On Tue, Jul 19, 2022 at 03:09:35PM +, David Laight wrote: > From: Stafford Horne > > Sent: 19 July 2022 13:24 > > > > On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > > > On Tue, Jul 19, 2022 at 12:55 PM Stafford Horne wrote: > > Option 3

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
On Tue, Jul 19, 2022 at 07:32:46AM -0700, Christoph Hellwig wrote: > On Tue, Jul 19, 2022 at 10:05:46PM +0900, Stafford Horne wrote: > > > > Or we could try to keep the generic definition in a global header > > > > like linux/isa-dma.h. > > > > > > Pe

[PATCH v4 3/3] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
x27;t csky define it? Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpvazcycyv40pzncj...@mail.gmail.com/ Acked-by: Pierre Morel Acked-by: Geert Uytterhoeven Signed-off-by: Stafford Horne --- Since v3: - Remove notes about pci_get_legacy_ide_ir

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-19 Thread Stafford Horne
On Tue, Jul 19, 2022 at 03:18:17PM +0200, Arnd Bergmann wrote: > On Tue, Jul 19, 2022 at 3:05 PM Stafford Horne wrote: > > On Tue, Jul 19, 2022 at 09:23:36PM +0900, Stafford Horne wrote: > > > On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > > > > &g

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-19 Thread Stafford Horne
On Tue, Jul 19, 2022 at 09:23:36PM +0900, Stafford Horne wrote: > On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > > On Tue, Jul 19, 2022 at 12:55 PM Stafford Horne wrote: > > > > > diff --git a/drivers/comedi/drivers/comedi_isadma.c > &

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-19 Thread Stafford Horne
On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > On Tue, Jul 19, 2022 at 12:55 PM Stafford Horne wrote: > > > diff --git a/drivers/comedi/drivers/comedi_isadma.c > > b/drivers/comedi/drivers/comedi_isadma.c > > index 700982464c53..508421809128 100644

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-19 Thread Stafford Horne
On Tue, Jul 19, 2022 at 09:45:58AM +0200, Arnd Bergmann wrote: > On Tue, Jul 19, 2022 at 1:19 AM Stafford Horne wrote: > > On Mon, Jul 18, 2022, 3:56 PM Arnd Bergmann wrote: > >> > >> As mentioned before, it would be even better to just remove it > >> enti

[PATCH v3 2/2] asm-generic: Add new pci.h and use it

2022-07-17 Thread Stafford Horne
ained for arm64, in other architectures it is removed. Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpvazcycyv40pzncj...@mail.gmail.com/ Signed-off-by: Stafford Horne --- Second note on isa_dma_bridge_buggy, this is set on x86 but it it also set i

[PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-16 Thread Stafford Horne
ained for arm64, in other architectures it is removed. Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpvazcycyv40pzncj...@mail.gmail.com/ Signed-off-by: Stafford Horne --- arch/arm64/include/asm/pci.h | 12 +++- arch/csky/include/asm/

Re: [RFC PATCH 2/2] asm-generic: Add new pci.h and use it

2022-07-15 Thread Stafford Horne
On Fri, Jul 15, 2022 at 10:09:21AM +0200, Arnd Bergmann wrote: > On Thu, Jul 14, 2022 at 11:46 PM Stafford Horne wrote: > > > > The asm/pci.h used for many newer architectures share similar > > definitions. Move the common parts to asm-generic/pci.h to allow for > > sh

[RFC PATCH 2/2] asm-generic: Add new pci.h and use it

2022-07-14 Thread Stafford Horne
pzncj...@mail.gmail.com/ Signed-off-by: Stafford Horne --- arch/arm64/include/asm/pci.h | 18 ++-- arch/csky/include/asm/pci.h | 24 -- arch/riscv/include/asm/pci.h | 25 +++--- arch/um/include/asm/pci.h| 24 ++ include/asm-ge

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]