mm: ioremap: Convert architectures to take GENERIC_IOREMAP way
Subsystems (13)
PATCH v2 5/11 hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeWith it, the old ioremap() and iounmap() can be perfectly removed since they are duplicated with the standard functions.
--- arch/hexagon/Kconfig | 1 + arch/hexagon/include/asm/io.h | 9 +++++-- arch/hexagon/mm/ioremap.c | 44 ----------------------------------- 3 files changed, 8 insertions(+), 46 deletions(-) delete mode 100644 arch/hexagon/mm/ioremap.c
arch/hexagon/Kconfig +1 -0
@@ -25,6 +25,7 @@ config HEXAGON select NEED_SG_DMA_LENGTH select NO_IOPORT_MAP select GENERIC_IOMAP + select GENERIC_IOREMAP select GENERIC_SMP_IDLE_THREAD select STACKTRACE_SUPPORT select GENERIC_CLOCKEVENTS_BROADCAST
arch/hexagon/include/asm/io.h +7 -2
@@ -170,8 +170,13 @@ static inline void writel(u32 data, volatile void __iomem *addr)#define writew_relaxed __raw_writew#define writel_relaxed __raw_writel -void __iomem *ioremap (unsigned long phys_addr,unsigned long size); -#define ioremap_uc (X ,Y ) ioremap((X), (Y)) +/* +* I/O memory mapping functions. +*/ +#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ + (__HEXAGON_C_DEV << 6)) + +#define ioremap_uc (addr, size) ioremap((addr), (size))#define __raw_writel writel
arch/hexagon/mm/ioremap.c deleted +0 -44
44 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 6/11 ia64: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hooks arch_ioremap() and arch_iounmap() for ia64's special operation when ioremap() and iounmap(), then ioremap_cache() is converted to use ioremap_prot() from GENERIC_IOREMAP.
The old ioremap_uc() is kept and add its macro definittion.
--- arch/ia64/Kconfig | 1 + arch/ia64/include/asm/io.h | 26 ++++++++++++-------- arch/ia64/mm/ioremap.c | 50 +++++++++----------------------------- 3 files changed, 28 insertions(+), 49 deletions(-)
arch/ia64/Kconfig +1 -0
@@ -45,6 +45,7 @@ config IA64 select GENERIC_IRQ_LEGACY select ARCH_HAVE_NMI_SAFE_CMPXCHG select GENERIC_IOMAP + select GENERIC_IOREMAP select GENERIC_SMP_IDLE_THREAD select ARCH_TASK_STRUCT_ON_STACK select ARCH_TASK_STRUCT_ALLOCATOR
arch/ia64/include/asm/io.h +16 -10
@@ -247,17 +247,23 @@ static inline void outsl(unsigned long port, const void *src,# ifdef __KERNEL__ -extern void __iomem *ioremap (unsigned long offset,unsigned long size); -extern void __iomem *ioremap_uc (unsigned long offset,unsigned long size); -extern void iounmap (volatile void __iomem *addr); -static inline void __iomem *ioremap_cache (unsigned long phys_addr,unsigned long size) -{ -return ioremap (phys_addr, size); -} -#define ioremap ioremap -#define ioremap_cache ioremap_cache +/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +#define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) + +#define ioremap_cache (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL)) + +void __iomem *ioremap_uc (unsigned long offset,unsigned long size);#define ioremap_uc ioremap_uc -#define iounmap iounmap/* * String version of IO memory access ops:
arch/ia64/mm/ioremap.c +11 -39
72 lines not on this page · raw message
Signature · 1 line
2.34.1
v2 cover mm: ioremap: Convert architectures to take GENERIC_IOREMAP way
Currently, many architecutres have't taken the standard GENERIC_IOREMAP way to implement ioremap_prot(), iounmap(), and ioremap_xx(), but make these functions specifically under each arch's folder. Those cause many duplicated codes of ioremap() and iounmap().
In this patchset, firstly adapt the hooks io[re|un]map_allowed, then make use of them to convert those ARCH-es to take GENERIC_IOREMAP method. With these change, duplicated ioremap/iounmap() code uder ARCH-es are removed.
This is suggested by Christoph in below discussion:
https://lore.kernel.org/all/[email protected]/T/#u
And it's basically further action after arm64 has converted to GENERIC_IOREMAP way in below patchset.
[PATCH v5 0/6] arm64: Cleanup ioremap() and support ioremap_prot()
https://lore.kernel.org/all/[email protected]/T/#u
And some change of io[re|un]map_allowed() is borrowed from the v3 of arm64 converting patch.
[PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
https://lore.kernel.org/all/[email protected]/T/#u
v1->v2:
Rename io[re|un]map_allowed() to arch_io[re|un]map() and made some minor changes in patch 1~2 as per Alexander and Kefeng's suggestions. Accordingly, adjust patches~4~11 because of the renaming arch_io[re|un]map().
Testing:
It passes the testing on arm64. For other ARCHes, I only tried to pass build with existing RPMs of cross compiling tools. ARCHes like openrisc, parisc, don't build because of lack of cross compiling RPMS.
Baoquan He (11):
mm/ioremap: change the return value of io[re|un]map_allowed and rename
mm: ioremap: fixup the physical address and page prot
mm: ioremap: allow ARCH to have its own ioremap definition
arc: mm: Convert to GENERIC_IOREMAP
hexagon: mm: Convert to GENERIC_IOREMAP
ia64: mm: Convert to GENERIC_IOREMAP
openrisc: mm: Convert to GENERIC_IOREMAP
parisc: mm: Convert to GENERIC_IOREMAP
s390: mm: Convert to GENERIC_IOREMAP
sh: mm: Convert to GENERIC_IOREMAP
xtensa: mm: Convert to GENERIC_IOREMAP
arch/arc/Kconfig | 1 + arch/arc/include/asm/io.h | 19 +++++++--- arch/arc/mm/ioremap.c | 60 +++++-------------------------- arch/arm64/include/asm/io.h | 5 +-- arch/arm64/mm/ioremap.c | 16 ++++++--- arch/hexagon/Kconfig | 1 + arch/hexagon/include/asm/io.h | 9 +++-- arch/hexagon/mm/ioremap.c | 44 ----------------------- arch/ia64/Kconfig | 1 + arch/ia64/include/asm/io.h | 26 ++++++++------ arch/ia64/mm/ioremap.c | 50 ++++++-------------------- arch/openrisc/Kconfig | 1 + arch/openrisc/include/asm/io.h | 16 ++++++--- arch/openrisc/mm/ioremap.c | 51 +++++++++----------------- arch/parisc/Kconfig | 1 + arch/parisc/include/asm/io.h | 16 ++++++--- arch/parisc/mm/ioremap.c | 65 ++++------------------------------ arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++----- arch/s390/pci/pci.c | 60 +++++-------------------------- arch/sh/Kconfig | 1 + arch/sh/include/asm/io.h | 47 ++++++++---------------- arch/sh/mm/ioremap.c | 61 ++++++------------------------- arch/xtensa/Kconfig | 1 + arch/xtensa/include/asm/io.h | 39 +++++++++----------- arch/xtensa/mm/ioremap.c | 56 +++++++---------------------- include/asm-generic/io.h | 34 ++++++++++-------- mm/ioremap.c | 12 ++++--- 28 files changed, 230 insertions(+), 490 deletions(-) delete mode 100644 arch/hexagon/mm/ioremap.c
Signature · 1 line
2.34.1
PATCH v2 3/11 mm: ioremap: allow ARCH to have its own ioremap definition
Architectures like xtensa, arc, can be converted to GENERIC_IOREMAP, to take standard ioremap_prot() and ioremap_xxx() way. But they have ARCH specific handling for ioremap() method, than standard ioremap() method.
In oder to convert them to take GENERIC_IOREMAP method, allow these architecutres to have their own ioremap definition.
This is a preparation patch, no functionality change.
--- include/asm-generic/io.h | 3 +++ 1 file changed, 3 insertions(+)
include/asm-generic/io.h +3 -0
@@ -1078,11 +1078,14 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, unsigned long prot);void iounmap (volatile void __iomem *addr); +#ifndef ioremap +#define ioremap ioremapstatic inline void __iomem *ioremap (phys_addr_t addr,size_t size) {/* _PAGE_IOREMAP needs to be supplied by the architecture */ return ioremap_prot (addr, size, _PAGE_IOREMAP); } +#endif #endif /* !CONFIG_MMU || CONFIG_GENERIC_IOREMAP */ #ifndef ioremap_wc
Signature · 1 line
2.34.1
PATCH v2 1/11 mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Baoquan HeIn some architectures, there are ARCH specifici io address mapping handling when calling ioremap() or ioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.
In oder to convert them to take GENERIC_IOREMAP method, we need change the return value of hook ioremap_allowed() and iounmap_allowed(). Meanwhile, rename them to arch_ioremap() and arch_iounmap() to reflect their current behaviour.
===
arch_ioremap() return a bool,
- IS_ERR means return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap() return a bool,
- 0 means continue to vunmap
- error code means skip vunmap and return directly
This is taken from Kefeng's below old patch. Christoph suggested the return value because he foresaw the doablity of converting to take GENERIC_IOREMAP on more architectures.
- [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
- https://lore.kernel.org/all/[email protected]/T/#u
While at it, the invocation of arch_ioremap() need be moved to the beginning of ioremap_prot() because architectures like sh, openrisc, ia64, need do the ARCH specific io address mapping on the original physical address. And in the later patch, the address fix up code in arch_ioremap() also need be done on the original addre on some architectures.
This is preparation for later patch, no functionality change.
--- arch/arm64/include/asm/io.h | 4 ++-- arch/arm64/mm/ioremap.c | 15 ++++++++++----- include/asm-generic/io.h | 29 +++++++++++++++-------------- mm/ioremap.c | 12 ++++++++---- 4 files changed, 35 insertions(+), 25 deletions(-)
arch/arm64/include/asm/io.h +2 -2
@@ -139,8 +139,8 @@ extern void __memset_io(volatile void __iomem *, int, size_t);* I/O memory mapping functions. */ -bool ioremap_allowed (phys_addr_t phys_addr,size_t size,unsigned long prot); -#define ioremap_allowed ioremap_allowed +void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +#define arch_ioremap arch_ioremap#define _PAGE_IOREMAP PROT_DEVICE_nGnRE
arch/arm64/mm/ioremap.c +10 -5
@@ -3,19 +3,24 @@#include <linux/mm.h> #include <linux/io.h> -bool ioremap_allowed (phys_addr_t phys_addr,size_t size,unsigned long prot) +void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) { -unsigned long last_addr = phys_addr + size -1 ; +unsigned long last_addr, offset; + + offset = phys_addr & (~PAGE_MASK ); + phys_addr -= offset; + size =PAGE_ALIGN (size + offset); + last_addr = phys_addr + size -1 ;/* Don't allow outside PHYS_MASK */ if (last_addr & ~PHYS_MASK ) -return false; +return IOMEM_ERR_PTR (-EINVAL );/* Don't allow RAM to be mapped. */ if (WARN_ON (pfn_is_map_memory (__phys_to_pfn (phys_addr)))) -return false; +return IOMEM_ERR_PTR (-EINVAL ); -return true; +return NULL ; }/*
include/asm-generic/io.h +15 -14
@@ -1049,27 +1049,28 @@ static inline void iounmap(volatile void __iomem *addr)/* * Arch code can implement the following two hooks when using GENERIC_IOREMAP -* ioremap_allowed() return a bool, -* - true means continue to remap -* - false means skip remap and return directly -* iounmap_allowed() return a bool, -* - true means continue to vunmap -* - false means skip vunmap and return directly +* arch_ioremap() return a bool, +* - IS_ERR means return an error +* - NULL means continue to remap +* - a non-NULL, non-IS_ERR pointer is returned directly +* arch_iounmap() return a bool, +* - 0 means continue to vunmap +* - error code means skip vunmap and return directly */ -#ifndef ioremap_allowed -#define ioremap_allowed ioremap_allowed -static inline bool ioremap_allowed (phys_addr_t phys_addr,size_t size, +#ifndef arch_ioremap +#define arch_ioremap arch_ioremap +static inline void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) { -return true; +return NULL ; }#endif -#ifndef iounmap_allowed -#define iounmap_allowed iounmap_allowed -static inline bool iounmap_allowed (void *addr) +#ifndef arch_iounmap +#define arch_iounmap arch_iounmap +static inline int arch_iounmap (void __iomem *addr) { -return true; +return 0 ; }#endif
mm/ioremap.c +8 -4
@@ -17,6 +17,13 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,unsigned long offset, vaddr;phys_addr_t last_addr;struct vm_struct *area; +void __iomem *ioaddr; + + ioaddr =arch_ioremap (phys_addr, size, prot); +if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;/* Disallow wrap-around or zero size */ last_addr = phys_addr + size -1 ;
@@ -28,9 +35,6 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, phys_addr -= offset; size =PAGE_ALIGN (size + offset); -if (!ioremap_allowed (phys_addr, size, prot)) -return NULL ; - area =get_vm_area_caller (size,VM_IOREMAP ,__builtin_return_address (0 ));if (!area)
@@ -52,7 +56,7 @@ void iounmap(volatile void __iomem *addr) {void *vaddr = (void *)((unsigned long )addr &PAGE_MASK ); -if (!iounmap_allowed (vaddr)) +if (arch_iounmap ((void __iomem *)addr))return ;if (is_vmalloc_addr (vaddr))
Signature · 1 line
2.34.1
PATCH v2 4/11 arc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hooks arch_ioremap() and arch_iounmap() for arc's special operation when ioremap_prot() and iounmap(). Meanwhile define and implement arc's own ioremap() because arc has some special handling in ioremap() than standard ioremap().
--- arch/arc/Kconfig | 1 + arch/arc/include/asm/io.h | 19 +++++++++---- arch/arc/mm/ioremap.c | 60 ++++++--------------------------------- 3 files changed, 23 insertions(+), 57 deletions(-)
arch/arc/Kconfig +1 -0
@@ -26,6 +26,7 @@ config ARC select GENERIC_PENDING_IRQ if SMP select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD + select GENERIC_IOREMAP select HAVE_ARCH_KGDB select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARC_MMU_V4
arch/arc/include/asm/io.h +14 -5
@@ -20,9 +20,20 @@#define __iowmb () do { } while (0)#endif -extern void __iomem *ioremap (phys_addr_t paddr,unsigned long size); -extern void __iomem *ioremap_prot (phys_addr_t paddr,unsigned long size, -unsigned long flags); +/* +* I/O memory mapping functions. +*/ + +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +void __iomem *ioremap (phys_addr_t paddr,unsigned long size); +#define ioremap ioremap +static inline void __iomem *ioport_map (unsigned long port,unsigned int nr) {return (void __iomem *)port;
@@ -32,8 +43,6 @@ static inline void ioport_unmap(void __iomem *addr) { } -extern void iounmap (const void __iomem *addr); -/* * io{read,write}{16,32}be() macros */
arch/arc/mm/ioremap.c +8 -52
83 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 2/11 mm: ioremap: fixup the physical address and page prot
In reply to Baoquan HeOn some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into ioremap_prot() need be adjusted too.
In oder to convert them to take GENERIC_IOREMAP method, we need wrap the address fixing up code and page prot adjusting code into arch_ioremap() and pass the new address and 'prot' out for ioremap_prot() handling.
This is a preparation patch, no functionality change.
--- arch/arm64/include/asm/io.h | 3 ++- arch/arm64/mm/ioremap.c | 5 +++-- include/asm-generic/io.h | 4 ++-- mm/ioremap.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-)
arch/arm64/include/asm/io.h +2 -1
@@ -139,7 +139,8 @@ extern void __memset_io(volatile void __iomem *, int, size_t);* I/O memory mapping functions. */ -void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val);#define arch_ioremap arch_ioremap#define _PAGE_IOREMAP PROT_DEVICE_nGnRE
arch/arm64/mm/ioremap.c +3 -2
@@ -3,9 +3,10 @@#include <linux/mm.h> #include <linux/io.h> -void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -unsigned long last_addr, offset; +unsigned long last_addr, offset, phys_addr = *paddr; offset = phys_addr & (~PAGE_MASK ); phys_addr -= offset;
include/asm-generic/io.h +2 -2
@@ -1059,8 +1059,8 @@ static inline void iounmap(volatile void __iomem *addr)*/ #ifndef arch_ioremap#define arch_ioremap arch_ioremap -static inline void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size, -unsigned long prot) +static inline void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size, +unsigned long *prot_val) {return NULL ; }
mm/ioremap.c +1 -1
@@ -19,7 +19,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,struct vm_struct *area;void __iomem *ioaddr; - ioaddr =arch_ioremap (phys_addr, size, prot); + ioaddr =arch_ioremap (&phys_addr, size, &prot);if (IS_ERR (ioaddr))return NULL ;else if (ioaddr)
Signature · 1 line
2.34.1
PATCH v2 7/11 openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hooks arch_ioremap() and arch_iounmap() for operisc's special operation when ioremap() and iounmap.
--- arch/openrisc/Kconfig | 1 + arch/openrisc/include/asm/io.h | 16 ++++++++--- arch/openrisc/mm/ioremap.c | 51 +++++++++++----------------------- 3 files changed, 29 insertions(+), 39 deletions(-)
arch/openrisc/Kconfig +1 -0
@@ -21,6 +21,7 @@ config OPENRISC select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select GENERIC_CPU_DEVICES select HAVE_PCI select HAVE_UID16
arch/openrisc/include/asm/io.h +12 -4
@@ -15,6 +15,8 @@#define __ASM_OPENRISC_IO_H#include <linux/types.h> +#include <asm/pgtable.h> +#include <asm/pgalloc.h> /* * PCI: We do not use IO ports in OpenRISC
@@ -27,11 +29,17 @@#define PIO_OFFSET 0#define PIO_MASK 0 -#define ioremap ioremap -void __iomem *ioremap (phys_addr_t offset,unsigned long size); +/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap -#define iounmap iounmap -extern void iounmap (volatile void __iomem *addr); +#define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)#include <asm-generic/io.h>
arch/openrisc/mm/ioremap.c +16 -35
87 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 9/11 s390: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hooks arch_ioremap() and arch_iounmap() for s390's special operation when ioremap() and iounmap(), then ioremap_[wc|wt]() are converted to use ioremap_prot() from GENERIC_IOREMAP.
--- arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++++------ arch/s390/pci/pci.c | 60 +++++--------------------------------- 3 files changed, 26 insertions(+), 61 deletions(-)
arch/s390/Kconfig +1 -0
@@ -135,6 +135,7 @@ config S390 select GENERIC_SMP_IDLE_THREAD select GENERIC_TIME_VSYSCALL select GENERIC_VDSO_TIME_NS + select GENERIC_IOREMAP select HAVE_ALIGNED_STRUCT_PAGE if SLUB select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABEL
arch/s390/include/asm/io.h +17 -9
@@ -22,11 +22,23 @@ void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);#define IO_SPACE_LIMIT 0 -void __iomem *ioremap_prot (phys_addr_t addr,size_t size,unsigned long prot); -void __iomem *ioremap (phys_addr_t addr,size_t size); -void __iomem *ioremap_wc (phys_addr_t addr,size_t size); -void __iomem *ioremap_wt (phys_addr_t addr,size_t size); -void iounmap (volatile void __iomem *addr); + +/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +#define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) + +#define ioremap_wc (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writecombine(PAGE_KERNEL))) +#define ioremap_wt (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writethrough(PAGE_KERNEL)))static inline void __iomem *ioport_map (unsigned long port,unsigned int nr) {
@@ -51,10 +63,6 @@ static inline void ioport_unmap(void __iomem *p)#define pci_iomap_wc pci_iomap_wc#define pci_iomap_wc_range pci_iomap_wc_range -#define ioremap ioremap -#define ioremap_wt ioremap_wt -#define ioremap_wc ioremap_wc -#define memcpy_fromio (dst, src, count) zpci_memcpy_fromio(dst, src, count)#define memcpy_toio (dst, src, count) zpci_memcpy_toio(dst, src, count)#define memset_io (dst, val, count) zpci_memset_io(dst, val, count)
arch/s390/pci/pci.c +8 -52
72 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 8/11 parisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hook arch_ioremap() for parisc's special operation when ioremap(), then ioremap_[wc|uc]() are converted to use ioremap_prot() from GENERIC_IOREMAP.
--- arch/parisc/Kconfig | 1 + arch/parisc/include/asm/io.h | 16 ++++++--- arch/parisc/mm/ioremap.c | 65 ++++-------------------------------- 3 files changed, 18 insertions(+), 64 deletions(-)
arch/parisc/Kconfig +1 -0
@@ -36,6 +36,7 @@ config PARISC select GENERIC_ATOMIC64 if !64BIT select GENERIC_IRQ_PROBE select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select ARCH_HAVE_NMI_SAFE_CMPXCHG select GENERIC_SMP_IDLE_THREAD select GENERIC_ARCH_TOPOLOGY if SMP
arch/parisc/include/asm/io.h +11 -5
@@ -123,13 +123,19 @@ static inline void gsc_writeq(unsigned long long val, unsigned long addr) }/* -* The standard PCI ioremap interfaces +* I/O memory mapping functions. */ -void __iomem *ioremap (unsigned long offset,unsigned long size); -#define ioremap_wc ioremap -#define ioremap_uc ioremap +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long prot); +#define arch_ioremap arch_ioremap -extern void iounmap (const volatile void __iomem *addr); +#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ + _PAGE_ACCESSED | _PAGE_NO_CACHE) + +#define ioremap_wc (addr, size) \ + ioremap_prot((addr), (size), _PAGE_IOREMAP) +#define ioremap_uc (addr, size) \ + ioremap_prot((addr), (size), _PAGE_IOREMAP)static inline unsigned char __raw_readb (const volatile void __iomem *addr) {
arch/parisc/mm/ioremap.c +6 -59
87 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 10/11 sh: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hook arch_ioremap() and arch_iounmap for sh's special operation when ioremap() and iounmap(), then ioremap_cache() is converted to use ioremap_prot() from GENERIC_IOREMAP.
--- arch/sh/Kconfig | 1 + arch/sh/include/asm/io.h | 47 +++++++++---------------------- arch/sh/mm/ioremap.c | 61 ++++++++-------------------------------- 3 files changed, 26 insertions(+), 83 deletions(-)
arch/sh/Kconfig +1 -0
@@ -25,6 +25,7 @@ config SUPERH select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD select GUP_GET_PTE_LOW_HIGH if X2TLB + select GENERIC_IOREMAP if MMU select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_KGDB select HAVE_ARCH_SECCOMP_FILTER
arch/sh/include/asm/io.h +14 -33
59 lines not on this page · raw message
arch/sh/mm/ioremap.c +11 -50
103 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 11/11 xtensa: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeAdd hooks arch_ioremap() and arch_iounmap() for xtensa's special operation when ioremap() and iounmap(). Then define and implement its own ioremap() and ioremap_cache().
--- arch/xtensa/Kconfig | 1 + arch/xtensa/include/asm/io.h | 39 +++++++++++-------------- arch/xtensa/mm/ioremap.c | 56 +++++++++--------------------------- 3 files changed, 31 insertions(+), 65 deletions(-)
arch/xtensa/Kconfig +1 -0
@@ -29,6 +29,7 @@ config XTENSA select GENERIC_LIB_UCMPDI2 select GENERIC_PCI_IOMAP select GENERIC_SCHED_CLOCK + select GENERIC_IOREMAP if MMU select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
arch/xtensa/include/asm/io.h +17 -22
@@ -16,6 +16,7 @@#include <asm/vectors.h> #include <linux/bug.h> #include <linux/kernel.h> +#include <linux/pgtable.h> #include <linux/types.h>
@@ -23,23 +24,29 @@#define IO_SPACE_LIMIT ~0#define PCI_IOBASE ((void __iomem *)XCHAL_KIO_BYPASS_VADDR) -#ifdef CONFIG_MMU - -void __iomem *xtensa_ioremap_nocache (unsigned long addr,unsigned long size); -void __iomem *xtensa_ioremap_cache (unsigned long addr,unsigned long size); -void xtensa_iounmap (volatile void __iomem *addr); -/* -* Return the virtual address for the specified bus memory. +* I/O memory mapping functions. */ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +void __iomem *ioremap_prot (phys_addr_t paddr,size_t size, +unsigned long prot); +static inline void __iomem *ioremap (unsigned long offset,unsigned long size) {if (offset >=XCHAL_KIO_PADDR && offset -XCHAL_KIO_PADDR <XCHAL_KIO_SIZE )return (void *)(offset-XCHAL_KIO_PADDR +XCHAL_KIO_BYPASS_VADDR );else -return xtensa_ioremap_nocache (offset, size); +return ioremap_prot (offset, size, +pgprot_val (pgprot_noncached (PAGE_KERNEL ))); } +#define ioremap ioremapstatic inline void __iomem *ioremap_cache (unsigned long offset,unsigned long size)
@@ -48,22 +55,10 @@ static inline void __iomem *ioremap_cache(unsigned long offset, && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE)return (void *)(offset-XCHAL_KIO_PADDR +XCHAL_KIO_CACHED_VADDR ); else - return xtensa_ioremap_cache(offset, size); -} -#define ioremap_cache ioremap_cache - -static inline void iounmap (volatile void __iomem *addr) -{ -unsigned long va = (unsigned long ) addr; + return ioremap_prot(offset, size, pgprot_val(PAGE_KERNEL)); -if (!(va >=XCHAL_KIO_CACHED_VADDR && - va -XCHAL_KIO_CACHED_VADDR <XCHAL_KIO_SIZE ) && - !(va >=XCHAL_KIO_BYPASS_VADDR && - va -XCHAL_KIO_BYPASS_VADDR <XCHAL_KIO_SIZE )) -xtensa_iounmap (addr); } - -#endif /* CONFIG_MMU */ +#define ioremap_cache ioremap_cache#include <asm-generic/io.h>
arch/xtensa/mm/ioremap.c +13 -43
73 lines not on this page · raw message
Signature · 1 line
2.34.1
RE: [PATCH v2 05/11] hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 2 lines
-----Original Message-----
From: Baoquan He <[email protected]>
...
Quoted 7 lines
With it, the old
ioremap()andiounmap()can be perfectly removed since they are duplicated with the standard functions.---
kernel test robot
build botRe: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeI love your patch! Yet something to improve:
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e58bc5f0a49261398fafbd90e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout 503a31451202f89e58bc5f0a49261398fafbd90e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare
If you fix the issue, kindly add following tag where applicable
All error/warnings (new ones prefixed by >>):
In file included from include/linux/io.h:13,
from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/sh/include/asm/hardirq.h:9, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from include/linux/cgroup.h:26, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/sh/kernel/asm-offsets.c:16:
>> arch/sh/include/asm/io.h:259: warning: "ioremap_cache" redefined
259 | #define ioremap_cache ioremap_cache
|
arch/sh/include/asm/io.h:257: note: this is the location of the previous definition
257 | #define ioremap_cache(addr, size) \
|
In file included from arch/sh/include/asm/io.h:263:
>> include/asm-generic/io.h:689:14: error: conflicting types for 'insb'; have 'void(long unsigned int, void *, unsigned int)'
689 | #define insb insb
| ^~~~
include/asm-generic/io.h:690:20: note: in expansion of macro 'insb'
690 | static inline void insb(unsigned long addr, void *buffer, unsigned int count)
| ^~~~
In file included from arch/sh/include/asm/io.h:220:
arch/sh/include/asm/io_noioport.h:56:20: note: previous definition of 'insb' with type 'void(long unsigned int, void *, long unsigned int)'
56 | static inline void insb(unsigned long port, void *dst, unsigned long count)
| ^~~~
>> include/asm-generic/io.h:697:14: error: conflicting types for 'insw'; have 'void(long unsigned int, void *, unsigned int)'
697 | #define insw insw
| ^~~~
include/asm-generic/io.h:698:20: note: in expansion of macro 'insw'
698 | static inline void insw(unsigned long addr, void *buffer, unsigned int count)
| ^~~~
arch/sh/include/asm/io_noioport.h:61:20: note: previous definition of 'insw' with type 'void(long unsigned int, void *, long unsigned int)'
61 | static inline void insw(unsigned long port, void *dst, unsigned long count)
| ^~~~
>> include/asm-generic/io.h:705:14: error: conflicting types for 'insl'; have 'void(long unsigned int, void *, unsigned int)'
705 | #define insl insl
| ^~~~
include/asm-generic/io.h:706:20: note: in expansion of macro 'insl'
706 | static inline void insl(unsigned long addr, void *buffer, unsigned int count)
| ^~~~
arch/sh/include/asm/io_noioport.h:66:20: note: previous definition of 'insl' with type 'void(long unsigned int, void *, long unsigned int)'
66 | static inline void insl(unsigned long port, void *dst, unsigned long count)
| ^~~~
>> include/asm-generic/io.h:713:15: error: conflicting types for 'outsb'; have 'void(long unsigned int, const void *, unsigned int)'
713 | #define outsb outsb
| ^~~~~
include/asm-generic/io.h:714:20: note: in expansion of macro 'outsb'
714 | static inline void outsb(unsigned long addr, const void *buffer,
| ^~~~~
arch/sh/include/asm/io_noioport.h:71:20: note: previous definition of 'outsb' with type 'void(long unsigned int, const void *, long unsigned int)'
71 | static inline void outsb(unsigned long port, const void *src, unsigned long count)
| ^~~~~
>> include/asm-generic/io.h:722:15: error: conflicting types for 'outsw'; have 'void(long unsigned int, const void *, unsigned int)'
722 | #define outsw outsw
| ^~~~~
include/asm-generic/io.h:723:20: note: in expansion of macro 'outsw'
723 | static inline void outsw(unsigned long addr, const void *buffer,
| ^~~~~
arch/sh/include/asm/io_noioport.h:76:20: note: previous definition of 'outsw' with type 'void(long unsigned int, const void *, long unsigned int)'
76 | static inline void outsw(unsigned long port, const void *src, unsigned long count)
| ^~~~~
>> include/asm-generic/io.h:731:15: error: conflicting types for 'outsl'; have 'void(long unsigned int, const void *, unsigned int)'
731 | #define outsl outsl
| ^~~~~
include/asm-generic/io.h:732:20: note: in expansion of macro 'outsl'
732 | static inline void outsl(unsigned long addr, const void *buffer,
| ^~~~~
arch/sh/include/asm/io_noioport.h:81:20: note: previous definition of 'outsl' with type 'void(long unsigned int, const void *, long unsigned int)'
81 | static inline void outsl(unsigned long port, const void *src, unsigned long count)
| ^~~~~
>> include/asm-generic/io.h:792:17: error: conflicting types for 'ioread8'; have 'u8(const volatile void *)' {aka 'unsigned char(const volatile void *)'}
792 | #define ioread8 ioread8
| ^~~~~~~
include/asm-generic/io.h:793:18: note: in expansion of macro 'ioread8'
793 | static inline u8 ioread8(const volatile void __iomem *addr)
| ^~~~~~~
In file included from arch/sh/include/asm/io.h:22:
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread8' with type 'unsigned int(const void *)'
29 | extern unsigned int ioread8(const void __iomem *);
| ^~~~~~~
>> include/asm-generic/io.h:800:18: error: conflicting types for 'ioread16'; have 'u16(const volatile void *)' {aka 'short unsigned int(const volatile void *)'}
800 | #define ioread16 ioread16
| ^~~~~~~~
include/asm-generic/io.h:801:19: note: in expansion of macro 'ioread16'
801 | static inline u16 ioread16(const volatile void __iomem *addr)
| ^~~~~~~~
include/asm-generic/iomap.h:30:21: note: previous declaration of 'ioread16' with type 'unsigned int(const void *)'
30 | extern unsigned int ioread16(const void __iomem *);
| ^~~~~~~~
>> include/asm-generic/io.h:808:18: error: conflicting types for 'ioread32'; have 'u32(const volatile void *)' {aka 'unsigned int(const volatile void *)'}
808 | #define ioread32 ioread32
| ^~~~~~~~
include/asm-generic/io.h:809:19: note: in expansion of macro 'ioread32'
809 | static inline u32 ioread32(const volatile void __iomem *addr)
| ^~~~~~~~
include/asm-generic/iomap.h:32:21: note: previous declaration of 'ioread32' with type 'unsigned int(const void *)'
32 | extern unsigned int ioread32(const void __iomem *);
| ^~~~~~~~
>> include/asm-generic/io.h:826:18: error: conflicting types for 'iowrite8'; have 'void(u8, volatile void *)' {aka 'void(unsigned char, volatile void *)'}
826 | #define iowrite8 iowrite8
| ^~~~~~~~
include/asm-generic/io.h:827:20: note: in expansion of macro 'iowrite8'
827 | static inline void iowrite8(u8 value, volatile void __iomem *addr)
| ^~~~~~~~
include/asm-generic/iomap.h:50:13: note: previous declaration of 'iowrite8' with type 'void(u8, void *)' {aka 'void(unsigned char, void *)'}
50 | extern void iowrite8(u8, void __iomem *);
| ^~~~~~~~
>> include/asm-generic/io.h:834:19: error: conflicting types for 'iowrite16'; have 'void(u16, volatile void *)' {aka 'void(short unsigned int, volatile void *)'}
834 | #define iowrite16 iowrite16
| ^~~~~~~~~
include/asm-generic/io.h:835:20: note: in expansion of macro 'iowrite16'
835 | static inline void iowrite16(u16 value, volatile void __iomem *addr)
| ^~~~~~~~~
include/asm-generic/iomap.h:51:13: note: previous declaration of 'iowrite16' with type 'void(u16, void *)' {aka 'void(short unsigned int, void *)'}
51 | extern void iowrite16(u16, void __iomem *);
| ^~~~~~~~~
>> include/asm-generic/io.h:842:19: error: conflicting types for 'iowrite32'; have 'void(u32, volatile void *)' {aka 'void(unsigned int, volatile void *)'}
842 | #define iowrite32 iowrite32
| ^~~~~~~~~
include/asm-generic/io.h:843:20: note: in expansion of macro 'iowrite32'
843 | static inline void iowrite32(u32 value, volatile void __iomem *addr)
| ^~~~~~~~~
include/asm-generic/iomap.h:53:13: note: previous declaration of 'iowrite32' with type 'void(u32, void *)' {aka 'void(unsigned int, void *)'}
53 | extern void iowrite32(u32, void __iomem *);
| ^~~~~~~~~
>> include/asm-generic/io.h:860:20: error: conflicting types for 'ioread16be'; have 'u16(const volatile void *)' {aka 'short unsigned int(const volatile void *)'}
860 | #define ioread16be ioread16be
| ^~~~~~~~~~
include/asm-generic/io.h:861:19: note: in expansion of macro 'ioread16be'
861 | static inline u16 ioread16be(const volatile void __iomem *addr)
| ^~~~~~~~~~
include/asm-generic/iomap.h:31:21: note: previous declaration of 'ioread16be' with type 'unsigned int(const void *)'
31 | extern unsigned int ioread16be(const void __iomem *);
| ^~~~~~~~~~
>> include/asm-generic/io.h:868:20: error: conflicting types for 'ioread32be'; have 'u32(const volatile void *)' {aka 'unsigned int(const volatile void *)'}
868 | #define ioread32be ioread32be
| ^~~~~~~~~~
include/asm-generic/io.h:869:19: note: in expansion of macro 'ioread32be'
869 | static inline u32 ioread32be(const volatile void __iomem *addr)
| ^~~~~~~~~~
include/asm-generic/iomap.h:33:21: note: previous declaration of 'ioread32be' with type 'unsigned int(const void *)'
33 | extern unsigned int ioread32be(const void __iomem *);
| ^~~~~~~~~~
>> include/asm-generic/io.h:886:21: error: conflicting types for 'iowrite16be'; have 'void(u16, volatile void *)' {aka 'void(short unsigned int, volatile void *)'}
886 | #define iowrite16be iowrite16be
| ^~~~~~~~~~~
include/asm-generic/io.h:887:20: note: in expansion of macro 'iowrite16be'
887 | static inline void iowrite16be(u16 value, void volatile __iomem *addr)
| ^~~~~~~~~~~
include/asm-generic/iomap.h:52:13: note: previous declaration of 'iowrite16be' with type 'void(u16, void *)' {aka 'void(short unsigned int, void *)'}
52 | extern void iowrite16be(u16, void __iomem *);
| ^~~~~~~~~~~
>> include/asm-generic/io.h:894:21: error: conflicting types for 'iowrite32be'; have 'void(u32, volatile void *)' {aka 'void(unsigned int, volatile void *)'}
894 | #define iowrite32be iowrite32be
| ^~~~~~~~~~~
include/asm-generic/io.h:895:20: note: in expansion of macro 'iowrite32be'
895 | static inline void iowrite32be(u32 value, volatile void __iomem *addr)
| ^~~~~~~~~~~
include/asm-generic/iomap.h:54:13: note: previous declaration of 'iowrite32be' with type 'void(u32, void *)' {aka 'void(unsigned int, void *)'}
54 | extern void iowrite32be(u32, void __iomem *);
| ^~~~~~~~~~~
>> include/asm-generic/io.h:912:21: error: conflicting types for 'ioread8_rep'; have 'void(const volatile void *, void *, unsigned int)'
912 | #define ioread8_rep ioread8_rep
| ^~~~~~~~~~~
include/asm-generic/io.h:913:20: note: in expansion of macro 'ioread8_rep'
913 | static inline void ioread8_rep(const volatile void __iomem *addr, void *buffer,
| ^~~~~~~~~~~
include/asm-generic/iomap.h:82:13: note: previous declaration of 'ioread8_rep' with type 'void(const void *, void *, long unsigned int)'
82 | extern void ioread8_rep(const void __iomem *port, void *buf, unsigned long count);
| ^~~~~~~~~~~
include/asm-generic/io.h: In function 'ioread8_rep':
>> include/asm-generic/io.h:916:16: warning: passing argument 1 of '__raw_readsb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
916 | readsb(addr, buffer, count);
| ^~~~
arch/sh/include/asm/io.h:59:46: note: in definition of macro 'readsb'
59 | #define readsb(p,d,l) __raw_readsb(p,d,l)
| ^
arch/sh/include/asm/io.h:103:60: note: expected 'volatile void *' but argument is of type 'const volatile void *'
103 | static inline void pfx##reads##bwlq(volatile void __iomem *mem, \
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
arch/sh/include/asm/io.h:114:1: note: in expansion of macro '__BUILD_MEMORY_STRING'
114 | __BUILD_MEMORY_STRING(__raw_, b, u8)
| ^~~~~~~~~~~~~~~~~~~~~
include/asm-generic/io.h: At top level:
>> include/asm-generic/io.h:921:22: error: conflicting types for 'ioread16_rep'; have 'void(const volatile void *, void *, unsigned int)'
921 | #define ioread16_rep ioread16_rep
| ^~~~~~~~~~~~
include/asm-generic/io.h:922:20: note: in expansion of macro 'ioread16_rep'
922 | static inline void ioread16_rep(const volatile void __iomem *addr,
| ^~~~~~~~~~~~
include/asm-generic/iomap.h:83:13: note: previous declaration of 'ioread16_rep' with type 'void(const void *, void *, long unsigned int)'
83 | extern void ioread16_rep(const void __iomem *port, void *buf, unsigned long count);
| ^~~~~~~~~~~~
include/asm-generic/io.h: In function 'ioread16_rep':
include/asm-generic/io.h:925:16: warning: passing argument 1 of '__raw_readsw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
925 | readsw(addr, buffer, count);
| ^~~~
arch/sh/include/asm/io.h:60:46: note: in definition of macro 'readsw'
60 | #define readsw(p,d,l) __raw_readsw(p,d,l)
| ^
arch/sh/include/asm/io.h:103:60: note: expected 'volatile void *' but argument is of type 'const volatile void *'
103 | static inline void pfx##reads##bwlq(volatile void __iomem *mem, \
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
arch/sh/include/asm/io.h:115:1: note: in expansion of macro '__BUILD_MEMORY_STRING'
115 | __BUILD_MEMORY_STRING(__raw_, w, u16)
| ^~~~~~~~~~~~~~~~~~~~~
include/asm-generic/io.h: At top level:
include/asm-generic/io.h:930:22: error: conflicting types for 'ioread32_rep'; have 'void(const volatile void *, void *, unsigned int)'
930 | #define ioread32_rep ioread32_rep
| ^~~~~~~~~~~~
include/asm-generic/io.h:931:20: note: in expansion of macro 'ioread32_rep'
931 | static inline void ioread32_rep(const volatile void __iomem *addr,
| ^~~~~~~~~~~~
include/asm-generic/iomap.h:84:13: note: previous declaration of 'ioread32_rep' with type 'void(const void *, void *, long unsigned int)'
84 | extern void ioread32_rep(const void __iomem *port, void *buf, unsigned long count);
| ^~~~~~~~~~~~
include/asm-generic/io.h: In function 'ioread32_rep':
include/asm-generic/io.h:934:16: warning: passing argument 1 of '__raw_readsl' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
934 | readsl(addr, buffer, count);
| ^~~~
arch/sh/include/asm/io.h:61:46: note: in definition of macro 'readsl'
61 | #define readsl(p,d,l) __raw_readsl(p,d,l)
| ^
arch/sh/include/asm/io.h:118:39: note: expected 'const void *' but argument is of type 'const volatile void *'
118 | void __raw_readsl(const void __iomem *addr, void *data, int longlen);
| ~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: At top level:
include/asm-generic/io.h:950:22: error: conflicting types for 'iowrite8_rep'; have 'void(volatile void *, const void *, unsigned int)'
950 | #define iowrite8_rep iowrite8_rep
| ^~~~~~~~~~~~
include/asm-generic/io.h:951:20: note: in expansion of macro 'iowrite8_rep'
951 | static inline void iowrite8_rep(volatile void __iomem *addr,
| ^~~~~~~~~~~~
include/asm-generic/iomap.h:86:13: note: previous declaration of 'iowrite8_rep' with type 'void(void *, const void *, long unsigned int)'
86 | extern void iowrite8_rep(void __iomem *port, const void *buf, unsigned long count);
| ^~~~~~~~~~~~
include/asm-generic/io.h:960:23: error: conflicting types for 'iowrite16_rep'; have 'void(volatile void *, const void *, unsigned int)'
960 | #define iowrite16_rep iowrite16_rep
| ^~~~~~~~~~~~~
include/asm-generic/io.h:961:20: note: in expansion of macro 'iowrite16_rep'
961 | static inline void iowrite16_rep(volatile void __iomem *addr,
| ^~~~~~~~~~~~~
include/asm-generic/iomap.h:87:13: note: previous declaration of 'iowrite16_rep' with type 'void(void *, const void *, long unsigned int)'
87 | extern void iowrite16_rep(void __iomem *port, const void *buf, unsigned long count);
| ^~~~~~~~~~~~~
include/asm-generic/io.h:970:23: error: conflicting types for 'iowrite32_rep'; have 'void(volatile void *, const void *, unsigned int)'
970 | #define iowrite32_rep iowrite32_rep
| ^~~~~~~~~~~~~
include/asm-generic/io.h:971:20: note: in expansion of macro 'iowrite32_rep'
971 | static inline void iowrite32_rep(volatile void __iomem *addr,
| ^~~~~~~~~~~~~
include/asm-generic/iomap.h:88:13: note: previous declaration of 'iowrite32_rep' with type 'void(void *, const void *, long unsigned int)'
88 | extern void iowrite32_rep(void __iomem *port, const void *buf, unsigned long count);
| ^~~~~~~~~~~~~
include/asm-generic/io.h: In function 'iowrite32_rep':
include/asm-generic/io.h:975:17: warning: passing argument 1 of '__raw_writesl' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
975 | writesl(addr, buffer, count);
| ^~~~
arch/sh/include/asm/io.h:65:47: note: in definition of macro 'writesl'
65 | #define writesl(p,d,l) __raw_writesl(p,d,l)
| ^
arch/sh/include/asm/io.h:117:34: note: expected 'void *' but argument is of type 'volatile void *'
117 | void __raw_writesl(void __iomem *addr, const void *data, int longlen);
| ~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: At top level:
include/asm-generic/io.h:1177:19: error: conflicting types for 'memset_io'; have 'void(volatile void *, int, size_t)' {aka 'void(volatile void *, int, unsigned int)'}
1177 | #define memset_io memset_io
| ^~~~~~~~~
include/asm-generic/io.h:1186:20: note: in expansion of macro 'memset_io'
1186 | static inline void memset_io(volatile void __iomem *addr, int value,
| ^~~~~~~~~
arch/sh/include/asm/io.h:230:6: note: previous declaration of 'memset_io' with type 'void(volatile void *, int, long unsigned int)'
230 | void memset_io(volatile void __iomem *, int, unsigned long);
| ^~~~~~~~~
include/asm-generic/io.h:1194:23: error: conflicting types for 'memcpy_fromio'; have 'void(void *, const volatile void *, size_t)' {aka 'void(void *, const volatile void *, unsigned int)'}
1194 | #define memcpy_fromio memcpy_fromio
| ^~~~~~~~~~~~~
include/asm-generic/io.h:1203:20: note: in expansion of macro 'memcpy_fromio'
1203 | static inline void memcpy_fromio(void *buffer,
| ^~~~~~~~~~~~~
arch/sh/include/asm/io.h:228:6: note: previous declaration of 'memcpy_fromio' with type 'void(void *, const volatile void *, long unsigned int)'
228 | void memcpy_fromio(void *, const volatile void __iomem *, unsigned long);
| ^~~~~~~~~~~~~ include/asm-generic/io.h:1212:21: error: conflicting types for 'memcpy_toio'; have 'void(volatile void *, const void *, size_t)' {aka 'void(volatile void *, const void *, unsigned int)'}
1212 | #define memcpy_toio memcpy_toio
vim +689 include/asm-generic/io.h
9216efafc52ff9 Thierry Reding 2014-10-01 682
9ab3a7a0d2b417 Thierry Reding 2014-07-04 683 /*
9ab3a7a0d2b417 Thierry Reding 2014-07-04 684 * {in,out}s{b,w,l}{,_p}() are variants of the above that repeatedly access a
9ab3a7a0d2b417 Thierry Reding 2014-07-04 685 * single I/O port multiple times.
9ab3a7a0d2b417 Thierry Reding 2014-07-04 686 */
9ab3a7a0d2b417 Thierry Reding 2014-07-04 687
9ab3a7a0d2b417 Thierry Reding 2014-07-04 688 #ifndef insb
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @689 #define insb insb
9ab3a7a0d2b417 Thierry Reding 2014-07-04 690 static inline void insb(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 691 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 692 readsb(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 693 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 694 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 695
9ab3a7a0d2b417 Thierry Reding 2014-07-04 696 #ifndef insw
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @697 #define insw insw
9ab3a7a0d2b417 Thierry Reding 2014-07-04 698 static inline void insw(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 699 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 700 readsw(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 701 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 702 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 703
9ab3a7a0d2b417 Thierry Reding 2014-07-04 704 #ifndef insl
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @705 #define insl insl
9ab3a7a0d2b417 Thierry Reding 2014-07-04 706 static inline void insl(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 707 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 708 readsl(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 709 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 710 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 711
9ab3a7a0d2b417 Thierry Reding 2014-07-04 712 #ifndef outsb
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @713 #define outsb outsb
9ab3a7a0d2b417 Thierry Reding 2014-07-04 714 static inline void outsb(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 715 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 716 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 717 writesb(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 718 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 719 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 720
9ab3a7a0d2b417 Thierry Reding 2014-07-04 721 #ifndef outsw
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @722 #define outsw outsw
9ab3a7a0d2b417 Thierry Reding 2014-07-04 723 static inline void outsw(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 724 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 725 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 726 writesw(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 727 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 728 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 729
9ab3a7a0d2b417 Thierry Reding 2014-07-04 730 #ifndef outsl
9ab3a7a0d2b417 Thierry Reding 2014-07-04 @731 #define outsl outsl
9ab3a7a0d2b417 Thierry Reding 2014-07-04 732 static inline void outsl(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 733 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 734 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 735 writesl(PCI_IOBASE + addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 736 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 737 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 738
9ab3a7a0d2b417 Thierry Reding 2014-07-04 739 #ifndef insb_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 740 #define insb_p insb_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 741 static inline void insb_p(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 742 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 743 insb(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 744 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 745 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 746
9ab3a7a0d2b417 Thierry Reding 2014-07-04 747 #ifndef insw_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 748 #define insw_p insw_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 749 static inline void insw_p(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 750 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 751 insw(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 752 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 753 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 754
9ab3a7a0d2b417 Thierry Reding 2014-07-04 755 #ifndef insl_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 756 #define insl_p insl_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 757 static inline void insl_p(unsigned long addr, void *buffer, unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 758 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 759 insl(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 760 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 761 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 762
9ab3a7a0d2b417 Thierry Reding 2014-07-04 763 #ifndef outsb_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 764 #define outsb_p outsb_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 765 static inline void outsb_p(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 766 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 767 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 768 outsb(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 769 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 770 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 771
9ab3a7a0d2b417 Thierry Reding 2014-07-04 772 #ifndef outsw_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 773 #define outsw_p outsw_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 774 static inline void outsw_p(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 775 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 776 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 777 outsw(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 778 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 779 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 780
9ab3a7a0d2b417 Thierry Reding 2014-07-04 781 #ifndef outsl_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 782 #define outsl_p outsl_p
9ab3a7a0d2b417 Thierry Reding 2014-07-04 783 static inline void outsl_p(unsigned long addr, const void *buffer,
9ab3a7a0d2b417 Thierry Reding 2014-07-04 784 unsigned int count)
9ab3a7a0d2b417 Thierry Reding 2014-07-04 785 {
9ab3a7a0d2b417 Thierry Reding 2014-07-04 786 outsl(addr, buffer, count);
9ab3a7a0d2b417 Thierry Reding 2014-07-04 787 }
9ab3a7a0d2b417 Thierry Reding 2014-07-04 788 #endif
9ab3a7a0d2b417 Thierry Reding 2014-07-04 789
9216efafc52ff9 Thierry Reding 2014-10-01 790 #ifndef CONFIG_GENERIC_IOMAP
9216efafc52ff9 Thierry Reding 2014-10-01 791 #ifndef ioread8
9216efafc52ff9 Thierry Reding 2014-10-01 @792 #define ioread8 ioread8
9216efafc52ff9 Thierry Reding 2014-10-01 793 static inline u8 ioread8(const volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 794 {
9216efafc52ff9 Thierry Reding 2014-10-01 795 return readb(addr);
9216efafc52ff9 Thierry Reding 2014-10-01 796 }
9216efafc52ff9 Thierry Reding 2014-10-01 797 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 798
9216efafc52ff9 Thierry Reding 2014-10-01 799 #ifndef ioread16
9216efafc52ff9 Thierry Reding 2014-10-01 @800 #define ioread16 ioread16
9216efafc52ff9 Thierry Reding 2014-10-01 801 static inline u16 ioread16(const volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 802 {
9216efafc52ff9 Thierry Reding 2014-10-01 803 return readw(addr);
9216efafc52ff9 Thierry Reding 2014-10-01 804 }
9216efafc52ff9 Thierry Reding 2014-10-01 805 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 806
9216efafc52ff9 Thierry Reding 2014-10-01 807 #ifndef ioread32
9216efafc52ff9 Thierry Reding 2014-10-01 @808 #define ioread32 ioread32
9216efafc52ff9 Thierry Reding 2014-10-01 809 static inline u32 ioread32(const volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 810 {
9216efafc52ff9 Thierry Reding 2014-10-01 811 return readl(addr);
9216efafc52ff9 Thierry Reding 2014-10-01 812 }
9216efafc52ff9 Thierry Reding 2014-10-01 813 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 814
9e44fb1816dba8 Horia Geantă 2016-05-19 815 #ifdef CONFIG_64BIT
9e44fb1816dba8 Horia Geantă 2016-05-19 816 #ifndef ioread64
9e44fb1816dba8 Horia Geantă 2016-05-19 817 #define ioread64 ioread64
9e44fb1816dba8 Horia Geantă 2016-05-19 818 static inline u64 ioread64(const volatile void __iomem *addr)
9e44fb1816dba8 Horia Geantă 2016-05-19 819 {
9e44fb1816dba8 Horia Geantă 2016-05-19 820 return readq(addr);
9e44fb1816dba8 Horia Geantă 2016-05-19 821 }
9e44fb1816dba8 Horia Geantă 2016-05-19 822 #endif
9e44fb1816dba8 Horia Geantă 2016-05-19 823 #endif /* CONFIG_64BIT */
9e44fb1816dba8 Horia Geantă 2016-05-19 824
9216efafc52ff9 Thierry Reding 2014-10-01 825 #ifndef iowrite8
9216efafc52ff9 Thierry Reding 2014-10-01 @826 #define iowrite8 iowrite8
9216efafc52ff9 Thierry Reding 2014-10-01 827 static inline void iowrite8(u8 value, volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 828 {
9216efafc52ff9 Thierry Reding 2014-10-01 829 writeb(value, addr);
9216efafc52ff9 Thierry Reding 2014-10-01 830 }
9216efafc52ff9 Thierry Reding 2014-10-01 831 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 832
9216efafc52ff9 Thierry Reding 2014-10-01 833 #ifndef iowrite16
9216efafc52ff9 Thierry Reding 2014-10-01 @834 #define iowrite16 iowrite16
9216efafc52ff9 Thierry Reding 2014-10-01 835 static inline void iowrite16(u16 value, volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 836 {
9216efafc52ff9 Thierry Reding 2014-10-01 837 writew(value, addr);
9216efafc52ff9 Thierry Reding 2014-10-01 838 }
9216efafc52ff9 Thierry Reding 2014-10-01 839 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 840
9216efafc52ff9 Thierry Reding 2014-10-01 841 #ifndef iowrite32
9216efafc52ff9 Thierry Reding 2014-10-01 @842 #define iowrite32 iowrite32
9216efafc52ff9 Thierry Reding 2014-10-01 843 static inline void iowrite32(u32 value, volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 844 {
9216efafc52ff9 Thierry Reding 2014-10-01 845 writel(value, addr);
9216efafc52ff9 Thierry Reding 2014-10-01 846 }
9216efafc52ff9 Thierry Reding 2014-10-01 847 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 848
9e44fb1816dba8 Horia Geantă 2016-05-19 849 #ifdef CONFIG_64BIT
9e44fb1816dba8 Horia Geantă 2016-05-19 850 #ifndef iowrite64
9e44fb1816dba8 Horia Geantă 2016-05-19 851 #define iowrite64 iowrite64
9e44fb1816dba8 Horia Geantă 2016-05-19 852 static inline void iowrite64(u64 value, volatile void __iomem *addr)
9e44fb1816dba8 Horia Geantă 2016-05-19 853 {
9e44fb1816dba8 Horia Geantă 2016-05-19 854 writeq(value, addr);
9e44fb1816dba8 Horia Geantă 2016-05-19 855 }
9e44fb1816dba8 Horia Geantă 2016-05-19 856 #endif
9e44fb1816dba8 Horia Geantă 2016-05-19 857 #endif /* CONFIG_64BIT */
9e44fb1816dba8 Horia Geantă 2016-05-19 858
9216efafc52ff9 Thierry Reding 2014-10-01 859 #ifndef ioread16be
9216efafc52ff9 Thierry Reding 2014-10-01 @860 #define ioread16be ioread16be
9216efafc52ff9 Thierry Reding 2014-10-01 861 static inline u16 ioread16be(const volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 862 {
7a1aedba706194 Horia Geantă 2016-05-19 863 return swab16(readw(addr));
9216efafc52ff9 Thierry Reding 2014-10-01 864 }
9216efafc52ff9 Thierry Reding 2014-10-01 865 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 866
9216efafc52ff9 Thierry Reding 2014-10-01 867 #ifndef ioread32be
9216efafc52ff9 Thierry Reding 2014-10-01 @868 #define ioread32be ioread32be
9216efafc52ff9 Thierry Reding 2014-10-01 869 static inline u32 ioread32be(const volatile void __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 870 {
7a1aedba706194 Horia Geantă 2016-05-19 871 return swab32(readl(addr));
9216efafc52ff9 Thierry Reding 2014-10-01 872 }
9216efafc52ff9 Thierry Reding 2014-10-01 873 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 874
9e44fb1816dba8 Horia Geantă 2016-05-19 875 #ifdef CONFIG_64BIT
9e44fb1816dba8 Horia Geantă 2016-05-19 876 #ifndef ioread64be
9e44fb1816dba8 Horia Geantă 2016-05-19 877 #define ioread64be ioread64be
9e44fb1816dba8 Horia Geantă 2016-05-19 878 static inline u64 ioread64be(const volatile void __iomem *addr)
9e44fb1816dba8 Horia Geantă 2016-05-19 879 {
9e44fb1816dba8 Horia Geantă 2016-05-19 880 return swab64(readq(addr));
9e44fb1816dba8 Horia Geantă 2016-05-19 881 }
9e44fb1816dba8 Horia Geantă 2016-05-19 882 #endif
9e44fb1816dba8 Horia Geantă 2016-05-19 883 #endif /* CONFIG_64BIT */
9e44fb1816dba8 Horia Geantă 2016-05-19 884
9216efafc52ff9 Thierry Reding 2014-10-01 885 #ifndef iowrite16be
9216efafc52ff9 Thierry Reding 2014-10-01 @886 #define iowrite16be iowrite16be
9216efafc52ff9 Thierry Reding 2014-10-01 887 static inline void iowrite16be(u16 value, void volatile __iomem *addr)
9216efafc52ff9 Thierry Reding 2014-10-01 888 {
7a1aedba706194 Horia Geantă 2016-05-19 889 writew(swab16(value), addr);
9216efafc52ff9 Thierry Reding 2014-10-01 890 }
9216efafc52ff9 Thierry Reding 2014-10-01 891 #endif
9216efafc52ff9 Thierry Reding 2014-10-01 892 Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT. # Linux/sh 6.0.0-rc1 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="sh4-linux-gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23800CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23800 CONFIG_LLD_VERSION=0 CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 CONFIG_CONSTRUCTORS=yCONFIG_IRQ_WORK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_WATCH_QUEUE=yCONFIG_USELIB=yCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=yCONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem
CONFIG_GENERIC_CLOCKEVENTS=yCONFIG_TIME_KUNIT_TEST=m
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
CONFIG_BPF=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=yCONFIG_BPF_UNPRIV_DEFAULT_OFF=yCONFIG_USERMODE_DRIVER=y
# end of BPF subsystem
CONFIG_PREEMPT_NONE_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=yCONFIG_PSI=yCONFIG_PSI_DEFAULT_DISABLED=y
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TINY_RCU=yCONFIG_RCU_EXPERT=yCONFIG_SRCU=yCONFIG_TINY_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_FORCE_TASKS_RCU=yCONFIG_TASKS_RCU=yCONFIG_FORCE_TASKS_RUDE_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_FORCE_TASKS_TRACE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_TASKS_TRACE_RCU_READ_MB=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=mCONFIG_IKCONFIG_PROC=yCONFIG_IKHEADERS=mCONFIG_LOG_BUF_SHIFT=17CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_PRINTK_INDEX=yCONFIG_GENERIC_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC12_NO_ARRAY_BOUNDS=y CONFIG_CC_NO_ARRAY_BOUNDS=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y CONFIG_CGROUP_FAVOR_DYNMODS=yCONFIG_MEMCG=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=yCONFIG_CGROUP_MISC=yCONFIG_CGROUP_DEBUG=yCONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_CHECKPOINT_RESTORE=y CONFIG_SCHED_AUTOGROUP=y CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=yCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=yCONFIG_BOOT_CONFIG=yCONFIG_BOOT_CONFIG_EMBED=y CONFIG_BOOT_CONFIG_EMBED_FILE="" CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_EXPERT=yCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_KCMP=yCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=yCONFIG_PC104=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=yCONFIG_DEBUG_PERF_USE_VMALLOC=y
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_SUPERH=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_HWEIGHT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_LOCKDEP_SUPPORT=yCONFIG_NO_IOPORT_MAP=yCONFIG_PGTABLE_LEVELS=2
#
# System type
#CONFIG_CPU_SH2=yCONFIG_CPU_SUBTYPE_SH7619=y
# CONFIG_CPU_SUBTYPE_J2 is not set
# CONFIG_CPU_SUBTYPE_SH7201 is not set
# CONFIG_CPU_SUBTYPE_SH7203 is not set
# CONFIG_CPU_SUBTYPE_SH7206 is not set
# CONFIG_CPU_SUBTYPE_SH7263 is not set
# CONFIG_CPU_SUBTYPE_SH7264 is not set
# CONFIG_CPU_SUBTYPE_SH7269 is not set
# CONFIG_CPU_SUBTYPE_MXG is not set
# CONFIG_CPU_SUBTYPE_SH7705 is not set
# CONFIG_CPU_SUBTYPE_SH7706 is not set
# CONFIG_CPU_SUBTYPE_SH7707 is not set
# CONFIG_CPU_SUBTYPE_SH7708 is not set
# CONFIG_CPU_SUBTYPE_SH7709 is not set
# CONFIG_CPU_SUBTYPE_SH7710 is not set
# CONFIG_CPU_SUBTYPE_SH7712 is not set
# CONFIG_CPU_SUBTYPE_SH7720 is not set
# CONFIG_CPU_SUBTYPE_SH7721 is not set
# CONFIG_CPU_SUBTYPE_SH7750 is not set
# CONFIG_CPU_SUBTYPE_SH7091 is not set
# CONFIG_CPU_SUBTYPE_SH7750R is not set
# CONFIG_CPU_SUBTYPE_SH7750S is not set
# CONFIG_CPU_SUBTYPE_SH7751 is not set
# CONFIG_CPU_SUBTYPE_SH7751R is not set
# CONFIG_CPU_SUBTYPE_SH7760 is not set
# CONFIG_CPU_SUBTYPE_SH4_202 is not set
# CONFIG_CPU_SUBTYPE_SH7723 is not set
# CONFIG_CPU_SUBTYPE_SH7724 is not set
# CONFIG_CPU_SUBTYPE_SH7734 is not set
# CONFIG_CPU_SUBTYPE_SH7757 is not set
# CONFIG_CPU_SUBTYPE_SH7763 is not set
# CONFIG_CPU_SUBTYPE_SH7770 is not set
# CONFIG_CPU_SUBTYPE_SH7780 is not set
# CONFIG_CPU_SUBTYPE_SH7785 is not set
# CONFIG_CPU_SUBTYPE_SH7786 is not set
# CONFIG_CPU_SUBTYPE_SHX3 is not set
# CONFIG_CPU_SUBTYPE_SH7343 is not set
# CONFIG_CPU_SUBTYPE_SH7722 is not set
# CONFIG_CPU_SUBTYPE_SH7366 is not set
#
# Memory management options
#CONFIG_PAGE_OFFSET=0x00000000CONFIG_ARCH_FORCE_MAX_ORDER=14CONFIG_MEMORY_START=0x08000000CONFIG_MEMORY_SIZE=0x04000000CONFIG_32BIT=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_PAGE_SIZE_4KB=y
# CONFIG_PAGE_SIZE_8KB is not set
# CONFIG_PAGE_SIZE_16KB is not set
# CONFIG_PAGE_SIZE_64KB is not set
# end of Memory management options
#
# Cache configuration
#
# CONFIG_CACHE_WRITEBACK is not setCONFIG_CACHE_WRITETHROUGH=y
# CONFIG_CACHE_OFF is not set
# end of Cache configuration
#
# Processor features
#CONFIG_CPU_LITTLE_ENDIAN=y
# CONFIG_CPU_BIG_ENDIAN is not setCONFIG_SH_FPU_EMU=y
# end of Processor features
#
# Board support
#CONFIG_SOLUTION_ENGINE=yCONFIG_SH_CUSTOM_CLK=yCONFIG_SH_7619_SOLUTION_ENGINE=y
# end of Board support
#
# Timer and clock configuration
#CONFIG_SH_PCLK_FREQ=31250000CONFIG_SH_CLK_CPG=yCONFIG_SH_CLK_CPG_LEGACY=y
# end of Timer and clock configuration
#
# CPU Frequency scaling
#
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=m CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
#
# CPU frequency scaling drivers
#CONFIG_CPUFREQ_DT=mCONFIG_CPUFREQ_DT_PLATDEV=yCONFIG_SH_CPU_FREQ=m
# end of CPU Frequency scaling # end of CPU Frequency scaling
#
# DMA support
#
# end of DMA support
#
# Companion Chips
#
# end of Companion Chips
#
# Additional SuperH Device Drivers
#CONFIG_HEARTBEAT=yCONFIG_PUSH_SWITCH=m
# end of Additional SuperH Device Drivers # end of System type
#
# Kernel features
#
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_SCHED_HRTICK=yCONFIG_CRASH_DUMP=yCONFIG_PHYSICAL_START=0x08000000CONFIG_GUSA=y
#
# SuperH / SH-Mobile Driver Options
#CONFIG_SH_INTC=y
#
# Interrupt controller options
#CONFIG_INTC_USERIMASK=yCONFIG_INTC_MAPPING_DEBUG=y
# end of SuperH / SH-Mobile Driver Options # end of Kernel features
#
# Boot options
#CONFIG_ZERO_PAGE_OFFSET=0x00001000CONFIG_BOOT_LINK_OFFSET=0x00800000CONFIG_ENTRY_OFFSET=0x00001000CONFIG_CMDLINE_OVERWRITE=y
# CONFIG_CMDLINE_EXTEND is not setCONFIG_CMDLINE="console=ttySC1,115200"
# end of Boot options
#
# Bus options
#
# end of Bus options
#
# Power management options (EXPERIMENTAL)
#CONFIG_PM=yCONFIG_PM_DEBUG=yCONFIG_PM_ADVANCED_DEBUG=yCONFIG_DPM_WATCHDOG=yCONFIG_DPM_WATCHDOG_TIMEOUT=120CONFIG_PM_CLK=yCONFIG_PM_GENERIC_DOMAINS=yCONFIG_WQ_POWER_EFFICIENT_DEFAULT=yCONFIG_PM_GENERIC_DOMAINS_OF=y
#
# CPU Idle
#CONFIG_CPU_IDLE=yCONFIG_CPU_IDLE_GOV_LADDER=yCONFIG_CPU_IDLE_GOV_MENU=yCONFIG_CPU_IDLE_GOV_TEO=y
# end of CPU Idle # end of Power management options (EXPERIMENTAL)
#
# General architecture-dependent options
#CONFIG_KPROBES=yCONFIG_KRETPROBES=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_NMI=yCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_GENERIC_IDLE_POLL_SETUP=yCONFIG_ARCH_32BIT_OFF_T=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_ARCH_WANT_IPC_PARSE_VERSION=yCONFIG_HAVE_ARCH_SECCOMP=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=yCONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=yCONFIG_SECCOMP_CACHE_DEBUG=yCONFIG_HAVE_STACKPROTECTOR=yCONFIG_STACKPROTECTOR=yCONFIG_STACKPROTECTOR_STRONG=yCONFIG_LTO_NONE=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_RELA=yCONFIG_PAGE_SIZE_LESS_THAN_64KB=yCONFIG_PAGE_SIZE_LESS_THAN_256KB=yCONFIG_ISA_BUS_API=yCONFIG_OLD_SIGSUSPEND=yCONFIG_OLD_SIGACTION=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_CPU_NO_EFFICIENT_FFS=yCONFIG_LOCK_EVENT_COUNTS=y
#
# GCOV-based kernel profiling
#CONFIG_GCOV_KERNEL=yCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling # end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_MODULE_UNLOAD_TAINT_TRACKING=yCONFIG_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_MODULE_SIG=yCONFIG_MODULE_SIG_FORCE=yCONFIG_MODULE_SIG_ALL=yCONFIG_MODULE_SIG_SHA1=y
# CONFIG_MODULE_SIG_SHA224 is not set
# CONFIG_MODULE_SIG_SHA256 is not set
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not setCONFIG_MODULE_SIG_HASH="sha1"CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not setCONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=yCONFIG_MODPROBE_PATH="/sbin/modprobe"CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=yCONFIG_BLK_RQ_ALLOC_TIME=yCONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=yCONFIG_BLK_DEV_INTEGRITY_T10=mCONFIG_BLK_DEV_ZONED=yCONFIG_BLK_DEV_THROTTLING=yCONFIG_BLK_DEV_THROTTLING_LOW=yCONFIG_BLK_WBT=yCONFIG_BLK_WBT_MQ=yCONFIG_BLK_CGROUP_IOLATENCY=yCONFIG_BLK_CGROUP_IOCOST=yCONFIG_BLK_CGROUP_IOPRIO=yCONFIG_BLK_DEBUG_FS=yCONFIG_BLK_DEBUG_FS_ZONED=yCONFIG_BLK_SED_OPAL=yCONFIG_BLK_INLINE_ENCRYPTION=yCONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=yCONFIG_ACORN_PARTITION_CUMANA=yCONFIG_ACORN_PARTITION_EESOX=yCONFIG_ACORN_PARTITION_ICS=yCONFIG_ACORN_PARTITION_ADFS=yCONFIG_ACORN_PARTITION_POWERTEC=yCONFIG_ACORN_PARTITION_RISCIX=yCONFIG_AIX_PARTITION=yCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=yCONFIG_LDM_DEBUG=yCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_CMDLINE_PARTITION=y
# end of Partition Types
CONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_PM=yCONFIG_BLOCK_HOLDER_DEPRECATED=yCONFIG_BLK_MQ_STACKING=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=mCONFIG_IOSCHED_BFQ=mCONFIG_BFQ_GROUP_IOSCHED=yCONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers
CONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF_FDPIC=yCONFIG_ELFCORE=yCONFIG_BINFMT_SCRIPT=mCONFIG_ARCH_HAS_BINFMT_FLAT=yCONFIG_BINFMT_FLAT=yCONFIG_BINFMT_FLAT_OLD=yCONFIG_BINFMT_ZFLAT=yCONFIG_BINFMT_MISC=mCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#
#
# SLAB allocator options
#
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=yCONFIG_SLAB_FREELIST_HARDENED=yCONFIG_SLUB_STATS=y
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_COMPAT_BRK=yCONFIG_MMAP_ALLOW_UNINITIALIZED=yCONFIG_SELECT_MEMORY_MODEL=y
# CONFIG_FLATMEM_MANUAL is not setCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_SPARSEMEM_STATIC=yCONFIG_SPLIT_PTLOCK_CPUS=999999CONFIG_MEMORY_BALLOON=yCONFIG_PAGE_REPORTING=yCONFIG_NOMMU_INITIAL_TRIM_EXCESS=1CONFIG_NEED_PER_CPU_KM=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PERCPU_STATS=yCONFIG_GUP_TEST=yCONFIG_ARCH_HAS_PTE_SPECIAL=y
#
# Data Access Monitoring
#CONFIG_DAMON=yCONFIG_DAMON_SYSFS=y
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=mCONFIG_PACKET_DIAG=mCONFIG_UNIX=mCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=mCONFIG_TLS=mCONFIG_TLS_DEVICE=yCONFIG_TLS_TOE=yCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=mCONFIG_XFRM_USER=mCONFIG_XFRM_INTERFACE=mCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=mCONFIG_XFRM_ESP=mCONFIG_XFRM_IPCOMP=mCONFIG_NET_KEY=mCONFIG_NET_KEY_MIGRATE=yCONFIG_XFRM_ESPINTCP=yCONFIG_XDP_SOCKETS=yCONFIG_XDP_SOCKETS_DIAG=mCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=mCONFIG_NET_IP_TUNNEL=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=mCONFIG_NET_UDP_TUNNEL=mCONFIG_NET_FOU=mCONFIG_NET_FOU_IP_TUNNELS=yCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_ESP_OFFLOAD=mCONFIG_INET_ESPINTCP=yCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_INET_RAW_DIAG=mCONFIG_INET_DIAG_DESTROY=yCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=mCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_NV=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=mCONFIG_TCP_CONG_CDG=mCONFIG_TCP_CONG_BBR=mCONFIG_DEFAULT_RENO=yCONFIG_DEFAULT_TCP_CONG="reno"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=mCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_ESP_OFFLOAD=mCONFIG_INET6_ESPINTCP=yCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=mCONFIG_IPV6_ILA=mCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_IPV6_VTI=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_GRE=mCONFIG_IPV6_FOU=mCONFIG_IPV6_FOU_TUNNEL=mCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=yCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=yCONFIG_IPV6_SEG6_LWTUNNEL=yCONFIG_IPV6_SEG6_HMAC=yCONFIG_IPV6_RPL_LWTUNNEL=yCONFIG_IPV6_IOAM6_LWTUNNEL=yCONFIG_NETLABEL=yCONFIG_MPTCP=yCONFIG_INET_MPTCP_DIAG=mCONFIG_MPTCP_KUNIT_TEST=mCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_EGRESS=yCONFIG_NETFILTER_SKIP_EGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=yCONFIG_NETFILTER_NETLINK_HOOK=mCONFIG_NETFILTER_NETLINK_ACCT=mCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NETFILTER_NETLINK_OSF=mCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_SYSLOG=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_BROADCAST=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_SNMP=mCONFIG_NF_CONNTRACK_PPTP=mCONFIG_NF_CONNTRACK_SANE=mCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NF_CT_NETLINK_TIMEOUT=mCONFIG_NF_CT_NETLINK_HELPER=mCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_SIP=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NETFILTER_SYNPROXY=mCONFIG_NF_TABLES=mCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=mCONFIG_NFT_CT=mCONFIG_NFT_FLOW_OFFLOAD=mCONFIG_NFT_CONNLIMIT=mCONFIG_NFT_LOG=mCONFIG_NFT_LIMIT=mCONFIG_NFT_MASQ=mCONFIG_NFT_REDIR=mCONFIG_NFT_NAT=mCONFIG_NFT_TUNNEL=mCONFIG_NFT_OBJREF=mCONFIG_NFT_QUEUE=mCONFIG_NFT_QUOTA=mCONFIG_NFT_REJECT=mCONFIG_NFT_REJECT_INET=mCONFIG_NFT_COMPAT=mCONFIG_NFT_HASH=mCONFIG_NFT_FIB=mCONFIG_NFT_FIB_INET=mCONFIG_NFT_XFRM=mCONFIG_NFT_SOCKET=mCONFIG_NFT_OSF=mCONFIG_NFT_TPROXY=mCONFIG_NFT_SYNPROXY=mCONFIG_NF_DUP_NETDEV=mCONFIG_NFT_DUP_NETDEV=mCONFIG_NFT_FWD_NETDEV=mCONFIG_NFT_FIB_NETDEV=mCONFIG_NFT_REJECT_NETDEV=mCONFIG_NF_FLOW_TABLE_INET=mCONFIG_NF_FLOW_TABLE=mCONFIG_NF_FLOW_TABLE_PROCFS=yCONFIG_NETFILTER_XTABLES=m
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=mCONFIG_NETFILTER_XT_CONNMARK=mCONFIG_NETFILTER_XT_SET=m
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=mCONFIG_NETFILTER_XT_TARGET_CHECKSUM=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_HL=mCONFIG_NETFILTER_XT_TARGET_HMARK=mCONFIG_NETFILTER_XT_TARGET_IDLETIMER=mCONFIG_NETFILTER_XT_TARGET_LED=mCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_REDIRECT=mCONFIG_NETFILTER_XT_TARGET_MASQUERADE=mCONFIG_NETFILTER_XT_TARGET_TEE=mCONFIG_NETFILTER_XT_TARGET_TPROXY=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=mCONFIG_NETFILTER_XT_MATCH_BPF=mCONFIG_NETFILTER_XT_MATCH_CGROUP=mCONFIG_NETFILTER_XT_MATCH_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLABEL=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_CPU=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DEVGROUP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ECN=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_HL=mCONFIG_NETFILTER_XT_MATCH_IPCOMP=mCONFIG_NETFILTER_XT_MATCH_IPRANGE=mCONFIG_NETFILTER_XT_MATCH_IPVS=mCONFIG_NETFILTER_XT_MATCH_L2TP=mCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=mCONFIG_NETFILTER_XT_MATCH_NFACCT=mCONFIG_NETFILTER_XT_MATCH_OSF=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_RECENT=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_SOCKET=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=mCONFIG_NETFILTER_XT_MATCH_TIME=mCONFIG_NETFILTER_XT_MATCH_U32=m
# end of Core Netfilter Configuration
CONFIG_IP_SET=mCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=mCONFIG_IP_SET_BITMAP_IPMAC=mCONFIG_IP_SET_BITMAP_PORT=mCONFIG_IP_SET_HASH_IP=mCONFIG_IP_SET_HASH_IPMARK=mCONFIG_IP_SET_HASH_IPPORT=mCONFIG_IP_SET_HASH_IPPORTIP=mCONFIG_IP_SET_HASH_IPPORTNET=mCONFIG_IP_SET_HASH_IPMAC=mCONFIG_IP_SET_HASH_MAC=mCONFIG_IP_SET_HASH_NETPORTNET=mCONFIG_IP_SET_HASH_NET=mCONFIG_IP_SET_HASH_NETNET=mCONFIG_IP_SET_HASH_NETPORT=mCONFIG_IP_SET_HASH_NETIFACE=mCONFIG_IP_SET_LIST_SET=mCONFIG_IP_VS=mCONFIG_IP_VS_IPV6=yCONFIG_IP_VS_DEBUG=yCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_FO=mCONFIG_IP_VS_OVF=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=mCONFIG_IP_VS_MH=mCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=mCONFIG_IP_VS_TWOS=m
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=m
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=mCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=mCONFIG_NFT_DUP_IPV4=mCONFIG_NFT_FIB_IPV4=mCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=mCONFIG_NF_LOG_ARP=mCONFIG_NF_LOG_IPV4=mCONFIG_NF_REJECT_IPV4=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_RPFILTER=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_CLUSTERIP=mCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_SECURITY=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=mCONFIG_NF_TPROXY_IPV6=mCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=mCONFIG_NFT_DUP_IPV6=mCONFIG_NFT_FIB_IPV6=mCONFIG_NF_DUP_IPV6=mCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RPFILTER=mCONFIG_IP6_NF_MATCH_RT=mCONFIG_IP6_NF_MATCH_SRH=mCONFIG_IP6_NF_TARGET_HL=mCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_TARGET_SYNPROXY=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=mCONFIG_IP6_NF_NAT=mCONFIG_IP6_NF_TARGET_MASQUERADE=mCONFIG_IP6_NF_TARGET_NPT=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=m
#
# DECnet: Netfilter Configuration
#CONFIG_DECNET_NF_GRABULATOR=m
# end of DECnet: Netfilter Configuration
CONFIG_NF_TABLES_BRIDGE=mCONFIG_NFT_BRIDGE_META=mCONFIG_NFT_BRIDGE_REJECT=mCONFIG_NF_CONNTRACK_BRIDGE=mCONFIG_BRIDGE_NF_EBTABLES=mCONFIG_BRIDGE_EBT_BROUTE=mCONFIG_BRIDGE_EBT_T_FILTER=mCONFIG_BRIDGE_EBT_T_NAT=mCONFIG_BRIDGE_EBT_802_3=mCONFIG_BRIDGE_EBT_AMONG=mCONFIG_BRIDGE_EBT_ARP=mCONFIG_BRIDGE_EBT_IP=mCONFIG_BRIDGE_EBT_IP6=mCONFIG_BRIDGE_EBT_LIMIT=mCONFIG_BRIDGE_EBT_MARK=mCONFIG_BRIDGE_EBT_PKTTYPE=mCONFIG_BRIDGE_EBT_STP=mCONFIG_BRIDGE_EBT_VLAN=mCONFIG_BRIDGE_EBT_ARPREPLY=mCONFIG_BRIDGE_EBT_DNAT=mCONFIG_BRIDGE_EBT_MARK_T=mCONFIG_BRIDGE_EBT_REDIRECT=mCONFIG_BRIDGE_EBT_SNAT=mCONFIG_BRIDGE_EBT_LOG=mCONFIG_BRIDGE_EBT_NFLOG=mCONFIG_BPFILTER=yCONFIG_IP_DCCP=mCONFIG_INET_DCCP_DIAG=m
#
# DCCP CCIDs Configuration
#CONFIG_IP_DCCP_CCID2_DEBUG=yCONFIG_IP_DCCP_CCID3=yCONFIG_IP_DCCP_CCID3_DEBUG=yCONFIG_IP_DCCP_TFRC_LIB=yCONFIG_IP_DCCP_TFRC_DEBUG=y
# end of DCCP CCIDs Configuration
#
# DCCP Kernel Hacking
#CONFIG_IP_DCCP_DEBUG=y
# end of DCCP Kernel Hacking
CONFIG_IP_SCTP=mCONFIG_SCTP_DBG_OBJCNT=yCONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not setCONFIG_SCTP_COOKIE_HMAC_MD5=yCONFIG_SCTP_COOKIE_HMAC_SHA1=yCONFIG_INET_SCTP_DIAG=mCONFIG_RDS=mCONFIG_RDS_TCP=mCONFIG_RDS_DEBUG=yCONFIG_TIPC=mCONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=mCONFIG_ATM=mCONFIG_ATM_CLIP=mCONFIG_ATM_CLIP_NO_ICMP=yCONFIG_ATM_LANE=mCONFIG_ATM_MPOA=mCONFIG_ATM_BR2684=mCONFIG_ATM_BR2684_IPFILTER=yCONFIG_L2TP=mCONFIG_L2TP_DEBUGFS=mCONFIG_L2TP_V3=yCONFIG_L2TP_IP=mCONFIG_L2TP_ETH=mCONFIG_STP=mCONFIG_GARP=mCONFIG_MRP=mCONFIG_BRIDGE=mCONFIG_BRIDGE_IGMP_SNOOPING=yCONFIG_BRIDGE_VLAN_FILTERING=yCONFIG_BRIDGE_MRP=yCONFIG_BRIDGE_CFM=yCONFIG_NET_DSA=mCONFIG_NET_DSA_TAG_AR9331=mCONFIG_NET_DSA_TAG_BRCM_COMMON=mCONFIG_NET_DSA_TAG_BRCM=mCONFIG_NET_DSA_TAG_BRCM_LEGACY=mCONFIG_NET_DSA_TAG_BRCM_PREPEND=mCONFIG_NET_DSA_TAG_HELLCREEK=mCONFIG_NET_DSA_TAG_GSWIP=mCONFIG_NET_DSA_TAG_DSA_COMMON=mCONFIG_NET_DSA_TAG_DSA=mCONFIG_NET_DSA_TAG_EDSA=mCONFIG_NET_DSA_TAG_MTK=mCONFIG_NET_DSA_TAG_KSZ=mCONFIG_NET_DSA_TAG_OCELOT=mCONFIG_NET_DSA_TAG_OCELOT_8021Q=mCONFIG_NET_DSA_TAG_QCA=mCONFIG_NET_DSA_TAG_RTL4_A=mCONFIG_NET_DSA_TAG_RTL8_4=mCONFIG_NET_DSA_TAG_RZN1_A5PSW=mCONFIG_NET_DSA_TAG_LAN9303=mCONFIG_NET_DSA_TAG_SJA1105=mCONFIG_NET_DSA_TAG_TRAILER=mCONFIG_NET_DSA_TAG_XRS700X=mCONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=yCONFIG_VLAN_8021Q_MVRP=yCONFIG_DECNET=mCONFIG_DECNET_ROUTER=yCONFIG_LLC=mCONFIG_LLC2=mCONFIG_ATALK=mCONFIG_DEV_APPLETALK=mCONFIG_IPDDP=mCONFIG_IPDDP_ENCAP=yCONFIG_X25=mCONFIG_LAPB=mCONFIG_PHONET=mCONFIG_6LOWPAN=mCONFIG_6LOWPAN_DEBUGFS=yCONFIG_6LOWPAN_NHC=mCONFIG_6LOWPAN_NHC_DEST=mCONFIG_6LOWPAN_NHC_FRAGMENT=mCONFIG_6LOWPAN_NHC_HOP=mCONFIG_6LOWPAN_NHC_IPV6=mCONFIG_6LOWPAN_NHC_MOBILITY=mCONFIG_6LOWPAN_NHC_ROUTING=mCONFIG_6LOWPAN_NHC_UDP=mCONFIG_6LOWPAN_GHC_EXT_HDR_HOP=mCONFIG_6LOWPAN_GHC_UDP=mCONFIG_6LOWPAN_GHC_ICMPV6=mCONFIG_6LOWPAN_GHC_EXT_HDR_DEST=mCONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=mCONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=mCONFIG_IEEE802154=mCONFIG_IEEE802154_NL802154_EXPERIMENTAL=yCONFIG_IEEE802154_SOCKET=mCONFIG_IEEE802154_6LOWPAN=mCONFIG_MAC802154=mCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_ATM=mCONFIG_NET_SCH_PRIO=mCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFB=mCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=mCONFIG_NET_SCH_CBS=mCONFIG_NET_SCH_ETF=mCONFIG_NET_SCH_TAPRIO=mCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_DSMARK=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=mCONFIG_NET_SCH_SKBPRIO=mCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_CODEL=mCONFIG_NET_SCH_FQ_CODEL=mCONFIG_NET_SCH_CAKE=mCONFIG_NET_SCH_FQ=mCONFIG_NET_SCH_HHF=mCONFIG_NET_SCH_PIE=mCONFIG_NET_SCH_FQ_PIE=mCONFIG_NET_SCH_INGRESS=mCONFIG_NET_SCH_PLUG=mCONFIG_NET_SCH_ETS=mCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not set
# CONFIG_DEFAULT_FQ_CODEL is not set
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not setCONFIG_DEFAULT_PFIFO_FAST=yCONFIG_DEFAULT_NET_SCH="pfifo_fast"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=mCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_CLS_FLOW=mCONFIG_NET_CLS_CGROUP=mCONFIG_NET_CLS_BPF=mCONFIG_NET_CLS_FLOWER=mCONFIG_NET_CLS_MATCHALL=mCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=mCONFIG_NET_EMATCH_CANID=mCONFIG_NET_EMATCH_IPSET=mCONFIG_NET_EMATCH_IPT=mCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=mCONFIG_NET_ACT_SAMPLE=mCONFIG_NET_ACT_IPT=mCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=mCONFIG_NET_ACT_CSUM=mCONFIG_NET_ACT_MPLS=mCONFIG_NET_ACT_VLAN=mCONFIG_NET_ACT_BPF=mCONFIG_NET_ACT_CONNMARK=mCONFIG_NET_ACT_CTINFO=mCONFIG_NET_ACT_SKBMOD=mCONFIG_NET_ACT_IFE=mCONFIG_NET_ACT_TUNNEL_KEY=mCONFIG_NET_ACT_CT=mCONFIG_NET_ACT_GATE=mCONFIG_NET_IFE_SKBMARK=mCONFIG_NET_IFE_SKBPRIO=mCONFIG_NET_IFE_SKBTCINDEX=mCONFIG_NET_TC_SKB_EXT=yCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=mCONFIG_BATMAN_ADV=mCONFIG_BATMAN_ADV_BATMAN_V=yCONFIG_BATMAN_ADV_BLA=yCONFIG_BATMAN_ADV_DAT=yCONFIG_BATMAN_ADV_NC=yCONFIG_BATMAN_ADV_MCAST=yCONFIG_BATMAN_ADV_DEBUG=yCONFIG_BATMAN_ADV_TRACING=yCONFIG_OPENVSWITCH=mCONFIG_OPENVSWITCH_GRE=mCONFIG_OPENVSWITCH_VXLAN=mCONFIG_OPENVSWITCH_GENEVE=mCONFIG_VSOCKETS=mCONFIG_VSOCKETS_DIAG=mCONFIG_VSOCKETS_LOOPBACK=mCONFIG_VIRTIO_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS_COMMON=mCONFIG_NETLINK_DIAG=mCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=mCONFIG_MPLS_ROUTING=mCONFIG_MPLS_IPTUNNEL=mCONFIG_NET_NSH=mCONFIG_HSR=mCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=yCONFIG_QRTR=mCONFIG_QRTR_SMD=mCONFIG_QRTR_TUN=mCONFIG_QRTR_MHI=mCONFIG_NET_NCSI=yCONFIG_NCSI_OEM_CMD_GET_MAC=yCONFIG_NCSI_OEM_CMD_KEEP_PHY=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_HWBM=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_DROP_MONITOR=m
# end of Network testing # end of Networking options
CONFIG_HAMRADIO=y
#
# Packet Radio protocols
#CONFIG_AX25=mCONFIG_AX25_DAMA_SLAVE=yCONFIG_NETROM=mCONFIG_ROSE=m
#
# AX.25 network device drivers
#CONFIG_MKISS=mCONFIG_6PACK=mCONFIG_BPQETHER=mCONFIG_BAYCOM_SER_FDX=mCONFIG_BAYCOM_SER_HDX=mCONFIG_BAYCOM_PAR=mCONFIG_BAYCOM_EPP=mCONFIG_YAM=m
# end of AX.25 network device drivers
CONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=mCONFIG_CAN_GW=mCONFIG_CAN_J1939=mCONFIG_CAN_ISOTP=mCONFIG_BT=mCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_CMTP=mCONFIG_BT_HIDP=mCONFIG_BT_HS=yCONFIG_BT_LE=yCONFIG_BT_6LOWPAN=mCONFIG_BT_LEDS=yCONFIG_BT_MSFTEXT=yCONFIG_BT_AOSPEXT=yCONFIG_BT_DEBUGFS=yCONFIG_BT_SELFTEST=yCONFIG_BT_SELFTEST_ECDH=yCONFIG_BT_SELFTEST_SMP=y
#
# Bluetooth device drivers
#CONFIG_BT_INTEL=mCONFIG_BT_BCM=mCONFIG_BT_RTL=mCONFIG_BT_QCA=mCONFIG_BT_MTK=mCONFIG_BT_HCIBTUSB=mCONFIG_BT_HCIBTUSB_AUTOSUSPEND=yCONFIG_BT_HCIBTUSB_BCM=yCONFIG_BT_HCIBTUSB_MTK=yCONFIG_BT_HCIBTUSB_RTL=yCONFIG_BT_HCIBTSDIO=mCONFIG_BT_HCIUART=mCONFIG_BT_HCIUART_SERDEV=yCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_NOKIA=mCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=yCONFIG_BT_HCIUART_LL=yCONFIG_BT_HCIUART_3WIRE=yCONFIG_BT_HCIUART_INTEL=yCONFIG_BT_HCIUART_BCM=yCONFIG_BT_HCIUART_QCA=yCONFIG_BT_HCIUART_AG6XX=yCONFIG_BT_HCIUART_MRVL=yCONFIG_BT_HCIBCM203X=mCONFIG_BT_HCIBPA10X=mCONFIG_BT_HCIBFUSB=mCONFIG_BT_HCIDTL1=mCONFIG_BT_HCIBT3C=mCONFIG_BT_HCIBLUECARD=mCONFIG_BT_HCIVHCI=mCONFIG_BT_MRVL=mCONFIG_BT_MRVL_SDIO=mCONFIG_BT_ATH3K=mCONFIG_BT_MTKSDIO=mCONFIG_BT_MTKUART=mCONFIG_BT_QCOMSMD=mCONFIG_BT_HCIRSI=mCONFIG_BT_VIRTIO=m
# end of Bluetooth device drivers
CONFIG_AF_RXRPC=mCONFIG_AF_RXRPC_IPV6=yCONFIG_AF_RXRPC_INJECT_LOSS=yCONFIG_AF_RXRPC_DEBUG=yCONFIG_RXKAD=yCONFIG_AF_KCM=mCONFIG_STREAM_PARSER=yCONFIG_MCTP=yCONFIG_MCTP_FLOWS=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WIRELESS_EXT=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_WEXT_SPY=yCONFIG_WEXT_PRIV=yCONFIG_CFG80211=mCONFIG_NL80211_TESTMODE=yCONFIG_CFG80211_DEVELOPER_WARNINGS=yCONFIG_CFG80211_CERTIFICATION_ONUS=yCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_EXTRA_REGDB_KEYDIR=""CONFIG_CFG80211_REG_CELLULAR_HINTS=yCONFIG_CFG80211_REG_RELAX_NO_IR=yCONFIG_CFG80211_DEFAULT_PS=yCONFIG_CFG80211_DEBUGFS=yCONFIG_CFG80211_CRDA_SUPPORT=yCONFIG_CFG80211_WEXT=yCONFIG_CFG80211_WEXT_EXPORT=yCONFIG_LIB80211=mCONFIG_LIB80211_CRYPT_WEP=mCONFIG_LIB80211_CRYPT_CCMP=mCONFIG_LIB80211_CRYPT_TKIP=mCONFIG_LIB80211_DEBUG=yCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=yCONFIG_MAC80211_MESSAGE_TRACING=yCONFIG_MAC80211_DEBUG_MENU=yCONFIG_MAC80211_NOINLINE=yCONFIG_MAC80211_VERBOSE_DEBUG=yCONFIG_MAC80211_MLME_DEBUG=yCONFIG_MAC80211_STA_DEBUG=yCONFIG_MAC80211_HT_DEBUG=yCONFIG_MAC80211_OCB_DEBUG=yCONFIG_MAC80211_IBSS_DEBUG=yCONFIG_MAC80211_PS_DEBUG=yCONFIG_MAC80211_MPL_DEBUG=yCONFIG_MAC80211_MPATH_DEBUG=yCONFIG_MAC80211_MHWMP_DEBUG=yCONFIG_MAC80211_MESH_SYNC_DEBUG=yCONFIG_MAC80211_MESH_CSA_DEBUG=yCONFIG_MAC80211_MESH_PS_DEBUG=yCONFIG_MAC80211_TDLS_DEBUG=yCONFIG_MAC80211_DEBUG_COUNTERS=yCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=mCONFIG_NET_9P=mCONFIG_NET_9P_FD=mCONFIG_NET_9P_VIRTIO=mCONFIG_NET_9P_DEBUG=yCONFIG_CAIF=mCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=mCONFIG_CAIF_USB=mCONFIG_CEPH_LIB=mCONFIG_CEPH_LIB_PRETTYDEBUG=yCONFIG_CEPH_LIB_USE_DNS_RESOLVER=yCONFIG_NFC=mCONFIG_NFC_DIGITAL=mCONFIG_NFC_NCI=mCONFIG_NFC_NCI_SPI=mCONFIG_NFC_NCI_UART=mCONFIG_NFC_HCI=mCONFIG_NFC_SHDLC=y
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_TRF7970A=mCONFIG_NFC_SIM=mCONFIG_NFC_PORT100=mCONFIG_NFC_VIRTUAL_NCI=mCONFIG_NFC_FDP=mCONFIG_NFC_FDP_I2C=mCONFIG_NFC_PN544=mCONFIG_NFC_PN544_I2C=mCONFIG_NFC_PN533=mCONFIG_NFC_PN533_USB=mCONFIG_NFC_PN533_I2C=mCONFIG_NFC_PN532_UART=mCONFIG_NFC_MICROREAD=mCONFIG_NFC_MICROREAD_I2C=mCONFIG_NFC_MRVL=mCONFIG_NFC_MRVL_USB=mCONFIG_NFC_MRVL_UART=mCONFIG_NFC_MRVL_I2C=mCONFIG_NFC_MRVL_SPI=mCONFIG_NFC_ST21NFCA=mCONFIG_NFC_ST21NFCA_I2C=mCONFIG_NFC_ST_NCI=mCONFIG_NFC_ST_NCI_I2C=mCONFIG_NFC_ST_NCI_SPI=mCONFIG_NFC_NXP_NCI=mCONFIG_NFC_NXP_NCI_I2C=mCONFIG_NFC_S3FWRN5=mCONFIG_NFC_S3FWRN5_I2C=mCONFIG_NFC_S3FWRN82_UART=mCONFIG_NFC_ST95HF=m
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=mCONFIG_NET_IFE=mCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=mCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_PAGE_POOL_STATS=yCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=yCONFIG_NETDEV_ADDR_LIST_TEST=m
#
# Device Drivers
#CONFIG_PCCARD=mCONFIG_PCMCIA=mCONFIG_PCMCIA_LOAD_CIS=y
#
# PC-card bridges
#
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=yCONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_DEVTMPFS_SAFE=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=mCONFIG_FW_LOADER_PAGED_BUF=yCONFIG_FW_LOADER_SYSFS=yCONFIG_EXTRA_FIRMWARE=""CONFIG_FW_LOADER_USER_HELPER=yCONFIG_FW_LOADER_USER_HELPER_FALLBACK=yCONFIG_FW_LOADER_COMPRESS=yCONFIG_FW_LOADER_COMPRESS_XZ=yCONFIG_FW_LOADER_COMPRESS_ZSTD=yCONFIG_FW_UPLOAD=y
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=yCONFIG_ALLOW_DEV_COREDUMP=yCONFIG_DEV_COREDUMP=yCONFIG_DEBUG_DRIVER=yCONFIG_DEBUG_DEVRES=yCONFIG_DEBUG_TEST_DRIVER_REMOVE=yCONFIG_TEST_ASYNC_DRIVER_PROBE=mCONFIG_SOC_BUS=yCONFIG_REGMAP=yCONFIG_REGMAP_AC97=mCONFIG_REGMAP_I2C=mCONFIG_REGMAP_SLIMBUS=mCONFIG_REGMAP_SPI=yCONFIG_REGMAP_SPMI=mCONFIG_REGMAP_W1=mCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_REGMAP_SOUNDWIRE=mCONFIG_REGMAP_SOUNDWIRE_MBQ=mCONFIG_REGMAP_SCCB=mCONFIG_REGMAP_I3C=mCONFIG_REGMAP_SPI_AVMM=mCONFIG_DMA_SHARED_BUFFER=yCONFIG_DMA_FENCE_TRACE=y
# end of Generic Driver Options
#
# Bus devices
#CONFIG_ARM_INTEGRATOR_LM=yCONFIG_BT1_APB=yCONFIG_BT1_AXI=yCONFIG_MOXTET=mCONFIG_HISILICON_LPC=yCONFIG_INTEL_IXP4XX_EB=yCONFIG_QCOM_EBI2=yCONFIG_MHI_BUS=mCONFIG_MHI_BUS_DEBUG=yCONFIG_MHI_BUS_EP=m
# end of Bus devices
CONFIG_CONNECTOR=m
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #CONFIG_ARM_SCMI_PROTOCOL=m CONFIG_ARM_SCMI_HAVE_TRANSPORT=y CONFIG_ARM_SCMI_HAVE_SHMEM=y CONFIG_ARM_SCMI_HAVE_MSG=y CONFIG_ARM_SCMI_TRANSPORT_MAILBOX=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE=y CONFIG_ARM_SCMI_POWER_DOMAIN=m CONFIG_ARM_SCMI_POWER_CONTROL=m
# end of ARM System Control and Management Interface Protocol
CONFIG_ARM_SCPI_PROTOCOL=mCONFIG_ARM_SCPI_POWER_DOMAIN=mCONFIG_FIRMWARE_MEMMAP=yCONFIG_MTK_ADSP_IPC=mCONFIG_QCOM_SCM=mCONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT=yCONFIG_BCM47XX_NVRAM=yCONFIG_BCM47XX_SPROM=yCONFIG_TEE_BNXT_FW=mCONFIG_CS_DSP=mCONFIG_GOOGLE_FIRMWARE=yCONFIG_GOOGLE_COREBOOT_TABLE=mCONFIG_GOOGLE_MEMCONSOLE=mCONFIG_GOOGLE_FRAMEBUFFER_COREBOOT=mCONFIG_GOOGLE_MEMCONSOLE_COREBOOT=mCONFIG_GOOGLE_VPD=mCONFIG_IMX_DSP=mCONFIG_IMX_SCU=yCONFIG_IMX_SCU_PD=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_GNSS=mCONFIG_GNSS_SERIAL=mCONFIG_GNSS_MTK_SERIAL=mCONFIG_GNSS_SIRF_SERIAL=mCONFIG_GNSS_UBX_SERIAL=mCONFIG_GNSS_USB=mCONFIG_MTD=mCONFIG_MTD_TESTS=m
#
# Partition parsers
#CONFIG_MTD_AR7_PARTS=mCONFIG_MTD_BCM63XX_PARTS=yCONFIG_MTD_CMDLINE_PARTS=mCONFIG_MTD_OF_PARTS=mCONFIG_MTD_OF_PARTS_BCM4908=yCONFIG_MTD_OF_PARTS_LINKSYS_NS=yCONFIG_MTD_PARSER_IMAGETAG=mCONFIG_MTD_PARSER_TRX=mCONFIG_MTD_SHARPSL_PARTS=mCONFIG_MTD_REDBOOT_PARTS=mCONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=yCONFIG_MTD_REDBOOT_PARTS_READONLY=yCONFIG_MTD_QCOMSMEM_PARTS=m
# end of Partition parsers
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=mCONFIG_MTD_BLOCK=mCONFIG_MTD_BLOCK_RO=m
#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK. #CONFIG_FTL=mCONFIG_NFTL=mCONFIG_NFTL_RW=yCONFIG_INFTL=mCONFIG_RFD_FTL=mCONFIG_SSFDC=mCONFIG_SM_FTL=mCONFIG_MTD_OOPS=mCONFIG_MTD_PSTORE=mCONFIG_MTD_PARTITIONED_MASTER=y
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=mCONFIG_MTD_JEDECPROBE=mCONFIG_MTD_GEN_PROBE=mCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_MTD_CFI_GEOMETRY=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_MAP_BANK_WIDTH_8=yCONFIG_MTD_MAP_BANK_WIDTH_16=yCONFIG_MTD_MAP_BANK_WIDTH_32=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_I4=yCONFIG_MTD_CFI_I8=yCONFIG_MTD_OTP=yCONFIG_MTD_CFI_INTELEXT=mCONFIG_MTD_CFI_AMDSTD=mCONFIG_MTD_CFI_STAA=mCONFIG_MTD_CFI_UTIL=mCONFIG_MTD_RAM=mCONFIG_MTD_ROM=mCONFIG_MTD_ABSENT=m
# end of RAM/ROM/Flash chip drivers
#
# Mapping drivers for chip access
#CONFIG_MTD_COMPLEX_MAPPINGS=yCONFIG_MTD_PHYSMAP=mCONFIG_MTD_PHYSMAP_COMPAT=yCONFIG_MTD_PHYSMAP_START=0x8000000CONFIG_MTD_PHYSMAP_LEN=0CONFIG_MTD_PHYSMAP_BANKWIDTH=2CONFIG_MTD_PHYSMAP_OF=yCONFIG_MTD_PHYSMAP_BT1_ROM=yCONFIG_MTD_PHYSMAP_VERSATILE=yCONFIG_MTD_PHYSMAP_GEMINI=yCONFIG_MTD_PHYSMAP_GPIO_ADDR=yCONFIG_MTD_SC520CDP=mCONFIG_MTD_NETSC520=mCONFIG_MTD_TS5500=mCONFIG_MTD_SOLUTIONENGINE=mCONFIG_MTD_PCMCIA=mCONFIG_MTD_PCMCIA_ANONYMOUS=yCONFIG_MTD_PLATRAM=m
# end of Mapping drivers for chip access
#
# Self-contained MTD device drivers
#CONFIG_MTD_DATAFLASH=mCONFIG_MTD_DATAFLASH_WRITE_VERIFY=yCONFIG_MTD_DATAFLASH_OTP=yCONFIG_MTD_MCHP23K256=mCONFIG_MTD_MCHP48L640=mCONFIG_MTD_SPEAR_SMI=mCONFIG_MTD_SST25L=mCONFIG_MTD_SLRAM=mCONFIG_MTD_PHRAM=mCONFIG_MTD_MTDRAM=mCONFIG_MTDRAM_TOTAL_SIZE=4096CONFIG_MTDRAM_ERASE_SIZE=128CONFIG_MTD_BLOCK2MTD=m
#
# Disk-On-Chip Device Drivers
#CONFIG_MTD_DOCG3=mCONFIG_BCH_CONST_M=14CONFIG_BCH_CONST_T=4
# end of Self-contained MTD device drivers
#
# NAND
#CONFIG_MTD_NAND_CORE=mCONFIG_MTD_ONENAND=mCONFIG_MTD_ONENAND_VERIFY_WRITE=yCONFIG_MTD_ONENAND_GENERIC=mCONFIG_MTD_ONENAND_SAMSUNG=mCONFIG_MTD_ONENAND_OTP=yCONFIG_MTD_ONENAND_2X_PROGRAM=yCONFIG_MTD_RAW_NAND=m
#
# Raw/parallel NAND flash controllers
#CONFIG_MTD_NAND_AMS_DELTA=mCONFIG_MTD_NAND_OMAP2=mCONFIG_MTD_NAND_OMAP_BCH=yCONFIG_MTD_NAND_OMAP_BCH_BUILD=mCONFIG_MTD_NAND_SHARPSL=mCONFIG_MTD_NAND_ATMEL=mCONFIG_MTD_NAND_MARVELL=mCONFIG_MTD_NAND_SLC_LPC32XX=mCONFIG_MTD_NAND_MLC_LPC32XX=mCONFIG_MTD_NAND_BRCMNAND=mCONFIG_MTD_NAND_OXNAS=mCONFIG_MTD_NAND_FSL_IFC=mCONFIG_MTD_NAND_VF610_NFC=mCONFIG_MTD_NAND_MXC=mCONFIG_MTD_NAND_SH_FLCTL=mCONFIG_MTD_NAND_DAVINCI=mCONFIG_MTD_NAND_TXX9NDFMC=mCONFIG_MTD_NAND_JZ4780=mCONFIG_MTD_NAND_INGENIC_ECC=yCONFIG_MTD_NAND_JZ4740_ECC=mCONFIG_MTD_NAND_JZ4725B_BCH=mCONFIG_MTD_NAND_JZ4780_BCH=mCONFIG_MTD_NAND_FSMC=mCONFIG_MTD_NAND_SUNXI=mCONFIG_MTD_NAND_HISI504=mCONFIG_MTD_NAND_QCOM=mCONFIG_MTD_NAND_MTK=mCONFIG_MTD_NAND_MXIC=mCONFIG_MTD_NAND_TEGRA=mCONFIG_MTD_NAND_STM32_FMC2=mCONFIG_MTD_NAND_MESON=mCONFIG_MTD_NAND_GPIO=mCONFIG_MTD_NAND_PLATFORM=mCONFIG_MTD_NAND_CADENCE=mCONFIG_MTD_NAND_INTEL_LGM=mCONFIG_MTD_NAND_RENESAS=m
#
# Misc
#CONFIG_MTD_NAND_NANDSIM=mCONFIG_MTD_NAND_DISKONCHIP=mCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED=yCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0CONFIG_MTD_NAND_DISKONCHIP_PROBE_HIGH=yCONFIG_MTD_NAND_DISKONCHIP_BBTWRITE=yCONFIG_MTD_SPI_NAND=m
#
# ECC engine support
#CONFIG_MTD_NAND_ECC=yCONFIG_MTD_NAND_ECC_SW_HAMMING=yCONFIG_MTD_NAND_ECC_SW_HAMMING_SMC=yCONFIG_MTD_NAND_ECC_SW_BCH=yCONFIG_MTD_NAND_ECC_MXIC=yCONFIG_MTD_NAND_ECC_MEDIATEK=m
# end of ECC engine support # end of NAND
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=mCONFIG_MTD_QINFO_PROBE=m
# end of LPDDR & LPDDR2 PCM memory drivers
CONFIG_MTD_SPI_NOR=mCONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_MTD_SPI_NOR_SWP_DISABLE is not setCONFIG_MTD_SPI_NOR_SWP_DISABLE_ON_VOLATILE=y
# CONFIG_MTD_SPI_NOR_SWP_KEEP is not setCONFIG_SPI_HISI_SFC=mCONFIG_SPI_NXP_SPIFI=mCONFIG_MTD_UBI=mCONFIG_MTD_UBI_WL_THRESHOLD=4096CONFIG_MTD_UBI_BEB_LIMIT=20CONFIG_MTD_UBI_FASTMAP=yCONFIG_MTD_UBI_GLUEBI=mCONFIG_MTD_UBI_BLOCK=yCONFIG_MTD_HYPERBUS=mCONFIG_HBMC_AM654=mCONFIG_DTC=yCONFIG_OF=yCONFIG_OF_UNITTEST=yCONFIG_OF_ALL_DTBS=yCONFIG_OF_FLATTREE=yCONFIG_OF_EARLY_FLATTREE=yCONFIG_OF_KOBJ=yCONFIG_OF_DYNAMIC=yCONFIG_OF_ADDRESS=yCONFIG_OF_IRQ=yCONFIG_OF_RESERVED_MEM=yCONFIG_OF_RESOLVE=yCONFIG_OF_OVERLAY=yCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_PC_SUPERIO=yCONFIG_PARPORT_PC_PCMCIA=mCONFIG_PARPORT_AX88796=mCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=mCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=yCONFIG_CDROM=mCONFIG_PARIDE=m
#
# Parallel IDE high-level drivers
#CONFIG_PARIDE_PD=mCONFIG_PARIDE_PCD=mCONFIG_PARIDE_PF=mCONFIG_PARIDE_PT=mCONFIG_PARIDE_PG=m
#
# Parallel IDE protocol modules
#CONFIG_PARIDE_ATEN=mCONFIG_PARIDE_BPCK=mCONFIG_PARIDE_BPCK6=mCONFIG_PARIDE_COMM=mCONFIG_PARIDE_DSTR=mCONFIG_PARIDE_FIT2=mCONFIG_PARIDE_FIT3=mCONFIG_PARIDE_EPAT=mCONFIG_PARIDE_EPATC8=yCONFIG_PARIDE_EPIA=mCONFIG_PARIDE_FRIQ=mCONFIG_PARIDE_FRPW=mCONFIG_PARIDE_KBIC=mCONFIG_PARIDE_KTTI=mCONFIG_PARIDE_ON20=mCONFIG_PARIDE_ON26=mCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=8CONFIG_BLK_DEV_DRBD=mCONFIG_DRBD_FAULT_INJECTION=yCONFIG_BLK_DEV_NBD=mCONFIG_BLK_DEV_RAM=mCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_CDROM_PKTCDVD_WCACHE=yCONFIG_ATA_OVER_ETH=mCONFIG_VIRTIO_BLK=mCONFIG_BLK_DEV_RBD=mCONFIG_BLK_DEV_UBLK=m
#
# NVME Support
#CONFIG_NVME_COMMON=mCONFIG_NVME_CORE=mCONFIG_NVME_MULTIPATH=yCONFIG_NVME_VERBOSE_ERRORS=yCONFIG_NVME_HWMON=yCONFIG_NVME_FABRICS=mCONFIG_NVME_TCP=mCONFIG_NVME_AUTH=yCONFIG_NVME_APPLE=mCONFIG_NVME_TARGET=mCONFIG_NVME_TARGET_PASSTHRU=yCONFIG_NVME_TARGET_LOOP=mCONFIG_NVME_TARGET_TCP=mCONFIG_NVME_TARGET_AUTH=y
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=mCONFIG_AD525X_DPOT=mCONFIG_AD525X_DPOT_I2C=mCONFIG_AD525X_DPOT_SPI=mCONFIG_DUMMY_IRQ=mCONFIG_ICS932S401=mCONFIG_ATMEL_SSC=mCONFIG_ENCLOSURE_SERVICES=mCONFIG_GEHC_ACHC=mCONFIG_HI6421V600_IRQ=mCONFIG_QCOM_COINCELL=mCONFIG_QCOM_FASTRPC=mCONFIG_APDS9802ALS=mCONFIG_ISL29003=mCONFIG_ISL29020=mCONFIG_SENSORS_TSL2550=mCONFIG_SENSORS_BH1770=mCONFIG_SENSORS_APDS990X=mCONFIG_HMC6352=mCONFIG_DS1682=mCONFIG_LATTICE_ECP3_CONFIG=mCONFIG_SRAM=yCONFIG_XILINX_SDFEC=mCONFIG_MISC_RTSX=mCONFIG_HISI_HIKEY_USB=mCONFIG_OPEN_DICE=mCONFIG_VCPU_STALL_DETECTOR=mCONFIG_C2PORT=m
#
# EEPROM support
#CONFIG_EEPROM_AT24=mCONFIG_EEPROM_AT25=mCONFIG_EEPROM_LEGACY=mCONFIG_EEPROM_MAX6875=mCONFIG_EEPROM_93CX6=mCONFIG_EEPROM_93XX46=mCONFIG_EEPROM_IDT_89HPESX=mCONFIG_EEPROM_EE1004=m
# end of EEPROM support
#
# Texas Instruments shared transport line discipline #CONFIG_TI_ST=m
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_SPI=mCONFIG_SENSORS_LIS3_I2C=m
#
# Altera FPGA firmware download module (requires I2C) #CONFIG_ALTERA_STAPL=mCONFIG_ECHO=mCONFIG_MISC_RTSX_USB=mCONFIG_UACCE=mCONFIG_PVPANIC=yCONFIG_PVPANIC_MMIO=m
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=mCONFIG_RAID_ATTRS=mCONFIG_SCSI_COMMON=mCONFIG_SCSI=mCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_BLK_DEV_BSG=yCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=mCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=m
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=mCONFIG_ISCSI_BOOT_SYSFS=mCONFIG_SCSI_HISI_SAS=mCONFIG_SCSI_HISI_SAS_DEBUGFS_DEFAULT_ENABLE=yCONFIG_LIBFC=mCONFIG_LIBFCOE=mCONFIG_SCSI_FDOMAIN=mCONFIG_SCSI_PPA=mCONFIG_SCSI_IMM=mCONFIG_SCSI_IZIP_EPP16=yCONFIG_SCSI_IZIP_SLOW_CTR=yCONFIG_SCSI_DEBUG=mCONFIG_SCSI_VIRTIO=mCONFIG_SCSI_LOWLEVEL_PCMCIA=yCONFIG_PCMCIA_AHA152X=mCONFIG_PCMCIA_FDOMAIN=mCONFIG_PCMCIA_NINJA_SCSI=mCONFIG_PCMCIA_QLOGIC=mCONFIG_PCMCIA_SYM53C500=mCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=mCONFIG_SCSI_DH_HP_SW=mCONFIG_SCSI_DH_EMC=mCONFIG_SCSI_DH_ALUA=m
# end of SCSI device support
CONFIG_HAVE_PATA_PLATFORM=yCONFIG_ATA=mCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_SATA_PMP=yCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
#
# PIO-only SFF controllers
#CONFIG_PATA_IXP4XX_CF=mCONFIG_PATA_PCMCIA=mCONFIG_PATA_PLATFORM=mCONFIG_PATA_OF_PLATFORM=mCONFIG_PATA_SAMSUNG_CF=m
#
# Generic fallback / legacy drivers
#CONFIG_MD=yCONFIG_BLK_DEV_MD=mCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=mCONFIG_MD_MULTIPATH=mCONFIG_MD_FAULTY=mCONFIG_MD_CLUSTER=mCONFIG_BCACHE=mCONFIG_BCACHE_DEBUG=y CONFIG_BCACHE_CLOSURES_DEBUG=y CONFIG_BCACHE_ASYNC_REGISTRATION=y CONFIG_BLK_DEV_DM_BUILTIN=yCONFIG_BLK_DEV_DM=mCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=m CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING=y CONFIG_DM_DEBUG_BLOCK_STACK_TRACING=y CONFIG_DM_BIO_PRISON=m CONFIG_DM_PERSISTENT_DATA=m CONFIG_DM_UNSTRIPED=mCONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=m CONFIG_DM_THIN_PROVISIONING=mCONFIG_DM_CACHE=mCONFIG_DM_CACHE_SMQ=mCONFIG_DM_WRITECACHE=mCONFIG_DM_EBS=mCONFIG_DM_ERA=mCONFIG_DM_CLONE=mCONFIG_DM_MIRROR=mCONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=mCONFIG_DM_MULTIPATH_QL=m CONFIG_DM_MULTIPATH_ST=m CONFIG_DM_MULTIPATH_HST=m CONFIG_DM_MULTIPATH_IOA=mCONFIG_DM_DELAY=mCONFIG_DM_DUST=mCONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=mCONFIG_DM_VERITY=m CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING=y CONFIG_DM_VERITY_FEC=yCONFIG_DM_SWITCH=mCONFIG_DM_LOG_WRITES=mCONFIG_DM_INTEGRITY=mCONFIG_DM_ZONED=mCONFIG_DM_AUDIT=yCONFIG_TARGET_CORE=mCONFIG_TCM_IBLOCK=mCONFIG_TCM_FILEIO=mCONFIG_TCM_PSCSI=mCONFIG_LOOPBACK_TARGET=mCONFIG_TCM_FC=mCONFIG_ISCSI_TARGET=mCONFIG_SBP_TARGET=m
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# end of IEEE 1394 (FireWire) support
CONFIG_NETDEVICES=yCONFIG_MII=mCONFIG_NET_CORE=yCONFIG_BONDING=mCONFIG_DUMMY=mCONFIG_WIREGUARD=mCONFIG_WIREGUARD_DEBUG=yCONFIG_EQUALIZER=mCONFIG_IFB=mCONFIG_NET_TEAM=mCONFIG_NET_TEAM_MODE_BROADCAST=mCONFIG_NET_TEAM_MODE_ROUNDROBIN=mCONFIG_NET_TEAM_MODE_RANDOM=mCONFIG_NET_TEAM_MODE_ACTIVEBACKUP=mCONFIG_NET_TEAM_MODE_LOADBALANCE=mCONFIG_MACVLAN=mCONFIG_MACVTAP=mCONFIG_IPVLAN_L3S=yCONFIG_IPVLAN=mCONFIG_IPVTAP=mCONFIG_VXLAN=mCONFIG_GENEVE=mCONFIG_BAREUDP=mCONFIG_GTP=mCONFIG_AMT=mCONFIG_MACSEC=mCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=mCONFIG_TAP=mCONFIG_TUN_VNET_CROSS_LE=yCONFIG_VETH=mCONFIG_VIRTIO_NET=mCONFIG_NLMON=mCONFIG_NET_VRF=mCONFIG_VSOCKMON=mCONFIG_MHI_NET=mCONFIG_ARCNET=mCONFIG_ARCNET_1201=mCONFIG_ARCNET_1051=mCONFIG_ARCNET_RAW=mCONFIG_ARCNET_CAP=m
CONFIG_ARCNET_COM90xx=m
CONFIG_ARCNET_COM90xxIO=mCONFIG_ARCNET_RIM_I=mCONFIG_ARCNET_COM20020=mCONFIG_ARCNET_COM20020_CS=mCONFIG_ATM_DRIVERS=yCONFIG_ATM_DUMMY=mCONFIG_ATM_TCP=mCONFIG_CAIF_DRIVERS=yCONFIG_CAIF_TTY=m
#
# Distributed Switch Architecture drivers
#CONFIG_B53=mCONFIG_B53_SPI_DRIVER=mCONFIG_B53_MDIO_DRIVER=mCONFIG_B53_MMAP_DRIVER=mCONFIG_B53_SRAB_DRIVER=mCONFIG_B53_SERDES=mCONFIG_NET_DSA_BCM_SF2=mCONFIG_NET_DSA_LOOP=mCONFIG_NET_DSA_HIRSCHMANN_HELLCREEK=mCONFIG_NET_DSA_LANTIQ_GSWIP=mCONFIG_NET_DSA_MT7530=mCONFIG_NET_DSA_MV88E6060=mCONFIG_NET_DSA_MICROCHIP_KSZ_COMMON=mCONFIG_NET_DSA_MICROCHIP_KSZ9477_I2C=mCONFIG_NET_DSA_MICROCHIP_KSZ_SPI=mCONFIG_NET_DSA_MICROCHIP_KSZ8863_SMI=mCONFIG_NET_DSA_MV88E6XXX=mCONFIG_NET_DSA_MV88E6XXX_PTP=yCONFIG_NET_DSA_MSCC_SEVILLE=mCONFIG_NET_DSA_AR9331=mCONFIG_NET_DSA_QCA8K=mCONFIG_NET_DSA_SJA1105=mCONFIG_NET_DSA_SJA1105_PTP=yCONFIG_NET_DSA_SJA1105_TAS=yCONFIG_NET_DSA_SJA1105_VL=yCONFIG_NET_DSA_XRS700X=mCONFIG_NET_DSA_XRS700X_I2C=mCONFIG_NET_DSA_XRS700X_MDIO=mCONFIG_NET_DSA_REALTEK=mCONFIG_NET_DSA_REALTEK_MDIO=mCONFIG_NET_DSA_REALTEK_SMI=mCONFIG_NET_DSA_REALTEK_RTL8365MB=mCONFIG_NET_DSA_REALTEK_RTL8366RB=mCONFIG_NET_DSA_SMSC_LAN9303=mCONFIG_NET_DSA_SMSC_LAN9303_I2C=mCONFIG_NET_DSA_SMSC_LAN9303_MDIO=mCONFIG_NET_DSA_VITESSE_VSC73XX=mCONFIG_NET_DSA_VITESSE_VSC73XX_SPI=mCONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM=m
# end of Distributed Switch Architecture drivers
CONFIG_ETHERNET=yCONFIG_MDIO=mCONFIG_NET_VENDOR_3COM=yCONFIG_PCMCIA_3C574=mCONFIG_PCMCIA_3C589=mCONFIG_NET_VENDOR_ACTIONS=yCONFIG_OWL_EMAC=mCONFIG_NET_VENDOR_ALACRITECH=yCONFIG_NET_VENDOR_AMAZON=yCONFIG_NET_VENDOR_AMD=yCONFIG_PCMCIA_NMCLAN=mCONFIG_AMD_XGBE=mCONFIG_AMD_XGBE_DCB=yCONFIG_NET_XGENE=mCONFIG_NET_XGENE_V2=mCONFIG_NET_VENDOR_AQUANTIA=yCONFIG_NET_VENDOR_ARC=yCONFIG_ARC_EMAC_CORE=mCONFIG_ARC_EMAC=mCONFIG_EMAC_ROCKCHIP=mCONFIG_NET_VENDOR_ASIX=yCONFIG_SPI_AX88796C=mCONFIG_SPI_AX88796C_COMPRESSION=yCONFIG_NET_VENDOR_CADENCE=yCONFIG_NET_CALXEDA_XGMAC=mCONFIG_NET_VENDOR_CAVIUM=yCONFIG_NET_VENDOR_CIRRUS=y
CONFIG_CS89x0=m
CONFIG_CS89x0_PLATFORM=mCONFIG_EP93XX_ETH=mCONFIG_NET_VENDOR_CORTINA=yCONFIG_GEMINI_ETHERNET=mCONFIG_NET_VENDOR_DAVICOM=yCONFIG_DM9000=mCONFIG_DM9000_FORCE_SIMPLE_PHY_POLL=yCONFIG_DM9051=mCONFIG_DNET=mCONFIG_NET_VENDOR_ENGLEDER=yCONFIG_NET_VENDOR_EZCHIP=yCONFIG_EZCHIP_NPS_MANAGEMENT_ENET=mCONFIG_NET_VENDOR_FARADAY=yCONFIG_FTMAC100=mCONFIG_FTGMAC100=mCONFIG_NET_VENDOR_FREESCALE=yCONFIG_FEC=mCONFIG_FSL_FMAN=mCONFIG_FSL_PQ_MDIO=mCONFIG_FSL_XGMAC_MDIO=mCONFIG_FSL_DPAA2_SWITCH=mCONFIG_FSL_ENETC_IERB=mCONFIG_NET_VENDOR_FUJITSU=yCONFIG_PCMCIA_FMVJ18X=mCONFIG_NET_VENDOR_FUNGIBLE=yCONFIG_NET_VENDOR_GOOGLE=yCONFIG_NET_VENDOR_HISILICON=yCONFIG_HIX5HD2_GMAC=mCONFIG_HISI_FEMAC=mCONFIG_HIP04_ETH=mCONFIG_HI13X1_GMAC=yCONFIG_HNS_MDIO=mCONFIG_HNS=mCONFIG_HNS_DSAF=mCONFIG_HNS_ENET=mCONFIG_NET_VENDOR_HUAWEI=yCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=yCONFIG_NET_VENDOR_WANGXUN=yCONFIG_KORINA=mCONFIG_NET_VENDOR_LITEX=yCONFIG_LITEX_LITEETH=mCONFIG_NET_VENDOR_MARVELL=yCONFIG_MV643XX_ETH=mCONFIG_MVMDIO=mCONFIG_MVNETA_BM_ENABLE=mCONFIG_MVNETA=mCONFIG_MVNETA_BM=mCONFIG_MVPP2=mCONFIG_MVPP2_PTP=yCONFIG_PXA168_ETH=mCONFIG_PRESTERA=mCONFIG_NET_VENDOR_MEDIATEK=yCONFIG_NET_MEDIATEK_SOC_WED=yCONFIG_NET_MEDIATEK_SOC=mCONFIG_NET_MEDIATEK_STAR_EMAC=mCONFIG_NET_VENDOR_MELLANOX=yCONFIG_MLXSW_CORE=mCONFIG_MLXSW_CORE_HWMON=yCONFIG_MLXSW_CORE_THERMAL=yCONFIG_MLXSW_I2C=mCONFIG_MLXSW_MINIMAL=mCONFIG_MLXFW=mCONFIG_MLXBF_GIGE=mCONFIG_NET_VENDOR_MICREL=yCONFIG_KS8851=mCONFIG_KS8851_MLL=mCONFIG_NET_VENDOR_MICROCHIP=yCONFIG_ENC28J60=mCONFIG_ENC28J60_WRITEVERIFY=yCONFIG_ENCX24J600=mCONFIG_LAN966X_SWITCH=mCONFIG_SPARX5_SWITCH=mCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_MSCC_OCELOT_SWITCH_LIB=mCONFIG_MSCC_OCELOT_SWITCH=mCONFIG_NET_VENDOR_MICROSOFT=yCONFIG_NET_VENDOR_NI=yCONFIG_NET_VENDOR_NATSEMI=yCONFIG_NET_VENDOR_NETRONOME=yCONFIG_NET_VENDOR_8390=yCONFIG_PCMCIA_AXNET=mCONFIG_AX88796=mCONFIG_AX88796_93CX6=yCONFIG_PCMCIA_PCNET=mCONFIG_STNIC=mCONFIG_LPC_ENET=mCONFIG_NET_VENDOR_PENSANDO=yCONFIG_NET_VENDOR_QUALCOMM=yCONFIG_QCA7000=mCONFIG_QCA7000_SPI=mCONFIG_QCA7000_UART=mCONFIG_RMNET=mCONFIG_NET_VENDOR_RENESAS=yCONFIG_SH_ETH=mCONFIG_RAVB=mCONFIG_NET_VENDOR_ROCKER=yCONFIG_NET_VENDOR_SAMSUNG=yCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SOLARFLARE=yCONFIG_NET_VENDOR_SMSC=yCONFIG_SMC91X=mCONFIG_PCMCIA_SMC91C92=mCONFIG_SMC911X=mCONFIG_SMSC911X=mCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_SNI_AVE=mCONFIG_SNI_NETSEC=mCONFIG_NET_VENDOR_STMICRO=yCONFIG_NET_VENDOR_SUNPLUS=yCONFIG_SP7021_EMAC=mCONFIG_NET_VENDOR_SYNOPSYS=yCONFIG_NET_VENDOR_VERTEXCOM=yCONFIG_MSE102X=mCONFIG_NET_VENDOR_VIA=yCONFIG_NET_VENDOR_WIZNET=yCONFIG_WIZNET_W5100=mCONFIG_WIZNET_W5300=m
# CONFIG_WIZNET_BUS_DIRECT is not set
# CONFIG_WIZNET_BUS_INDIRECT is not setCONFIG_WIZNET_BUS_ANY=yCONFIG_WIZNET_W5100_SPI=mCONFIG_NET_VENDOR_XILINX=yCONFIG_XILINX_EMACLITE=mCONFIG_XILINX_AXI_EMAC=mCONFIG_XILINX_LL_TEMAC=mCONFIG_NET_VENDOR_XIRCOM=yCONFIG_PCMCIA_XIRC2PS=mCONFIG_QCOM_IPA=mCONFIG_PHYLINK=mCONFIG_PHYLIB=mCONFIG_SWPHY=yCONFIG_LED_TRIGGER_PHY=yCONFIG_FIXED_PHY=mCONFIG_SFP=m
#
# MII PHY device drivers
#CONFIG_AMD_PHY=mCONFIG_MESON_GXL_PHY=mCONFIG_ADIN_PHY=mCONFIG_ADIN1100_PHY=mCONFIG_AQUANTIA_PHY=mCONFIG_AX88796B_PHY=mCONFIG_BROADCOM_PHY=mCONFIG_BCM54140_PHY=mCONFIG_BCM63XX_PHY=mCONFIG_BCM7XXX_PHY=mCONFIG_BCM84881_PHY=mCONFIG_BCM87XX_PHY=mCONFIG_BCM_CYGNUS_PHY=mCONFIG_BCM_NET_PHYLIB=mCONFIG_BCM_NET_PHYPTP=mCONFIG_CICADA_PHY=mCONFIG_CORTINA_PHY=mCONFIG_DAVICOM_PHY=mCONFIG_ICPLUS_PHY=mCONFIG_LXT_PHY=mCONFIG_INTEL_XWAY_PHY=mCONFIG_LSI_ET1011C_PHY=mCONFIG_MARVELL_PHY=mCONFIG_MARVELL_10G_PHY=mCONFIG_MARVELL_88X2222_PHY=mCONFIG_MAXLINEAR_GPHY=mCONFIG_MEDIATEK_GE_PHY=mCONFIG_MICREL_PHY=mCONFIG_MICROCHIP_PHY=mCONFIG_MICROCHIP_T1_PHY=mCONFIG_MICROSEMI_PHY=mCONFIG_MOTORCOMM_PHY=mCONFIG_NATIONAL_PHY=mCONFIG_NXP_C45_TJA11XX_PHY=mCONFIG_NXP_TJA11XX_PHY=mCONFIG_AT803X_PHY=mCONFIG_QSEMI_PHY=mCONFIG_REALTEK_PHY=mCONFIG_RENESAS_PHY=mCONFIG_ROCKCHIP_PHY=mCONFIG_SMSC_PHY=mCONFIG_STE10XP=mCONFIG_TERANETICS_PHY=mCONFIG_DP83822_PHY=mCONFIG_DP83TC811_PHY=mCONFIG_DP83848_PHY=mCONFIG_DP83867_PHY=mCONFIG_DP83869_PHY=mCONFIG_DP83TD510_PHY=mCONFIG_VITESSE_PHY=mCONFIG_XILINX_GMII2RGMII=mCONFIG_MICREL_KS8995MA=mCONFIG_CAN_DEV=mCONFIG_CAN_VCAN=mCONFIG_CAN_VXCAN=mCONFIG_CAN_NETLINK=yCONFIG_CAN_CALC_BITTIMING=yCONFIG_CAN_RX_OFFLOAD=yCONFIG_CAN_AT91=mCONFIG_CAN_CAN327=mCONFIG_CAN_FLEXCAN=mCONFIG_CAN_SLCAN=mCONFIG_CAN_SUN4I=mCONFIG_CAN_C_CAN=mCONFIG_CAN_C_CAN_PLATFORM=mCONFIG_CAN_CC770=mCONFIG_CAN_CC770_ISA=mCONFIG_CAN_CC770_PLATFORM=mCONFIG_CAN_CTUCANFD=mCONFIG_CAN_CTUCANFD_PLATFORM=mCONFIG_CAN_IFI_CANFD=mCONFIG_CAN_M_CAN=mCONFIG_CAN_M_CAN_PLATFORM=mCONFIG_CAN_M_CAN_TCAN4X5X=mCONFIG_CAN_RCAR=mCONFIG_CAN_RCAR_CANFD=mCONFIG_CAN_SJA1000=mCONFIG_CAN_EMS_PCMCIA=mCONFIG_CAN_SJA1000_ISA=mCONFIG_CAN_SJA1000_PLATFORM=mCONFIG_CAN_SOFTING=mCONFIG_CAN_SOFTING_CS=m
#
# CAN SPI interfaces
#CONFIG_CAN_HI311X=mCONFIG_CAN_MCP251X=mCONFIG_CAN_MCP251XFD=mCONFIG_CAN_MCP251XFD_SANITY=y
# end of CAN SPI interfaces
#
# CAN USB interfaces
#CONFIG_CAN_8DEV_USB=mCONFIG_CAN_EMS_USB=mCONFIG_CAN_ESD_USB=mCONFIG_CAN_ETAS_ES58X=mCONFIG_CAN_GS_USB=mCONFIG_CAN_KVASER_USB=mCONFIG_CAN_MCBA_USB=mCONFIG_CAN_PEAK_USB=mCONFIG_CAN_UCAN=m
# end of CAN USB interfaces
CONFIG_CAN_DEBUG_DEVICES=y
#
# MCTP Device Drivers
#CONFIG_MCTP_SERIAL=mCONFIG_MCTP_TRANSPORT_I2C=m
# end of MCTP Device Drivers
CONFIG_MDIO_DEVICE=mCONFIG_MDIO_BUS=mCONFIG_FWNODE_MDIO=mCONFIG_OF_MDIO=mCONFIG_MDIO_DEVRES=mCONFIG_MDIO_SUN4I=mCONFIG_MDIO_XGENE=mCONFIG_MDIO_ASPEED=mCONFIG_MDIO_BITBANG=mCONFIG_MDIO_BCM_IPROC=mCONFIG_MDIO_BCM_UNIMAC=mCONFIG_MDIO_CAVIUM=mCONFIG_MDIO_GPIO=mCONFIG_MDIO_HISI_FEMAC=mCONFIG_MDIO_I2C=mCONFIG_MDIO_MVUSB=mCONFIG_MDIO_MSCC_MIIM=mCONFIG_MDIO_MOXART=mCONFIG_MDIO_OCTEON=mCONFIG_MDIO_IPQ8064=m
#
# MDIO Multiplexers
#CONFIG_MDIO_BUS_MUX=mCONFIG_MDIO_BUS_MUX_BCM6368=mCONFIG_MDIO_BUS_MUX_BCM_IPROC=mCONFIG_MDIO_BUS_MUX_GPIO=mCONFIG_MDIO_BUS_MUX_MULTIPLEXER=mCONFIG_MDIO_BUS_MUX_MMIOREG=m
#
# PCS device drivers
#CONFIG_PCS_XPCS=mCONFIG_PCS_LYNX=mCONFIG_PCS_RZN1_MIIC=m
# end of PCS device drivers
CONFIG_PLIP=mCONFIG_PPP=mCONFIG_PPP_BSDCOMP=mCONFIG_PPP_DEFLATE=mCONFIG_PPP_FILTER=yCONFIG_PPP_MPPE=mCONFIG_PPP_MULTILINK=yCONFIG_PPPOATM=mCONFIG_PPPOE=mCONFIG_PPTP=mCONFIG_PPPOL2TP=mCONFIG_PPP_ASYNC=mCONFIG_PPP_SYNC_TTY=mCONFIG_SLIP=mCONFIG_SLHC=mCONFIG_SLIP_COMPRESSED=yCONFIG_SLIP_SMART=yCONFIG_SLIP_MODE_SLIP6=y
#
# Host-side USB support is needed for USB Network Adapter support #CONFIG_USB_NET_DRIVERS=mCONFIG_USB_CATC=mCONFIG_USB_KAWETH=mCONFIG_USB_PEGASUS=mCONFIG_USB_RTL8150=mCONFIG_USB_RTL8152=mCONFIG_USB_LAN78XX=mCONFIG_USB_USBNET=mCONFIG_USB_NET_AX8817X=mCONFIG_USB_NET_AX88179_178A=mCONFIG_USB_NET_CDCETHER=mCONFIG_USB_NET_CDC_EEM=mCONFIG_USB_NET_CDC_NCM=m CONFIG_USB_NET_HUAWEI_CDC_NCM=m CONFIG_USB_NET_CDC_MBIM=mCONFIG_USB_NET_DM9601=mCONFIG_USB_NET_SR9700=mCONFIG_USB_NET_SR9800=mCONFIG_USB_NET_SMSC75XX=mCONFIG_USB_NET_SMSC95XX=mCONFIG_USB_NET_GL620A=mCONFIG_USB_NET_NET1080=mCONFIG_USB_NET_PLUSB=mCONFIG_USB_NET_MCS7830=mCONFIG_USB_NET_RNDIS_HOST=m CONFIG_USB_NET_CDC_SUBSET_ENABLE=m CONFIG_USB_NET_CDC_SUBSET=mCONFIG_USB_ALI_M5632=yCONFIG_USB_AN2720=yCONFIG_USB_BELKIN=yCONFIG_USB_ARMLINUX=yCONFIG_USB_EPSON2888=yCONFIG_USB_KC2190=yCONFIG_USB_NET_ZAURUS=mCONFIG_USB_NET_CX82310_ETH=mCONFIG_USB_NET_KALMIA=mCONFIG_USB_NET_QMI_WWAN=mCONFIG_USB_HSO=mCONFIG_USB_NET_INT51X1=mCONFIG_USB_CDC_PHONET=mCONFIG_USB_IPHETH=mCONFIG_USB_SIERRA_NET=mCONFIG_USB_VL600=mCONFIG_USB_NET_CH9200=mCONFIG_USB_NET_AQC111=mCONFIG_USB_RTL8153_ECM=mCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=yCONFIG_ATH_COMMON=mCONFIG_WLAN_VENDOR_ATH=yCONFIG_ATH_DEBUG=yCONFIG_ATH_TRACEPOINTS=y CONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS=y CONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING=y CONFIG_ATH9K_HW=mCONFIG_ATH9K_COMMON=mCONFIG_ATH9K_COMMON_DEBUG=y CONFIG_ATH9K_BTCOEX_SUPPORT=yCONFIG_ATH9K_HTC=mCONFIG_ATH9K_HTC_DEBUGFS=y CONFIG_ATH9K_COMMON_SPECTRAL=yCONFIG_CARL9170=mCONFIG_CARL9170_LEDS=yCONFIG_CARL9170_DEBUGFS=yCONFIG_CARL9170_WPC=yCONFIG_CARL9170_HWRNG=yCONFIG_ATH6KL=mCONFIG_ATH6KL_SDIO=mCONFIG_ATH6KL_USB=mCONFIG_ATH6KL_DEBUG=yCONFIG_ATH6KL_TRACING=yCONFIG_ATH6KL_REGDOMAIN=yCONFIG_AR5523=mCONFIG_WLAN_VENDOR_ATMEL=yCONFIG_ATMEL=mCONFIG_PCMCIA_ATMEL=mCONFIG_AT76C50X_USB=mCONFIG_WLAN_VENDOR_BROADCOM=yCONFIG_BRCMUTIL=mCONFIG_BRCMFMAC=mCONFIG_BRCMFMAC_PROTO_BCDC=yCONFIG_BRCMFMAC_SDIO=yCONFIG_BRCMFMAC_USB=yCONFIG_BRCM_TRACING=yCONFIG_BRCMDBG=yCONFIG_WLAN_VENDOR_CISCO=yCONFIG_AIRO_CS=mCONFIG_WLAN_VENDOR_INTEL=y CONFIG_WLAN_VENDOR_INTERSIL=yCONFIG_HOSTAP=mCONFIG_HOSTAP_FIRMWARE=yCONFIG_HOSTAP_FIRMWARE_NVRAM=yCONFIG_HOSTAP_CS=mCONFIG_HERMES=mCONFIG_HERMES_PRISM=yCONFIG_HERMES_CACHE_FW_ON_INIT=yCONFIG_ORINOCO_USB=mCONFIG_P54_COMMON=mCONFIG_P54_USB=mCONFIG_P54_SPI=mCONFIG_P54_SPI_DEFAULT_EEPROM=yCONFIG_P54_LEDS=yCONFIG_WLAN_VENDOR_MARVELL=yCONFIG_LIBERTAS=mCONFIG_LIBERTAS_USB=mCONFIG_LIBERTAS_SDIO=mCONFIG_LIBERTAS_SPI=mCONFIG_LIBERTAS_DEBUG=yCONFIG_LIBERTAS_MESH=yCONFIG_LIBERTAS_THINFIRM=m CONFIG_LIBERTAS_THINFIRM_DEBUG=y CONFIG_LIBERTAS_THINFIRM_USB=mCONFIG_MWIFIEX=mCONFIG_MWIFIEX_SDIO=mCONFIG_MWIFIEX_USB=mCONFIG_WLAN_VENDOR_MEDIATEK=yCONFIG_MT7601U=mCONFIG_MT76_CORE=mCONFIG_MT76_LEDS=yCONFIG_MT76_USB=mCONFIG_MT76_SDIO=m
CONFIG_MT76x02_LIB=m
CONFIG_MT76x02_USB=mCONFIG_MT76_CONNAC_LIB=m
CONFIG_MT76x0_COMMON=m
CONFIG_MT76x0U=m
CONFIG_MT76x2_COMMON=m
CONFIG_MT76x2U=mCONFIG_MT7615_COMMON=mCONFIG_MT7663_USB_SDIO_COMMON=mCONFIG_MT7663U=mCONFIG_MT7663S=mCONFIG_MT7921_COMMON=mCONFIG_MT7921S=mCONFIG_MT7921U=mCONFIG_WLAN_VENDOR_MICROCHIP=yCONFIG_WILC1000=mCONFIG_WILC1000_SDIO=mCONFIG_WILC1000_SPI=mCONFIG_WILC1000_HW_OOB_INTR=y CONFIG_WLAN_VENDOR_PURELIFI=yCONFIG_PLFXLC=mCONFIG_WLAN_VENDOR_RALINK=y CONFIG_WLAN_VENDOR_REALTEK=yCONFIG_RTL8187=mCONFIG_RTL8187_LEDS=yCONFIG_RTL_CARDS=mCONFIG_RTL8192CU=mCONFIG_RTLWIFI=mCONFIG_RTLWIFI_USB=mCONFIG_RTLWIFI_DEBUG=yCONFIG_RTL8192C_COMMON=mCONFIG_RTL8XXXU=mCONFIG_RTL8XXXU_UNTESTED=yCONFIG_RTW88=mCONFIG_RTW89=mCONFIG_WLAN_VENDOR_RSI=yCONFIG_RSI_91X=mCONFIG_RSI_DEBUGFS=yCONFIG_RSI_SDIO=mCONFIG_RSI_USB=mCONFIG_RSI_COEX=yCONFIG_WLAN_VENDOR_SILABS=yCONFIG_WFX=mCONFIG_WLAN_VENDOR_ST=yCONFIG_CW1200=mCONFIG_CW1200_WLAN_SDIO=mCONFIG_CW1200_WLAN_SPI=mCONFIG_WLAN_VENDOR_TI=yCONFIG_WL1251=mCONFIG_WL1251_SPI=mCONFIG_WL1251_SDIO=mCONFIG_WL12XX=mCONFIG_WL18XX=mCONFIG_WLCORE=mCONFIG_WLCORE_SPI=mCONFIG_WLCORE_SDIO=mCONFIG_WILINK_PLATFORM_DATA=y CONFIG_WLAN_VENDOR_ZYDAS=yCONFIG_USB_ZD1201=mCONFIG_ZD1211RW=mCONFIG_ZD1211RW_DEBUG=yCONFIG_WLAN_VENDOR_QUANTENNA=yCONFIG_PCMCIA_RAYCS=mCONFIG_PCMCIA_WL3501=mCONFIG_MAC80211_HWSIM=mCONFIG_USB_NET_RNDIS_WLAN=mCONFIG_VIRT_WIFI=mCONFIG_WAN=yCONFIG_HDLC=mCONFIG_HDLC_RAW=mCONFIG_HDLC_RAW_ETH=mCONFIG_HDLC_CISCO=mCONFIG_HDLC_FR=mCONFIG_HDLC_PPP=mCONFIG_HDLC_X25=mCONFIG_FSL_UCC_HDLC=mCONFIG_SLIC_DS26522=mCONFIG_LAPBETHER=mCONFIG_IEEE802154_DRIVERS=mCONFIG_IEEE802154_FAKELB=m CONFIG_IEEE802154_AT86RF230=m CONFIG_IEEE802154_MRF24J40=mCONFIG_IEEE802154_CC2520=mCONFIG_IEEE802154_ATUSB=mCONFIG_IEEE802154_ADF7242=mCONFIG_IEEE802154_MCR20A=mCONFIG_IEEE802154_HWSIM=m
#
# Wireless WAN
#CONFIG_WWAN=mCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=mCONFIG_MHI_WWAN_CTRL=mCONFIG_MHI_WWAN_MBIM=mCONFIG_QCOM_BAM_DMUX=mCONFIG_RPMSG_WWAN_CTRL=m
# end of Wireless WAN
CONFIG_NETDEVSIM=mCONFIG_NET_FAILOVER=mCONFIG_ISDN=yCONFIG_ISDN_CAPI=yCONFIG_CAPI_TRACE=yCONFIG_ISDN_CAPI_MIDDLEWARE=yCONFIG_MISDN=mCONFIG_MISDN_DSP=mCONFIG_MISDN_L1OIP=m
#
# mISDN hardware drivers
#CONFIG_MISDN_HFCUSB=m
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=mCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_SPARSEKMAP=mCONFIG_INPUT_MATRIXKMAP=mCONFIG_INPUT_VIVALDIFMAP=m
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=mCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=mCONFIG_INPUT_EVBUG=m
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADC=mCONFIG_KEYBOARD_ADP5588=mCONFIG_KEYBOARD_ADP5589=mCONFIG_KEYBOARD_ATKBD=mCONFIG_KEYBOARD_QT1050=mCONFIG_KEYBOARD_QT1070=mCONFIG_KEYBOARD_QT2160=mCONFIG_KEYBOARD_CLPS711X=mCONFIG_KEYBOARD_DLINK_DIR685=mCONFIG_KEYBOARD_LKKBD=mCONFIG_KEYBOARD_EP93XX=mCONFIG_KEYBOARD_GPIO=mCONFIG_KEYBOARD_GPIO_POLLED=mCONFIG_KEYBOARD_TCA6416=mCONFIG_KEYBOARD_TCA8418=mCONFIG_KEYBOARD_MATRIX=mCONFIG_KEYBOARD_LM8323=mCONFIG_KEYBOARD_LM8333=mCONFIG_KEYBOARD_MAX7359=mCONFIG_KEYBOARD_MCS=mCONFIG_KEYBOARD_MPR121=mCONFIG_KEYBOARD_SNVS_PWRKEY=mCONFIG_KEYBOARD_IMX=mCONFIG_KEYBOARD_IMX_SC_KEY=mCONFIG_KEYBOARD_NEWTON=mCONFIG_KEYBOARD_OPENCORES=mCONFIG_KEYBOARD_PMIC8XXX=mCONFIG_KEYBOARD_SAMSUNG=mCONFIG_KEYBOARD_GOLDFISH_EVENTS=mCONFIG_KEYBOARD_STOWAWAY=mCONFIG_KEYBOARD_ST_KEYSCAN=mCONFIG_KEYBOARD_SUNKBD=mCONFIG_KEYBOARD_SH_KEYSC=mCONFIG_KEYBOARD_STMPE=mCONFIG_KEYBOARD_IQS62X=mCONFIG_KEYBOARD_OMAP4=mCONFIG_KEYBOARD_TM2_TOUCHKEY=mCONFIG_KEYBOARD_XTKBD=mCONFIG_KEYBOARD_CROS_EC=mCONFIG_KEYBOARD_CAP11XX=mCONFIG_KEYBOARD_BCM=mCONFIG_KEYBOARD_MT6779=mCONFIG_KEYBOARD_MTK_PMIC=mCONFIG_KEYBOARD_CYPRESS_SF=mCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=mCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=yCONFIG_MOUSE_PS2_TOUCHKIT=yCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=mCONFIG_MOUSE_APPLETOUCH=mCONFIG_MOUSE_BCM5974=mCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=mCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=mCONFIG_MOUSE_GPIO=mCONFIG_MOUSE_SYNAPTICS_I2C=mCONFIG_MOUSE_SYNAPTICS_USB=mCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=mCONFIG_JOYSTICK_A3D=mCONFIG_JOYSTICK_ADC=mCONFIG_JOYSTICK_ADI=mCONFIG_JOYSTICK_COBRA=mCONFIG_JOYSTICK_GF2K=mCONFIG_JOYSTICK_GRIP=mCONFIG_JOYSTICK_GRIP_MP=mCONFIG_JOYSTICK_GUILLEMOT=mCONFIG_JOYSTICK_INTERACT=mCONFIG_JOYSTICK_SIDEWINDER=mCONFIG_JOYSTICK_TMDC=mCONFIG_JOYSTICK_IFORCE=mCONFIG_JOYSTICK_IFORCE_USB=mCONFIG_JOYSTICK_IFORCE_232=mCONFIG_JOYSTICK_WARRIOR=mCONFIG_JOYSTICK_MAGELLAN=mCONFIG_JOYSTICK_SPACEORB=mCONFIG_JOYSTICK_SPACEBALL=mCONFIG_JOYSTICK_STINGER=mCONFIG_JOYSTICK_TWIDJOY=mCONFIG_JOYSTICK_ZHENHUA=mCONFIG_JOYSTICK_DB9=mCONFIG_JOYSTICK_GAMECON=mCONFIG_JOYSTICK_TURBOGRAFX=mCONFIG_JOYSTICK_AS5011=mCONFIG_JOYSTICK_JOYDUMP=mCONFIG_JOYSTICK_XPAD=mCONFIG_JOYSTICK_XPAD_FF=yCONFIG_JOYSTICK_XPAD_LEDS=yCONFIG_JOYSTICK_WALKERA0701=mCONFIG_JOYSTICK_PSXPAD_SPI=mCONFIG_JOYSTICK_PSXPAD_SPI_FF=yCONFIG_JOYSTICK_PXRC=mCONFIG_JOYSTICK_QWIIC=mCONFIG_JOYSTICK_FSIA6B=mCONFIG_JOYSTICK_SENSEHAT=mCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=mCONFIG_TABLET_USB_AIPTEK=mCONFIG_TABLET_USB_HANWANG=mCONFIG_TABLET_USB_KBTAB=mCONFIG_TABLET_USB_PEGASUS=mCONFIG_TABLET_SERIAL_WACOM4=mCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_ADS7846=mCONFIG_TOUCHSCREEN_AD7877=mCONFIG_TOUCHSCREEN_AD7879=mCONFIG_TOUCHSCREEN_AD7879_I2C=mCONFIG_TOUCHSCREEN_AD7879_SPI=mCONFIG_TOUCHSCREEN_ADC=mCONFIG_TOUCHSCREEN_AR1021_I2C=mCONFIG_TOUCHSCREEN_ATMEL_MXT=mCONFIG_TOUCHSCREEN_ATMEL_MXT_T37=yCONFIG_TOUCHSCREEN_AUO_PIXCIR=mCONFIG_TOUCHSCREEN_BU21013=mCONFIG_TOUCHSCREEN_BU21029=mCONFIG_TOUCHSCREEN_CHIPONE_ICN8318=mCONFIG_TOUCHSCREEN_CY8CTMA140=mCONFIG_TOUCHSCREEN_CY8CTMG110=mCONFIG_TOUCHSCREEN_CYTTSP_CORE=mCONFIG_TOUCHSCREEN_CYTTSP_I2C=mCONFIG_TOUCHSCREEN_CYTTSP_SPI=mCONFIG_TOUCHSCREEN_CYTTSP4_CORE=mCONFIG_TOUCHSCREEN_CYTTSP4_I2C=mCONFIG_TOUCHSCREEN_CYTTSP4_SPI=mCONFIG_TOUCHSCREEN_DA9052=mCONFIG_TOUCHSCREEN_DYNAPRO=mCONFIG_TOUCHSCREEN_HAMPSHIRE=mCONFIG_TOUCHSCREEN_EETI=mCONFIG_TOUCHSCREEN_EGALAX=mCONFIG_TOUCHSCREEN_EGALAX_SERIAL=mCONFIG_TOUCHSCREEN_EXC3000=mCONFIG_TOUCHSCREEN_FUJITSU=mCONFIG_TOUCHSCREEN_GOODIX=mCONFIG_TOUCHSCREEN_HIDEEP=mCONFIG_TOUCHSCREEN_HYCON_HY46XX=mCONFIG_TOUCHSCREEN_ILI210X=mCONFIG_TOUCHSCREEN_ILITEK=mCONFIG_TOUCHSCREEN_IPROC=mCONFIG_TOUCHSCREEN_S6SY761=mCONFIG_TOUCHSCREEN_GUNZE=mCONFIG_TOUCHSCREEN_EKTF2127=mCONFIG_TOUCHSCREEN_ELAN=mCONFIG_TOUCHSCREEN_ELO=mCONFIG_TOUCHSCREEN_WACOM_W8001=mCONFIG_TOUCHSCREEN_WACOM_I2C=mCONFIG_TOUCHSCREEN_MAX11801=mCONFIG_TOUCHSCREEN_MCS5000=mCONFIG_TOUCHSCREEN_MMS114=mCONFIG_TOUCHSCREEN_MELFAS_MIP4=mCONFIG_TOUCHSCREEN_MSG2638=mCONFIG_TOUCHSCREEN_MTOUCH=mCONFIG_TOUCHSCREEN_IMAGIS=mCONFIG_TOUCHSCREEN_IMX6UL_TSC=mCONFIG_TOUCHSCREEN_INEXIO=mCONFIG_TOUCHSCREEN_MK712=mCONFIG_TOUCHSCREEN_PENMOUNT=mCONFIG_TOUCHSCREEN_EDT_FT5X06=mCONFIG_TOUCHSCREEN_RASPBERRYPI_FW=mCONFIG_TOUCHSCREEN_MIGOR=mCONFIG_TOUCHSCREEN_TOUCHRIGHT=mCONFIG_TOUCHSCREEN_TOUCHWIN=mCONFIG_TOUCHSCREEN_TI_AM335X_TSC=mCONFIG_TOUCHSCREEN_UCB1400=mCONFIG_TOUCHSCREEN_PIXCIR=mCONFIG_TOUCHSCREEN_WDT87XX_I2C=mCONFIG_TOUCHSCREEN_WM831X=mCONFIG_TOUCHSCREEN_WM97XX=mCONFIG_TOUCHSCREEN_WM9705=yCONFIG_TOUCHSCREEN_WM9712=yCONFIG_TOUCHSCREEN_WM9713=yCONFIG_TOUCHSCREEN_USB_COMPOSITE=mCONFIG_TOUCHSCREEN_MXS_LRADC=mCONFIG_TOUCHSCREEN_MX25=mCONFIG_TOUCHSCREEN_MC13783=mCONFIG_TOUCHSCREEN_USB_EGALAX=yCONFIG_TOUCHSCREEN_USB_PANJIT=yCONFIG_TOUCHSCREEN_USB_3M=yCONFIG_TOUCHSCREEN_USB_ITM=yCONFIG_TOUCHSCREEN_USB_ETURBO=yCONFIG_TOUCHSCREEN_USB_GUNZE=yCONFIG_TOUCHSCREEN_USB_DMC_TSC10=yCONFIG_TOUCHSCREEN_USB_IRTOUCH=yCONFIG_TOUCHSCREEN_USB_IDEALTEK=yCONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=yCONFIG_TOUCHSCREEN_USB_GOTOP=yCONFIG_TOUCHSCREEN_USB_JASTEC=yCONFIG_TOUCHSCREEN_USB_ELO=yCONFIG_TOUCHSCREEN_USB_E2I=yCONFIG_TOUCHSCREEN_USB_ZYTRONIC=yCONFIG_TOUCHSCREEN_USB_ETT_TC45USB=yCONFIG_TOUCHSCREEN_USB_NEXIO=yCONFIG_TOUCHSCREEN_USB_EASYTOUCH=yCONFIG_TOUCHSCREEN_TOUCHIT213=mCONFIG_TOUCHSCREEN_TS4800=mCONFIG_TOUCHSCREEN_TSC_SERIO=mCONFIG_TOUCHSCREEN_TSC200X_CORE=mCONFIG_TOUCHSCREEN_TSC2004=mCONFIG_TOUCHSCREEN_TSC2005=mCONFIG_TOUCHSCREEN_TSC2007=mCONFIG_TOUCHSCREEN_TSC2007_IIO=yCONFIG_TOUCHSCREEN_PCAP=mCONFIG_TOUCHSCREEN_RM_TS=mCONFIG_TOUCHSCREEN_SILEAD=mCONFIG_TOUCHSCREEN_SIS_I2C=mCONFIG_TOUCHSCREEN_ST1232=mCONFIG_TOUCHSCREEN_STMFTS=mCONFIG_TOUCHSCREEN_STMPE=mCONFIG_TOUCHSCREEN_SUN4I=mCONFIG_TOUCHSCREEN_SURFACE3_SPI=mCONFIG_TOUCHSCREEN_SX8654=mCONFIG_TOUCHSCREEN_TPS6507X=mCONFIG_TOUCHSCREEN_ZET6223=mCONFIG_TOUCHSCREEN_ZFORCE=mCONFIG_TOUCHSCREEN_COLIBRI_VF50=mCONFIG_TOUCHSCREEN_ROHM_BU21023=mCONFIG_TOUCHSCREEN_IQS5XX=mCONFIG_TOUCHSCREEN_ZINITIX=mCONFIG_INPUT_MISC=yCONFIG_INPUT_88PM80X_ONKEY=mCONFIG_INPUT_AD714X=mCONFIG_INPUT_AD714X_I2C=mCONFIG_INPUT_AD714X_SPI=mCONFIG_INPUT_ARIEL_PWRBUTTON=mCONFIG_INPUT_ARIZONA_HAPTICS=mCONFIG_INPUT_ATC260X_ONKEY=mCONFIG_INPUT_ATMEL_CAPTOUCH=mCONFIG_INPUT_BMA150=mCONFIG_INPUT_E3X0_BUTTON=mCONFIG_INPUT_PM8941_PWRKEY=mCONFIG_INPUT_PM8XXX_VIBRATOR=mCONFIG_INPUT_PMIC8XXX_PWRKEY=mCONFIG_INPUT_MAX77650_ONKEY=mCONFIG_INPUT_MAX77693_HAPTIC=mCONFIG_INPUT_MC13783_PWRBUTTON=mCONFIG_INPUT_MMA8450=mCONFIG_INPUT_GPIO_BEEPER=mCONFIG_INPUT_GPIO_DECODER=mCONFIG_INPUT_GPIO_VIBRA=mCONFIG_INPUT_CPCAP_PWRBUTTON=mCONFIG_INPUT_ATI_REMOTE2=mCONFIG_INPUT_KEYSPAN_REMOTE=mCONFIG_INPUT_KXTJ9=mCONFIG_INPUT_POWERMATE=mCONFIG_INPUT_YEALINK=mCONFIG_INPUT_CM109=mCONFIG_INPUT_REGULATOR_HAPTIC=mCONFIG_INPUT_RETU_PWRBUTTON=mCONFIG_INPUT_TPS65218_PWRBUTTON=mCONFIG_INPUT_AXP20X_PEK=mCONFIG_INPUT_UINPUT=mCONFIG_INPUT_PCF50633_PMU=mCONFIG_INPUT_PCF8574=mCONFIG_INPUT_PWM_BEEPER=mCONFIG_INPUT_PWM_VIBRA=mCONFIG_INPUT_RK805_PWRKEY=mCONFIG_INPUT_GPIO_ROTARY_ENCODER=mCONFIG_INPUT_DA7280_HAPTICS=mCONFIG_INPUT_DA9052_ONKEY=mCONFIG_INPUT_DA9063_ONKEY=mCONFIG_INPUT_WM831X_ON=mCONFIG_INPUT_PCAP=mCONFIG_INPUT_ADXL34X=mCONFIG_INPUT_ADXL34X_I2C=mCONFIG_INPUT_ADXL34X_SPI=mCONFIG_INPUT_IMS_PCU=mCONFIG_INPUT_IQS269A=mCONFIG_INPUT_IQS626A=mCONFIG_INPUT_IQS7222=mCONFIG_INPUT_CMA3000=mCONFIG_INPUT_CMA3000_I2C=mCONFIG_INPUT_DRV260X_HAPTICS=mCONFIG_INPUT_DRV2665_HAPTICS=mCONFIG_INPUT_DRV2667_HAPTICS=mCONFIG_INPUT_HISI_POWERKEY=mCONFIG_INPUT_RAVE_SP_PWRBUTTON=mCONFIG_INPUT_SC27XX_VIBRA=mCONFIG_RMI4_CORE=mCONFIG_RMI4_I2C=mCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=mCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=mCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=yCONFIG_RMI4_F3A=yCONFIG_RMI4_F54=yCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=mCONFIG_SERIO_SERPORT=mCONFIG_SERIO_PARKBD=mCONFIG_SERIO_LIBPS2=mCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=mCONFIG_SERIO_PS2MULT=mCONFIG_SERIO_ARC_PS2=mCONFIG_SERIO_APBPS2=mCONFIG_SERIO_OLPC_APSP=mCONFIG_SERIO_SUN4I_PS2=mCONFIG_SERIO_GPIO_PS2=mCONFIG_USERIO=mCONFIG_GAMEPORT=mCONFIG_GAMEPORT_NS558=mCONFIG_GAMEPORT_L4=m
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=mCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_16550A_VARIANTS=yCONFIG_SERIAL_8250_FINTEK=yCONFIG_SERIAL_8250_CS=mCONFIG_SERIAL_8250_MEN_MCB=mCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_ASPEED_VUART=mCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_DWLIB=yCONFIG_SERIAL_8250_BCM2835AUX=mCONFIG_SERIAL_8250_DW=mCONFIG_SERIAL_8250_EM=mCONFIG_SERIAL_8250_IOC3=mCONFIG_SERIAL_8250_RT288X=yCONFIG_SERIAL_8250_OMAP=mCONFIG_SERIAL_8250_LPC18XX=mCONFIG_SERIAL_8250_MT6577=mCONFIG_SERIAL_8250_UNIPHIER=mCONFIG_SERIAL_8250_INGENIC=mCONFIG_SERIAL_8250_PXA=mCONFIG_SERIAL_8250_TEGRA=mCONFIG_SERIAL_8250_BCM7271=mCONFIG_SERIAL_OF_PLATFORM=m
#
# Non-8250 serial port support
#CONFIG_SERIAL_AMBA_PL010=mCONFIG_SERIAL_ATMEL=yCONFIG_SERIAL_ATMEL_CONSOLE=yCONFIG_SERIAL_ATMEL_PDC=yCONFIG_SERIAL_ATMEL_TTYAT=yCONFIG_SERIAL_KGDB_NMI=yCONFIG_SERIAL_MESON=mCONFIG_SERIAL_MESON_CONSOLE=yCONFIG_SERIAL_CLPS711X=mCONFIG_SERIAL_SAMSUNG=mCONFIG_SERIAL_SAMSUNG_UARTS_4=yCONFIG_SERIAL_SAMSUNG_UARTS=4CONFIG_SERIAL_SAMSUNG_CONSOLE=yCONFIG_SERIAL_TEGRA=mCONFIG_SERIAL_TEGRA_TCU=mCONFIG_SERIAL_MAX3100=mCONFIG_SERIAL_MAX310X=mCONFIG_SERIAL_IMX=mCONFIG_SERIAL_IMX_CONSOLE=mCONFIG_SERIAL_IMX_EARLYCON=yCONFIG_SERIAL_UARTLITE=mCONFIG_SERIAL_UARTLITE_NR_UARTS=1CONFIG_SERIAL_SH_SCI=mCONFIG_SERIAL_SH_SCI_NR_UARTS=10CONFIG_SERIAL_HS_LPC32XX=mCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_CONSOLE_POLL=yCONFIG_SERIAL_MSM=mCONFIG_SERIAL_QCOM_GENI=mCONFIG_SERIAL_QCOM_GENI_CONSOLE=yCONFIG_SERIAL_VT8500=yCONFIG_SERIAL_VT8500_CONSOLE=yCONFIG_SERIAL_OMAP=mCONFIG_SERIAL_SIFIVE=mCONFIG_SERIAL_LANTIQ=mCONFIG_SERIAL_QE=mCONFIG_SERIAL_SCCNXP=mCONFIG_SERIAL_SC16IS7XX_CORE=mCONFIG_SERIAL_SC16IS7XX=mCONFIG_SERIAL_SC16IS7XX_I2C=yCONFIG_SERIAL_SC16IS7XX_SPI=yCONFIG_SERIAL_TIMBERDALE=mCONFIG_SERIAL_BCM63XX=mCONFIG_SERIAL_ALTERA_JTAGUART=mCONFIG_SERIAL_ALTERA_UART=mCONFIG_SERIAL_ALTERA_UART_MAXPORTS=4CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200CONFIG_SERIAL_MXS_AUART=mCONFIG_SERIAL_XILINX_PS_UART=mCONFIG_SERIAL_MPS2_UART_CONSOLE=yCONFIG_SERIAL_MPS2_UART=yCONFIG_SERIAL_ARC=mCONFIG_SERIAL_ARC_NR_PORTS=1CONFIG_SERIAL_FSL_LINFLEXUART=mCONFIG_SERIAL_CONEXANT_DIGICOLOR=mCONFIG_SERIAL_ST_ASC=mCONFIG_SERIAL_MEN_Z135=mCONFIG_SERIAL_STM32=mCONFIG_SERIAL_OWL=mCONFIG_SERIAL_RDA=yCONFIG_SERIAL_RDA_CONSOLE=yCONFIG_SERIAL_MILBEAUT_USIO=mCONFIG_SERIAL_MILBEAUT_USIO_PORTS=4CONFIG_SERIAL_LITEUART=mCONFIG_SERIAL_LITEUART_MAX_PORTS=1CONFIG_SERIAL_SUNPLUS=mCONFIG_SERIAL_SUNPLUS_CONSOLE=y
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=yCONFIG_N_HDLC=mCONFIG_N_GSM=mCONFIG_NULL_TTY=mCONFIG_HVC_DRIVER=yCONFIG_RPMSG_TTY=mCONFIG_SERIAL_DEV_BUS=mCONFIG_TTY_PRINTK=mCONFIG_TTY_PRINTK_LEVEL=6CONFIG_PRINTER=mCONFIG_LP_CONSOLE=yCONFIG_PPDEV=mCONFIG_VIRTIO_CONSOLE=mCONFIG_IPMI_HANDLER=mCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_SSIF=mCONFIG_IPMI_IPMB=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_IPMI_KCS_BMC=mCONFIG_ASPEED_KCS_IPMI_BMC=mCONFIG_NPCM7XX_KCS_IPMI_BMC=mCONFIG_IPMI_KCS_BMC_CDEV_IPMI=mCONFIG_IPMI_KCS_BMC_SERIO=mCONFIG_ASPEED_BT_IPMI_BMC=mCONFIG_IPMB_DEVICE_INTERFACE=mCONFIG_HW_RANDOM=mCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_ATMEL=mCONFIG_HW_RANDOM_BA431=mCONFIG_HW_RANDOM_BCM2835=mCONFIG_HW_RANDOM_IPROC_RNG200=mCONFIG_HW_RANDOM_IXP4XX=mCONFIG_HW_RANDOM_OMAP=mCONFIG_HW_RANDOM_OMAP3_ROM=mCONFIG_HW_RANDOM_VIRTIO=mCONFIG_HW_RANDOM_IMX_RNGC=mCONFIG_HW_RANDOM_NOMADIK=mCONFIG_HW_RANDOM_STM32=mCONFIG_HW_RANDOM_POLARFIRE_SOC=mCONFIG_HW_RANDOM_MESON=mCONFIG_HW_RANDOM_MTK=mCONFIG_HW_RANDOM_EXYNOS=mCONFIG_HW_RANDOM_NPCM=mCONFIG_HW_RANDOM_KEYSTONE=mCONFIG_HW_RANDOM_CCTRNG=mCONFIG_HW_RANDOM_XIPHERA=m
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=mCONFIG_CARDMAN_4000=mCONFIG_CARDMAN_4040=mCONFIG_SCR24X=mCONFIG_IPWIRELESS=m
# end of PCMCIA character devices
CONFIG_DEVMEM=yCONFIG_TCG_TPM=yCONFIG_TCG_TIS_CORE=mCONFIG_TCG_TIS=mCONFIG_TCG_TIS_SPI=mCONFIG_TCG_TIS_SPI_CR50=yCONFIG_TCG_TIS_I2C=mCONFIG_TCG_TIS_SYNQUACER=mCONFIG_TCG_TIS_I2C_CR50=mCONFIG_TCG_TIS_I2C_ATMEL=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_VTPM_PROXY=mCONFIG_TCG_TIS_ST33ZP24=mCONFIG_TCG_TIS_ST33ZP24_I2C=mCONFIG_TCG_TIS_ST33ZP24_SPI=mCONFIG_XILLYBUS_CLASS=mCONFIG_XILLYBUS=mCONFIG_XILLYUSB=mCONFIG_RANDOM_TRUST_CPU=yCONFIG_RANDOM_TRUST_BOOTLOADER=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=mCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#CONFIG_I2C_ARB_GPIO_CHALLENGE=mCONFIG_I2C_MUX_GPIO=mCONFIG_I2C_MUX_GPMUX=mCONFIG_I2C_MUX_LTC4306=mCONFIG_I2C_MUX_PCA9541=m
CONFIG_I2C_MUX_PCA954x=mCONFIG_I2C_MUX_PINCTRL=mCONFIG_I2C_MUX_REG=mCONFIG_I2C_DEMUX_PINCTRL=mCONFIG_I2C_MUX_MLXCPLD=m
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=mCONFIG_I2C_ALGOBIT=mCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#CONFIG_I2C_HIX5HD2=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_ALTERA=mCONFIG_I2C_ASPEED=mCONFIG_I2C_AT91=m CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL=m CONFIG_I2C_AXXIA=mCONFIG_I2C_BCM_IPROC=mCONFIG_I2C_BCM_KONA=mCONFIG_I2C_BRCMSTB=mCONFIG_I2C_CADENCE=mCONFIG_I2C_CBUS_GPIO=mCONFIG_I2C_DAVINCI=mCONFIG_I2C_DESIGNWARE_CORE=m CONFIG_I2C_DESIGNWARE_SLAVE=y CONFIG_I2C_DESIGNWARE_PLATFORM=m CONFIG_I2C_DIGICOLOR=mCONFIG_I2C_EMEV2=mCONFIG_I2C_EXYNOS5=mCONFIG_I2C_GPIO=mCONFIG_I2C_GPIO_FAULT_INJECTOR=y CONFIG_I2C_HIGHLANDER=mCONFIG_I2C_HISI=mCONFIG_I2C_IMG=mCONFIG_I2C_IMX=mCONFIG_I2C_IMX_LPI2C=mCONFIG_I2C_IOP3XX=mCONFIG_I2C_JZ4780=mCONFIG_I2C_KEMPLD=mCONFIG_I2C_LPC2K=mCONFIG_I2C_MICROCHIP_CORE=mCONFIG_I2C_MT65XX=mCONFIG_I2C_MT7621=mCONFIG_I2C_MV64XXX=mCONFIG_I2C_MXS=mCONFIG_I2C_NPCM=mCONFIG_I2C_OCORES=mCONFIG_I2C_OMAP=mCONFIG_I2C_OWL=mCONFIG_I2C_APPLE=mCONFIG_I2C_PCA_PLATFORM=mCONFIG_I2C_PNX=mCONFIG_I2C_PXA=mCONFIG_I2C_PXA_SLAVE=yCONFIG_I2C_QCOM_CCI=mCONFIG_I2C_QCOM_GENI=mCONFIG_I2C_QUP=mCONFIG_I2C_RIIC=mCONFIG_I2C_RZV2M=mCONFIG_I2C_S3C2410=mCONFIG_I2C_SH_MOBILE=mCONFIG_I2C_SIMTEC=mCONFIG_I2C_ST=mCONFIG_I2C_STM32F4=mCONFIG_I2C_STM32F7=mCONFIG_I2C_SUN6I_P2WI=mCONFIG_I2C_SYNQUACER=mCONFIG_I2C_TEGRA=mCONFIG_I2C_TEGRA_BPMP=mCONFIG_I2C_UNIPHIER=mCONFIG_I2C_UNIPHIER_F=mCONFIG_I2C_VERSATILE=mCONFIG_I2C_WMT=mCONFIG_I2C_XILINX=mCONFIG_I2C_XLP9XX=mCONFIG_I2C_RCAR=m
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_DIOLAN_U2C=mCONFIG_I2C_DLN2=mCONFIG_I2C_CP2615=mCONFIG_I2C_PARPORT=mCONFIG_I2C_ROBOTFUZZ_OSIF=mCONFIG_I2C_TAOS_EVM=mCONFIG_I2C_TINY_USB=mCONFIG_I2C_VIPERBOARD=m
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=mCONFIG_I2C_CROS_EC_TUNNEL=mCONFIG_I2C_FSI=mCONFIG_I2C_VIRTIO=m
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=mCONFIG_I2C_SLAVE=yCONFIG_I2C_SLAVE_EEPROM=mCONFIG_I2C_SLAVE_TESTUNIT=mCONFIG_I2C_DEBUG_CORE=yCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=y
# end of I2C support
CONFIG_I3C=mCONFIG_CDNS_I3C_MASTER=mCONFIG_DW_I3C_MASTER=mCONFIG_SVC_I3C_MASTER=mCONFIG_MIPI_I3C_HCI=mCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_ALTERA=mCONFIG_SPI_ALTERA_CORE=mCONFIG_SPI_ALTERA_DFL=mCONFIG_SPI_AR934X=mCONFIG_SPI_ATH79=mCONFIG_SPI_ARMADA_3700=mCONFIG_SPI_ASPEED_SMC=mCONFIG_SPI_ATMEL=mCONFIG_SPI_AT91_USART=mCONFIG_SPI_ATMEL_QUADSPI=mCONFIG_SPI_AXI_SPI_ENGINE=mCONFIG_SPI_BCM2835=mCONFIG_SPI_BCM2835AUX=mCONFIG_SPI_BCM63XX=mCONFIG_SPI_BCM63XX_HSSPI=mCONFIG_SPI_BCM_QSPI=mCONFIG_SPI_BITBANG=mCONFIG_SPI_BUTTERFLY=mCONFIG_SPI_CADENCE=mCONFIG_SPI_CADENCE_QUADSPI=mCONFIG_SPI_CADENCE_XSPI=mCONFIG_SPI_CLPS711X=mCONFIG_SPI_DESIGNWARE=mCONFIG_SPI_DW_DMA=yCONFIG_SPI_DW_MMIO=mCONFIG_SPI_DW_BT1=mCONFIG_SPI_DW_BT1_DIRMAP=yCONFIG_SPI_DLN2=mCONFIG_SPI_EP93XX=mCONFIG_SPI_FSI=mCONFIG_SPI_FSL_LPSPI=mCONFIG_SPI_FSL_QUADSPI=mCONFIG_SPI_GXP=mCONFIG_SPI_HISI_KUNPENG=mCONFIG_SPI_HISI_SFC_V3XX=mCONFIG_SPI_NXP_FLEXSPI=mCONFIG_SPI_GPIO=mCONFIG_SPI_IMG_SPFI=mCONFIG_SPI_IMX=mCONFIG_SPI_INGENIC=mCONFIG_SPI_INTEL=mCONFIG_SPI_INTEL_PLATFORM=mCONFIG_SPI_JCORE=mCONFIG_SPI_LM70_LLP=mCONFIG_SPI_LP8841_RTC=mCONFIG_SPI_FSL_LIB=mCONFIG_SPI_FSL_SPI=mCONFIG_SPI_FSL_DSPI=mCONFIG_SPI_MESON_SPIFC=mCONFIG_SPI_MICROCHIP_CORE=mCONFIG_SPI_MT65XX=mCONFIG_SPI_MT7621=mCONFIG_SPI_MTK_NOR=mCONFIG_SPI_MTK_SNFI=mCONFIG_SPI_NPCM_FIU=mCONFIG_SPI_NPCM_PSPI=mCONFIG_SPI_LANTIQ_SSC=mCONFIG_SPI_OC_TINY=mCONFIG_SPI_OMAP24XX=mCONFIG_SPI_TI_QSPI=mCONFIG_SPI_OMAP_100K=mCONFIG_SPI_ORION=mCONFIG_SPI_PIC32=mCONFIG_SPI_PIC32_SQI=mCONFIG_SPI_PXA2XX=mCONFIG_SPI_ROCKCHIP=mCONFIG_SPI_RPCIF=mCONFIG_SPI_RSPI=mCONFIG_SPI_QUP=mCONFIG_SPI_QCOM_GENI=mCONFIG_SPI_S3C64XX=mCONFIG_SPI_SC18IS602=mCONFIG_SPI_SH_MSIOF=mCONFIG_SPI_SH=mCONFIG_SPI_SH_SCI=mCONFIG_SPI_SH_HSPI=mCONFIG_SPI_SIFIVE=mCONFIG_SPI_SLAVE_MT27XX=mCONFIG_SPI_SPRD=mCONFIG_SPI_SPRD_ADI=mCONFIG_SPI_STM32=mCONFIG_SPI_STM32_QSPI=mCONFIG_SPI_ST_SSC4=mCONFIG_SPI_SUN4I=mCONFIG_SPI_SUN6I=mCONFIG_SPI_SUNPLUS_SP7021=mCONFIG_SPI_SYNQUACER=mCONFIG_SPI_MXIC=mCONFIG_SPI_TEGRA210_QUAD=mCONFIG_SPI_TEGRA114=mCONFIG_SPI_TEGRA20_SFLASH=mCONFIG_SPI_TEGRA20_SLINK=mCONFIG_SPI_UNIPHIER=mCONFIG_SPI_XCOMM=mCONFIG_SPI_XILINX=mCONFIG_SPI_XLP=mCONFIG_SPI_XTENSA_XTFPGA=mCONFIG_SPI_ZYNQ_QSPI=mCONFIG_SPI_ZYNQMP_GQSPI=mCONFIG_SPI_AMD=m
#
# SPI Multiplexer support
#CONFIG_SPI_MUX=m
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=mCONFIG_SPI_LOOPBACK_TEST=mCONFIG_SPI_TLE62X0=mCONFIG_SPI_SLAVE=yCONFIG_SPI_SLAVE_TIME=mCONFIG_SPI_SLAVE_SYSTEM_CONTROL=mCONFIG_SPI_DYNAMIC=yCONFIG_SPMI=mCONFIG_SPMI_HISI3670=mCONFIG_SPMI_MSM_PMIC_ARB=mCONFIG_SPMI_MTK_PMIF=mCONFIG_HSI=mCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=mCONFIG_PPS=mCONFIG_PPS_DEBUG=y
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=mCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=mCONFIG_PPS_CLIENT_GPIO=m
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=mCONFIG_PTP_1588_CLOCK_OPTIONAL=mCONFIG_PTP_1588_CLOCK_DTE=mCONFIG_PTP_1588_CLOCK_QORIQ=mCONFIG_DP83640_PHY=mCONFIG_PTP_1588_CLOCK_INES=mCONFIG_PTP_1588_CLOCK_IDT82P33=mCONFIG_PTP_1588_CLOCK_IDTCM=m
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_GENERIC_PINCTRL_GROUPS=yCONFIG_PINMUX=yCONFIG_GENERIC_PINMUX_FUNCTIONS=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=yCONFIG_PINCTRL_AMD=yCONFIG_PINCTRL_AT91PIO4=yCONFIG_PINCTRL_AXP209=mCONFIG_PINCTRL_BM1880=yCONFIG_PINCTRL_DA850_PUPD=mCONFIG_PINCTRL_DA9062=mCONFIG_PINCTRL_EQUILIBRIUM=mCONFIG_PINCTRL_INGENIC=yCONFIG_PINCTRL_LPC18XX=yCONFIG_PINCTRL_MCP23S08_I2C=mCONFIG_PINCTRL_MCP23S08_SPI=mCONFIG_PINCTRL_MCP23S08=mCONFIG_PINCTRL_MICROCHIP_SGPIO=yCONFIG_PINCTRL_OCELOT=mCONFIG_PINCTRL_PISTACHIO=yCONFIG_PINCTRL_RK805=mCONFIG_PINCTRL_ROCKCHIP=mCONFIG_PINCTRL_SINGLE=mCONFIG_PINCTRL_STARFIVE=mCONFIG_PINCTRL_STMFX=mCONFIG_PINCTRL_OWL=yCONFIG_PINCTRL_S500=yCONFIG_PINCTRL_S700=yCONFIG_PINCTRL_S900=yCONFIG_PINCTRL_ASPEED=yCONFIG_PINCTRL_ASPEED_G4=yCONFIG_PINCTRL_ASPEED_G5=yCONFIG_PINCTRL_ASPEED_G6=yCONFIG_PINCTRL_BCM281XX=yCONFIG_PINCTRL_BCM2835=mCONFIG_PINCTRL_BCM4908=mCONFIG_PINCTRL_BCM63XX=yCONFIG_PINCTRL_BCM6318=yCONFIG_PINCTRL_BCM6328=yCONFIG_PINCTRL_BCM6358=yCONFIG_PINCTRL_BCM6362=yCONFIG_PINCTRL_BCM6368=yCONFIG_PINCTRL_BCM63268=yCONFIG_PINCTRL_IPROC_GPIO=yCONFIG_PINCTRL_CYGNUS_MUX=yCONFIG_PINCTRL_NS=yCONFIG_PINCTRL_NSP_GPIO=yCONFIG_PINCTRL_NS2_MUX=yCONFIG_PINCTRL_NSP_MUX=yCONFIG_PINCTRL_BERLIN=yCONFIG_PINCTRL_AS370=yCONFIG_PINCTRL_BERLIN_BG4CT=yCONFIG_PINCTRL_MADERA=mCONFIG_PINCTRL_CS47L15=yCONFIG_PINCTRL_CS47L35=yCONFIG_PINCTRL_CS47L85=yCONFIG_PINCTRL_CS47L90=yCONFIG_PINCTRL_CS47L92=y
#
# Intel pinctrl drivers
#
# end of Intel pinctrl drivers
#
# MediaTek pinctrl drivers
#CONFIG_EINT_MTK=yCONFIG_PINCTRL_MTK=yCONFIG_PINCTRL_MTK_V2=yCONFIG_PINCTRL_MTK_MOORE=yCONFIG_PINCTRL_MTK_PARIS=yCONFIG_PINCTRL_MT2701=yCONFIG_PINCTRL_MT7623=yCONFIG_PINCTRL_MT7629=yCONFIG_PINCTRL_MT8135=yCONFIG_PINCTRL_MT8127=yCONFIG_PINCTRL_MT2712=yCONFIG_PINCTRL_MT6765=mCONFIG_PINCTRL_MT6779=mCONFIG_PINCTRL_MT6795=yCONFIG_PINCTRL_MT6797=yCONFIG_PINCTRL_MT7622=yCONFIG_PINCTRL_MT7986=yCONFIG_PINCTRL_MT8167=yCONFIG_PINCTRL_MT8173=yCONFIG_PINCTRL_MT8183=yCONFIG_PINCTRL_MT8186=yCONFIG_PINCTRL_MT8192=yCONFIG_PINCTRL_MT8195=yCONFIG_PINCTRL_MT8365=yCONFIG_PINCTRL_MT8516=yCONFIG_PINCTRL_MT6397=y
# end of MediaTek pinctrl drivers
CONFIG_PINCTRL_MESON=mCONFIG_PINCTRL_WPCM450=mCONFIG_PINCTRL_NPCM7XX=yCONFIG_PINCTRL_PXA=yCONFIG_PINCTRL_PXA25X=mCONFIG_PINCTRL_PXA27X=mCONFIG_PINCTRL_MSM=mCONFIG_PINCTRL_APQ8064=mCONFIG_PINCTRL_APQ8084=mCONFIG_PINCTRL_IPQ4019=mCONFIG_PINCTRL_IPQ8064=mCONFIG_PINCTRL_IPQ8074=mCONFIG_PINCTRL_IPQ6018=mCONFIG_PINCTRL_MSM8226=mCONFIG_PINCTRL_MSM8660=mCONFIG_PINCTRL_MSM8960=mCONFIG_PINCTRL_MDM9607=mCONFIG_PINCTRL_MDM9615=mCONFIG_PINCTRL_MSM8X74=mCONFIG_PINCTRL_MSM8909=mCONFIG_PINCTRL_MSM8916=mCONFIG_PINCTRL_MSM8953=mCONFIG_PINCTRL_MSM8976=mCONFIG_PINCTRL_MSM8994=mCONFIG_PINCTRL_MSM8996=mCONFIG_PINCTRL_MSM8998=mCONFIG_PINCTRL_QCM2290=mCONFIG_PINCTRL_QCS404=mCONFIG_PINCTRL_QCOM_SPMI_PMIC=mCONFIG_PINCTRL_QCOM_SSBI_PMIC=mCONFIG_PINCTRL_SC7180=mCONFIG_PINCTRL_SC7280=mCONFIG_PINCTRL_SC7280_LPASS_LPI=mCONFIG_PINCTRL_SC8180X=mCONFIG_PINCTRL_SC8280XP=mCONFIG_PINCTRL_SDM660=mCONFIG_PINCTRL_SDM845=mCONFIG_PINCTRL_SDX55=mCONFIG_PINCTRL_SM6115=mCONFIG_PINCTRL_SM6125=mCONFIG_PINCTRL_SM6350=mCONFIG_PINCTRL_SM6375=mCONFIG_PINCTRL_SDX65=mCONFIG_PINCTRL_SM8150=mCONFIG_PINCTRL_SM8250=mCONFIG_PINCTRL_SM8250_LPASS_LPI=mCONFIG_PINCTRL_SM8350=mCONFIG_PINCTRL_SM8450=mCONFIG_PINCTRL_LPASS_LPI=m
#
# Renesas pinctrl drivers
#CONFIG_PINCTRL_RENESAS=yCONFIG_PINCTRL_SH_PFC=yCONFIG_PINCTRL_SH_PFC_GPIO=yCONFIG_PINCTRL_SH_FUNC_GPIO=yCONFIG_PINCTRL_PFC_EMEV2=yCONFIG_PINCTRL_PFC_R8A77995=yCONFIG_PINCTRL_PFC_R8A7794=yCONFIG_PINCTRL_PFC_R8A77990=yCONFIG_PINCTRL_PFC_R8A7779=yCONFIG_PINCTRL_PFC_R8A7790=yCONFIG_PINCTRL_PFC_R8A77950=yCONFIG_PINCTRL_PFC_R8A77951=yCONFIG_PINCTRL_PFC_R8A7778=yCONFIG_PINCTRL_PFC_R8A7793=yCONFIG_PINCTRL_PFC_R8A7791=yCONFIG_PINCTRL_PFC_R8A77965=yCONFIG_PINCTRL_PFC_R8A77960=yCONFIG_PINCTRL_PFC_R8A77961=yCONFIG_PINCTRL_PFC_R8A779F0=yCONFIG_PINCTRL_PFC_R8A7792=yCONFIG_PINCTRL_PFC_R8A77980=yCONFIG_PINCTRL_PFC_R8A77970=yCONFIG_PINCTRL_PFC_R8A779A0=yCONFIG_PINCTRL_PFC_R8A779G0=yCONFIG_PINCTRL_PFC_R8A7740=yCONFIG_PINCTRL_PFC_R8A73A4=yCONFIG_PINCTRL_RZA1=yCONFIG_PINCTRL_RZA2=yCONFIG_PINCTRL_RZG2L=yCONFIG_PINCTRL_PFC_R8A77470=yCONFIG_PINCTRL_PFC_R8A7745=yCONFIG_PINCTRL_PFC_R8A7742=yCONFIG_PINCTRL_PFC_R8A7743=yCONFIG_PINCTRL_PFC_R8A7744=yCONFIG_PINCTRL_PFC_R8A774C0=yCONFIG_PINCTRL_PFC_R8A774E1=yCONFIG_PINCTRL_PFC_R8A774A1=yCONFIG_PINCTRL_PFC_R8A774B1=yCONFIG_PINCTRL_RZN1=yCONFIG_PINCTRL_RZV2M=yCONFIG_PINCTRL_PFC_SH7203=yCONFIG_PINCTRL_PFC_SH7264=yCONFIG_PINCTRL_PFC_SH7269=yCONFIG_PINCTRL_PFC_SH7720=yCONFIG_PINCTRL_PFC_SH7722=yCONFIG_PINCTRL_PFC_SH7734=yCONFIG_PINCTRL_PFC_SH7757=yCONFIG_PINCTRL_PFC_SH7785=yCONFIG_PINCTRL_PFC_SH7786=yCONFIG_PINCTRL_PFC_SH73A0=yCONFIG_PINCTRL_PFC_SH7723=yCONFIG_PINCTRL_PFC_SH7724=yCONFIG_PINCTRL_PFC_SHX3=y
# end of Renesas pinctrl drivers
CONFIG_PINCTRL_SAMSUNG=yCONFIG_PINCTRL_EXYNOS=yCONFIG_PINCTRL_EXYNOS_ARM=yCONFIG_PINCTRL_EXYNOS_ARM64=yCONFIG_PINCTRL_S3C24XX=yCONFIG_PINCTRL_S3C64XX=yCONFIG_PINCTRL_SPRD=mCONFIG_PINCTRL_SPRD_SC9860=mCONFIG_PINCTRL_STM32=yCONFIG_PINCTRL_STM32F429=yCONFIG_PINCTRL_STM32F469=yCONFIG_PINCTRL_STM32F746=yCONFIG_PINCTRL_STM32F769=yCONFIG_PINCTRL_STM32H743=yCONFIG_PINCTRL_STM32MP135=yCONFIG_PINCTRL_STM32MP157=yCONFIG_PINCTRL_TI_IODELAY=mCONFIG_PINCTRL_UNIPHIER=yCONFIG_PINCTRL_UNIPHIER_LD4=yCONFIG_PINCTRL_UNIPHIER_PRO4=yCONFIG_PINCTRL_UNIPHIER_SLD8=yCONFIG_PINCTRL_UNIPHIER_PRO5=yCONFIG_PINCTRL_UNIPHIER_PXS2=yCONFIG_PINCTRL_UNIPHIER_LD6B=yCONFIG_PINCTRL_UNIPHIER_LD11=yCONFIG_PINCTRL_UNIPHIER_LD20=yCONFIG_PINCTRL_UNIPHIER_PXS3=yCONFIG_PINCTRL_UNIPHIER_NX1=yCONFIG_PINCTRL_VISCONTI=yCONFIG_PINCTRL_TMPV7700=yCONFIG_ARCH_HAVE_CUSTOM_GPIO_H=yCONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_OF_GPIO=yCONFIG_GPIOLIB_IRQCHIP=yCONFIG_DEBUG_GPIO=yCONFIG_GPIO_SYSFS=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=yCONFIG_GPIO_REGMAP=yCONFIG_GPIO_MAX730X=m
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_74XX_MMIO=mCONFIG_GPIO_ALTERA=mCONFIG_GPIO_ASPEED=mCONFIG_GPIO_ASPEED_SGPIO=yCONFIG_GPIO_ATH79=mCONFIG_GPIO_RASPBERRYPI_EXP=mCONFIG_GPIO_BCM_KONA=yCONFIG_GPIO_BCM_XGS_IPROC=mCONFIG_GPIO_BRCMSTB=mCONFIG_GPIO_CADENCE=mCONFIG_GPIO_CLPS711X=mCONFIG_GPIO_DWAPB=mCONFIG_GPIO_EIC_SPRD=mCONFIG_GPIO_EM=mCONFIG_GPIO_FTGPIO010=yCONFIG_GPIO_GENERIC_PLATFORM=mCONFIG_GPIO_GRGPIO=mCONFIG_GPIO_HISI=mCONFIG_GPIO_HLWD=mCONFIG_GPIO_IOP=mCONFIG_GPIO_LOGICVC=mCONFIG_GPIO_LPC18XX=mCONFIG_GPIO_LPC32XX=mCONFIG_GPIO_MB86S7X=mCONFIG_GPIO_MENZ127=mCONFIG_GPIO_MPC8XXX=yCONFIG_GPIO_MT7621=yCONFIG_GPIO_MXC=mCONFIG_GPIO_MXS=yCONFIG_GPIO_PMIC_EIC_SPRD=mCONFIG_GPIO_PXA=yCONFIG_GPIO_RCAR=mCONFIG_GPIO_RDA=yCONFIG_GPIO_ROCKCHIP=mCONFIG_GPIO_SAMA5D2_PIOBU=mCONFIG_GPIO_SIFIVE=yCONFIG_GPIO_SIOX=mCONFIG_GPIO_SNPS_CREG=yCONFIG_GPIO_SPRD=mCONFIG_GPIO_STP_XWAY=yCONFIG_GPIO_SYSCON=mCONFIG_GPIO_TEGRA=mCONFIG_GPIO_TEGRA186=mCONFIG_GPIO_TS4800=mCONFIG_GPIO_UNIPHIER=mCONFIG_GPIO_VISCONTI=mCONFIG_GPIO_WCD934X=mCONFIG_GPIO_XGENE_SB=mCONFIG_GPIO_XILINX=mCONFIG_GPIO_XLP=mCONFIG_GPIO_AMD_FCH=mCONFIG_GPIO_IDT3243X=m
# end of Memory mapped GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_ADP5588=mCONFIG_GPIO_ADNP=mCONFIG_GPIO_GW_PLD=mCONFIG_GPIO_MAX7300=mCONFIG_GPIO_MAX732X=mCONFIG_GPIO_PCA953X=mCONFIG_GPIO_PCA953X_IRQ=yCONFIG_GPIO_PCA9570=mCONFIG_GPIO_PCF857X=mCONFIG_GPIO_TPIC2810=mCONFIG_GPIO_TS4900=m
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#CONFIG_GPIO_ARIZONA=mCONFIG_GPIO_BD9571MWV=mCONFIG_GPIO_DA9052=mCONFIG_GPIO_DLN2=mCONFIG_GPIO_KEMPLD=mCONFIG_GPIO_LP3943=mCONFIG_GPIO_LP873X=mCONFIG_GPIO_LP87565=mCONFIG_GPIO_MADERA=mCONFIG_GPIO_MAX77650=mCONFIG_GPIO_SL28CPLD=mCONFIG_GPIO_STMPE=yCONFIG_GPIO_TPS65086=mCONFIG_GPIO_TPS65218=mCONFIG_GPIO_TPS65912=mCONFIG_GPIO_UCB1400=mCONFIG_GPIO_WM831X=mCONFIG_GPIO_WM8994=m
# end of MFD GPIO expanders
#
# SPI GPIO expanders
#CONFIG_GPIO_74X164=mCONFIG_GPIO_MAX3191X=mCONFIG_GPIO_MAX7301=mCONFIG_GPIO_MC33880=mCONFIG_GPIO_PISOSR=mCONFIG_GPIO_XRA1403=mCONFIG_GPIO_MOXTET=m
# end of SPI GPIO expanders
#
# USB GPIO expanders
#CONFIG_GPIO_VIPERBOARD=m
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#CONFIG_GPIO_AGGREGATOR=mCONFIG_GPIO_MOCKUP=mCONFIG_GPIO_VIRTIO=mCONFIG_GPIO_SIM=m
# end of Virtual GPIO drivers
CONFIG_W1=mCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_DS2490=mCONFIG_W1_MASTER_DS2482=mCONFIG_W1_MASTER_MXC=mCONFIG_W1_MASTER_DS1WM=mCONFIG_W1_MASTER_GPIO=mCONFIG_W1_MASTER_SGI=m
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=mCONFIG_W1_SLAVE_SMEM=mCONFIG_W1_SLAVE_DS2405=mCONFIG_W1_SLAVE_DS2408=mCONFIG_W1_SLAVE_DS2408_READBACK=yCONFIG_W1_SLAVE_DS2413=mCONFIG_W1_SLAVE_DS2406=mCONFIG_W1_SLAVE_DS2423=mCONFIG_W1_SLAVE_DS2805=mCONFIG_W1_SLAVE_DS2430=mCONFIG_W1_SLAVE_DS2431=mCONFIG_W1_SLAVE_DS2433=mCONFIG_W1_SLAVE_DS2433_CRC=yCONFIG_W1_SLAVE_DS2438=mCONFIG_W1_SLAVE_DS250X=mCONFIG_W1_SLAVE_DS2780=mCONFIG_W1_SLAVE_DS2781=mCONFIG_W1_SLAVE_DS28E04=mCONFIG_W1_SLAVE_DS28E17=m
# end of 1-wire Slaves
CONFIG_POWER_RESET=yCONFIG_POWER_RESET_ATC260X=mCONFIG_POWER_RESET_BRCMKONA=yCONFIG_POWER_RESET_BRCMSTB=yCONFIG_POWER_RESET_GEMINI_POWEROFF=yCONFIG_POWER_RESET_GPIO=yCONFIG_POWER_RESET_GPIO_RESTART=yCONFIG_POWER_RESET_LINKSTATION=mCONFIG_POWER_RESET_OCELOT_RESET=yCONFIG_POWER_RESET_LTC2952=yCONFIG_POWER_RESET_MT6323=yCONFIG_POWER_RESET_REGULATOR=yCONFIG_POWER_RESET_RESTART=yCONFIG_POWER_RESET_TPS65086=yCONFIG_POWER_RESET_KEYSTONE=yCONFIG_POWER_RESET_SYSCON=yCONFIG_POWER_RESET_SYSCON_POWEROFF=yCONFIG_POWER_RESET_RMOBILE=mCONFIG_REBOOT_MODE=mCONFIG_SYSCON_REBOOT_MODE=mCONFIG_POWER_RESET_SC27XX=mCONFIG_NVMEM_REBOOT_MODE=mCONFIG_POWER_SUPPLY=yCONFIG_POWER_SUPPLY_DEBUG=yCONFIG_PDA_POWER=mCONFIG_GENERIC_ADC_BATTERY=mCONFIG_IP5XXX_POWER=mCONFIG_WM831X_BACKUP=mCONFIG_WM831X_POWER=mCONFIG_TEST_POWER=mCONFIG_CHARGER_ADP5061=mCONFIG_BATTERY_ACT8945A=mCONFIG_BATTERY_CPCAP=mCONFIG_BATTERY_CW2015=mCONFIG_BATTERY_DS2760=mCONFIG_BATTERY_DS2780=mCONFIG_BATTERY_DS2781=mCONFIG_BATTERY_DS2782=mCONFIG_BATTERY_LEGO_EV3=mCONFIG_BATTERY_OLPC=mCONFIG_BATTERY_SAMSUNG_SDI=yCONFIG_BATTERY_INGENIC=mCONFIG_BATTERY_SBS=mCONFIG_CHARGER_SBS=mCONFIG_MANAGER_SBS=mCONFIG_BATTERY_BQ27XXX=mCONFIG_BATTERY_BQ27XXX_I2C=mCONFIG_BATTERY_BQ27XXX_HDQ=mCONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=yCONFIG_BATTERY_DA9052=mCONFIG_CHARGER_DA9150=mCONFIG_BATTERY_DA9150=mCONFIG_CHARGER_AXP20X=mCONFIG_BATTERY_AXP20X=mCONFIG_AXP20X_POWER=mCONFIG_BATTERY_MAX17040=mCONFIG_BATTERY_MAX17042=mCONFIG_BATTERY_MAX1721X=mCONFIG_CHARGER_PCF50633=mCONFIG_CHARGER_CPCAP=mCONFIG_CHARGER_ISP1704=mCONFIG_CHARGER_MAX8903=mCONFIG_CHARGER_LP8727=mCONFIG_CHARGER_GPIO=mCONFIG_CHARGER_MANAGER=mCONFIG_CHARGER_LT3651=mCONFIG_CHARGER_LTC4162L=mCONFIG_CHARGER_MAX14577=mCONFIG_CHARGER_DETECTOR_MAX14656=mCONFIG_CHARGER_MAX77650=mCONFIG_CHARGER_MAX77693=mCONFIG_CHARGER_MAX77976=mCONFIG_CHARGER_MP2629=mCONFIG_CHARGER_MT6360=mCONFIG_CHARGER_QCOM_SMBB=mCONFIG_CHARGER_BQ2415X=mCONFIG_CHARGER_BQ24190=mCONFIG_CHARGER_BQ24257=mCONFIG_CHARGER_BQ24735=mCONFIG_CHARGER_BQ2515X=mCONFIG_CHARGER_BQ25890=mCONFIG_CHARGER_BQ25980=mCONFIG_CHARGER_BQ256XX=mCONFIG_CHARGER_SMB347=mCONFIG_CHARGER_TPS65217=mCONFIG_BATTERY_GAUGE_LTC2941=mCONFIG_BATTERY_GOLDFISH=mCONFIG_BATTERY_RT5033=mCONFIG_CHARGER_RT9455=mCONFIG_CHARGER_CROS_USBPD=mCONFIG_CHARGER_CROS_PCHG=mCONFIG_CHARGER_SC2731=mCONFIG_FUEL_GAUGE_SC27XX=mCONFIG_CHARGER_UCS1002=mCONFIG_CHARGER_BD99954=mCONFIG_RN5T618_POWER=mCONFIG_BATTERY_ACER_A500=mCONFIG_BATTERY_UG3105=mCONFIG_HWMON=mCONFIG_HWMON_VID=mCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_AD7314=m CONFIG_SENSORS_AD7414=m CONFIG_SENSORS_AD7418=m CONFIG_SENSORS_ADM1025=m CONFIG_SENSORS_ADM1026=m CONFIG_SENSORS_ADM1029=m CONFIG_SENSORS_ADM1031=m CONFIG_SENSORS_ADM1177=m CONFIG_SENSORS_ADM9240=m CONFIG_SENSORS_ADT7X10=m CONFIG_SENSORS_ADT7310=m CONFIG_SENSORS_ADT7410=m CONFIG_SENSORS_ADT7411=m CONFIG_SENSORS_ADT7462=m CONFIG_SENSORS_ADT7470=m CONFIG_SENSORS_ADT7475=m CONFIG_SENSORS_AHT10=m CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=m CONFIG_SENSORS_AS370=m CONFIG_SENSORS_ASC7621=m CONFIG_SENSORS_AXI_FAN_CONTROL=m CONFIG_SENSORS_ARM_SCMI=m CONFIG_SENSORS_ARM_SCPI=m CONFIG_SENSORS_ASB100=m CONFIG_SENSORS_ASPEED=m CONFIG_SENSORS_ATXP1=m CONFIG_SENSORS_BT1_PVT=m CONFIG_SENSORS_BT1_PVT_ALARMS=y CONFIG_SENSORS_CORSAIR_CPRO=m CONFIG_SENSORS_CORSAIR_PSU=m CONFIG_SENSORS_DRIVETEMP=m CONFIG_SENSORS_DS620=m CONFIG_SENSORS_DS1621=m CONFIG_SENSORS_DA9052_ADC=m CONFIG_SENSORS_SPARX5=m CONFIG_SENSORS_F71805F=m CONFIG_SENSORS_F71882FG=m CONFIG_SENSORS_F75375S=m CONFIG_SENSORS_GSC=m CONFIG_SENSORS_MC13783_ADC=m CONFIG_SENSORS_FSCHMD=m CONFIG_SENSORS_FTSTEUTATES=m CONFIG_SENSORS_GL518SM=m CONFIG_SENSORS_GL520SM=m CONFIG_SENSORS_G760A=m CONFIG_SENSORS_G762=m CONFIG_SENSORS_GPIO_FAN=m CONFIG_SENSORS_HIH6130=m CONFIG_SENSORS_IBMAEM=m CONFIG_SENSORS_IBMPEX=m CONFIG_SENSORS_IIO_HWMON=m CONFIG_SENSORS_IT87=m CONFIG_SENSORS_JC42=m CONFIG_SENSORS_POWR1220=m CONFIG_SENSORS_LAN966X=m CONFIG_SENSORS_LINEAGE=m CONFIG_SENSORS_LTC2945=m CONFIG_SENSORS_LTC2947=m CONFIG_SENSORS_LTC2947_I2C=m CONFIG_SENSORS_LTC2947_SPI=m CONFIG_SENSORS_LTC2990=m CONFIG_SENSORS_LTC2992=m CONFIG_SENSORS_LTC4151=m CONFIG_SENSORS_LTC4215=m CONFIG_SENSORS_LTC4222=m CONFIG_SENSORS_LTC4245=m CONFIG_SENSORS_LTC4260=m CONFIG_SENSORS_LTC4261=m CONFIG_SENSORS_MAX1111=m CONFIG_SENSORS_MAX127=m CONFIG_SENSORS_MAX16065=m CONFIG_SENSORS_MAX1619=m CONFIG_SENSORS_MAX1668=m CONFIG_SENSORS_MAX197=m CONFIG_SENSORS_MAX31722=m CONFIG_SENSORS_MAX31730=m CONFIG_SENSORS_MAX6620=m CONFIG_SENSORS_MAX6621=m CONFIG_SENSORS_MAX6639=m CONFIG_SENSORS_MAX6650=m CONFIG_SENSORS_MAX6697=m CONFIG_SENSORS_MAX31790=m CONFIG_SENSORS_MCP3021=m CONFIG_SENSORS_MLXREG_FAN=m CONFIG_SENSORS_TC654=m CONFIG_SENSORS_TPS23861=m CONFIG_SENSORS_MENF21BMC_HWMON=m CONFIG_SENSORS_MR75203=m CONFIG_SENSORS_ADCXX=m CONFIG_SENSORS_LM63=m CONFIG_SENSORS_LM70=m CONFIG_SENSORS_LM73=m CONFIG_SENSORS_LM75=m CONFIG_SENSORS_LM77=m CONFIG_SENSORS_LM78=m CONFIG_SENSORS_LM80=m CONFIG_SENSORS_LM83=m CONFIG_SENSORS_LM85=m CONFIG_SENSORS_LM87=m CONFIG_SENSORS_LM90=m CONFIG_SENSORS_LM92=m CONFIG_SENSORS_LM93=m CONFIG_SENSORS_LM95234=m CONFIG_SENSORS_LM95241=m CONFIG_SENSORS_LM95245=m CONFIG_SENSORS_PC87360=m CONFIG_SENSORS_PC87427=m CONFIG_SENSORS_NTC_THERMISTOR=m CONFIG_SENSORS_NCT6683=m CONFIG_SENSORS_NCT6775_CORE=m CONFIG_SENSORS_NCT6775=m CONFIG_SENSORS_NCT6775_I2C=m CONFIG_SENSORS_NCT7802=m CONFIG_SENSORS_NCT7904=m CONFIG_SENSORS_NPCM7XX=m CONFIG_SENSORS_NSA320=m CONFIG_SENSORS_NZXT_KRAKEN2=m CONFIG_SENSORS_NZXT_SMART2=m CONFIG_SENSORS_OCC_P8_I2C=m CONFIG_SENSORS_OCC_P9_SBE=m CONFIG_SENSORS_OCC=m CONFIG_SENSORS_PCF8591=m CONFIG_SENSORS_PECI_CPUTEMP=m CONFIG_SENSORS_PECI_DIMMTEMP=m CONFIG_SENSORS_PECI=mCONFIG_PMBUS=mCONFIG_SENSORS_PMBUS=m CONFIG_SENSORS_ADM1266=m CONFIG_SENSORS_ADM1275=m CONFIG_SENSORS_BEL_PFE=m CONFIG_SENSORS_BPA_RS600=m CONFIG_SENSORS_DELTA_AHE50DC_FAN=m CONFIG_SENSORS_FSP_3Y=m CONFIG_SENSORS_IBM_CFFPS=m CONFIG_SENSORS_DPS920AB=m CONFIG_SENSORS_INSPUR_IPSPS=m CONFIG_SENSORS_IR35221=m CONFIG_SENSORS_IR36021=m CONFIG_SENSORS_IR38064=m CONFIG_SENSORS_IR38064_REGULATOR=y CONFIG_SENSORS_IRPS5401=m CONFIG_SENSORS_ISL68137=m CONFIG_SENSORS_LM25066=m CONFIG_SENSORS_LM25066_REGULATOR=y CONFIG_SENSORS_LT7182S=m CONFIG_SENSORS_LTC2978=m CONFIG_SENSORS_LTC2978_REGULATOR=y CONFIG_SENSORS_LTC3815=m CONFIG_SENSORS_MAX15301=m CONFIG_SENSORS_MAX16064=m CONFIG_SENSORS_MAX16601=m CONFIG_SENSORS_MAX20730=m CONFIG_SENSORS_MAX20751=m CONFIG_SENSORS_MAX31785=m CONFIG_SENSORS_MAX34440=m CONFIG_SENSORS_MAX8688=m CONFIG_SENSORS_MP2888=m CONFIG_SENSORS_MP2975=m CONFIG_SENSORS_MP5023=m CONFIG_SENSORS_PIM4328=m CONFIG_SENSORS_PLI1209BC=m CONFIG_SENSORS_PLI1209BC_REGULATOR=y CONFIG_SENSORS_PM6764TR=m CONFIG_SENSORS_PXE1610=m CONFIG_SENSORS_Q54SJ108A2=m CONFIG_SENSORS_STPDDC60=m CONFIG_SENSORS_TPS40422=m CONFIG_SENSORS_TPS53679=m CONFIG_SENSORS_UCD9000=m CONFIG_SENSORS_UCD9200=m CONFIG_SENSORS_XDPE152=m CONFIG_SENSORS_XDPE122=m CONFIG_SENSORS_XDPE122_REGULATOR=y CONFIG_SENSORS_ZL6100=m CONFIG_SENSORS_PWM_FAN=m CONFIG_SENSORS_RASPBERRYPI_HWMON=m CONFIG_SENSORS_SL28CPLD=m CONFIG_SENSORS_SBTSI=m CONFIG_SENSORS_SBRMI=m CONFIG_SENSORS_SHT15=m CONFIG_SENSORS_SHT21=m CONFIG_SENSORS_SHT3x=m CONFIG_SENSORS_SHT4x=m CONFIG_SENSORS_SHTC1=m CONFIG_SENSORS_SY7636A=m CONFIG_SENSORS_DME1737=m CONFIG_SENSORS_EMC1403=m CONFIG_SENSORS_EMC2103=m CONFIG_SENSORS_EMC6W201=m CONFIG_SENSORS_SMSC47M1=m CONFIG_SENSORS_SMSC47M192=m CONFIG_SENSORS_SMSC47B397=m CONFIG_SENSORS_SCH56XX_COMMON=m CONFIG_SENSORS_SCH5627=m CONFIG_SENSORS_SCH5636=m CONFIG_SENSORS_STTS751=m CONFIG_SENSORS_SMM665=m CONFIG_SENSORS_ADC128D818=m CONFIG_SENSORS_ADS7828=m CONFIG_SENSORS_ADS7871=m CONFIG_SENSORS_AMC6821=m CONFIG_SENSORS_INA209=m CONFIG_SENSORS_INA2XX=m CONFIG_SENSORS_INA238=m CONFIG_SENSORS_INA3221=m CONFIG_SENSORS_TC74=m CONFIG_SENSORS_THMC50=m CONFIG_SENSORS_TMP102=m CONFIG_SENSORS_TMP103=m CONFIG_SENSORS_TMP108=m CONFIG_SENSORS_TMP401=m CONFIG_SENSORS_TMP421=m CONFIG_SENSORS_TMP464=m CONFIG_SENSORS_TMP513=m CONFIG_SENSORS_VT1211=m CONFIG_SENSORS_W83773G=m CONFIG_SENSORS_W83781D=m CONFIG_SENSORS_W83791D=m CONFIG_SENSORS_W83792D=m CONFIG_SENSORS_W83793=m CONFIG_SENSORS_W83795=m CONFIG_SENSORS_W83795_FANCTRL=y CONFIG_SENSORS_W83L785TS=m CONFIG_SENSORS_W83L786NG=m CONFIG_SENSORS_W83627HF=m CONFIG_SENSORS_W83627EHF=m CONFIG_SENSORS_WM831X=m CONFIG_SENSORS_INTEL_M10_BMC_HWMON=m CONFIG_THERMAL=yCONFIG_THERMAL_NETLINK=y CONFIG_THERMAL_STATISTICS=y CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_OF=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set CONFIG_THERMAL_GOV_FAIR_SHARE=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_CPU_THERMAL=y CONFIG_CPU_FREQ_THERMAL=y CONFIG_CPU_IDLE_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_THERMAL_EMULATION=y CONFIG_THERMAL_MMIO=m CONFIG_HISI_THERMAL=mCONFIG_IMX_THERMAL=m CONFIG_IMX_SC_THERMAL=m CONFIG_IMX8MM_THERMAL=m CONFIG_K3_THERMAL=mCONFIG_QORIQ_THERMAL=m CONFIG_SPEAR_THERMAL=m CONFIG_SUN8I_THERMAL=m CONFIG_ROCKCHIP_THERMAL=m CONFIG_RCAR_THERMAL=m CONFIG_RCAR_GEN3_THERMAL=m CONFIG_RZG2L_THERMAL=m CONFIG_KIRKWOOD_THERMAL=m CONFIG_DOVE_THERMAL=m CONFIG_ARMADA_THERMAL=m CONFIG_DA9062_THERMAL=m CONFIG_MTK_THERMAL=m
#
# Intel thermal drivers
#
#
# ACPI INT340X thermal drivers
#
# end of ACPI INT340X thermal drivers # end of Intel thermal drivers
#
# Broadcom thermal drivers
#CONFIG_BCM2711_THERMAL=mCONFIG_BCM2835_THERMAL=mCONFIG_BRCMSTB_THERMAL=mCONFIG_BCM_NS_THERMAL=mCONFIG_BCM_SR_THERMAL=m
# end of Broadcom thermal drivers
#
# Texas Instruments thermal drivers
#CONFIG_TI_SOC_THERMAL=mCONFIG_TI_THERMAL=yCONFIG_OMAP3_THERMAL=yCONFIG_OMAP4_THERMAL=yCONFIG_OMAP5_THERMAL=yCONFIG_DRA752_THERMAL=y
# end of Texas Instruments thermal drivers
#
# Samsung thermal drivers
#CONFIG_EXYNOS_THERMAL=m
# end of Samsung thermal drivers
#
# NVIDIA Tegra thermal drivers
#CONFIG_TEGRA_SOCTHERM=mCONFIG_TEGRA_BPMP_THERMAL=mCONFIG_TEGRA30_TSENSOR=m
# end of NVIDIA Tegra thermal drivers
CONFIG_GENERIC_ADC_THERMAL=m
#
# Qualcomm thermal drivers
#CONFIG_QCOM_TSENS=mCONFIG_QCOM_SPMI_ADC_TM5=mCONFIG_QCOM_SPMI_TEMP_ALARM=m
# end of Qualcomm thermal drivers
CONFIG_UNIPHIER_THERMAL=mCONFIG_SPRD_THERMAL=mCONFIG_KHADAS_MCU_FAN_THERMAL=mCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=yCONFIG_WATCHDOG_NOWAYOUT=yCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=yCONFIG_WATCHDOG_HRTIMER_PRETIMEOUT=y
#
# Watchdog Pretimeout Governors
#CONFIG_WATCHDOG_PRETIMEOUT_GOV=y CONFIG_WATCHDOG_PRETIMEOUT_GOV_SEL=m CONFIG_WATCHDOG_PRETIMEOUT_GOV_NOOP=m CONFIG_WATCHDOG_PRETIMEOUT_GOV_PANIC=m
# CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_NOOP is not set CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_SOFT_WATCHDOG_PRETIMEOUT=yCONFIG_DA9052_WATCHDOG=mCONFIG_DA9055_WATCHDOG=mCONFIG_DA9063_WATCHDOG=mCONFIG_DA9062_WATCHDOG=mCONFIG_GPIO_WATCHDOG=mCONFIG_MENF21BMC_WATCHDOG=mCONFIG_MENZ069_WATCHDOG=mCONFIG_WM831X_WATCHDOG=mCONFIG_XILINX_WATCHDOG=mCONFIG_ZIIRAVE_WATCHDOG=mCONFIG_RAVE_SP_WATCHDOG=mCONFIG_MLX_WDT=mCONFIG_SL28CPLD_WATCHDOG=mCONFIG_ARMADA_37XX_WATCHDOG=mCONFIG_ASM9260_WATCHDOG=mCONFIG_AT91RM9200_WATCHDOG=mCONFIG_AT91SAM9X_WATCHDOG=mCONFIG_SAMA5D4_WATCHDOG=mCONFIG_CADENCE_WATCHDOG=mCONFIG_FTWDT010_WATCHDOG=mCONFIG_S3C2410_WATCHDOG=mCONFIG_DW_WATCHDOG=mCONFIG_EP93XX_WATCHDOG=mCONFIG_OMAP_WATCHDOG=mCONFIG_PNX4008_WATCHDOG=mCONFIG_DAVINCI_WATCHDOG=mCONFIG_K3_RTI_WATCHDOG=mCONFIG_RN5T618_WATCHDOG=mCONFIG_SUNXI_WATCHDOG=mCONFIG_NPCM7XX_WATCHDOG=mCONFIG_STMP3XXX_RTC_WATCHDOG=mCONFIG_TS4800_WATCHDOG=mCONFIG_TS72XX_WATCHDOG=mCONFIG_MAX63XX_WATCHDOG=mCONFIG_MAX77620_WATCHDOG=mCONFIG_IMX2_WDT=mCONFIG_IMX7ULP_WDT=mCONFIG_RETU_WATCHDOG=mCONFIG_MOXART_WDT=mCONFIG_ST_LPC_WATCHDOG=mCONFIG_TEGRA_WATCHDOG=mCONFIG_QCOM_WDT=mCONFIG_MESON_GXBB_WATCHDOG=mCONFIG_MESON_WATCHDOG=mCONFIG_MEDIATEK_WATCHDOG=mCONFIG_DIGICOLOR_WATCHDOG=mCONFIG_LPC18XX_WATCHDOG=mCONFIG_RENESAS_WDT=mCONFIG_RENESAS_RZAWDT=mCONFIG_RENESAS_RZN1WDT=mCONFIG_RENESAS_RZG2LWDT=mCONFIG_ASPEED_WATCHDOG=mCONFIG_UNIPHIER_WATCHDOG=mCONFIG_RTD119X_WATCHDOG=yCONFIG_SPRD_WATCHDOG=mCONFIG_PM8916_WATCHDOG=mCONFIG_VISCONTI_WATCHDOG=mCONFIG_MSC313E_WATCHDOG=mCONFIG_APPLE_WATCHDOG=mCONFIG_SUNPLUS_WATCHDOG=mCONFIG_SC520_WDT=mCONFIG_KEMPLD_WDT=mCONFIG_BCM47XX_WDT=mCONFIG_BCM2835_WDT=mCONFIG_BCM_KONA_WDT=mCONFIG_BCM_KONA_WDT_DEBUG=yCONFIG_BCM7038_WDT=mCONFIG_IMGPDC_WDT=mCONFIG_MPC5200_WDT=yCONFIG_MEN_A21_WDT=mCONFIG_SH_WDT=mCONFIG_UML_WATCHDOG=m
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=m
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_ACT8945A=mCONFIG_MFD_SUN4I_GPADC=mCONFIG_MFD_AT91_USART=yCONFIG_MFD_ATMEL_FLEXCOM=mCONFIG_MFD_ATMEL_HLCDC=mCONFIG_MFD_ATMEL_SMC=yCONFIG_MFD_BCM590XX=mCONFIG_MFD_BD9571MWV=mCONFIG_MFD_AXP20X=mCONFIG_MFD_AXP20X_I2C=mCONFIG_MFD_CROS_EC_DEV=mCONFIG_MFD_MADERA=mCONFIG_MFD_MADERA_I2C=mCONFIG_MFD_MADERA_SPI=mCONFIG_MFD_CS47L15=yCONFIG_MFD_CS47L35=yCONFIG_MFD_CS47L85=yCONFIG_MFD_CS47L90=yCONFIG_MFD_CS47L92=yCONFIG_MFD_ASIC3=yCONFIG_PMIC_DA9052=yCONFIG_MFD_DA9052_SPI=yCONFIG_MFD_DA9062=mCONFIG_MFD_DA9063=mCONFIG_MFD_DA9150=mCONFIG_MFD_DLN2=mCONFIG_MFD_ENE_KB3930=mCONFIG_MFD_EXYNOS_LPASS=mCONFIG_MFD_GATEWORKS_GSC=mCONFIG_MFD_MC13XXX=mCONFIG_MFD_MC13XXX_SPI=mCONFIG_MFD_MC13XXX_I2C=mCONFIG_MFD_MP2629=mCONFIG_MFD_MXS_LRADC=mCONFIG_MFD_MX25_TSADC=mCONFIG_MFD_HI6421_PMIC=mCONFIG_MFD_HI6421_SPMI=mCONFIG_MFD_HI655X_PMIC=mCONFIG_HTC_PASIC3=mCONFIG_MFD_IQS62X=mCONFIG_MFD_KEMPLD=mCONFIG_MFD_88PM800=mCONFIG_MFD_88PM805=mCONFIG_MFD_MAX14577=mCONFIG_MFD_MAX77650=mCONFIG_MFD_MAX77686=mCONFIG_MFD_MAX77693=mCONFIG_MFD_MAX77714=mCONFIG_MFD_MAX8907=mCONFIG_MFD_MT6360=mCONFIG_MFD_MT6397=mCONFIG_MFD_MENF21BMC=mCONFIG_EZX_PCAP=yCONFIG_MFD_CPCAP=mCONFIG_MFD_VIPERBOARD=mCONFIG_MFD_NTXEC=mCONFIG_MFD_RETU=mCONFIG_MFD_PCF50633=mCONFIG_PCF50633_ADC=mCONFIG_PCF50633_GPIO=mCONFIG_UCB1400_CORE=mCONFIG_MFD_PM8XXX=mCONFIG_MFD_SPMI_PMIC=mCONFIG_MFD_RT4831=mCONFIG_MFD_RT5033=mCONFIG_MFD_RK808=mCONFIG_MFD_RN5T618=mCONFIG_MFD_SI476X_CORE=mCONFIG_MFD_SIMPLE_MFD_I2C=mCONFIG_MFD_SL28CPLD=mCONFIG_MFD_SKY81452=mCONFIG_MFD_SC27XX_PMIC=mCONFIG_ABX500_CORE=yCONFIG_MFD_STMPE=y
#
# STMicroelectronics STMPE Interface Drivers
#CONFIG_STMPE_SPI=y
# end of STMicroelectronics STMPE Interface Drivers
CONFIG_MFD_SUN6I_PRCM=yCONFIG_MFD_SYSCON=yCONFIG_MFD_TI_AM335X_TSCADC=mCONFIG_MFD_LP3943=mCONFIG_MFD_TI_LMU=mCONFIG_TPS6105X=mCONFIG_TPS65010=mCONFIG_TPS6507X=mCONFIG_MFD_TPS65086=mCONFIG_MFD_TPS65217=mCONFIG_MFD_TI_LP873X=mCONFIG_MFD_TI_LP87565=mCONFIG_MFD_TPS65218=mCONFIG_MFD_TPS65912=mCONFIG_MFD_TPS65912_I2C=mCONFIG_MFD_TPS65912_SPI=mCONFIG_MFD_WL1273_CORE=mCONFIG_MFD_LM3533=mCONFIG_MFD_TQMX86=mCONFIG_MFD_ARIZONA=mCONFIG_MFD_ARIZONA_I2C=mCONFIG_MFD_ARIZONA_SPI=mCONFIG_MFD_CS47L24=yCONFIG_MFD_WM5102=yCONFIG_MFD_WM5110=yCONFIG_MFD_WM8997=yCONFIG_MFD_WM8998=yCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_SPI=yCONFIG_MFD_WM8994=mCONFIG_MFD_STW481X=mCONFIG_MFD_STM32_LPTIMER=mCONFIG_MFD_STM32_TIMERS=mCONFIG_MFD_STMFX=mCONFIG_MFD_WCD934X=mCONFIG_MFD_ATC260X=mCONFIG_MFD_ATC260X_I2C=mCONFIG_MFD_KHADAS_MCU=mCONFIG_MFD_ACER_A500_EC=mCONFIG_MFD_QCOM_PM8008=mCONFIG_RAVE_SP_CORE=mCONFIG_MFD_INTEL_M10_BMC=mCONFIG_MFD_RSMU_I2C=mCONFIG_MFD_RSMU_SPI=m
# end of Multifunction device drivers
CONFIG_REGULATOR=yCONFIG_REGULATOR_DEBUG=yCONFIG_REGULATOR_FIXED_VOLTAGE=mCONFIG_REGULATOR_VIRTUAL_CONSUMER=mCONFIG_REGULATOR_USERSPACE_CONSUMER=mCONFIG_REGULATOR_88PG86X=mCONFIG_REGULATOR_88PM800=mCONFIG_REGULATOR_ACT8865=mCONFIG_REGULATOR_ACT8945A=mCONFIG_REGULATOR_AD5398=mCONFIG_REGULATOR_ANATOP=mCONFIG_REGULATOR_ARIZONA_LDO1=mCONFIG_REGULATOR_ARIZONA_MICSUPP=mCONFIG_REGULATOR_ARM_SCMI=mCONFIG_REGULATOR_ATC260X=mCONFIG_REGULATOR_AXP20X=mCONFIG_REGULATOR_BCM590XX=mCONFIG_REGULATOR_BD9571MWV=mCONFIG_REGULATOR_CPCAP=mCONFIG_REGULATOR_CROS_EC=mCONFIG_REGULATOR_DA9052=mCONFIG_REGULATOR_DA9062=mCONFIG_REGULATOR_DA9063=mCONFIG_REGULATOR_DA9121=mCONFIG_REGULATOR_DA9210=mCONFIG_REGULATOR_DA9211=mCONFIG_REGULATOR_FAN53555=mCONFIG_REGULATOR_FAN53880=mCONFIG_REGULATOR_GPIO=mCONFIG_REGULATOR_HI6421=mCONFIG_REGULATOR_HI6421V530=mCONFIG_REGULATOR_HI655X=mCONFIG_REGULATOR_HI6421V600=mCONFIG_REGULATOR_ISL9305=mCONFIG_REGULATOR_ISL6271A=mCONFIG_REGULATOR_LM363X=mCONFIG_REGULATOR_LP3971=mCONFIG_REGULATOR_LP3972=mCONFIG_REGULATOR_LP872X=mCONFIG_REGULATOR_LP873X=mCONFIG_REGULATOR_LP8755=mCONFIG_REGULATOR_LP87565=mCONFIG_REGULATOR_LTC3589=mCONFIG_REGULATOR_LTC3676=mCONFIG_REGULATOR_MAX14577=mCONFIG_REGULATOR_MAX1586=mCONFIG_REGULATOR_MAX77620=mCONFIG_REGULATOR_MAX77650=mCONFIG_REGULATOR_MAX8649=mCONFIG_REGULATOR_MAX8660=mCONFIG_REGULATOR_MAX8893=mCONFIG_REGULATOR_MAX8907=mCONFIG_REGULATOR_MAX8952=mCONFIG_REGULATOR_MAX8973=mCONFIG_REGULATOR_MAX20086=mCONFIG_REGULATOR_MAX77686=mCONFIG_REGULATOR_MAX77693=mCONFIG_REGULATOR_MAX77802=mCONFIG_REGULATOR_MAX77826=mCONFIG_REGULATOR_MC13XXX_CORE=mCONFIG_REGULATOR_MC13783=mCONFIG_REGULATOR_MC13892=mCONFIG_REGULATOR_MCP16502=mCONFIG_REGULATOR_MP5416=mCONFIG_REGULATOR_MP8859=mCONFIG_REGULATOR_MP886X=mCONFIG_REGULATOR_MPQ7920=mCONFIG_REGULATOR_MT6311=mCONFIG_REGULATOR_MT6315=mCONFIG_REGULATOR_MT6323=mCONFIG_REGULATOR_MT6358=mCONFIG_REGULATOR_MT6359=mCONFIG_REGULATOR_MT6360=mCONFIG_REGULATOR_MT6380=mCONFIG_REGULATOR_MT6397=mCONFIG_REGULATOR_PBIAS=mCONFIG_REGULATOR_PCA9450=mCONFIG_REGULATOR_PCAP=mCONFIG_REGULATOR_PCF50633=mCONFIG_REGULATOR_PF8X00=mCONFIG_REGULATOR_PFUZE100=mCONFIG_REGULATOR_PV88060=mCONFIG_REGULATOR_PV88080=mCONFIG_REGULATOR_PV88090=mCONFIG_REGULATOR_PWM=mCONFIG_REGULATOR_QCOM_RPMH=mCONFIG_REGULATOR_QCOM_SMD_RPM=mCONFIG_REGULATOR_QCOM_SPMI=mCONFIG_REGULATOR_QCOM_USB_VBUS=mCONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=mCONFIG_REGULATOR_RK808=mCONFIG_REGULATOR_RN5T618=mCONFIG_REGULATOR_RT4801=mCONFIG_REGULATOR_RT4831=mCONFIG_REGULATOR_RT5033=mCONFIG_REGULATOR_RT5190A=mCONFIG_REGULATOR_RT5759=mCONFIG_REGULATOR_RT6160=mCONFIG_REGULATOR_RT6245=mCONFIG_REGULATOR_RTQ2134=mCONFIG_REGULATOR_RTMV20=mCONFIG_REGULATOR_RTQ6752=mCONFIG_REGULATOR_S2MPA01=mCONFIG_REGULATOR_S2MPS11=mCONFIG_REGULATOR_S5M8767=mCONFIG_REGULATOR_SC2731=mCONFIG_REGULATOR_SKY81452=mCONFIG_REGULATOR_SLG51000=mCONFIG_REGULATOR_STM32_BOOSTER=mCONFIG_REGULATOR_STM32_VREFBUF=mCONFIG_REGULATOR_STM32_PWR=yCONFIG_REGULATOR_TI_ABB=mCONFIG_REGULATOR_STW481X_VMMC=yCONFIG_REGULATOR_SY7636A=mCONFIG_REGULATOR_SY8106A=mCONFIG_REGULATOR_SY8824X=mCONFIG_REGULATOR_SY8827N=mCONFIG_REGULATOR_TPS51632=mCONFIG_REGULATOR_TPS6105X=mCONFIG_REGULATOR_TPS62360=mCONFIG_REGULATOR_TPS6286X=mCONFIG_REGULATOR_TPS65023=mCONFIG_REGULATOR_TPS6507X=mCONFIG_REGULATOR_TPS65086=mCONFIG_REGULATOR_TPS65132=mCONFIG_REGULATOR_TPS65217=mCONFIG_REGULATOR_TPS65218=mCONFIG_REGULATOR_TPS6524X=mCONFIG_REGULATOR_TPS65912=mCONFIG_REGULATOR_TPS68470=mCONFIG_REGULATOR_UNIPHIER=mCONFIG_REGULATOR_VCTRL=mCONFIG_REGULATOR_WM831X=mCONFIG_REGULATOR_WM8994=mCONFIG_REGULATOR_QCOM_LABIBB=mCONFIG_RC_CORE=mCONFIG_LIRC=yCONFIG_RC_MAP=mCONFIG_RC_DECODERS=yCONFIG_IR_IMON_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_MCE_KBD_DECODER=mCONFIG_IR_NEC_DECODER=mCONFIG_IR_RC5_DECODER=mCONFIG_IR_RC6_DECODER=mCONFIG_IR_RCMM_DECODER=mCONFIG_IR_SANYO_DECODER=mCONFIG_IR_SHARP_DECODER=mCONFIG_IR_SONY_DECODER=mCONFIG_IR_XMP_DECODER=mCONFIG_RC_DEVICES=yCONFIG_IR_ENE=mCONFIG_IR_FINTEK=mCONFIG_IR_GPIO_CIR=mCONFIG_IR_GPIO_TX=mCONFIG_IR_HIX5HD2=mCONFIG_IR_IGORPLUGUSB=mCONFIG_IR_IGUANA=mCONFIG_IR_IMON=mCONFIG_IR_IMON_RAW=mCONFIG_IR_ITE_CIR=mCONFIG_IR_MCEUSB=mCONFIG_IR_MESON=mCONFIG_IR_MESON_TX=mCONFIG_IR_MTK=mCONFIG_IR_NUVOTON=mCONFIG_IR_PWM_TX=mCONFIG_IR_REDRAT3=mCONFIG_IR_RX51=mCONFIG_IR_SERIAL=mCONFIG_IR_SERIAL_TRANSMITTER=yCONFIG_IR_SPI=mCONFIG_IR_STREAMZAP=mCONFIG_IR_SUNXI=mCONFIG_IR_TOY=mCONFIG_IR_TTUSBIR=mCONFIG_IR_WINBOND_CIR=mCONFIG_RC_ATI_REMOTE=mCONFIG_RC_LOOPBACK=mCONFIG_RC_ST=mCONFIG_RC_XBOX_DVD=mCONFIG_IR_IMG=mCONFIG_IR_IMG_RAW=yCONFIG_IR_IMG_HW=yCONFIG_IR_IMG_NEC=yCONFIG_IR_IMG_JVC=yCONFIG_IR_IMG_SONY=yCONFIG_IR_IMG_SHARP=yCONFIG_IR_IMG_SANYO=yCONFIG_IR_IMG_RC5=yCONFIG_IR_IMG_RC6=yCONFIG_CEC_CORE=mCONFIG_CEC_NOTIFIER=yCONFIG_CEC_PIN=y
#
# CEC support
#CONFIG_MEDIA_CEC_RC=yCONFIG_CEC_PIN_ERROR_INJ=yCONFIG_MEDIA_CEC_SUPPORT=yCONFIG_CEC_CH7322=mCONFIG_CEC_CROS_EC=mCONFIG_CEC_MESON_AO=mCONFIG_CEC_GPIO=mCONFIG_CEC_SAMSUNG_S5P=mCONFIG_CEC_STI=mCONFIG_CEC_STM32=mCONFIG_CEC_TEGRA=mCONFIG_USB_PULSE8_CEC=mCONFIG_USB_RAINSHADOW_CEC=m
# end of CEC support
CONFIG_MEDIA_SUPPORT=mCONFIG_MEDIA_SUPPORT_FILTER=yCONFIG_MEDIA_SUBDRV_AUTOSELECT=y
#
# Media device types
#CONFIG_MEDIA_CAMERA_SUPPORT=yCONFIG_MEDIA_ANALOG_TV_SUPPORT=yCONFIG_MEDIA_DIGITAL_TV_SUPPORT=yCONFIG_MEDIA_RADIO_SUPPORT=yCONFIG_MEDIA_SDR_SUPPORT=yCONFIG_MEDIA_PLATFORM_SUPPORT=yCONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types
CONFIG_VIDEO_DEV=mCONFIG_MEDIA_CONTROLLER=yCONFIG_DVB_CORE=m
#
# Video4Linux options
#CONFIG_VIDEO_V4L2_I2C=yCONFIG_VIDEO_V4L2_SUBDEV_API=yCONFIG_VIDEO_ADV_DEBUG=yCONFIG_VIDEO_FIXED_MINOR_RANGES=yCONFIG_VIDEO_TUNER=mCONFIG_V4L2_JPEG_HELPER=mCONFIG_V4L2_H264=mCONFIG_V4L2_VP9=mCONFIG_V4L2_MEM2MEM_DEV=mCONFIG_V4L2_FLASH_LED_CLASS=mCONFIG_V4L2_FWNODE=mCONFIG_V4L2_ASYNC=mCONFIG_VIDEOBUF_GEN=mCONFIG_VIDEOBUF_VMALLOC=mCONFIG_VIDEOBUF_DMA_CONTIG=m
# end of Video4Linux options
#
# Media controller options
#CONFIG_MEDIA_CONTROLLER_DVB=yCONFIG_MEDIA_CONTROLLER_REQUEST_API=y
# end of Media controller options
#
# Digital TV options
#CONFIG_DVB_MMAP=yCONFIG_DVB_NET=yCONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=yCONFIG_DVB_DEMUX_SECTION_LOSS_LOG=yCONFIG_DVB_ULE_DEBUG=y
# end of Digital TV options
#
# Media drivers
#
#
# Drivers filtered as selected at 'Filter media drivers' #
#
# Media drivers
#CONFIG_MEDIA_USB_SUPPORT=y
#
# Webcam devices
#CONFIG_VIDEO_CPIA2=mCONFIG_USB_GSPCA=mCONFIG_USB_GSPCA_BENQ=mCONFIG_USB_GSPCA_CONEX=mCONFIG_USB_GSPCA_CPIA1=mCONFIG_USB_GSPCA_DTCS033=mCONFIG_USB_GSPCA_ETOMS=mCONFIG_USB_GSPCA_FINEPIX=mCONFIG_USB_GSPCA_JEILINJ=mCONFIG_USB_GSPCA_JL2005BCD=mCONFIG_USB_GSPCA_KINECT=mCONFIG_USB_GSPCA_KONICA=mCONFIG_USB_GSPCA_MARS=mCONFIG_USB_GSPCA_MR97310A=mCONFIG_USB_GSPCA_NW80X=mCONFIG_USB_GSPCA_OV519=mCONFIG_USB_GSPCA_OV534=mCONFIG_USB_GSPCA_OV534_9=mCONFIG_USB_GSPCA_PAC207=mCONFIG_USB_GSPCA_PAC7302=mCONFIG_USB_GSPCA_PAC7311=mCONFIG_USB_GSPCA_SE401=mCONFIG_USB_GSPCA_SN9C2028=mCONFIG_USB_GSPCA_SN9C20X=mCONFIG_USB_GSPCA_SONIXB=mCONFIG_USB_GSPCA_SONIXJ=mCONFIG_USB_GSPCA_SPCA1528=mCONFIG_USB_GSPCA_SPCA500=mCONFIG_USB_GSPCA_SPCA501=mCONFIG_USB_GSPCA_SPCA505=mCONFIG_USB_GSPCA_SPCA506=mCONFIG_USB_GSPCA_SPCA508=mCONFIG_USB_GSPCA_SPCA561=mCONFIG_USB_GSPCA_SQ905=mCONFIG_USB_GSPCA_SQ905C=mCONFIG_USB_GSPCA_SQ930X=mCONFIG_USB_GSPCA_STK014=mCONFIG_USB_GSPCA_STK1135=mCONFIG_USB_GSPCA_STV0680=mCONFIG_USB_GSPCA_SUNPLUS=mCONFIG_USB_GSPCA_T613=mCONFIG_USB_GSPCA_TOPRO=mCONFIG_USB_GSPCA_TOUPTEK=mCONFIG_USB_GSPCA_TV8532=mCONFIG_USB_GSPCA_VC032X=mCONFIG_USB_GSPCA_VICAM=mCONFIG_USB_GSPCA_XIRLINK_CIT=mCONFIG_USB_GSPCA_ZC3XX=mCONFIG_USB_GL860=mCONFIG_USB_M5602=mCONFIG_USB_STV06XX=mCONFIG_USB_PWC=mCONFIG_USB_PWC_DEBUG=yCONFIG_USB_PWC_INPUT_EVDEV=yCONFIG_USB_S2255=mCONFIG_VIDEO_USBTV=mCONFIG_USB_VIDEO_CLASS=mCONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=yCONFIG_USB_ZR364XX=m
#
# Analog TV USB devices
#CONFIG_VIDEO_GO7007=mCONFIG_VIDEO_GO7007_USB=mCONFIG_VIDEO_GO7007_LOADER=mCONFIG_VIDEO_GO7007_USB_S2250_BOARD=mCONFIG_VIDEO_HDPVR=mCONFIG_VIDEO_PVRUSB2=mCONFIG_VIDEO_PVRUSB2_SYSFS=yCONFIG_VIDEO_PVRUSB2_DVB=yCONFIG_VIDEO_PVRUSB2_DEBUGIFC=yCONFIG_VIDEO_STK1160_COMMON=mCONFIG_VIDEO_STK1160=m
#
# Analog/digital TV USB devices
#CONFIG_VIDEO_AU0828=mCONFIG_VIDEO_AU0828_V4L2=yCONFIG_VIDEO_AU0828_RC=yCONFIG_VIDEO_CX231XX=mCONFIG_VIDEO_CX231XX_RC=yCONFIG_VIDEO_CX231XX_ALSA=mCONFIG_VIDEO_CX231XX_DVB=mCONFIG_VIDEO_TM6000=mCONFIG_VIDEO_TM6000_ALSA=mCONFIG_VIDEO_TM6000_DVB=m
#
# Digital TV USB devices
#CONFIG_DVB_AS102=mCONFIG_DVB_B2C2_FLEXCOP_USB=mCONFIG_DVB_B2C2_FLEXCOP_USB_DEBUG=yCONFIG_DVB_USB_V2=mCONFIG_DVB_USB_AF9015=mCONFIG_DVB_USB_AF9035=mCONFIG_DVB_USB_ANYSEE=mCONFIG_DVB_USB_AU6610=mCONFIG_DVB_USB_AZ6007=mCONFIG_DVB_USB_CE6230=mCONFIG_DVB_USB_DVBSKY=mCONFIG_DVB_USB_EC168=mCONFIG_DVB_USB_GL861=mCONFIG_DVB_USB_LME2510=mCONFIG_DVB_USB_MXL111SF=mCONFIG_DVB_USB_RTL28XXU=mCONFIG_DVB_USB_ZD1301=mCONFIG_DVB_USB=mCONFIG_DVB_USB_DEBUG=yCONFIG_DVB_USB_A800=mCONFIG_DVB_USB_AF9005=mCONFIG_DVB_USB_AF9005_REMOTE=mCONFIG_DVB_USB_AZ6027=mCONFIG_DVB_USB_CINERGY_T2=mCONFIG_DVB_USB_CXUSB=mCONFIG_DVB_USB_CXUSB_ANALOG=yCONFIG_DVB_USB_DIB0700=mCONFIG_DVB_USB_DIB3000MC=mCONFIG_DVB_USB_DIBUSB_MB=mCONFIG_DVB_USB_DIBUSB_MB_FAULTY=yCONFIG_DVB_USB_DIBUSB_MC=mCONFIG_DVB_USB_DIGITV=mCONFIG_DVB_USB_DTT200U=mCONFIG_DVB_USB_DTV5100=mCONFIG_DVB_USB_DW2102=mCONFIG_DVB_USB_GP8PSK=mCONFIG_DVB_USB_M920X=mCONFIG_DVB_USB_NOVA_T_USB2=mCONFIG_DVB_USB_OPERA1=mCONFIG_DVB_USB_PCTV452E=mCONFIG_DVB_USB_TECHNISAT_USB2=mCONFIG_DVB_USB_TTUSB2=mCONFIG_DVB_USB_UMT_010=mCONFIG_DVB_USB_VP702X=mCONFIG_DVB_USB_VP7045=m
#
# Webcam, TV (analog/digital) USB devices
#CONFIG_VIDEO_EM28XX=mCONFIG_VIDEO_EM28XX_V4L2=mCONFIG_VIDEO_EM28XX_ALSA=mCONFIG_VIDEO_EM28XX_DVB=mCONFIG_VIDEO_EM28XX_RC=m
#
# Software defined radio USB devices
#CONFIG_USB_AIRSPY=mCONFIG_USB_HACKRF=mCONFIG_USB_MSI2500=mCONFIG_RADIO_ADAPTERS=mCONFIG_RADIO_SAA7706H=mCONFIG_RADIO_SHARK=mCONFIG_RADIO_SHARK2=mCONFIG_RADIO_SI4713=mCONFIG_RADIO_SI476X=mCONFIG_RADIO_TEA575X=mCONFIG_RADIO_TEA5764=mCONFIG_RADIO_TEF6862=mCONFIG_RADIO_WL1273=mCONFIG_USB_DSBR=mCONFIG_USB_KEENE=mCONFIG_USB_MA901=mCONFIG_USB_MR800=mCONFIG_USB_RAREMONO=mCONFIG_RADIO_SI470X=mCONFIG_USB_SI470X=mCONFIG_I2C_SI470X=mCONFIG_USB_SI4713=mCONFIG_PLATFORM_SI4713=mCONFIG_I2C_SI4713=mCONFIG_RADIO_WL128X=mCONFIG_V4L_RADIO_ISA_DRIVERS=yCONFIG_RADIO_AZTECH=mCONFIG_RADIO_CADET=mCONFIG_RADIO_GEMTEK=mCONFIG_RADIO_ISA=mCONFIG_RADIO_RTRACK=mCONFIG_RADIO_RTRACK2=mCONFIG_RADIO_SF16FMI=mCONFIG_RADIO_SF16FMR2=mCONFIG_RADIO_TERRATEC=mCONFIG_RADIO_TRUST=mCONFIG_RADIO_TYPHOON=mCONFIG_RADIO_ZOLTRIX=mCONFIG_MEDIA_PLATFORM_DRIVERS=yCONFIG_V4L_PLATFORM_DRIVERS=yCONFIG_SDR_PLATFORM_DRIVERS=yCONFIG_DVB_PLATFORM_DRIVERS=yCONFIG_V4L_MEM2MEM_DRIVERS=yCONFIG_VIDEO_MUX=m
#
# Allegro DVT media platform drivers
#CONFIG_VIDEO_ALLEGRO_DVT=m
#
# Amlogic media platform drivers
#CONFIG_VIDEO_MESON_GE2D=m
#
# Amphion drivers
#CONFIG_VIDEO_AMPHION_VPU=m
#
# Aspeed media platform drivers
#CONFIG_VIDEO_ASPEED=m
#
# Atmel media platform drivers
#CONFIG_VIDEO_ATMEL_ISI=m
#
# Cadence media platform drivers
#CONFIG_VIDEO_CADENCE_CSI2RX=mCONFIG_VIDEO_CADENCE_CSI2TX=m
#
# Chips&Media media platform drivers
#CONFIG_VIDEO_CODA=mCONFIG_VIDEO_IMX_VDOA=m
#
# Intel media platform drivers
#
CONFIG_VIDEO_PXA27x=m
#
# Marvell media platform drivers
#
#
# Mediatek media platform drivers
#CONFIG_VIDEO_MEDIATEK_JPEG=mCONFIG_VIDEO_MEDIATEK_MDP=mCONFIG_VIDEO_MEDIATEK_VCODEC_VPU=yCONFIG_VIDEO_MEDIATEK_VCODEC=mCONFIG_VIDEO_MEDIATEK_VPU=m
#
# NVidia media platform drivers
#CONFIG_VIDEO_TEGRA_VDE=m
#
# NXP media platform drivers
#CONFIG_VIDEO_IMX_MIPI_CSIS=mCONFIG_VIDEO_VIU=mCONFIG_VIDEO_IMX_PXP=mCONFIG_VIDEO_MX2_EMMAPRP=mCONFIG_VIDEO_IMX8_JPEG=m
#
# Qualcomm media platform drivers
#CONFIG_VIDEO_QCOM_CAMSS=mCONFIG_VIDEO_QCOM_VENUS=m
#
# Renesas media platform drivers
#CONFIG_VIDEO_RENESAS_CEU=mCONFIG_VIDEO_RCAR_ISP=mCONFIG_VIDEO_SH_VOU=mCONFIG_VIDEO_RCAR_CSI2=mCONFIG_VIDEO_RCAR_VIN=mCONFIG_VIDEO_RENESAS_FCP=mCONFIG_VIDEO_RENESAS_FDP1=mCONFIG_VIDEO_RENESAS_JPU=mCONFIG_VIDEO_RENESAS_VSP1=mCONFIG_VIDEO_RCAR_DRIF=m
#
# Rockchip media platform drivers
#CONFIG_VIDEO_ROCKCHIP_RGA=mCONFIG_VIDEO_ROCKCHIP_ISP1=m
#
# Samsung media platform drivers
#CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC=mCONFIG_VIDEO_S3C_CAMIF=mCONFIG_VIDEO_SAMSUNG_S5P_G2D=mCONFIG_VIDEO_SAMSUNG_S5P_JPEG=mCONFIG_VIDEO_SAMSUNG_S5P_MFC=m
#
# STMicroelectronics media platform drivers
#CONFIG_VIDEO_STI_BDISP=mCONFIG_DVB_C8SECTPFE=mCONFIG_VIDEO_STI_DELTA=mCONFIG_VIDEO_STI_DELTA_MJPEG=yCONFIG_VIDEO_STI_DELTA_DRIVER=mCONFIG_VIDEO_STI_HVA=mCONFIG_VIDEO_STI_HVA_DEBUGFS=yCONFIG_VIDEO_STM32_DCMI=mCONFIG_VIDEO_STM32_DMA2D=m
#
# Sunxi media platform drivers
#
#
# Texas Instruments drivers
#CONFIG_VIDEO_TI_VPDMA=mCONFIG_VIDEO_TI_SC=mCONFIG_VIDEO_TI_CSC=mCONFIG_VIDEO_TI_CAL=mCONFIG_VIDEO_TI_CAL_MC=yCONFIG_VIDEO_TI_VPE=mCONFIG_VIDEO_TI_VPE_DEBUG=yCONFIG_VIDEO_AM437X_VPFE=mCONFIG_VIDEO_DAVINCI_VPIF_DISPLAY=mCONFIG_VIDEO_DAVINCI_VPIF_CAPTURE=mCONFIG_VIDEO_DM6446_CCDC=mCONFIG_VIDEO_DM355_CCDC=mCONFIG_VIDEO_DM365_ISIF=mCONFIG_VIDEO_DAVINCI_VPBE_DISPLAY=m
#
# VIA media platform drivers
#
#
# Xilinx media platform drivers
#CONFIG_V4L_TEST_DRIVERS=yCONFIG_VIDEO_VIM2M=mCONFIG_VIDEO_VICODEC=mCONFIG_VIDEO_VIMC=mCONFIG_DVB_TEST_DRIVERS=yCONFIG_DVB_VIDTV=m
#
# FireWire (IEEE 1394) Adapters
#CONFIG_DVB_FIREDTV=mCONFIG_DVB_FIREDTV_INPUT=yCONFIG_CYPRESS_FIRMWARE=mCONFIG_TTPCI_EEPROM=mCONFIG_VIDEO_CX2341X=mCONFIG_VIDEO_TVEEPROM=mCONFIG_DVB_B2C2_FLEXCOP=mCONFIG_DVB_B2C2_FLEXCOP_DEBUG=yCONFIG_VIDEO_V4L2_TPG=mCONFIG_VIDEOBUF2_CORE=mCONFIG_VIDEOBUF2_V4L2=mCONFIG_VIDEOBUF2_MEMOPS=mCONFIG_VIDEOBUF2_DMA_CONTIG=mCONFIG_VIDEOBUF2_VMALLOC=mCONFIG_VIDEOBUF2_DMA_SG=m
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_ATTACH=y
#
# IR I2C driver auto-selected by 'Autoselect ancillary drivers' #CONFIG_VIDEO_IR_I2C=m
#
# Camera sensor devices
#CONFIG_VIDEO_APTINA_PLL=mCONFIG_VIDEO_CCS_PLL=mCONFIG_VIDEO_AR0521=mCONFIG_VIDEO_HI556=mCONFIG_VIDEO_HI846=mCONFIG_VIDEO_HI847=mCONFIG_VIDEO_IMX208=mCONFIG_VIDEO_IMX214=mCONFIG_VIDEO_IMX219=mCONFIG_VIDEO_IMX258=mCONFIG_VIDEO_IMX274=mCONFIG_VIDEO_IMX290=mCONFIG_VIDEO_IMX319=mCONFIG_VIDEO_IMX334=mCONFIG_VIDEO_IMX335=mCONFIG_VIDEO_IMX355=mCONFIG_VIDEO_IMX412=mCONFIG_VIDEO_MAX9271_LIB=mCONFIG_VIDEO_MT9M001=mCONFIG_VIDEO_MT9M032=mCONFIG_VIDEO_MT9M111=mCONFIG_VIDEO_MT9P031=mCONFIG_VIDEO_MT9T001=mCONFIG_VIDEO_MT9T112=mCONFIG_VIDEO_MT9V011=mCONFIG_VIDEO_MT9V032=mCONFIG_VIDEO_MT9V111=mCONFIG_VIDEO_NOON010PC30=mCONFIG_VIDEO_OG01A1B=mCONFIG_VIDEO_OV02A10=mCONFIG_VIDEO_OV08D10=mCONFIG_VIDEO_OV13858=mCONFIG_VIDEO_OV13B10=mCONFIG_VIDEO_OV2640=mCONFIG_VIDEO_OV2659=mCONFIG_VIDEO_OV2680=mCONFIG_VIDEO_OV2685=mCONFIG_VIDEO_OV2740=mCONFIG_VIDEO_OV5640=mCONFIG_VIDEO_OV5645=mCONFIG_VIDEO_OV5647=mCONFIG_VIDEO_OV5648=mCONFIG_VIDEO_OV5670=mCONFIG_VIDEO_OV5675=mCONFIG_VIDEO_OV5693=mCONFIG_VIDEO_OV5695=mCONFIG_VIDEO_OV6650=mCONFIG_VIDEO_OV7251=mCONFIG_VIDEO_OV7640=mCONFIG_VIDEO_OV7670=mCONFIG_VIDEO_OV772X=mCONFIG_VIDEO_OV7740=mCONFIG_VIDEO_OV8856=mCONFIG_VIDEO_OV8865=mCONFIG_VIDEO_OV9282=mCONFIG_VIDEO_OV9640=mCONFIG_VIDEO_OV9650=mCONFIG_VIDEO_OV9734=mCONFIG_VIDEO_RDACM20=mCONFIG_VIDEO_RDACM21=mCONFIG_VIDEO_RJ54N1=mCONFIG_VIDEO_S5C73M3=mCONFIG_VIDEO_S5K4ECGX=mCONFIG_VIDEO_S5K5BAF=mCONFIG_VIDEO_S5K6A3=mCONFIG_VIDEO_S5K6AA=mCONFIG_VIDEO_SR030PC30=mCONFIG_VIDEO_VS6624=mCONFIG_VIDEO_CCS=mCONFIG_VIDEO_ET8EK8=mCONFIG_VIDEO_M5MOLS=m
# end of Camera sensor devices
#
# Lens drivers
#CONFIG_VIDEO_AD5820=mCONFIG_VIDEO_AK7375=mCONFIG_VIDEO_DW9714=mCONFIG_VIDEO_DW9768=mCONFIG_VIDEO_DW9807_VCM=m
# end of Lens drivers
#
# Flash devices
#CONFIG_VIDEO_ADP1653=mCONFIG_VIDEO_LM3560=mCONFIG_VIDEO_LM3646=m
# end of Flash devices
#
# Audio decoders, processors and mixers
#CONFIG_VIDEO_CS3308=mCONFIG_VIDEO_CS5345=mCONFIG_VIDEO_CS53L32A=mCONFIG_VIDEO_MSP3400=mCONFIG_VIDEO_SONY_BTF_MPX=mCONFIG_VIDEO_TDA1997X=mCONFIG_VIDEO_TDA7432=mCONFIG_VIDEO_TDA9840=mCONFIG_VIDEO_TEA6415C=mCONFIG_VIDEO_TEA6420=mCONFIG_VIDEO_TLV320AIC23B=mCONFIG_VIDEO_TVAUDIO=mCONFIG_VIDEO_UDA1342=mCONFIG_VIDEO_VP27SMPX=mCONFIG_VIDEO_WM8739=mCONFIG_VIDEO_WM8775=m
# end of Audio decoders, processors and mixers
#
# RDS decoders
#CONFIG_VIDEO_SAA6588=m
# end of RDS decoders
4,880 lines not shown · raw message
Part of this message is not shown here. View the raw message.
kernel test robot
build botRe: [PATCH v2 08/11] parisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeI love your patch! Yet something to improve:
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: parisc-randconfig-r005-20220820 (https://download.01.org/0day-ci/archive/20220820/[email protected]/config) compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout 570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc prepare
If you fix the issue, kindly add following tag where applicable
All error/warnings (new ones prefixed by >>):
In file included from arch/parisc/include/asm/io.h:315,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:11,
from arch/parisc/kernel/asm-offsets.c:21:
>> include/asm-generic/iomap.h:97: warning: "ioremap_wc" redefined
97 | #define ioremap_wc ioremap
|
arch/parisc/include/asm/io.h:135: note: this is the location of the previous definition
135 | #define ioremap_wc(addr, size) \
|
include/linux/io.h: In function 'pci_remap_cfgspace':
>> include/linux/io.h:89:44: error: implicit declaration of function 'ioremap'; did you mean 'ioremap_np'? [-Werror=implicit-function-declaration]
89 | return ioremap_np(offset, size) ?: ioremap(offset, size);
| ^~~~~~~
| ioremap_np
>> include/linux/io.h:89:42: warning: pointer/integer type mismatch in conditional expression
89 | return ioremap_np(offset, size) ?: ioremap(offset, size);
| ^ cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/parisc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1207: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +89 include/linux/io.h
7d3dcf26a6559f Christoph Hellwig 2015-08-10 72
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 73 #ifdef CONFIG_PCI
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 74 /*
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 75 * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and
b10eb2d50911f9 Hector Martin 2021-03-25 76 * Posting") mandate non-posted configuration transactions. This default
b10eb2d50911f9 Hector Martin 2021-03-25 77 * implementation attempts to use the ioremap_np() API to provide this
b10eb2d50911f9 Hector Martin 2021-03-25 78 * on arches that support it, and falls back to ioremap() on those that
b10eb2d50911f9 Hector Martin 2021-03-25 79 * don't. Overriding this function is deprecated; arches that properly
b10eb2d50911f9 Hector Martin 2021-03-25 80 * support non-posted accesses should implement ioremap_np() instead, which
b10eb2d50911f9 Hector Martin 2021-03-25 81 * this default implementation can then use to return mappings compliant with
b10eb2d50911f9 Hector Martin 2021-03-25 82 * the PCI specification.
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 83 */
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 84 #ifndef pci_remap_cfgspace
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 85 #define pci_remap_cfgspace pci_remap_cfgspace
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 86 static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 87 size_t size)
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 88 {
b10eb2d50911f9 Hector Martin 2021-03-25 @89 return ioremap_np(offset, size) ?: ioremap(offset, size);
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 90 }
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 91 #endif
cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 92 #endifcf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 93
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Baoquan HeQuoted 1 line · Baoquan He
+void
__iomem*arch_ioremap(phys_addr_tphys_addr,size_tsize, unsigned long prot);
Please avoid the overly long lines.
I also wonder if we just want a common definition with a __weak default instead of duplicating it in many arch headers.
mm/ioremap.c void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, · line 26
Quoted 5 lines
mm/ioremap.c +5
-0+ ioaddr =arch_ioremap (phys_addr, size, prot); +if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;
No need for the else here.
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Baoquan Hearch/arm64/include/asm/io.h extern void __memset_io(volatile void __iomem *, int, size_t); · line 143
Quoted 3 lines
arch/arm64/include/asm/io.h +2
-1-void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val);
It seems a bit odd to do this in two steps vs just doing the entire change in the first patch. Any good reason for that?
Re: [PATCH v2 03/11] mm: ioremap: allow ARCH to have its own ioremap definition
In reply to Baoquan HeQuoted 4 lines · Baoquan He
Architectures like xtensa, arc, can be converted to
GENERIC_IOREMAP, to take standardioremap_prot()andioremap_xxx()way. But they have ARCH specific handling forioremap()method, than standardioremap()method.
Do they?
For arc, the arc_uncached_addr_space case can be easily handled by arch_ioremap, and the xtensa case looks very similar to that.
I'd really like to kill off arch definitions of ioremap going forward, as they should just be a special case of ioremap_prot by definition.
Re: [PATCH v2 06/11] ia64: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 3 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for ia64's special operation whenioremap()andiounmap(), thenioremap_cache()is converted to useioremap_prot()fromGENERIC_IOREMAP.
Same comment about the commit log (I won't repeat it as it applies to all conversions).
Re: [PATCH v2 05/11] hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 2 lines · Baoquan He
With it, the old
ioremap()andiounmap()can be perfectly removed since they are duplicated with the standard functions.
Can you write a somewhat better commit message explaining that it switches to the generic code that has equivalent functionality?
Quoted 1 line
+#define
ioremap_uc(addr, size)ioremap((addr), (size))
This is wrong and hexagon should use the asm-generic version of ioremap_uc that returns NULL.
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan Hearch/openrisc/mm/ioremap.c void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) · line 59
Quoted 13 lines
arch/openrisc/mm/ioremap.c +7
-0+if (unlikely (!mem_init_done)) {if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) +return IOMEM_ERR_PTR (ret); v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >>PAGE_SHIFT ); +if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { fixmaps_used -= (size >>PAGE_SHIFT ); +return IOMEM_ERR_PTR (ret); + } + +return (void __iomem *)(offset + (char *)v); }
This code needs to go away, and all very early boot uses of ioremap need to switch to use early_ioremap insted.
Re: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan Hearch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 252
Quoted 6 lines
arch/s390/pci/pci.c +4
-0+void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {if (!static_branch_unlikely (&have_mio)) +return (void __iomem *) *paddr; +return NULL ;
This logic isn't new in the patch, but it could really use a comment as it is rather non-obvious.
Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan Hearch/sh/include/asm/io.h unsigned long long poke_real_address_q(unsigned long long addr, · line 250
Quoted 3 lines
arch/sh/include/asm/io.h +3
-0+void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap
Shouldn't this still be under CONFIG_MMU?
Re: [PATCH v2 08/11] parisc: mm: Convert to GENERIC_IOREMAP
In reply to kernel test robotHi,
Quoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: parisc-randconfig-r005-20220820 (https://download.01.org/0day-ci/archive/20220820/202208201135.YyN9CXsu-lkp(a)intel.com/config) compiler: hppa-linux-gcc (GCC) 12.1.0
Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc prepare
Thanks for reporting. While it failed with "hppa-linux-gcc: unknown compiler" as below showing. Could you help check and tell what's wrong?
[root@ ~]# ls
0day anaconda-ks.cfg bin EFI_BOOT_ENTRY.TXT linux NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT [root@ ~]# ls 0day/gcc-12.1.0-nolibc/
hppa-linux x86_64-gcc-12.1.0-nolibc_hppa-linux.tar.xz
[root@ ~]# ls bin/make.cross
bin/make.cross
[root@ ~]# pwd
/root
[root@ ~]# cd linux/
[root@ linux]# pwd/root/linux
[root@ linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=/root/linux/build_dir ARCH=parisc prepare Compiler will be installed in /root/0day PATH=/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin:/root/.local/bin:/root/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin make --keep-going --jobs=160 W=1 O=/root/linux/build_dir ARCH=parisc prepare
make[1]: Entering directory '/root/linux/build_dir'/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: /root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: cannot execute binary file
SYNC include/config/auto.conf.cmd/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: /root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: cannot execute binary file
GEN Makefile
hppa-linux-gcc: unknown compilerscripts/Kconfig.include:44: Sorry, this compiler is not supported.
make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [../Makefile:632: syncconfig] Error 2
make[1]: *** [/root/linux/Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
GEN Makefile
Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make[1]: Leaving directory '/root/linux/build_dir'
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Quoted 64 lines
If you fix the issue, kindly add following tag where applicable
Reported-by kernel test robot <[email protected]>All error/warnings (new ones prefixed by >>):
In file included from
arch/parisc/include/asm/io.h:315,from include/linux/io.h:13, from include/linux/irq.h:20, from arch/parisc/include/asm/hardirq.h:13, from include/linux/hardirq.h:11, from arch/parisc/kernel/asm-offsets.c:21:Quoted 1 line
Quoted 1 line
include/asm-generic/iomap.h:97: warning: "ioremap_wc" redefined97 | #define
ioremap_wcioremap
|
arch/parisc/include/asm/io.h:135: note: this is the location of the previous definition135 | #define ioremap_wc(addr, size) \ |
include/linux/io.h: In function 'pci_remap_cfgspace':Quoted 1 line
Quoted 1 line
include/linux/io.h:89:44: error: implicit declaration of function 'ioremap'; did you mean 'ioremap_np'? [-Werror=implicit-function-declaration]89 | return ioremap_np(offset, size) ?: ioremap(offset, size); | ^~~~~~~ | ioremap_npQuoted 1 line
Quoted 1 line
include/linux/io.h:89:42: warning: pointer/integer type mismatch in conditional expression89 | return ioremap_np(offset, size) ?: ioremap(offset, size); | ^cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117:arch/parisc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1207: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.vim +89
include/linux/io.h7d3dcf26a6559f Christoph Hellwig 2015-08-10 72 cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 73 #ifdef CONFIG_PCI cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 74 /* cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 75 * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and b10eb2d50911f9 Hector Martin 2021-03-25 76 * Posting") mandate non-posted configuration transactions. This default b10eb2d50911f9 Hector Martin 2021-03-25 77 * implementation attempts to use the ioremap_np() API to provide this b10eb2d50911f9 Hector Martin 2021-03-25 78 * on arches that support it, and falls back to ioremap() on those that b10eb2d50911f9 Hector Martin 2021-03-25 79 * don't. Overriding this function is deprecated; arches that properly b10eb2d50911f9 Hector Martin 2021-03-25 80 * support non-posted accesses should implement ioremap_np() instead, which b10eb2d50911f9 Hector Martin 2021-03-25 81 * this default implementation can then use to return mappings compliant with b10eb2d50911f9 Hector Martin 2021-03-25 82 * the PCI specification. cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 83 */ cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 84 #ifndef pci_remap_cfgspace cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 85 #define pci_remap_cfgspace pci_remap_cfgspace cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 86 static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset, cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 87 size_t size) cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 88 { b10eb2d50911f9 Hector Martin 2021-03-25 @89 return ioremap_np(offset, size) ?: ioremap(offset, size); cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 90 } cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 91 #endif cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 92 #endif
cf9ea8ca4a0beaLorenzo Pieralisi 2017-04-19 93Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
Helge Deller
maintainerRe: [PATCH v2 08/11] parisc: mm: Convert to GENERIC_IOREMAP
Quoted 24 lines · Baoquan He
Hi,
Quoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: parisc-randconfig-r005-20220820 (https://download.01.org/0day-ci/archive/20220820/202208201135.YyN9CXsu-lkp(a)intel.com/config) compiler: hppa-linux-gcc (GCC) 12.1.0Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc prepare
Quoted 1 line
Thanks for reporting. While it failed with "hppa-linux-gcc: unknown compiler" as below showing. Could you help check and tell what's wrong?
You need to install the gcc-hppa64-linux-gnu and gcc-hppa-linux-gnu DEBs/RPMs. As COMPILER you probably only need "gcc" (or leave COMPILER empty/unset).
Then run "make ARCH=parisc64" (64bit) or "make ARCH=parisc" (32bit).
The Makefile should automatically detect your compiler..
Helge
Quoted 102 lines
[root@ ~]# ls
0day anaconda-ks.cfg bin EFI_BOOT_ENTRY.TXT linux NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT [root@ ~]# ls 0day/gcc-12.1.0-nolibc/
hppa-linux x86_64-gcc-12.1.0-nolibc_hppa-linux.tar.xz
[root@ ~]# ls bin/make.cross
bin/make.cross
[root@ ~]# pwd
/root
[root@ ~]# cd linux/
[root@ linux]# pwd/root/linux[root@ linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=/root/linux/build_dir ARCH=parisc prepare Compiler will be installed in
/root/0dayPATH=/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin:/root/.local/bin:/root/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin make --keep-going --jobs=160 W=1 O=/root/linux/build_dir ARCH=parisc prepare
make[1]: Entering directory '/root/linux/build_dir'/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc:/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: cannot execute binary file
SYNCinclude/config/auto.conf.cmd/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc:/root/0day/gcc-12.1.0-nolibc/hppa-linux/bin/hppa-linux-gcc: cannot execute binary file
GENMakefile
hppa-linux-gcc: unknown compilerscripts/Kconfig.include:44: Sorry, this compiler is not supported.
make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [../Makefile:632: syncconfig] Error 2
make[1]: *** [/root/linux/Makefile:734:include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
GENMakefile
Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make[1]: Leaving directory '/root/linux/build_dir'
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.Quoted 64 lines
If you fix the issue, kindly add following tag where applicable
Reported-by kernel test robot <[email protected]>All error/warnings (new ones prefixed by >>):
In file included from
arch/parisc/include/asm/io.h:315,from include/linux/io.h:13, from include/linux/irq.h:20, from arch/parisc/include/asm/hardirq.h:13, from include/linux/hardirq.h:11, from arch/parisc/kernel/asm-offsets.c:21:Quoted 1 line
Quoted 1 line
include/asm-generic/iomap.h:97: warning: "ioremap_wc" redefined97 | #define
ioremap_wcioremap
|
arch/parisc/include/asm/io.h:135: note: this is the location of the previous definition135 | #define ioremap_wc(addr, size) \ |
include/linux/io.h: In function 'pci_remap_cfgspace':Quoted 1 line
Quoted 1 line
include/linux/io.h:89:44: error: implicit declaration of function 'ioremap'; did you mean 'ioremap_np'? [-Werror=implicit-function-declaration]89 | return ioremap_np(offset, size) ?: ioremap(offset, size); | ^~~~~~~ | ioremap_npQuoted 1 line
Quoted 1 line
include/linux/io.h:89:42: warning: pointer/integer type mismatch in conditional expression89 | return ioremap_np(offset, size) ?: ioremap(offset, size); | ^cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117:arch/parisc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1207: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.vim +89
include/linux/io.h7d3dcf26a6559f Christoph Hellwig 2015-08-10 72 cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 73 #ifdef CONFIG_PCI cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 74 /* cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 75 * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and b10eb2d50911f9 Hector Martin 2021-03-25 76 * Posting") mandate non-posted configuration transactions. This default b10eb2d50911f9 Hector Martin 2021-03-25 77 * implementation attempts to use the ioremap_np() API to provide this b10eb2d50911f9 Hector Martin 2021-03-25 78 * on arches that support it, and falls back to ioremap() on those that b10eb2d50911f9 Hector Martin 2021-03-25 79 * don't. Overriding this function is deprecated; arches that properly b10eb2d50911f9 Hector Martin 2021-03-25 80 * support non-posted accesses should implement ioremap_np() instead, which b10eb2d50911f9 Hector Martin 2021-03-25 81 * this default implementation can then use to return mappings compliant with b10eb2d50911f9 Hector Martin 2021-03-25 82 * the PCI specification. cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 83 */ cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 84 #ifndef pci_remap_cfgspace cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 85 #define pci_remap_cfgspace pci_remap_cfgspace cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 86 static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset, cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 87 size_t size) cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 88 { b10eb2d50911f9 Hector Martin 2021-03-25 @89 return ioremap_np(offset, size) ?: ioremap(offset, size); cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 90 } cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 91 #endif cf9ea8ca4a0bea Lorenzo Pieralisi 2017-04-19 92 #endif
cf9ea8ca4a0beaLorenzo Pieralisi 2017-04-19 93--
0-DAY CI Kernel Test Service
https://01.org/lkp
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Baoquan HeLe 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.
Please don't just say you need to change the return value. Explain why.
And why does it need a name change ? The new name suggests that what was simply a check function becomes now a function doing the job. Is that the intention ?
Quoted 3 lines
===
arch_ioremap()return a bool,
It is not a bool. A bool is either true or false.
Quoted 4 lines
-
IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,
Same here, not a bool either.
Quoted 9 lines
- 0 means continue to vunmap
- error code means skip vunmap and return directlyThis is taken from Kefeng's below old patch. Christoph suggested the return value because he foresaw the doablity of converting to take
GENERIC_IOREMAPon more architectures.
- [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
- https://lore.kernel.org/all/[email protected]/T/#u
Quoted 8 lines
While at it, the invocation of
arch_ioremap()need be moved to the beginning ofioremap_prot()because architectures like sh, openrisc, ia64, need do the ARCH specific io address mapping on the original physical address. And in the later patch, the address fix up code inarch_ioremap()also need be done on the original addre on some architectures.This is preparation for later patch, no functionality change.
No functionnal change, really ?
Quoted 142 lines
Signed-off-by Baoquan He <[email protected]>--- arch/arm64/include/asm/io.h | 4 ++-- arch/arm64/mm/ioremap.c | 15 ++++++++++----- include/asm-generic/io.h | 29 +++++++++++++++-------------- mm/ioremap.c | 12 ++++++++---- 4 files changed, 35 insertions(+), 25 deletions(-)arch/arm64/include/asm/io.h +2
-2@@ -139,8 +139,8 @@ extern void __memset_io(volatile void __iomem *, int, size_t);* I/O memory mapping functions. */ -bool ioremap_allowed (phys_addr_t phys_addr,size_t size,unsigned long prot); -#define ioremap_allowed ioremap_allowed +void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +#define arch_ioremap arch_ioremap#define _PAGE_IOREMAP PROT_DEVICE_nGnREarch/arm64/mm/ioremap.c +10
-5@@ -3,19 +3,24 @@#include <linux/mm.h> #include <linux/io.h> -bool ioremap_allowed (phys_addr_t phys_addr,size_t size,unsigned long prot) +void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) { -unsigned long last_addr = phys_addr + size -1 ; +unsigned long last_addr, offset; + + offset = phys_addr & (~PAGE_MASK ); + phys_addr -= offset; + size =PAGE_ALIGN (size + offset); + last_addr = phys_addr + size -1 ;/* Don't allow outside PHYS_MASK */ if (last_addr & ~PHYS_MASK ) -return false; +return IOMEM_ERR_PTR (-EINVAL );/* Don't allow RAM to be mapped. */ if (WARN_ON (pfn_is_map_memory (__phys_to_pfn (phys_addr)))) -return false; +return IOMEM_ERR_PTR (-EINVAL ); -return true; +return NULL ; }/* include/asm-generic/io.h +15
-14@@ -1049,27 +1049,28 @@ static inline void iounmap(volatile void __iomem *addr)/* * Arch code can implement the following two hooks when using GENERIC_IOREMAP -* ioremap_allowed() return a bool, -* - true means continue to remap -* - false means skip remap and return directly -* iounmap_allowed() return a bool, -* - true means continue to vunmap -* - false means skip vunmap and return directly +* arch_ioremap() return a bool, +* - IS_ERR means return an error +* - NULL means continue to remap +* - a non-NULL, non-IS_ERR pointer is returned directly +* arch_iounmap() return a bool, +* - 0 means continue to vunmap +* - error code means skip vunmap and return directly */ -#ifndef ioremap_allowed -#define ioremap_allowed ioremap_allowed -static inline bool ioremap_allowed (phys_addr_t phys_addr,size_t size, +#ifndef arch_ioremap +#define arch_ioremap arch_ioremap +static inline void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) { -return true; +return NULL ; }#endif -#ifndef iounmap_allowed -#define iounmap_allowed iounmap_allowed -static inline bool iounmap_allowed (void *addr) +#ifndef arch_iounmap +#define arch_iounmap arch_iounmap +static inline int arch_iounmap (void __iomem *addr) { -return true; +return 0 ; }#endif mm/ioremap.c +8
-4@@ -17,6 +17,13 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,unsigned long offset, vaddr;phys_addr_t last_addr;struct vm_struct *area; +void __iomem *ioaddr; + + ioaddr =arch_ioremap (phys_addr, size, prot); +if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;/* Disallow wrap-around or zero size */ last_addr = phys_addr + size -1 ;@@ -28,9 +35,6 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, phys_addr -= offset; size =PAGE_ALIGN (size + offset); -if (!ioremap_allowed (phys_addr, size, prot)) -return NULL ; - area =get_vm_area_caller (size,VM_IOREMAP ,__builtin_return_address (0 ));if (!area)@@ -52,7 +56,7 @@ void iounmap(volatile void __iomem *addr) {void *vaddr = (void *)((unsigned long )addr &PAGE_MASK ); -if (!iounmap_allowed (vaddr)) +if (arch_iounmap ((void __iomem *)addr))return ;if (is_vmalloc_addr (vaddr))
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Baoquan HeLe 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 7 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the ioremap_prot(), instead of doing it inside the arch_ioremap() function ?
Quoted 2 lines
This is a preparation patch, no functionality change.
Could this be squashed into previous patch ?
Quoted 68 lines
Signed-off-by Baoquan He <[email protected]>--- arch/arm64/include/asm/io.h | 3 ++- arch/arm64/mm/ioremap.c | 5 +++-- include/asm-generic/io.h | 4 ++-- mm/ioremap.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-)arch/arm64/include/asm/io.h +2
-1@@ -139,7 +139,8 @@ extern void __memset_io(volatile void __iomem *, int, size_t);* I/O memory mapping functions. */ -void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val);#define arch_ioremap arch_ioremap#define _PAGE_IOREMAP PROT_DEVICE_nGnREarch/arm64/mm/ioremap.c +3
-2@@ -3,9 +3,10 @@#include <linux/mm.h> #include <linux/io.h> -void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -unsigned long last_addr, offset; +unsigned long last_addr, offset, phys_addr = *paddr; offset = phys_addr & (~PAGE_MASK ); phys_addr -= offset;include/asm-generic/io.h +2
-2@@ -1059,8 +1059,8 @@ static inline void iounmap(volatile void __iomem *addr)*/ #ifndef arch_ioremap#define arch_ioremap arch_ioremap -static inline void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size, -unsigned long prot) +static inline void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size, +unsigned long *prot_val) {return NULL ; }mm/ioremap.c +1
-1@@ -19,7 +19,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,struct vm_struct *area;void __iomem *ioaddr; - ioaddr =arch_ioremap (phys_addr, size, prot); + ioaddr =arch_ioremap (&phys_addr, size, &prot);if (IS_ERR (ioaddr))return NULL ;else if (ioaddr)
Re: [PATCH v2 05/11] hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeLe 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 2 lines
With it, the old
ioremap()andiounmap()can be perfectly removed since they are duplicated with the standard functions.
I see nothing related to the preparation patches. Could this have been converted without all previous patches ? In that case I think this one should go in the begining of the series, it would help see which architectecture really needs the changes to the generic parts.
Quoted 93 lines
--- arch/hexagon/Kconfig | 1 + arch/hexagon/include/asm/io.h | 9 +++++-- arch/hexagon/mm/ioremap.c | 44 ----------------------------------- 3 files changed, 8 insertions(+), 46 deletions(-)delete mode 100644
arch/hexagon/mm/ioremap.carch/hexagon/Kconfig +1
-0@@ -25,6 +25,7 @@ config HEXAGON select NEED_SG_DMA_LENGTH select NO_IOPORT_MAP select GENERIC_IOMAP + select GENERIC_IOREMAP select GENERIC_SMP_IDLE_THREAD select STACKTRACE_SUPPORT select GENERIC_CLOCKEVENTS_BROADCASTarch/hexagon/include/asm/io.h +7
-2@@ -170,8 +170,13 @@ static inline void writel(u32 data, volatile void __iomem *addr)#define writew_relaxed __raw_writew#define writel_relaxed __raw_writel -void __iomem *ioremap (unsigned long phys_addr,unsigned long size); -#define ioremap_uc (X ,Y ) ioremap((X), (Y)) +/* +* I/O memory mapping functions. +*/ +#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ + (__HEXAGON_C_DEV << 6)) + +#define ioremap_uc (addr, size) ioremap((addr), (size))#define __raw_writel writelarch/hexagon/mm/ioremap.c deleted +0
-44@@ -1,44 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* I/O remap functions for Hexagon -* -* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. -*/ - -#include <linux/io.h> -#include <linux/vmalloc.h> -#include <linux/mm.h> - -void __iomem *ioremap (unsigned long phys_addr,unsigned long size) -{ -unsigned long last_addr, addr; -unsigned long offset = phys_addr & ~PAGE_MASK ; -struct vm_struct *area; - -pgprot_t prot =__pgprot (_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE - |(__HEXAGON_C_DEV <<6 )); - - last_addr = phys_addr + size -1 ; - -/* Wrapping not allowed */ -if (!size || (last_addr < phys_addr)) -return NULL ; - -/* Rounds up to next page size, including whole-page offset */ - size =PAGE_ALIGN (offset + size); - - area =get_vm_area (size,VM_IOREMAP ); - addr = (unsigned long )area->addr; - -if (ioremap_page_range (addr, addr+size, phys_addr, prot)) { -vunmap ((void *)addr); -return NULL ; - } - -return (void __iomem *) (offset + addr); -} - -void iounmap (const volatile void __iomem *addr) -{ -vunmap ((void *) ((unsigned long ) addr &PAGE_MASK )); -}
Niklas Schnelle
maintainerRe: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigQuoted 9 lines · Christoph Hellwig
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 252
Quoted 6 lines
arch/s390/pci/pci.c +4
-0+void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {if (!static_branch_unlikely (&have_mio)) +return (void __iomem *) *paddr; +return NULL ;This logic isn't new in the patch, but it could really use a comment as it is rather non-obvious.
Yes, makes sense. Basically we fake MMIO addresses because the s390 architecture doesn't have MMIO as a concept. That is until the PCI MIO instructions introduced pseudo-MMIO though only for specific PCI load/store instructions. Without those PCI BAR spaces as well as config space is accessed with so called function handles. As these are a bad fit for Linux' MMIO based APIs we create fake MMIO addresses (called address cookies) that encode an index into the zpci_iomap_start[] which can be decoded by our implementation of ioread*/iowrite*().
I don't think this is the right place to describe this overall scheme in detail but maybe we can leave a a good bread crumb. Maybe something like below?
/*
* When PCI MIO instructions are unavailable the "physical" address encodes
* a hint for accessing the PCI memory space it represents. Just pass it
* unchanged such that ioread/iowrite can decode it.
*/
Niklas Schnelle
maintainerRe: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 11 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for s390's special operation whenioremap()andiounmap(), then ioremap_[wc|wt]() are converted to useioremap_prot()fromGENERIC_IOREMAP.Signed-off-by Baoquan He <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>
Quoted 5 lines
--- arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++++------ arch/s390/pci/pci.c | 60 +++++--------------------------------- 3 files changed, 26 insertions(+), 61 deletions(-)
Sorry I missed this mail until now and will still need a bit of time to review and test the code as this is indeed pretty special on s390. From a first glance this does look like a nice simplification.
Just out of curiosity, I wonder why get_maintainers.pl didn't add me nor Gerald for direct CC despite the bulk of the changes affecting arch/s390/pci/*.
arch/s390/Kconfig
Quoted 2 lines
arch/s390/Kconfig +0
-0
---8<---
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Christoph HellwigQuoted 4 lines · Christoph Hellwig
Quoted 1 line · Baoquan He
+void
__iomem*arch_ioremap(phys_addr_tphys_addr,size_tsize, unsigned long prot);Please avoid the overly long lines.
Thanks for reviewing. Will break the line.
Quoted 3 lines
I also wonder if we just want a common definition with a
__weakdefault instead of duplicating it in many arch headers.
Seems __weak symbol is not suggested any more in kernel. Please see below thread.
[PATCH] kexec_file: Drop weak attribute from arch_kexec_apply_relocations[_add]
https://lore.kernel.org/all/[email protected]/T/#u
Quoted 8 lines
mm/ioremap.c void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, · line 26
Quoted 6 lines
mm/ioremap.c +5
-0+ ioaddr =arch_ioremap (phys_addr, size, prot); +if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;No need for the else here.
Do you mean changing it like this? It's fine to me if I get it correctly.
ioaddr = arch_ioremap(phys_addr, size, prot); if (IS_ERR(ioaddr)) return NULL; if (ioaddr) return ioaddr;
Thanks
Baoquan
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Christophe LeroyQuoted 11 lines · Christophe Leroy
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.
Thanks for reviewing.
Quoted 2 lines
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take GENERIC_IOREMAP method' tell the reason, no?
Quoted 4 lines
And why does it need a name change ? The new name suggests that what was simply a check function becomes now a function doing the job. Is that the intention ?
Yes, it's not a simple checking any more. It could do io address mapping inside arch_ioremap(), and could modify the passed in 'phys_addr' and 'prot' in patch 2. The ioremap_allowed() isn't appropriate to reflect those.
Quoted 7 lines
Quoted 5 lines
===
arch_ioremap()return a bool,It is not a bool. A bool is either true or false.
Thanks, I forgot to update this accordingly.
Quoted 7 lines
Quoted 5 lines
-
IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,Same here, not a bool either.
And this place.
Quoted 17 lines
Quoted 17 lines
- 0 means continue to vunmap
- error code means skip vunmap and return directlyThis is taken from Kefeng's below old patch. Christoph suggested the return value because he foresaw the doablity of converting to take
GENERIC_IOREMAPon more architectures.
- [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
- https://lore.kernel.org/all/[email protected]/T/#uWhile at it, the invocation of
arch_ioremap()need be moved to the beginning ofioremap_prot()because architectures like sh, openrisc, ia64, need do the ARCH specific io address mapping on the original physical address. And in the later patch, the address fix up code inarch_ioremap()also need be done on the original addre on some architectures.
Quoted 3 lines
Quoted 1 line
This is preparation for later patch, no functionality change.
No functionnal change, really ?
You mean the new arch_ioremap() owning different definition or the invocation of arch_ioremap() moved up is functional change? Now I am not sure about the latter one, may need update my knowledge base.
Thanks
Baoquan
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Christoph HellwigQuoted 6 lines · Christoph Hellwig
arch/arm64/include/asm/io.h extern void __memset_io(volatile void __iomem *, int, size_t); · line 143
Quoted 3 lines
arch/arm64/include/asm/io.h +2
-1-void __iomem *arch_ioremap (phys_addr_t phys_addr,size_t size,unsigned long prot); +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val);It seems a bit odd to do this in two steps vs just doing the entire change in the first patch. Any good reason for that?
I will merge patch 1~2 or 1~3 into patch 1. Earlier, I wrote the reason as below paragraph in cover letter of v1 post. Now it seems not so hard to tell and understand.
====
For patch 1~3, I don't merge them because I made them in different rounds of changing. And splitting them makes me easily describe the intention and make review easier. I can merge them after v1 reviewing if anyone thinks they should be merged.
====
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Christophe LeroyQuoted 7 lines · Christophe Leroy
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 4 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.
Quoted 7 lines
Quoted 3 lines
In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?
This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of ioremap() and the generic GENERIC_IOREMAP method for people to understand and take.
Quoted 5 lines
Quoted 3 lines
This is a preparation patch, no functionality change.
Could this be squashed into previous patch ?
Yep, will do. Thanks.
Re: [PATCH v2 03/11] mm: ioremap: allow ARCH to have its own ioremap definition
In reply to Christoph HellwigQuoted 10 lines · Christoph Hellwig
Quoted 4 lines · Baoquan He
Architectures like xtensa, arc, can be converted to
GENERIC_IOREMAP, to take standardioremap_prot()andioremap_xxx()way. But they have ARCH specific handling forioremap()method, than standardioremap()method.Do they?
For arc, the
arc_uncached_addr_spacecase can be easily handled byarch_ioremap, and the xtensa case looks very similar to that.
I am worried it will impact ioremap_prot(). Arc has selected HAVE_IOREMAP_PROT in Kconfig. Putting arc_uncached_addr_space() calling into arch_ioremap() will change ioremap_prot(), right?
And I have the same about xtensa. You can see ioremap() and ioremap_cache() will return different value since they take XCHAL_KIO_BYPASS_VADDR and XCHAL_KIO_CACHED_VADDR differently. I haven't figured out a way to handle them in arch_ioremap() differently.
static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
{
if (offset >= XCHAL_KIO_PADDR
&& offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE)
return (void*)(offset-XCHAL_KIO_PADDR+XCHAL_KIO_BYPASS_VADDR);
else
return xtensa_ioremap_nocache(offset, size);
}static inline void __iomem *ioremap_cache(unsigned long offset,
unsigned long size)
{
if (offset >= XCHAL_KIO_PADDR
&& offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE)
return (void*)(offset-XCHAL_KIO_PADDR+XCHAL_KIO_CACHED_VADDR);
else
return xtensa_ioremap_cache(offset, size);
}Quoted 4 lines
I'd really like to kill off arch definitions of ioremap going forward, as they should just be a special case of
ioremap_protby definition.
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Baoquan HeLe 23/08/2022 à 02:20, Baoquan He a écrit :
Quoted 13 lines · Christophe Leroy
Quoted 11 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.
Quoted 7 lines
Thanks for reviewing.
Quoted 2 lines
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take
GENERIC_IOREMAPmethod' tell the reason, no?
What I would like to read is _why_ you need to change the return value in order to convert to GENERIC_IOREMAP
Quoted 11 lines
Quoted 6 lines
And why does it need a name change ? The new name suggests that what was simply a check function becomes now a function doing the job. Is that the intention ?
Yes, it's not a simple checking any more. It could do io address mapping inside
arch_ioremap(), and could modify the passed in 'phys_addr' and 'prot' in patch 2. Theioremap_allowed()isn't appropriate to reflect those.
Fair enough, then all this needs to be explained in the commit message.
Quoted 37 lines
Quoted 8 lines
Quoted 6 lines
===
arch_ioremap()return a bool,It is not a bool. A bool is either true or false.
Thanks, I forgot to update this accordingly.
Quoted 7 lines
Quoted 5 lines
-
IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,Same here, not a bool either.
And this place.
Quoted 17 lines
Quoted 17 lines
- 0 means continue to vunmap
- error code means skip vunmap and return directlyThis is taken from Kefeng's below old patch. Christoph suggested the return value because he foresaw the doablity of converting to take
GENERIC_IOREMAPon more architectures.
- [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
- https://lore.kernel.org/all/[email protected]/T/#uWhile at it, the invocation of
arch_ioremap()need be moved to the beginning ofioremap_prot()because architectures like sh, openrisc, ia64, need do the ARCH specific io address mapping on the original physical address. And in the later patch, the address fix up code inarch_ioremap()also need be done on the original addre on some architectures.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
This is preparation for later patch, no functionality change.
No functionnal change, really ?
You mean the new
arch_ioremap()owning different definition or the invocation ofarch_ioremap()moved up is functional change? Now I am not sure about the latter one, may need update my knowledge base.
Both indeed. I understand that this first step is not changing much to the logic, but I think the simple fact to change the arguments and name are some how a functionnal change.
Quoted 4 lines
Thanks
Baoquan
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Baoquan HeLe 23/08/2022 à 03:19, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 7 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 4 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.Quoted 7 lines
Quoted 3 lines
In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?
Quoted 6 lines
This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.
I can't understand. Why is it difficult to do something like:
#ifndef ioremap_adjust_prot
static inline unsigned long ioremap_adjust_prot(unsigned long flags)
{
return flags;
}#endif
Then for arc you do
static inline unsigned long ioremap_adjust_prot(unsigned long flags)
{
return pgprot_val(pgprot_noncached(__pgprot(flags)));
}#define ioremap_adjust_prot ioremap_adjust_prot
By the way, could be a good opportunity to change ioremap_prot() flags type from unsigned long to pgprot_t
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
This is a preparation patch, no functionality change.
Could this be squashed into previous patch ?
Yep, will do. Thanks.
Re: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 34 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for s390's special operation whenioremap()andiounmap(), then ioremap_[wc|wt]() are converted to useioremap_prot()fromGENERIC_IOREMAP.Signed-off-by Baoquan He <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>--- arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++++------ arch/s390/pci/pci.c | 60 +++++--------------------------------- 3 files changed, 26 insertions(+), 61 deletions(-)arch/s390/Kconfig +1
-0@@ -135,6 +135,7 @@ config S390 select GENERIC_SMP_IDLE_THREAD select GENERIC_TIME_VSYSCALL select GENERIC_VDSO_TIME_NS + select GENERIC_IOREMAP select HAVE_ALIGNED_STRUCT_PAGE if SLUB select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABELarch/s390/include/asm/io.h +0
-0
arch/s390/include/asm/io.h void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr); · line 25
Quoted 9 lines
arch/s390/include/asm/io.h +1
-5@@ -22,11 +22,23 @@ void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);#define IO_SPACE_LIMIT 0 -void __iomem *ioremap_prot (phys_addr_t addr,size_t size,unsigned long prot); -void __iomem *ioremap (phys_addr_t addr,size_t size); -void __iomem *ioremap_wc (phys_addr_t addr,size_t size); -void __iomem *ioremap_wt (phys_addr_t addr,size_t size); -void iounmap (volatile void __iomem *addr); +
Checkpatch nitpick, remove the empty line addition above so as not to create two consecutive empty lines.
Quoted 62 lines
arch/s390/include/asm/io.h +16
-4+/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +#define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) + +#define ioremap_wc (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writecombine(PAGE_KERNEL))) +#define ioremap_wt (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writethrough(PAGE_KERNEL)))static inline void __iomem *ioport_map (unsigned long port,unsigned int nr) {@@ -51,10 +63,6 @@ static inline void ioport_unmap(void __iomem *p)#define pci_iomap_wc pci_iomap_wc#define pci_iomap_wc_range pci_iomap_wc_range -#define ioremap ioremap -#define ioremap_wt ioremap_wt -#define ioremap_wc ioremap_wc -#define memcpy_fromio (dst, src, count) zpci_memcpy_fromio(dst, src, count)#define memcpy_toio (dst, src, count) zpci_memcpy_toio(dst, src, count)#define memset_io (dst, val, count) zpci_memset_io(dst, val, count)arch/s390/pci/pci.c +2
-20@@ -244,64 +244,20 @@ void __iowrite64_copy(void __iomem *to, const void *from, size_t count)zpci_memcpy_toio (to, from, count); } -static void __iomem *__ioremap (phys_addr_t addr,size_t size,pgprot_t prot) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -unsigned long offset, vaddr; -struct vm_struct *area; -phys_addr_t last_addr; - - last_addr = addr + size -1 ; -if (!size || last_addr < addr) -return NULL ; -if (!static_branch_unlikely (&have_mio)) -return (void __iomem *) addr; - - offset = addr & ~PAGE_MASK ; - addr &=PAGE_MASK ; - size =PAGE_ALIGN (size + offset); - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - - vaddr = (unsigned long ) area->addr; -if (ioremap_page_range (vaddr, vaddr + size, addr, prot)) {
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 251
Quoted 10 lines
arch/s390/pci/pci.c +1
-9-free_vm_area (area); -return NULL ; - } -return (void __iomem *) ((unsigned long ) area->addr + offset); -} - -void __iomem *ioremap_prot (phys_addr_t addr,size_t size,unsigned long prot) -{ -return __ioremap (addr, size,__pgprot (prot)); +return (void __iomem *) *paddr;
Another checkpatch nitpick no space after the cast.
Quoted 19 lines
arch/s390/pci/pci.c +2
-14+return NULL ; } -EXPORT_SYMBOL (ioremap_prot); -void __iomem *ioremap (phys_addr_t addr,size_t size) +int arch_iounmap (void __iomem *addr) { -return __ioremap (addr, size,PAGE_KERNEL ); -} -EXPORT_SYMBOL (ioremap); - -void __iomem *ioremap_wc (phys_addr_t addr,size_t size) -{ -return __ioremap (addr, size,pgprot_writecombine (PAGE_KERNEL )); -} -EXPORT_SYMBOL (ioremap_wc); - -void __iomem *ioremap_wt (phys_addr_t addr,size_t size) -{
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 258
Quoted 10 lines
arch/s390/pci/pci.c +2
-8-return __ioremap (addr, size,pgprot_writethrough (PAGE_KERNEL )); -} -EXPORT_SYMBOL (ioremap_wt); - -void iounmap (volatile void __iomem *addr) -{ -if (static_branch_likely (&have_mio)) -vunmap ((__force void *) ((unsigned long ) addr &PAGE_MASK )); +if (!static_branch_likely (&have_mio)) +return -EINVAL ;
As Christoph suggested this might be a good opportunity to add a comment for this branch.
One other nitpick. The return value doesn't really matter here since anything != NULL turns iounmap() into a no-op so this looks correct but semantically I think returning -EINVAL wrongly suggests that addr was invalid. Maybe -ENXIO would be better at conveying that there is nothing to unmap.
Looking at your patch 1 another idea would be to have 3 kinds of return values for arch_iounmap() too e.g.:
arch_iounmap() return an __iomem pointer
- IS_ERR means skip vunmap and return directly
- NULL means continue to vunmap
- a non-NULL, non-IS_ERR pointer has been unmapped successfully
Then we would simply return addr in case of !static_branch_likely(&have_mio) and NULL otherwise.
What do you think? Either way no strong opinion on my side, functionally it makes no difference.
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 263
Quoted 6 lines
arch/s390/pci/pci.c +1
-1+return 0 ; } -EXPORT_SYMBOL (iounmap);/* Create a virtual mapping cookie for a PCI BAR */ static void __iomem *pci_iomap_range_fh(struct pci_dev *pdev, int bar,
Apart from the above nitpicks and suggestion this looks good to me. I did also test this with and without PCI MIO support including use of PCI MIO instructions in user-space (added in rdma-core v40).
So feel free to add:
Since it looks like there will be a v3 due to other comments anyway please Cc me on that directly and I'm sure I can upgrade the Acked-by to Reviewed-by when we're closer to the final code.
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Christophe LeroyQuoted 35 lines · Christophe Leroy
Le 23/08/2022 à 03:19, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 7 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 4 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.Quoted 7 lines
Quoted 3 lines
In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?Quoted 6 lines
This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_prot
My thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL from ioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed into ioremap_prot() need be fixed up, e.g arc;
4) the 'prot' passed into ioremap_prot() need be adjusted, e.g on arc and xtensa.
With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as arch_ioremap() and arch_iounmap(), then put case 1), 2), 3), 4) handling into arch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; how
When I investigated this, one arch_ioremap() looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.
Quoted 4 lines
By the way, could be a good opportunity to change
ioremap_prot()flags type from unsigned long topgprot_t
Tend to agree, I will give it a shot.
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Christophe LeroyQuoted 19 lines · Christophe Leroy
Le 23/08/2022 à 02:20, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 11 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.Thanks for reviewing.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take
GENERIC_IOREMAPmethod' tell the reason, no?What I would like to read is _why_ you need to change the return value in order to convert to
GENERIC_IOREMAP
I rephrase the log as below, it's OK to you? Or please help check and tell what I need to improve to better explain the reason.
====
The current io[re|un]map_allowed() hooks are used to check if the io[re|un]map() actions are qualified to proceed when taking GENERIC_IOREMAP way to do ioremap()/iounmap(). Otherwise io[re|un]map() will return NULL.
On some architectures like arc, ia64, openris, s390, sh, there are ARCH specific io address mapping to translate the passed in physical address to io address when calling ioremap(). In order to convert these architectures to take GENERIC_IOREMAP way to ioremap(), we need change the return value of hook ioremap_allowed() and iounmap_allowed(). With the change, we can move the architecture specific io address mapping into ioremap_allowed() hook, and give the mapped io address out to let ioremap_prot() return it. While at it, rename the hooks to arch_ioremap() and arch_iounmap() to reflect their new behaviour.
====
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
And why does it need a name change ? The new name suggests that what was simply a check function becomes now a function doing the job. Is that the intention ?
Quoted 6 lines
Quoted 4 lines
Yes, it's not a simple checking any more. It could do io address mapping inside
arch_ioremap(), and could modify the passed in 'phys_addr' and 'prot' in patch 2. Theioremap_allowed()isn't appropriate to reflect those.Fair enough, then all this needs to be explained in the commit message.
Sure. After we decide the hooks, I will update the log accordingly.
Quoted 42 lines
Quoted 42 lines
Quoted 9 lines
Quoted 7 lines
===
arch_ioremap()return a bool,It is not a bool. A bool is either true or false.
Thanks, I forgot to update this accordingly.
Quoted 7 lines
Quoted 5 lines
-
IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,Same here, not a bool either.
And this place.
Quoted 20 lines
Quoted 10 lines
- 0 means continue to vunmap
- error code means skip vunmap and return directlyThis is taken from Kefeng's below old patch. Christoph suggested the return value because he foresaw the doablity of converting to take
GENERIC_IOREMAPon more architectures.
- [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap()
- https://lore.kernel.org/all/[email protected]/T/#uQuoted 8 lines
While at it, the invocation of
arch_ioremap()need be moved to the beginning ofioremap_prot()because architectures like sh, openrisc, ia64, need do the ARCH specific io address mapping on the original physical address. And in the later patch, the address fix up code inarch_ioremap()also need be done on the original addre on some architectures.This is preparation for later patch, no functionality change.
No functionnal change, really ?
Quoted 7 lines
Quoted 3 lines
You mean the new
arch_ioremap()owning different definition or the invocation ofarch_ioremap()moved up is functional change? Now I am not sure about the latter one, may need update my knowledge base.Both indeed. I understand that this first step is not changing much to the logic, but I think the simple fact to change the arguments and name are some how a functionnal change.
OK, I thought the function interface change is not related to functional change. I will remove the 'no functionality change' sentence to avoid misleading. Thanks.
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
Le 23/08/2022 à 17:14, Baoquan He a écrit :
Quoted 37 lines · Christophe Leroy
Quoted 19 lines
Le 23/08/2022 à 02:20, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 11 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.Thanks for reviewing.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take
GENERIC_IOREMAPmethod' tell the reason, no?What I would like to read is _why_ you need to change the return value in order to convert to
GENERIC_IOREMAPI rephrase the log as below, it's OK to you? Or please help check and tell what I need to improve to better explain the reason.
====
The current io[re|un]map_allowed() hooks are used to check if the io[re|un]map() actions are qualified to proceed when takingGENERIC_IOREMAPway to do ioremap()/iounmap(). Otherwise io[re|un]map() will return NULL.
Quoted 11 lines
On some architectures like arc, ia64, openris, s390, sh, there are ARCH specific io address mapping to translate the passed in physical address to io address when calling
ioremap(). In order to convert these architectures to takeGENERIC_IOREMAPway toioremap(), we need change the return value of hookioremap_allowed()andiounmap_allowed(). With the change, we can move the architecture specific io address mapping intoioremap_allowed()hook, and give the mapped io address out to letioremap_prot()return it. While at it, rename the hooks toarch_ioremap()andarch_iounmap()to reflect their new behaviour.
====
That looks more in line with the type of explanation I foresee in the commit message, thanks.
Christophe
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Baoquan HeLe 23/08/2022 à 14:32, Baoquan He a écrit :
Quoted 62 lines · Christophe Leroy
Quoted 35 lines
Le 23/08/2022 à 03:19, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 7 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 4 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.Quoted 7 lines
Quoted 3 lines
In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?Quoted 6 lines
This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; how
Quoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.
A new idea that would have my preference would be to do just like we did with arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131
Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 7 lines
Quoted 4 lines
By the way, could be a good opportunity to change
ioremap_prot()flags type from unsigned long topgprot_tTend to agree, I will give it a shot.
RE: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Christophe LeroyFrom: Christophe Leroy
Quoted 52 lines
Sent: 23 August 2022 16:26
Le 23/08/2022 à 17:14, Baoquan He a écrit :
Quoted 37 lines · Christophe Leroy
Quoted 19 lines
Le 23/08/2022 à 02:20, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 11 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.Thanks for reviewing.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take
GENERIC_IOREMAPmethod' tell the reason, no?What I would like to read is _why_ you need to change the return value in order to convert to
GENERIC_IOREMAPI rephrase the log as below, it's OK to you? Or please help check and tell what I need to improve to better explain the reason.
====
The current io[re|un]map_allowed() hooks are used to check if the io[re|un]map() actions are qualified to proceed when takingGENERIC_IOREMAPway to do ioremap()/iounmap(). Otherwise io[re|un]map() will return NULL.Quoted 11 lines
On some architectures like arc, ia64, openris, s390, sh, there are ARCH specific io address mapping to translate the passed in physical address to io address when calling
ioremap(). In order to convert these architectures to takeGENERIC_IOREMAPway toioremap(), we need change the return value of hookioremap_allowed()andiounmap_allowed(). With the change, we can move the architecture specific io address mapping intoioremap_allowed()hook, and give the mapped io address out to letioremap_prot()return it. While at it, rename the hooks toarch_ioremap()andarch_iounmap()to reflect their new behaviour.
====
Quoted 2 lines
That looks more in line with the type of explanation I foresee in the commit message, thanks.
I think you also need to summarise the change itself. If the success/fail return actually changes then you really need to change something so the compiler errors unchanged code. Otherwise it is a complete recipe for disaster.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
Alexander Gordeev
maintainerRe: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to Baoquan HeOn Sat, Aug 20, 2022 at 08:31:15AM +0800, Baoquan He wrote:
Hi Baoquan,
Quoted 7 lines
arch_ioremap()return a bool,
-IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,
- 0 means continue to vunmap
- error code means skip vunmap and return directly
It would make more sense if the return values were described from the prospective of an architecture, not the caller. I.e true - unmapped, false - not supported, etc.
Quoted 5 lines
mm/ioremap.c +0
-0
mm/ioremap.c void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, · line 26
Quoted 10 lines
mm/ioremap.c +7
-0@@ -17,6 +17,13 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,unsigned long offset, vaddr;phys_addr_t last_addr;struct vm_struct *area; +void __iomem *ioaddr; + + ioaddr =arch_ioremap (phys_addr, size, prot); +if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;
It seems to me arch_ioremap() could simply return an address or an error. Then IOMEM_ERR_PTR(-ENOSYS) if the architecture does not support it reads much better than the cryptic NULL.
Probably arch_iounmap() returning error would look better too, though not sure about that.
Thanks!
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
Quoted 12 lines · Alexander Gordeev
On Sat, Aug 20, 2022 at 08:31:15AM +0800, Baoquan He wrote:
Hi Baoquan,
Quoted 7 lines
arch_ioremap()return a bool,
-IS_ERRmeans return an error
- NULL means continue to remap
- a non-NULL, non-IS_ERR pointer is returned directly
arch_iounmap()return a bool,
- 0 means continue to vunmap
- error code means skip vunmap and return directly
Quoted 3 lines
It would make more sense if the return values were described from the prospective of an architecture, not the caller. I.e true - unmapped, false - not supported, etc.
Yes, sounds reasonable to me, thanks.
While ChristopheL suggested to take another way. Please see below link. I will reply to Christophe to discuss that.
https://lore.kernel.org/all/[email protected]/T/#u
If the current arch_ioremap() way is taken, I will change the description as you said.
Quoted 12 lines
Quoted 12 lines
mm/ioremap.c +3
-0@@ -17,6 +17,13 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,unsigned long offset, vaddr;phys_addr_t last_addr;struct vm_struct *area; +void __iomem *ioaddr; + + ioaddr =arch_ioremap (phys_addr, size, prot);
Quoted 8 lines
mm/ioremap.c void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, · line 26
Quoted 4 lines
mm/ioremap.c +4
-0+if (IS_ERR (ioaddr)) +return NULL ; +else if (ioaddr) +return ioaddr;It seems to me
arch_ioremap()could simply return an address or an error. ThenIOMEM_ERR_PTR(-ENOSYS)if the architecture does not support it reads much better than the cryptic NULL.
I may not follow. Returning NULL means arch_ioremap() doesn't give out a mapped address and doesn't encounter wrong thing. NULL is a little twisting, maybe '0' is better?
Quoted 3 lines
Probably
arch_iounmap()returning error would look better too, though not sure about that.
Don't follow either. arch_iounmap() is returning error now.
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Christophe LeroyQuoted 71 lines · Christophe Leroy
Le 23/08/2022 à 14:32, Baoquan He a écrit :
Quoted 62 lines · Christophe Leroy
Quoted 35 lines
Le 23/08/2022 à 03:19, Baoquan He a écrit :
Quoted 16 lines · Christophe Leroy
Quoted 7 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 4 lines
On some architectures, the physical address need be fixed up before doing mapping, e.g, parisc. And on architectures, e.g arc, the parameter 'prot' passed into
ioremap_prot()need be adjusted too.Quoted 7 lines
Quoted 3 lines
In oder to convert them to take
GENERIC_IOREMAPmethod, we need wrap the address fixing up code and page prot adjusting code intoarch_ioremap()and pass the new address and 'prot' out forioremap_prot()handling.Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?Quoted 6 lines
This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.
Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both arch_ioremap() way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue the arch_ioremap() way. I would like to hear Christoph's opinion since he introduced the GENERIC_IOREMAP method and suggested the earlier arch_ioremap() way and change in this patchset.
include/asm-generic/io.h +7 -24
@@ -1047,35 +1047,18 @@ static inline void iounmap(volatile void __iomem *addr)#elif defined(CONFIG_GENERIC_IOREMAP )#include <linux/pgtable.h> -/* -* Arch code can implement the following two hooks when using GENERIC_IOREMAP -* arch_ioremap() return a bool, -* - IS_ERR means return an error -* - NULL means continue to remap -* - a non-NULL, non-IS_ERR pointer is returned directly -* arch_iounmap() return a bool, -* - 0 means continue to vunmap -* - error code means skip vunmap and return directly -*/ -#ifndef arch_ioremap -#define arch_ioremap arch_ioremap -static inline void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size, -unsigned long *prot_val) -{ -return NULL ; -} -#endif +void __iomem * +generic_ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot); -#ifndef arch_iounmap -#define arch_iounmap arch_iounmap -static inline int arch_iounmap (void __iomem *addr) +#ifndef ioremap_prot +#define ioremap_prot ioremap_prot +void __iomem * +ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot); { -return 0 ; +return generic_ioremap_prot (phys_addr, size, prot); }#endif -void __iomem *ioremap_prot (phys_addr_t phys_addr,size_t size, -unsigned long prot);void iounmap (volatile void __iomem *addr);#ifndef ioremap
mm/ioremap.c +2 -2
@@ -11,8 +11,8 @@#include <linux/io.h> #include <linux/export.h> -void __iomem *ioremap_prot (phys_addr_t phys_addr,size_t size, -unsigned long prot) +void __iomem * +generic_ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot) {unsigned long offset, vaddr;phys_addr_t last_addr;
Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename
In reply to David LaightHi David,
On 08/24/22 at 08:16am, David Laight wrote:
......
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 8 lines
In some architectures, there are ARCH specifici io address mapping handling when calling
ioremap()orioremap_prot(), e.g, arc, ia64, openrisc, s390, sh.In oder to convert them to take
GENERIC_IOREMAPmethod, we need change the return value of hookioremap_allowed()andiounmap_allowed(). Meanwhile, rename them toarch_ioremap()andarch_iounmap()to reflect their current behaviour.Thanks for reviewing.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Please don't just say you need to change the return value. Explain why.
The 1st paragraph and the sentence 'In oder to convert them to take
GENERIC_IOREMAPmethod' tell the reason, no?What I would like to read is _why_ you need to change the return value in order to convert to
GENERIC_IOREMAPI rephrase the log as below, it's OK to you? Or please help check and tell what I need to improve to better explain the reason.
====
The current io[re|un]map_allowed() hooks are used to check if the io[re|un]map() actions are qualified to proceed when takingGENERIC_IOREMAPway to do ioremap()/iounmap(). Otherwise io[re|un]map() will return NULL.On some architectures like arc, ia64, openris, s390, sh, there are ARCH specific io address mapping to translate the passed in physical address to io address when calling
ioremap(). In order to convert these architectures to takeGENERIC_IOREMAPway toioremap(), we need change the return value of hookioremap_allowed()andiounmap_allowed(). With the change, we can move the architecture specific io address mapping intoioremap_allowed()hook, and give the mapped io address out to letioremap_prot()return it. While at it, rename the hooks toarch_ioremap()andarch_iounmap()to reflect their new behaviour.
====
Quoted 7 lines
Quoted 2 lines
That looks more in line with the type of explanation I foresee in the commit message, thanks.
I think you also need to summarise the change itself. If the success/fail return actually changes then you really need to change something so the compiler errors unchanged code. Otherwise it is a complete recipe for disaster.
Thanks for looking into this and sorry for late response.
I am not sure if I follow you. In this patch, I just rename the old ioremap_allowed() to arch_ioremap(), and change its return value. Except of arm64 which has taken GENERIC_IOREMAP way to provide ioremap_allowed(), no other ARCHes are affected yet. This is what have been changed. Could you be more specific what I should add?
Or are you suggesting words like below sentences need be added to patch log?
If the success/fail return actually changes then you really need to change something so the compiler errors unchanged code. Otherwise it is a complete recipe for disaster.
Thanks
Baoquan
Re: [PATCH v2 05/11] hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigQuoted 6 lines · Christoph Hellwig
Quoted 2 lines · Baoquan He
With it, the old
ioremap()andiounmap()can be perfectly removed since they are duplicated with the standard functions.Can you write a somewhat better commit message explaining that it switches to the generic code that has equivalent functionality?
OK, I will rephrase like below. Please check if it's OK. ==
By taking GENERIC_IOREMAP method, the generic ioremap_prot() and iounmap() are visible and available to arch. Arch only needs to provide implementation of arch_ioremap() or arch_iounmap() if there's arch specific handling needed in its ioremap() or iounmap(). This change will simplify implementation by removing duplicated codes with generic ioremap() and iounma(), and has the equivalent functioality as before.
Quoted 5 lines
Quoted 2 lines
+#define
ioremap_uc(addr, size)ioremap((addr), (size))This is wrong and hexagon should use the asm-generic version of
ioremap_ucthat returns NULL.
I don't follow. Do you mean the function verion, but not a macro? Or define it like below?
#define ioremap_uc(addr, size) \
ioremap_prot((addr), (size), _PAGE_IOREMAP)Re: [PATCH v2 05/11] hexagon: mm: Convert to GENERIC_IOREMAP
In reply to Christophe LeroyQuoted 10 lines · Christophe Leroy
Le 20/08/2022 à 02:31, Baoquan He a écrit :
Quoted 2 lines
With it, the old
ioremap()andiounmap()can be perfectly removed since they are duplicated with the standard functions.I see nothing related to the preparation patches. Could this have been converted without all previous patches ? In that case I think this one should go in the begining of the series, it would help see which architectecture really needs the changes to the generic parts.
You are right. Hexagon basically has the same implementation as standard ioremap and iounmap code. I will move this at the beginning of patch series in next round of post. Thanks for point this out.
Quoted 94 lines
Quoted 94 lines
--- arch/hexagon/Kconfig | 1 + arch/hexagon/include/asm/io.h | 9 +++++-- arch/hexagon/mm/ioremap.c | 44 ----------------------------------- 3 files changed, 8 insertions(+), 46 deletions(-)delete mode 100644
arch/hexagon/mm/ioremap.carch/hexagon/Kconfig +1
-0@@ -25,6 +25,7 @@ config HEXAGON select NEED_SG_DMA_LENGTH select NO_IOPORT_MAP select GENERIC_IOMAP + select GENERIC_IOREMAP select GENERIC_SMP_IDLE_THREAD select STACKTRACE_SUPPORT select GENERIC_CLOCKEVENTS_BROADCASTarch/hexagon/include/asm/io.h +7
-2@@ -170,8 +170,13 @@ static inline void writel(u32 data, volatile void __iomem *addr)#define writew_relaxed __raw_writew#define writel_relaxed __raw_writel -void __iomem *ioremap (unsigned long phys_addr,unsigned long size); -#define ioremap_uc (X ,Y ) ioremap((X), (Y)) +/* +* I/O memory mapping functions. +*/ +#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ + (__HEXAGON_C_DEV << 6)) + +#define ioremap_uc (addr, size) ioremap((addr), (size))#define __raw_writel writelarch/hexagon/mm/ioremap.c deleted +0
-44@@ -1,44 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* I/O remap functions for Hexagon -* -* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. -*/ - -#include <linux/io.h> -#include <linux/vmalloc.h> -#include <linux/mm.h> - -void __iomem *ioremap (unsigned long phys_addr,unsigned long size) -{ -unsigned long last_addr, addr; -unsigned long offset = phys_addr & ~PAGE_MASK ; -struct vm_struct *area; - -pgprot_t prot =__pgprot (_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE - |(__HEXAGON_C_DEV <<6 )); - - last_addr = phys_addr + size -1 ; - -/* Wrapping not allowed */ -if (!size || (last_addr < phys_addr)) -return NULL ; - -/* Rounds up to next page size, including whole-page offset */ - size =PAGE_ALIGN (offset + size); - - area =get_vm_area (size,VM_IOREMAP ); - addr = (unsigned long )area->addr; - -if (ioremap_page_range (addr, addr+size, phys_addr, prot)) { -vunmap ((void *)addr); -return NULL ; - } - -return (void __iomem *) (offset + addr); -} - -void iounmap (const volatile void __iomem *addr) -{ -vunmap ((void *) ((unsigned long ) addr &PAGE_MASK )); -}
Re: [PATCH v2 06/11] ia64: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigQuoted 7 lines · Christoph Hellwig
Quoted 3 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for ia64's special operation whenioremap()andiounmap(), thenioremap_cache()is converted to useioremap_prot()fromGENERIC_IOREMAP.Same comment about the commit log (I won't repeat it as it applies to all conversions).
Will do.
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigQuoted 6 lines · Christoph Hellwig
Quoted 6 lines
arch/openrisc/mm/ioremap.c +2
-0+if (unlikely (!mem_init_done)) {if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) +return IOMEM_ERR_PTR (ret); v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >>PAGE_SHIFT );
Quoted 10 lines
arch/openrisc/mm/ioremap.c void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) · line 59
Quoted 7 lines
arch/openrisc/mm/ioremap.c +5
-0+if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { fixmaps_used -= (size >>PAGE_SHIFT ); +return IOMEM_ERR_PTR (ret); + } + +return (void __iomem *)(offset + (char *)v); }This code needs to go away, and all very early boot uses of ioremap need to switch to use
early_ioremapinsted.
Makes sense. On openrisc, the thing is I didn't find one place where ioremap() is called in arch code. I can cut the early ioremap out and wrap into a separate early_ioremap() function, however I don't know where to put it. Not sure if I miss anything or openrisc doesn't really need early ioremap.
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 31 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for operisc's special operation whenioremap()and iounmap.Signed-off-by Baoquan He <[email protected]>Cc Jonas Bonn <[email protected]>Cc Stefan Kristiansson <[email protected]>Cc Stafford Horne <[email protected]>--- arch/openrisc/Kconfig | 1 + arch/openrisc/include/asm/io.h | 16 ++++++++--- arch/openrisc/mm/ioremap.c | 51 +++++++++++----------------------- 3 files changed, 29 insertions(+), 39 deletions(-)arch/openrisc/Kconfig +1
-0@@ -21,6 +21,7 @@ config OPENRISC select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select GENERIC_CPU_DEVICES select HAVE_PCI select HAVE_UID16arch/openrisc/include/asm/io.h +0
-0
arch/openrisc/include/asm/io.h line 19
Quoted 5 lines
arch/openrisc/include/asm/io.h +2
-0@@ -15,6 +15,8 @@#define __ASM_OPENRISC_IO_H#include <linux/types.h> +#include <asm/pgtable.h> +#include <asm/pgalloc.h>
This seems to cause a compilation issue when building virt_defconig:
CC kernel/irq/generic-chip.o
In file included from ./include/asm-generic/pgtable-nopud.h:7,
from ./include/asm-generic/pgtable-nopmd.h:7,
from ./arch/openrisc/include/asm/pgtable.h:24,
from ./arch/openrisc/include/asm/io.h:18,
from ./include/linux/io.h:13,
from kernel/irq/generic-chip.c:7:
./include/asm-generic/pgtable-nop4d.h:9:18: error: unknown type name 'pgd_t'
9 | typedef struct { pgd_t pgd; } p4d_t;
| ^~~~~It works if we swap the order arround:
+#include <asm/pgalloc.h>
+#include <asm/pgtable.h>
Otherwise we need to add an asm/page.h include to asm/pgtable.h (which is more correct) but means you would touch more files.
Quoted 120 lines
arch/openrisc/include/asm/io.h +10
-4/* * PCI: We do not use IO ports in OpenRISC @@ -27,11 +29,17 @@#define PIO_OFFSET 0#define PIO_MASK 0 -#define ioremap ioremap -void __iomem *ioremap (phys_addr_t offset,unsigned long size); +/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap -#define iounmap iounmap -extern void iounmap (volatile void __iomem *addr); +#define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)#include <asm-generic/io.h> arch/openrisc/mm/ioremap.c +16
-35@@ -24,26 +24,18 @@ extern int mem_init_done;static unsigned int fixmaps_used__initdata ; -/* -* Remap an arbitrary physical address space into the kernel virtual -* address space. Needed when the kernel wants to access high addresses -* directly. -* -* NOTE! We need to allow non-page-aligned mappings too: we will obviously -* have to convert them into an offset in a page-aligned mapping, but the -* caller shouldn't need to know that small detail. -*/ -void __iomem *__ref ioremap (phys_addr_t addr,unsigned long size) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {phys_addr_t p;unsigned long v; -unsigned long offset, last_addr; -struct vm_struct *area =NULL ; +unsigned long offset, last_addr, addr = *paddr; +int ret = -EINVAL ;/* Don't allow wraparound or zero size */ last_addr = addr + size -1 ;if (!size || last_addr < addr) -return NULL ; +return IOMEM_ERR_PTR (ret);/* * Mappings have to be page-aligned @@ -52,32 +44,24 @@ void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) p = addr &PAGE_MASK ; size =PAGE_ALIGN (last_addr +1 ) - p; -if (likely (mem_init_done)) { - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - v = (unsigned long )area->addr; - }else { +if (unlikely (!mem_init_done)) {if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) -return NULL ; +return IOMEM_ERR_PTR (ret); v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >>PAGE_SHIFT ); - } -if (ioremap_page_range (v, v + size, p, -__pgprot (pgprot_val (PAGE_KERNEL ) | _PAGE_CI))) { -if (likely (mem_init_done)) -vfree (area->addr); -else +if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { fixmaps_used -= (size >>PAGE_SHIFT ); -return NULL ; +return IOMEM_ERR_PTR (ret); + } + +return (void __iomem *)(offset + (char *)v); } -return (void __iomem *)(offset + (char *)v); +return NULL ; } -EXPORT_SYMBOL (ioremap); -void iounmap (volatile void __iomem *addr) +int arch_iounmap (void __iomem *addr) {/* If the page is from the fixmap pool then we just clear out * the fixmap mapping. @@ -97,13 +81,10 @@ void iounmap(volatile void __iomem *addr)* ii) invalid accesses to the freed areas aren't made */ flush_tlb_all (); -return ; +return -EINVAL ; } - -return vfree ((void *)(PAGE_MASK & (unsigned long )addr)); +return 0 ; } -EXPORT_SYMBOL (iounmap); -/** * OK, this one's a bit tricky... ioremap can get called before memory is * initialized (early serial console does this) and will want to alloc a page Signature · 1 line
2.34.1
Other than that compiler issue, I fixed it and test booted this and it works well.
Stafford Horne
maintainerRe: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Baoquan HeQuoted 18 lines · Baoquan He
Quoted 6 lines · Christoph Hellwig
Quoted 6 lines
(quoted diff) +2
-0+ if (unlikely(!mem_init_done)) { if ((fixmaps_used + (size >> PAGE_SHIFT)) > FIX_N_IOREMAPS) + return IOMEM_ERR_PTR(ret); v = fix_to_virt(FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >> PAGE_SHIFT);Quoted 10 lines
Review
Quoted 7 lines
(quoted diff) +5
-0+ if (ioremap_page_range(v, v + size, p, __pgprot(*prot_val))) { fixmaps_used -= (size >> PAGE_SHIFT); + return IOMEM_ERR_PTR(ret); + } + + return (void __iomem *)(offset + (char *)v); }This code needs to go away, and all very early boot uses of ioremap need to switch to use
early_ioremapinsted.
Quoted 5 lines
Makes sense. On openrisc, the thing is I didn't find one place where
ioremap()is called in arch code. I can cut the early ioremap out and wrap into a separateearly_ioremap()function, however I don't know where to put it. Not sure if I miss anything or openrisc doesn't really need early ioremap.
Hi,
I don't know of any early_ioremap usage either in openrisc, maybe some drivers use it? However, we do not initialize any early_ioremap infrastructure in openrisc so that may cause issues if it is used.
We can try to remove it all. I tested these below additional changes and they work, if you want to add them we can see if kbuild robots pick anything up.
-Stafford
arch/openrisc/mm/ioremap.c +1 -26
@@ -22,14 +22,10 @@extern int mem_init_done; -static unsigned int fixmaps_used__initdata ; -void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -phys_addr_t p; -unsigned long v; -unsigned long offset, last_addr, addr = *paddr; +unsigned long last_addr, addr = *paddr;int ret = -EINVAL ;/* Don't allow wraparound or zero size */
@@ -37,27 +33,6 @@ arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long *prot_val)if (!size || last_addr < addr)return IOMEM_ERR_PTR (ret); -/* -* Mappings have to be page-aligned -*/ - offset = addr & ~PAGE_MASK ; - p = addr &PAGE_MASK ; - size =PAGE_ALIGN (last_addr +1 ) - p; - -if (unlikely (!mem_init_done)) { -if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) -return IOMEM_ERR_PTR (ret); - v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); - fixmaps_used += (size >>PAGE_SHIFT ); - -if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { - fixmaps_used -= (size >>PAGE_SHIFT ); -return IOMEM_ERR_PTR (ret); - } - -return (void __iomem *)(offset + (char *)v); - } -return NULL ; }
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
Quoted 25 lines · Stafford Horne
Quoted 18 lines · Baoquan He
Quoted 6 lines · Christoph Hellwig
Quoted 6 lines
(quoted diff) +2
-0+ if (unlikely(!mem_init_done)) { if ((fixmaps_used + (size >> PAGE_SHIFT)) > FIX_N_IOREMAPS) + return IOMEM_ERR_PTR(ret); v = fix_to_virt(FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >> PAGE_SHIFT);Quoted 10 lines
Review
Quoted 7 lines
(quoted diff) +5
-0+ if (ioremap_page_range(v, v + size, p, __pgprot(*prot_val))) { fixmaps_used -= (size >> PAGE_SHIFT); + return IOMEM_ERR_PTR(ret); + } + + return (void __iomem *)(offset + (char *)v); }This code needs to go away, and all very early boot uses of ioremap need to switch to use
early_ioremapinsted.Quoted 5 lines
Makes sense. On openrisc, the thing is I didn't find one place where
ioremap()is called in arch code. I can cut the early ioremap out and wrap into a separateearly_ioremap()function, however I don't know where to put it. Not sure if I miss anything or openrisc doesn't really need early ioremap.
Quoted 5 lines
Hi,
I don't know of any
early_ioremapusage either in openrisc, maybe some drivers use it? However, we do not initialize anyearly_ioremapinfrastructure in openrisc so that may cause issues if it is used.
The variable mem_init_done indicates if mem_init() is called or not. Driver should only initialize after mem_init(). With my understanding, the early ioremap is only needed by arch code.
Quoted 3 lines
We can try to remove it all. I tested these below additional changes and they work, if you want to add them we can see if kbuild robots pick anything up.
Very helpful information. Then I will remove the !mem_init_done part code as you listed below, let's see how test robots react. Thanks a lot.
Quoted 52 lines
(quoted diff) +0
-1-Staffordarch/openrisc/mm/ioremap.c +1
-26@@ -22,14 +22,10 @@extern int mem_init_done; -static unsigned int fixmaps_used__initdata ; -void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -phys_addr_t p; -unsigned long v; -unsigned long offset, last_addr, addr = *paddr; +unsigned long last_addr, addr = *paddr;int ret = -EINVAL ;/* Don't allow wraparound or zero size */ @@ -37,27 +33,6 @@ arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long *prot_val)if (!size || last_addr < addr)return IOMEM_ERR_PTR (ret); -/* -* Mappings have to be page-aligned -*/ - offset = addr & ~PAGE_MASK ; - p = addr &PAGE_MASK ; - size =PAGE_ALIGN (last_addr +1 ) - p; - -if (unlikely (!mem_init_done)) { -if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) -return IOMEM_ERR_PTR (ret); - v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); - fixmaps_used += (size >>PAGE_SHIFT ); - -if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { - fixmaps_used -= (size >>PAGE_SHIFT ); -return IOMEM_ERR_PTR (ret); - } - -return (void __iomem *)(offset + (char *)v); - } -return NULL ; }
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Stafford HorneQuoted 51 lines · Stafford Horne
Quoted 31 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for operisc's special operation whenioremap()and iounmap.Signed-off-by Baoquan He <[email protected]>Cc Jonas Bonn <[email protected]>Cc Stefan Kristiansson <[email protected]>Cc Stafford Horne <[email protected]>--- arch/openrisc/Kconfig | 1 + arch/openrisc/include/asm/io.h | 16 ++++++++--- arch/openrisc/mm/ioremap.c | 51 +++++++++++----------------------- 3 files changed, 29 insertions(+), 39 deletions(-)arch/openrisc/Kconfig +1
-0@@ -21,6 +21,7 @@ config OPENRISC select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select GENERIC_CPU_DEVICES select HAVE_PCI select HAVE_UID16arch/openrisc/include/asm/io.h +0
-0arch/openrisc/include/asm/io.h line 19
Quoted 5 lines
arch/openrisc/include/asm/io.h +2
-0@@ -15,6 +15,8 @@#define __ASM_OPENRISC_IO_H#include <linux/types.h> +#include <asm/pgtable.h> +#include <asm/pgalloc.h> This seems to cause a compilation issue when building
virt_defconig:CC kernel/irq/generic-chip.o In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./include/asm-generic/pgtable-nopmd.h:7, from ./arch/openrisc/include/asm/pgtable.h:24, from ./arch/openrisc/include/asm/io.h:18, from ./include/linux/io.h:13, from kernel/irq/generic-chip.c:7: ./include/asm-generic/pgtable-nop4d.h:9:18: error: unknown type name 'pgd_t' 9 | typedef struct { pgd_t pgd; } p4d_t; | ^~~~~
Quoted 4 lines
It works if we swap the order arround:
+#include <
asm/pgalloc.h>
+#include <asm/pgtable.h>
Thanks a lot, add this change to patch.
Quoted 128 lines
Otherwise we need to add an
asm/page.hinclude toasm/pgtable.h(which is more correct) but means you would touch more files.Quoted 120 lines
arch/openrisc/include/asm/io.h +10
-4/* * PCI: We do not use IO ports in OpenRISC @@ -27,11 +29,17 @@#define PIO_OFFSET 0#define PIO_MASK 0 -#define ioremap ioremap -void __iomem *ioremap (phys_addr_t offset,unsigned long size); +/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap -#define iounmap iounmap -extern void iounmap (volatile void __iomem *addr); +#define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)#include <asm-generic/io.h> arch/openrisc/mm/ioremap.c +16
-35@@ -24,26 +24,18 @@ extern int mem_init_done;static unsigned int fixmaps_used__initdata ; -/* -* Remap an arbitrary physical address space into the kernel virtual -* address space. Needed when the kernel wants to access high addresses -* directly. -* -* NOTE! We need to allow non-page-aligned mappings too: we will obviously -* have to convert them into an offset in a page-aligned mapping, but the -* caller shouldn't need to know that small detail. -*/ -void __iomem *__ref ioremap (phys_addr_t addr,unsigned long size) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {phys_addr_t p;unsigned long v; -unsigned long offset, last_addr; -struct vm_struct *area =NULL ; +unsigned long offset, last_addr, addr = *paddr; +int ret = -EINVAL ;/* Don't allow wraparound or zero size */ last_addr = addr + size -1 ;if (!size || last_addr < addr) -return NULL ; +return IOMEM_ERR_PTR (ret);/* * Mappings have to be page-aligned @@ -52,32 +44,24 @@ void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) p = addr &PAGE_MASK ; size =PAGE_ALIGN (last_addr +1 ) - p; -if (likely (mem_init_done)) { - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - v = (unsigned long )area->addr; - }else { +if (unlikely (!mem_init_done)) {if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) -return NULL ; +return IOMEM_ERR_PTR (ret); v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >>PAGE_SHIFT ); - } -if (ioremap_page_range (v, v + size, p, -__pgprot (pgprot_val (PAGE_KERNEL ) | _PAGE_CI))) { -if (likely (mem_init_done)) -vfree (area->addr); -else +if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { fixmaps_used -= (size >>PAGE_SHIFT ); -return NULL ; +return IOMEM_ERR_PTR (ret); + } + +return (void __iomem *)(offset + (char *)v); } -return (void __iomem *)(offset + (char *)v); +return NULL ; } -EXPORT_SYMBOL (ioremap); -void iounmap (volatile void __iomem *addr) +int arch_iounmap (void __iomem *addr) {/* If the page is from the fixmap pool then we just clear out * the fixmap mapping. @@ -97,13 +81,10 @@ void iounmap(volatile void __iomem *addr)* ii) invalid accesses to the freed areas aren't made */ flush_tlb_all (); -return ; +return -EINVAL ; } - -return vfree ((void *)(PAGE_MASK & (unsigned long )addr)); +return 0 ; } -EXPORT_SYMBOL (iounmap); -/** * OK, this one's a bit tricky... ioremap can get called before memory is * initialized (early serial console does this) and will want to alloc a page Signature · 1 line
2.34.1Other than that compiler issue, I fixed it and test booted this and it works well.
Quoted 1 line
Acked-by Stafford Horne <[email protected]>
Thanks, will add this tag when repost.
Re: [PATCH v2 07/11] openrisc: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigHi Christoph,
Le 21/08/2022 à 09:03, Christoph Hellwig a écrit :
Quoted 6 lines
Quoted 6 lines
arch/openrisc/mm/ioremap.c +2
-0+if (unlikely (!mem_init_done)) {if ((fixmaps_used + (size >>PAGE_SHIFT )) >FIX_N_IOREMAPS ) +return IOMEM_ERR_PTR (ret); v =fix_to_virt (FIX_IOREMAP_BEGIN + fixmaps_used); fixmaps_used += (size >>PAGE_SHIFT );
Quoted 11 lines
arch/openrisc/mm/ioremap.c void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) · line 59
Quoted 7 lines
arch/openrisc/mm/ioremap.c +5
-0+if (ioremap_page_range (v, v + size, p,__pgprot (*prot_val))) { fixmaps_used -= (size >>PAGE_SHIFT ); +return IOMEM_ERR_PTR (ret); + } + +return (void __iomem *)(offset + (char *)v); }This code needs to go away, and all very early boot uses of ioremap need to switch to use
early_ioremapinsted.
early_ioremap() is not that easy to use. I don't know in this particular openrisc context, but in powerpc we have many places that use ioremap() very early.
Three years ago we implemented EARLY_IOREMAP, commit d538aadc2718 ("powerpc/ioremap: warn on early use of ioremap()") added a warning to identify all places using ioremap() early with the target being to get rid of early usage of ioremap. But it turned that using early_ioremap() is not that easy.
The problem with early_ioremap() is that it installs ephemeral mappings that must be freed before the end of init. Most early uses of ioremap() in powerpc are to install mappings that will last for life.
If we could have something that works like memblock_alloc() and allows to keep the allocation forever, then it would be a lot easier to use early_ioremap() and we could get rid of the early handling of ioremap() in powerpc.
Christophe
Re: [PATCH v2 08/11] parisc: mm: Convert to GENERIC_IOREMAP
In reply to kernel test robotHi,
Quoted 21 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: parisc-randconfig-r005-20220820 (https://download.01.org/0day-ci/archive/20220820/202208201135.YyN9CXsu-lkp(a)intel.com/config) compiler: hppa-linux-gcc (GCC) 12.1.0reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout570f2a3347cc83c9ea71d3dbbebfad8ea085ecc6
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc prepare
Quoted 2 lines
If you fix the issue, kindly add following tag where applicable
Reported-by kernel test robot <[email protected]>
I finally installed below RPM packages and run command to reproduce the build errors. Thanks for your help, Helge.
binutils-hppa64-linux-gnu
gcc-hppa64-linux-gnu
binutils-hppa-linux-gnu
gcc-hppa-linux-gnu
make ARCH=parisc defconfig
make ARCH=parisc -j320 CROSS_COMPILE=/usr/bin/hppa-linux-gnu- make ARCH=parisc64 defconfig
make ARCH=parisc64 -j320 CROSS_COMPILE=/usr/bin/hppa64-linux-gnu-
The below draft patch can fix all build errors. There are some symbol declaration or defination conflict among asm-generic/io.h, asm-generic/iomap.h, asm-generic/pci-iomap.h and asm/io.h. Some of them may need be taken out to be an independent patch since it could be a generic issue if enable GENERIC_IOREMAP. I saw the build error on superH too.
arch/parisc/include/asm/io.h +30 -1
@@ -126,7 +126,7 @@ static inline void gsc_writeq(unsigned long long val, unsigned long addr)* I/O memory mapping functions. */ void __iomem * -arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long prot); +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val);#define arch_ioremap arch_ioremap#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \
@@ -137,6 +137,8 @@ arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long prot);#define ioremap_uc (addr, size) \ ioremap_prot((addr), (size), _PAGE_IOREMAP) +#define ARCH_HAS_IOREMAP_WC +static inline unsigned char __raw_readb (const volatile void __iomem *addr) {return (*(volatile unsigned char __force *) (addr));
@@ -205,6 +207,15 @@ static inline void writeq(unsigned long long q, volatile void __iomem *addr)__raw_writeq ((__u64 __force )cpu_to_le64 (q), addr); } +#define __raw_readb __raw_readb +#define __raw_readw __raw_readw +#define __raw_readl __raw_readl +#define __raw_readq __raw_readq +#define __raw_writeb __raw_writeb +#define __raw_writew __raw_writew +#define __raw_writel __raw_writel +#define __raw_writeq __raw_writeq +#define readb readb#define readw readw#define readl readl
@@ -223,6 +234,9 @@ static inline void writeq(unsigned long long q, volatile void __iomem *addr)#define writel_relaxed (l, addr) writel(l, addr)#define writeq_relaxed (q, addr) writeq(q, addr) +#define memset_io memset_io +#define memcpy_fromio memcpy_fromio +#define memcpy_toio memcpy_toiovoid memset_io (volatile void __iomem *addr,unsigned char val,int count);void memcpy_fromio (void *dst,const volatile void __iomem *src,int count);void memcpy_toio (volatile void __iomem *dst,const void *src,int count);
@@ -244,10 +258,17 @@ extern void eisa_out16(unsigned short data, unsigned short port);extern void eisa_out32 (unsigned int data,unsigned short port);#if defined(CONFIG_PCI ) +#define inb inb +#define inw inw +#define inl inlextern unsigned char inb (int addr);extern unsigned short inw (int addr);extern unsigned int inl (int addr); +#define outb outb +#define outw outw +#define outl outl +#define inl inlextern void outb (unsigned char b,int addr);extern void outw (unsigned short b,int addr);extern void outl (unsigned int b,int addr);
@@ -292,6 +313,13 @@ extern void outsb (unsigned long port, const void *src, unsigned long count);extern void outsw (unsigned long port,const void *src,unsigned long count);extern void outsl (unsigned long port,const void *src,unsigned long count); +#define insb insb +#define insw insw +#define insl insl +#define outsb outsb +#define outsw outsw +#define outsl outsl +/* IO Port space is : BBiiii where BB is HBA number. */ #define IO_SPACE_LIMIT 0x00ffffff
@@ -320,6 +348,7 @@ extern void iowrite64be(u64 val, void __iomem *addr);*/ #define xlate_dev_mem_ptr (p) __va(p) +#include <asm-generic/io.h> extern int devmem_is_allowed (unsigned long pfn);#endif
include/asm-generic/iomap.h +22 -0
@@ -26,12 +26,19 @@* in the low address range. Architectures for which this is not * true can't use this generic implementation. */ +#define ioread8 ioread8 +#define ioread16 ioread16 +#define ioread16be ioread16be +#define ioread32 ioread32 +#define ioread32be ioread32beextern unsigned int ioread8 (const void __iomem *);extern unsigned int ioread16 (const void __iomem *);extern unsigned int ioread16be (const void __iomem *);extern unsigned int ioread32 (const void __iomem *);extern unsigned int ioread32be (const void __iomem *);#ifdef CONFIG_64BIT +#define ioread64 ioread64 +#define ioread64be ioread64beextern u64 ioread64 (const void __iomem *);extern u64 ioread64be (const void __iomem *);#endif
@@ -47,12 +54,19 @@ extern u64 ioread64be_lo_hi(const void __iomem *addr);extern u64 ioread64be_hi_lo (const void __iomem *addr);#endif +#define iowrite8 iowrite8 +#define iowrite16 iowrite16 +#define iowrite16be iowrite16be +#define iowrite32 iowrite32 +#define iowrite32be iowrite32beextern void iowrite8 (u8 ,void __iomem *);extern void iowrite16 (u16 ,void __iomem *);extern void iowrite16be (u16 ,void __iomem *);extern void iowrite32 (u32 ,void __iomem *);extern void iowrite32be (u32 ,void __iomem *);#ifdef CONFIG_64BIT +#define iowrite64 iowrite64 +#define iowrite64be iowrite64beextern void iowrite64 (u64 ,void __iomem *);extern void iowrite64be (u64 ,void __iomem *);#endif
@@ -79,16 +93,24 @@ extern void iowrite64be_hi_lo(u64 val, void __iomem *addr);* memory across multiple ports, use "memcpy_toio()" * and friends. */ +#define ioread8_rep ioread8_rep +#define ioread16_rep ioread16_rep +#define ioread32_rep ioread32_repextern void ioread8_rep (const void __iomem *port,void *buf,unsigned long count);extern void ioread16_rep (const void __iomem *port,void *buf,unsigned long count);extern void ioread32_rep (const void __iomem *port,void *buf,unsigned long count); +#define iowrite8_rep iowrite8_rep +#define iowrite16_rep iowrite16_rep +#define iowrite32_rep iowrite32_repextern void iowrite8_rep (void __iomem *port,const void *buf,unsigned long count);extern void iowrite16_rep (void __iomem *port,const void *buf,unsigned long count);extern void iowrite32_rep (void __iomem *port,const void *buf,unsigned long count);#ifdef CONFIG_HAS_IOPORT_MAP /* Create a virtual mapping cookie for an IO port range */ +#define ioport_map ioport_map +#define ioport_unmap ioport_unmapextern void __iomem *ioport_map (unsigned long port,unsigned int nr);extern void ioport_unmap (void __iomem *);#endif
include/asm-generic/pci_iomap.h +1 -0
@@ -19,6 +19,7 @@ extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,unsigned long offset, unsigned long maxlen);extern void pci_iounmap (struct pci_dev *dev,void __iomem *); +#define pci_iounmap pci_iounmap/* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */
Re: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Niklas SchnelleHi Niklas,
Quoted 36 lines · Niklas Schnelle
Quoted 35 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for s390's special operation whenioremap()andiounmap(), then ioremap_[wc|wt]() are converted to useioremap_prot()fromGENERIC_IOREMAP.Signed-off-by Baoquan He <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>--- arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++++------ arch/s390/pci/pci.c | 60 +++++--------------------------------- 3 files changed, 26 insertions(+), 61 deletions(-)arch/s390/Kconfig +1
-0@@ -135,6 +135,7 @@ config S390 select GENERIC_SMP_IDLE_THREAD select GENERIC_TIME_VSYSCALL select GENERIC_VDSO_TIME_NS + select GENERIC_IOREMAP select HAVE_ALIGNED_STRUCT_PAGE if SLUB select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABELarch/s390/include/asm/io.h +0
-0@@ -22,11 +22,23 @@ void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);
Quoted 9 lines
arch/s390/include/asm/io.h void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr); · line 25
Quoted 8 lines
arch/s390/include/asm/io.h +1
-5#define IO_SPACE_LIMIT 0 -void __iomem *ioremap_prot (phys_addr_t addr,size_t size,unsigned long prot); -void __iomem *ioremap (phys_addr_t addr,size_t size); -void __iomem *ioremap_wc (phys_addr_t addr,size_t size); -void __iomem *ioremap_wt (phys_addr_t addr,size_t size); -void iounmap (volatile void __iomem *addr); +
Thanks a lot for reviewing, and sorry for late response.
Quoted 2 lines
Checkpatch nitpick, remove the empty line addition above so as not to create two consecutive empty lines.
Will do, thanks.
Quoted 67 lines
Quoted 67 lines
arch/s390/include/asm/io.h +16
-4+/* +* I/O memory mapping functions. +*/ +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val); +#define arch_ioremap arch_ioremap + +int arch_iounmap (void __iomem *addr); +#define arch_iounmap arch_iounmap + +#define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) + +#define ioremap_wc (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writecombine(PAGE_KERNEL))) +#define ioremap_wt (addr, size) \ + ioremap_prot((addr), (size), pgprot_val(pgprot_writethrough(PAGE_KERNEL)))static inline void __iomem *ioport_map (unsigned long port,unsigned int nr) {@@ -51,10 +63,6 @@ static inline void ioport_unmap(void __iomem *p)#define pci_iomap_wc pci_iomap_wc#define pci_iomap_wc_range pci_iomap_wc_range -#define ioremap ioremap -#define ioremap_wt ioremap_wt -#define ioremap_wc ioremap_wc -#define memcpy_fromio (dst, src, count) zpci_memcpy_fromio(dst, src, count)#define memcpy_toio (dst, src, count) zpci_memcpy_toio(dst, src, count)#define memset_io (dst, val, count) zpci_memset_io(dst, val, count)arch/s390/pci/pci.c +2
-24@@ -244,64 +244,20 @@ void __iowrite64_copy(void __iomem *to, const void *from, size_t count)zpci_memcpy_toio (to, from, count); } -static void __iomem *__ioremap (phys_addr_t addr,size_t size,pgprot_t prot) +void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -unsigned long offset, vaddr; -struct vm_struct *area; -phys_addr_t last_addr; - - last_addr = addr + size -1 ; -if (!size || last_addr < addr) -return NULL ; -if (!static_branch_unlikely (&have_mio)) -return (void __iomem *) addr; - - offset = addr & ~PAGE_MASK ; - addr &=PAGE_MASK ; - size =PAGE_ALIGN (size + offset); - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - - vaddr = (unsigned long ) area->addr; -if (ioremap_page_range (vaddr, vaddr + size, addr, prot)) { -free_vm_area (area); -return NULL ; - } -return (void __iomem *) ((unsigned long ) area->addr + offset);
Quoted 8 lines
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 251
Quoted 6 lines
arch/s390/pci/pci.c +1
-5-} - -void __iomem *ioremap_prot (phys_addr_t addr,size_t size,unsigned long prot) -{ -return __ioremap (addr, size,__pgprot (prot)); +return (void __iomem *) *paddr;Another checkpatch nitpick no space after the cast.
Will fix.
Quoted 40 lines
Quoted 20 lines
arch/s390/pci/pci.c +2
-14+return NULL ; } -EXPORT_SYMBOL (ioremap_prot); -void __iomem *ioremap (phys_addr_t addr,size_t size) +int arch_iounmap (void __iomem *addr) { -return __ioremap (addr, size,PAGE_KERNEL ); -} -EXPORT_SYMBOL (ioremap); - -void __iomem *ioremap_wc (phys_addr_t addr,size_t size) -{ -return __ioremap (addr, size,pgprot_writecombine (PAGE_KERNEL )); -} -EXPORT_SYMBOL (ioremap_wc); - -void __iomem *ioremap_wt (phys_addr_t addr,size_t size) -{arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 258
Quoted 10 lines
arch/s390/pci/pci.c +2
-8-return __ioremap (addr, size,pgprot_writethrough (PAGE_KERNEL )); -} -EXPORT_SYMBOL (ioremap_wt); - -void iounmap (volatile void __iomem *addr) -{ -if (static_branch_likely (&have_mio)) -vunmap ((__force void *) ((unsigned long ) addr &PAGE_MASK )); +if (!static_branch_likely (&have_mio)) +return -EINVAL ;As Christoph suggested this might be a good opportunity to add a comment for this branch.
One other nitpick. The return value doesn't really matter here since anything != NULL turns
iounmap()into a no-op so this looks correct but semantically I think returning-EINVALwrongly suggests that addr was invalid. Maybe-ENXIOwould be better at conveying that there is nothing to unmap.
Quoted 7 lines
Looking at your patch 1 another idea would be to have 3 kinds of return values for
arch_iounmap()too e.g.:
arch_iounmap()return an__iomempointer
-IS_ERRmeans skip vunmap and return directly
- NULL means continue to vunmap
- a non-NULL, non-IS_ERR pointer has been unmapped successfully
I agree with you, The returned -EINVAL does cause confusion.
I checked all ARCHes related in this patchset, we only do the arch specific address filtering (or address checking), then call vunmap(). Seems no error case or error handling in iounmap(). I'm thinking if we should make the return value as boolean value. Ture indicates address checking passed, false indicates not passed.
Quoted 18 lines
Then we would simply return addr in case of !static_branch_likely(&have_mio) and NULL otherwise.
What do you think? Either way no strong opinion on my side, functionally it makes no difference.
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 263
Quoted 6 lines
arch/s390/pci/pci.c +1
-1+return 0 ; } -EXPORT_SYMBOL (iounmap);/* Create a virtual mapping cookie for a PCI BAR */ static void __iomem *pci_iomap_range_fh(struct pci_dev *pdev, int bar,Apart from the above nitpicks and suggestion this looks good to me. I did also test this with and without PCI MIO support including use of PCI MIO instructions in user-space (added in rdma-core v40).
Quoted 7 lines
So feel free to add:
Tested-by Niklas Schnelle <[email protected]>Acked-by Niklas Schnelle <[email protected]>Since it looks like there will be a v3 due to other comments anyway please Cc me on that directly and I'm sure I can upgrade the Acked-by to Reviewed-by when we're closer to the final code.
Sure, I will add you in Cc when repost. Thank again for these details.
Quoted 1 line
Re: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Niklas SchnelleQuoted 18 lines · Niklas Schnelle
Quoted 11 lines · Baoquan He
Add hooks
arch_ioremap()andarch_iounmap()for s390's special operation whenioremap()andiounmap(), then ioremap_[wc|wt]() are converted to useioremap_prot()fromGENERIC_IOREMAP.Signed-off-by Baoquan He <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>Quoted 5 lines
--- arch/s390/Kconfig | 1 + arch/s390/include/asm/io.h | 26 +++++++++++------ arch/s390/pci/pci.c | 60 +++++--------------------------------- 3 files changed, 26 insertions(+), 61 deletions(-)
Quoted 7 lines
Sorry I missed this mail until now and will still need a bit of time to review and test the code as this is indeed pretty special on s390. From a first glance this does look like a nice simplification.
Just out of curiosity, I wonder why get_maintainers.pl didn't add me nor Gerald for direct CC despite the bulk of the changes affecting
arch/s390/pci/*.
I run below script again, it does print you and Gerald's name in the list. It must be me who made mistake when copying maintainers' name into Cc. Sorry about that../scripts/get_maintainer.pl 0009-s390-mm-Convert-to-GENERIC_IOREMAP.patch
Quoted 5 lines
arch/s390/Kconfig
Quoted 3 lines
arch/s390/Kconfig +0
-0---8<---
Re: [PATCH v2 09/11] s390: mm: Convert to GENERIC_IOREMAP
In reply to Niklas SchnelleQuoted 24 lines · Niklas Schnelle
Quoted 9 lines · Christoph Hellwig
arch/s390/pci/pci.c void __iowrite64_copy(void __iomem *to, const void *from, size_t count) · line 252
Quoted 6 lines
arch/s390/pci/pci.c +4
-0+void __iomem * +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {if (!static_branch_unlikely (&have_mio)) +return (void __iomem *) *paddr; +return NULL ;This logic isn't new in the patch, but it could really use a comment as it is rather non-obvious.
Yes, makes sense. Basically we fake MMIO addresses because the s390 architecture doesn't have MMIO as a concept. That is until the PCI MIO instructions introduced pseudo-MMIO though only for specific PCI load/store instructions. Without those PCI BAR spaces as well as config space is accessed with so called function handles. As these are a bad fit for Linux' MMIO based APIs we create fake MMIO addresses (called address cookies) that encode an index into the zpci_iomap_start[] which can be decoded by our implementation of ioread*/iowrite*().
I don't think this is the right place to describe this overall scheme in detail but maybe we can leave a a good bread crumb. Maybe something like below?
Quoted 5 lines
/*
* When PCI MIO instructions are unavailable the "physical" address encodes
* a hint for accessing the PCI memory space it represents. Just pass it
* unchanged such that ioread/iowrite can decode it.
*/
Thanks. Looks good to me, I will add these to above the code.
Quoted 1 line
Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
In reply to Christoph HellwigQuoted 5 lines · Christoph Hellwig
Review
Quoted 3 lines
(quoted diff) +3
-0+void __iomem * +arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long *prot_val); +#define arch_ioremap arch_ioremapShouldn't this still be under
CONFIG_MMU?
Yeah, you are right, will put them under CONFIG_MMU.
I thought making GENERIC_IOREMAP depend MMU in Kconfig will contain that. But people can manually set the Kconfig item freely. Thanks for pointing it out.
arch/sh/Kconfig +1 -0
@@ -25,6 +25,7 @@ config SUPERH select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD select GUP_GET_PTE_LOW_HIGH if X2TLB + select GENERIC_IOREMAP if MMU
Quoted 1 line
Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
In reply to kernel test robotHi,
Quoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0
Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e58bc5f0a49261398fafbd90e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout503a31451202f89e58bc5f0a49261398fafbd90e
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare
I can only find binutils-sh-linux-gnu on fedora, but no gcc-sh-linux-gnu for cross compiling superh kernel. So I tried above steps, but it failed as below, any suggestion I can fix it to proceed for reproducing the reporting issues? Thanks in advance.
[root(a)ampere-mtsnow-altra-09 ~]# ls
0day anaconda-ks.cfg bin config EFI_BOOT_ENTRY.TXT linux NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT [root(a)ampere-mtsnow-altra-09 ~]# ls 0day/gcc-12.1.0-nolibc/sh4-linux/bin/
sh4-linux-addr2line sh4-linux-elfedit sh4-linux-gcc-ranlib sh4-linux-ld sh4-linux-objdump sh4-linux-strip sh4-linux-ar sh4-linux-gcc sh4-linux-gcov sh4-linux-ld.bfd sh4-linux-ranlib sh4-linux-as sh4-linux-gcc-12.1.0 sh4-linux-gcov-dump sh4-linux-lto-dump sh4-linux-readelf sh4-linux-c++filt sh4-linux-gcc-ar sh4-linux-gcov-tool sh4-linux-nm sh4-linux-size sh4-linux-cpp sh4-linux-gcc-nm sh4-linux-gprof sh4-linux-objcopy sh4-linux-strings
[root(a)ampere-mtsnow-altra-09 ~]# ls bin
make.cross
[root(a)ampere-mtsnow-altra-09 ~]# cd linux/
[root(a)ampere-mtsnow-altra-09 linux]# ls
arch certs CREDITS drivers init Kbuild lib Makefile README security usr block config crypto fs io_uring Kconfig LICENSES mm samples sound virt build_dir COPYING Documentation include ipc kernel MAINTAINERS net scripts tools [root(a)ampere-mtsnow-altra-09 linux]# ls build_dir/ -a
. .. arch .config .gitignore include Makefile scripts source usr
[root(a)ampere-mtsnow-altra-09 linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare Compiler will be installed in /root/0day
not a dynamic executable
make --keep-going CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y CROSS_COMPILE=/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux- --jobs=160 W=1 O=build_dir ARCH=sh prepare make[1]: Entering directory '/root/linux/build_dir'/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error
SYNC include/config/auto.conf.cmd/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error
GEN Makefile HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTLD scripts/kconfig/conf
/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: unknown compiler scripts/Kconfig.include:44: Sorry, this compiler is not supported. make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1 make[2]: *** [../Makefile:632: syncconfig] Error 2
make[1]: *** [/root/linux/Makefile:734: include/config/auto.conf.cmd] Error 2 make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'. make[1]: Failed to remake makefile 'include/config/auto.conf'.
GEN Makefile SYSHDR arch/sh/include/generated/uapi/asm/unistd_32.h SYSTBL arch/sh/include/generated/asm/syscall_table.h Error: kernelrelease not valid - run 'make prepare' to update it HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtc
make[1]: Target 'prepare' not remade because of errors. make[1]: Leaving directory '/root/linux/build_dir'
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Re: [kbuild-all] Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
Quoted 24 lines · Baoquan He
Hi,
Quoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e58bc5f0a49261398fafbd90e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout503a31451202f89e58bc5f0a49261398fafbd90e
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare
Quoted 4 lines
I can only find binutils-sh-linux-gnu on fedora, but no gcc-sh-linux-gnu for cross compiling superh kernel. So I tried above steps, but it failed as below, any suggestion I can fix it to proceed for reproducing the reporting issues? Thanks in advance.
Hi Baoquan,
Sorry for the inconvenience, /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin /sh4-linux-gcc is for x86_64 machine, as the name "ampere-mtsnow-altra", is it a arm server?
the tool for arm64 can be downloaded from https://cdn.kernel.org/pub/tools/crosstool/files/bin/arm64/12.1.0/
Best Regards,
Rong Chen
Quoted 89 lines
[root@ampere-mtsnow-altra-09 ~]# ls
0day anaconda-ks.cfg bin config EFI_BOOT_ENTRY.TXT linux NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT [root@ampere-mtsnow-altra-09 ~]# ls 0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-addr2line sh4-linux-elfedit sh4-linux-gcc-ranlib sh4-linux-ld sh4-linux-objdump sh4-linux-strip sh4-linux-ar sh4-linux-gcc sh4-linux-gcov sh4-linux-ld.bfd sh4-linux-ranlib sh4-linux-as sh4-linux-gcc-12.1.0 sh4-linux-gcov-dump sh4-linux-lto-dump sh4-linux-readelf sh4-linux-c++filt sh4-linux-gcc-ar sh4-linux-gcov-tool sh4-linux-nm sh4-linux-size sh4-linux-cpp sh4-linux-gcc-nm sh4-linux-gprof sh4-linux-objcopy sh4-linux-strings[root@ampere-mtsnow-altra-09 ~]# ls bin
make.cross
[root@ampere-mtsnow-altra-09 ~]# cd linux/
[root@ampere-mtsnow-altra-09 linux]# lsarch certs CREDITS drivers init Kbuild lib Makefile README security usr block config crypto fs io_uring Kconfig LICENSES mm samples sound virt build_dir COPYING Documentation include ipc kernel MAINTAINERS net scripts tools[root@ampere-mtsnow-altra-09 linux]# ls build_dir/ -a
. .. arch .config .gitignore includeMakefilescripts source usr[root@ampere-mtsnow-altra-09 linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare Compiler will be installed in
/root/0day
not a dynamic executable
make --keep-goingCONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux- --jobs=160 W=1 O=build_dir ARCH=sh prepare make[1]: Entering directory '/root/linux/build_dir'/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error
SYNCinclude/config/auto.conf.cmd/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format errorGEN Makefile HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTLD scripts/kconfig/conf
/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: unknown compilerscripts/Kconfig.include:44: Sorry, this compiler is not supported. make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1 make[2]: *** [../Makefile:632: syncconfig] Error 2
make[1]: *** [/root/linux/Makefile:734:include/config/auto.conf.cmd] Error 2 make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'. make[1]: Failed to remake makefile 'include/config/auto.conf'.GEN Makefile SYSHDR arch/sh/include/generated/uapi/asm/unistd_32.h SYSTBL arch/sh/include/generated/asm/syscall_table.h Error: kernelrelease not valid - run 'make prepare' to update it HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtcmake[1]: Target 'prepare' not remade because of errors. make[1]: Leaving directory '
/root/linux/build_dir'
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
_______________________________________________
kbuild-all mailing list -- [email protected] To unsubscribe send an email to [email protected]
Re: [kbuild-all] Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
Quoted 32 lines · Rong A
Quoted 24 lines · Baoquan He
Hi,
Quoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e58bc5f0a49261398fafbd90e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout503a31451202f89e58bc5f0a49261398fafbd90e
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepareQuoted 4 lines
I can only find binutils-sh-linux-gnu on fedora, but no gcc-sh-linux-gnu for cross compiling superh kernel. So I tried above steps, but it failed as below, any suggestion I can fix it to proceed for reproducing the reporting issues? Thanks in advance.
Quoted 5 lines
Hi Baoquan,
Sorry for the inconvenience,
/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc is forx86_64machine, as the name "ampere-mtsnow-altra", is it a arm server?
Oops, I thought the cross compilig can be done on any platform. Since I need test arm64 patch in this patchset, so didn't get x86 system to reproduce. Didn't realize lkp has an assumption. I will get a x86 system to test this.
Thanks for your help!
Quoted 97 lines
the tool for arm64 can be downloaded from
https://cdn.kernel.org/pub/tools/crosstool/files/bin/arm64/12.1.0/Best Regards,
Rong ChenQuoted 89 lines
[root(a)ampere-mtsnow-altra-09 ~]# ls
0day anaconda-ks.cfg bin config EFI_BOOT_ENTRY.TXT linux NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT [root(a)ampere-mtsnow-altra-09 ~]# ls 0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-addr2line sh4-linux-elfedit sh4-linux-gcc-ranlib sh4-linux-ld sh4-linux-objdump sh4-linux-strip sh4-linux-ar sh4-linux-gcc sh4-linux-gcov sh4-linux-ld.bfd sh4-linux-ranlib sh4-linux-as sh4-linux-gcc-12.1.0 sh4-linux-gcov-dump sh4-linux-lto-dump sh4-linux-readelf sh4-linux-c++filt sh4-linux-gcc-ar sh4-linux-gcov-tool sh4-linux-nm sh4-linux-size sh4-linux-cpp sh4-linux-gcc-nm sh4-linux-gprof sh4-linux-objcopy sh4-linux-strings[root(a)ampere-mtsnow-altra-09 ~]# ls bin
make.cross
[root(a)ampere-mtsnow-altra-09 ~]# cd linux/
[root(a)ampere-mtsnow-altra-09 linux]# lsarch certs CREDITS drivers init Kbuild lib Makefile README security usr block config crypto fs io_uring Kconfig LICENSES mm samples sound virt build_dir COPYING Documentation include ipc kernel MAINTAINERS net scripts tools [root(a)ampere-mtsnow-altra-09 linux]# ls build_dir/ -a. .. arch .config .gitignore include
Makefilescripts source usr[root(a)ampere-mtsnow-altra-09 linux]# COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare Compiler will be installed in
/root/0day
not a dynamic executable
make --keep-goingCONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux- --jobs=160 W=1 O=build_dir ARCH=sh prepare make[1]: Entering directory '/root/linux/build_dir'/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error
SYNCinclude/config/auto.conf.cmd/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format error/bin/sh: line 1:/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: cannot execute binary file: Exec format errorGEN Makefile HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTLD scripts/kconfig/conf
/root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: unknown compilerscripts/Kconfig.include:44: Sorry, this compiler is not supported. make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1 make[2]: *** [../Makefile:632: syncconfig] Error 2
make[1]: *** [/root/linux/Makefile:734:include/config/auto.conf.cmd] Error 2 make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'. make[1]: Failed to remake makefile 'include/config/auto.conf'.GEN Makefile SYSHDR arch/sh/include/generated/uapi/asm/unistd_32.h SYSTBL arch/sh/include/generated/asm/syscall_table.h Error: kernelrelease not valid - run 'make prepare' to update it HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtcmake[1]: Target 'prepare' not remade because of errors. make[1]: Leaving directory '
/root/linux/build_dir'
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
_______________________________________________
kbuild-all mailing list -- kbuild-all(a)lists.01.org To unsubscribe send an email to kbuild-all-leave(a)lists.01.org
Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP
In reply to kernel test robotQuoted 10 lines · kernel test robot
Hi Baoquan,
I love your patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0
Quoted 10 lines
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e58bc5f0a49261398fafbd90e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 git checkout503a31451202f89e58bc5f0a49261398fafbd90e
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare
I finally find gcc-sh-linux-gnu and its dependency on rpmfind.net, and succeeded to reproduce the building failure.
isl-0.16.1-13
cross-gcc-common
gcc-sh-linux-gnu
Based on previous fixing patch for parisc, below draft patch can fix all reported building issues on sh.
arch/sh/include/asm/io.h +5 -3
@@ -225,6 +225,9 @@ __BUILD_IOPORT_STRING(q, u64)#define IO_SPACE_LIMIT 0xffffffff/* We really want to try and get these to memcpy etc */ +#define memset_io memset_io +#define memcpy_fromio memcpy_fromio +#define memcpy_toio memcpy_toiovoid memcpy_fromio (void *,const volatile void __iomem *,unsigned long );void memcpy_toio (volatile void __iomem *,const void *,unsigned long );void memset_io (volatile void __iomem *,int ,unsigned long );
@@ -256,18 +259,17 @@ int arch_iounmap(void __iomem *addr);#define ioremap_cache (addr, size) \ ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL)) -#define ioremap_cache ioremap_cache#define ioremap_uc ioremap -#include <asm-generic/io.h> -/* * Convert a physical pointer to a virtual kernel pointer for /dev/mem * access */ #define xlate_dev_mem_ptr (p) __va(p) +#include <asm-generic/io.h> +#define ARCH_HAS_VALID_PHYS_ADDR_RANGE int valid_phys_addr_range (phys_addr_t addr,size_t size);int valid_mmap_phys_addr_range (unsigned long pfn,size_t size);
arch/sh/include/asm/io_noioport.h +7 -0
@@ -53,6 +53,13 @@ static inline void ioport_unmap(void __iomem *addr)#define outw_p (x, addr) outw((x), (addr))#define outl_p (x, addr) outl((x), (addr)) +#define insb insb +#define insw insw +#define insl insl +#define outsb outsb +#define outsw outsw +#define outsl outsl +static inline void insb (unsigned long port,void *dst,unsigned long count) {BUG ();
arch/sh/mm/ioremap.c +3 -3
@@ -72,7 +72,7 @@ __ioremap_29bit(phys_addr_t offset, unsigned long size, pgprot_t prot)#define __ioremap_29bit (offset, size, prot) NULL#endif /* CONFIG_29BIT */ -void __iomem * +void __iomem *__ref arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) {unsigned long last_addr, phys_addr = *paddr;
@@ -102,7 +102,8 @@ arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long *prot_val)* First try to remap through the PMB. * PMB entries are all pre-faulted. */ - mapped =pmb_remap_caller (phys_addr, size, pgprot, caller); + mapped =pmb_remap_caller (phys_addr, size, pgprot, +__builtin_return_address (0 ));if (mapped && !IS_ERR (mapped))return mapped;
@@ -129,7 +130,6 @@ static inline int iomapping_nontranslatable(unsigned long offset)int arch_iounmap (void __iomem *addr) {unsigned long vaddr = (unsigned long __force )addr; -struct vm_struct *p;/* * Nothing to do if there is no translatable mapping.
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
In reply to Baoquan HeHi Christophe,
Quoted 1 line · Baoquan He
On 08/23/22 at 07:03pm, Christophe Leroy wrote:
......
Quoted 61 lines
Quoted 52 lines
Quoted 46 lines
Quoted 20 lines
Quoted 10 lines
Quoted 3 lines
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 8 lines
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both
arch_ioremap()way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue thearch_ioremap()way. I would like to hear Christoph's opinion since he introduced theGENERIC_IOREMAPmethod and suggested the earlierarch_ioremap()way and change in this patchset.
I will make another round change and post. Since Christoph doesn't reply, I would like to continue with the existing arch_ioremap/arch_iounmap() hooks way if you don't have strong opinion on the new idea to reintroduce ioremap().
Quoted 64 lines
include/asm-generic/io.h +7
-24@@ -1047,35 +1047,18 @@ static inline void iounmap(volatile void __iomem *addr)#elif defined(CONFIG_GENERIC_IOREMAP )#include <linux/pgtable.h> -/* -* Arch code can implement the following two hooks when using GENERIC_IOREMAP -* arch_ioremap() return a bool, -* - IS_ERR means return an error -* - NULL means continue to remap -* - a non-NULL, non-IS_ERR pointer is returned directly -* arch_iounmap() return a bool, -* - 0 means continue to vunmap -* - error code means skip vunmap and return directly -*/ -#ifndef arch_ioremap -#define arch_ioremap arch_ioremap -static inline void __iomem *arch_ioremap (phys_addr_t *paddr,size_t size, -unsigned long *prot_val) -{ -return NULL ; -} -#endif +void __iomem * +generic_ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot); -#ifndef arch_iounmap -#define arch_iounmap arch_iounmap -static inline int arch_iounmap (void __iomem *addr) +#ifndef ioremap_prot +#define ioremap_prot ioremap_prot +void __iomem * +ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot); { -return 0 ; +return generic_ioremap_prot (phys_addr, size, prot); }#endif -void __iomem *ioremap_prot (phys_addr_t phys_addr,size_t size, -unsigned long prot);void iounmap (volatile void __iomem *addr);#ifndef ioremapmm/ioremap.c +2
-2@@ -11,8 +11,8 @@#include <linux/io.h> #include <linux/export.h> -void __iomem *ioremap_prot (phys_addr_t phys_addr,size_t size, -unsigned long prot) +void __iomem * +generic_ioremap_prot (phys_addr_t phys_addr,size_t size,unsigned long prot) {unsigned long offset, vaddr;phys_addr_t last_addr;
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
Hi Baoquan,
Le 12/09/2022 à 04:55, Baoquan He a écrit :
Quoted 75 lines
Hi Christophe,
Quoted 1 line · Baoquan He
On 08/23/22 at 07:03pm, Christophe Leroy wrote:
......
Quoted 61 lines
Quoted 52 lines
Quoted 46 lines
Quoted 20 lines
Quoted 10 lines
Quoted 3 lines
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 8 lines
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both
arch_ioremap()way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue thearch_ioremap()way. I would like to hear Christoph's opinion since he introduced theGENERIC_IOREMAPmethod and suggested the earlierarch_ioremap()way and change in this patchset.
Quoted 5 lines
I will make another round change and post. Since Christoph doesn't reply, I would like to continue with the existing arch_ioremap/arch_iounmap() hooks way if you don't have strong opinion on the new idea to reintroduce
ioremap().
I still dislike you approach with the architectures modifying local vars by reference, and as you said earlier I'm not the only one : "This is suggested too by Alexander during his v1 reviewing".
So I'd really prefer you to reconsider your approach and avoid passign pointers to local vars to architecture helpers.
Thanks
Christophe
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
Quoted 84 lines · Christophe Leroy
Hi Baoquan,
Le 12/09/2022 à 04:55, Baoquan He a écrit :
Quoted 75 lines
Hi Christophe,
Quoted 1 line · Baoquan He
On 08/23/22 at 07:03pm, Christophe Leroy wrote:
......
Quoted 61 lines
Quoted 52 lines
Quoted 46 lines
Quoted 20 lines
Quoted 10 lines
Quoted 3 lines
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 8 lines
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both
arch_ioremap()way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue thearch_ioremap()way. I would like to hear Christoph's opinion since he introduced theGENERIC_IOREMAPmethod and suggested the earlierarch_ioremap()way and change in this patchset.Quoted 5 lines
I will make another round change and post. Since Christoph doesn't reply, I would like to continue with the existing arch_ioremap/arch_iounmap() hooks way if you don't have strong opinion on the new idea to reintroduce
ioremap().
Quoted 3 lines
I still dislike you approach with the architectures modifying local vars by reference, and as you said earlier I'm not the only one : "This is suggested too by Alexander during his v1 reviewing".
Alexander suggested several helpers, as I have explained earlier, that will cause at least four helpers currently. And could be more later if new change is introduced. And the address fixup and prot modifcation are related in few architecutures. Adding all of them is is not so necessary.
Quoted 3 lines
So I'd really prefer you to reconsider your approach and avoid passign pointers to local vars to architecture helpers.
If only passing pointers to local vars is disliked, I can explain why I did so. Let me take arch_ioremap() of a64 as example. I can derefence pointer in arch_ioremap() to avoid assigning pointers to local vars. Please see below two version for comparing, and please tell which one is better.
To me, assigning pointers to local vars make code simple and clean, honestly.
******
The version in which pointers assigned to local vars looks like below. The old phys_addr is passed in, the assigning can decrease changed line.
arch/ia64/mm/ioremap.c +11 -31
@@ -30,15 +30,12 @@ early_ioremap (unsigned long phys_addr, unsigned long size) }void __iomem * -ioremap (unsigned long phys_addr,unsigned long size) +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -void __iomem *addr; -struct vm_struct *area; -unsigned long offset; -pgprot_t prot; -u64 attr; +phys_addr_t phys_addr = *paddr;unsigned long gran_base, gran_size;unsigned long page_base; +u64 attr;/* * For things in kern_memmap, we must use the same attribute
@@ -69,35 +66,18 @@ ioremap (unsigned long phys_addr, unsigned long size) page_base = phys_addr &PAGE_MASK ; size =PAGE_ALIGN (phys_addr + size) - page_base;if (efi_mem_attribute (page_base, size) &EFI_MEMORY_WB ) { - prot =PAGE_KERNEL ; - -/* -* Mappings have to be page-aligned -*/ - offset = phys_addr & ~PAGE_MASK ; - phys_addr &=PAGE_MASK ; - -/* -* Ok, go for it.. -*/ - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - - area->phys_addr = phys_addr; - addr = (void __iomem *) area->addr; -if (ioremap_page_range ((unsigned long ) addr, - (unsigned long ) addr + size, phys_addr, prot)) { -vunmap ((void __force *) addr); -return NULL ; - } - -return (void __iomem *) (offset + (char __iomem *)addr); +return NULL ; }return __ioremap_uc (phys_addr); } -EXPORT_SYMBOL (ioremap); + +int arch_iounmap (void __iomem *addr) +{ +if (REGION_NUMBER (addr) !=RGN_GATE ) +return -EINVAL ; +return 0 ; +}void __iomem *ioremap_uc (unsigned long phys_addr,unsigned long size)
*********
The version in which pointer is dereferenced directly in place. Then more lines of code are involved. And some pointer derefencing takes place in macro, so bracket is needed.
arch/ia64/mm/ioremap.c +20 -40
93 lines not on this page · raw message
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
Le 13/09/2022 à 17:11, Baoquan He a écrit :
Quoted 96 lines · Christophe Leroy
Quoted 84 lines
Hi Baoquan,
Le 12/09/2022 à 04:55, Baoquan He a écrit :
Quoted 75 lines
Hi Christophe,
Quoted 1 line · Baoquan He
On 08/23/22 at 07:03pm, Christophe Leroy wrote:
......
Quoted 61 lines
Quoted 52 lines
Quoted 46 lines
Quoted 20 lines
Quoted 10 lines
Quoted 3 lines
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 8 lines
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both
arch_ioremap()way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue thearch_ioremap()way. I would like to hear Christoph's opinion since he introduced theGENERIC_IOREMAPmethod and suggested the earlierarch_ioremap()way and change in this patchset.Quoted 5 lines
I will make another round change and post. Since Christoph doesn't reply, I would like to continue with the existing arch_ioremap/arch_iounmap() hooks way if you don't have strong opinion on the new idea to reintroduce
ioremap().Quoted 3 lines
I still dislike you approach with the architectures modifying local vars by reference, and as you said earlier I'm not the only one : "This is suggested too by Alexander during his v1 reviewing".
Alexander suggested several helpers, as I have explained earlier, that will cause at least four helpers currently. And could be more later if new change is introduced. And the address fixup and prot modifcation are related in few architecutures. Adding all of them is is not so necessary.
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
So I'd really prefer you to reconsider your approach and avoid passign pointers to local vars to architecture helpers.
If only passing pointers to local vars is disliked, I can explain why I did so. Let me take
arch_ioremap()of a64 as example. I can derefence pointer inarch_ioremap()to avoid assigning pointers to local vars. Please see below two version for comparing, and please tell which one is better.
Ok, yes I overlooked and didn't remember it right.
Quoted 3 lines
To me, assigning pointers to local vars make code simple and clean, honestly.
Well, for me it looks ood, not intellectually natural.
If I understand correctly, you do
ioremap()
--> Call arch_ioremap()
--> If the arch doesn't want to handle ioremap itself, it returns NULL
--> Then you fallback on generic handling.The arch may say "I don't want to handle it", but at the same time it blindly modifies the parameters so that the generic handling is not exacly the generic handling.
Not easy to follow for the reader. Do you have any exemple in the kernel that works more or less with the same approach ?
What I propose is
Arch specific ioremap()
--> do proper preparation
--> call generic_ioremap()
And the generic fallback implementation when the arch doesn't have a specific ioremap()
__weak ioremap()
--> call generic_ioremap().
The above looks a lot more natural and easier to follow, it is clear for the reader which function does what.
Christophe
Quoted 177 lines
******
The version in which pointers assigned to local vars looks like below. The oldphys_addris passed in, the assigning can decrease changed line.arch/ia64/mm/ioremap.c +11
-31@@ -30,15 +30,12 @@ early_ioremap (unsigned long phys_addr, unsigned long size) }void __iomem * -ioremap (unsigned long phys_addr,unsigned long size) +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -void __iomem *addr; -struct vm_struct *area; -unsigned long offset; -pgprot_t prot; -u64 attr; +phys_addr_t phys_addr = *paddr;unsigned long gran_base, gran_size;unsigned long page_base; +u64 attr;/* * For things in kern_memmap, we must use the same attribute @@ -69,35 +66,18 @@ ioremap (unsigned long phys_addr, unsigned long size) page_base = phys_addr &PAGE_MASK ; size =PAGE_ALIGN (phys_addr + size) - page_base;if (efi_mem_attribute (page_base, size) &EFI_MEMORY_WB ) { - prot =PAGE_KERNEL ; - -/* -* Mappings have to be page-aligned -*/ - offset = phys_addr & ~PAGE_MASK ; - phys_addr &=PAGE_MASK ; - -/* -* Ok, go for it.. -*/ - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - - area->phys_addr = phys_addr; - addr = (void __iomem *) area->addr; -if (ioremap_page_range ((unsigned long ) addr, - (unsigned long ) addr + size, phys_addr, prot)) { -vunmap ((void __force *) addr); -return NULL ; - } - -return (void __iomem *) (offset + (char __iomem *)addr); +return NULL ; }return __ioremap_uc (phys_addr); } -EXPORT_SYMBOL (ioremap); + +int arch_iounmap (void __iomem *addr) +{ +if (REGION_NUMBER (addr) !=RGN_GATE ) +return -EINVAL ; +return 0 ; +}void __iomem *ioremap_uc (unsigned long phys_addr,unsigned long size)*********
The version in which pointer is dereferenced directly in place. Then more lines of code are involved. And some pointer derefencing takes place in macro, so bracket is needed.arch/ia64/mm/ioremap.c +20
-40@@ -30,35 +30,32 @@ early_ioremap (unsigned long phys_addr, unsigned long size) }void __iomem * -ioremap (unsigned long phys_addr,unsigned long size) +arch_ioremap (phys_addr_t *paddr,size_t size,unsigned long *prot_val) { -void __iomem *addr; -struct vm_struct *area; -unsigned long offset; -pgprot_t prot; -u64 attr; +phys_addr_t phys_addr = *paddr;unsigned long gran_base, gran_size;unsigned long page_base; +u64 attr;/* * For things in kern_memmap, we must use the same attribute * as the rest of the kernel. For more details, see * Documentation/ia64/aliasing.rst. */ - attr =kern_mem_attribute (phys_addr, size); + attr =kern_mem_attribute (*paddr, size);if (attr &EFI_MEMORY_WB ) -return (void __iomem *)phys_to_virt (phys_addr); +return (void __iomem *)phys_to_virt (*paddr);else if (attr &EFI_MEMORY_UC ) -return __ioremap_uc (phys_addr); +return __ioremap_uc (*paddr);/* * Some chipsets don't support UC access to memory. If * WB is supported for the whole granule, we prefer that. */ - gran_base =GRANULEROUNDDOWN (phys_addr); - gran_size =GRANULEROUNDUP (phys_addr + size) - gran_base; + gran_base =GRANULEROUNDDOWN (*paddr); + gran_size =GRANULEROUNDUP (*paddr + size) - gran_base;if (efi_mem_attribute (gran_base, gran_size) &EFI_MEMORY_WB ) -return (void __iomem *)phys_to_virt (phys_addr); +return (void __iomem *)phys_to_virt (*paddr);/* * WB is not supported for the whole granule, so we can't use @@ -66,38 +63,21 @@ ioremap (unsigned long phys_addr, unsigned long size)* area with kernel page table mappings, we can use those * instead. */ - page_base = phys_addr &PAGE_MASK ; - size =PAGE_ALIGN (phys_addr + size) - page_base; + page_base = (*paddr) &PAGE_MASK ; + size =PAGE_ALIGN (*paddr + size) - page_base;if (efi_mem_attribute (page_base, size) &EFI_MEMORY_WB ) { - prot =PAGE_KERNEL ; - -/* -* Mappings have to be page-aligned -*/ - offset = phys_addr & ~PAGE_MASK ; - phys_addr &=PAGE_MASK ; - -/* -* Ok, go for it.. -*/ - area =get_vm_area (size,VM_IOREMAP ); -if (!area) -return NULL ; - - area->phys_addr = phys_addr; - addr = (void __iomem *) area->addr; -if (ioremap_page_range ((unsigned long ) addr, - (unsigned long ) addr + size, phys_addr, prot)) { -vunmap ((void __force *) addr); -return NULL ; - } - -return (void __iomem *) (offset + (char __iomem *)addr); +return NULL ; } -return __ioremap_uc (phys_addr); +return __ioremap_uc (*paddr); +} + +int arch_iounmap (void __iomem *addr) +{ +if (REGION_NUMBER (addr) !=RGN_GATE ) +return -EINVAL ; +return 0 ; } -EXPORT_SYMBOL (ioremap);void __iomem *ioremap_uc (unsigned long phys_addr,unsigned long size)
Re: [PATCH v2 02/11] mm: ioremap: fixup the physical address and page prot
Quoted 118 lines · Christophe Leroy
Le 13/09/2022 à 17:11, Baoquan He a écrit :
Quoted 96 lines · Christophe Leroy
Quoted 84 lines
Hi Baoquan,
Le 12/09/2022 à 04:55, Baoquan He a écrit :
Quoted 75 lines
Hi Christophe,
Quoted 1 line · Baoquan He
On 08/23/22 at 07:03pm, Christophe Leroy wrote:
......
Quoted 61 lines
Quoted 52 lines
Quoted 46 lines
Quoted 20 lines
Quoted 10 lines
Quoted 3 lines
Is it really the best approach ? Wouldn't it be better to have helpers to do that, those helpers being called by the
ioremap_prot(), instead of doing it inside thearch_ioremap()function ?This is suggested too by Alexander during his v1 reviewing. I tried, but feel the current way taken in this patchset is better. Because not all architecutres need the address fix up, only parisc, and only few need adjust the 'prot'. Introducing other helpers seems too much, that only increases the complexity of of
ioremap()and the genericGENERIC_IOREMAPmethod for people to understand and take.I can't understand. Why is it difficult to do something like:
#ifndef
ioremap_adjust_prot
static inline unsigned longioremap_adjust_prot(unsigned long flags){ return flags; }#endif
Quoted 7 lines
Then for arc you do
static inline unsigned long
ioremap_adjust_prot(unsigned long flags){ return pgprot_val(pgprot_noncached(__pgprot(flags))); }#define
ioremap_adjust_protioremap_adjust_protMy thinking is we have four things to do in the added hookers.
1) check if we should do ioremap on ARCHes. If not, return NULL fromioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed intoioremap_prot()need be fixed up, e.g arc;
4) the 'prot' passed intoioremap_prot()need be adjusted, e.g on arc and xtensa.With Kefeng's patches, the case 1) is handled with introduced ioremap_allowed()/iounmap_allowed(). In this patchset, what I do is rename the hooks as
arch_ioremap()andarch_iounmap(), then put case 1), 2), 3), 4) handling intoarch_ioremap(). Adding helpers to cover each case is not difficult from my side. I worry that as time goes by, those several hooks my cause issue, e.g if a new adjustment need be done, should we introduce a new helper or make do with the existed hook; howQuoted 5 lines
When I investigated this, one
arch_ioremap()looks not complicated since not all ARCHes need cover all above 4 cases. That's why I finally choose one hook. I am open to new idea, please let me know if we should change it to introduce several different helpers.Quoted 8 lines
A new idea that would have my preference would be to do just like we did with
arch_get_unmapped_area(). Look at
https://elixir.bootlin.com/linux/v6.0-rc1/source/arch/powerpc/mm/book3s64/slice.c#L638
and https://elixir.bootlin.com/linux/v6.0-rc1/source/mm/mmap.c#L2131Instead of having the generic that calls the arch specific, make it the other way round, have the arch specific call the generic after doing its specialties.
Quoted 8 lines
This sounds good. I made a draft patch to change code in generic code part, just showing what it looks like.
Both
arch_ioremap()way and the arch sepcific call the generic way look good to me. Just it will take less effort for me to continue thearch_ioremap()way. I would like to hear Christoph's opinion since he introduced theGENERIC_IOREMAPmethod and suggested the earlierarch_ioremap()way and change in this patchset.Quoted 5 lines
I will make another round change and post. Since Christoph doesn't reply, I would like to continue with the existing arch_ioremap/arch_iounmap() hooks way if you don't have strong opinion on the new idea to reintroduce
ioremap().Quoted 3 lines
I still dislike you approach with the architectures modifying local vars by reference, and as you said earlier I'm not the only one : "This is suggested too by Alexander during his v1 reviewing".
Alexander suggested several helpers, as I have explained earlier, that will cause at least four helpers currently. And could be more later if new change is introduced. And the address fixup and prot modifcation are related in few architecutures. Adding all of them is is not so necessary.
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
So I'd really prefer you to reconsider your approach and avoid passign pointers to local vars to architecture helpers.
If only passing pointers to local vars is disliked, I can explain why I did so. Let me take
arch_ioremap()of a64 as example. I can derefence pointer inarch_ioremap()to avoid assigning pointers to local vars. Please see below two version for comparing, and please tell which one is better.Ok, yes I overlooked and didn't remember it right.
Quoted 3 lines
To me, assigning pointers to local vars make code simple and clean, honestly.
Well, for me it looks ood, not intellectually natural.
If I understand correctly, you do
Quoted 8 lines
ioremap()
--> Callarch_ioremap()--> If the arch doesn't want to handle ioremap itself, it returns NULL --> Then you fallback on generic handling.The arch may say "I don't want to handle it", but at the same time it blindly modifies the parameters so that the generic handling is not exacly the generic handling.
No, it's not like that.
Arch_ioremap() provides a place where arch specific handling can be done. While it doesn't mean arch has to do all of the follow four things. From the current change I made listed as below, arch_ioremap() in each architecture is quite simple to do one or two things.
People only need to provide arch_ioremap() if needed, or do not provide arch_ioremap() at all if not needed. No such thing could hapen like you said that arch don't want to handle, but it blindly modifes the parameter.
arm64:
- address checking;
hexagon: removes the ioremap() directly since it has the same code as standard;
- N/A
arc:
- address checking
- modify the prot flag;
ia64:
- specific io address mapping
openrisc: removes ioremap() directly after its early ioremap is cleared away;
- N/A
parisc:
- physical address fixup
- address checking;
s390:
- specific io address mapping
sh:
- specific io address mapping
xtensa:
- address checking;
Four optional things could be done in arch_ioremap():
1) check if we should do ioremap on ARCHes. If not, return NULL from ioremap_prot();
2) handling the mapping io address specifically on ARCHes, e.g arc, ia64, s390;
3) the original physical address passed into ioremap_prot() need be fixed up, e.g arc;
4) the 'prot' passed into ioremap_prot() need be adjusted, e.g on arc and xtensa.
Quoted 10 lines
Not easy to follow for the reader. Do you have any exemple in the kernel that works more or less with the same approach ?
What I propose is
Arch specific
ioremap()
--> do proper preparation
--> callgeneric_ioremap()
Quoted 5 lines
And the generic fallback implementation when the arch doesn't have a specific
ioremap()
__weakioremap()
--> callgeneric_ioremap().
Hmm, __weak is not suggested any more in kernel. Please see below thread.
[PATCH] kexec_file: Drop weak attribute from arch_kexec_apply_relocations[_add]
https://lore.kernel.org/all/[email protected]/T/#u
So with arch_ioremap() hook, now in each architecture it is:
arch_ioremap() is provided and called
or
no hookd is needed at all in arch
It's simpler, isn't it?
Quoted 3 lines
The above looks a lot more natural and easier to follow, it is clear for the reader which function does what.
Before, there's only arm64 taking GENERIC_IOREMAP way and having arch_ioremap() as an exmaple. Now after this patchset, there are so many architectures taking the way, it's very easy to refer to and study, right?
Thanks
Baoquan