irq_domain generalization and rework
Subsystems (21)
v5 cover irq_domain generalization and rework
This series generalizes the "irq_host" infrastructure from powerpc so that it can be used by all architectures and renames it to "irq_domain".
Very little has changed between v4 and this version. A number of bug fixes have been applied and a few refinements. Biggest change is a rewrite of the "mostly eliminate slow-path revmap lookups" patch to be a lot simpler.
Benoit Cousson (1):
mfd: twl-core.c: Fix the number of interrupts managed by twl4030
Grant Likely (25):
irq_domain: add documentation and MAINTAINERS entry.
irq_domain: Be less verbose
irq_domain: Make irq_domain structure match powerpc's irq_host
irq_domain: convert microblaze from irq_host to irq_domain irq_domain/powerpc: Use common irq_domain structure instead of irq_host irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead irq_domain/powerpc: Eliminate virq_is_host()
irq_domain: Move irq_domain code from powerpc to kernel/irq
irq_domain: remove NO_IRQ from irq domain code
irq_domain: Remove references to old irq_host names
irq_domain: Replace irq_alloc_host() with revmap-specific initializers
irq_domain: Add support for base irq and hwirq in legacy mappings of/address: add empty static inlines for !CONFIG_OF
irq_domain: Remove 'new' irq_domain in favour of the ppc one
irq_domain: Remove irq_domain_add_simple()
irq_domain: Create common xlate functions that device drivers can use
irq_domain: constify irq_domain_ops
irq_domain/c6x: constify irq_domain structures
irq_domain/c6x: Use library of xlate functions irq_domain/powerpc: constify irq_domain_ops
irq_domain/powerpc: Replace custom xlate functions with library functions irq_domain/microblaze: Convert microblaze to use irq_domains
irq_domain: remove "hint" when allocating irq numbers
irq_domain: mostly eliminate slow-path revmap lookups
irq_domain: For NOMAP revmap, allow users to specify the largest usable virq
Mark Salter (1):
irq_domain/c6x: Convert c6x to use generic irq_domain support.
Documentation/IRQ-domain.txt | 117 ++++ MAINTAINERS | 9 + arch/arm/common/gic.c | 95 ++-- arch/arm/common/vic.c | 16 +- arch/arm/include/asm/hardware/gic.h | 4 +- arch/arm/include/asm/hardware/vic.h | 2 + arch/arm/mach-exynos/common.c | 2 +- arch/arm/mach-imx/imx51-dt.c | 4 +- arch/arm/mach-imx/imx53-dt.c | 4 +- arch/arm/mach-imx/mach-imx6q.c | 3 +- arch/arm/mach-msm/board-msm8x60.c | 8 +- arch/arm/mach-omap2/board-generic.c | 2 +- arch/arm/mach-prima2/irq.c | 2 +- arch/arm/mach-versatile/core.c | 7 +- arch/c6x/Kconfig | 1 + arch/c6x/include/asm/irq.h | 245 +------- arch/c6x/kernel/irq.c | 612 +----------------- arch/c6x/platforms/megamod-pic.c | 25 +- arch/microblaze/Kconfig | 1 + arch/microblaze/include/asm/hardirq.h | 16 - arch/microblaze/include/asm/irq.h | 42 +-- arch/microblaze/kernel/intc.c | 61 +- arch/microblaze/kernel/irq.c | 24 +- arch/microblaze/kernel/setup.c | 2 - arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/ehv_pic.h | 2 +- arch/powerpc/include/asm/i8259.h | 2 +- arch/powerpc/include/asm/irq.h | 247 +------- arch/powerpc/include/asm/mpic.h | 2 +- arch/powerpc/include/asm/xics.h | 2 +- arch/powerpc/kernel/irq.c | 617 +----------------- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c | 12 +- arch/powerpc/platforms/52xx/media5200.c | 15 +- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 16 +- arch/powerpc/platforms/52xx/mpc52xx_pic.c | 12 +- arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 14 +- arch/powerpc/platforms/85xx/socrates_fpga_pic.c | 15 +- arch/powerpc/platforms/86xx/gef_pic.c | 15 +- arch/powerpc/platforms/cell/axon_msi.c | 29 +- arch/powerpc/platforms/cell/beat_interrupt.c | 16 +- arch/powerpc/platforms/cell/interrupt.c | 16 +- arch/powerpc/platforms/cell/spider-pic.c | 14 +- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 30 +- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 35 +- arch/powerpc/platforms/iseries/irq.c | 17 +- arch/powerpc/platforms/powermac/pic.c | 26 +- arch/powerpc/platforms/powermac/smp.c | 9 +- arch/powerpc/platforms/ps3/interrupt.c | 12 +- arch/powerpc/platforms/wsp/opb_pic.c | 26 +- arch/powerpc/sysdev/cpm1.c | 9 +- arch/powerpc/sysdev/cpm2_pic.c | 23 +- arch/powerpc/sysdev/ehv_pic.c | 14 +- arch/powerpc/sysdev/fsl_msi.c | 10 +- arch/powerpc/sysdev/fsl_msi.h | 2 +- arch/powerpc/sysdev/i8259.c | 15 +- arch/powerpc/sysdev/ipic.c | 31 +- arch/powerpc/sysdev/ipic.h | 2 +- arch/powerpc/sysdev/mpc8xx_pic.c | 11 +- arch/powerpc/sysdev/mpic.c | 17 +- arch/powerpc/sysdev/mpic_msi.c | 2 +- arch/powerpc/sysdev/mv64x60_pic.c | 11 +- arch/powerpc/sysdev/qe_lib/qe_ic.c | 26 +- arch/powerpc/sysdev/qe_lib/qe_ic.h | 2 +- arch/powerpc/sysdev/tsi108_pci.c | 13 +- arch/powerpc/sysdev/uic.c | 26 +- arch/powerpc/sysdev/xics/icp-hv.c | 2 +- arch/powerpc/sysdev/xics/icp-native.c | 2 +- arch/powerpc/sysdev/xics/xics-common.c | 28 +- arch/powerpc/sysdev/xilinx_intc.c | 19 +- drivers/gpio/gpio-mpc8xxx.c | 30 +- drivers/mfd/twl-core.c | 16 +- include/linux/irqdomain.h | 183 ++++-- include/linux/of_address.h | 33 +- kernel/irq/irqdomain.c | 764 ++++++++++++++++++---- 74 files changed, 1315 insertions(+), 2482 deletions(-) create mode 100644 Documentation/IRQ-domain.txt
PATCH v5 1/27 irq_domain: add documentation and MAINTAINERS entry.
Documentation for irq_domain library which will be created in subsequent patches.
v4: editorial changes
--- Documentation/IRQ-domain.txt | 117 ++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 9 +++ 2 files changed, 126 insertions(+), 0 deletions(-) create mode 100644 Documentation/IRQ-domain.txt
Documentation/IRQ-domain.txt new file +117 -0
@@ -0,0 +1,117 @@ +irq_domain interrupt number mapping library + +The current design of the Linux kernel uses a single large number +space where each separate IRQ source is assigned a different number. +This is simple when there is only one interrupt controller, but in +systems with multiple interrupt controllers the kernel must ensure +that each one gets assigned non-overlapping allocations of Linux +IRQ numbers. + +The irq_alloc_desc*() and irq_free_desc*() APIs provide allocation of +irq numbers, but they don't provide any support for reverse mapping of +the controller-local IRQ (hwirq) number into the Linux IRQ number +space. + +The irq_domain library adds mapping between hwirq and IRQ numbers on +top of the irq_alloc_desc*() API. An irq_domain to manage mapping is +preferred over interrupt controller drivers open coding their own +reverse mapping scheme. + +irq_domain also implements translation from Device Tree interrupt +specifiers to hwirq numbers, and can be easily extended to support +other IRQ topology data sources. + +=== irq_domain usage === +An interrupt controller driver creates and registers an irq_domain by +calling one of the irq_domain_add_*() functions (each mapping method +has a different allocator function, more on that later). The function +will return a pointer to the irq_domain on success. The caller must +provide the allocator function with an irq_domain_ops structure with +the .map callback populated as a minimum. + +In most cases, the irq_domain will begin empty without any mappings +between hwirq and IRQ numbers. Mappings are added to the irq_domain +by calling irq_create_mapping() which accepts the irq_domain and a +hwirq number as arguments. If a mapping for the hwirq doesn't already +exist then it will allocate a new Linux irq_desc, associate it with +the hwirq, and call the .map() callback so the driver can perform any +required hardware setup. + +When an interrupt is received, irq_find_mapping() function should +be used to find the Linux IRQ number from the hwirq number. + +If the driver has the Linux IRQ number or the irq_data pointer, and +needs to know the associated hwirq number (such as in the irq_chip +callbacks) then it can be directly obtained from irq_data->hwirq. + +=== Types of irq_domain mappings === +There are several mechanisms available for reverse mapping from hwirq +to Linux irq, and each mechanism uses a different allocation function. +Which reverse map type should be used depends on the use case. Each +of the reverse map types are described below: + +==== Linear ==== +irq_domain_add_linear() + +The linear reverse map maintains a fixed size table indexed by the +hwirq number. When a hwirq is mapped, an irq_desc is allocated for +the hwirq, and the IRQ number is stored in the table. + +The Linear map is a good choice when the maximum number of hwirqs is +fixed and a relatively small number (~ < 256). The advantages of this +map are fixed time lookup for IRQ numbers, and irq_descs are only +allocated for in-use IRQs. The disadvantage is that the table must be +as large as the largest possible hwirq number. + +The majority of drivers should use the linear map. + +==== Tree ==== +irq_domain_add_tree() + +The irq_domain maintains a radix tree map from hwirq numbers to Linux +IRQs. When an hwirq is mapped, an irq_desc is allocated and the +hwirq is used as the lookup key for the radix tree. + +The tree map is a good choice if the hwirq number can be very large +since it doesn't need to allocate a table as large as the largest +hwirq number. The disadvantage is that hwirq to IRQ number lookup is +dependent on how many entries are in the table. + +Very few drivers should need this mapping. At the moment, powerpc +iseries is the only user. + +==== No Map ===- +irq_domain_add_nomap() + +The No Map mapping is to be used when the hwirq number is +programmable in the hardware. In this case it is best to program the +Linux IRQ number into the hardware itself so that no mapping is +required. Calling irq_create_direct_mapping() will allocate a Linux +IRQ number and call the .map() callback so that driver can program the +Linux IRQ number into the hardware. + +Most drivers cannot use this mapping. + +==== Legacy ==== +irq_domain_add_legacy() +irq_domain_add_legacy_isa() + +The Legacy mapping is a special case for drivers that already have a +range of irq_descs allocated for the hwirqs. It is used when the +driver cannot be immediately converted to use the linear mapping. For +example, many embedded system board support files use a set of #defines +for IRQ numbers that are passed to struct device registrations. In that +case the Linux IRQ numbers cannot be dynamically assigned and the legacy +mapping should be used. + +The legacy map assumes a contiguous range of IRQ numbers has already +been allocated for the controller and that the IRQ number can be +calculated by adding a fixed offset to the hwirq number, and +visa-versa. The disadvantage is that it requires the interrupt +controller to manage IRQ allocations and it requires an irq_desc to be +allocated for every hwirq, even if it is unused. + +The legacy map should only be used if fixed IRQ mappings must be +supported. For example, ISA controllers would use the legacy map for +mapping Linux IRQs 0-15 so that existing ISA drivers get the correct IRQ +numbers.
MAINTAINERS +9 -0
@@ -3640,6 +3640,15 @@ S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core F: kernel/irq/ +IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY) +M: Benjamin Herrenschmidt <[email protected]> +M: Grant Likely <[email protected]> +T: git git://git.secretlab.ca/git/linux-2.6.git irqdomain/next +S: Maintained +F: Documentation/IRQ-domain.txt +F: include/linux/irqdomain.h +F: kernel/irq/irqdomain.c + ISAPNP M: Jaroslav Kysela <[email protected]> S: Maintained
Signature · 1 line
1.7.9
PATCH v5 2/27 irq_domain: Be less verbose
In reply to Grant Likelyirq_domain printk's too much. Drop some output.
--- kernel/irq/irqdomain.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
kernel/irq/irqdomain.c +1 -3
@@ -170,13 +170,11 @@ void irq_domain_generate_simple(const struct of_device_id *match, u64 phys_base, unsigned int irq_start) { struct device_node *node; -pr_info ("looking for phys_base=%llx, irq_start=%i\n" , +pr_debug ("looking for phys_base=%llx, irq_start=%i\n" , (unsigned long long ) phys_base, (int ) irq_start); node =of_find_matching_node_by_address (NULL , match, phys_base);if (node)irq_domain_add_simple (node, irq_start); -else -pr_info ("no node found\n" ); }EXPORT_SYMBOL_GPL (irq_domain_generate_simple);#endif /* CONFIG_OF_IRQ */
Signature · 1 line
1.7.9
PATCH v5 3/27 irq_domain: Make irq_domain structure match powerpc's irq_host
In reply to Grant LikelyPart of the series to unify the irq remapping mechanisms in the kernel. A follow up patch will copy the powerpc implementation into kernel/irq/irqdomain.c, which will be a lot easier if the structures are identical.
Where they differ, I've chose to use the powerpc names since there is a lot more code using those names.
--- arch/arm/common/gic.c | 14 ++++---- include/linux/irqdomain.h | 84 ++++++++++++++++++++++++++++++++++----------- kernel/irq/irqdomain.c | 14 ++++---- 3 files changed, 78 insertions(+), 34 deletions(-)
arch/arm/common/gic.c +7 -7
@@ -619,10 +619,10 @@ static void __init gic_pm_init(struct gic_chip_data *gic)#endif #ifdef CONFIG_OF -static int gic_irq_domain_dt_translate (struct irq_domain *d, -struct device_node *controller, -const u32 *intspec,unsigned int intsize, -unsigned long *out_hwirq,unsigned int *out_type) +static int gic_irq_domain_xlate (struct irq_domain *d, +struct device_node *controller, +const u32 *intspec,unsigned int intsize, +unsigned long *out_hwirq,unsigned int *out_type) {if (d->of_node != controller)return -EINVAL ;
@@ -641,9 +641,9 @@ static int gic_irq_domain_dt_translate(struct irq_domain *d, }#endif -const struct irq_domain_ops gic_irq_domain_ops = { +struct irq_domain_ops gic_irq_domain_ops = { #ifdef CONFIG_OF - .dt_translate = gic_irq_domain_dt_translate, + .xlate = gic_irq_domain_xlate, #endif };
@@ -721,7 +721,7 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start, irq_start); domain->irq_base = irq_start; } - domain->priv = gic; + domain->host_data = gic; domain->ops = &gic_irq_domain_ops;irq_domain_add (domain);
include/linux/irqdomain.h +64 -20
125 lines not on this page · raw message
kernel/irq/irqdomain.c +7 -7
@@ -43,7 +43,7 @@ void irq_domain_add(struct irq_domain *domain) }mutex_lock (&irq_domain_mutex); -list_add (&domain->list, &irq_domain_list); +list_add (&domain->link, &irq_domain_list);mutex_unlock (&irq_domain_mutex); }
@@ -57,7 +57,7 @@ void irq_domain_del(struct irq_domain *domain)int hwirq, irq;mutex_lock (&irq_domain_mutex); -list_del (&domain->list); +list_del (&domain->link);mutex_unlock (&irq_domain_mutex);/* Clear the irq_domain assignments */
@@ -88,10 +88,10 @@ unsigned int irq_create_of_mapping(struct device_node *controller,/* Find a domain which can translate the irq spec */ mutex_lock (&irq_domain_mutex); -list_for_each_entry (domain, &irq_domain_list, list) { -if (!domain->ops->dt_translate) +list_for_each_entry (domain, &irq_domain_list, link) { +if (!domain->ops->xlate)continue ; - rc = domain->ops->dt_translate (domain, controller, + rc = domain->ops->xlate (domain, controller, intspec, intsize, &hwirq, &type);if (rc ==0 )break ;
@@ -126,7 +126,7 @@ void irq_dispose_mapping(unsigned int irq) }EXPORT_SYMBOL_GPL (irq_dispose_mapping); -int irq_domain_simple_dt_translate (struct irq_domain *d, +int irq_domain_simple_xlate (struct irq_domain *d,struct device_node *controller,const u32 *intspec,unsigned int intsize,unsigned long *out_hwirq,unsigned int *out_type)
@@ -181,7 +181,7 @@ EXPORT_SYMBOL_GPL(irq_domain_generate_simple);struct irq_domain_ops irq_domain_simple_ops = { #ifdef CONFIG_OF_IRQ - .dt_translate = irq_domain_simple_dt_translate, + .xlate = irq_domain_simple_xlate, #endif /* CONFIG_OF_IRQ */ };EXPORT_SYMBOL_GPL (irq_domain_simple_ops);
Signature · 1 line
1.7.9
PATCH v5 4/27 irq_domain: convert microblaze from irq_host to irq_domain
In reply to Grant LikelyTrivial change, microblaze doesn't use irq remapping yet.
--- arch/microblaze/include/asm/irq.h | 4 ++-- arch/microblaze/kernel/irq.c | 2 +- arch/microblaze/kernel/setup.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-)
arch/microblaze/include/asm/irq.h +2 -2
@@ -39,7 +39,7 @@ static inline void irq_dispose_mapping(unsigned int virq)return ; } -struct irq_host ; +struct irq_domain ;/** * irq_create_mapping - Map a hardware interrupt into linux virq space
@@ -51,7 +51,7 @@ struct irq_host;* If the sense/trigger is to be specified, set_irq_type() should be called * on the number returned from that call. */ -extern unsigned int irq_create_mapping (struct irq_host *host, +extern unsigned int irq_create_mapping (struct irq_domain *host,irq_hw_number_t hwirq);#endif /* _ASM_MICROBLAZE_IRQ_H */
arch/microblaze/kernel/irq.c +1 -1
@@ -51,7 +51,7 @@ next_irq:/* MS: There is no any advance mapping mechanism. We are using simple 32bit intc without any cascades or any connection that's why mapping is 1:1 */ -unsigned int irq_create_mapping (struct irq_host *host,irq_hw_number_t hwirq) +unsigned int irq_create_mapping (struct irq_domain *host,irq_hw_number_t hwirq) {return hwirq +IRQ_OFFSET ; }
arch/microblaze/kernel/setup.c +0 -2
@@ -51,8 +51,6 @@ void __init setup_arch(char **cmdline_p)unflatten_device_tree (); -/* NOTE I think that this function is not necessary to call */ -/* irq_early_init(); */ setup_cpuinfo ();microblaze_cache_init ();
Signature · 1 line
1.7.9
PATCH v5 5/27 irq_domain/powerpc: Use common irq_domain structure instead of irq_host
In reply to Grant LikelyThis patch drops the powerpc-specific irq_host structures and uses the common irq_domain strucutres defined in linux/irqdomain.h. It also fixes all the users to use the new structure names.
Renaming irq_host to irq_domain has been discussed for a long time, and this patch is a step in the process of generalizing the powerpc virq code to be usable by all architecture.
An astute reader will notice that this patch actually removes the irq_host structure instead of renaming it. This is because the irq_domain structure already exists in include/linux/irqdomain.h and has the needed data members.
--- arch/powerpc/include/asm/ehv_pic.h | 2 +- arch/powerpc/include/asm/i8259.h | 2 +- arch/powerpc/include/asm/irq.h | 110 ++++------------------ arch/powerpc/include/asm/mpic.h | 2 +- arch/powerpc/include/asm/xics.h | 2 +- arch/powerpc/kernel/irq.c | 78 ++++++++-------- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c | 11 +- arch/powerpc/platforms/52xx/media5200.c | 10 +- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 12 +- arch/powerpc/platforms/52xx/mpc52xx_pic.c | 10 +- arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 10 +- arch/powerpc/platforms/85xx/socrates_fpga_pic.c | 12 +- arch/powerpc/platforms/86xx/gef_pic.c | 12 +- arch/powerpc/platforms/cell/axon_msi.c | 28 +++--- arch/powerpc/platforms/cell/beat_interrupt.c | 14 ++-- arch/powerpc/platforms/cell/interrupt.c | 14 ++-- arch/powerpc/platforms/cell/spider-pic.c | 10 +- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 30 +++--- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 36 ++++---- arch/powerpc/platforms/iseries/irq.c | 12 +- arch/powerpc/platforms/powermac/pic.c | 12 +- arch/powerpc/platforms/powermac/smp.c | 8 +- arch/powerpc/platforms/ps3/interrupt.c | 10 +- arch/powerpc/platforms/wsp/opb_pic.c | 10 +- arch/powerpc/sysdev/cpm1.c | 8 +- arch/powerpc/sysdev/cpm2_pic.c | 10 +- arch/powerpc/sysdev/ehv_pic.c | 10 +- arch/powerpc/sysdev/fsl_msi.c | 6 +- arch/powerpc/sysdev/fsl_msi.h | 2 +- arch/powerpc/sysdev/i8259.c | 14 ++-- arch/powerpc/sysdev/ipic.c | 10 +- arch/powerpc/sysdev/ipic.h | 2 +- arch/powerpc/sysdev/mpc8xx_pic.c | 10 +- arch/powerpc/sysdev/mpic.c | 12 +- arch/powerpc/sysdev/mpic_msi.c | 2 +- arch/powerpc/sysdev/mv64x60_pic.c | 8 +- arch/powerpc/sysdev/qe_lib/qe_ic.c | 10 +- arch/powerpc/sysdev/qe_lib/qe_ic.h | 2 +- arch/powerpc/sysdev/tsi108_pci.c | 14 ++-- arch/powerpc/sysdev/uic.c | 10 +- arch/powerpc/sysdev/xics/xics-common.c | 12 +- arch/powerpc/sysdev/xilinx_intc.c | 16 ++-- drivers/gpio/gpio-mpc8xxx.c | 10 +- 43 files changed, 277 insertions(+), 348 deletions(-)
arch/powerpc/include/asm/ehv_pic.h +1 -1
@@ -25,7 +25,7 @@struct ehv_pic {/* The remapper for this EHV_PIC */ -struct irq_host *irqhost; +struct irq_domain *irqhost;/* The "linux" controller struct */ struct irq_chip hc_irq;
arch/powerpc/include/asm/i8259.h +1 -1
@@ -6,7 +6,7 @@extern void i8259_init (struct device_node *node,unsigned long intack_addr);extern unsigned int i8259_irq (void ); -extern struct irq_host *i8259_get_host (void ); +extern struct irq_domain *i8259_get_host (void );#endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_I8259_H */
arch/powerpc/include/asm/irq.h +20 -90
199 lines not on this page · raw message
arch/powerpc/include/asm/mpic.h +1 -1
@@ -255,7 +255,7 @@ struct mpicstruct device_node *node;/* The remapper for this MPIC */ -struct irq_host *irqhost; +struct irq_domain *irqhost;/* The "linux" controller struct */ struct irq_chip hc_irq;
arch/powerpc/include/asm/xics.h +1 -1
@@ -86,7 +86,7 @@ struct ics {extern unsigned int xics_default_server;extern unsigned int xics_default_distrib_server;extern unsigned int xics_interrupt_server_size; -extern struct irq_host *xics_host; +extern struct irq_domain *xics_host;struct xics_cppr {unsigned char stack[MAX_NUM_PRIORITIES ];
arch/powerpc/kernel/irq.c +39 -39
271 lines not on this page · raw message
arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +5 -6
@@ -21,7 +21,7 @@#include <asm/prom.h> static struct device_node *cpld_pic_node; -static struct irq_host *cpld_pic_host; +static struct irq_domain *cpld_pic_host;/* * Bits to ignore in the misc_status register
@@ -123,13 +123,13 @@ cpld_pic_cascade(unsigned int irq, struct irq_desc *desc) }static int -cpld_pic_host_match (struct irq_host *h,struct device_node *node) +cpld_pic_host_match (struct irq_domain *h,struct device_node *node) {return cpld_pic_node == node; }static int -cpld_pic_host_map (struct irq_host *h,unsigned int virq, +cpld_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_status_flags (virq,IRQ_LEVEL );
@@ -137,8 +137,7 @@ cpld_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct -irq_host_ops cpld_pic_host_ops = { +static struct irq_domain_ops cpld_pic_host_ops = { .match = cpld_pic_host_match, .map = cpld_pic_host_map, };
@@ -192,7 +191,7 @@ mpc5121_ads_cpld_pic_init(void) cpld_pic_node =of_node_get (np); cpld_pic_host = -irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,16 , &cpld_pic_host_ops,16 ); +irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,16 , &cpld_pic_host_ops,16 );if (!cpld_pic_host) {printk (KERN_ERR "CPLD PIC: failed to allocate irq host!\n" ); goto end;
arch/powerpc/platforms/52xx/media5200.c +5 -5
@@ -45,7 +45,7 @@ static struct of_device_id mpc5200_gpio_ids[] __initdata = {struct media5200_irq {void __iomem *regs;spinlock_t lock; -struct irq_host *irqhost; +struct irq_domain *irqhost; };struct media5200_irq media5200_irq;
@@ -112,7 +112,7 @@ void media5200_irq_cascade(unsigned int virq, struct irq_desc *desc)raw_spin_unlock (&desc->lock); } -static int media5200_irq_map (struct irq_host *h,unsigned int virq, +static int media5200_irq_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {pr_debug ("%s: h=%p, virq=%i, hwirq=%i\n" , __func__, h, virq, (int )hw);
@@ -122,7 +122,7 @@ static int media5200_irq_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int media5200_irq_xlate (struct irq_host *h,struct device_node *ct, +static int media5200_irq_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -136,7 +136,7 @@ static int media5200_irq_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops media5200_irq_ops = { +static struct irq_domain_ops media5200_irq_ops = { .map = media5200_irq_map, .xlate = media5200_irq_xlate, };
@@ -173,7 +173,7 @@ static void __init media5200_init_irq(void)spin_lock_init (&media5200_irq.lock); - media5200_irq.irqhost =irq_alloc_host (fpga_np,IRQ_HOST_MAP_LINEAR , + media5200_irq.irqhost =irq_alloc_host (fpga_np,IRQ_DOMAIN_MAP_LINEAR ,MEDIA5200_NUM_IRQS , &media5200_irq_ops,-1 );if (!media5200_irq.irqhost)
arch/powerpc/platforms/52xx/mpc52xx_gpt.c +6 -6
@@ -81,7 +81,7 @@ MODULE_LICENSE("GPL");* @regs: virtual address of GPT registers * @lock: spinlock to coordinate between different functions. * @gc: gpio_chip instance structure; used when GPIO is enabled -* @irqhost: Pointer to irq_host instance; used when IRQ mode is supported +* @irqhost: Pointer to irq_domain instance; used when IRQ mode is supported * @wdt_mode: only relevant for gpt0: bit 0 (MPC52xx_GPT_CAN_WDT) indicates * if the gpt may be used as wdt, bit 1 (MPC52xx_GPT_IS_WDT) indicates * if the timer is actively used as wdt which blocks gpt functions
@@ -91,7 +91,7 @@ struct mpc52xx_gpt_priv {struct device *dev;struct mpc52xx_gpt __iomem *regs;spinlock_t lock; -struct irq_host *irqhost; +struct irq_domain *irqhost;u32 ipb_freq;u8 wdt_mode;
@@ -204,7 +204,7 @@ void mpc52xx_gpt_irq_cascade(unsigned int virq, struct irq_desc *desc) } } -static int mpc52xx_gpt_irq_map (struct irq_host *h,unsigned int virq, +static int mpc52xx_gpt_irq_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct mpc52xx_gpt_priv *gpt = h->host_data;
@@ -216,7 +216,7 @@ static int mpc52xx_gpt_irq_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int mpc52xx_gpt_irq_xlate (struct irq_host *h,struct device_node *ct, +static int mpc52xx_gpt_irq_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -236,7 +236,7 @@ static int mpc52xx_gpt_irq_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops mpc52xx_gpt_irq_ops = { +static struct irq_domain_ops mpc52xx_gpt_irq_ops = { .map = mpc52xx_gpt_irq_map, .xlate = mpc52xx_gpt_irq_xlate, };
@@ -252,7 +252,7 @@ mpc52xx_gpt_irq_setup(struct mpc52xx_gpt_priv *gpt, struct device_node *node)if (!cascade_virq)return ; - gpt->irqhost =irq_alloc_host (node,IRQ_HOST_MAP_LINEAR ,1 , + gpt->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,1 , &mpc52xx_gpt_irq_ops,-1 );if (!gpt->irqhost) {dev_err (gpt->dev,"irq_alloc_host() failed\n" );
arch/powerpc/platforms/52xx/mpc52xx_pic.c +5 -5
@@ -132,7 +132,7 @@ static struct of_device_id mpc52xx_sdma_ids[] __initdata = {static struct mpc52xx_intr __iomem *intr;static struct mpc52xx_sdma __iomem *sdma; -static struct irq_host *mpc52xx_irqhost =NULL ; +static struct irq_domain *mpc52xx_irqhost =NULL ;static unsigned char mpc52xx_map_senses[4 ] = {IRQ_TYPE_LEVEL_HIGH ,
@@ -301,7 +301,7 @@ static int mpc52xx_is_extirq(int l1, int l2)/** * mpc52xx_irqhost_xlate - translate virq# from device tree interrupts property */ -static int mpc52xx_irqhost_xlate (struct irq_host *h,struct device_node *ct, +static int mpc52xx_irqhost_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -335,7 +335,7 @@ static int mpc52xx_irqhost_xlate(struct irq_host *h, struct device_node *ct,/** * mpc52xx_irqhost_map - Hook to map from virq to an irq_chip structure */ -static int mpc52xx_irqhost_map (struct irq_host *h,unsigned int virq, +static int mpc52xx_irqhost_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t irq) {int l1irq;
@@ -384,7 +384,7 @@ static int mpc52xx_irqhost_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops mpc52xx_irqhost_ops = { +static struct irq_domain_ops mpc52xx_irqhost_ops = { .xlate = mpc52xx_irqhost_xlate, .map = mpc52xx_irqhost_map, };
@@ -444,7 +444,7 @@ void __init mpc52xx_init_irq(void)* As last step, add an irq host to translate the real * hw irq information provided by the ofw to linux virq */ - mpc52xx_irqhost =irq_alloc_host (picnode,IRQ_HOST_MAP_LINEAR , + mpc52xx_irqhost =irq_alloc_host (picnode,IRQ_DOMAIN_MAP_LINEAR , MPC52xx_IRQ_HIGHTESTHWIRQ, &mpc52xx_irqhost_ops,-1 );
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +5 -5
@@ -29,7 +29,7 @@ static DEFINE_RAW_SPINLOCK(pci_pic_lock);struct pq2ads_pci_pic {struct device_node *node; -struct irq_host *host; +struct irq_domain *host;struct {u32 stat;
@@ -103,7 +103,7 @@ static void pq2ads_pci_irq_demux(unsigned int irq, struct irq_desc *desc) } } -static int pci_pic_host_map (struct irq_host *h,unsigned int virq, +static int pci_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_status_flags (virq,IRQ_LEVEL );
@@ -112,14 +112,14 @@ static int pci_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops pci_pic_host_ops = { +static struct irq_domain_ops pci_pic_host_ops = { .map = pci_pic_host_map, };int __init pq2ads_pci_init_irq (void ) {struct pq2ads_pci_pic *priv; -struct irq_host *host; +struct irq_domain *host;struct device_node *np;int ret = -ENODEV ;int irq;
@@ -156,7 +156,7 @@ int __init pq2ads_pci_init_irq(void)out_be32 (&priv->regs->mask, ~0 );mb (); - host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,NUM_IRQS , + host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,NUM_IRQS , &pci_pic_host_ops,NUM_IRQS );if (!host) { ret = -ENOMEM ;
arch/powerpc/platforms/85xx/socrates_fpga_pic.c +6 -6
@@ -51,7 +51,7 @@ static struct socrates_fpga_irq_info fpga_irqs[SOCRATES_FPGA_NUM_IRQS] = {static DEFINE_RAW_SPINLOCK (socrates_fpga_pic_lock);static void __iomem *socrates_fpga_pic_iobase; -static struct irq_host *socrates_fpga_pic_irq_host; +static struct irq_domain *socrates_fpga_pic_irq_host;static unsigned int socrates_fpga_irqs[3 ];static inline uint32_t socrates_fpga_pic_read (int reg)
@@ -227,7 +227,7 @@ static struct irq_chip socrates_fpga_pic_chip = { .irq_set_type = socrates_fpga_pic_set_type, }; -static int socrates_fpga_pic_host_map (struct irq_host *h,unsigned int virq, +static int socrates_fpga_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) {/* All interrupts are LEVEL sensitive */
@@ -238,7 +238,7 @@ static int socrates_fpga_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int socrates_fpga_pic_host_xlate (struct irq_host *h, +static int socrates_fpga_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -269,7 +269,7 @@ static int socrates_fpga_pic_host_xlate(struct irq_host *h,return 0 ; } -static struct irq_host_ops socrates_fpga_pic_host_ops = { +static struct irq_domain_ops socrates_fpga_pic_host_ops = { .map = socrates_fpga_pic_host_map, .xlate = socrates_fpga_pic_host_xlate, };
@@ -279,8 +279,8 @@ void socrates_fpga_pic_init(struct device_node *pic)unsigned long flags;int i; -/* Setup an irq_host structure */ - socrates_fpga_pic_irq_host =irq_alloc_host (pic,IRQ_HOST_MAP_LINEAR , +/* Setup an irq_domain structure */ + socrates_fpga_pic_irq_host =irq_alloc_host (pic,IRQ_DOMAIN_MAP_LINEAR ,SOCRATES_FPGA_NUM_IRQS , &socrates_fpga_pic_host_ops,SOCRATES_FPGA_NUM_IRQS );if (socrates_fpga_pic_irq_host ==NULL ) {
arch/powerpc/platforms/86xx/gef_pic.c +6 -6
@@ -50,7 +50,7 @@static DEFINE_RAW_SPINLOCK (gef_pic_lock);static void __iomem *gef_pic_irq_reg_base; -static struct irq_host *gef_pic_irq_host; +static struct irq_domain *gef_pic_irq_host;static int gef_pic_cascade_irq;/*
@@ -153,7 +153,7 @@ static struct irq_chip gef_pic_chip = {/* When an interrupt is being configured, this call allows some flexibilty * in deciding which irq_chip structure is used */ -static int gef_pic_host_map (struct irq_host *h,unsigned int virq, +static int gef_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) {/* All interrupts are LEVEL sensitive */
@@ -163,7 +163,7 @@ static int gef_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int gef_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int gef_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -177,7 +177,7 @@ static int gef_pic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops gef_pic_host_ops = { +static struct irq_domain_ops gef_pic_host_ops = { .map = gef_pic_host_map, .xlate = gef_pic_host_xlate, };
@@ -211,8 +211,8 @@ void __init gef_pic_init(struct device_node *np)return ; } -/* Setup an irq_host structure */ - gef_pic_irq_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , +/* Setup an irq_domain structure */ + gef_pic_irq_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,GEF_PIC_NUM_IRQS , &gef_pic_host_ops,NO_IRQ );if (gef_pic_irq_host ==NULL )
arch/powerpc/platforms/cell/axon_msi.c +14 -14
@@ -67,7 +67,7 @@struct axon_msic { -struct irq_host *irq_host; +struct irq_domain *irq_domain;__le32 *fifo_virt;dma_addr_t fifo_phys;dcr_host_t dcr_host;
@@ -152,7 +152,7 @@ static void axon_msi_cascade(unsigned int irq, struct irq_desc *desc)static struct axon_msic *find_msi_translator (struct pci_dev *dev) { -struct irq_host *irq_host; +struct irq_domain *irq_domain;struct device_node *dn, *tmp;const phandle *ph;struct axon_msic *msic =NULL ;
@@ -184,14 +184,14 @@ static struct axon_msic *find_msi_translator(struct pci_dev *dev) goto out_error; } - irq_host =irq_find_host (dn); -if (!irq_host) { -dev_dbg (&dev->dev,"axon_msi: no irq_host found for node %s\n" , + irq_domain =irq_find_host (dn); +if (!irq_domain) { +dev_dbg (&dev->dev,"axon_msi: no irq_domain found for node %s\n" , dn->full_name); goto out_error; } - msic = irq_host->host_data; + msic = irq_domain->host_data; out_error:of_node_put (dn);
@@ -280,7 +280,7 @@ static int axon_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)BUILD_BUG_ON (NR_IRQS >65536 );list_for_each_entry (entry, &dev->msi_list, list) { - virq =irq_create_direct_mapping (msic->irq_host); + virq =irq_create_direct_mapping (msic->irq_domain);if (virq ==NO_IRQ ) {dev_warn (&dev->dev,"axon_msi: virq allocation failed!\n" );
@@ -318,7 +318,7 @@ static struct irq_chip msic_irq_chip = { .name = "AXON-MSI", }; -static int msic_host_map (struct irq_host *h,unsigned int virq, +static int msic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_chip_data (virq, h->host_data);
@@ -327,7 +327,7 @@ static int msic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops msic_host_ops = { +static struct irq_domain_ops msic_host_ops = { .map = msic_host_map, };
@@ -337,7 +337,7 @@ static void axon_msi_shutdown(struct platform_device *device)u32 tmp;pr_devel ("axon_msi: disabling %s\n" , - msic->irq_host->of_node->full_name); + msic->irq_domain->of_node->full_name); tmp =dcr_read (msic->dcr_host,MSIC_CTRL_REG ); tmp &= ~MSIC_CTRL_ENABLE & ~MSIC_CTRL_IRQ_ENABLE ;msic_dcr_write (msic,MSIC_CTRL_REG , tmp);
@@ -392,15 +392,15 @@ static int axon_msi_probe(struct platform_device *device) }memset (msic->fifo_virt,0xff ,MSIC_FIFO_SIZE_BYTES ); - msic->irq_host =irq_alloc_host (dn,IRQ_HOST_MAP_NOMAP , + msic->irq_domain =irq_alloc_host (dn,IRQ_DOMAIN_MAP_NOMAP ,NR_IRQS , &msic_host_ops,0 ); -if (!msic->irq_host) { -printk (KERN_ERR "axon_msi: couldn't allocate irq_host for %s\n" , +if (!msic->irq_domain) { +printk (KERN_ERR "axon_msi: couldn't allocate irq_domain for %s\n" , dn->full_name); goto out_free_fifo; } - msic->irq_host->host_data = msic; + msic->irq_domain->host_data = msic;irq_set_handler_data (virq, msic);irq_set_chained_handler (virq, axon_msi_cascade);
arch/powerpc/platforms/cell/beat_interrupt.c +7 -7
@@ -34,7 +34,7 @@ static DEFINE_RAW_SPINLOCK(beatic_irq_mask_lock);static uint64_t beatic_irq_mask_enable[(MAX_IRQS +255 )/64 ];static uint64_t beatic_irq_mask_ack[(MAX_IRQS +255 )/64 ]; -static struct irq_host *beatic_host; +static struct irq_domain *beatic_host;/* * In this implementation, "virq" == "IRQ plug number",
@@ -122,7 +122,7 @@ static struct irq_chip beatic_pic = {* * Note that the number (virq) is already assigned at upper layer. */ -static void beatic_pic_host_unmap (struct irq_host *h,unsigned int virq) +static void beatic_pic_host_unmap (struct irq_domain *h,unsigned int virq) {beat_destruct_irq_plug (virq); }
@@ -133,7 +133,7 @@ static void beatic_pic_host_unmap(struct irq_host *h, unsigned int virq)* * Note that the number (virq) is already assigned at upper layer. */ -static int beatic_pic_host_map (struct irq_host *h,unsigned int virq, +static int beatic_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {int64_t err;
@@ -154,7 +154,7 @@ static int beatic_pic_host_map(struct irq_host *h, unsigned int virq,* Called from irq_create_of_mapping() only. * Note: We have only 1 entry to translate. */ -static int beatic_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int beatic_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -166,13 +166,13 @@ static int beatic_pic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static int beatic_pic_host_match (struct irq_host *h,struct device_node *np) +static int beatic_pic_host_match (struct irq_domain *h,struct device_node *np) {/* Match all */ return 1 ; } -static struct irq_host_ops beatic_pic_host_ops = { +static struct irq_domain_ops beatic_pic_host_ops = { .map = beatic_pic_host_map, .unmap = beatic_pic_host_unmap, .xlate = beatic_pic_host_xlate,
@@ -239,7 +239,7 @@ void __init beatic_init_IRQ(void) ppc_md.get_irq = beatic_get_irq;/* Allocate an irq host */ - beatic_host =irq_alloc_host (NULL ,IRQ_HOST_MAP_NOMAP ,0 , + beatic_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , &beatic_pic_host_ops,0 );BUG_ON (beatic_host ==NULL );
arch/powerpc/platforms/cell/interrupt.c +7 -7
@@ -56,7 +56,7 @@ struct iic { static DEFINE_PER_CPU(struct iic, cpu_iic);#define IIC_NODE_COUNT 2 -static struct irq_host *iic_host; +static struct irq_domain *iic_host;/* Convert between "pending" bits and hw irq number */ static irq_hw_number_t iic_pending_to_hwnum (struct cbe_iic_pending_bits bits)
@@ -186,7 +186,7 @@ void iic_message_pass(int cpu, int msg)out_be64 (&per_cpu (cpu_iic, cpu).regs->generate, (0xf - msg) <<4 ); } -struct irq_host *iic_get_irq_host (int node) +struct irq_domain *iic_get_irq_host (int node) {return iic_host; }
@@ -222,13 +222,13 @@ void iic_request_IPIs(void)#endif /* CONFIG_SMP */ -static int iic_host_match (struct irq_host *h,struct device_node *node) +static int iic_host_match (struct irq_domain *h,struct device_node *node) {return of_device_is_compatible (node,"IBM,CBEA-Internal-Interrupt-Controller" ); } -static int iic_host_map (struct irq_host *h,unsigned int virq, +static int iic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {switch (hw &IIC_IRQ_TYPE_MASK ) {
@@ -245,7 +245,7 @@ static int iic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int iic_host_xlate (struct irq_host *h,struct device_node *ct, +static int iic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -285,7 +285,7 @@ static int iic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops iic_host_ops = { +static struct irq_domain_ops iic_host_ops = { .match = iic_host_match, .map = iic_host_map, .xlate = iic_host_xlate,
@@ -378,7 +378,7 @@ static int __init setup_iic(void)void __init iic_init_IRQ (void ) {/* Setup an irq host data structure */ - iic_host =irq_alloc_host (NULL ,IRQ_HOST_MAP_LINEAR ,IIC_SOURCE_COUNT , + iic_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_LINEAR ,IIC_SOURCE_COUNT , &iic_host_ops,IIC_IRQ_INVALID );BUG_ON (iic_host ==NULL );irq_set_default_host (iic_host);
arch/powerpc/platforms/cell/spider-pic.c +5 -5
@@ -62,7 +62,7 @@ enum {#define SPIDER_IRQ_INVALID 63struct spider_pic { -struct irq_host *host; +struct irq_domain *host;void __iomem *regs;unsigned int node_id; };
@@ -168,7 +168,7 @@ static struct irq_chip spider_pic = { .irq_set_type = spider_set_irq_type, }; -static int spider_host_map (struct irq_host *h,unsigned int virq, +static int spider_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_chip_data (virq, h->host_data);
@@ -180,7 +180,7 @@ static int spider_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int spider_host_xlate (struct irq_host *h,struct device_node *ct, +static int spider_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -194,7 +194,7 @@ static int spider_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops spider_host_ops = { +static struct irq_domain_ops spider_host_ops = { .map = spider_host_map, .xlate = spider_host_xlate, };
@@ -299,7 +299,7 @@ static void __init spider_init_one(struct device_node *of_node, int chip,panic ("spider_pic: can't map registers !" );/* Allocate a host */ - pic->host =irq_alloc_host (of_node,IRQ_HOST_MAP_LINEAR , + pic->host =irq_alloc_host (of_node,IRQ_DOMAIN_MAP_LINEAR ,SPIDER_SRC_COUNT , &spider_host_ops,SPIDER_IRQ_INVALID );if (pic->host ==NULL )
arch/powerpc/platforms/embedded6xx/flipper-pic.c +15 -15
@@ -96,9 +96,9 @@ static struct irq_chip flipper_pic = {* */ -static struct irq_host *flipper_irq_host; +static struct irq_domain *flipper_irq_host; -static int flipper_pic_map (struct irq_host *h,unsigned int virq, +static int flipper_pic_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) {irq_set_chip_data (virq, h->host_data);
@@ -107,13 +107,13 @@ static int flipper_pic_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int flipper_pic_match (struct irq_host *h,struct device_node *np) +static int flipper_pic_match (struct irq_domain *h,struct device_node *np) {return 1 ; } -static struct irq_host_ops flipper_irq_host_ops = { +static struct irq_domain_ops flipper_irq_domain_ops = { .map = flipper_pic_map, .match = flipper_pic_match, };
@@ -130,10 +130,10 @@ static void __flipper_quiesce(void __iomem *io_base)out_be32 (io_base +FLIPPER_ICR ,0xffffffff ); } -struct irq_host *__init flipper_pic_init (struct device_node *np) +struct irq_domain *__init flipper_pic_init (struct device_node *np) {struct device_node *pi; -struct irq_host *irq_host =NULL ; +struct irq_domain *irq_domain =NULL ;struct resource res;void __iomem *io_base;int retval;
@@ -159,22 +159,22 @@ struct irq_host * __init flipper_pic_init(struct device_node *np)__flipper_quiesce (io_base); - irq_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,FLIPPER_NR_IRQS , - &flipper_irq_host_ops,-1 ); -if (!irq_host) { -pr_err ("failed to allocate irq_host\n" ); + irq_domain =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,FLIPPER_NR_IRQS , + &flipper_irq_domain_ops,-1 ); +if (!irq_domain) { +pr_err ("failed to allocate irq_domain\n" );return NULL ; } - irq_host->host_data = io_base; + irq_domain->host_data = io_base; out: -return irq_host; +return irq_domain; }unsigned int flipper_pic_get_irq (void ) { -void __iomem *io_base = flipper_irq_host->host_data; +void __iomem *io_base = flipper_irq_domain->host_data;int irq;u32 irq_status;
@@ -184,7 +184,7 @@ unsigned int flipper_pic_get_irq(void)return NO_IRQ ;/* no more IRQs pending */ irq =__ffs (irq_status); -return irq_linear_revmap (flipper_irq_host, irq); +return irq_linear_revmap (flipper_irq_domain, irq); }/*
@@ -199,7 +199,7 @@ void __init flipper_pic_probe(void) np =of_find_compatible_node (NULL ,NULL ,"nintendo,flipper-pic" );BUG_ON (!np); - flipper_irq_host =flipper_pic_init (np); + flipper_irq_domain =flipper_pic_init (np);BUG_ON (!flipper_irq_host);irq_set_default_host (flipper_irq_host);
arch/powerpc/platforms/embedded6xx/hlwd-pic.c +18 -18
@@ -89,9 +89,9 @@ static struct irq_chip hlwd_pic = {* */ -static struct irq_host *hlwd_irq_host; +static struct irq_domain *hlwd_irq_host; -static int hlwd_pic_map (struct irq_host *h,unsigned int virq, +static int hlwd_pic_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) {irq_set_chip_data (virq, h->host_data);
@@ -100,11 +100,11 @@ static int hlwd_pic_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops hlwd_irq_host_ops = { +static struct irq_domain_ops hlwd_irq_domain_ops = { .map = hlwd_pic_map, }; -static unsigned int __hlwd_pic_get_irq (struct irq_host *h) +static unsigned int __hlwd_pic_get_irq (struct irq_domain *h) {void __iomem *io_base = h->host_data;int irq;
@@ -123,14 +123,14 @@ static void hlwd_pic_irq_cascade(unsigned int cascade_virq, struct irq_desc *desc) {struct irq_chip *chip =irq_desc_get_chip (desc); -struct irq_host *irq_host =irq_get_handler_data (cascade_virq); +struct irq_domain *irq_domain =irq_get_handler_data (cascade_virq);unsigned int virq;raw_spin_lock (&desc->lock); chip->irq_mask (&desc->irq_data);/* IRQ_LEVEL */ raw_spin_unlock (&desc->lock); - virq =__hlwd_pic_get_irq (irq_host); + virq =__hlwd_pic_get_irq (irq_domain);if (virq !=NO_IRQ )generic_handle_irq (virq);else
@@ -155,9 +155,9 @@ static void __hlwd_quiesce(void __iomem *io_base)out_be32 (io_base +HW_BROADWAY_ICR ,0xffffffff ); } -struct irq_host *hlwd_pic_init (struct device_node *np) +struct irq_domain *hlwd_pic_init (struct device_node *np) { -struct irq_host *irq_host; +struct irq_domain *irq_domain;struct resource res;void __iomem *io_base;int retval;
@@ -177,20 +177,20 @@ struct irq_host *hlwd_pic_init(struct device_node *np)__hlwd_quiesce (io_base); - irq_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,HLWD_NR_IRQS , - &hlwd_irq_host_ops,-1 ); -if (!irq_host) { -pr_err ("failed to allocate irq_host\n" ); + irq_domain =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,HLWD_NR_IRQS , + &hlwd_irq_domain_ops,-1 ); +if (!irq_domain) { +pr_err ("failed to allocate irq_domain\n" );return NULL ; } - irq_host->host_data = io_base; + irq_domain->host_data = io_base; -return irq_host; +return irq_domain; }unsigned int hlwd_pic_get_irq (void ) { -return __hlwd_pic_get_irq (hlwd_irq_host); +return __hlwd_pic_get_irq (hlwd_irq_domain); }/*
@@ -200,7 +200,7 @@ unsigned int hlwd_pic_get_irq(void)void hlwd_pic_probe (void ) { -struct irq_host *host; +struct irq_domain *host;struct device_node *np;const u32 *interrupts;int cascade_virq;
@@ -214,7 +214,7 @@ void hlwd_pic_probe(void)irq_set_handler_data (cascade_virq, host);irq_set_chained_handler (cascade_virq, hlwd_pic_irq_cascade); - hlwd_irq_host = host; + hlwd_irq_domain = host;break ; } }
@@ -228,7 +228,7 @@ void hlwd_pic_probe(void)*/ void hlwd_quiesce (void ) { -void __iomem *io_base = hlwd_irq_host->host_data; +void __iomem *io_base = hlwd_irq_domain->host_data;__hlwd_quiesce (io_base); }
arch/powerpc/platforms/iseries/irq.c +6 -6
@@ -342,7 +342,7 @@ unsigned int iSeries_get_irq(void)#ifdef CONFIG_PCI -static int iseries_irq_host_map (struct irq_host *h,unsigned int virq, +static int iseries_irq_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_chip_and_handler (virq, &iseries_pic, handle_fasteoi_irq);
@@ -350,13 +350,13 @@ static int iseries_irq_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int iseries_irq_host_match (struct irq_host *h,struct device_node *np) +static int iseries_irq_host_match (struct irq_domain *h,struct device_node *np) {/* Match all */ return 1 ; } -static struct irq_host_ops iseries_irq_host_ops = { +static struct irq_domain_ops iseries_irq_domain_ops = { .map = iseries_irq_host_map, .match = iseries_irq_host_match, };
@@ -368,7 +368,7 @@ static struct irq_host_ops iseries_irq_host_ops = {void __init iSeries_init_IRQ (void ) {/* Register PCI event handler and open an event path */ -struct irq_host *host; +struct irq_domain *host;int ret;/*
@@ -380,8 +380,8 @@ void __init iSeries_init_IRQ(void)/* Create irq host. No need for a revmap since HV will give us * back our virtual irq number */ - host =irq_alloc_host (NULL ,IRQ_HOST_MAP_NOMAP ,0 , - &iseries_irq_host_ops,0 ); + host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , + &iseries_irq_domain_ops,0 );BUG_ON (host ==NULL );irq_set_default_host (host);
arch/powerpc/platforms/powermac/pic.c +6 -6
@@ -61,7 +61,7 @@ static DEFINE_RAW_SPINLOCK(pmac_pic_lock);static unsigned long ppc_lost_interrupts[NR_MASK_WORDS ];static unsigned long ppc_cached_irq_mask[NR_MASK_WORDS ];static int pmac_irq_cascade =-1 ; -static struct irq_host *pmac_pic_host; +static struct irq_domain *pmac_pic_host;static void __pmac_retrigger (unsigned int irq_nr) {
@@ -268,13 +268,13 @@ static struct irqaction gatwick_cascade_action = { .name = "cascade", }; -static int pmac_pic_host_match (struct irq_host *h,struct device_node *node) +static int pmac_pic_host_match (struct irq_domain *h,struct device_node *node) {/* We match all, we don't always have a node anyway */ return 1 ; } -static int pmac_pic_host_map (struct irq_host *h,unsigned int virq, +static int pmac_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {if (hw >= max_irqs)
@@ -288,7 +288,7 @@ static int pmac_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int pmac_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int pmac_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -299,7 +299,7 @@ static int pmac_pic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops pmac_pic_host_ops = { +static struct irq_domain_ops pmac_pic_host_ops = { .match = pmac_pic_host_match, .map = pmac_pic_host_map, .xlate = pmac_pic_host_xlate,
@@ -352,7 +352,7 @@ static void __init pmac_pic_probe_oldstyle(void)/* * Allocate an irq host */ - pmac_pic_host =irq_alloc_host (master,IRQ_HOST_MAP_LINEAR , max_irqs, + pmac_pic_host =irq_alloc_host (master,IRQ_DOMAIN_MAP_LINEAR , max_irqs, &pmac_pic_host_ops, max_irqs);BUG_ON (pmac_pic_host ==NULL );
arch/powerpc/platforms/powermac/smp.c +4 -4
@@ -125,7 +125,7 @@ static volatile u32 __iomem *psurge_start;static int psurge_type =PSURGE_NONE ;/* irq for secondary cpus to report */ -static struct irq_host *psurge_host; +static struct irq_domain *psurge_host;int psurge_secondary_virq;/*
@@ -176,7 +176,7 @@ static void smp_psurge_cause_ipi(int cpu, unsigned long data)psurge_set_ipi (cpu); } -static int psurge_host_map (struct irq_host *h,unsigned int virq, +static int psurge_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {irq_set_chip_and_handler (virq, &dummy_irq_chip, handle_percpu_irq);
@@ -184,7 +184,7 @@ static int psurge_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -struct irq_host_ops psurge_host_ops = { +struct irq_domain_ops psurge_host_ops = { .map = psurge_host_map, };
@@ -192,7 +192,7 @@ static int psurge_secondary_ipi_init(void) {int rc = -ENOMEM ; - psurge_host =irq_alloc_host (NULL ,IRQ_HOST_MAP_NOMAP ,0 , + psurge_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , &psurge_host_ops,0 );if (psurge_host)
arch/powerpc/platforms/ps3/interrupt.c +5 -5
@@ -667,7 +667,7 @@ static void __maybe_unused _dump_mask(struct ps3_private *pd,static void dump_bmp (struct ps3_private * pd) {};#endif /* defined(DEBUG) */ -static int ps3_host_map (struct irq_host *h,unsigned int virq, +static int ps3_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) { DBG("%s:%d: hwirq %lu, virq %u\n", __func__, __LINE__, hwirq,
@@ -678,13 +678,13 @@ static int ps3_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int ps3_host_match (struct irq_host *h,struct device_node *np) +static int ps3_host_match (struct irq_domain *h,struct device_node *np) {/* Match all */ return 1 ; } -static struct irq_host_ops ps3_host_ops = { +static struct irq_domain_ops ps3_host_ops = { .map = ps3_host_map, .match = ps3_host_match, };
@@ -751,9 +751,9 @@ void __init ps3_init_IRQ(void) {int result;unsigned cpu; -struct irq_host *host; +struct irq_domain *host; - host =irq_alloc_host (NULL ,IRQ_HOST_MAP_NOMAP ,0 , &ps3_host_ops, + host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , &ps3_host_ops,PS3_INVALID_OUTLET );irq_set_default_host (host);irq_set_virq_count (PS3_PLUG_MAX +1 );
arch/powerpc/platforms/wsp/opb_pic.c +5 -5
@@ -30,7 +30,7 @@static int opb_index =0 ;struct opb_pic { -struct irq_host *host; +struct irq_domain *host;void *regs;int index;spinlock_t lock;
@@ -179,7 +179,7 @@ static struct irq_chip opb_irq_chip = { .irq_set_type = opb_set_irq_type }; -static int opb_host_map (struct irq_host *host,unsigned int virq, +static int opb_host_map (struct irq_domain *host,unsigned int virq,irq_hw_number_t hwirq) {struct opb_pic *opb;
@@ -196,7 +196,7 @@ static int opb_host_map(struct irq_host *host, unsigned int virq,return 0 ; } -static int opb_host_xlate (struct irq_host *host,struct device_node *dn, +static int opb_host_xlate (struct irq_domain *host,struct device_node *dn,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_type) {
@@ -207,7 +207,7 @@ static int opb_host_xlate(struct irq_host *host, struct device_node *dn,return 0 ; } -static struct irq_host_ops opb_host_ops = { +static struct irq_domain_ops opb_host_ops = { .map = opb_host_map, .xlate = opb_host_xlate, };
@@ -267,7 +267,7 @@ struct opb_pic *opb_pic_init_one(struct device_node *dn)* having one interrupt to issue, we're the controller for multiple * hardware IRQs, so later we can lookup their virtual IRQs. */ - opb->host =irq_alloc_host (dn,IRQ_HOST_MAP_LINEAR , + opb->host =irq_alloc_host (dn,IRQ_DOMAIN_MAP_LINEAR ,OPB_NR_IRQS , &opb_host_ops,-1 );if (!opb->host) {
arch/powerpc/sysdev/cpm1.c +4 -4
@@ -54,7 +54,7 @@ cpm8xx_t __iomem *cpmp; /* Pointer to comm processor space */immap_t __iomem *mpc8xx_immr;static cpic8xx_t __iomem *cpic_reg; -static struct irq_host *cpm_pic_host; +static struct irq_domain *cpm_pic_host;static void cpm_mask_irq (struct irq_data *d) {
@@ -98,7 +98,7 @@ int cpm_get_irq(void)return irq_linear_revmap (cpm_pic_host, cpm_vec); } -static int cpm_pic_host_map (struct irq_host *h,unsigned int virq, +static int cpm_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {pr_debug ("cpm_pic_host_map(%d, 0x%lx)\n" , virq, hw);
@@ -123,7 +123,7 @@ static struct irqaction cpm_error_irqaction = { .name = "error", }; -static struct irq_host_ops cpm_pic_host_ops = { +static struct irq_domain_ops cpm_pic_host_ops = { .map = cpm_pic_host_map, };
@@ -164,7 +164,7 @@ unsigned int cpm_pic_init(void)out_be32 (&cpic_reg->cpic_cimr,0 ); - cpm_pic_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , + cpm_pic_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,64 , &cpm_pic_host_ops,64 );if (cpm_pic_host ==NULL ) {printk (KERN_ERR "CPM2 PIC: failed to allocate irq host!\n" );
arch/powerpc/sysdev/cpm2_pic.c +5 -5
@@ -50,7 +50,7 @@static intctl_cpm2_t __iomem *cpm2_intctl; -static struct irq_host *cpm2_pic_host; +static struct irq_domain *cpm2_pic_host;#define NR_MASK_WORDS ((NR_IRQS + 31) / 32)static unsigned long ppc_cached_irq_mask[NR_MASK_WORDS ];
@@ -214,7 +214,7 @@ unsigned int cpm2_get_irq(void)return irq_linear_revmap (cpm2_pic_host, irq); } -static int cpm2_pic_host_map (struct irq_host *h,unsigned int virq, +static int cpm2_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {pr_debug ("cpm2_pic_host_map(%d, 0x%lx)\n" , virq, hw);
@@ -224,7 +224,7 @@ static int cpm2_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int cpm2_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int cpm2_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -236,7 +236,7 @@ static int cpm2_pic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops cpm2_pic_host_ops = { +static struct irq_domain_ops cpm2_pic_host_ops = { .map = cpm2_pic_host_map, .xlate = cpm2_pic_host_xlate, };
@@ -275,7 +275,7 @@ void cpm2_pic_init(struct device_node *node)out_be32 (&cpm2_intctl->ic_scprrl,0x05309770 );/* create a legacy host */ - cpm2_pic_host =irq_alloc_host (node,IRQ_HOST_MAP_LINEAR , + cpm2_pic_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,64 , &cpm2_pic_host_ops,64 );if (cpm2_pic_host ==NULL ) {printk (KERN_ERR "CPM2 PIC: failed to allocate irq host!\n" );
arch/powerpc/sysdev/ehv_pic.c +5 -5
@@ -182,13 +182,13 @@ unsigned int ehv_pic_get_irq(void)return irq_linear_revmap (global_ehv_pic->irqhost, irq); } -static int ehv_pic_host_match (struct irq_host *h,struct device_node *node) +static int ehv_pic_host_match (struct irq_domain *h,struct device_node *node) {/* Exact match, unless ehv_pic node is NULL */ return h->of_node ==NULL || h->of_node == node; } -static int ehv_pic_host_map (struct irq_host *h,unsigned int virq, +static int ehv_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct ehv_pic *ehv_pic = h->host_data;
@@ -217,7 +217,7 @@ static int ehv_pic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int ehv_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int ehv_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -248,7 +248,7 @@ static int ehv_pic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops ehv_pic_host_ops = { +static struct irq_domain_ops ehv_pic_host_ops = { .match = ehv_pic_host_match, .map = ehv_pic_host_map, .xlate = ehv_pic_host_xlate,
@@ -275,7 +275,7 @@ void __init ehv_pic_init(void)return ; } - ehv_pic->irqhost =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , + ehv_pic->irqhost =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,NR_EHV_PIC_INTS , &ehv_pic_host_ops,0 );if (!ehv_pic->irqhost) {
arch/powerpc/sysdev/fsl_msi.c +3 -3
@@ -60,7 +60,7 @@ static struct irq_chip fsl_msi_chip = { .name = "FSL-MSI", }; -static int fsl_msi_host_map (struct irq_host *h,unsigned int virq, +static int fsl_msi_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct fsl_msi *msi_data = h->host_data;
@@ -74,7 +74,7 @@ static int fsl_msi_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops fsl_msi_host_ops = { +static struct irq_domain_ops fsl_msi_host_ops = { .map = fsl_msi_host_map, };
@@ -387,7 +387,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev) }platform_set_drvdata (dev, msi); - msi->irqhost =irq_alloc_host (dev->dev.of_node,IRQ_HOST_MAP_LINEAR , + msi->irqhost =irq_alloc_host (dev->dev.of_node,IRQ_DOMAIN_MAP_LINEAR ,NR_MSI_IRQS , &fsl_msi_host_ops,0 );if (msi->irqhost ==NULL ) {
arch/powerpc/sysdev/fsl_msi.h +1 -1
@@ -26,7 +26,7 @@#define FSL_PIC_IP_VMPIC 0x00000003struct fsl_msi { -struct irq_host *irqhost; +struct irq_domain *irqhost;unsigned long cascade_irq;
arch/powerpc/sysdev/i8259.c +7 -7
@@ -25,7 +25,7 @@ static unsigned char cached_8259[2] = { 0xff, 0xff };static DEFINE_RAW_SPINLOCK (i8259_lock); -static struct irq_host *i8259_host; +static struct irq_domain *i8259_host;/* * Acknowledge the IRQ using either the PCI host bridge's interrupt
@@ -163,12 +163,12 @@ static struct resource pic_edgectrl_iores = { .flags = IORESOURCE_BUSY, }; -static int i8259_host_match (struct irq_host *h,struct device_node *node) +static int i8259_host_match (struct irq_domain *h,struct device_node *node) {return h->of_node ==NULL || h->of_node == node; } -static int i8259_host_map (struct irq_host *h,unsigned int virq, +static int i8259_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {pr_debug ("i8259_host_map(%d, 0x%lx)\n" , virq, hw);
@@ -185,7 +185,7 @@ static int i8259_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int i8259_host_xlate (struct irq_host *h,struct device_node *ct, +static int i8259_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -205,13 +205,13 @@ static int i8259_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops i8259_host_ops = { +static struct irq_domain_ops i8259_host_ops = { .match = i8259_host_match, .map = i8259_host_map, .xlate = i8259_host_xlate, }; -struct irq_host *i8259_get_host (void ) +struct irq_domain *i8259_get_host (void ) {return i8259_host; }
@@ -263,7 +263,7 @@ void i8259_init(struct device_node *node, unsigned long intack_addr)raw_spin_unlock_irqrestore (&i8259_lock, flags);/* create a legacy host */ - i8259_host =irq_alloc_host (node,IRQ_HOST_MAP_LEGACY , + i8259_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LEGACY ,0 , &i8259_host_ops,0 );if (i8259_host ==NULL ) {printk (KERN_ERR "i8259: failed to allocate irq host !\n" );
arch/powerpc/sysdev/ipic.c +5 -5
@@ -672,13 +672,13 @@ static struct irq_chip ipic_edge_irq_chip = { .irq_set_type = ipic_set_irq_type, }; -static int ipic_host_match (struct irq_host *h,struct device_node *node) +static int ipic_host_match (struct irq_domain *h,struct device_node *node) {/* Exact match, unless ipic node is NULL */ return h->of_node ==NULL || h->of_node == node; } -static int ipic_host_map (struct irq_host *h,unsigned int virq, +static int ipic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct ipic *ipic = h->host_data;
@@ -692,7 +692,7 @@ static int ipic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int ipic_host_xlate (struct irq_host *h,struct device_node *ct, +static int ipic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -708,7 +708,7 @@ static int ipic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops ipic_host_ops = { +static struct irq_domain_ops ipic_host_ops = { .match = ipic_host_match, .map = ipic_host_map, .xlate = ipic_host_xlate,
@@ -728,7 +728,7 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags)if (ipic ==NULL )return NULL ; - ipic->irqhost =irq_alloc_host (node,IRQ_HOST_MAP_LINEAR , + ipic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,NR_IPIC_INTS , &ipic_host_ops,0 );if (ipic->irqhost ==NULL ) {
arch/powerpc/sysdev/ipic.h +1 -1
@@ -43,7 +43,7 @@ struct ipic {volatile u32 __iomem *regs;/* The remapper for this IPIC */ -struct irq_host *irqhost; +struct irq_domain *irqhost; };struct ipic_info {
arch/powerpc/sysdev/mpc8xx_pic.c +5 -5
@@ -17,7 +17,7 @@extern int cpm_get_irq (struct pt_regs *regs); -static struct irq_host *mpc8xx_pic_host; +static struct irq_domain *mpc8xx_pic_host;#define NR_MASK_WORDS ((NR_IRQS + 31) / 32)static unsigned long ppc_cached_irq_mask[NR_MASK_WORDS ];static sysconf8xx_t __iomem *siu_reg;
@@ -110,7 +110,7 @@ unsigned int mpc8xx_get_irq(void) } -static int mpc8xx_pic_host_map (struct irq_host *h,unsigned int virq, +static int mpc8xx_pic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {pr_debug ("mpc8xx_pic_host_map(%d, 0x%lx)\n" , virq, hw);
@@ -121,7 +121,7 @@ static int mpc8xx_pic_host_map(struct irq_host *h, unsigned int virq, } -static int mpc8xx_pic_host_xlate (struct irq_host *h,struct device_node *ct, +static int mpc8xx_pic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -142,7 +142,7 @@ static int mpc8xx_pic_host_xlate(struct irq_host *h, struct device_node *ct, } -static struct irq_host_ops mpc8xx_pic_host_ops = { +static struct irq_domain_ops mpc8xx_pic_host_ops = { .map = mpc8xx_pic_host_map, .xlate = mpc8xx_pic_host_xlate, };
@@ -171,7 +171,7 @@ int mpc8xx_pic_init(void) goto out; } - mpc8xx_pic_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , + mpc8xx_pic_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,64 , &mpc8xx_pic_host_ops,64 );if (mpc8xx_pic_host ==NULL ) {printk (KERN_ERR "MPC8xx PIC: failed to allocate irq host!\n" );
arch/powerpc/sysdev/mpic.c +6 -6
@@ -965,13 +965,13 @@ static struct irq_chip mpic_irq_ht_chip = {#endif /* CONFIG_MPIC_U3_HT_IRQS */ -static int mpic_host_match (struct irq_host *h,struct device_node *node) +static int mpic_host_match (struct irq_domain *h,struct device_node *node) {/* Exact match, unless mpic node is NULL */ return h->of_node ==NULL || h->of_node == node; } -static int mpic_host_map (struct irq_host *h,unsigned int virq, +static int mpic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct mpic *mpic = h->host_data;
@@ -1041,7 +1041,7 @@ static int mpic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int mpic_host_xlate (struct irq_host *h,struct device_node *ct, +static int mpic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -1121,13 +1121,13 @@ static void mpic_cascade(unsigned int irq, struct irq_desc *desc)BUG_ON (!(mpic->flags &MPIC_SECONDARY )); virq =mpic_get_one_irq (mpic); -if (virq !=NO_IRQ ) +if (virq)generic_handle_irq (virq); chip->irq_eoi (&desc->irq_data); } -static struct irq_host_ops mpic_host_ops = { +static struct irq_domain_ops mpic_host_ops = { .match = mpic_host_match, .map = mpic_host_map, .xlate = mpic_host_xlate,
@@ -1345,7 +1345,7 @@ struct mpic * __init mpic_alloc(struct device_node *node, mpic->isu_shift =1 +__ilog2 (mpic->isu_size -1 ); mpic->isu_mask = (1 << mpic->isu_shift) -1 ; - mpic->irqhost =irq_alloc_host (mpic->node,IRQ_HOST_MAP_LINEAR , + mpic->irqhost =irq_alloc_host (mpic->node,IRQ_DOMAIN_MAP_LINEAR , isu_size ? isu_size : mpic->num_sources, &mpic_host_ops, flags &MPIC_LARGE_VECTORS ?2048 :256 );
arch/powerpc/sysdev/mpic_msi.c +1 -1
@@ -32,7 +32,7 @@ void mpic_msi_reserve_hwirq(struct mpic *mpic, irq_hw_number_t hwirq)static int mpic_msi_reserve_u3_hwirqs (struct mpic *mpic) {irq_hw_number_t hwirq; -struct irq_host_ops *ops = mpic->irqhost->ops; +struct irq_domain_ops *ops = mpic->irqhost->ops;struct device_node *np;int flags, index, i;struct of_irq oirq;
arch/powerpc/sysdev/mv64x60_pic.c +4 -4
@@ -70,7 +70,7 @@ static u32 mv64x60_cached_low_mask;static u32 mv64x60_cached_high_mask =MV64X60_HIGH_GPP_GROUPS ;static u32 mv64x60_cached_gpp_mask; -static struct irq_host *mv64x60_irq_host; +static struct irq_domain *mv64x60_irq_host;/* * mv64x60_chip_low functions
@@ -208,7 +208,7 @@ static struct irq_chip *mv64x60_chips[] = { [MV64x60_LEVEL1_GPP] = &mv64x60_chip_gpp, }; -static int mv64x60_host_map (struct irq_host *h,unsigned int virq, +static int mv64x60_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hwirq) {int level1;
@@ -223,7 +223,7 @@ static int mv64x60_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops mv64x60_host_ops = { +static struct irq_domain_ops mv64x60_host_ops = { .map = mv64x60_host_map, };
@@ -250,7 +250,7 @@ void __init mv64x60_init_irq(void) paddr =of_translate_address (np, reg); mv64x60_irq_reg_base =ioremap (paddr, reg[1 ]); - mv64x60_irq_host =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , + mv64x60_irq_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , MV64x60_NUM_IRQS, &mv64x60_host_ops, MV64x60_NUM_IRQS);
arch/powerpc/sysdev/qe_lib/qe_ic.c +5 -5
@@ -245,13 +245,13 @@ static struct irq_chip qe_ic_irq_chip = { .irq_mask_ack = qe_ic_mask_irq, }; -static int qe_ic_host_match (struct irq_host *h,struct device_node *node) +static int qe_ic_host_match (struct irq_domain *h,struct device_node *node) {/* Exact match, unless qe_ic node is NULL */ return h->of_node ==NULL || h->of_node == node; } -static int qe_ic_host_map (struct irq_host *h,unsigned int virq, +static int qe_ic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct qe_ic *qe_ic = h->host_data;
@@ -272,7 +272,7 @@ static int qe_ic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int qe_ic_host_xlate (struct irq_host *h,struct device_node *ct, +static int qe_ic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 * intspec,unsigned int intsize,irq_hw_number_t * out_hwirq,unsigned int *out_flags)
@@ -285,7 +285,7 @@ static int qe_ic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops qe_ic_host_ops = { +static struct irq_domain_ops qe_ic_host_ops = { .match = qe_ic_host_match, .map = qe_ic_host_map, .xlate = qe_ic_host_xlate,
@@ -339,7 +339,7 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags,if (qe_ic ==NULL )return ; - qe_ic->irqhost =irq_alloc_host (node,IRQ_HOST_MAP_LINEAR , + qe_ic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,NR_QE_IC_INTS , &qe_ic_host_ops,0 );if (qe_ic->irqhost ==NULL ) {kfree (qe_ic);
arch/powerpc/sysdev/qe_lib/qe_ic.h +1 -1
@@ -79,7 +79,7 @@ struct qe_ic {volatile u32 __iomem *regs;/* The remapper for this QEIC */ -struct irq_host *irqhost; +struct irq_domain *irqhost;/* The "linux" controller struct */ struct irq_chip hc_irq;
arch/powerpc/sysdev/tsi108_pci.c +7 -7
@@ -51,7 +51,7 @@u32 tsi108_pci_cfg_base;static u32 tsi108_pci_cfg_phys;u32 tsi108_csr_vir_base; -static struct irq_host *pci_irq_host; +static struct irq_domain *pci_irq_host;extern u32 get_vir_csrbase (void );extern u32 tsi108_read_reg (u32 reg_offset);
@@ -376,7 +376,7 @@ static struct irq_chip tsi108_pci_irq = { .irq_unmask = tsi108_pci_irq_unmask, }; -static int pci_irq_host_xlate (struct irq_host *h,struct device_node *ct, +static int pci_irq_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags) {
@@ -385,7 +385,7 @@ static int pci_irq_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static int pci_irq_host_map (struct irq_host *h,unsigned int virq, +static int pci_irq_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {unsigned int irq;DBG ("%s(%d, 0x%lx)\n" , __func__, virq, hw);
@@ -397,7 +397,7 @@ static int pci_irq_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops pci_irq_host_ops = { +static struct irq_domain_ops pci_irq_domain_ops = { .map = pci_irq_host_map, .xlate = pci_irq_host_xlate, };
@@ -419,10 +419,10 @@ void __init tsi108_pci_int_init(struct device_node *node) {DBG ("Tsi108_pci_int_init: initializing PCI interrupts\n" ); - pci_irq_host =irq_alloc_host (node,IRQ_HOST_MAP_LEGACY , -0 , &pci_irq_host_ops,0 ); + pci_irq_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LEGACY , +0 , &pci_irq_domain_ops,0 );if (pci_irq_host ==NULL ) { -printk (KERN_ERR "pci_irq_host: failed to allocate irq host !\n" ); +printk (KERN_ERR "pci_irq_host: failed to allocate irq domain!\n" );return ; }
arch/powerpc/sysdev/uic.c +5 -5
@@ -49,7 +49,7 @@ struct uic {raw_spinlock_t lock;/* The remapper for this UIC */ -struct irq_host *irqhost; +struct irq_domain *irqhost; };static void uic_unmask_irq (struct irq_data *d)
@@ -174,7 +174,7 @@ static struct irq_chip uic_irq_chip = { .irq_set_type = uic_set_irq_type, }; -static int uic_host_map (struct irq_host *h,unsigned int virq, +static int uic_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct uic *uic = h->host_data;
@@ -190,7 +190,7 @@ static int uic_host_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int uic_host_xlate (struct irq_host *h,struct device_node *ct, +static int uic_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_type)
@@ -202,7 +202,7 @@ static int uic_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops uic_host_ops = { +static struct irq_domain_ops uic_host_ops = { .map = uic_host_map, .xlate = uic_host_xlate, };
@@ -270,7 +270,7 @@ static struct uic * __init uic_init_one(struct device_node *node) } uic->dcrbase = *dcrreg; - uic->irqhost =irq_alloc_host (node,IRQ_HOST_MAP_LINEAR , + uic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,NR_UIC_INTS , &uic_host_ops,-1 );if (! uic->irqhost)return NULL ;/* FIXME: panic? */
arch/powerpc/sysdev/xics/xics-common.c +6 -6
@@ -40,7 +40,7 @@ unsigned int xics_interrupt_server_size = 8; DEFINE_PER_CPU(struct xics_cppr, xics_cppr); -struct irq_host *xics_host; +struct irq_domain *xics_host;static LIST_HEAD (ics_list);
@@ -301,7 +301,7 @@ int xics_get_irq_server(unsigned int virq, const struct cpumask *cpumask, }#endif /* CONFIG_SMP */ -static int xics_host_match (struct irq_host *h,struct device_node *node) +static int xics_host_match (struct irq_domain *h,struct device_node *node) {struct ics *ics;
@@ -323,7 +323,7 @@ static struct irq_chip xics_ipi_chip = { .irq_unmask = xics_ipi_unmask, }; -static int xics_host_map (struct irq_host *h,unsigned int virq, +static int xics_host_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct ics *ics;
@@ -351,7 +351,7 @@ static int xics_host_map(struct irq_host *h, unsigned int virq,return -EINVAL ; } -static int xics_host_xlate (struct irq_host *h,struct device_node *ct, +static int xics_host_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -366,7 +366,7 @@ static int xics_host_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops xics_host_ops = { +static struct irq_domain_ops xics_host_ops = { .match = xics_host_match, .map = xics_host_map, .xlate = xics_host_xlate,
@@ -374,7 +374,7 @@ static struct irq_host_ops xics_host_ops = {static void __init xics_init_host (void ) { - xics_host =irq_alloc_host (NULL ,IRQ_HOST_MAP_TREE ,0 , &xics_host_ops, + xics_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_TREE ,0 , &xics_host_ops,XICS_IRQ_SPURIOUS );BUG_ON (xics_host ==NULL );irq_set_default_host (xics_host);
arch/powerpc/sysdev/xilinx_intc.c +8 -8
@@ -40,7 +40,7 @@#define XINTC_IVR 24/* Interrupt Vector */ #define XINTC_MER 28/* Master Enable */ -static struct irq_host *master_irqhost; +static struct irq_domain *master_irqhost;#define XILINX_INTC_MAXIRQS (32)
@@ -141,7 +141,7 @@ static struct irq_chip xilinx_intc_edge_irqchip = {/** * xilinx_intc_xlate - translate virq# from device tree interrupts property */ -static int xilinx_intc_xlate (struct irq_host *h,struct device_node *ct, +static int xilinx_intc_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -161,7 +161,7 @@ static int xilinx_intc_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static int xilinx_intc_map (struct irq_host *h,unsigned int virq, +static int xilinx_intc_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t irq) {irq_set_chip_data (virq, h->host_data);
@@ -177,15 +177,15 @@ static int xilinx_intc_map(struct irq_host *h, unsigned int virq,return 0 ; } -static struct irq_host_ops xilinx_intc_ops = { +static struct irq_domain_ops xilinx_intc_ops = { .map = xilinx_intc_map, .xlate = xilinx_intc_xlate, }; -struct irq_host *__init +struct irq_domain *__init xilinx_intc_init (struct device_node *np) { -struct irq_host * irq; +struct irq_domain * irq;void * regs;/* Find and map the intc registers */
@@ -200,8 +200,8 @@ xilinx_intc_init(struct device_node *np)out_be32 (regs +XINTC_IAR , ~(u32 )0 );/* Acknowledge pending irqs */ out_be32 (regs +XINTC_MER ,0x3UL );/* Turn on the Master Enable. */ -/* Allocate and initialize an irq_host structure. */ - irq =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,XILINX_INTC_MAXIRQS , +/* Allocate and initialize an irq_domain structure. */ + irq =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,XILINX_INTC_MAXIRQS , &xilinx_intc_ops,-1 );if (!irq)panic (__FILE__": Cannot allocate IRQ host\n" );
drivers/gpio/gpio-mpc8xxx.c +5 -5
@@ -37,7 +37,7 @@ struct mpc8xxx_gpio_chip {* open drain mode safely */ u32 data; -struct irq_host *irq; +struct irq_domain *irq;void *of_dev_id_data; };
@@ -281,7 +281,7 @@ static struct irq_chip mpc8xxx_irq_chip = { .irq_set_type = mpc8xxx_irq_set_type, }; -static int mpc8xxx_gpio_irq_map (struct irq_host *h,unsigned int virq, +static int mpc8xxx_gpio_irq_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct mpc8xxx_gpio_chip *mpc8xxx_gc = h->host_data;
@@ -296,7 +296,7 @@ static int mpc8xxx_gpio_irq_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int mpc8xxx_gpio_irq_xlate (struct irq_host *h,struct device_node *ct, +static int mpc8xxx_gpio_irq_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_flags)
@@ -311,7 +311,7 @@ static int mpc8xxx_gpio_irq_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops mpc8xxx_gpio_irq_ops = { +static struct irq_domain_ops mpc8xxx_gpio_irq_ops = { .map = mpc8xxx_gpio_irq_map, .xlate = mpc8xxx_gpio_irq_xlate, };
@@ -365,7 +365,7 @@ static void __init mpc8xxx_add_controller(struct device_node *np) goto skip_irq; mpc8xxx_gc->irq = -irq_alloc_host (np,IRQ_HOST_MAP_LINEAR ,MPC8XXX_GPIO_PINS , +irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,MPC8XXX_GPIO_PINS , &mpc8xxx_gpio_irq_ops,MPC8XXX_GPIO_PINS );if (!mpc8xxx_gc->irq) goto skip_irq;
Signature · 1 line
1.7.9
PATCH v5 6/27 irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Grant LikelyThis patch drops the powerpc-specific irq_map table and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeing irq_desc structures.
This patch is a preparation step for generalizing the powerpc-specific virq infrastructure to become irq_domains.
As part of this change, the irq_big_lock is changed to a mutex from a raw spinlock. There is no longer any need to use a spin lock since the irq_desc allocation code is now responsible for the critical section of finding an unused range of irq numbers.
The radix lookup table is also changed to store the irq_data pointer instead of the irq_map entry since the irq_map is removed. This should end up being functionally equivalent since only allocated irq_descs are ever added to the radix tree.
v5: - Really don't ever allocate virq 0. The previous version could still
do it if hint == 0
- Respect irq_virq_count setting for NOMAP. Some NOMAP domains cannot use virq values above irq_virq_count.
- Use numa_node_id() when allocating irq_descs. Ideally the API should obtain that value from the caller, but that touches a lot of call sites so will be deferred to a follow-on patch.
- Fix irq_find_mapping() to include irq numbers lower than NUM_ISA_INTERRUPTS. With the switch to irq_alloc_desc*(), the lowest possible allocated irq is now returned by arch_probe_nr_irqs().
v4: - Fix incorrect access to irq_data structure in debugfs code
- Don't ever allocate virq 0
--- arch/powerpc/include/asm/irq.h | 27 ----- arch/powerpc/kernel/irq.c | 240 ++++++++++++---------------------------- 2 files changed, 69 insertions(+), 198 deletions(-)
arch/powerpc/include/asm/irq.h +0 -27
@@ -191,33 +191,6 @@ extern unsigned int irq_linear_revmap(struct irq_domain *host, irq_hw_number_t hwirq); - -/** -* irq_alloc_virt - Allocate virtual irq numbers -* @host: host owning these new virtual irqs -* @count: number of consecutive numbers to allocate -* @hint: pass a hint number, the allocator will try to use a 1:1 mapping -* -* This is a low level function that is used internally by irq_create_mapping() -* and that can be used by some irq controllers implementations for things -* like allocating ranges of numbers for MSIs. The revmaps are left untouched. -*/ -extern unsigned int irq_alloc_virt (struct irq_domain *host, -unsigned int count, -unsigned int hint); - -/** -* irq_free_virt - Free virtual irq numbers -* @virq: virtual irq number of the first interrupt to free -* @count: number of interrupts to free -* -* This function is the opposite of irq_alloc_virt. It will not clear reverse -* maps, this should be done previously by unmap'ing the interrupt. In fact, -* all interrupts covered by the range being freed should have been unmapped -* prior to calling this. -*/ -extern void irq_free_virt (unsigned int virq,unsigned int count); -/** * irq_early_init - Init irq remapping subsystem */
arch/powerpc/kernel/irq.c +69 -171
434 lines not on this page · raw message
Signature · 1 line
1.7.9
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
Note that the breakage only started after the series was merged into mainline. But when transplanted upon the parent of the merge this is the commit that was blamed by bisect. So something changed between v3.3-rc3 and the merge of this series that broke it.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.
Quoted 7 lines
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
Note that the breakage only started after the series was merged into mainline. But when transplanted upon the parent of the merge this is the commit that was blamed by bisect. So something changed between v3.3-rc3 and the merge of this series that broke it.
can you tell me more ? (What machine precisely, what .config etc...) ?
I tested here on two G5's:
- PowerMac7,3 aka Dual G5 AGP. This ones has U3 + K2 and
uses cascaded MPICs
- PowerMac11,2 aka Quad G5. This one has U4 + K2 and uses a single MPIC
in the northbridge
And both appear to work fine with today upstream (basically -rc1).
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 2 lines · Benjamin Herrenschmidt
- PowerMac7,3 aka Dual G5 AGP. This ones has U3 + K2 and
uses cascaded MPICs
That's the same as mine, config is attached. I'm currently trying to bisect the commit that actually broke the series.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 3.4.0-rc1 Kernel Configuration
#CONFIG_PPC64=y
#
# Processor support
#CONFIG_PPC_BOOK3S_64=y
# CONFIG_PPC_BOOK3E_64 is not set CONFIG_PPC_BOOK3S=yCONFIG_POWER4_ONLY=yCONFIG_POWER4=y
# CONFIG_TUNE_CELL is not setCONFIG_PPC_FPU=yCONFIG_ALTIVEC=y
# CONFIG_VSX is not set
# CONFIG_PPC_ICSWX is not setCONFIG_PPC_STD_MMU=yCONFIG_PPC_STD_MMU_64=yCONFIG_PPC_MM_SLICES=y CONFIG_VIRT_CPU_ACCOUNTING=y CONFIG_PPC_HAVE_PMU_SUPPORT=yCONFIG_SMP=yCONFIG_NR_CPUS=2CONFIG_64BIT=yCONFIG_WORD_SIZE=64 CONFIG_ARCH_PHYS_ADDR_T_64BIT=y CONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_MMU=yCONFIG_GENERIC_CMOS_UPDATE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NR_IRQS=64CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_ARCH_HAS_ILOG2_U32=y CONFIG_ARCH_HAS_ILOG2_U64=y CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_NO_VIRT_TO_BUS=yCONFIG_PPC=yCONFIG_EARLY_PRINTK=yCONFIG_COMPAT=yCONFIG_SYSVIPC_COMPAT=y CONFIG_SCHED_OMIT_FRAME_POINTER=y CONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_PPC_OF=y
# CONFIG_PPC_UDBG_16550 is not set CONFIG_GENERIC_TBSYNC=yCONFIG_AUDIT_ARCH=yCONFIG_GENERIC_BUG=y
# CONFIG_EPAPR_BOOT is not set
# CONFIG_DEFAULT_UIMAGE is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y
# CONFIG_PPC_DCR_NATIVE is not set
# CONFIG_PPC_DCR_MMIO is not set
# CONFIG_PPC_OF_PLATFORM_PCI is not set CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_HAVE_IRQ_WORK=y
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_CROSS_COMPILE=""CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_FHANDLE=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=yCONFIG_AUDIT=yCONFIG_AUDITSYSCALL=yCONFIG_AUDIT_WATCH=yCONFIG_AUDIT_TREE=yCONFIG_AUDIT_LOGINUID_IMMUTABLE=yCONFIG_HAVE_GENERIC_HARDIRQS=y
#
# IRQ subsystem
#CONFIG_GENERIC_HARDIRQS=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_SHOW_LEVEL=yCONFIG_IRQ_DOMAIN=y
# CONFIG_IRQ_DOMAIN_DEBUG is not setCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not setCONFIG_RCU_FANOUT=64
# CONFIG_RCU_FANOUT_EXACT is not set
# CONFIG_RCU_FAST_NO_HZ is not set
# CONFIG_TREE_RCU_TRACE is not setCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=19CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not setCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_DEVICE=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_CPUACCT=yCONFIG_RESOURCE_COUNTERS=y
# CONFIG_CGROUP_MEM_RES_CTLR is not setCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SYSCTL=yCONFIG_ANON_INODES=y
# CONFIG_EXPERT is not set
# CONFIG_SYSCTL_SYSCALL is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=y
# CONFIG_EMBEDDED is not setCONFIG_HAVE_PERF_EVENTS=y
#
# Kernel Performance Events And Counters
#
# CONFIG_PERF_EVENTS is not set
# CONFIG_PERF_COUNTERS is not setCONFIG_VM_EVENT_COUNTERS=yCONFIG_PCI_QUIRKS=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=yCONFIG_PROFILING=yCONFIG_OPROFILE=mCONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
# CONFIG_JUMP_LABEL is not setCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_HAVE_SYSCALL_WRAPPERS=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_ATTRS=yCONFIG_USE_GENERIC_SMP_HELPERS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_DMA_API_DEBUG=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_RCU_TABLE_FREE=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not setCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not setCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_STOP_MACHINE=yCONFIG_BLOCK=yCONFIG_BLK_DEV_BSG=y
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not setCONFIG_BLK_DEV_THROTTLING=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not setCONFIG_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=y
# CONFIG_LDM_DEBUG is not setCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_BLOCK_COMPAT=y
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y CONFIG_CFQ_GROUP_IOSCHED=y
# CONFIG_DEFAULT_DEADLINE is not set CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set CONFIG_DEFAULT_IOSCHED="cfq" CONFIG_PREEMPT_NOTIFIERS=y
# CONFIG_INLINE_SPIN_TRYLOCK is not set
# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set # CONFIG_INLINE_SPIN_LOCK is not set
# CONFIG_INLINE_SPIN_LOCK_BH is not set
# CONFIG_INLINE_SPIN_LOCK_IRQ is not set
# CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set CONFIG_UNINLINE_SPIN_UNLOCK=y
# CONFIG_INLINE_SPIN_UNLOCK_BH is not set # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_READ_TRYLOCK is not set
# CONFIG_INLINE_READ_LOCK is not set
# CONFIG_INLINE_READ_LOCK_BH is not set
# CONFIG_INLINE_READ_LOCK_IRQ is not set
# CONFIG_INLINE_READ_LOCK_IRQSAVE is not set # CONFIG_INLINE_READ_UNLOCK is not set
# CONFIG_INLINE_READ_UNLOCK_BH is not set # CONFIG_INLINE_READ_UNLOCK_IRQ is not set # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_WRITE_TRYLOCK is not set
# CONFIG_INLINE_WRITE_LOCK is not set
# CONFIG_INLINE_WRITE_LOCK_BH is not set
# CONFIG_INLINE_WRITE_LOCK_IRQ is not set # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set # CONFIG_INLINE_WRITE_UNLOCK is not set
# CONFIG_INLINE_WRITE_UNLOCK_BH is not set # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set # CONFIG_MUTEX_SPIN_ON_OWNER is not set CONFIG_FREEZER=y
# CONFIG_PPC_XICS is not set
# CONFIG_PPC_ICP_NATIVE is not set
# CONFIG_PPC_ICP_HV is not set
# CONFIG_PPC_ICS_RTAS is not set
# CONFIG_GE_FPGA is not set
#
# Platform support
#
# CONFIG_PPC_POWERNV is not set
# CONFIG_PPC_PSERIES is not setCONFIG_PPC_PMAC=yCONFIG_PPC_PMAC64=y
# CONFIG_PPC_MAPLE is not set
# CONFIG_PPC_PASEMI is not set
# CONFIG_PPC_PS3 is not set
# CONFIG_PPC_CELL is not set
# CONFIG_PPC_CELL_NATIVE is not set
# CONFIG_PPC_IBM_CELL_BLADE is not set
# CONFIG_PPC_CELLEB is not set
# CONFIG_PPC_CELL_QPACE is not set
# CONFIG_PQ2ADS is not set
# CONFIG_PPC_WSP is not setCONFIG_KVM_GUEST=yCONFIG_PPC_NATIVE=yCONFIG_PPC_OF_BOOT_TRAMPOLINE=y
# CONFIG_IPIC is not setCONFIG_MPIC=y
# CONFIG_PPC_EPAPR_HV_PIC is not set
# CONFIG_MPIC_WEIRD is not set
# CONFIG_MPIC_MSGR is not set
# CONFIG_PPC_I8259 is not setCONFIG_U3_DART=y
# CONFIG_PPC_RTAS is not set
# CONFIG_MMIO_NVRAM is not setCONFIG_MPIC_U3_HT_IRQS=y
# CONFIG_PPC_MPC106 is not setCONFIG_PPC_970_NAP=y
# CONFIG_PPC_P7_NAP is not set
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# 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 is not set CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
#
# PowerPC CPU frequency scaling drivers
#
#
# CPU Frequency drivers
#CONFIG_CPU_FREQ_PMAC64=y
#
# CPUIdle driver
#
# CONFIG_CPU_IDLE is not set
# CONFIG_FSL_ULI1575 is not set
# CONFIG_SIMPLE_GPIO is not set
#
# Kernel options
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_GENERIC_CLOCKEVENTS_BUILD=yCONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=100CONFIG_SCHED_HRTICK=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
# CONFIG_HAVE_AOUT is not setCONFIG_BINFMT_MISC=mCONFIG_HUGETLB_PAGE_SIZE_VARIABLE=yCONFIG_IOMMU_HELPER=y
# CONFIG_SWIOTLB is not setCONFIG_HOTPLUG_CPU=yCONFIG_ARCH_CPU_PROBE_RELEASE=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=yCONFIG_ARCH_HAS_WALK_MEMORY=yCONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=yCONFIG_KEXEC=y
# CONFIG_CRASH_DUMP is not setCONFIG_IRQ_ALL_CPUS=y
# CONFIG_NUMA is not setCONFIG_MAX_ACTIVE_REGIONS=256CONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_SYS_SUPPORTS_HUGETLBFS=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_HAVE_MEMBLOCK=yCONFIG_HAVE_MEMBLOCK_NODE_MAP=yCONFIG_PAGEFLAGS_EXTENDED=yCONFIG_SPLIT_PTLOCK_CPUS=999999
# CONFIG_COMPACTION is not set
# CONFIG_MIGRATION is not setCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_MMU_NOTIFIER=y
# CONFIG_KSM is not setCONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_CLEANCACHE is not set
# CONFIG_PPC_HAS_HASH_64K is not setCONFIG_PPC_4K_PAGES=y
# CONFIG_PPC_64K_PAGES is not setCONFIG_FORCE_MAX_ZONEORDER=13
# CONFIG_SCHED_SMT is not set
# CONFIG_CMDLINE_BOOL is not setCONFIG_EXTRA_TARGETS=""CONFIG_ARCH_WANTS_FREEZER_CONTROL=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_RUNTIME is not setCONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_SECCOMP=yCONFIG_ISA_DMA_API=y
#
# Bus options
#CONFIG_ZONE_DMA=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_GENERIC_ISA_DMA=y
# CONFIG_PPC_INDIRECT_PCI is not setCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCI_SYSCALL=y
# CONFIG_PCIEPORTBUS is not setCONFIG_ARCH_SUPPORTS_MSI=y
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HAS_RAPIDIO is not set
# CONFIG_RAPIDIO is not set
# CONFIG_NONSTATIC_KERNEL is not set
# CONFIG_RELOCATABLE is not setCONFIG_PAGE_OFFSET=0xc000000000000000CONFIG_KERNEL_START=0xc000000000000000CONFIG_PHYSICAL_START=0x00000000CONFIG_NET=yCONFIG_COMPAT_NETLINK_MESSAGES=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_UNIX=yCONFIG_UNIX_DIAG=yCONFIG_XFRM=yCONFIG_XFRM_USER=mCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_IPCOMP=mCONFIG_NET_KEY=yCONFIG_NET_KEY_MIGRATE=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_FIB_TRIE_STATS is not setCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=y
# CONFIG_IP_PNP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=y
# CONFIG_IP_MROUTE_MULTIPLE_TABLES is not setCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not setCONFIG_SYN_COOKIES=yCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_XFRM_MODE_TRANSPORT=mCONFIG_INET_XFRM_MODE_TUNNEL=mCONFIG_INET_XFRM_MODE_BEET=mCONFIG_INET_LRO=yCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_PRIVACY=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=mCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_INET6_XFRM_MODE_TRANSPORT=mCONFIG_INET6_XFRM_MODE_TUNNEL=mCONFIG_INET6_XFRM_MODE_BEET=mCONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=yCONFIG_IPV6_MROUTE=y
# CONFIG_IPV6_MROUTE_MULTIPLE_TABLES is not setCONFIG_IPV6_PIMSM_V2=yCONFIG_NETLABEL=yCONFIG_NETWORK_SECMARK=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not setCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not setCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_NETLINK_ACCT=mCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NF_CONNTRACK=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=y
# CONFIG_NF_CONNTRACK_TIMESTAMP is not setCONFIG_NF_CT_PROTO_DCCP=mCONFIG_NF_CT_PROTO_GRE=mCONFIG_NF_CT_PROTO_SCTP=mCONFIG_NF_CT_PROTO_UDPLITE=mCONFIG_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_NETFILTER_TPROXY=mCONFIG_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_IDLETIMER=mCONFIG_NETFILTER_XT_TARGET_LED=mCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=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_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=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_IPRANGE=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=mCONFIG_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_IPPORT=mCONFIG_IP_SET_HASH_IPPORTIP=mCONFIG_IP_SET_HASH_IPPORTNET=mCONFIG_IP_SET_HASH_NET=mCONFIG_IP_SET_HASH_NETPORT=mCONFIG_IP_SET_HASH_NETIFACE=mCONFIG_IP_SET_LIST_SET=m
# CONFIG_IP_VS is not set
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_CONNTRACK_IPV4=m
# CONFIG_NF_CONNTRACK_PROC_COMPAT is not setCONFIG_IP_NF_QUEUE=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_ULOG=mCONFIG_NF_NAT=mCONFIG_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PROTO_DCCP=mCONFIG_NF_NAT_PROTO_GRE=mCONFIG_NF_NAT_PROTO_UDPLITE=mCONFIG_NF_NAT_PROTO_SCTP=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_NF_NAT_SIP=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
#
# IPv6: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV6=mCONFIG_NF_CONNTRACK_IPV6=m
# CONFIG_IP6_NF_QUEUE is not setCONFIG_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_TARGET_HL=mCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=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_ULOG=mCONFIG_BRIDGE_EBT_NFLOG=mCONFIG_IP_DCCP=mCONFIG_INET_DCCP_DIAG=m
#
# DCCP CCIDs Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP_CCID2_DEBUG is not set
# CONFIG_IP_DCCP_CCID3 is not set
#
# DCCP Kernel Hacking
#
# CONFIG_IP_DCCP_DEBUG is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_MSG is not set
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_HMAC_NONE is not setCONFIG_SCTP_HMAC_SHA1=y
# CONFIG_SCTP_HMAC_MD5 is not setCONFIG_RDS=mCONFIG_RDS_TCP=m
# CONFIG_RDS_DEBUG is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not setCONFIG_L2TP=mCONFIG_L2TP_DEBUGFS=mCONFIG_L2TP_V3=yCONFIG_L2TP_IP=mCONFIG_L2TP_ETH=mCONFIG_STP=mCONFIG_GARP=mCONFIG_BRIDGE=mCONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_NET_DSA is not setCONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=y
# CONFIG_DECNET is not setCONFIG_LLC=mCONFIG_LLC2=mCONFIG_IPX=mCONFIG_IPX_INTERN=yCONFIG_ATALK=mCONFIG_DEV_APPLETALK=mCONFIG_IPDDP=mCONFIG_IPDDP_ENCAP=yCONFIG_IPDDP_DECAP=yCONFIG_X25=mCONFIG_LAPB=m
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not setCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=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_GRED=mCONFIG_NET_SCH_DSMARK=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=mCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_INGRESS=mCONFIG_NET_SCH_PLUG=m
#
# 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=yCONFIG_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_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=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_CLS_IND=yCONFIG_NET_SCH_FIFO=y
# CONFIG_DCB is not setCONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not setCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_XPS=y
# CONFIG_NETPRIO_CGROUP is not setCONFIG_BQL=yCONFIG_HAVE_BPF_JIT=yCONFIG_BPF_JIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=m
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not setCONFIG_BT=mCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_HIDP=m
#
# Bluetooth device drivers
#CONFIG_BT_HCIBTUSB=m
# CONFIG_BT_HCIUART is not setCONFIG_BT_HCIBCM203X=mCONFIG_BT_HCIBPA10X=mCONFIG_BT_HCIBFUSB=mCONFIG_BT_HCIVHCI=m
# CONFIG_BT_MRVL is not set
# CONFIG_BT_ATH3K is not setCONFIG_AF_RXRPC=m
# CONFIG_AF_RXRPC_DEBUG is not setCONFIG_RXKAD=mCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WIRELESS_EXT=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_WEXT_SPY=yCONFIG_WEXT_PRIV=yCONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not setCONFIG_CFG80211_DEFAULT_PS=yCONFIG_CFG80211_DEBUGFS=y
# CONFIG_CFG80211_INTERNAL_REGDB is not setCONFIG_CFG80211_WEXT=yCONFIG_WIRELESS_EXT_SYSFS=yCONFIG_LIB80211=m
# CONFIG_LIB80211_DEBUG is not setCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_MINSTREL_HT=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not setCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_WIMAX is not setCONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_NET_9P=mCONFIG_NET_9P_VIRTIO=m
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not setCONFIG_EXTRA_FIRMWARE=""
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not setCONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
# CONFIG_MTD is not setCONFIG_DTC=yCONFIG_OF=y
#
# Device Tree and Open Firmware support
#CONFIG_PROC_DEVICETREE=y
# CONFIG_OF_SELFTEST is not setCONFIG_OF_FLATTREE=yCONFIG_OF_EARLY_FLATTREE=yCONFIG_OF_ADDRESS=yCONFIG_OF_IRQ=yCONFIG_OF_DEVICE=yCONFIG_OF_I2C=yCONFIG_OF_NET=yCONFIG_OF_MDIO=yCONFIG_OF_PCI=yCONFIG_OF_PCI_IRQ=y
# CONFIG_PARPORT is not setCONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=8CONFIG_BLK_DEV_CRYPTOLOOP=mCONFIG_BLK_DEV_DRBD=m
# CONFIG_DRBD_FAULT_INJECTION is not setCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_UB is not set
# CONFIG_BLK_DEV_RAM is not setCONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_CDROM_PKTCDVD_WCACHE=yCONFIG_ATA_OVER_ETH=mCONFIG_VIRTIO_BLK=m
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_AD525X_DPOT is not set
# CONFIG_PHANTOM is not set
# CONFIG_INTEL_MID_PTI is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_BMP085 is not set
# CONFIG_PCH_PHUB is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not setCONFIG_EEPROM_93CX6=m
# CONFIG_CB710_CORE is not set
#
# Texas Instruments shared transport line discipline #
# CONFIG_SENSORS_LIS3_I2C is not set
#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not setCONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_TGT=m
# CONFIG_SCSI_NETLINK is not setCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=m
# CONFIG_CHR_DEV_OSST is not setCONFIG_BLK_DEV_SR=mCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=yCONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not setCONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not setCONFIG_ISCSI_BOOT_SYSFS=m
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_SCSI_BNX2X_FCOE is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_LIBFC is not set
# CONFIG_LIBFCOE is not set
# CONFIG_FCOE is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not setCONFIG_SCSI_DEBUG=m
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_SRP is not set
# CONFIG_SCSI_BFA_FC is not setCONFIG_SCSI_VIRTIO=mCONFIG_SCSI_DH=m
# CONFIG_SCSI_DH_RDAC is not set
# CONFIG_SCSI_DH_HP_SW is not set
# CONFIG_SCSI_DH_EMC is not set
# CONFIG_SCSI_DH_ALUA is not set
# CONFIG_SCSI_OSD_INITIATOR is not setCONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not setCONFIG_ATA_VERBOSE_ERROR=yCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not setCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#
# CONFIG_ATA_PIIX is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not setCONFIG_SATA_SVW=y
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARASAN_CF is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5536 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not setCONFIG_PATA_MACIO=y
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not setCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=m
# CONFIG_MULTICORE_RAID456 is not setCONFIG_MD_MULTIPATH=mCONFIG_MD_FAULTY=mCONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not setCONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=y
# CONFIG_DM_THIN_PROVISIONING is not setCONFIG_DM_MIRROR=mCONFIG_DM_RAID=m
# CONFIG_DM_LOG_USERSPACE is not setCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m
# CONFIG_DM_MULTIPATH_QL is not set
# CONFIG_DM_MULTIPATH_ST is not setCONFIG_DM_DELAY=mCONFIG_DM_UEVENT=y
# CONFIG_DM_FLAKEY is not set
# CONFIG_DM_VERITY is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_I2O is not setCONFIG_MACINTOSH_DRIVERS=yCONFIG_ADB_PMU=yCONFIG_ADB_PMU_LED=y
# CONFIG_ADB_PMU_LED_IDE is not set
# CONFIG_PMAC_SMU is not setCONFIG_MAC_EMUMOUSEBTN=yCONFIG_THERM_PM72=y
# CONFIG_WINDFARM is not set
# CONFIG_PMAC_RACKMETER is not setCONFIG_NETDEVICES=yCONFIG_NET_CORE=yCONFIG_BONDING=mCONFIG_DUMMY=mCONFIG_EQUALIZER=m
# CONFIG_NET_FC is not setCONFIG_MII=mCONFIG_IFB=m
# CONFIG_NET_TEAM is not setCONFIG_MACVLAN=mCONFIG_MACVTAP=mCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NETPOLL_TRAP=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=mCONFIG_VETH=mCONFIG_VIRTIO_NET=mCONFIG_SUNGEM_PHY=m
# CONFIG_ARCNET is not set
#
# CAIF transport drivers
#CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_CALXEDA_XGMAC is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EXAR is not set
# CONFIG_NET_VENDOR_HP is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_IP1000 is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_PACKET_ENGINE is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_SFC is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_STMICRO is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not setCONFIG_SUNGEM=m
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_XILINX is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not setCONFIG_PHYLIB=y
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_REALTEK_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_FIXED_PHY is not set
# CONFIG_MDIO_BITBANG is not setCONFIG_PPP=mCONFIG_PPP_BSDCOMP=mCONFIG_PPP_DEFLATE=mCONFIG_PPP_FILTER=yCONFIG_PPP_MPPE=mCONFIG_PPP_MULTILINK=yCONFIG_PPPOE=mCONFIG_PPTP=mCONFIG_PPPOL2TP=mCONFIG_PPP_ASYNC=mCONFIG_PPP_SYNC_TTY=m
# CONFIG_SLIP is not setCONFIG_SLHC=m
# CONFIG_TR is not set
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_HSO is not set
# CONFIG_USB_IPHETH is not setCONFIG_WLAN=y
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_AIRO is not set
# CONFIG_ATMEL is not set
# CONFIG_AT76C50X_USB is not set
# CONFIG_PRISM54 is not set
# CONFIG_USB_ZD1201 is not set
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_RTL8180 is not set
# CONFIG_RTL8187 is not set
# CONFIG_ADM8211 is not setCONFIG_MAC80211_HWSIM=m
# CONFIG_MWL8K is not set
# CONFIG_ATH_COMMON is not setCONFIG_B43=mCONFIG_B43_SSB=yCONFIG_B43_PCI_AUTOSELECT=yCONFIG_B43_PCICORE_AUTOSELECT=yCONFIG_B43_PIO=y
# CONFIG_B43_PHY_N is not setCONFIG_B43_PHY_LP=yCONFIG_B43_PHY_HT=yCONFIG_B43_LEDS=yCONFIG_B43_HWRNG=y
# CONFIG_B43_DEBUG is not set
# CONFIG_B43LEGACY is not set
# CONFIG_BRCMFMAC is not set
# CONFIG_HOSTAP is not set
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_IWLWIFI is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_LIBERTAS is not setCONFIG_HERMES=m
# CONFIG_HERMES_PRISM is not setCONFIG_HERMES_CACHE_FW_ON_INIT=yCONFIG_APPLE_AIRPORT=m
# CONFIG_PLX_HERMES is not set
# CONFIG_TMD_HERMES is not set
# CONFIG_NORTEL_HERMES is not set
# CONFIG_ORINOCO_USB is not set
# CONFIG_P54_COMMON is not set
# CONFIG_RT2X00 is not set
# CONFIG_RTL8192CE is not set
# CONFIG_RTL8192SE is not set
# CONFIG_RTL8192DE is not set
# CONFIG_RTL8192CU is not set
# CONFIG_WL1251 is not set
# CONFIG_WL12XX_MENU is not set
# CONFIG_ZD1211RW is not set
# CONFIG_MWIFIEX is not set
#
# Enable WiMAX (Networking options) to see the WiMAX drivers #
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_POLLDEV=m
# CONFIG_INPUT_SPARSEKMAP is not set
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=m
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_DEVPTS_MULTIPLE_INSTANCES=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=0
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_PPC_EPAPR_HV_BYTECHAN is not setCONFIG_DEVKMEM=y
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MFD_HSU is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_PMACZILOG=yCONFIG_SERIAL_PMACZILOG_TTYS=yCONFIG_SERIAL_PMACZILOG_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_PCH_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not setCONFIG_HVC_DRIVER=y
# CONFIG_HVC_UDBG is not setCONFIG_VIRTIO_CONSOLE=m
# CONFIG_IPMI_HANDLER is not setCONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not setCONFIG_HW_RANDOM_VIRTIO=m
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not setCONFIG_RAW_DRIVER=mCONFIG_MAX_RAW_DEVS=4096
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not setCONFIG_DEVPORT=y
# CONFIG_RAMOOPS is not setCONFIG_I2C=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=m
# CONFIG_I2C_MUX is not setCONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_ALGOBIT=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
#
# Mac SMBus host controller drivers
#CONFIG_I2C_POWERMAC=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EG20T is not set
# CONFIG_I2C_INTEL_MID is not set
# CONFIG_I2C_MPC is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_SPI is not set
#
# PPS support
#
# CONFIG_PPS is not set
#
# PPS generators support
#
#
# PTP clock support
#
#
# Enable Device Drivers -> PPS to see the PTP clock options. #CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_BATTERY_BQ27x00 is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_ISP1704 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_SMB347 is not setCONFIG_HWMON=y
# CONFIG_HWMON_VID is not set
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SCH56XX_COMMON is not set
# CONFIG_SENSORS_ADS1015 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not setCONFIG_THERMAL=yCONFIG_THERMAL_HWMON=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=m
# CONFIG_ALIM7101_WDT is not set
#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#CONFIG_SSB=mCONFIG_SSB_SPROM=yCONFIG_SSB_BLOCKIO=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=yCONFIG_SSB_B43_PCI_BRIDGE=y
# CONFIG_SSB_DEBUG is not setCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=yCONFIG_BCMA_POSSIBLE=y
#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_S5M_CORE is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_UNINORTH=yCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16CONFIG_DRM=yCONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not setCONFIG_DRM_TTM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not setCONFIG_DRM_NOUVEAU=yCONFIG_DRM_NOUVEAU_BACKLIGHT=yCONFIG_DRM_NOUVEAU_DEBUG=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=mCONFIG_DRM_I2C_SIL164=m
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_UDL is not set
# CONFIG_STUB_POULSBO is not setCONFIG_VGASTATE=yCONFIG_VIDEO_OUTPUT_CONTROL=mCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_DDC=y
# CONFIG_FB_BOOT_VESA_SUPPORT is not setCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_WMT_GE_ROPS is not set
# CONFIG_FB_SVGALIB is not setCONFIG_FB_MACMODES=yCONFIG_FB_BACKLIGHT=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not setCONFIG_FB_OF=y
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_S1D13XXX is not setCONFIG_FB_NVIDIA=yCONFIG_FB_NVIDIA_I2C=y
# CONFIG_FB_NVIDIA_DEBUG is not setCONFIG_FB_NVIDIA_BACKLIGHT=y
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_EXYNOS_VIDEO is not setCONFIG_BACKLIGHT_LCD_SUPPORT=yCONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_PLATFORM is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LP855X is not set
#
# Console display driver support
#
# CONFIG_VGA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=yCONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=yCONFIG_SOUND=mCONFIG_SOUND_OSS_CORE=yCONFIG_SOUND_OSS_CORE_PRECLAIM=yCONFIG_SND=mCONFIG_SND_TIMER=mCONFIG_SND_PCM=mCONFIG_SND_HWDEP=mCONFIG_SND_RAWMIDI=mCONFIG_SND_SEQUENCER=mCONFIG_SND_SEQ_DUMMY=mCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=mCONFIG_SND_PCM_OSS=mCONFIG_SND_PCM_OSS_PLUGINS=yCONFIG_SND_SEQUENCER_OSS=yCONFIG_SND_HRTIMER=mCONFIG_SND_SEQ_HRTIMER_DEFAULT=yCONFIG_SND_DYNAMIC_MINORS=yCONFIG_SND_SUPPORT_OLD_API=yCONFIG_SND_VERBOSE_PROCFS=yCONFIG_SND_VERBOSE_PRINTK=y
# CONFIG_SND_DEBUG is not setCONFIG_SND_VMASTER=yCONFIG_SND_RAWMIDI_SEQ=m
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not setCONFIG_SND_DRIVERS=yCONFIG_SND_DUMMY=mCONFIG_SND_ALOOP=mCONFIG_SND_VIRMIDI=m
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not setCONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5530 is not set
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDA_INTEL is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_PPC is not setCONFIG_SND_AOA=mCONFIG_SND_AOA_FABRIC_LAYOUT=mCONFIG_SND_AOA_ONYX=mCONFIG_SND_AOA_TAS=mCONFIG_SND_AOA_TOONIE=mCONFIG_SND_AOA_SOUNDBUS=mCONFIG_SND_AOA_SOUNDBUS_I2S=mCONFIG_SND_USB=yCONFIG_SND_USB_AUDIO=mCONFIG_SND_USB_UA101=mCONFIG_SND_USB_USX2Y=mCONFIG_SND_USB_CAIAQ=mCONFIG_SND_USB_CAIAQ_INPUT=yCONFIG_SND_USB_6FIRE=mCONFIG_SND_FIREWIRE=yCONFIG_SND_FIREWIRE_LIB=mCONFIG_SND_FIREWIRE_SPEAKERS=mCONFIG_SND_ISIGHT=m
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not setCONFIG_HID_SUPPORT=yCONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=y
#
# USB Input Devices
#CONFIG_USB_HID=yCONFIG_HID_PID=yCONFIG_USB_HIDDEV=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=y
# CONFIG_HID_ACRUX is not setCONFIG_HID_APPLE=yCONFIG_HID_BELKIN=yCONFIG_HID_CHERRY=yCONFIG_HID_CHICONY=y
# CONFIG_HID_PRODIKEYS is not setCONFIG_HID_CYPRESS=yCONFIG_HID_DRAGONRISE=y
# CONFIG_DRAGONRISE_FF is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not setCONFIG_HID_EZKEY=y
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_KEYTOUCH is not setCONFIG_HID_KYE=y
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not setCONFIG_HID_GYRATION=yCONFIG_HID_TWINHAN=yCONFIG_HID_KENSINGTON=y
# CONFIG_HID_LCPOWER is not setCONFIG_HID_LOGITECH=yCONFIG_HID_LOGITECH_DJ=mCONFIG_LOGITECH_FF=yCONFIG_LOGIRUMBLEPAD2_FF=y
# CONFIG_LOGIG940_FF is not setCONFIG_LOGIWHEELS_FF=yCONFIG_HID_MAGICMOUSE=mCONFIG_HID_MICROSOFT=yCONFIG_HID_MONTEREY=y
# CONFIG_HID_MULTITOUCH is not setCONFIG_HID_NTRIG=yCONFIG_HID_ORTEK=yCONFIG_HID_PANTHERLORD=yCONFIG_PANTHERLORD_FF=yCONFIG_HID_PETALYNX=y
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not setCONFIG_HID_SAMSUNG=yCONFIG_HID_SONY=y
# CONFIG_HID_SPEEDLINK is not setCONFIG_HID_SUNPLUS=yCONFIG_HID_GREENASIA=y
# CONFIG_GREENASIA_FF is not setCONFIG_HID_SMARTJOYPLUS=y
# CONFIG_SMARTJOYPLUS_FF is not set
# CONFIG_HID_TIVO is not setCONFIG_HID_TOPSEED=yCONFIG_HID_THRUSTMASTER=yCONFIG_THRUSTMASTER_FF=yCONFIG_HID_WACOM=m
# CONFIG_HID_WACOM_POWER_SUPPLY is not set
# CONFIG_HID_WIIMOTE is not setCONFIG_HID_ZEROPLUS=yCONFIG_ZEROPLUS_FF=y
# CONFIG_HID_ZYDACRON is not setCONFIG_USB_SUPPORT=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_ARCH_HAS_XHCI=yCONFIG_USB_COMMON=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB=y
# CONFIG_USB_DEBUG is not setCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#
# CONFIG_USB_DEVICEFS is not setCONFIG_USB_DEVICE_CLASS=y
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_MON is not setCONFIG_USB_WUSB=mCONFIG_USB_WUSB_CBAF=m
# CONFIG_USB_WUSB_CBAF_DEBUG is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_EHCI_HCD_PPC_OF=y
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1760_HCD is not set
# CONFIG_USB_ISP1362_HCD is not setCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_PPC_OF_BE=y
# CONFIG_USB_OHCI_HCD_PPC_OF_LE is not setCONFIG_USB_OHCI_HCD_PPC_OF=yCONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not set
# CONFIG_USB_EHCI_HCD_PLATFORM is not setCONFIG_USB_OHCI_BIG_ENDIAN_DESC=yCONFIG_USB_OHCI_BIG_ENDIAN_MMIO=yCONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_UHCI_HCD is not set
# CONFIG_USB_U132_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_WHCI_HCD is not set
# CONFIG_USB_HWA_HCD is not set
#
# USB Device Class drivers
#CONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_WDM=mCONFIG_USB_TMC=m
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set CONFIG_USB_STORAGE_REALTEK=m CONFIG_USB_STORAGE_DATAFAB=m CONFIG_USB_STORAGE_FREECOM=m CONFIG_USB_STORAGE_ISD200=m CONFIG_USB_STORAGE_USBAT=m CONFIG_USB_STORAGE_SDDR09=m CONFIG_USB_STORAGE_SDDR55=m CONFIG_USB_STORAGE_JUMPSHOT=m CONFIG_USB_STORAGE_ALAUDA=m CONFIG_USB_STORAGE_ONETOUCH=m CONFIG_USB_STORAGE_KARMA=m CONFIG_USB_STORAGE_CYPRESS_ATACB=m CONFIG_USB_STORAGE_ENE_UB6250=m CONFIG_USB_UAS=m # CONFIG_USB_LIBUSUAL is not set
#
# USB Imaging devices
#CONFIG_USB_MDC800=mCONFIG_USB_MICROTEK=m
#
# USB port drivers
#CONFIG_USB_SERIAL=mCONFIG_USB_EZUSB=yCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_AIRCABLE=mCONFIG_USB_SERIAL_ARK3116=mCONFIG_USB_SERIAL_BELKIN=mCONFIG_USB_SERIAL_CH341=m
# CONFIG_USB_SERIAL_WHITEHEAT is not setCONFIG_USB_SERIAL_DIGI_ACCELEPORT=mCONFIG_USB_SERIAL_CP210X=mCONFIG_USB_SERIAL_CYPRESS_M8=mCONFIG_USB_SERIAL_EMPEG=mCONFIG_USB_SERIAL_FTDI_SIO=mCONFIG_USB_SERIAL_FUNSOFT=mCONFIG_USB_SERIAL_VISOR=mCONFIG_USB_SERIAL_IPAQ=mCONFIG_USB_SERIAL_IR=m
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_F81232 is not setCONFIG_USB_SERIAL_GARMIN=mCONFIG_USB_SERIAL_IPW=mCONFIG_USB_SERIAL_IUU=m
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not setCONFIG_USB_SERIAL_KEYSPAN=mCONFIG_USB_SERIAL_KLSI=mCONFIG_USB_SERIAL_KOBIL_SCT=mCONFIG_USB_SERIAL_MCT_U232=m
# CONFIG_USB_SERIAL_METRO is not setCONFIG_USB_SERIAL_MOS7720=mCONFIG_USB_SERIAL_MOS7840=mCONFIG_USB_SERIAL_MOTOROLA=mCONFIG_USB_SERIAL_NAVMAN=mCONFIG_USB_SERIAL_PL2303=mCONFIG_USB_SERIAL_OTI6858=mCONFIG_USB_SERIAL_QCAUX=mCONFIG_USB_SERIAL_QUALCOMM=mCONFIG_USB_SERIAL_SPCP8X5=mCONFIG_USB_SERIAL_HP4X=mCONFIG_USB_SERIAL_SAFE=mCONFIG_USB_SERIAL_SAFE_PADDED=yCONFIG_USB_SERIAL_SIEMENS_MPI=mCONFIG_USB_SERIAL_SIERRAWIRELESS=mCONFIG_USB_SERIAL_SYMBOL=m
# CONFIG_USB_SERIAL_TI is not setCONFIG_USB_SERIAL_CYBERJACK=m
# CONFIG_USB_SERIAL_XIRCOM is not setCONFIG_USB_SERIAL_WWAN=mCONFIG_USB_SERIAL_OPTION=mCONFIG_USB_SERIAL_OMNINET=mCONFIG_USB_SERIAL_OPTICON=mCONFIG_USB_SERIAL_VIVOPAY_SERIAL=m
# CONFIG_USB_SERIAL_ZIO is not setCONFIG_USB_SERIAL_SSU100=mCONFIG_USB_SERIAL_DEBUG=m
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not setCONFIG_USB_ADUTUX=mCONFIG_USB_SEVSEG=mCONFIG_USB_RIO500=mCONFIG_USB_LEGOTOWER=mCONFIG_USB_LCD=mCONFIG_USB_LED=mCONFIG_USB_CYPRESS_CY7C63=mCONFIG_USB_CYTHERM=mCONFIG_USB_IDMOUSE=mCONFIG_USB_FTDI_ELAN=mCONFIG_USB_APPLEDISPLAY=mCONFIG_USB_SISUSBVGA=mCONFIG_USB_SISUSBVGA_CON=yCONFIG_USB_LD=mCONFIG_USB_TRANCEVIBRATOR=mCONFIG_USB_IOWARRIOR=mCONFIG_USB_TEST=mCONFIG_USB_ISIGHTFW=mCONFIG_USB_YUREX=m
# CONFIG_USB_GADGET is not set
#
# OTG and related infrastructure
#CONFIG_USB_OTG_UTILS=yCONFIG_NOP_USB_XCEIV=mCONFIG_UWB=mCONFIG_UWB_HWA=mCONFIG_UWB_WHCI=mCONFIG_UWB_I1480U=m
# CONFIG_MMC is not setCONFIG_MEMSTICK=m
# CONFIG_MEMSTICK_DEBUG is not set
#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not setCONFIG_MSPRO_BLOCK=m
#
# MemoryStick Host Controller Drivers
#
# CONFIG_MEMSTICK_TIFM_MS is not set
# CONFIG_MEMSTICK_JMICRON_38X is not set
# CONFIG_MEMSTICK_R592 is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
#
# LED drivers
#
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP5521 is not set
# CONFIG_LEDS_LP5523 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA9633 is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_OT200 is not setCONFIG_LEDS_TRIGGERS=y
#
# LED Triggers
#CONFIG_LEDS_TRIGGER_TIMER=mCONFIG_LEDS_TRIGGER_HEARTBEAT=mCONFIG_LEDS_TRIGGER_BACKLIGHT=mCONFIG_LEDS_TRIGGER_DEFAULT_ON=m
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_ACCESSIBILITY=y # CONFIG_A11Y_BRAILLE_CONSOLE is not set # CONFIG_INFINIBAND is not set CONFIG_EDAC=y
#
# Reporting subsystems
#
# CONFIG_EDAC_DEBUG is not setCONFIG_EDAC_MM_EDAC=m
# CONFIG_EDAC_CPC925 is not setCONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
#
# SPI RTC drivers
#
#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_GENERIC=yCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#
# CONFIG_TIMB_DMA is not set
# CONFIG_AUXDISPLAY is not setCONFIG_UIO=mCONFIG_UIO_CIF=mCONFIG_UIO_PDRV=mCONFIG_UIO_PDRV_GENIRQ=m
# CONFIG_UIO_AEC is not setCONFIG_UIO_SERCOS3=m
# CONFIG_UIO_PCI_GENERIC is not set
# CONFIG_UIO_NETX is not setCONFIG_VIRTIO=mCONFIG_VIRTIO_RING=m
#
# Virtio drivers
#CONFIG_VIRTIO_PCI=mCONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_MMIO is not set
#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set
#
# Hardware Spinlock drivers
#CONFIG_IOMMU_SUPPORT=y
#
# Remoteproc drivers (EXPERIMENTAL)
#
#
# Rpmsg drivers (EXPERIMENTAL)
#CONFIG_VIRT_DRIVERS=yCONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=yCONFIG_DEVFREQ_GOV_PERFORMANCE=yCONFIG_DEVFREQ_GOV_POWERSAVE=yCONFIG_DEVFREQ_GOV_USERSPACE=y
#
# DEVFREQ Drivers
#
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yCONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not setCONFIG_EXT3_FS=y
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not setCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=yCONFIG_EXT4_FS=mCONFIG_EXT4_FS_XATTR=yCONFIG_EXT4_FS_POSIX_ACL=yCONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not setCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_JBD2=m
# CONFIG_JBD2_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not setCONFIG_NILFS2_FS=mCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_FILE_LOCKING=yCONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y
# CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not setCONFIG_QUOTA=yCONFIG_QUOTA_NETLINK_INTERFACE=yCONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QUOTA_DEBUG is not setCONFIG_QUOTA_TREE=m
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=mCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=mCONFIG_FUSE_FS=mCONFIG_CUSE=mCONFIG_GENERIC_ACL=y
#
# Caches
#
# CONFIG_FSCACHE is not set
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=mCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=yCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=yCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_CONFIGFS_FS=mCONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not setCONFIG_ECRYPT_FS=mCONFIG_HFS_FS=mCONFIG_HFSPLUS_FS=m
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not setCONFIG_EFS_FS=mCONFIG_LOGFS=mCONFIG_CRAMFS=mCONFIG_SQUASHFS=mCONFIG_SQUASHFS_XATTR=yCONFIG_SQUASHFS_ZLIB=yCONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
# CONFIG_SQUASHFS_EMBEDDED is not setCONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
# CONFIG_VXFS_FS is not setCONFIG_MINIX_FS=mCONFIG_OMFS_FS=m
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not setCONFIG_ROMFS_FS=mCONFIG_ROMFS_BACKED_BY_BLOCK=yCONFIG_ROMFS_ON_BLOCK=y
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not setCONFIG_UFS_FS=mCONFIG_UFS_FS_WRITE=y
# CONFIG_UFS_DEBUG is not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=mCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
# CONFIG_NFS_USE_LEGACY_DNS is not setCONFIG_NFS_USE_KERNEL_DNS=yCONFIG_NFSD=mCONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=y
# CONFIG_NFSD_FAULT_INJECTION is not setCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_NFS_ACL_SUPPORT=mCONFIG_NFS_COMMON=yCONFIG_SUNRPC=mCONFIG_SUNRPC_GSS=mCONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not setCONFIG_CIFS=mCONFIG_CIFS_STATS=y
# CONFIG_CIFS_STATS2 is not setCONFIG_CIFS_WEAK_PW_HASH=yCONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DFS_UPCALL is not setCONFIG_CIFS_ACL=yCONFIG_NCP_FS=mCONFIG_NCPFS_PACKET_SIGNING=yCONFIG_NCPFS_IOCTL_LOCKING=yCONFIG_NCPFS_STRONG=yCONFIG_NCPFS_NFS_NS=yCONFIG_NCPFS_OS2_NS=yCONFIG_NCPFS_SMALLDOS=yCONFIG_NCPFS_NLS=yCONFIG_NCPFS_EXTRAS=y
# CONFIG_CODA_FS is not setCONFIG_AFS_FS=m
# CONFIG_AFS_DEBUG is not setCONFIG_9P_FS=mCONFIG_9P_FS_POSIX_ACL=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="utf8"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_737=mCONFIG_NLS_CODEPAGE_775=mCONFIG_NLS_CODEPAGE_850=mCONFIG_NLS_CODEPAGE_852=mCONFIG_NLS_CODEPAGE_855=mCONFIG_NLS_CODEPAGE_857=mCONFIG_NLS_CODEPAGE_860=mCONFIG_NLS_CODEPAGE_861=mCONFIG_NLS_CODEPAGE_862=mCONFIG_NLS_CODEPAGE_863=mCONFIG_NLS_CODEPAGE_864=mCONFIG_NLS_CODEPAGE_865=mCONFIG_NLS_CODEPAGE_866=mCONFIG_NLS_CODEPAGE_869=mCONFIG_NLS_CODEPAGE_936=mCONFIG_NLS_CODEPAGE_950=mCONFIG_NLS_CODEPAGE_932=mCONFIG_NLS_CODEPAGE_949=mCONFIG_NLS_CODEPAGE_874=mCONFIG_NLS_ISO8859_8=mCONFIG_NLS_CODEPAGE_1250=mCONFIG_NLS_CODEPAGE_1251=mCONFIG_NLS_ASCII=mCONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=mCONFIG_NLS_ISO8859_9=mCONFIG_NLS_ISO8859_13=mCONFIG_NLS_ISO8859_14=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=mCONFIG_NLS_UTF8=mCONFIG_DLM=m
# CONFIG_DLM_DEBUG is not set
# CONFIG_BINARY_PRINTF is not set
#
# Library routines
#CONFIG_RAID6_PQ=mCONFIG_BITREVERSE=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IO=yCONFIG_CRC_CCITT=mCONFIG_CRC16=mCONFIG_CRC_T10DIF=mCONFIG_CRC_ITU_T=mCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC7=mCONFIG_LIBCRC32C=mCONFIG_CRC8=mCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=mCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=yCONFIG_XZ_DEC_IA64=yCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=yCONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not setCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_XZ=yCONFIG_DECOMPRESS_LZO=yCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=mCONFIG_TEXTSEARCH_BM=mCONFIG_TEXTSEARCH_FSM=mCONFIG_BTREE=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_CPU_RMAP=yCONFIG_DQL=yCONFIG_NLATTR=yCONFIG_LRU_CACHE=mCONFIG_AVERAGE=yCONFIG_CORDIC=m
#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not setCONFIG_DEFAULT_MESSAGE_LOGLEVEL=4CONFIG_ENABLE_WARN_DEPRECATED=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=2048CONFIG_MAGIC_SYSRQ=yCONFIG_STRIP_ASM_SYMS=y
# CONFIG_UNUSED_SYMBOLS is not setCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not setCONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_HARDLOCKUP_DETECTOR is not set
# CONFIG_DETECT_HUNG_TASK is not setCONFIG_SCHED_DEBUG=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not setCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=yCONFIG_DEBUG_LOCK_ALLOC=y
# CONFIG_PROVE_LOCKING is not set
# CONFIG_SPARSE_RCU_POINTER is not setCONFIG_LOCKDEP=yCONFIG_LOCK_STAT=y
# CONFIG_DEBUG_LOCKDEP is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not setCONFIG_STACKTRACE=yCONFIG_DEBUG_STACK_USAGE=y
# CONFIG_DEBUG_KOBJECT is not setCONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_WRITECOUNT is not setCONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
# CONFIG_RCU_TORTURE_TEST is not setCONFIG_RCU_CPU_STALL_TIMEOUT=60
# CONFIG_RCU_CPU_STALL_INFO is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_DEBUG_PER_CPU_MAPS is not set
# CONFIG_LKDTM is not set
# CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not setCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=yCONFIG_RING_BUFFER=yCONFIG_RING_BUFFER_ALLOW_SWAP=yCONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not setCONFIG_FIREWIRE_OHCI_REMOTE_DMA=y
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_ASYNC_RAID6_TEST is not set
# CONFIG_SAMPLES is not setCONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_PPC_DISABLE_WERROR is not setCONFIG_PPC_WERROR=yCONFIG_PRINT_STACK_DEPTH=64CONFIG_DEBUG_STACKOVERFLOW=y
# CONFIG_PPC_EMULATED_STATS is not set
# CONFIG_CODE_PATCHING_SELFTEST is not set
# CONFIG_FTR_FIXUP_SELFTEST is not set
# CONFIG_MSI_BITMAP_SELFTEST is not setCONFIG_XMON=y
# CONFIG_XMON_DEFAULT is not setCONFIG_XMON_DISASSEMBLY=yCONFIG_DEBUGGER=y
# CONFIG_BOOTX_TEXT is not set
# CONFIG_PPC_EARLY_DEBUG is not setCONFIG_STRICT_DEVMEM=y
#
# Security options
#CONFIG_KEYS=y
# CONFIG_ENCRYPTED_KEYS is not setCONFIG_KEYS_DEBUG_PROC_KEYS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not setCONFIG_SECURITY=yCONFIG_SECURITYFS=yCONFIG_SECURITY_NETWORK=y
# CONFIG_SECURITY_NETWORK_XFRM is not set
# CONFIG_SECURITY_PATH is not set
# CONFIG_SECURITY_SELINUX is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_IMA is not set
# CONFIG_EVM is not setCONFIG_DEFAULT_SECURITY_DAC=yCONFIG_DEFAULT_SECURITY=""CONFIG_KEYS_COMPAT=yCONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_MEMCPY=mCONFIG_ASYNC_XOR=mCONFIG_ASYNC_PQ=mCONFIG_ASYNC_RAID6_RECOV=mCONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=mCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=mCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=mCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_PCOMP=mCONFIG_CRYPTO_PCOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not setCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_GF128MUL=mCONFIG_CRYPTO_NULL=m
# CONFIG_CRYPTO_PCRYPT is not setCONFIG_CRYPTO_WORKQUEUE=yCONFIG_CRYPTO_CRYPTD=mCONFIG_CRYPTO_AUTHENC=mCONFIG_CRYPTO_TEST=m
#
# Authenticated Encryption with Associated Data
#CONFIG_CRYPTO_CCM=mCONFIG_CRYPTO_GCM=mCONFIG_CRYPTO_SEQIV=m
#
# Block modes
#CONFIG_CRYPTO_CBC=mCONFIG_CRYPTO_CTR=mCONFIG_CRYPTO_CTS=mCONFIG_CRYPTO_ECB=mCONFIG_CRYPTO_LRW=mCONFIG_CRYPTO_PCBC=mCONFIG_CRYPTO_XTS=m
#
# Hash modes
#CONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_XCBC=mCONFIG_CRYPTO_VMAC=m
#
# Digest
#CONFIG_CRYPTO_CRC32C=mCONFIG_CRYPTO_GHASH=mCONFIG_CRYPTO_MD4=mCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=mCONFIG_CRYPTO_RMD128=mCONFIG_CRYPTO_RMD160=mCONFIG_CRYPTO_RMD256=mCONFIG_CRYPTO_RMD320=mCONFIG_CRYPTO_SHA1=mCONFIG_CRYPTO_SHA256=mCONFIG_CRYPTO_SHA512=mCONFIG_CRYPTO_TGR192=mCONFIG_CRYPTO_WP512=m
#
# Ciphers
#CONFIG_CRYPTO_AES=mCONFIG_CRYPTO_ANUBIS=mCONFIG_CRYPTO_ARC4=mCONFIG_CRYPTO_BLOWFISH=mCONFIG_CRYPTO_BLOWFISH_COMMON=mCONFIG_CRYPTO_CAMELLIA=mCONFIG_CRYPTO_CAST5=mCONFIG_CRYPTO_CAST6=mCONFIG_CRYPTO_DES=mCONFIG_CRYPTO_FCRYPT=mCONFIG_CRYPTO_KHAZAD=mCONFIG_CRYPTO_SALSA20=mCONFIG_CRYPTO_SEED=mCONFIG_CRYPTO_SERPENT=mCONFIG_CRYPTO_TEA=mCONFIG_CRYPTO_TWOFISH=mCONFIG_CRYPTO_TWOFISH_COMMON=m
#
# Compression
#CONFIG_CRYPTO_DEFLATE=mCONFIG_CRYPTO_ZLIB=mCONFIG_CRYPTO_LZO=m
#
# Random Number Generation
#CONFIG_CRYPTO_ANSI_CPRNG=mCONFIG_CRYPTO_USER_API=mCONFIG_CRYPTO_USER_API_HASH=mCONFIG_CRYPTO_USER_API_SKCIPHER=mCONFIG_CRYPTO_HW=y
# CONFIG_PPC_CLOCK is not setCONFIG_VIRTUALIZATION=yCONFIG_KVM=yCONFIG_KVM_BOOK3S_HANDLER=yCONFIG_KVM_BOOK3S_64_HANDLER=yCONFIG_KVM_BOOK3S_64=mCONFIG_KVM_BOOK3S_64_HV=yCONFIG_VHOST_NET=m
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 5 lines · Andreas Schwab
Quoted 2 lines
- PowerMac7,3 aka Dual G5 AGP. This ones has U3 + K2 and
uses cascaded MPICsThat's the same as mine, config is attached. I'm currently trying to bisect the commit that actually broke the series.
Hrm, odd.. I'll dbl check today that I didn't b0rk something in my test (like loading the wrong kernel :-) I'll also try with your config.
Cheers,
Ben.
A message that is not in the archive (sent off-list or not yet received): 1333401070.30734.55.camel__46349.1482347765$1333401169$gmane$org@pasglop
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 2 lines · Benjamin Herrenschmidt
Hrm, odd.. I'll dbl check today that I didn't b0rk something in my test (like loading the wrong kernel :-) I'll also try with your config.
Do you have anything that triggers loading the sound drivers? That's exactly the point where the irq problems start.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Andreas SchwabQuoted 8 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
When I revert a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5 ("genirq: Fix long-term regression in genirq irq_set_irq_type() handling") on top of 3.4-rc1 the sata irq errors disappear, but I see a lot of spurious interrupts. Also the X server is broken somehow, though I don't know whether that is related or a different bug.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 8 lines · Andreas Schwab
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.
Quoted 8 lines
Quoted 2 lines
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on top of 3.4-rc1 the sata irq errors disappear, but I see a lot of spurious interrupts. Also the X server is broken somehow, though I don't know whether that is related or a different bug.
That change is:
@@ -61,8 +61,7 @@ int irq_set_irq_type(unsigned int irq, unsigned int type)
return -EINVAL;
type &= IRQ_TYPE_SENSE_MASK;
- if (type != IRQ_TYPE_NONE)
- ret = __irq_set_trigger(desc, irq, type);
+ ret = __irq_set_trigger(desc, irq, type);
irq_put_desc_busunlock(desc, flags);
return ret;So presumably irq_set_irq_type() is getting called with type == IRQ_TYPE_NONE. From Russell's description, presumably that would mean the G5 sata driver isn't setting the correct type for the interrupt, but I have *no* idea how that intersects with the change removing the powerpc irq map.
Can you dump out /debug/powerpc/virq_mapping from both before and after the irq_map patch is applied?
g.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 30 lines · Grant Likely
Quoted 8 lines · Andreas Schwab
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.Quoted 8 lines
Quoted 2 lines
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on top of 3.4-rc1 the sata irq errors disappear, but I see a lot of spurious interrupts. Also the X server is broken somehow, though I don't know whether that is related or a different bug.That change is:
(quoted diff) +1
-2@@ -61,8 +61,7 @@ int irq_set_irq_type(unsigned int irq, unsigned int type) return -EINVAL; type &= IRQ_TYPE_SENSE_MASK; - if (type != IRQ_TYPE_NONE) - ret = __irq_set_trigger(desc, irq, type); + ret = __irq_set_trigger(desc, irq, type); irq_put_desc_busunlock(desc, flags); return ret;
Quoted 5 lines
So presumably
irq_set_irq_type()is getting called with type ==IRQ_TYPE_NONE. From Russell's description, presumably that would mean the G5 sata driver isn't setting the correct type for the interrupt, but I have *no* idea how that intersects with the change removing the powerpc irq map.
Well, presumably someone is calling irq_set_irq_type() asking explicitly for IRQ_TYPE_NONE. The code will now (as it always used to before David's change) do exactly what you ask this to: it will ask the type to be set to none.
If you don't want to set the type to none, don't call the interface asking for that to happen.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 7 lines · Russell King - ARM Linux
Well, presumably someone is calling
irq_set_irq_type()asking explicitly forIRQ_TYPE_NONE. The code will now (as it always used to before David's change) do exactly what you ask this to: it will ask the type to be set to none.If you don't want to set the type to none, don't call the interface asking for that to happen.
I think part of the idea with NONE is to use it as "reset that interrupt to the "default" setting, whatever that means ...
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 7 lines · Russell King - ARM Linux
Well, presumably someone is calling
irq_set_irq_type()asking explicitly forIRQ_TYPE_NONE. The code will now (as it always used to before David's change) do exactly what you ask this to: it will ask the type to be set to none.If you don't want to set the type to none, don't call the interface asking for that to happen.
I think part of the idea with NONE is to use it as "reset that interrupt to the "default" setting, whatever that means ...
No, it never was (anyone who thought that is plain wrong because that wasn't my original design.)
NONE really did mean "I don't want any trigger level" for set_irq_type() as it was originally designed on ARM, and there's a number of PCMCIA socket drivers which rely on that behaviour: the reason is that with edge triggered interrupts, Linux normally remembers edges which happen with the interrupt disabled, and delivers those events when the interrupt is re-enabled. There are situations (such as edge triggered status GPIOs) where we _really_ do want to ignore transitions on an edge triggered input. And PCMCIA soc_common uses set_irq_type() with NONE to do this.
The reason you can't request an interrupt with a NONE type is because I saw that to be pointless - and in any case, the type is a bitmask and NONE ended up being zero. Zero is also what you get with request_irq() used with drivers which don't pass any IRQ trigger flags, so request_irq() has to ignore this case.
Now, arguably, we could say that there should be an interface for clearing pending edges in our interrupt model, but traditionally there hasn't been, even when my ARM IRQ stuff was moved forward into genirq. However, subsequently changing genirq in a way which breaks previously working stuff is a regression, and that's what my revert addresses.
If we want to fix it a better way, then sure, that'll be good. But what we shouldn't do is re-introduce one regression to fix a different regression.
So, Thomas, what do you think about providing a way that a disabled interrupt could have its pending status cleared such that when it's enabled, any queued events are ignored? Maybe an enable_and_clear_irq() ?
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 9 lines · Russell King - ARM Linux
If we want to fix it a better way, then sure, that'll be good. But what
we shouldn't do is re-introduce one regression to fix a different regression.So, Thomas, what do you think about providing a way that a disabled interrupt could have its pending status cleared such that when it's enabled, any queued events are ignored? Maybe an
enable_and_clear_irq()?
Ok. Doesn't matter anyway, this shouldn't be the problem in this specific case. IE. we shouldn't be setting that interrupt to NONE.
We should have parsed the device-tree and set the trigger appropriately.
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 2 lines · Benjamin Herrenschmidt
Ok. Doesn't matter anyway, this shouldn't be the problem in this specific case. IE. we shouldn't be setting that interrupt to NONE.
After removinge the call to irq_set_irq_type in mpic_host_map the irq problem disappears.
Instead of the irq_set_irq_type(,NONE) calls from mpic_host_map I see corresponding irq_set_irq_type(,LEVEL_LOW) calls now.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 10 lines · Andreas Schwab
Quoted 2 lines · Benjamin Herrenschmidt
Ok. Doesn't matter anyway, this shouldn't be the problem in this specific case. IE. we shouldn't be setting that interrupt to NONE.
After removinge the call to
irq_set_irq_typeinmpic_host_mapthe irq problem disappears.Instead of the
irq_set_irq_type(,NONE)calls frommpic_host_mapI see correspondingirq_set_irq_type(,LEVEL_LOW)calls now.
It's arguable that this irq_set_irq_type(,NONE) shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.
(When I say arguable, I do mean it. There are some reasons to keep it even if we agree that it's not "setting a default" but marking the interrupt as somewhat disabled as Russell wants, that's fine with me, an MPIC external interrupt should -always- have a proper type set before being used).
First we need to fix that business with NR_IRQS/nr_irqs everywhere, then if the problem persists, check why we aren't calling the proper irq_set_irq_type() after the mapping is established (we should be).
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 3 lines · Benjamin Herrenschmidt
It's arguable that this
irq_set_irq_type(,NONE)shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.
AFAICS before a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5 irq_set_irq_type(,NONE) was actually a no-op.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Benjamin Herrenschmidt
It's arguable that this
irq_set_irq_type(,NONE)shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.AFAICS before
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5irq_set_irq_type(,NONE)was actually a no-op.
So I'm still a bit baffled... ie, I understand some of what's happening but not why it breaks things, I haven't yet managed to reproduce but I haven't tried too hard just yet (was away from the HW) :
Basically, we end up setting the mpic to IRQ_TYPE_LEVEL_LOW as a result of a request to set it to IRQ_TYPE_NONE, ie, we apply a "default" setting instead of just setting it to "none" (in part because we don't have a way in HW to disable the trigger completely. We then write that into the irq_desc with irqd_set_trigger_type().
Then we return IRQ_SET_MASK_OK_NOCOPY, which means that the generic __irq_set_trigger() code will read back what we've set in the desc and adjust things accordingly, rather than writing the original value in, ie, our descriptor ends up being effectively set to IRQ_TYPE_LEVEL_LOW rather than IRQ_TYPE_NONE.
Later, when we actually try to set it to IRQ_TYPE_LEVEL_LOW as a result of parsing the device-tree, we then hit the code irq_create_of_mapping(), at the bottom, which will skip the call to irq_set_irq_type() if we are trying to set it to the same type that it's already set to....
But I don't see why that breaks anything, ie we -have- set things to LEVEL_LOW as a result of IRQ_TYPE_NONE, which is the right setting, so things should work despite the fact that we skip the second call.
Out of curiosity, can you try removing the check in irqdomain and always apply the setting regardless of the previous value (ie, remove the check of type against irqd_get_trigger at the end of irq_create_of_mapping), see if that makes a difference ?
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Benjamin Herrenschmidt
It's arguable that this
irq_set_irq_type(,NONE)shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.
Quoted 6 lines
Quoted 2 lines
AFAICS before
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5irq_set_irq_type(,NONE)was actually a no-op.So I'm still a bit baffled... ie, I understand some of what's happening but not why it breaks things, I haven't yet managed to reproduce but I haven't tried too hard just yet (was away from the HW) :
Allright, I have a repro-case, I'll dig.
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Benjamin Herrenschmidt
It's arguable that this
irq_set_irq_type(,NONE)shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
AFAICS before
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5irq_set_irq_type(,NONE)was actually a no-op.So I'm still a bit baffled... ie, I understand some of what's happening but not why it breaks things, I haven't yet managed to reproduce but I haven't tried too hard just yet (was away from the HW) :
Allright, I have a repro-case, I'll dig.
Ok, so it's Grant's fault :-)
So basically, it's quite subtle and I'm only 99% sure of the details but I believe what happens is:
- The audio interrupts get virq 64 and 65 (so above NR_IRQS)
- The reverse map isn't pre-filled at map time (we should probably do
it nowadays), we do it lazily so ...
- The audio interrupt happens, it tries to pre-fill the reverse map
and ... fails (see below)
- This cause irq_linear_revmap() to returns 0
- This hits another bug in mpic where when that happens it doesn't EOI
the interrupt, which means the priority remains stuck high and we don't get any other interrupt.
There's thus two bugs here:
- We don't properly establish the reverse mapping for 64 and 65 (well,
not always, again see below)
- We don't EOI an interrupt we can't reverse map (we should warn & EOI,
I'll send a patch for that).
The second problem is a bug we shouldn't hit if the first one didn't happen, the first one comes from way irq_find_mapping() works. Basically when the revmap entry is 0, we call it to find the mapping & populate the revmap... and that fails.
That fails because it will only search up to irq_virq_count which is statically initialized to NR_IRQS, which in our case is 64 so it won't find our interrupts 64 and 65...
The reason it works if you don't do the set_type(NONE) is a fluke, it will crash as soon as you actually do audio:
The set_type(NONE) has the effect in mpic to configure the interrupt to level low (default). This is also the idle state of the audio interrupt (which is positive edge), and the MPIC appears to be latching it (yeah odd, it does seem to latch level interrupts).
So as soon as the audio driver enables it, it fires, triggering the bug. Without the set_type(NONE) the occurence of the bug is delayed to the fist time you get a real audio interrupt.
Now what is the solution ? Well, there's several things I think we need to do:
- MPIC should properly EOI interrupts it can't revmap (I'll fix that)
- MPIC should probably not do the set_type(NONE) on map, it's not
useful
- However, we do have a risk of discrepency between the default trigger
type in the irq_desc vs. the default HW value at startup/map time, so we do need to do something to reconcile them (that was the intend of NONE I think)... without that, we risk having irq_create_of_mapping() not setting the trigger because it thinks it thinks it's right... What do you think is best here ? We can probably read the HW config and sync the irq desc appropriately ...
- The whole business with irq_virq_count needs fixing. Basically the
default value shouldn't be NR_IRQ. I suggest making it 0 and have all the use sites do something like:
max = irq_virq_count ? irq_virq_count : nr_irqs;
(Grant, can you take care of that ?)
- We still need to clear up all the NR_IRQS occurences in arch/powerpc
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 12 lines · Benjamin Herrenschmidt
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Benjamin Herrenschmidt
It's arguable that this
irq_set_irq_type(,NONE)shouln't be there but still ... it's been around for ever and things worked :-) So something -else- is causing the problem and I'd like to understand what exactly.AFAICS before
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5irq_set_irq_type(,NONE)was actually a no-op.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
So I'm still a bit baffled... ie, I understand some of what's happening but not why it breaks things, I haven't yet managed to reproduce but I haven't tried too hard just yet (was away from the HW) :
Allright, I have a repro-case, I'll dig.
Ok, so it's Grant's fault :-)
I pretty much expected it would be. :-p
Quoted 7 lines
So basically, it's quite subtle and I'm only 99% sure of the details but I believe what happens is:
- The audio interrupts get virq 64 and 65 (so above
NR_IRQS)- The reverse map isn't pre-filled at map time (we should probably do
it nowadays), we do it lazily so ...
Hmmm... I though I had merged a patch that does that.
/me goes to look again...
Okay, I did write that patch, but I never merged it because it didn't get much review and I was already nervous about the other irq_domain changes. I'll post it again and ask for feedback.
Quoted 7 lines
- The whole business with
irq_virq_countneeds fixing. Basically the
default value shouldn't beNR_IRQ. I suggest making it 0 and have all the use sites do something like:max = irq_virq_count ? irq_virq_count : nr_irqs;(Grant, can you take care of that ?)
Yeah, I've got a different way to fix it though. There is exactly one user of irq_virq_count in-tree right now: PS3. Also, irq_virq_count is only useful for the NOMAP mapping. So, instead of having a single global irq_virq_count values, I've dropped it entirely and added a max_irq argument to irq_domain_add_nomap(). That makes it a property of an individual nomap irq domain instead of a global system settting.
Hopefully I'll have a draft patch ready today.
g.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 9 lines · Grant Likely
Yeah, I've got a different way to fix it though. There is exactly one user of
irq_virq_countin-tree right now: PS3. Also,irq_virq_countis only useful for the NOMAP mapping. So, instead of having a single globalirq_virq_countvalues, I've dropped it entirely and added amax_irqargument toirq_domain_add_nomap(). That makes it a property of an individual nomap irq domain instead of a global system settting.Hopefully I'll have a draft patch ready today.
That works for me. I'll send patches for cleanup MPIC as well.
One thing tho (Thomas, Russell) is that I like using set_irq_trigger to establish the "defaults" in mpic, ie, it does the descriptor locking etc... for me, I'd rather avoid open coding all of that. What I need is a "variant" that doesn't actually change the trigger but instead initializes the irq_desc with whatever settings the HW currently has (ie, I need to make sure things are properly in sync) though other implementations may want to use that for defaults.
Any objection to defining something like IRQ_TYPE_DEFAULT ?
I was thinking about making it equal to IRQ_TYPE_SENSE_MASK since that can obviously not be a valid trigger value and is distinct from IRQ_TYPE_NONE.
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 21 lines · Benjamin Herrenschmidt
Quoted 9 lines · Grant Likely
Yeah, I've got a different way to fix it though. There is exactly one user of
irq_virq_countin-tree right now: PS3. Also,irq_virq_countis only useful for the NOMAP mapping. So, instead of having a single globalirq_virq_countvalues, I've dropped it entirely and added amax_irqargument toirq_domain_add_nomap(). That makes it a property of an individual nomap irq domain instead of a global system settting.Hopefully I'll have a draft patch ready today.
That works for me. I'll send patches for cleanup MPIC as well.
One thing tho (Thomas, Russell) is that I like using
set_irq_triggerto establish the "defaults" in mpic, ie, it does the descriptor locking etc... for me, I'd rather avoid open coding all of that. What I need is a "variant" that doesn't actually change the trigger but instead initializes theirq_descwith whatever settings the HW currently has (ie, I need to make sure things are properly in sync) though other implementations may want to use that for defaults.
Quoted 5 lines
Any objection to defining something like
IRQ_TYPE_DEFAULT?I was thinking about making it equal to
IRQ_TYPE_SENSE_MASKsince that can obviously not be a valid trigger value and is distinct fromIRQ_TYPE_NONE.
No objections.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Benjamin HerrenschmidtQuoted 9 lines · Benjamin Herrenschmidt
Quoted 8 lines · Grant Likely
Yeah, I've got a different way to fix it though. There is exactly one user of
irq_virq_countin-tree right now: PS3. Also,irq_virq_countis only useful for the NOMAP mapping. So, instead of having a single globalirq_virq_countvalues, I've dropped it entirely and added amax_irqargument toirq_domain_add_nomap(). That makes it a property of an individual nomap irq domain instead of a global system settting.
Quoted 3 lines
Quoted 1 line
Hopefully I'll have a draft patch ready today.
That works for me. I'll send patches for cleanup MPIC as well.
Okay, I'll wait on these. The MPIC fixes will need to be applied before I can apply the automatic revmapping and hint removal patches. Those patches will also need testing before I apply to linux-next.
g.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Russell King - ARM LinuxQuoted 7 lines · Russell King - ARM Linux
If we want to fix it a better way, then sure, that'll be good. But what we shouldn't do is re-introduce one regression to fix a different regression.
So, Thomas, what do you think about providing a way that a disabled interrupt could have its pending status cleared such that when it's enabled, any queued events are ignored? Maybe an
enable_and_clear_irq()?
We can make it a flag, which you can either add to the irq itself or hand it in on request_irq().
Does that require a special chip->callback() function as well ?
Thanks,
tglx
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Benjamin HerrenschmidtQuoted 11 lines · Benjamin Herrenschmidt
Quoted 7 lines · Russell King - ARM Linux
Well, presumably someone is calling
irq_set_irq_type()asking explicitly forIRQ_TYPE_NONE. The code will now (as it always used to before David's change) do exactly what you ask this to: it will ask the type to be set to none.If you don't want to set the type to none, don't call the interface asking for that to happen.
I think part of the idea with NONE is to use it as "reset that interrupt to the "default" setting, whatever that means ...
Well, the ship side set_type function could simply leave it alone and not touch the thing at all. That's how the core code did until we discovered that we broke Russells toys that way.
Thanks,
tglx
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Grant LikelyQuoted 2 lines · Grant Likely
Can you dump out /debug/powerpc/virq_mapping from both before and after the
irq_mappatch is applied?
before:
virq hwirq chip name chip data host name 16 0x00000 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 21 0x00001 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 24 0x00002 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 25 0x00019 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 26 0x0001a MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 27 0x0001b MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 28 0x0001c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 29 0x0003d MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 30 0x0001e MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 31 0x0003c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 39 0x00027 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 40 0x00028 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 41 0x00029 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 42 0x0002a MPIC 2 0xc00000017a011000 /u3 at 0,f8000000/mpic at f8040000 47 0x0002f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 59 0x000fb MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 60 0x000fc MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 61 0x000fd MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 62 0x000fe MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 63 0x0003f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000
after:
virq hwirq chip name chip data host name 16 0x00000 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 21 0x00001 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 24 0x00002 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 25 0x00019 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 26 0x0001a MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 27 0x0001b MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 28 0x0001c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 30 0x0001e MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 39 0x00027 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 40 0x00028 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 41 0x00029 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 42 0x0002a MPIC 2 0xc00000017a011000 /u3 at 0,f8000000/mpic at f8040000 47 0x0002f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 59 0x000fb MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 60 0x000fc MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 61 0x000fd MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 62 0x000fe MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 63 0x0003f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 64 0x0003d MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 65 0x0003c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000
But I have NR_IRQS=64. Bounds checking missing? Irqs 64/65 are related to the sound chip (headphone-detect and line-out-detect).
When reconfiguring with NR_IRQS=128 interrupts are working again, but I still see a lot of spurious interrupts, and the X server is still broken (no input works, but I still don't know whether that is an unrelated bug).
This is a sample of /proc/interrupts from 3.3 (with NR_IRQS=64):
CPU0 CPU1
16: 2039 6070 MPIC 1 Level sata_svw 21: 0 0 MPIC 1 Edge i2sbus: i2s-a (tx) 22: 12 20 MPIC 1 Level 23: 14 18 MPIC 1 Level 24: 0 0 MPIC 1 Edge i2sbus: i2s-a (rx) 25: 3 0 MPIC 1 Level VIA-PMU 26: 16 62 MPIC 1 Level keywest i2c 27: 0 1 MPIC 1 Level ohci_hcd:usb2 28: 0 1 MPIC 1 Level ohci_hcd:usb3 29: 0 0 MPIC 1 Edge headphone-detect 30: 0 0 MPIC 1 Level i2sbus: i2s-a (control) 31: 0 0 MPIC 1 Edge line-output-detect 39: 22 64 MPIC 1 Level pata-pci-macio 40: 0 2 MPIC 1 Level firewire_ohci 41: 52 147 MPIC 1 Level eth0 42: 1732 5053 MPIC 2 Level keywest i2c 47: 0 0 MPIC 1 Level GPIO1 ADB 59: 0 0 MPIC 1 Edge ipi call function 60: 2064 1940 MPIC 1 Edge ipi reschedule 61: 3406 945 MPIC 1 Edge ipi call function single 62: 0 0 MPIC 1 Edge ipi debugger 63: 39 91 MPIC 1 Level ehci_hcd:usb1, ohci_hcd:usb4, ohci_hcd:usb5 LOC: 3503 3719 Local timer interrupts SPU: 2 0 Spurious interrupts CNT: 0 0 Performance monitoring interrupts MCE: 0 0 Machine check exceptions
This is a sample of /proc/interrupts from 3.4-rc1 (with NR_IRQS=128):
CPU0 CPU1
16: 2603 7596 MPIC 1 Level sata_svw 21: 1 0 MPIC 1 Edge i2sbus: i2s-a (tx) 22: 13 19 MPIC 1 Level 23: 8 24 MPIC 1 Level 24: 0 1 MPIC 1 Edge i2sbus: i2s-a (rx) 25: 2 1 MPIC 1 Level VIA-PMU 26: 21 57 MPIC 1 Level keywest i2c 27: 0 1 MPIC 1 Level ohci_hcd:usb2 28: 0 1 MPIC 1 Level ohci_hcd:usb3 30: 0 0 MPIC 1 Level i2sbus: i2s-a (control) 39: 39 131 MPIC 1 Level pata-pci-macio 40: 2 2 MPIC 1 Level firewire_ohci 41: 93 268 MPIC 1 Level eth0 42: 8569 24140 MPIC 2 Level keywest i2c 47: 0 0 MPIC 1 Level GPIO1 ADB 60: 1 0 MPIC 1 Edge line-output-detect 61: 1 0 MPIC 1 Edge headphone-detect 63: 153 502 MPIC 1 Level ehci_hcd:usb1, ohci_hcd:usb4, ohci_hcd:usb5 123: 0 0 MPIC 1 Edge ipi call function 124: 1978 2349 MPIC 1 Edge ipi reschedule 125: 2356 1816 MPIC 1 Edge ipi call function single 126: 0 0 MPIC 1 Edge ipi debugger LOC: 4417 7985 Local timer interrupts SPU: 9586 25811 Spurious interrupts CNT: 0 0 Performance monitoring interrupts MCE: 0 0 Machine check exceptions
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 5 lines · Andreas Schwab
When reconfiguring with NR_IRQS=128 interrupts are working again, but I still see a lot of spurious interrupts, and the X server is still broken (no input works, but I still don't know whether that is an unrelated bug).
I have an idea or two about the spurrious interrupt business, I'll have a look later today hopefully. As for the X server, I don't think it's related, but of course it's hard to tell. Do you see a relevant difference in the X log ?
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 1 line · Benjamin Herrenschmidt
Do you see a relevant difference in the X log ?
Nothing at all.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Andreas SchwabQuoted 51 lines · Andreas Schwab
Quoted 2 lines · Grant Likely
Can you dump out /debug/powerpc/virq_mapping from both before and after the
irq_mappatch is applied?before:
virq hwirq chip name chip data host name 16 0x00000 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 21 0x00001 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 24 0x00002 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 25 0x00019 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 26 0x0001a MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 27 0x0001b MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 28 0x0001c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 29 0x0003d MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 30 0x0001e MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 31 0x0003c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 39 0x00027 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 40 0x00028 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 41 0x00029 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 42 0x0002a MPIC 2 0xc00000017a011000 /u3 at 0,f8000000/mpic at f8040000 47 0x0002f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 59 0x000fb MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 60 0x000fc MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 61 0x000fd MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 62 0x000fe MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 63 0x0003f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000after:
virq hwirq chip name chip data host name 16 0x00000 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 21 0x00001 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 24 0x00002 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 25 0x00019 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 26 0x0001a MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 27 0x0001b MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 28 0x0001c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 30 0x0001e MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 39 0x00027 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 40 0x00028 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 41 0x00029 MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 42 0x0002a MPIC 2 0xc00000017a011000 /u3 at 0,f8000000/mpic at f8040000 47 0x0002f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 59 0x000fb MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 60 0x000fc MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 61 0x000fd MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 62 0x000fe MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 63 0x0003f MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 64 0x0003d MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000 65 0x0003c MPIC 1 0xc00000017a010000 /ht at 0,f2000000/pci at 1/mac-io at 7/mpic at 40000
Quoted 2 lines
But I have NR_IRQS=64. Bounds checking missing? Irqs 64/65 are related to the sound chip (headphone-detect and line-out-detect).
I bet it is NR_IRQS related. You have SPARSE_IRQ enabled, which means the maximum number of irq_descs is IRQ_BITMAP_BITS (NR_IRQS + 8192). The old powerpc code was strictly limited to NR_IRQS, but the new code uses irq_alloc_descs() which isn't. Yet I can see places in the powerpc code that depends specifically on the value of NR_IRQS. The for_each_irq() macro for instance. I think all the users there can be switched to using for_each_irq_desc().
Can you attach console output logs for each of configs above and also with NR_IRQS=128? That might give me some clues as to which specific code is causing the issues. Also, as a quick test, try changing for_each_irq_desc() to use "nr_irqs" instead of "NR_IRQS". nr_irqs is kept up to date with the real maximum number of irqs allocated in the system:
arch/powerpc/include/asm/irq.h +1 -1
@@ -20,7 +20,7 @@/* Define a way to iterate across irqs. */ #define for_each_irq (i) \ - for ((i) = 0; (i) < NR_IRQS; ++(i)) + for ((i) = 0; (i) < nr_irqs; ++(i))extern atomic_t ppc_n_lost_interrupts;
g.
Quoted 70 lines
When reconfiguring with NR_IRQS=128 interrupts are working again, but I still see a lot of spurious interrupts, and the X server is still broken (no input works, but I still don't know whether that is an unrelated bug).
This is a sample of
/proc/interruptsfrom 3.3 (with NR_IRQS=64):
CPU0 CPU116: 2039 6070 MPIC 1 Level sata_svw 21: 0 0 MPIC 1 Edge i2sbus: i2s-a (tx) 22: 12 20 MPIC 1 Level 23: 14 18 MPIC 1 Level 24: 0 0 MPIC 1 Edge i2sbus: i2s-a (rx) 25: 3 0 MPIC 1 Level VIA-PMU 26: 16 62 MPIC 1 Level keywest i2c 27: 0 1 MPIC 1 Level ohci_hcd:usb2 28: 0 1 MPIC 1 Level ohci_hcd:usb3 29: 0 0 MPIC 1 Edge headphone-detect 30: 0 0 MPIC 1 Level i2sbus: i2s-a (control) 31: 0 0 MPIC 1 Edge line-output-detect 39: 22 64 MPIC 1 Level pata-pci-macio 40: 0 2 MPIC 1 Level firewire_ohci 41: 52 147 MPIC 1 Level eth0 42: 1732 5053 MPIC 2 Level keywest i2c 47: 0 0 MPIC 1 Level GPIO1 ADB 59: 0 0 MPIC 1 Edge ipi call function 60: 2064 1940 MPIC 1 Edge ipi reschedule 61: 3406 945 MPIC 1 Edge ipi call function single 62: 0 0 MPIC 1 Edge ipi debugger 63: 39 91 MPIC 1 Level ehci_hcd:usb1, ohci_hcd:usb4, ohci_hcd:usb5 LOC: 3503 3719 Local timer interrupts SPU: 2 0 Spurious interrupts CNT: 0 0 Performance monitoring interrupts MCE: 0 0 Machine check exceptionsThis is a sample of
/proc/interruptsfrom 3.4-rc1 (with NR_IRQS=128):
CPU0 CPU116: 2603 7596 MPIC 1 Level sata_svw 21: 1 0 MPIC 1 Edge i2sbus: i2s-a (tx) 22: 13 19 MPIC 1 Level 23: 8 24 MPIC 1 Level 24: 0 1 MPIC 1 Edge i2sbus: i2s-a (rx) 25: 2 1 MPIC 1 Level VIA-PMU 26: 21 57 MPIC 1 Level keywest i2c 27: 0 1 MPIC 1 Level ohci_hcd:usb2 28: 0 1 MPIC 1 Level ohci_hcd:usb3 30: 0 0 MPIC 1 Level i2sbus: i2s-a (control) 39: 39 131 MPIC 1 Level pata-pci-macio 40: 2 2 MPIC 1 Level firewire_ohci 41: 93 268 MPIC 1 Level eth0 42: 8569 24140 MPIC 2 Level keywest i2c 47: 0 0 MPIC 1 Level GPIO1 ADB 60: 1 0 MPIC 1 Edge line-output-detect 61: 1 0 MPIC 1 Edge headphone-detect 63: 153 502 MPIC 1 Level ehci_hcd:usb1, ohci_hcd:usb4, ohci_hcd:usb5 123: 0 0 MPIC 1 Edge ipi call function 124: 1978 2349 MPIC 1 Edge ipi reschedule 125: 2356 1816 MPIC 1 Edge ipi call function single 126: 0 0 MPIC 1 Edge ipi debugger LOC: 4417 7985 Local timer interrupts SPU: 9586 25811 Spurious interrupts CNT: 0 0 Performance monitoring interrupts MCE: 0 0 Machine check exceptionsAndreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Signature · 2 lines
Grant Likely, B.Sc, P.Eng. Secret Lab Technologies,Ltd.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 2 lines · Grant Likely
I bet it is
NR_IRQSrelated. You haveSPARSE_IRQenabled, which means the maximum number ofirq_descsisIRQ_BITMAP_BITS(NR_IRQS+ 8192).
The actual definition uses NR_IRQS + 8196. Guess that's a typo. (Does it really make sense to add NR_IRQS here?)
arch/powerpc/include/asm/irq.h line 23
Quoted 10 lines
arch/powerpc/include/asm/irq.h +1
-1@@ -20,7 +20,7 @@/* Define a way to iterate across irqs. */ #define for_each_irq (i) \ - for ((i) = 0; (i) < NR_IRQS; ++(i)) + for ((i) = 0; (i) < nr_irqs; ++(i))
There are exactly two uses of for_each_irq, one is related to cpu hotplug, the other to kexec, so that cannot make any difference.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 14 lines · Andreas Schwab
Quoted 2 lines · Grant Likely
I bet it is
NR_IRQSrelated. You haveSPARSE_IRQenabled, which means the maximum number ofirq_descsisIRQ_BITMAP_BITS(NR_IRQS+ 8192).The actual definition uses
NR_IRQS+ 8196. Guess that's a typo. (Does it really make sense to addNR_IRQShere?)Quoted 6 lines
arch/powerpc/include/asm/irq.h +0
-0@@ -20,7 +20,7 @@
Quoted 7 lines
arch/powerpc/include/asm/irq.h line 23
Quoted 4 lines
arch/powerpc/include/asm/irq.h +1
-1/* Define a way to iterate across irqs. */ #define for_each_irq (i) \ - for ((i) = 0; (i) < NR_IRQS; ++(i)) + for ((i) = 0; (i) < nr_irqs; ++(i))There are exactly two uses of
for_each_irq, one is related to cpu hotplug, the other to kexec, so that cannot make any difference.
Though that wants to be fixed nevertheless.
Thanks,
tglx
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Grant LikelyQuoted 3 lines · Grant Likely
Can you attach console output logs for each of configs above and also with NR_IRQS=128? That might give me some clues as to which specific code is causing the issues.
It really looks like the issue starts when irq_expand_nr_irqs is called the first time to make nr_irqs bigger than NR_IRQS.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
Can you attach console output logs for each of configs above and also with NR_IRQS=128? That might give me some clues as to which specific code is causing the issues.
It really looks like the issue starts when
irq_expand_nr_irqsis called the first time to makenr_irqsbigger thanNR_IRQS.
And it looks like the irqdomain code is the real culprit.
void irq_set_virq_count(unsigned int count)
{
pr_debug("irq: Trying to set virq count to %d\n", count);
BUG_ON(count < NUM_ISA_INTERRUPTS);
if (count < NR_IRQS)
irq_virq_count = count;
}That looks simply wrong.....
s/NR_IRQS/nr_irqs/ should do the trick.
Thanks,
tglx
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 11 lines · Thomas Gleixner
And it looks like the irqdomain code is the real culprit.
void
irq_set_virq_count(unsigned int count){ pr_debug("irq: Trying to set virq count to %d\n", count); BUG_ON(count < NUM_ISA_INTERRUPTS); if (count < NR_IRQS) irq_virq_count = count; }
Quoted 1 line
That looks simply wrong.....
There is a single use of irq_set_virq_count, which is only relevant to the PS3.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 13 lines · Andreas Schwab
Quoted 11 lines · Thomas Gleixner
And it looks like the irqdomain code is the real culprit.
void
irq_set_virq_count(unsigned int count){ pr_debug("irq: Trying to set virq count to %d\n", count); BUG_ON(count < NUM_ISA_INTERRUPTS); if (count < NR_IRQS) irq_virq_count = count; }
Quoted 4 lines
Quoted 1 line
That looks simply wrong.....
There is a single use of
irq_set_virq_count, which is only relevant to the PS3.
Though irq_virq_count is statically initialized to NR_IRQS and it's used in the code more than once.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Thomas GleixnerQuoted 22 lines · Thomas Gleixner
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
Can you attach console output logs for each of configs above and also with NR_IRQS=128? That might give me some clues as to which specific code is causing the issues.
It really looks like the issue starts when
irq_expand_nr_irqsis called the first time to makenr_irqsbigger thanNR_IRQS.And it looks like the irqdomain code is the real culprit.
void
irq_set_virq_count(unsigned int count){ pr_debug("irq: Trying to set virq count to %d\n", count); BUG_ON(count < NUM_ISA_INTERRUPTS); if (count < NR_IRQS) irq_virq_count = count; }
Quoted 3 lines
That looks simply wrong.....
s/NR_IRQS/nr_irqs/ should do the trick.
Yeah, that code is wrong and I'll fix it, but the only purpose of that code is to support the direct mapping on hardware that has limit on the largest irq number that it can handle. That shouldn't be the problem here.
g.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Andreas SchwabQuoted 8 lines · Andreas Schwab
Quoted 6 lines · Andreas Schwab
Quoted 3 lines · Grant Likely
This patch drops the powerpc-specific
irq_maptable and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeingirq_descstructures.
Quoted 6 lines
Quoted 2 lines
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on top of 3.4-rc1 the sata irq errors disappear, but I see a lot of spurious
Hmm. Which irq chip is handling the interrupt for that sata irq ?
Thanks,
tglx
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 6 lines · Thomas Gleixner
Quoted 2 lines
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on topof
Quoted 1 line
3.4-rc1 the sata irq errors disappear, but I see a lot of spurious
Hmm. Which irq chip is handling the interrupt for that sata irq ?
MPIC. The irq is a PCI IRQ, and so should be level-low, it should have been mapped by the PCI code using the of_* calls.
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 6 lines · Thomas Gleixner
Quoted 2 lines
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on topof
Quoted 1 line
3.4-rc1 the sata irq errors disappear, but I see a lot of spurious
Hmm. Which irq chip is handling the interrupt for that sata irq ?
MPIC. The irq is a PCI IRQ, and so should be level-low, it should have been mapped by the PCI code using the of_* calls.
So it's covered by this section:
mpic_set_irq_type()
if (flow_type == IRQ_TYPE_NONE)
if (mpic->senses && src < mpic->senses_count)
flow_type = mpic->senses[src];
if (flow_type == IRQ_TYPE_NONE)
flow_type = IRQ_TYPE_LEVEL_LOW;And with IRQ_TYPE_NONE this is always going to end up with IRQ_TYPE_LEVEL_LOW simply because the only function which might set mpic->senses is mpic_set_default_senses(). And this function does not have a single caller .....
/me scratches head
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
Quoted 10 lines · Thomas Gleixner
So it's covered by this section:
mpic_set_irq_type()if (flow_type == IRQ_TYPE_NONE) if (mpic->senses && src < mpic->senses_count) flow_type = mpic->senses[src]; if (flow_type == IRQ_TYPE_NONE) flow_type = IRQ_TYPE_LEVEL_LOW;
Quoted 6 lines
And with
IRQ_TYPE_NONEthis is always going to end up withIRQ_TYPE_LEVEL_LOWsimply because the only function which might setmpic->sensesismpic_set_default_senses(). And this function does not have a single caller ...../me scratches head
Something must have broken ... when converting from the device-tree we should be calling xlate which should extract the polarity/sense from the device-tree.
Now, afaik, IRQ_LEVEL_LOW is correct for PCI unless the interrupt is inverted inside Apple ASIC which is possible... (it's not an external PCI, it's a cell inside K2).
Cheers,
Ben.
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Thomas GleixnerQuoted 1 line · Thomas Gleixner
Hmm. Which irq chip is handling the interrupt for that sata irq ?
It's MPIC 1.
Andreas.
Signature · 3 lines
Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead
In reply to Andreas SchwabQuoted 8 lines · Andreas Schwab
Quoted 2 lines
This breaks irqs on PowerMac G5. I see lost irq errors from the sata driver.
When I revert
a09b659cd68c10ec6a30cb91ebd2c327fcd5bfe5("genirq: Fix long-term regression in genirqirq_set_irq_type()handling") on top of 3.4-rc1 the sata irq errors disappear, but I see a lot of spurious interrupts. Also the X server is broken somehow, though I don't know whether that is related or a different bug.
I can't explain why but it works for me with your config on a similar dual G5.
It would be interesting to figure out what causes the call to set_irq_type(NONE)...
The SATA driver isn't doing anything. What should be happening is that:
- pci_read_irq_line() in arch/powerpc/kernel/pci-common.c
This will call of_irq_map_pci() and then call irq_of_create_mapping() with the result if it's successful (it should be).
- irq_of_create_mapping in kernel/irq/irqdomain.c
That should then call domain->ops->xlate() where domain is the domain of the first MPIC (the one in K2), which should return your IRQ number for the SATA controller (btw, it's 0, in case that matters, ie, HW irq 0 on MPIC 1 iirc) and the interrupt type. This is where you should get IRQ_TYPE_LEVEL_LOW (i verified and that's what my device-tree contains).
You can add printk's in there to see what's happening in your case ?
Cheers,
Ben.
PATCH v5 7/27 irq_domain/powerpc: Eliminate virq_is_host()
In reply to Grant LikelyThere is only one user, and it is trivial to open-code.
--- arch/powerpc/include/asm/irq.h | 1 - arch/powerpc/kernel/irq.c | 7 ------- arch/powerpc/sysdev/xics/xics-common.c | 12 ++++++------ 3 files changed, 6 insertions(+), 14 deletions(-)
arch/powerpc/include/asm/irq.h +0 -1
@@ -58,7 +58,6 @@ extern atomic_t ppc_n_lost_interrupts;struct irq_data ;extern irq_hw_number_t irqd_to_hwirq (struct irq_data *d);extern irq_hw_number_t virq_to_hw (unsigned int virq); -extern bool virq_is_host (unsigned int virq,struct irq_domain *host);/** * irq_alloc_host - Allocate a new irq_domain data structure
arch/powerpc/kernel/irq.c +0 -7
@@ -510,13 +510,6 @@ irq_hw_number_t virq_to_hw(unsigned int virq) }EXPORT_SYMBOL_GPL (virq_to_hw); -bool virq_is_host (unsigned int virq,struct irq_domain *host) -{ -struct irq_data *irq_data =irq_get_irq_data (virq); -return irq_data ? irq_data->domain == host : false; -} -EXPORT_SYMBOL_GPL (virq_is_host); -static int default_irq_host_match (struct irq_domain *h,struct device_node *np) {return h->of_node !=NULL && h->of_node == np;
arch/powerpc/sysdev/xics/xics-common.c +6 -6
@@ -212,16 +212,16 @@ void xics_migrate_irqs_away(void)/* We can't set affinity on ISA interrupts */ if (virq <NUM_ISA_INTERRUPTS )continue ; -if (!virq_is_host (virq, xics_host)) -continue ; - irq = (unsigned int )virq_to_hw (virq); -/* We need to get IPIs still. */ -if (irq ==XICS_IPI || irq ==XICS_IRQ_SPURIOUS ) -continue ; desc =irq_to_desc (virq);/* We only need to migrate enabled IRQS */ if (!desc || !desc->action)continue ; +if (desc->irq_data.domain != xics_host) +continue ; + irq = desc->irq_data.hwirq; +/* We need to get IPIs still. */ +if (irq ==XICS_IPI || irq ==XICS_IRQ_SPURIOUS ) +continue ; chip =irq_desc_get_chip (desc);if (!chip || !chip->irq_set_affinity)continue ;
Signature · 1 line
1.7.9
PATCH v5 8/27 irq_domain: Move irq_domain code from powerpc to kernel/irq
In reply to Grant LikelyThis patch only moves the code. It doesn't make any changes, and the code is still only compiled for powerpc. Follow-on patches will generalize the code for other architectures.
--- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/irq.h | 144 ---------- arch/powerpc/kernel/irq.c | 502 --------------------------------- include/linux/irqdomain.h | 46 +++- kernel/irq/irqdomain.c | 600 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 643 insertions(+), 650 deletions(-)
arch/powerpc/Kconfig +1 -0
@@ -135,6 +135,7 @@ config PPC select HAVE_GENERIC_HARDIRQS select HAVE_SPARSE_IRQ select IRQ_PER_CPU + select IRQ_DOMAIN select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW_LEVEL select IRQ_FORCED_THREADING
arch/powerpc/include/asm/irq.h +0 -144
155 lines not on this page · raw message
arch/powerpc/kernel/irq.c +0 -502
525 lines not on this page · raw message
include/linux/irqdomain.h +42 -4
69 lines not on this page · raw message
kernel/irq/irqdomain.c +600 -0
617 lines not on this page · raw message
Signature · 1 line
1.7.9
Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq
Quoted 27 lines · Grant Likely
This patch only moves the code. ?It doesn't make any changes, and the code is still only compiled for powerpc. ?Follow-on patches will generalize the code for other architectures.
Signed-off-by Grant Likely <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Milton Miller <[email protected]>Tested-by Olof Johansson <[email protected]>---
(quoted diff) +17
-0+unsigned int irq_find_mapping(struct irq_domain *host, + ? ? ? ? ? ? ? ? ? ? ? ? ? ? irq_hw_number_t hwirq) +{ + ? ? ? unsigned int i; + ? ? ? unsigned int hint = hwirq % irq_virq_count; + + ? ? ? /* Look for default host if nececssary */ + ? ? ? if (host == NULL) + ? ? ? ? ? ? ? host = irq_default_host; + ? ? ? if (host == NULL) + ? ? ? ? ? ? ? return NO_IRQ; + + ? ? ? /* legacy -> bail early */ + ? ? ? if (host->revmap_type == IRQ_DOMAIN_MAP_LEGACY) + ? ? ? ? ? ? ? return hwirq; + + ? ? ? /* Slow path does a linear search of the map */
Review
Quoted 10 lines
(quoted diff) +10
-0+ ? ? ? if (hint == 0) + ? ? ? ? ? ? ? hint = 1; + ? ? ? i = hint; + ? ? ? do { + ? ? ? ? ? ? ? struct irq_data *data = irq_get_irq_data(i); + ? ? ? ? ? ? ? if (data && (data->domain == host) && (data->hwirq == hwirq)) + ? ? ? ? ? ? ? ? ? ? ? return i; + ? ? ? ? ? ? ? i++; + ? ? ? ? ? ? ? if (i >= irq_virq_count) + ? ? ? ? ? ? ? ? ? ? ? i = 1
Typo on this line; missing semicolon. Fixed in my tree now.
g.
Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq
In reply to Grant LikelyHi Grant,
It looks like there is a small regression in that update, it cannot build due to a missing semi-colon.
Quoted 26 lines · Grant Likely
kernel/irq/irqdomain.c +26
-0+/** +* irq_find_mapping() - Find a linux irq from an hw irq number. +* @host: domain owning this hardware interrupt +* @hwirq: hardware irq number in that host space +* +* This is a slow path, for use by generic code. It's expected that an +* irq controller implementation directly calls the appropriate low level +* mapping function. +*/ +unsigned int irq_find_mapping (struct irq_domain *host, +irq_hw_number_t hwirq) +{ +unsigned int i; +unsigned int hint = hwirq % irq_virq_count; + +/* Look for default host if nececssary */ +if (host ==NULL ) + host = irq_default_host; +if (host ==NULL ) +return NO_IRQ ; + +/* legacy -> bail early */ +if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) +return hwirq; + +/* Slow path does a linear search of the map */
kernel/irq/irqdomain.c line 441
Quoted 10 lines
kernel/irq/irqdomain.c +10
-0+if (hint ==0 ) + hint =1 ; + i = hint; + do { + struct irq_data *data = irq_get_irq_data(i); + if (data&& (data->domain == host)&& (data->hwirq == hwirq)) + return i; + i++; + if (i>= irq_virq_count) + i = 1
The ";" is missing.
Regards,
Benoit
Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq
OK, forget about it, I've just seen your email on that and pulled your latest update.
Regards,
Benoit
Quoted 48 lines · Benoit
Hi Grant,
It looks like there is a small regression in that update, it cannot build due to a missing semi-colon.
Quoted 27 lines · Grant Likely
+/**
+ *irq_find_mapping()- Find a linux irq from an hw irq number.
+ * @host: domain owning this hardware interrupt
+ * @hwirq: hardware irq number in that host space
+ *
+ * This is a slow path, for use by generic code. It's expected that an
+ * irq controller implementation directly calls the appropriate low level
+ * mapping function.
+ */kernel/irq/irqdomain.c +17
-0+unsigned int irq_find_mapping (struct irq_domain *host, +irq_hw_number_t hwirq) +{ +unsigned int i; +unsigned int hint = hwirq % irq_virq_count; + +/* Look for default host if nececssary */ +if (host ==NULL ) + host = irq_default_host; +if (host ==NULL ) +return NO_IRQ ; + +/* legacy -> bail early */ +if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) +return hwirq; + +/* Slow path does a linear search of the map */ kernel/irq/irqdomain.c line 441
Quoted 10 lines
kernel/irq/irqdomain.c +10
-0+if (hint ==0 ) + hint =1 ; + i = hint; + do { + struct irq_data *data = irq_get_irq_data(i); + if (data&& (data->domain == host)&& (data->hwirq == hwirq)) + return i; + i++; + if (i>= irq_virq_count) + i = 1The ";" is missing.
Regards,
Benoit
PATCH v5 9/27 irq_domain: remove NO_IRQ from irq domain code
In reply to Grant Likelyzero always means no irq when using irq domains. Get rid of the NO_IRQ references.
--- kernel/irq/irqdomain.c | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-)
kernel/irq/irqdomain.c +19 -19
@@ -108,7 +108,7 @@ struct irq_domain *irq_alloc_host(struct device_node *of_node,case IRQ_DOMAIN_MAP_LINEAR : rmap = (unsigned int *)(host +1 );for (i =0 ; i < revmap_arg; i++) - rmap[i] =NO_IRQ ; + rmap[i] =0 ; host->revmap_data.linear.size = revmap_arg; host->revmap_data.linear.revmap = rmap;break ;
@@ -218,9 +218,9 @@ unsigned int irq_create_direct_mapping(struct irq_domain *host)WARN_ON (host->revmap_type !=IRQ_DOMAIN_MAP_NOMAP ); virq =irq_alloc_desc_from (1 ,0 ); -if (virq ==NO_IRQ ) { +if (!virq) {pr_debug ("irq: create_direct virq allocation failed\n" ); -return NO_IRQ ; +return 0 ; }if (virq >= irq_virq_count) { pr_err("ERROR: no free irqs available below %i maximum\n",
@@ -233,7 +233,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *host)if (irq_setup_virq (host, virq, virq)) {irq_free_desc (virq); -return NO_IRQ ; +return 0 ; }return virq;
@@ -263,13 +263,13 @@ unsigned int irq_create_mapping(struct irq_domain *host,printk (KERN_WARNING "irq_create_mapping called for" " NULL host, hwirq=%lx\n" , hwirq);WARN_ON (1 ); -return NO_IRQ ; +return 0 ; }pr_debug ("irq: -> using host @%p\n" , host);/* Check if mapping already exists */ virq =irq_find_mapping (host, hwirq); -if (virq !=NO_IRQ ) { +if (virq) {pr_debug ("irq: -> existing mapping on virq %d\n" , virq);return virq; }
@@ -279,7 +279,7 @@ unsigned int irq_create_mapping(struct irq_domain *host,/* Handle legacy */ virq = (unsigned int )hwirq;if (virq ==0 || virq >=NUM_ISA_INTERRUPTS ) -return NO_IRQ ; +return 0 ;return virq; }else {/* Allocate a virtual interrupt number */
@@ -289,16 +289,16 @@ unsigned int irq_create_mapping(struct irq_domain *host, virq =irq_alloc_desc_from (hint,0 );if (!virq) virq =irq_alloc_desc_from (1 ,0 ); -if (virq ==NO_IRQ ) { +if (!virq) {pr_debug ("irq: -> virq allocation failed\n" ); -return NO_IRQ ; +return 0 ; } }if (irq_setup_virq (host, virq, hwirq)) {if (host->revmap_type !=IRQ_DOMAIN_MAP_LEGACY )irq_free_desc (virq); -return NO_IRQ ; +return 0 ; } pr_debug("irq: irq %lu on host %s mapped to virtual irq %u\n",
@@ -323,7 +323,7 @@ unsigned int irq_create_of_mapping(struct device_node *controller,if (host ==NULL ) {printk (KERN_WARNING "irq: no irq host found for %s !\n" , controller->full_name); -return NO_IRQ ; +return 0 ; }/* If host has no translation, then we assume interrupt line */
@@ -332,12 +332,12 @@ unsigned int irq_create_of_mapping(struct device_node *controller,else {if (host->ops->xlate (host, controller, intspec, intsize, &hwirq, &type)) -return NO_IRQ ; +return 0 ; }/* Create mapping */ virq =irq_create_mapping (host, hwirq); -if (virq ==NO_IRQ ) +if (!virq)return virq;/* Set type if specified and different than the current one */
@@ -358,7 +358,7 @@ void irq_dispose_mapping(unsigned int virq)struct irq_domain *host;irq_hw_number_t hwirq; -if (virq ==NO_IRQ || !irq_data) +if (!virq || !irq_data)return ; host = irq_data->domain;
@@ -387,7 +387,7 @@ void irq_dispose_mapping(unsigned int virq)switch (host->revmap_type) {case IRQ_DOMAIN_MAP_LINEAR :if (hwirq < host->revmap_data.linear.size) - host->revmap_data.linear.revmap[hwirq] =NO_IRQ ; + host->revmap_data.linear.revmap[hwirq] =0 ;break ;case IRQ_DOMAIN_MAP_TREE :mutex_lock (&revmap_trees_mutex);
@@ -422,7 +422,7 @@ unsigned int irq_find_mapping(struct irq_domain *host,if (host ==NULL ) host = irq_default_host;if (host ==NULL ) -return NO_IRQ ; +return 0 ;/* legacy -> bail early */ if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY )
@@ -440,7 +440,7 @@ unsigned int irq_find_mapping(struct irq_domain *host,if (i >= irq_virq_count) i = 1 }while (i != hint); -return NO_IRQ ; +return 0 ; }EXPORT_SYMBOL_GPL (irq_find_mapping);
@@ -493,7 +493,7 @@ void irq_radix_revmap_insert(struct irq_domain *host, unsigned int virq,if (WARN_ON (host->revmap_type !=IRQ_DOMAIN_MAP_TREE ))return ; -if (virq !=NO_IRQ ) { +if (virq) {mutex_lock (&revmap_trees_mutex);radix_tree_insert (&host->revmap_data.tree, hwirq, irq_data);mutex_unlock (&revmap_trees_mutex);
@@ -527,7 +527,7 @@ unsigned int irq_linear_revmap(struct irq_domain *host,return irq_find_mapping (host, hwirq);/* Fill up revmap with slow path if no mapping found */ -if (unlikely (revmap[hwirq] ==NO_IRQ )) +if (unlikely (!revmap[hwirq])) revmap[hwirq] =irq_find_mapping (host, hwirq);return revmap[hwirq];
Signature · 1 line
1.7.9
PATCH v5 10/27 irq_domain: Remove references to old irq_host names
In reply to Grant LikelyNo functional changes. Replaces non-exported references to 'host' with domain. Does not change any symbol names referenced by other .c files.
--- kernel/irq/irqdomain.c | 219 ++++++++++++++++++++++++------------------------ 1 files changed, 108 insertions(+), 111 deletions(-)
kernel/irq/irqdomain.c +108 -111
@@ -19,11 +19,11 @@ static DEFINE_MUTEX(irq_domain_mutex);#ifdef CONFIG_PPC static DEFINE_MUTEX (revmap_trees_mutex);static unsigned int irq_virq_count =NR_IRQS ; -static struct irq_domain *irq_default_host; +static struct irq_domain *irq_default_domain; -static int default_irq_host_match (struct irq_domain *h,struct device_node *np) +static int default_irq_domain_match (struct irq_domain *d,struct device_node *np) { -return h->of_node !=NULL && h->of_node == np; +return d->of_node !=NULL && d->of_node == np; }/**
@@ -31,8 +31,8 @@ static int default_irq_host_match(struct irq_domain *h, struct device_node *np)* @of_node: optional device-tree node of the interrupt controller * @revmap_type: type of reverse mapping to use * @revmap_arg: for IRQ_DOMAIN_MAP_LINEAR linear only: size of the map -* @ops: map/unmap host callbacks -* @inval_irq: provide a hw number in that host space that is always invalid +* @ops: map/unmap domain callbacks +* @inval_irq: provide a hw number in that domain space that is always invalid * * Allocates and initialize and irq_domain structure. Note that in the case of * IRQ_DOMAIN_MAP_LEGACY, the map() callback will be called before this returns
@@ -48,7 +48,7 @@ struct irq_domain *irq_alloc_host(struct device_node *of_node, struct irq_domain_ops *ops, irq_hw_number_t inval_irq) { -struct irq_domain *host, *h; +struct irq_domain *domain, *h;unsigned int size =sizeof (struct irq_domain );unsigned int i;unsigned int *rmap;
@@ -56,18 +56,18 @@ struct irq_domain *irq_alloc_host(struct device_node *of_node,/* Allocate structure and revmap table if using linear mapping */ if (revmap_type ==IRQ_DOMAIN_MAP_LINEAR ) size += revmap_arg *sizeof (unsigned int ); - host =kzalloc (size,GFP_KERNEL ); -if (host ==NULL ) + domain =kzalloc (size,GFP_KERNEL ); +if (domain ==NULL )return NULL ;/* Fill structure */ - host->revmap_type = revmap_type; - host->inval_irq = inval_irq; - host->ops = ops; - host->of_node =of_node_get (of_node); + domain->revmap_type = revmap_type; + domain->inval_irq = inval_irq; + domain->ops = ops; + domain->of_node =of_node_get (of_node); -if (host->ops->match ==NULL ) - host->ops->match = default_irq_host_match; +if (domain->ops->match ==NULL ) + domain->ops->match = default_irq_domain_match;mutex_lock (&irq_domain_mutex);/* Make sure only one legacy controller can be created */
@@ -75,53 +75,53 @@ struct irq_domain *irq_alloc_host(struct device_node *of_node,list_for_each_entry (h, &irq_domain_list, link) {if (WARN_ON (h->revmap_type ==IRQ_DOMAIN_MAP_LEGACY )) {mutex_unlock (&irq_domain_mutex); -of_node_put (host->of_node); -kfree (host); +of_node_put (domain->of_node); +kfree (domain);return NULL ; } } } -list_add (&host->link, &irq_domain_list); +list_add (&domain->link, &irq_domain_list);mutex_unlock (&irq_domain_mutex);/* Additional setups per revmap type */ switch (revmap_type) {case IRQ_DOMAIN_MAP_LEGACY :/* 0 is always the invalid number for legacy */ - host->inval_irq =0 ; -/* setup us as the host for all legacy interrupts */ + domain->inval_irq =0 ; +/* setup us as the domain for all legacy interrupts */ for (i =1 ; i <NUM_ISA_INTERRUPTS ; i++) {struct irq_data *irq_data =irq_get_irq_data (i); irq_data->hwirq = i; - irq_data->domain = host; + irq_data->domain = domain;/* Legacy flags are left to default at this point, * one can then use irq_create_mapping() to * explicitly change them */ - ops->map (host, i, i); + ops->map (domain, i, i);/* Clear norequest flags */ irq_clear_status_flags (i,IRQ_NOREQUEST ); }break ;case IRQ_DOMAIN_MAP_LINEAR : - rmap = (unsigned int *)(host +1 ); + rmap = (unsigned int *)(domain +1 );for (i =0 ; i < revmap_arg; i++) rmap[i] =0 ; - host->revmap_data.linear.size = revmap_arg; - host->revmap_data.linear.revmap = rmap; + domain->revmap_data.linear.size = revmap_arg; + domain->revmap_data.linear.revmap = rmap;break ;case IRQ_DOMAIN_MAP_TREE : -INIT_RADIX_TREE (&host->revmap_data.tree,GFP_KERNEL ); +INIT_RADIX_TREE (&domain->revmap_data.tree,GFP_KERNEL );break ;default :break ; } -pr_debug ("irq: Allocated host of type %d @0x%p\n" , revmap_type, host); +pr_debug ("irq: Allocated domain of type %d @0x%p\n" , revmap_type, domain); -return host; +return domain; }/**
@@ -150,18 +150,18 @@ EXPORT_SYMBOL_GPL(irq_find_host);/** * irq_set_default_host() - Set a "default" irq domain -* @host: default host pointer +* @domain: default domain pointer * * For convenience, it's possible to set a "default" domain that will be used * whenever NULL is passed to irq_create_mapping(). It makes life easier for * platforms that want to manipulate a few hard coded interrupt numbers that * aren't properly represented in the device-tree. */ -void irq_set_default_host (struct irq_domain *host) +void irq_set_default_host (struct irq_domain *domain) { -pr_debug ("irq: Default host set to @0x%p\n" , host); +pr_debug ("irq: Default domain set to @0x%p\n" , domain); - irq_default_host = host; + irq_default_domain = domain; }/**
@@ -180,14 +180,14 @@ void irq_set_virq_count(unsigned int count) irq_virq_count = count; } -static int irq_setup_virq (struct irq_domain *host,unsigned int virq, +static int irq_setup_virq (struct irq_domain *domain,unsigned int virq,irq_hw_number_t hwirq) {struct irq_data *irq_data =irq_get_irq_data (virq); irq_data->hwirq = hwirq; - irq_data->domain = host; -if (host->ops->map (host, virq, hwirq)) { + irq_data->domain = domain; +if (domain->ops->map (domain, virq, hwirq)) {pr_debug ("irq: -> mapping failed, freeing\n" ); irq_data->domain =NULL ; irq_data->hwirq =0 ;
@@ -201,21 +201,21 @@ static int irq_setup_virq(struct irq_domain *host, unsigned int virq,/** * irq_create_direct_mapping() - Allocate an irq for direct mapping -* @host: domain to allocate the irq for or NULL for default host +* @domain: domain to allocate the irq for or NULL for default domain * * This routine is used for irq controllers which can choose the hardware * interrupt numbers they generate. In such a case it's simplest to use * the linux irq as the hardware interrupt number. */ -unsigned int irq_create_direct_mapping (struct irq_domain *host) +unsigned int irq_create_direct_mapping (struct irq_domain *domain) {unsigned int virq; -if (host ==NULL ) - host = irq_default_host; +if (domain ==NULL ) + domain = irq_default_domain; -BUG_ON (host ==NULL ); -WARN_ON (host->revmap_type !=IRQ_DOMAIN_MAP_NOMAP ); +BUG_ON (domain ==NULL ); +WARN_ON (domain->revmap_type !=IRQ_DOMAIN_MAP_NOMAP ); virq =irq_alloc_desc_from (1 ,0 );if (!virq) {
@@ -231,7 +231,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *host)pr_debug ("irq: create_direct obtained virq %d\n" , virq); -if (irq_setup_virq (host, virq, virq)) { +if (irq_setup_virq (domain, virq, virq)) {irq_free_desc (virq);return 0 ; }
@@ -241,41 +241,41 @@ unsigned int irq_create_direct_mapping(struct irq_domain *host)/** * irq_create_mapping() - Map a hardware interrupt into linux irq space -* @host: host owning this hardware interrupt or NULL for default host -* @hwirq: hardware irq number in that host space +* @domain: domain owning this hardware interrupt or NULL for default domain +* @hwirq: hardware irq number in that domain space * * Only one mapping per hardware interrupt is permitted. Returns a linux * irq number. * If the sense/trigger is to be specified, set_irq_type() should be called * on the number returned from that call. */ -unsigned int irq_create_mapping (struct irq_domain *host, +unsigned int irq_create_mapping (struct irq_domain *domain,irq_hw_number_t hwirq) {unsigned int virq, hint; -pr_debug ("irq: irq_create_mapping(0x%p, 0x%lx)\n" , host, hwirq); +pr_debug ("irq: irq_create_mapping(0x%p, 0x%lx)\n" , domain, hwirq); -/* Look for default host if nececssary */ -if (host ==NULL ) - host = irq_default_host; -if (host ==NULL ) { +/* Look for default domain if nececssary */ +if (domain ==NULL ) + domain = irq_default_domain; +if (domain ==NULL ) {printk (KERN_WARNING "irq_create_mapping called for" -" NULL host, hwirq=%lx\n" , hwirq); +" NULL domain, hwirq=%lx\n" , hwirq);WARN_ON (1 );return 0 ; } -pr_debug ("irq: -> using host @%p\n" , host); +pr_debug ("irq: -> using domain @%p\n" , domain);/* Check if mapping already exists */ - virq =irq_find_mapping (host, hwirq); + virq =irq_find_mapping (domain, hwirq);if (virq) {pr_debug ("irq: -> existing mapping on virq %d\n" , virq);return virq; }/* Get a virtual interrupt number */ -if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) { +if (domain->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) {/* Handle legacy */ virq = (unsigned int )hwirq;if (virq ==0 || virq >=NUM_ISA_INTERRUPTS )
@@ -295,14 +295,14 @@ unsigned int irq_create_mapping(struct irq_domain *host, } } -if (irq_setup_virq (host, virq, hwirq)) { -if (host->revmap_type !=IRQ_DOMAIN_MAP_LEGACY ) +if (irq_setup_virq (domain, virq, hwirq)) { +if (domain->revmap_type !=IRQ_DOMAIN_MAP_LEGACY )irq_free_desc (virq);return 0 ; } -pr_debug ("irq: irq %lu on host %s mapped to virtual irq %u\n" , - hwirq, host->of_node ? host->of_node->full_name :"null" , virq); +pr_debug ("irq: irq %lu on domain %s mapped to virtual irq %u\n" , + hwirq, domain->of_node ? domain->of_node->full_name :"null" , virq);return virq; }
@@ -311,32 +311,29 @@ EXPORT_SYMBOL_GPL(irq_create_mapping);unsigned int irq_create_of_mapping (struct device_node *controller,const u32 *intspec,unsigned int intsize) { -struct irq_domain *host; +struct irq_domain *domain;irq_hw_number_t hwirq;unsigned int type =IRQ_TYPE_NONE ;unsigned int virq; -if (controller ==NULL ) - host = irq_default_host; -else - host =irq_find_host (controller); -if (host ==NULL ) { -printk (KERN_WARNING "irq: no irq host found for %s !\n" , + domain = controller ?irq_find_host (controller) : irq_default_domain; +if (!domain) { +printk (KERN_WARNING "irq: no irq domain found for %s !\n" , controller->full_name);return 0 ; } -/* If host has no translation, then we assume interrupt line */ -if (host->ops->xlate ==NULL ) +/* If domain has no translation, then we assume interrupt line */ +if (domain->ops->xlate ==NULL ) hwirq = intspec[0 ];else { -if (host->ops->xlate (host, controller, intspec, intsize, +if (domain->ops->xlate (domain, controller, intspec, intsize, &hwirq, &type))return 0 ; }/* Create mapping */ - virq =irq_create_mapping (host, hwirq); + virq =irq_create_mapping (domain, hwirq);if (!virq)return virq;
@@ -355,18 +352,18 @@ EXPORT_SYMBOL_GPL(irq_create_of_mapping);void irq_dispose_mapping (unsigned int virq) {struct irq_data *irq_data =irq_get_irq_data (virq); -struct irq_domain *host; +struct irq_domain *domain;irq_hw_number_t hwirq;if (!virq || !irq_data)return ; - host = irq_data->domain; -if (WARN_ON (host ==NULL )) + domain = irq_data->domain; +if (WARN_ON (domain ==NULL ))return ;/* Never unmap legacy interrupts */ -if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) +if (domain->revmap_type ==IRQ_DOMAIN_MAP_LEGACY )return ;irq_set_status_flags (virq,IRQ_NOREQUEST );
@@ -378,26 +375,26 @@ void irq_dispose_mapping(unsigned int virq)synchronize_irq (virq);/* Tell the PIC about it */ -if (host->ops->unmap) - host->ops->unmap (host, virq); +if (domain->ops->unmap) + domain->ops->unmap (domain, virq);smp_mb ();/* Clear reverse map */ hwirq = irq_data->hwirq; -switch (host->revmap_type) { +switch (domain->revmap_type) {case IRQ_DOMAIN_MAP_LINEAR : -if (hwirq < host->revmap_data.linear.size) - host->revmap_data.linear.revmap[hwirq] =0 ; +if (hwirq < domain->revmap_data.linear.size) + domain->revmap_data.linear.revmap[hwirq] =0 ;break ;case IRQ_DOMAIN_MAP_TREE :mutex_lock (&revmap_trees_mutex); -radix_tree_delete (&host->revmap_data.tree, hwirq); +radix_tree_delete (&domain->revmap_data.tree, hwirq);mutex_unlock (&revmap_trees_mutex);break ; }/* Destroy map */ - irq_data->hwirq = host->inval_irq; + irq_data->hwirq = domain->inval_irq;irq_free_desc (virq); }
@@ -405,27 +402,27 @@ EXPORT_SYMBOL_GPL(irq_dispose_mapping);/** * irq_find_mapping() - Find a linux irq from an hw irq number. -* @host: domain owning this hardware interrupt -* @hwirq: hardware irq number in that host space +* @domain: domain owning this hardware interrupt +* @hwirq: hardware irq number in that domain space * * This is a slow path, for use by generic code. It's expected that an * irq controller implementation directly calls the appropriate low level * mapping function. */ -unsigned int irq_find_mapping (struct irq_domain *host, +unsigned int irq_find_mapping (struct irq_domain *domain,irq_hw_number_t hwirq) {unsigned int i;unsigned int hint = hwirq % irq_virq_count; -/* Look for default host if nececssary */ -if (host ==NULL ) - host = irq_default_host; -if (host ==NULL ) +/* Look for default domain if nececssary */ +if (domain ==NULL ) + domain = irq_default_domain; +if (domain ==NULL )return 0 ;/* legacy -> bail early */ -if (host->revmap_type ==IRQ_DOMAIN_MAP_LEGACY ) +if (domain->revmap_type ==IRQ_DOMAIN_MAP_LEGACY )return hwirq;/* Slow path does a linear search of the map */
@@ -434,7 +431,7 @@ unsigned int irq_find_mapping(struct irq_domain *host, i = hint; do { struct irq_data *data = irq_get_irq_data(i); - if (data && (data->domain == host) && (data->hwirq == hwirq)) + if (data && (data->domain == domain) && (data->hwirq == hwirq)) return i; i++; if (i >= irq_virq_count)
@@ -446,26 +443,26 @@ EXPORT_SYMBOL_GPL(irq_find_mapping);/** * irq_radix_revmap_lookup() - Find a linux irq from a hw irq number. -* @host: host owning this hardware interrupt -* @hwirq: hardware irq number in that host space +* @domain: domain owning this hardware interrupt +* @hwirq: hardware irq number in that domain space * * This is a fast path, for use by irq controller code that uses radix tree * revmaps */ -unsigned int irq_radix_revmap_lookup (struct irq_domain *host, +unsigned int irq_radix_revmap_lookup (struct irq_domain *domain,irq_hw_number_t hwirq) {struct irq_data *irq_data; -if (WARN_ON_ONCE (host->revmap_type !=IRQ_DOMAIN_MAP_TREE )) -return irq_find_mapping (host, hwirq); +if (WARN_ON_ONCE (domain->revmap_type !=IRQ_DOMAIN_MAP_TREE )) +return irq_find_mapping (domain, hwirq);/* * Freeing an irq can delete nodes along the path to * do the lookup via call_rcu. */ rcu_read_lock (); - irq_data =radix_tree_lookup (&host->revmap_data.tree, hwirq); + irq_data =radix_tree_lookup (&domain->revmap_data.tree, hwirq);rcu_read_unlock ();/*
@@ -473,62 +470,62 @@ unsigned int irq_radix_revmap_lookup(struct irq_domain *host,* Else fallback to linear lookup - this should not happen in practice * as it means that we failed to insert the node in the radix tree. */ -return irq_data ? irq_data->irq :irq_find_mapping (host, hwirq); +return irq_data ? irq_data->irq :irq_find_mapping (domain, hwirq); }/** * irq_radix_revmap_insert() - Insert a hw irq to linux irq number mapping. -* @host: host owning this hardware interrupt +* @domain: domain owning this hardware interrupt * @virq: linux irq number -* @hwirq: hardware irq number in that host space +* @hwirq: hardware irq number in that domain space * * This is for use by irq controllers that use a radix tree reverse * mapping for fast lookup. */ -void irq_radix_revmap_insert (struct irq_domain *host,unsigned int virq, +void irq_radix_revmap_insert (struct irq_domain *domain,unsigned int virq,irq_hw_number_t hwirq) {struct irq_data *irq_data =irq_get_irq_data (virq); -if (WARN_ON (host->revmap_type !=IRQ_DOMAIN_MAP_TREE )) +if (WARN_ON (domain->revmap_type !=IRQ_DOMAIN_MAP_TREE ))return ;if (virq) {mutex_lock (&revmap_trees_mutex); -radix_tree_insert (&host->revmap_data.tree, hwirq, irq_data); +radix_tree_insert (&domain->revmap_data.tree, hwirq, irq_data);mutex_unlock (&revmap_trees_mutex); } }/** * irq_linear_revmap() - Find a linux irq from a hw irq number. -* @host: host owning this hardware interrupt -* @hwirq: hardware irq number in that host space +* @domain: domain owning this hardware interrupt +* @hwirq: hardware irq number in that domain space * * This is a fast path, for use by irq controller code that uses linear * revmaps. It does fallback to the slow path if the revmap doesn't exist * yet and will create the revmap entry with appropriate locking */ -unsigned int irq_linear_revmap (struct irq_domain *host, +unsigned int irq_linear_revmap (struct irq_domain *domain,irq_hw_number_t hwirq) {unsigned int *revmap; -if (WARN_ON_ONCE (host->revmap_type !=IRQ_DOMAIN_MAP_LINEAR )) -return irq_find_mapping (host, hwirq); +if (WARN_ON_ONCE (domain->revmap_type !=IRQ_DOMAIN_MAP_LINEAR )) +return irq_find_mapping (domain, hwirq);/* Check revmap bounds */ -if (unlikely (hwirq >= host->revmap_data.linear.size)) -return irq_find_mapping (host, hwirq); +if (unlikely (hwirq >= domain->revmap_data.linear.size)) +return irq_find_mapping (domain, hwirq);/* Check if revmap was allocated */ - revmap = host->revmap_data.linear.revmap; + revmap = domain->revmap_data.linear.revmap;if (unlikely (revmap ==NULL )) -return irq_find_mapping (host, hwirq); +return irq_find_mapping (domain, hwirq);/* Fill up revmap with slow path if no mapping found */ if (unlikely (!revmap[hwirq])) - revmap[hwirq] =irq_find_mapping (host, hwirq); + revmap[hwirq] =irq_find_mapping (domain, hwirq);return revmap[hwirq]; }
@@ -544,7 +541,7 @@ static int virq_debug_show(struct seq_file *m, void *private)int i;seq_printf (m,"%-5s %-7s %-15s %-18s %s\n" ,"virq" ,"hwirq" , -"chip name" ,"chip data" ,"host name" ); +"chip name" ,"chip data" ,"domain name" );for (i =1 ; i < nr_irqs; i++) { desc =irq_to_desc (i);
Signature · 1 line
1.7.9
PATCH v5 11/27 irq_domain: Replace irq_alloc_host() with revmap-specific initializers
In reply to Grant LikelyEach revmap type has different arguments for setting up the revmap. This patch splits up the generator functions so that each revmap type can do its own setup and the user doesn't need to keep track of how each revmap type handles the arguments.
This patch also adds a host_data argument to the generators. There are cases where the host_data pointer will be needed before the function returns. ie. the legacy map calls the .map callback for each irq before returning.
v2: - Add void *host_data argument to irq_domain_add_*() functions
- fixed failure to compile
- Moved IRQ_DOMAIN_MAP_* defines into irqdomain.c
--- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c | 3 +- arch/powerpc/platforms/52xx/media5200.c | 7 +- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 6 +- arch/powerpc/platforms/52xx/mpc52xx_pic.c | 4 +- arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 6 +- arch/powerpc/platforms/85xx/socrates_fpga_pic.c | 5 +- arch/powerpc/platforms/86xx/gef_pic.c | 5 +- arch/powerpc/platforms/cell/axon_msi.c | 5 +- arch/powerpc/platforms/cell/beat_interrupt.c | 4 +- arch/powerpc/platforms/cell/interrupt.c | 4 +- arch/powerpc/platforms/cell/spider-pic.c | 6 +- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 6 +- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 5 +- arch/powerpc/platforms/iseries/irq.c | 3 +- arch/powerpc/platforms/powermac/pic.c | 5 +- arch/powerpc/platforms/powermac/smp.c | 3 +- arch/powerpc/platforms/ps3/interrupt.c | 3 +- arch/powerpc/platforms/wsp/opb_pic.c | 7 +- arch/powerpc/sysdev/cpm1.c | 3 +- arch/powerpc/sysdev/cpm2_pic.c | 3 +- arch/powerpc/sysdev/ehv_pic.c | 6 +- arch/powerpc/sysdev/fsl_msi.c | 6 +- arch/powerpc/sysdev/i8259.c | 3 +- arch/powerpc/sysdev/ipic.c | 7 +- arch/powerpc/sysdev/mpc8xx_pic.c | 3 +- arch/powerpc/sysdev/mpic.c | 7 +- arch/powerpc/sysdev/mv64x60_pic.c | 5 +- arch/powerpc/sysdev/qe_lib/qe_ic.c | 5 +- arch/powerpc/sysdev/tsi108_pci.c | 3 +- arch/powerpc/sysdev/uic.c | 6 +- arch/powerpc/sysdev/xics/xics-common.c | 3 +- arch/powerpc/sysdev/xilinx_intc.c | 5 +- drivers/gpio/gpio-mpc8xxx.c | 7 +- include/linux/irqdomain.h | 24 ++- kernel/irq/irqdomain.c | 200 ++++++++++++++-------- 35 files changed, 198 insertions(+), 185 deletions(-)
arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +1 -2
@@ -190,8 +190,7 @@ mpc5121_ads_cpld_pic_init(void) cpld_pic_node =of_node_get (np); - cpld_pic_host = -irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,16 , &cpld_pic_host_ops,16 ); + cpld_pic_host =irq_domain_add_linear (np,16 , &cpld_pic_host_ops,NULL );if (!cpld_pic_host) {printk (KERN_ERR "CPLD PIC: failed to allocate irq host!\n" ); goto end;
arch/powerpc/platforms/52xx/media5200.c +2 -5
@@ -173,15 +173,12 @@ static void __init media5200_init_irq(void)spin_lock_init (&media5200_irq.lock); - media5200_irq.irqhost =irq_alloc_host (fpga_np,IRQ_DOMAIN_MAP_LINEAR , -MEDIA5200_NUM_IRQS , - &media5200_irq_ops,-1 ); + media5200_irq.irqhost =irq_domain_add_linear (fpga_np, +MEDIA5200_NUM_IRQS , &media5200_irq_ops, &media5200_irq);if (!media5200_irq.irqhost) goto out;pr_debug ("%s: allocated irqhost\n" , __func__); - media5200_irq.irqhost->host_data = &media5200_irq; -irq_set_handler_data (cascade_virq, &media5200_irq);irq_set_chained_handler (cascade_virq, media5200_irq_cascade);
arch/powerpc/platforms/52xx/mpc52xx_gpt.c +2 -4
@@ -252,14 +252,12 @@ mpc52xx_gpt_irq_setup(struct mpc52xx_gpt_priv *gpt, struct device_node *node)if (!cascade_virq)return ; - gpt->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR ,1 , - &mpc52xx_gpt_irq_ops,-1 ); + gpt->irqhost =irq_domain_add_linear (node,1 , &mpc52xx_gpt_irq_ops, gpt);if (!gpt->irqhost) { -dev_err (gpt->dev,"irq_alloc_host() failed\n" ); +dev_err (gpt->dev,"irq_domain_add_linear() failed\n" );return ; } - gpt->irqhost->host_data = gpt;irq_set_handler_data (cascade_virq, gpt);irq_set_chained_handler (cascade_virq, mpc52xx_gpt_irq_cascade);
arch/powerpc/platforms/52xx/mpc52xx_pic.c +2 -2
@@ -444,9 +444,9 @@ void __init mpc52xx_init_irq(void)* As last step, add an irq host to translate the real * hw irq information provided by the ofw to linux virq */ - mpc52xx_irqhost =irq_alloc_host (picnode,IRQ_DOMAIN_MAP_LINEAR , + mpc52xx_irqhost =irq_domain_add_linear (picnode, MPC52xx_IRQ_HIGHTESTHWIRQ, - &mpc52xx_irqhost_ops,-1 ); + &mpc52xx_irqhost_ops,NULL );if (!mpc52xx_irqhost)panic (__FILE__": Cannot allocate the IRQ host\n" );
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +1 -5
@@ -156,17 +156,13 @@ int __init pq2ads_pci_init_irq(void)out_be32 (&priv->regs->mask, ~0 );mb (); - host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,NUM_IRQS , - &pci_pic_host_ops,NUM_IRQS ); + host =irq_domain_add_linear (np,NUM_IRQS , &pci_pic_host_ops, priv);if (!host) { ret = -ENOMEM ; goto out_unmap_regs; } - host->host_data = priv; - priv->host = host; - host->host_data = priv;irq_set_handler_data (irq, priv);irq_set_chained_handler (irq, pq2ads_pci_irq_demux);
arch/powerpc/platforms/85xx/socrates_fpga_pic.c +2 -3
@@ -280,9 +280,8 @@ void socrates_fpga_pic_init(struct device_node *pic)int i;/* Setup an irq_domain structure */ - socrates_fpga_pic_irq_host =irq_alloc_host (pic,IRQ_DOMAIN_MAP_LINEAR , -SOCRATES_FPGA_NUM_IRQS , &socrates_fpga_pic_host_ops, -SOCRATES_FPGA_NUM_IRQS ); + socrates_fpga_pic_irq_host =irq_domain_add_linear (pic, +SOCRATES_FPGA_NUM_IRQS , &socrates_fpga_pic_host_ops,NULL );if (socrates_fpga_pic_irq_host ==NULL ) {pr_err ("FPGA PIC: Unable to allocate host\n" );return ;
arch/powerpc/platforms/86xx/gef_pic.c +2 -3
@@ -212,9 +212,8 @@ void __init gef_pic_init(struct device_node *np) }/* Setup an irq_domain structure */ - gef_pic_irq_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , -GEF_PIC_NUM_IRQS , - &gef_pic_host_ops,NO_IRQ ); + gef_pic_irq_host =irq_domain_add_linear (np,GEF_PIC_NUM_IRQS , + &gef_pic_host_ops,NULL );if (gef_pic_irq_host ==NULL )return ;
arch/powerpc/platforms/cell/axon_msi.c +1 -4
@@ -392,16 +392,13 @@ static int axon_msi_probe(struct platform_device *device) }memset (msic->fifo_virt,0xff ,MSIC_FIFO_SIZE_BYTES ); - msic->irq_domain =irq_alloc_host (dn,IRQ_DOMAIN_MAP_NOMAP , -NR_IRQS , &msic_host_ops,0 ); + msic->irq_domain =irq_domain_add_nomap (dn, &msic_host_ops, msic);if (!msic->irq_domain) {printk (KERN_ERR "axon_msi: couldn't allocate irq_domain for %s\n" , dn->full_name); goto out_free_fifo; } - msic->irq_domain->host_data = msic; -irq_set_handler_data (virq, msic);irq_set_chained_handler (virq, axon_msi_cascade);pr_devel ("axon_msi: irq 0x%x setup for axon_msi\n" , virq);
arch/powerpc/platforms/cell/beat_interrupt.c +1 -3
@@ -239,9 +239,7 @@ void __init beatic_init_IRQ(void) ppc_md.get_irq = beatic_get_irq;/* Allocate an irq host */ - beatic_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , - &beatic_pic_host_ops, -0 ); + beatic_host =irq_domain_add_nomap (NULL , &beatic_pic_host_ops,NULL );BUG_ON (beatic_host ==NULL );irq_set_default_host (beatic_host); }
arch/powerpc/platforms/cell/interrupt.c +2 -2
@@ -378,8 +378,8 @@ static int __init setup_iic(void)void __init iic_init_IRQ (void ) {/* Setup an irq host data structure */ - iic_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_LINEAR ,IIC_SOURCE_COUNT , - &iic_host_ops,IIC_IRQ_INVALID ); + iic_host =irq_domain_add_linear (NULL ,IIC_SOURCE_COUNT , &iic_host_ops, +NULL );BUG_ON (iic_host ==NULL );irq_set_default_host (iic_host);
arch/powerpc/platforms/cell/spider-pic.c +2 -4
@@ -299,12 +299,10 @@ static void __init spider_init_one(struct device_node *of_node, int chip,panic ("spider_pic: can't map registers !" );/* Allocate a host */ - pic->host =irq_alloc_host (of_node,IRQ_DOMAIN_MAP_LINEAR , -SPIDER_SRC_COUNT , &spider_host_ops, -SPIDER_IRQ_INVALID ); + pic->host =irq_domain_add_linear (of_node,SPIDER_SRC_COUNT , + &spider_host_ops, pic);if (pic->host ==NULL )panic ("spider_pic: can't allocate irq host !" ); - pic->host->host_data = pic;/* Go through all sources and disable them */ for (i =0 ; i <SPIDER_SRC_COUNT ; i++) {
arch/powerpc/platforms/embedded6xx/flipper-pic.c +2 -4
@@ -159,15 +159,13 @@ struct irq_domain * __init flipper_pic_init(struct device_node *np)__flipper_quiesce (io_base); - irq_domain =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,FLIPPER_NR_IRQS , - &flipper_irq_domain_ops,-1 ); + irq_domain =irq_domain_add_linear (np,FLIPPER_NR_IRQS , + &flipper_irq_domain_ops, io_base);if (!irq_domain) {pr_err ("failed to allocate irq_domain\n" );return NULL ; } - irq_domain->host_data = io_base; - out:return irq_domain; }
arch/powerpc/platforms/embedded6xx/hlwd-pic.c +2 -3
@@ -177,13 +177,12 @@ struct irq_domain *hlwd_pic_init(struct device_node *np)__hlwd_quiesce (io_base); - irq_domain =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,HLWD_NR_IRQS , - &hlwd_irq_domain_ops,-1 ); + irq_domain =irq_domain_add_linear (np,HLWD_NR_IRQS , + &hlwd_irq_domain_ops, io_base);if (!irq_domain) {pr_err ("failed to allocate irq_domain\n" );return NULL ; } - irq_domain->host_data = io_base;return irq_domain; }
arch/powerpc/platforms/iseries/irq.c +1 -2
@@ -380,8 +380,7 @@ void __init iSeries_init_IRQ(void)/* Create irq host. No need for a revmap since HV will give us * back our virtual irq number */ - host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , - &iseries_irq_domain_ops,0 ); + host =irq_domain_add_nomap (NULL , &iseries_irq_domain_ops,NULL );BUG_ON (host ==NULL );irq_set_default_host (host);
arch/powerpc/platforms/powermac/pic.c +2 -3
@@ -352,9 +352,8 @@ static void __init pmac_pic_probe_oldstyle(void)/* * Allocate an irq host */ - pmac_pic_host =irq_alloc_host (master,IRQ_DOMAIN_MAP_LINEAR , max_irqs, - &pmac_pic_host_ops, - max_irqs); + pmac_pic_host =irq_domain_add_linear (master, max_irqs, + &pmac_pic_host_ops,NULL );BUG_ON (pmac_pic_host ==NULL );irq_set_default_host (pmac_pic_host);
arch/powerpc/platforms/powermac/smp.c +1 -2
@@ -192,8 +192,7 @@ static int psurge_secondary_ipi_init(void) {int rc = -ENOMEM ; - psurge_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , - &psurge_host_ops,0 ); + psurge_host =irq_domain_add_nomap (NULL , &psurge_host_ops,NULL );if (psurge_host) psurge_secondary_virq =irq_create_direct_mapping (psurge_host);
arch/powerpc/platforms/ps3/interrupt.c +1 -2
@@ -753,8 +753,7 @@ void __init ps3_init_IRQ(void)unsigned cpu;struct irq_domain *host; - host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_NOMAP ,0 , &ps3_host_ops, -PS3_INVALID_OUTLET ); + host =irq_domain_add_nomap (NULL , &ps3_host_ops,NULL );irq_set_default_host (host);irq_set_virq_count (PS3_PLUG_MAX +1 );
arch/powerpc/platforms/wsp/opb_pic.c +2 -5
@@ -263,13 +263,11 @@ struct opb_pic *opb_pic_init_one(struct device_node *dn) goto free_opb; } -/* Allocate an irq host so that Linux knows that despite only +/* Allocate an irq domain so that Linux knows that despite only * having one interrupt to issue, we're the controller for multiple * hardware IRQs, so later we can lookup their virtual IRQs. */ - opb->host =irq_alloc_host (dn,IRQ_DOMAIN_MAP_LINEAR , -OPB_NR_IRQS , &opb_host_ops,-1 ); - + opb->host =irq_domain_add_linear (dn,OPB_NR_IRQS , &opb_host_ops, opb);if (!opb->host) {printk (KERN_ERR "opb: Failed to allocate IRQ host!\n" ); goto free_regs;
@@ -277,7 +275,6 @@ struct opb_pic *opb_pic_init_one(struct device_node *dn) opb->index = opb_index++;spin_lock_init (&opb->lock); - opb->host->host_data = opb;/* Disable all interrupts by default */ opb_out (opb,OPB_MLSASIER ,0 );
arch/powerpc/sysdev/cpm1.c +1 -2
@@ -164,8 +164,7 @@ unsigned int cpm_pic_init(void)out_be32 (&cpic_reg->cpic_cimr,0 ); - cpm_pic_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , -64 , &cpm_pic_host_ops,64 ); + cpm_pic_host =irq_domain_add_linear (np,64 , &cpm_pic_host_ops,NULL );if (cpm_pic_host ==NULL ) {printk (KERN_ERR "CPM2 PIC: failed to allocate irq host!\n" ); sirq =NO_IRQ ;
arch/powerpc/sysdev/cpm2_pic.c +1 -2
@@ -275,8 +275,7 @@ void cpm2_pic_init(struct device_node *node)out_be32 (&cpm2_intctl->ic_scprrl,0x05309770 );/* create a legacy host */ - cpm2_pic_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR , -64 , &cpm2_pic_host_ops,64 ); + cpm2_pic_host =irq_domain_add_linear (node,64 , &cpm2_pic_host_ops,NULL );if (cpm2_pic_host ==NULL ) {printk (KERN_ERR "CPM2 PIC: failed to allocate irq host!\n" );return ;
arch/powerpc/sysdev/ehv_pic.c +2 -4
@@ -275,9 +275,8 @@ void __init ehv_pic_init(void)return ; } - ehv_pic->irqhost =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , -NR_EHV_PIC_INTS , &ehv_pic_host_ops,0 ); - + ehv_pic->irqhost =irq_domain_add_linear (np,NR_EHV_PIC_INTS , + &ehv_pic_host_ops, ehv_pic);if (!ehv_pic->irqhost) {of_node_put (np);kfree (ehv_pic);
@@ -293,7 +292,6 @@ void __init ehv_pic_init(void)of_node_put (np2); } - ehv_pic->irqhost->host_data = ehv_pic; ehv_pic->hc_irq = ehv_pic_irq_chip; ehv_pic->hc_irq.irq_set_affinity = ehv_pic_set_affinity; ehv_pic->coreint_flag = coreint_flag;
arch/powerpc/sysdev/fsl_msi.c +2 -4
@@ -387,8 +387,8 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev) }platform_set_drvdata (dev, msi); - msi->irqhost =irq_alloc_host (dev->dev.of_node,IRQ_DOMAIN_MAP_LINEAR , -NR_MSI_IRQS , &fsl_msi_host_ops,0 ); + msi->irqhost =irq_domain_add_linear (dev->dev.of_node, +NR_MSI_IRQS , &fsl_msi_host_ops, msi);if (msi->irqhost ==NULL ) {dev_err (&dev->dev,"No memory for MSI irqhost\n" );
@@ -420,8 +420,6 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev) msi->feature = features->fsl_pic_ip; - msi->irqhost->host_data = msi; -/* * Remember the phandle, so that we can match with any PCI nodes * that have an "fsl,msi" property.
arch/powerpc/sysdev/i8259.c +1 -2
@@ -263,8 +263,7 @@ void i8259_init(struct device_node *node, unsigned long intack_addr)raw_spin_unlock_irqrestore (&i8259_lock, flags);/* create a legacy host */ - i8259_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LEGACY , -0 , &i8259_host_ops,0 ); + i8259_host =irq_domain_add_legacy (node, &i8259_host_ops,NULL );if (i8259_host ==NULL ) {printk (KERN_ERR "i8259: failed to allocate irq host !\n" );return ;
arch/powerpc/sysdev/ipic.c +2 -5
@@ -728,9 +728,8 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags)if (ipic ==NULL )return NULL ; - ipic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR , -NR_IPIC_INTS , - &ipic_host_ops,0 ); + ipic->irqhost =irq_domain_add_linear (node,NR_IPIC_INTS , + &ipic_host_ops, ipic);if (ipic->irqhost ==NULL ) {kfree (ipic);return NULL ;
@@ -738,8 +737,6 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags) ipic->regs =ioremap (res.start,resource_size (&res)); - ipic->irqhost->host_data = ipic; -/* init hw */ ipic_write (ipic->regs,IPIC_SICNR ,0x0 );
arch/powerpc/sysdev/mpc8xx_pic.c +1 -2
@@ -171,8 +171,7 @@ int mpc8xx_pic_init(void) goto out; } - mpc8xx_pic_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , -64 , &mpc8xx_pic_host_ops,64 ); + mpc8xx_pic_host =irq_domain_add_linear (np,64 , &mpc8xx_pic_host_ops,NULL );if (mpc8xx_pic_host ==NULL ) {printk (KERN_ERR "MPC8xx PIC: failed to allocate irq host!\n" ); ret = -ENOMEM ;
arch/powerpc/sysdev/mpic.c +2 -5
@@ -1345,10 +1345,9 @@ struct mpic * __init mpic_alloc(struct device_node *node, mpic->isu_shift =1 +__ilog2 (mpic->isu_size -1 ); mpic->isu_mask = (1 << mpic->isu_shift) -1 ; - mpic->irqhost =irq_alloc_host (mpic->node,IRQ_DOMAIN_MAP_LINEAR , + mpic->irqhost =irq_domain_add_linear (mpic->node, isu_size ? isu_size : mpic->num_sources, - &mpic_host_ops, - flags &MPIC_LARGE_VECTORS ?2048 :256 ); + &mpic_host_ops, mpic);/* * FIXME: The code leaks the MPIC object and mappings here; this
@@ -1357,8 +1356,6 @@ struct mpic * __init mpic_alloc(struct device_node *node,if (mpic->irqhost ==NULL )return NULL ; - mpic->irqhost->host_data = mpic; -/* Display version */ switch (greg_feature &MPIC_GREG_FEATURE_VERSION_MASK ) {case 1 :
arch/powerpc/sysdev/mv64x60_pic.c +2 -3
@@ -250,9 +250,8 @@ void __init mv64x60_init_irq(void) paddr =of_translate_address (np, reg); mv64x60_irq_reg_base =ioremap (paddr, reg[1 ]); - mv64x60_irq_host =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR , - MV64x60_NUM_IRQS, - &mv64x60_host_ops, MV64x60_NUM_IRQS); + mv64x60_irq_host =irq_domain_add_linear (np, MV64x60_NUM_IRQS, + &mv64x60_host_ops,NULL );spin_lock_irqsave (&mv64x60_lock, flags); out_le32(mv64x60_gpp_reg_base + MV64x60_GPP_INTR_MASK,
arch/powerpc/sysdev/qe_lib/qe_ic.c +2 -3
@@ -339,8 +339,8 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags,if (qe_ic ==NULL )return ; - qe_ic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR , -NR_QE_IC_INTS , &qe_ic_host_ops,0 ); + qe_ic->irqhost =irq_domain_add_linear (node,NR_QE_IC_INTS , + &qe_ic_host_ops, qe_ic);if (qe_ic->irqhost ==NULL ) {kfree (qe_ic);return ;
@@ -348,7 +348,6 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags, qe_ic->regs =ioremap (res.start,resource_size (&res)); - qe_ic->irqhost->host_data = qe_ic; qe_ic->hc_irq = qe_ic_irq_chip; qe_ic->virq_high =irq_of_parse_and_map (node,0 );
arch/powerpc/sysdev/tsi108_pci.c +1 -2
@@ -419,8 +419,7 @@ void __init tsi108_pci_int_init(struct device_node *node) {DBG ("Tsi108_pci_int_init: initializing PCI interrupts\n" ); - pci_irq_host =irq_alloc_host (node,IRQ_DOMAIN_MAP_LEGACY , -0 , &pci_irq_domain_ops,0 ); + pci_irq_host =irq_domain_add_legacy (node, &pci_irq_domain_ops,NULL );if (pci_irq_host ==NULL ) {printk (KERN_ERR "pci_irq_host: failed to allocate irq domain!\n" );return ;
arch/powerpc/sysdev/uic.c +2 -4
@@ -270,13 +270,11 @@ static struct uic * __init uic_init_one(struct device_node *node) } uic->dcrbase = *dcrreg; - uic->irqhost =irq_alloc_host (node,IRQ_DOMAIN_MAP_LINEAR , -NR_UIC_INTS , &uic_host_ops,-1 ); + uic->irqhost =irq_domain_add_linear (node,NR_UIC_INTS , &uic_host_ops, + uic);if (! uic->irqhost)return NULL ;/* FIXME: panic? */ - uic->irqhost->host_data = uic; -/* Start with all interrupts disabled, level and non-critical */ mtdcr (uic->dcrbase +UIC_ER ,0 );mtdcr (uic->dcrbase +UIC_CR ,0 );
arch/powerpc/sysdev/xics/xics-common.c +1 -2
@@ -374,8 +374,7 @@ static struct irq_domain_ops xics_host_ops = {static void __init xics_init_host (void ) { - xics_host =irq_alloc_host (NULL ,IRQ_DOMAIN_MAP_TREE ,0 , &xics_host_ops, -XICS_IRQ_SPURIOUS ); + xics_host =irq_domain_add_tree (NULL , &xics_host_ops,NULL );BUG_ON (xics_host ==NULL );irq_set_default_host (xics_host); }
arch/powerpc/sysdev/xilinx_intc.c +2 -3
@@ -201,11 +201,10 @@ xilinx_intc_init(struct device_node *np)out_be32 (regs +XINTC_MER ,0x3UL );/* Turn on the Master Enable. */ /* Allocate and initialize an irq_domain structure. */ - irq =irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,XILINX_INTC_MAXIRQS , - &xilinx_intc_ops,-1 ); + irq =irq_domain_add_linear (np,XILINX_INTC_MAXIRQS , &xilinx_intc_ops, + regs);if (!irq)panic (__FILE__": Cannot allocate IRQ host\n" ); - irq->host_data = regs;return irq; }
drivers/gpio/gpio-mpc8xxx.c +2 -5
@@ -364,9 +364,8 @@ static void __init mpc8xxx_add_controller(struct device_node *np)if (hwirq ==NO_IRQ ) goto skip_irq; - mpc8xxx_gc->irq = -irq_alloc_host (np,IRQ_DOMAIN_MAP_LINEAR ,MPC8XXX_GPIO_PINS , - &mpc8xxx_gpio_irq_ops,MPC8XXX_GPIO_PINS ); + mpc8xxx_gc->irq =irq_domain_add_linear (np,MPC8XXX_GPIO_PINS , + &mpc8xxx_gpio_irq_ops, mpc8xxx_gc);if (!mpc8xxx_gc->irq) goto skip_irq;
@@ -374,8 +373,6 @@ static void __init mpc8xxx_add_controller(struct device_node *np)if (id) mpc8xxx_gc->of_dev_id_data = id->data; - mpc8xxx_gc->irq->host_data = mpc8xxx_gc; -/* ack and mask all irqs */ out_be32 (mm_gc->regs +GPIO_IER ,0xffffffff );out_be32 (mm_gc->regs +GPIO_IMR ,0 );
include/linux/irqdomain.h +15 -9
@@ -95,10 +95,6 @@ struct irq_domain {/* type of reverse mapping_technique */ unsigned int revmap_type; -#define IRQ_DOMAIN_MAP_LEGACY 0/* legacy 8259, gets irqs 1..15 */ -#define IRQ_DOMAIN_MAP_NOMAP 1/* no fast reverse mapping */ -#define IRQ_DOMAIN_MAP_LINEAR 2/* linear map of interrupts */ -#define IRQ_DOMAIN_MAP_TREE 3/* radix tree */ union { struct { unsigned int size;
@@ -120,11 +116,21 @@ struct irq_domain {#ifdef CONFIG_IRQ_DOMAIN #ifdef CONFIG_PPC -extern struct irq_domain *irq_alloc_host (struct device_node *of_node, -unsigned int revmap_type, -unsigned int revmap_arg, -struct irq_domain_ops *ops, -irq_hw_number_t inval_irq); +struct irq_domain *irq_domain_add_legacy (struct device_node *of_node, +struct irq_domain_ops *ops, +void *host_data); +struct irq_domain *irq_domain_add_linear (struct device_node *of_node, +unsigned int size, +struct irq_domain_ops *ops, +void *host_data); +struct irq_domain *irq_domain_add_nomap (struct device_node *of_node, +struct irq_domain_ops *ops, +void *host_data); +struct irq_domain *irq_domain_add_tree (struct device_node *of_node, +struct irq_domain_ops *ops, +void *host_data); + +extern struct irq_domain *irq_find_host (struct device_node *node);extern void irq_set_default_host (struct irq_domain *host);extern void irq_set_virq_count (unsigned int count);
kernel/irq/irqdomain.c +130 -70
245 lines not on this page · raw message
Signature · 1 line
1.7.9
PATCH v5 12/27 irq_domain: Add support for base irq and hwirq in legacy mappings
In reply to Grant LikelyAdd support for a legacy mapping where irq = (hwirq - first_hwirq + first_irq) so that a controller driver can allocate a fixed range of irq_descs and use a simple calculation to translate back and forth between linux and hw irq numbers. This is needed to use an irq_domain with many of the ARM interrupt controller drivers that manage their own irq_desc allocations. Ultimately the goal is to migrate those drivers to use the linear revmap, but doing it this way allows each driver to be converted separately which makes the migration path easier.
This patch generalizes the IRQ_DOMAIN_MAP_LEGACY method to use (first_irq-first_hwirq) as the offset between hwirq and linux irq number, and adds checks to make sure that the hwirq number does not exceed range assigned to the controller.
--- arch/powerpc/include/asm/irq.h | 3 - arch/powerpc/sysdev/i8259.c | 2 +- arch/powerpc/sysdev/tsi108_pci.c | 2 +- include/linux/irqdomain.h | 20 ++++++++- kernel/irq/irqdomain.c | 96 +++++++++++++++++++++++++------------- 5 files changed, 85 insertions(+), 38 deletions(-)
arch/powerpc/include/asm/irq.h +0 -3
@@ -36,9 +36,6 @@ extern atomic_t ppc_n_lost_interrupts;/* Total number of virq in the platform */ #define NR_IRQS CONFIG_NR_IRQS -/* Number of irqs reserved for the legacy controller */ -#define NUM_ISA_INTERRUPTS 16 -/* Same thing, used by the generic IRQ code */ #define NR_IRQS_LEGACY NUM_ISA_INTERRUPTS
arch/powerpc/sysdev/i8259.c +1 -1
@@ -263,7 +263,7 @@ void i8259_init(struct device_node *node, unsigned long intack_addr)raw_spin_unlock_irqrestore (&i8259_lock, flags);/* create a legacy host */ - i8259_host =irq_domain_add_legacy (node, &i8259_host_ops,NULL ); + i8259_host =irq_domain_add_legacy_isa (node, &i8259_host_ops,NULL );if (i8259_host ==NULL ) {printk (KERN_ERR "i8259: failed to allocate irq host !\n" );return ;
arch/powerpc/sysdev/tsi108_pci.c +1 -1
@@ -419,7 +419,7 @@ void __init tsi108_pci_int_init(struct device_node *node) {DBG ("Tsi108_pci_int_init: initializing PCI interrupts\n" ); - pci_irq_host =irq_domain_add_legacy (node, &pci_irq_domain_ops,NULL ); + pci_irq_host =irq_domain_add_legacy_isa (node, &pci_irq_domain_ops,NULL );if (pci_irq_host ==NULL ) {printk (KERN_ERR "pci_irq_host: failed to allocate irq domain!\n" );return ;
include/linux/irqdomain.h +19 -1
@@ -39,6 +39,9 @@ struct device_node;struct irq_domain ;struct of_device_id ; +/* Number of irqs reserved for a legacy isa controller */ +#define NUM_ISA_INTERRUPTS 16 +/* This type is the placeholder for a hardware interrupt number. It has to * be big enough to enclose whatever representation is used by a given * platform.
@@ -98,6 +101,11 @@ struct irq_domain {union {struct {unsigned int size; +unsigned int first_irq; +irq_hw_number_t first_hwirq; + } legacy; +struct { +unsigned int size;unsigned int *revmap; } linear;struct radix_tree_root tree;
@@ -117,6 +125,9 @@ struct irq_domain {#ifdef CONFIG_IRQ_DOMAIN #ifdef CONFIG_PPC struct irq_domain *irq_domain_add_legacy (struct device_node *of_node, +unsigned int size, +unsigned int first_irq, +irq_hw_number_t first_hwirq,struct irq_domain_ops *ops,void *host_data); struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
@@ -130,11 +141,18 @@ struct irq_domain *irq_domain_add_tree(struct device_node *of_node,struct irq_domain_ops *ops, void *host_data); -extern struct irq_domain *irq_find_host (struct device_node *node);extern void irq_set_default_host (struct irq_domain *host);extern void irq_set_virq_count (unsigned int count); +static inline struct irq_domain *irq_domain_add_legacy_isa ( +struct device_node *of_node, +struct irq_domain_ops *ops, +void *host_data) +{ +return irq_domain_add_legacy (of_node,NUM_ISA_INTERRUPTS ,0 ,0 , ops, + host_data); +}extern unsigned int irq_create_mapping (struct irq_domain *host,irq_hw_number_t hwirq);
kernel/irq/irqdomain.c +64 -32
155 lines not on this page · raw message
Signature · 1 line
1.7.9
PATCH v5 13/27 of/address: add empty static inlines for !CONFIG_OF
In reply to Grant LikelyAs the title says, this patch adds empty implementations for the address translation functions so that they can be used when CONFIG_OF is disabled.
--- include/linux/of_address.h | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-)
include/linux/of_address.h +29 -4
@@ -4,6 +4,7 @@#include <linux/errno.h> #include <linux/of.h> +#ifdef CONFIG_OF_ADDRESS extern u64 of_translate_address (struct device_node *np,const __be32 *addr);extern int of_address_to_resource (struct device_node *dev,int index,struct resource *r);
@@ -25,12 +26,37 @@ static inline unsigned long pci_address_to_pio(phys_addr_t addr) { return -1; }#define pci_address_to_pio pci_address_to_pio#endif -#ifdef CONFIG_PCI +#else /* CONFIG_OF_ADDRESS */ +static inline int of_address_to_resource (struct device_node *dev,int index, +struct resource *r) +{ +return -EINVAL ; +} +static inline struct device_node *of_find_matching_node_by_address ( +struct device_node *from, +const struct of_device_id *matches, +u64 base_address) +{ +return NULL ; +} +static inline void __iomem *of_iomap (struct device_node *device,int index) +{ +return NULL ; +} +static inline const u32 *of_get_address (struct device_node *dev,int index, +u64 *size,unsigned int *flags) +{ +return NULL ; +} +#endif /* CONFIG_OF_ADDRESS */ + + +#if defined(CONFIG_OF_ADDRESS ) && defined(CONFIG_PCI )extern const __be32 *of_get_pci_address (struct device_node *dev,int bar_no,u64 *size,unsigned int *flags);extern int of_pci_address_to_resource (struct device_node *dev,int bar,struct resource *r); -#else /* CONFIG_PCI */ +#else /* CONFIG_OF_ADDRESS && CONFIG_PCI */ static inline int of_pci_address_to_resource (struct device_node *dev,int bar,struct resource *r) {
@@ -42,8 +68,7 @@ static inline const __be32 *of_get_pci_address(struct device_node *dev, {return NULL ; } -#endif /* CONFIG_PCI */ - +#endif /* CONFIG_OF_ADDRESS && CONFIG_PCI */ #endif /* __OF_ADDRESS_H */
Signature · 1 line
1.7.9
PATCH v5 14/27 mfd: twl-core.c: Fix the number of interrupts managed by twl4030
In reply to Grant LikelyFrom: Benoit Cousson <[email protected]>
TWL4030 does handle 3 different interrupts ranges: 8 for the core, 8 for the power events and 18 for the GPIOs.
Change the total number of interrupts managed by TWL4030 from 8 to 34.
--- drivers/mfd/twl-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/twl-core.c +1 -1
@@ -149,7 +149,7 @@#define TWL_MODULE_LAST TWL4030_MODULE_LAST -#define TWL4030_NR_IRQS 8 +#define TWL4030_NR_IRQS 34/* core:8, power:8, gpio: 18 */ #define TWL6030_NR_IRQS 20/* Base Address defns for twl4030_map[] */
Signature · 1 line
1.7.9
PATCH v5 15/27 irq_domain: Remove 'new' irq_domain in favour of the ppc one
In reply to Grant LikelyThis patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure for all irq_domain users. The powerpc infrastructure includes support for complex mappings between Linux and hardware irq numbers, and can manage allocation of irq_descs.
This patch also converts the few users of irq_domain_add()/irq_domain_del() to call irq_domain_add_legacy() instead.
v3: Fix bug that set up too many irqs in translation range.
v2: Fix removal of irq_alloc_descs() call in gic driver
--- arch/arm/common/gic.c | 85 ++++++++----------- arch/arm/common/vic.c | 16 +--- arch/arm/include/asm/hardware/gic.h | 4 +- arch/arm/include/asm/hardware/vic.h | 2 + arch/arm/mach-exynos/common.c | 2 +- arch/arm/mach-versatile/core.c | 7 +- drivers/mfd/twl-core.c | 14 +--- include/linux/irqdomain.h | 45 +--------- kernel/irq/irqdomain.c | 159 +++-------------------------------- 9 files changed, 71 insertions(+), 263 deletions(-)
arch/arm/common/gic.c +37 -48
@@ -51,7 +51,6 @@ union gic_base { };struct gic_chip_data { -unsigned int irq_offset;union gic_base dist_base;union gic_base cpu_base;#ifdef CONFIG_CPU_PM
@@ -61,9 +60,7 @@ struct gic_chip_data {u32 __percpu *saved_ppi_enable;u32 __percpu *saved_ppi_conf;#endif -#ifdef CONFIG_IRQ_DOMAIN -struct irq_domain domain; -#endif +struct irq_domain *domain;unsigned int gic_irqs;#ifdef CONFIG_GIC_NON_BANKED void __iomem *(*get_base)(union gic_base *);
@@ -282,7 +279,7 @@ asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs) irqnr = irqstat & ~0x1c00 ;if (likely (irqnr >15 && irqnr <1021 )) { - irqnr =irq_domain_to_irq (&gic->domain, irqnr); + irqnr =irq_find_mapping (gic->domain, irqnr);handle_IRQ (irqnr, regs);continue ; }
@@ -314,8 +311,8 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)if (gic_irq ==1023 ) goto out; - cascade_irq =irq_domain_to_irq (&chip_data->domain, gic_irq); -if (unlikely (gic_irq <32 || gic_irq >1020 || cascade_irq >=NR_IRQS )) + cascade_irq =irq_find_mapping (chip_data->domain, gic_irq); +if (unlikely (gic_irq <32 || gic_irq >1020 ))do_bad_IRQ (cascade_irq, desc);else generic_handle_irq (cascade_irq);
@@ -348,10 +345,9 @@ void __init gic_cascade_irq(unsigned int gic_nr, unsigned int irq)static void __init gic_dist_init (struct gic_chip_data *gic) { -unsigned int i, irq; +unsigned int i;u32 cpumask;unsigned int gic_irqs = gic->gic_irqs; -struct irq_domain *domain = &gic->domain;void __iomem *base =gic_data_dist_base (gic);u32 cpu =cpu_logical_map (smp_processor_id ());
@@ -386,23 +382,6 @@ static void __init gic_dist_init(struct gic_chip_data *gic)for (i =32 ; i < gic_irqs; i +=32 )writel_relaxed (0xffffffff , base +GIC_DIST_ENABLE_CLEAR + i *4 /32 ); -/* -* Setup the Linux IRQ subsystem. -*/ -irq_domain_for_each_irq (domain, i, irq) { -if (i <32 ) { -irq_set_percpu_devid (irq); -irq_set_chip_and_handler (irq, &gic_chip, - handle_percpu_devid_irq); -set_irq_flags (irq,IRQF_VALID |IRQF_NOAUTOEN ); - }else { -irq_set_chip_and_handler (irq, &gic_chip, - handle_fasteoi_irq); -set_irq_flags (irq,IRQF_VALID |IRQF_PROBE ); - } -irq_set_chip_data (irq, gic); - } -writel_relaxed (1 , base +GIC_DIST_CTRL ); }
@@ -618,7 +597,23 @@ static void __init gic_pm_init(struct gic_chip_data *gic) }#endif -#ifdef CONFIG_OF +static int gic_irq_domain_map (struct irq_domain *d,unsigned int irq, +irq_hw_number_t hw) +{ +if (hw <32 ) { +irq_set_percpu_devid (irq); +irq_set_chip_and_handler (irq, &gic_chip, + handle_percpu_devid_irq); +set_irq_flags (irq,IRQF_VALID |IRQF_NOAUTOEN ); + }else { +irq_set_chip_and_handler (irq, &gic_chip, + handle_fasteoi_irq); +set_irq_flags (irq,IRQF_VALID |IRQF_PROBE ); + } +irq_set_chip_data (irq, d->host_data); +return 0 ; +} + static int gic_irq_domain_xlate(struct irq_domain *d, struct device_node *controller, const u32 *intspec, unsigned int intsize,
@@ -639,26 +634,23 @@ static int gic_irq_domain_xlate(struct irq_domain *d, *out_type = intspec[2 ] &IRQ_TYPE_SENSE_MASK ;return 0 ; } -#endif struct irq_domain_ops gic_irq_domain_ops = { -#ifdef CONFIG_OF + .map = gic_irq_domain_map, .xlate = gic_irq_domain_xlate, -#endif };void __init gic_init_bases (unsigned int gic_nr,int irq_start,void __iomem *dist_base,void __iomem *cpu_base, -u32 percpu_offset) +u32 percpu_offset,struct device_node *node) { +irq_hw_number_t hwirq_base;struct gic_chip_data *gic; -struct irq_domain *domain; -int gic_irqs; +int gic_irqs, irq_base;BUG_ON (gic_nr >=MAX_GIC_NR ); gic = &gic_data[gic_nr]; - domain = &gic->domain;#ifdef CONFIG_GIC_NON_BANKED if (percpu_offset) {/* Frankein-GIC without banked registers... */ unsigned int cpu;
@@ -694,10 +686,10 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start,* For primary GICs, skip over SGIs. * For secondary GICs, skip over PPIs, too. */ - domain->hwirq_base =32 ; + hwirq_base =32 ;if (gic_nr ==0 ) {if ((irq_start &31 ) >0 ) { - domain->hwirq_base =16 ; + hwirq_base =16 ;if (irq_start !=-1 ) irq_start = (irq_start & ~31 ) +16 ; }
@@ -713,17 +705,17 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start, gic_irqs =1020 ; gic->gic_irqs = gic_irqs; - domain->nr_irq = gic_irqs - domain->hwirq_base; - domain->irq_base =irq_alloc_descs (irq_start,16 , domain->nr_irq, -numa_node_id ()); -if (IS_ERR_VALUE (domain->irq_base)) { + gic_irqs -= hwirq_base;/* calculate # of irqs to allocate */ + irq_base =irq_alloc_descs (irq_start,16 , gic_irqs,numa_node_id ()); +if (IS_ERR_VALUE (irq_base)) {WARN (1 ,"Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n" , irq_start); - domain->irq_base = irq_start; + irq_base = irq_start; } - domain->host_data = gic; - domain->ops = &gic_irq_domain_ops; -irq_domain_add (domain); + gic->domain =irq_domain_add_legacy (node, gic_irqs, irq_base, + hwirq_base, &gic_irq_domain_ops, gic); +if (WARN_ON (!gic->domain)) +return ; gic_chip.flags |= gic_arch_extn.flags;gic_dist_init (gic);
@@ -768,7 +760,6 @@ int __init gic_of_init(struct device_node *node, struct device_node *parent)void __iomem *dist_base;u32 percpu_offset;int irq; -struct irq_domain *domain = &gic_data[gic_cnt].domain;if (WARN_ON (!node))return -ENODEV ;
@@ -782,9 +773,7 @@ int __init gic_of_init(struct device_node *node, struct device_node *parent)if (of_property_read_u32 (node,"cpu-offset" , &percpu_offset)) percpu_offset =0 ; - domain->of_node =of_node_get (node); - -gic_init_bases (gic_cnt,-1 , dist_base, cpu_base, percpu_offset); +gic_init_bases (gic_cnt,-1 , dist_base, cpu_base, percpu_offset, node);if (parent) { irq =irq_of_parse_and_map (node,0 );
arch/arm/common/vic.c +5 -11
@@ -56,7 +56,7 @@ struct vic_device {u32 int_enable;u32 soft_int;u32 protect; -struct irq_domain domain; +struct irq_domain *domain; };/* we cannot allocate memory when VICs are initially registered */
@@ -192,14 +192,8 @@ static void __init vic_register(void __iomem *base, unsigned int irq, v->resume_sources = resume_sources; v->irq = irq; vic_id++; - - v->domain.irq_base = irq; - v->domain.nr_irq =32 ; -#ifdef CONFIG_OF_IRQ - v->domain.of_node =of_node_get (node); -#endif /* CONFIG_OF */ - v->domain.ops = &irq_domain_simple_ops; -irq_domain_add (&v->domain); + v->domain =irq_domain_add_legacy (node,32 , irq,0 , + &irq_domain_simple_ops, v); }static void vic_ack_irq (struct irq_data *d)
@@ -348,7 +342,7 @@ static void __init vic_init_st(void __iomem *base, unsigned int irq_start,vic_register (base, irq_start,0 , node); } -static void __init __vic_init (void __iomem *base,unsigned int irq_start, +void __init __vic_init (void __iomem *base,unsigned int irq_start,u32 vic_sources,u32 resume_sources,struct device_node *node) {
@@ -444,7 +438,7 @@ static int handle_one_vic(struct vic_device *vic, struct pt_regs *regs) stat =readl_relaxed (vic->base +VIC_IRQ_STATUS );while (stat) { irq =ffs (stat) -1 ; -handle_IRQ (irq_domain_to_irq (&vic->domain, irq), regs); +handle_IRQ (irq_find_mapping (vic->domain, irq), regs); stat &= ~(1 << irq); handled =1 ; }
arch/arm/include/asm/hardware/gic.h +2 -2
@@ -39,7 +39,7 @@ struct device_node;extern struct irq_chip gic_arch_extn;void gic_init_bases (unsigned int ,int ,void __iomem *,void __iomem *, -u32 offset); +u32 offset,struct device_node *);int gic_of_init (struct device_node *node,struct device_node *parent);void gic_secondary_init (unsigned int );void gic_handle_irq (struct pt_regs *regs);
@@ -49,7 +49,7 @@ void gic_raise_softirq(const struct cpumask *mask, unsigned int irq);static inline void gic_init (unsigned int nr,int start,void __iomem *dist ,void __iomem *cpu) { -gic_init_bases (nr, start, dist, cpu,0 ); +gic_init_bases (nr, start, dist, cpu,0 ,NULL ); }#endif
arch/arm/include/asm/hardware/vic.h +2 -0
@@ -47,6 +47,8 @@struct device_node ;struct pt_regs ; +void __vic_init (void __iomem *base,unsigned int irq_start,u32 vic_sources, +u32 resume_sources,struct device_node *node);void vic_init (void __iomem *base,unsigned int irq_start,u32 vic_sources,u32 resume_sources);int vic_of_init (struct device_node *node,struct device_node *parent);void vic_handle_irq (struct pt_regs *regs);
arch/arm/mach-exynos/common.c +1 -1
@@ -402,7 +402,7 @@ void __init exynos4_init_irq(void) gic_bank_offset =soc_is_exynos4412 () ?0x4000 :0x8000 ;if (!of_have_populated_dt ()) -gic_init_bases (0 ,IRQ_PPI (0 ),S5P_VA_GIC_DIST ,S5P_VA_GIC_CPU , gic_bank_offset); +gic_init_bases (0 ,IRQ_PPI (0 ),S5P_VA_GIC_DIST ,S5P_VA_GIC_CPU , gic_bank_offset,NULL );#ifdef CONFIG_OF elseof_irq_init (exynos4_dt_irq_match );
arch/arm/mach-versatile/core.c +5 -2
@@ -98,8 +98,11 @@ static const struct of_device_id sic_of_match[] __initconst = {void __init versatile_init_irq (void ) { -vic_init (VA_VIC_BASE ,IRQ_VIC_START , ~0 ,0 ); -irq_domain_generate_simple (vic_of_match,VERSATILE_VIC_BASE ,IRQ_VIC_START ); +struct device_node *np; + + np =of_find_matching_node_by_address (NULL , vic_of_match, +VERSATILE_VIC_BASE ); +__vic_init (VA_VIC_BASE ,IRQ_VIC_START , ~0 ,0 , np);writel (~0 ,VA_SIC_BASE +SIC_IRQ_ENABLE_CLEAR );
drivers/mfd/twl-core.c +2 -12
@@ -263,10 +263,6 @@ struct twl_client {static struct twl_client twl_modules[TWL_NUM_SLAVES ]; -#ifdef CONFIG_IRQ_DOMAIN -static struct irq_domain domain; -#endif -/* mapping the module id to slave id and base address */ struct twl_mapping {unsigned char sid;/* Slave ID */
@@ -1227,14 +1223,8 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) pdata->irq_base = status; pdata->irq_end = pdata->irq_base + nr_irqs; - -#ifdef CONFIG_IRQ_DOMAIN - domain.irq_base = pdata->irq_base; - domain.nr_irq = nr_irqs; - domain.of_node =of_node_get (node); - domain.ops = &irq_domain_simple_ops; -irq_domain_add (&domain); -#endif +irq_domain_add_legacy (node, nr_irqs, pdata->irq_base,0 , + &irq_domain_simple_ops,NULL );if (i2c_check_functionality (client->adapter,I2C_FUNC_I2C ) ==0 ) {dev_dbg (&client->dev,"can't talk I2C?\n" );
include/linux/irqdomain.h +4 -41
87 lines not on this page · raw message
kernel/irq/irqdomain.c +13 -146
190 lines not on this page · raw message
Signature · 1 line
1.7.9
PATCH v5 16/27 irq_domain: Remove irq_domain_add_simple()
In reply to Grant Likelyirq_domain_add_simple() was a stop-gap measure until complete irq_domain support was complete. This patch removes the irq_domain_add_simple() interface.
This patch also drops the explicit irq_domain initialization performed by the mach-versatile code because the versatile interrupt controller already has irq_domain support built into it. This was a bug that was hanging around quietly for a while, but with the full irq_domain which actually verifies that irq_domain ranges are available it would cause the registration to fail and the system wouldn't boot.
v4: Fixed number of irqs in mx5 gpio code
v2: Updated to pass in host_data pointer on irq_domain allocation.
--- arch/arm/mach-imx/imx51-dt.c | 4 ++-- arch/arm/mach-imx/imx53-dt.c | 4 ++-- arch/arm/mach-imx/mach-imx6q.c | 3 ++- arch/arm/mach-msm/board-msm8x60.c | 8 ++------ arch/arm/mach-omap2/board-generic.c | 2 +- arch/arm/mach-prima2/irq.c | 2 +- include/linux/irqdomain.h | 1 - kernel/irq/irqdomain.c | 10 ++-------- 8 files changed, 12 insertions(+), 22 deletions(-)
arch/arm/mach-imx/imx51-dt.c +2 -2
@@ -47,7 +47,7 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = {static int __init imx51_tzic_add_irq_domain (struct device_node *np,struct device_node *interrupt_parent) { -irq_domain_add_simple (np,0 ); +irq_domain_add_legacy (np,128 ,0 ,0 , &irq_domain_simple_ops,NULL );return 0 ; }
@@ -57,7 +57,7 @@ static int __init imx51_gpio_add_irq_domain(struct device_node *np,static int gpio_irq_base =MXC_GPIO_IRQ_START +ARCH_NR_GPIOS ; gpio_irq_base -=32 ; -irq_domain_add_simple (np, gpio_irq_base); +irq_domain_add_legacy (np,32 , gpio_irq_base,0 , &irq_domain_simple_ops,NULL );return 0 ; }
arch/arm/mach-imx/imx53-dt.c +2 -2
@@ -51,7 +51,7 @@ static const struct of_dev_auxdata imx53_auxdata_lookup[] __initconst = {static int __init imx53_tzic_add_irq_domain (struct device_node *np,struct device_node *interrupt_parent) { -irq_domain_add_simple (np,0 ); +irq_domain_add_legacy (np,128 ,0 ,0 , &irq_domain_simple_ops,NULL );return 0 ; }
@@ -61,7 +61,7 @@ static int __init imx53_gpio_add_irq_domain(struct device_node *np,static int gpio_irq_base =MXC_GPIO_IRQ_START +ARCH_NR_GPIOS ; gpio_irq_base -=32 ; -irq_domain_add_simple (np, gpio_irq_base); +irq_domain_add_legacy (np,32 , gpio_irq_base,0 , &irq_domain_simple_ops,NULL );return 0 ; }
arch/arm/mach-imx/mach-imx6q.c +2 -1
@@ -97,7 +97,8 @@ static int __init imx6q_gpio_add_irq_domain(struct device_node *np,static int gpio_irq_base =MXC_GPIO_IRQ_START +ARCH_NR_GPIOS ; gpio_irq_base -=32 ; -irq_domain_add_simple (np, gpio_irq_base); +irq_domain_add_legacy (np,32 , gpio_irq_base,0 , &irq_domain_simple_ops, +NULL );return 0 ; }
arch/arm/mach-msm/board-msm8x60.c +2 -6
@@ -80,12 +80,8 @@ static struct of_device_id msm_dt_gic_match[] __initdata = {static void __init msm8x60_dt_init (void ) { -struct device_node *node; - - node =of_find_matching_node_by_address (NULL , msm_dt_gic_match, -MSM8X60_QGIC_DIST_PHYS ); -if (node) -irq_domain_add_simple (node,GIC_SPI_START ); +irq_domain_generate_simple (msm_dt_gic_match,MSM8X60_QGIC_DIST_PHYS , +GIC_SPI_START );if (of_machine_is_compatible ("qcom,msm8660-surf" )) {printk (KERN_INFO "Init surf UART registers\n" );
arch/arm/mach-omap2/board-generic.c +1 -1
@@ -67,7 +67,7 @@ static void __init omap_generic_init(void) {struct device_node *node =of_find_matching_node (NULL , intc_match);if (node) -irq_domain_add_simple (node,0 ); +irq_domain_add_legacy (node,32 ,0 ,0 , &irq_domain_simple_ops,NULL );omap_sdrc_init (NULL ,NULL );
arch/arm/mach-prima2/irq.c +1 -1
@@ -68,7 +68,7 @@ void __init sirfsoc_of_irq_init(void)if (!sirfsoc_intc_base)panic ("unable to map intc cpu registers\n" ); -irq_domain_add_simple (np,0 ); +irq_domain_add_legacy (np,32 ,0 ,0 , &irq_domain_simple_ops,NULL );of_node_put (np);
include/linux/irqdomain.h +0 -1
@@ -164,7 +164,6 @@ extern unsigned int irq_linear_revmap(struct irq_domain *host,extern struct irq_domain_ops irq_domain_simple_ops;#if defined(CONFIG_OF_IRQ ) -extern void irq_domain_add_simple (struct device_node *controller,int irq_base);extern void irq_domain_generate_simple (const struct of_device_id *match,u64 phys_base,unsigned int irq_start);#else /* CONFIG_OF_IRQ */
kernel/irq/irqdomain.c +2 -8
@@ -722,13 +722,6 @@ struct irq_domain_ops irq_domain_simple_ops = {EXPORT_SYMBOL_GPL (irq_domain_simple_ops);#ifdef CONFIG_OF_IRQ -void irq_domain_add_simple (struct device_node *controller,int irq_base) -{ -irq_domain_add_legacy (controller,32 , irq_base,0 , - &irq_domain_simple_ops,NULL ); -} -EXPORT_SYMBOL_GPL (irq_domain_add_simple); -void irq_domain_generate_simple (const struct of_device_id *match,u64 phys_base,unsigned int irq_start) {
@@ -737,7 +730,8 @@ void irq_domain_generate_simple(const struct of_device_id *match, (unsigned long long) phys_base, (int) irq_start); node =of_find_matching_node_by_address (NULL , match, phys_base);if (node) - irq_domain_add_simple(node, irq_start); +irq_domain_add_legacy (node,32 , irq_start,0 , + &irq_domain_simple_ops, NULL); }EXPORT_SYMBOL_GPL (irq_domain_generate_simple);#endif
Signature · 1 line
1.7.9
PATCH v5 17/27 irq_domain: Create common xlate functions that device drivers can use
In reply to Grant LikelyRather than having each interrupt controller driver creating its own barely unique .xlate function for irq_domain, create a library of translators which any driver can use directly.
v5: - Remove irq_domain_xlate_pci(). It was incorrect.
--- include/linux/irqdomain.h | 12 ++++++++ kernel/irq/irqdomain.c | 65 ++++++++++++++++++++++++++++++++++++++------- 2 files changed, 67 insertions(+), 10 deletions(-)
include/linux/irqdomain.h +12 -0
@@ -163,6 +163,18 @@ extern unsigned int irq_linear_revmap(struct irq_domain *host, irq_hw_number_t hwirq);extern struct irq_domain_ops irq_domain_simple_ops; + +/* stock xlate functions */ +int irq_domain_xlate_onecell (struct irq_domain *d,struct device_node *ctrlr, +const u32 *intspec,unsigned int intsize, +irq_hw_number_t *out_hwirq,unsigned int *out_type); +int irq_domain_xlate_twocell (struct irq_domain *d,struct device_node *ctrlr, +const u32 *intspec,unsigned int intsize, +irq_hw_number_t *out_hwirq,unsigned int *out_type); +int irq_domain_xlate_onetwocell (struct irq_domain *d,struct device_node *ctrlr, +const u32 *intspec,unsigned int intsize, +irq_hw_number_t *out_hwirq,unsigned int *out_type); +#if defined(CONFIG_OF_IRQ )extern void irq_domain_generate_simple (const struct of_device_id *match,u64 phys_base,unsigned int irq_start);
kernel/irq/irqdomain.c +55 -10
80 lines not on this page · raw message
Signature · 1 line
1.7.9
PATCH v5 18/27 irq_domain: constify irq_domain_ops
In reply to Grant LikelyMake irq_domain_ops pointer a constant to make it safer for multiple instances to share the same ops pointer and change the irq_domain code so that it does not modify the ops.
v4: Fix mismatched type reference in powerpc code
--- arch/powerpc/sysdev/mpic_msi.c | 2 +- include/linux/irqdomain.h | 14 +++++++------- kernel/irq/irqdomain.c | 31 +++++++++++++++---------------- 3 files changed, 23 insertions(+), 24 deletions(-)
arch/powerpc/sysdev/mpic_msi.c +1 -1
@@ -32,7 +32,7 @@ void mpic_msi_reserve_hwirq(struct mpic *mpic, irq_hw_number_t hwirq)static int mpic_msi_reserve_u3_hwirqs (struct mpic *mpic) {irq_hw_number_t hwirq; -struct irq_domain_ops *ops = mpic->irqhost->ops; +const struct irq_domain_ops *ops = mpic->irqhost->ops;struct device_node *np;int flags, index, i;struct of_irq oirq;
include/linux/irqdomain.h +7 -7
@@ -106,7 +106,7 @@ struct irq_domain { } linear;struct radix_tree_root tree; } revmap_data; -struct irq_domain_ops *ops; +const struct irq_domain_ops *ops;void *host_data;irq_hw_number_t inval_irq;
@@ -119,17 +119,17 @@ struct irq_domain *irq_domain_add_legacy(struct device_node *of_node,unsigned int size, unsigned int first_irq, irq_hw_number_t first_hwirq, - struct irq_domain_ops *ops, + const struct irq_domain_ops *ops, void *host_data);struct irq_domain *irq_domain_add_linear (struct device_node *of_node,unsigned int size, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data);struct irq_domain *irq_domain_add_nomap (struct device_node *of_node, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data);struct irq_domain *irq_domain_add_tree (struct device_node *of_node, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data);extern struct irq_domain *irq_find_host (struct device_node *node);
@@ -138,7 +138,7 @@ extern void irq_set_virq_count(unsigned int count);static inline struct irq_domain *irq_domain_add_legacy_isa (struct device_node *of_node, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data) { return irq_domain_add_legacy(of_node, NUM_ISA_INTERRUPTS, 0, 0, ops,
@@ -162,7 +162,7 @@ extern unsigned int irq_radix_revmap_lookup(struct irq_domain *host,extern unsigned int irq_linear_revmap (struct irq_domain *host,irq_hw_number_t hwirq); -extern struct irq_domain_ops irq_domain_simple_ops; +extern const struct irq_domain_ops irq_domain_simple_ops;/* stock xlate functions */ int irq_domain_xlate_onecell(struct irq_domain *d, struct device_node *ctrlr,
kernel/irq/irqdomain.c +15 -16
@@ -26,11 +26,6 @@ static DEFINE_MUTEX(revmap_trees_mutex);static unsigned int irq_virq_count =NR_IRQS ;static struct irq_domain *irq_default_domain; -static int default_irq_domain_match (struct irq_domain *d,struct device_node *np) -{ -return d->of_node !=NULL && d->of_node == np; -} -/** * irq_domain_alloc() - Allocate a new irq_domain data structure * @of_node: optional device-tree node of the interrupt controller
@@ -44,7 +39,7 @@ static int default_irq_domain_match(struct irq_domain *d, struct device_node *np*/ static struct irq_domain *irq_domain_alloc (struct device_node *of_node,unsigned int revmap_type, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data) {struct irq_domain *domain;
@@ -59,9 +54,6 @@ static struct irq_domain *irq_domain_alloc(struct device_node *of_node, domain->host_data = host_data; domain->of_node =of_node_get (of_node); -if (domain->ops->match ==NULL ) - domain->ops->match = default_irq_domain_match; -return domain; }
@@ -104,7 +96,7 @@ struct irq_domain *irq_domain_add_legacy(struct device_node *of_node,unsigned int size, unsigned int first_irq, irq_hw_number_t first_hwirq, - struct irq_domain_ops *ops, + const struct irq_domain_ops *ops, void *host_data) { struct irq_domain *domain;
@@ -170,7 +162,7 @@ struct irq_domain *irq_domain_add_legacy(struct device_node *of_node,*/ struct irq_domain *irq_domain_add_linear (struct device_node *of_node,unsigned int size, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data) {struct irq_domain *domain;
@@ -192,7 +184,7 @@ struct irq_domain *irq_domain_add_linear(struct device_node *of_node, }struct irq_domain *irq_domain_add_nomap (struct device_node *of_node, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data) { struct irq_domain *domain = irq_domain_alloc(of_node,
@@ -211,7 +203,7 @@ struct irq_domain *irq_domain_add_nomap(struct device_node *of_node,* (the reverse mapping will use the slow path until that happens). */ struct irq_domain *irq_domain_add_tree (struct device_node *of_node, -struct irq_domain_ops *ops, +const struct irq_domain_ops *ops,void *host_data) { struct irq_domain *domain = irq_domain_alloc(of_node,
@@ -230,6 +222,7 @@ struct irq_domain *irq_domain_add_tree(struct device_node *of_node,struct irq_domain *irq_find_host (struct device_node *node) {struct irq_domain *h, *found =NULL ; +int rc;/* We might want to match the legacy controller last since * it might potentially be set to match all interrupts in
@@ -237,11 +230,17 @@ struct irq_domain *irq_find_host(struct device_node *node)* yet though... */ mutex_lock (&irq_domain_mutex); -list_for_each_entry (h, &irq_domain_list, link) -if (h->ops->match (h, node)) { +list_for_each_entry (h, &irq_domain_list, link) { +if (h->ops->match) + rc = h->ops->match (h, node); +else + rc = (h->of_node !=NULL ) && (h->of_node == node); + +if (rc) { found = h;break ; } + }mutex_unlock (&irq_domain_mutex);return found; }
@@ -760,7 +759,7 @@ int irq_domain_xlate_onetwocell(struct irq_domain *d, }EXPORT_SYMBOL_GPL (irq_domain_xlate_onetwocell); -struct irq_domain_ops irq_domain_simple_ops = { +const struct irq_domain_ops irq_domain_simple_ops = { .map = irq_domain_simple_map, .xlate = irq_domain_xlate_onetwocell, };
Signature · 1 line
1.7.9
PATCH v5 19/27 irq_domain/c6x: Convert c6x to use generic irq_domain support.
In reply to Grant LikelyFrom: Mark Salter <[email protected]>
The C6X IRQ support was copied almost verbatim from the PowerPC virtual IRQ code. The PowerPC code was used as the basis for generic irq_domain support, so this patch mostly copies what what done to arch/powerpc by Grant Likely in his irq_domain patch series.
--- arch/c6x/Kconfig | 1 + arch/c6x/include/asm/irq.h | 245 +--------------- arch/c6x/kernel/irq.c | 611 +------------------------------------- arch/c6x/platforms/megamod-pic.c | 13 +- 4 files changed, 21 insertions(+), 849 deletions(-)
arch/c6x/Kconfig +1 -0
@@ -12,6 +12,7 @@ config TMS320C6X select HAVE_GENERIC_HARDIRQS select HAVE_MEMBLOCK select HAVE_SPARSE_IRQ + select IRQ_DOMAIN select OF select OF_EARLY_FLATTREE
arch/c6x/include/asm/irq.h +1 -244
260 lines not on this page · raw message
arch/c6x/kernel/irq.c +13 -598
642 lines not on this page · raw message
arch/c6x/platforms/megamod-pic.c +6 -7
@@ -48,7 +48,7 @@ struct megamod_regs { };struct megamod_pic { -struct irq_host *irqhost; +struct irq_domain *irqhost;struct megamod_regs __iomem *regs;raw_spinlock_t lock;
@@ -116,7 +116,7 @@ static void megamod_irq_cascade(unsigned int irq, struct irq_desc *desc) } } -static int megamod_map (struct irq_host *h,unsigned int virq, +static int megamod_map (struct irq_domain *h,unsigned int virq,irq_hw_number_t hw) {struct megamod_pic *pic = h->host_data;
@@ -136,7 +136,7 @@ static int megamod_map(struct irq_host *h, unsigned int virq,return 0 ; } -static int megamod_xlate (struct irq_host *h,struct device_node *ct, +static int megamod_xlate (struct irq_domain *h,struct device_node *ct,const u32 *intspec,unsigned int intsize,irq_hw_number_t *out_hwirq,unsigned int *out_type)
@@ -148,7 +148,7 @@ static int megamod_xlate(struct irq_host *h, struct device_node *ct,return 0 ; } -static struct irq_host_ops megamod_host_ops = { +static struct irq_domain_ops megamod_domain_ops = { .map = megamod_map, .xlate = megamod_xlate, };
@@ -223,9 +223,8 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np)return NULL ; } - pic->irqhost =irq_alloc_host (np,IRQ_HOST_MAP_LINEAR , -NR_COMBINERS *32 , &megamod_host_ops, -IRQ_UNMAPPED ); + pic->irqhost =irq_domain_add_linear (np,NR_COMBINERS *32 , + &megamod_domain_ops, pic);if (!pic->irqhost) {pr_err ("%s: Could not alloc host.\n" , np->full_name); goto error_free;
Signature · 1 line
1.7.9
PATCH v5 20/27 irq_domain/c6x: constify irq_domain structures
In reply to Grant Likely--- arch/arm/common/gic.c | 2 +- arch/c6x/kernel/irq.c | 2 +- arch/c6x/platforms/megamod-pic.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/common/gic.c +1 -1
@@ -635,7 +635,7 @@ static int gic_irq_domain_xlate(struct irq_domain *d,return 0 ; } -struct irq_domain_ops gic_irq_domain_ops = { +const struct irq_domain_ops gic_irq_domain_ops = { .map = gic_irq_domain_map, .xlate = gic_irq_domain_xlate, };
arch/c6x/kernel/irq.c +1 -1
@@ -86,7 +86,7 @@ static int core_domain_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops core_domain_ops = { +static const struct irq_domain_ops core_domain_ops = { .map = core_domain_map, };
arch/c6x/platforms/megamod-pic.c +1 -1
@@ -148,7 +148,7 @@ static int megamod_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops megamod_domain_ops = { +static const struct irq_domain_ops megamod_domain_ops = { .map = megamod_map, .xlate = megamod_xlate, };
Signature · 1 line
1.7.9
Re: [PATCH v5 20/27] irq_domain/c6x: constify irq_domain structures
Quoted 8 lines · Grant Likely
Signed-off-by Grant Likely <[email protected]>Cc Mark Salter <[email protected]>Cc Thomas Gleixner <[email protected]>--- arch/arm/common/gic.c | 2 +- arch/c6x/kernel/irq.c | 2 +- arch/c6x/platforms/megamod-pic.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
For c6x part:
PATCH v5 21/27 irq_domain/c6x: Use library of xlate functions
In reply to Grant LikelyThe c6x irq controllers don't need to define custom .xlate hooks
--- arch/c6x/kernel/irq.c | 1 + arch/c6x/platforms/megamod-pic.c | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-)
arch/c6x/kernel/irq.c +1 -0
@@ -88,6 +88,7 @@ static int core_domain_map(struct irq_domain *h, unsigned int virq,static const struct irq_domain_ops core_domain_ops = { .map = core_domain_map, + .xlate = irq_domain_xlate_onecell, };void __init init_IRQ (void )
arch/c6x/platforms/megamod-pic.c +1 -13
@@ -136,21 +136,9 @@ static int megamod_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int megamod_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq,unsigned int *out_type) - -{ -/* megamod intspecs must have 1 cell */ -BUG_ON (intsize !=1 ); - *out_hwirq = intspec[0 ]; - *out_type =IRQ_TYPE_NONE ; -return 0 ; -} -static const struct irq_domain_ops megamod_domain_ops = { .map = megamod_map, - .xlate = megamod_xlate, + .xlate = irq_domain_xlate_onecell, };static void __init set_megamod_mux (struct megamod_pic *pic,int src,int output)
Signature · 1 line
1.7.9
Re: [PATCH v5 21/27] irq_domain/c6x: Use library of xlate functions
Quoted 10 lines · Grant Likely
The c6x irq controllers don't need to define custom .xlate hooks
Signed-off-by Grant Likely <[email protected]>Cc Rob Herring <[email protected]>Cc Mark Salter <[email protected]>Cc Thomas Gleixner <[email protected]>--- arch/c6x/kernel/irq.c | 1 + arch/c6x/platforms/megamod-pic.c | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-)
PATCH v5 22/27 irq_domain/powerpc: constify irq_domain_ops
In reply to Grant LikelyMake all the irq_domain_ops structures in powerpc 'static const'
--- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c | 2 +- arch/powerpc/platforms/52xx/media5200.c | 2 +- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 2 +- arch/powerpc/platforms/52xx/mpc52xx_pic.c | 2 +- arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 2 +- arch/powerpc/platforms/85xx/socrates_fpga_pic.c | 2 +- arch/powerpc/platforms/86xx/gef_pic.c | 2 +- arch/powerpc/platforms/cell/axon_msi.c | 2 +- arch/powerpc/platforms/cell/beat_interrupt.c | 2 +- arch/powerpc/platforms/cell/interrupt.c | 2 +- arch/powerpc/platforms/cell/spider-pic.c | 2 +- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 2 +- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 2 +- arch/powerpc/platforms/iseries/irq.c | 2 +- arch/powerpc/platforms/powermac/pic.c | 2 +- arch/powerpc/platforms/powermac/smp.c | 2 +- arch/powerpc/platforms/ps3/interrupt.c | 2 +- arch/powerpc/platforms/wsp/opb_pic.c | 2 +- arch/powerpc/sysdev/cpm1.c | 2 +- arch/powerpc/sysdev/cpm2_pic.c | 2 +- arch/powerpc/sysdev/ehv_pic.c | 2 +- arch/powerpc/sysdev/fsl_msi.c | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-)
arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +1 -1
@@ -137,7 +137,7 @@ cpld_pic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops cpld_pic_host_ops = { +static const struct irq_domain_ops cpld_pic_host_ops = { .match = cpld_pic_host_match, .map = cpld_pic_host_map, };
arch/powerpc/platforms/52xx/media5200.c +1 -1
@@ -136,7 +136,7 @@ static int media5200_irq_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops media5200_irq_ops = { +static const struct irq_domain_ops media5200_irq_ops = { .map = media5200_irq_map, .xlate = media5200_irq_xlate, };
arch/powerpc/platforms/52xx/mpc52xx_gpt.c +1 -1
@@ -236,7 +236,7 @@ static int mpc52xx_gpt_irq_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops mpc52xx_gpt_irq_ops = { +static const struct irq_domain_ops mpc52xx_gpt_irq_ops = { .map = mpc52xx_gpt_irq_map, .xlate = mpc52xx_gpt_irq_xlate, };
arch/powerpc/platforms/52xx/mpc52xx_pic.c +1 -1
@@ -384,7 +384,7 @@ static int mpc52xx_irqhost_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops mpc52xx_irqhost_ops = { +static const struct irq_domain_ops mpc52xx_irqhost_ops = { .xlate = mpc52xx_irqhost_xlate, .map = mpc52xx_irqhost_map, };
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +1 -1
@@ -112,7 +112,7 @@ static int pci_pic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops pci_pic_host_ops = { +static const struct irq_domain_ops pci_pic_host_ops = { .map = pci_pic_host_map, };
arch/powerpc/platforms/85xx/socrates_fpga_pic.c +1 -1
@@ -269,7 +269,7 @@ static int socrates_fpga_pic_host_xlate(struct irq_domain *h,return 0 ; } -static struct irq_domain_ops socrates_fpga_pic_host_ops = { +static const struct irq_domain_ops socrates_fpga_pic_host_ops = { .map = socrates_fpga_pic_host_map, .xlate = socrates_fpga_pic_host_xlate, };
arch/powerpc/platforms/86xx/gef_pic.c +1 -1
@@ -177,7 +177,7 @@ static int gef_pic_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops gef_pic_host_ops = { +static const struct irq_domain_ops gef_pic_host_ops = { .map = gef_pic_host_map, .xlate = gef_pic_host_xlate, };
arch/powerpc/platforms/cell/axon_msi.c +1 -1
@@ -327,7 +327,7 @@ static int msic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops msic_host_ops = { +static const struct irq_domain_ops msic_host_ops = { .map = msic_host_map, };
arch/powerpc/platforms/cell/beat_interrupt.c +1 -1
@@ -172,7 +172,7 @@ static int beatic_pic_host_match(struct irq_domain *h, struct device_node *np)return 1 ; } -static struct irq_domain_ops beatic_pic_host_ops = { +static const struct irq_domain_ops beatic_pic_host_ops = { .map = beatic_pic_host_map, .unmap = beatic_pic_host_unmap, .xlate = beatic_pic_host_xlate,
arch/powerpc/platforms/cell/interrupt.c +1 -1
@@ -285,7 +285,7 @@ static int iic_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops iic_host_ops = { +static const struct irq_domain_ops iic_host_ops = { .match = iic_host_match, .map = iic_host_map, .xlate = iic_host_xlate,
arch/powerpc/platforms/cell/spider-pic.c +1 -1
@@ -194,7 +194,7 @@ static int spider_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops spider_host_ops = { +static const struct irq_domain_ops spider_host_ops = { .map = spider_host_map, .xlate = spider_host_xlate, };
arch/powerpc/platforms/embedded6xx/flipper-pic.c +1 -1
@@ -113,7 +113,7 @@ static int flipper_pic_match(struct irq_domain *h, struct device_node *np) } -static struct irq_domain_ops flipper_irq_domain_ops = { +static const struct irq_domain_ops flipper_irq_domain_ops = { .map = flipper_pic_map, .match = flipper_pic_match, };
arch/powerpc/platforms/embedded6xx/hlwd-pic.c +1 -1
@@ -100,7 +100,7 @@ static int hlwd_pic_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops hlwd_irq_domain_ops = { +static const struct irq_domain_ops hlwd_irq_domain_ops = { .map = hlwd_pic_map, };
arch/powerpc/platforms/iseries/irq.c +1 -1
@@ -356,7 +356,7 @@ static int iseries_irq_host_match(struct irq_domain *h, struct device_node *np)return 1 ; } -static struct irq_domain_ops iseries_irq_domain_ops = { +static const struct irq_domain_ops iseries_irq_domain_ops = { .map = iseries_irq_host_map, .match = iseries_irq_host_match, };
arch/powerpc/platforms/powermac/pic.c +1 -1
@@ -299,7 +299,7 @@ static int pmac_pic_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops pmac_pic_host_ops = { +static const struct irq_domain_ops pmac_pic_host_ops = { .match = pmac_pic_host_match, .map = pmac_pic_host_map, .xlate = pmac_pic_host_xlate,
arch/powerpc/platforms/powermac/smp.c +1 -1
@@ -184,7 +184,7 @@ static int psurge_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -struct irq_domain_ops psurge_host_ops = { +static const struct irq_domain_ops psurge_host_ops = { .map = psurge_host_map, };
arch/powerpc/platforms/ps3/interrupt.c +1 -1
@@ -684,7 +684,7 @@ static int ps3_host_match(struct irq_domain *h, struct device_node *np)return 1 ; } -static struct irq_domain_ops ps3_host_ops = { +static const struct irq_domain_ops ps3_host_ops = { .map = ps3_host_map, .match = ps3_host_match, };
arch/powerpc/platforms/wsp/opb_pic.c +1 -1
@@ -207,7 +207,7 @@ static int opb_host_xlate(struct irq_domain *host, struct device_node *dn,return 0 ; } -static struct irq_domain_ops opb_host_ops = { +static const struct irq_domain_ops opb_host_ops = { .map = opb_host_map, .xlate = opb_host_xlate, };
arch/powerpc/sysdev/cpm1.c +1 -1
@@ -123,7 +123,7 @@ static struct irqaction cpm_error_irqaction = { .name = "error", }; -static struct irq_domain_ops cpm_pic_host_ops = { +static const struct irq_domain_ops cpm_pic_host_ops = { .map = cpm_pic_host_map, };
arch/powerpc/sysdev/cpm2_pic.c +1 -1
@@ -236,7 +236,7 @@ static int cpm2_pic_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops cpm2_pic_host_ops = { +static const struct irq_domain_ops cpm2_pic_host_ops = { .map = cpm2_pic_host_map, .xlate = cpm2_pic_host_xlate, };
arch/powerpc/sysdev/ehv_pic.c +1 -1
@@ -248,7 +248,7 @@ static int ehv_pic_host_xlate(struct irq_domain *h, struct device_node *ct,return 0 ; } -static struct irq_domain_ops ehv_pic_host_ops = { +static const struct irq_domain_ops ehv_pic_host_ops = { .match = ehv_pic_host_match, .map = ehv_pic_host_map, .xlate = ehv_pic_host_xlate,
arch/powerpc/sysdev/fsl_msi.c +1 -1
@@ -74,7 +74,7 @@ static int fsl_msi_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static struct irq_domain_ops fsl_msi_host_ops = { +static const struct irq_domain_ops fsl_msi_host_ops = { .map = fsl_msi_host_map, };
Signature · 1 line
1.7.9
PATCH v5 23/27 irq_domain/powerpc: Replace custom xlate functions with library functions
In reply to Grant LikelyThis patch converts a number of the powerpc drivers to use the common library of irq_domain xlate functions, dropping a bunch of lines in the process.
v5: - Remove tsi108 changes from patch
--- arch/powerpc/platforms/powermac/pic.c | 13 +------------ arch/powerpc/platforms/wsp/opb_pic.c | 13 +------------ arch/powerpc/sysdev/cpm2_pic.c | 14 +------------- arch/powerpc/sysdev/ipic.c | 18 +----------------- arch/powerpc/sysdev/qe_lib/qe_ic.c | 15 +-------------- arch/powerpc/sysdev/uic.c | 14 +------------- drivers/gpio/gpio-mpc8xxx.c | 17 +---------------- 7 files changed, 7 insertions(+), 97 deletions(-)
arch/powerpc/platforms/powermac/pic.c +1 -12
@@ -288,21 +288,10 @@ static int pmac_pic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int pmac_pic_host_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq, -unsigned int *out_flags) - -{ - *out_flags =IRQ_TYPE_NONE ; - *out_hwirq = *intspec; -return 0 ; -} -static const struct irq_domain_ops pmac_pic_host_ops = { .match = pmac_pic_host_match, .map = pmac_pic_host_map, - .xlate = pmac_pic_host_xlate, + .xlate = irq_domain_xlate_onecell, };static void __init pmac_pic_probe_oldstyle (void )
arch/powerpc/platforms/wsp/opb_pic.c +1 -12
@@ -196,20 +196,9 @@ static int opb_host_map(struct irq_domain *host, unsigned int virq,return 0 ; } -static int opb_host_xlate (struct irq_domain *host,struct device_node *dn, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq,unsigned int *out_type) -{ -/* Interrupt size must == 2 */ -BUG_ON (intsize !=2 ); - *out_hwirq = intspec[0 ]; - *out_type = intspec[1 ]; -return 0 ; -} -static const struct irq_domain_ops opb_host_ops = { .map = opb_host_map, - .xlate = opb_host_xlate, + .xlate = irq_domain_xlate_twocell, };irqreturn_t opb_irq_handler (int irq,void *private)
arch/powerpc/sysdev/cpm2_pic.c +1 -13
@@ -224,21 +224,9 @@ static int cpm2_pic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int cpm2_pic_host_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq,unsigned int *out_flags) -{ - *out_hwirq = intspec[0 ]; -if (intsize >1 ) - *out_flags = intspec[1 ]; -else - *out_flags =IRQ_TYPE_NONE ; -return 0 ; -} -static const struct irq_domain_ops cpm2_pic_host_ops = { .map = cpm2_pic_host_map, - .xlate = cpm2_pic_host_xlate, + .xlate = irq_domain_xlate_onetwocell, };void cpm2_pic_init (struct device_node *node)
arch/powerpc/sysdev/ipic.c +1 -17
@@ -692,26 +692,10 @@ static int ipic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int ipic_host_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq,unsigned int *out_flags) - -{ -/* interrupt sense values coming from the device tree equal either -* LEVEL_LOW (low assertion) or EDGE_FALLING (high-to-low change) -*/ - *out_hwirq = intspec[0 ]; -if (intsize >1 ) - *out_flags = intspec[1 ]; -else - *out_flags =IRQ_TYPE_NONE ; -return 0 ; -} -static struct irq_domain_ops ipic_host_ops = { .match = ipic_host_match, .map = ipic_host_map, - .xlate = ipic_host_xlate, + .xlate = irq_domain_xlate_onetwocell, };struct ipic *__init ipic_init (struct device_node *node,unsigned int flags)
arch/powerpc/sysdev/qe_lib/qe_ic.c +1 -14
@@ -272,23 +272,10 @@ static int qe_ic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int qe_ic_host_xlate (struct irq_domain *h,struct device_node *ct, -const u32 * intspec,unsigned int intsize, -irq_hw_number_t * out_hwirq, -unsigned int *out_flags) -{ - *out_hwirq = intspec[0 ]; -if (intsize >1 ) - *out_flags = intspec[1 ]; -else - *out_flags =IRQ_TYPE_NONE ; -return 0 ; -} -static struct irq_domain_ops qe_ic_host_ops = { .match = qe_ic_host_match, .map = qe_ic_host_map, - .xlate = qe_ic_host_xlate, + .xlate = irq_domain_xlate_onetwocell, };/* Return an interrupt vector or NO_IRQ if no interrupt is pending. */
arch/powerpc/sysdev/uic.c +1 -13
@@ -190,21 +190,9 @@ static int uic_host_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int uic_host_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq,unsigned int *out_type) - -{ -/* UIC intspecs must have 2 cells */ -BUG_ON (intsize !=2 ); - *out_hwirq = intspec[0 ]; - *out_type = intspec[1 ]; -return 0 ; -} -static struct irq_domain_ops uic_host_ops = { .map = uic_host_map, - .xlate = uic_host_xlate, + .xlate = irq_domain_xlate_twocell, };void uic_irq_cascade (unsigned int virq,struct irq_desc *desc)
drivers/gpio/gpio-mpc8xxx.c +1 -16
@@ -296,24 +296,9 @@ static int mpc8xxx_gpio_irq_map(struct irq_domain *h, unsigned int virq,return 0 ; } -static int mpc8xxx_gpio_irq_xlate (struct irq_domain *h,struct device_node *ct, -const u32 *intspec,unsigned int intsize, -irq_hw_number_t *out_hwirq, -unsigned int *out_flags) - -{ -/* interrupt sense values coming from the device tree equal either -* EDGE_FALLING or EDGE_BOTH -*/ - *out_hwirq = intspec[0 ]; - *out_flags = intspec[1 ]; - -return 0 ; -} -static struct irq_domain_ops mpc8xxx_gpio_irq_ops = { .map = mpc8xxx_gpio_irq_map, - .xlate = mpc8xxx_gpio_irq_xlate, + .xlate = irq_domain_xlate_twocell, };static struct of_device_id mpc8xxx_gpio_ids[]__initdata = {
Signature · 1 line
1.7.9
PATCH v5 24/27 irq_domain/microblaze: Convert microblaze to use irq_domains
In reply to Grant LikelyThis patch converts Microblaze to use the irq_domain remapper and get away from hard coding the offset between hwirq number and the linux irq number space. This also paves the way for multiple interrupt controllers.
v2: Don't enable SPARSE_IRQ and keep NR_IRQS set to 33
--- arch/microblaze/Kconfig | 1 + arch/microblaze/include/asm/hardirq.h | 16 --------- arch/microblaze/include/asm/irq.h | 42 ++--------------------- arch/microblaze/kernel/intc.c | 61 ++++++++++++++++++++------------- arch/microblaze/kernel/irq.c | 24 ++----------- 5 files changed, 45 insertions(+), 99 deletions(-)
arch/microblaze/Kconfig +1 -0
@@ -14,6 +14,7 @@ config MICROBLAZE select TRACING_SUPPORT select OF select OF_EARLY_FLATTREE + select IRQ_DOMAIN select HAVE_GENERIC_HARDIRQS select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW
arch/microblaze/include/asm/hardirq.h +0 -16
@@ -1,17 +1 @@ -/* -* Copyright (C) 2006 Atmark Techno, Inc. -* -* This file is subject to the terms and conditions of the GNU General Public -* License. See the file "COPYING" in the main directory of this archive -* for more details. -*/ - -#ifndef _ASM_MICROBLAZE_HARDIRQ_H -#define _ASM_MICROBLAZE_HARDIRQ_H - -/* should be defined in each interrupt controller driver */ -extern unsigned int get_irq (struct pt_regs *regs); -#include <asm-generic/hardirq.h> - -#endif /* _ASM_MICROBLAZE_HARDIRQ_H */
arch/microblaze/include/asm/irq.h +3 -39
52 lines not on this page · raw message
arch/microblaze/kernel/intc.c +37 -24
91 lines not on this page · raw message
arch/microblaze/kernel/irq.c +4 -20
@@ -31,14 +31,13 @@ void __irq_entry do_IRQ(struct pt_regs *regs)trace_hardirqs_off ();irq_enter (); - irq =get_irq (regs); + irq =get_irq (); next_irq:BUG_ON (!irq); -/* Substract 1 because of get_irq */ -generic_handle_irq (irq +IRQ_OFFSET -NO_IRQ_OFFSET ); +generic_handle_irq (irq); - irq =get_irq (regs); -if (irq) { + irq =get_irq (); +if (irq !=-1U ) {pr_debug ("next irq: %d\n" , irq); ++concurrent_irq; goto next_irq;
@@ -48,18 +47,3 @@ next_irq:set_irq_regs (old_regs);trace_hardirqs_on (); } - -/* MS: There is no any advance mapping mechanism. We are using simple 32bit -intc without any cascades or any connection that's why mapping is 1:1 */ -unsigned int irq_create_mapping (struct irq_domain *host,irq_hw_number_t hwirq) -{ -return hwirq +IRQ_OFFSET ; -} -EXPORT_SYMBOL_GPL (irq_create_mapping); - -unsigned int irq_create_of_mapping (struct device_node *controller, -const u32 *intspec,unsigned int intsize) -{ -return intspec[0 ] +IRQ_OFFSET ; -} -EXPORT_SYMBOL_GPL (irq_create_of_mapping);
Signature · 1 line
1.7.9
PATCH v5 25/27 irq_domain: remove "hint" when allocating irq numbers
In reply to Grant LikelyThe 'hint' used to try and line up irq numbers with hw irq numbers is rather a hack and not very useful. Now that /proc/interrupts also outputs the hwirq number, it is even less useful to keep around the 'hint' heuristic.
This patch removes it.
--- kernel/irq/irqdomain.c | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-)
kernel/irq/irqdomain.c +4 -16
@@ -350,7 +350,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *domain)unsigned int irq_create_mapping (struct irq_domain *domain,irq_hw_number_t hwirq) { -unsigned int virq, hint; +unsigned int virq;pr_debug ("irq: irq_create_mapping(0x%p, 0x%lx)\n" , domain, hwirq);
@@ -377,12 +377,7 @@ unsigned int irq_create_mapping(struct irq_domain *domain,return irq_domain_legacy_revmap (domain, hwirq);/* Allocate a virtual interrupt number */ - hint = hwirq % irq_virq_count; -if (hint ==0 ) - hint++; - virq =irq_alloc_desc_from (hint,0 ); -if (!virq) - virq =irq_alloc_desc_from (1 ,0 ); + virq =irq_alloc_desc_from (1 ,0 );if (!virq) {pr_debug ("irq: -> virq allocation failed\n" );return 0 ;
@@ -503,7 +498,6 @@ unsigned int irq_find_mapping(struct irq_domain *domain, irq_hw_number_t hwirq) {unsigned int i; -unsigned int hint = hwirq % irq_virq_count;/* Look for default domain if nececssary */ if (domain ==NULL )
@@ -516,17 +510,11 @@ unsigned int irq_find_mapping(struct irq_domain *domain,return irq_domain_legacy_revmap (domain, hwirq);/* Slow path does a linear search of the map */ -if (hint ==0 ) - hint =1 ; - i = hint; -do { +for (i =0 ; i < irq_virq_count; i++) {struct irq_data *data =irq_get_irq_data (i);if (data && (data->domain == domain) && (data->hwirq == hwirq))return i; - i++; -if (i >= irq_virq_count) - i = 1 - }while (i != hint); + }return 0 ; }EXPORT_SYMBOL_GPL (irq_find_mapping);
Signature · 1 line
1.7.9
PATCH v5 26/27 irq_domain: mostly eliminate slow-path revmap lookups
In reply to Grant LikelyWith the current state of irq_domain, the reverse map is always updated when new IRQs get mapped. This means that the irq_find_mapping() function can be simplified to always execute the revmap-specific lookup function.
This patch adds lookup functions for the revmaps that don't yet have one and removes the slow path lookup from most of the code paths. The only place where the slow path legitimately remains is where the linear map is used with a hwirq number larger than the revmap size.
v5: rewrite to not use a ->revmap() callback. It is simpler, smaller,
safer and faster to open code each of the revmap lookups directly into irq_find_mapping() via a switch statement.
v4: Fix build failure on incorrect variable reference.
--- arch/powerpc/sysdev/xics/icp-hv.c | 2 +- arch/powerpc/sysdev/xics/icp-native.c | 2 +- arch/powerpc/sysdev/xics/xics-common.c | 3 - include/linux/irqdomain.h | 4 - kernel/irq/irqdomain.c | 121 ++++++++++++-------------------- 5 files changed, 48 insertions(+), 84 deletions(-)
arch/powerpc/sysdev/xics/icp-hv.c +1 -1
@@ -111,7 +111,7 @@ static unsigned int icp_hv_get_irq(void)if (vec ==XICS_IRQ_SPURIOUS )return NO_IRQ ; - irq =irq_radix_revmap_lookup (xics_host, vec); + irq =irq_find_mapping (xics_host, vec);if (likely (irq !=NO_IRQ )) {xics_push_cppr (vec);return irq;
arch/powerpc/sysdev/xics/icp-native.c +1 -1
@@ -119,7 +119,7 @@ static unsigned int icp_native_get_irq(void)if (vec ==XICS_IRQ_SPURIOUS )return NO_IRQ ; - irq =irq_radix_revmap_lookup (xics_host, vec); + irq =irq_find_mapping (xics_host, vec);if (likely (irq !=NO_IRQ )) {xics_push_cppr (vec);return irq;
arch/powerpc/sysdev/xics/xics-common.c +0 -3
@@ -330,9 +330,6 @@ static int xics_host_map(struct irq_domain *h, unsigned int virq,pr_devel ("xics: map virq %d, hwirq 0x%lx\n" , virq, hw); -/* Insert the interrupt mapping into the radix tree for fast lookup */ -irq_radix_revmap_insert (xics_host, virq, hw); -/* They aren't all level sensitive but we just don't really know */ irq_set_status_flags (virq,IRQ_LEVEL );
include/linux/irqdomain.h +0 -4
@@ -155,10 +155,6 @@ extern void irq_dispose_mapping(unsigned int virq);extern unsigned int irq_find_mapping (struct irq_domain *host,irq_hw_number_t hwirq);extern unsigned int irq_create_direct_mapping (struct irq_domain *host); -extern void irq_radix_revmap_insert (struct irq_domain *host,unsigned int virq, -irq_hw_number_t hwirq); -extern unsigned int irq_radix_revmap_lookup (struct irq_domain *host, -irq_hw_number_t hwirq);extern unsigned int irq_linear_revmap (struct irq_domain *host,irq_hw_number_t hwirq);
kernel/irq/irqdomain.c +46 -75
171 lines not on this page · raw message
Signature · 1 line
1.7.9
PATCH v5 27/27 irq_domain: For NOMAP revmap, allow users to specify the largest usable virq
In reply to Grant LikelyThis patch replaces the old global setting of irq_virq_count that is only used by the NOMAP mapping and instead uses a revmap_data property so that the maximum NOMAP allocation can be set per NOMAP irq_domain.
--- arch/powerpc/platforms/cell/axon_msi.c | 2 +- arch/powerpc/platforms/cell/beat_interrupt.c | 2 +- arch/powerpc/platforms/iseries/irq.c | 8 +------ arch/powerpc/platforms/powermac/smp.c | 2 +- arch/powerpc/platforms/ps3/interrupt.c | 3 +- include/linux/irqdomain.h | 7 ++--- kernel/irq/irqdomain.c | 29 ++++++------------------- 7 files changed, 15 insertions(+), 38 deletions(-)
arch/powerpc/platforms/cell/axon_msi.c +1 -1
@@ -392,7 +392,7 @@ static int axon_msi_probe(struct platform_device *device) }memset (msic->fifo_virt,0xff ,MSIC_FIFO_SIZE_BYTES ); - msic->irq_domain =irq_domain_add_nomap (dn, &msic_host_ops, msic); + msic->irq_domain =irq_domain_add_nomap (dn, &msic_host_ops, msic, ~0 );if (!msic->irq_domain) {printk (KERN_ERR "axon_msi: couldn't allocate irq_domain for %s\n" , dn->full_name);
arch/powerpc/platforms/cell/beat_interrupt.c +1 -1
@@ -239,7 +239,7 @@ void __init beatic_init_IRQ(void) ppc_md.get_irq = beatic_get_irq;/* Allocate an irq host */ - beatic_host =irq_domain_add_nomap (NULL , &beatic_pic_host_ops,NULL ); + beatic_host =irq_domain_add_nomap (NULL , &beatic_pic_host_ops,NULL , ~0 );BUG_ON (beatic_host ==NULL );irq_set_default_host (beatic_host); }
arch/powerpc/platforms/iseries/irq.c +1 -7
@@ -371,16 +371,10 @@ void __init iSeries_init_IRQ(void)struct irq_domain *host;int ret; -/* -* The Hypervisor only allows us up to 256 interrupt -* sources (the irq number is passed in a u8). -*/ -irq_set_virq_count (256 ); -/* Create irq host. No need for a revmap since HV will give us * back our virtual irq number */ - host =irq_domain_add_nomap (NULL , &iseries_irq_domain_ops,NULL ); + host =irq_domain_add_nomap (NULL , &iseries_irq_domain_ops,NULL ,256 );BUG_ON (host ==NULL );irq_set_default_host (host);
arch/powerpc/platforms/powermac/smp.c +1 -1
@@ -192,7 +192,7 @@ static int psurge_secondary_ipi_init(void) {int rc = -ENOMEM ; - psurge_host =irq_domain_add_nomap (NULL , &psurge_host_ops,NULL ); + psurge_host =irq_domain_add_nomap (NULL , &psurge_host_ops,NULL , ~0 );if (psurge_host) psurge_secondary_virq =irq_create_direct_mapping (psurge_host);
arch/powerpc/platforms/ps3/interrupt.c +1 -2
@@ -753,9 +753,8 @@ void __init ps3_init_IRQ(void)unsigned cpu;struct irq_domain *host; - host =irq_domain_add_nomap (NULL , &ps3_host_ops,NULL ); + host =irq_domain_add_nomap (NULL , &ps3_host_ops,NULL ,PS3_PLUG_MAX +1 );irq_set_default_host (host); -irq_set_virq_count (PS3_PLUG_MAX +1 );for_each_possible_cpu (cpu) {struct ps3_private *pd = &per_cpu (ps3_private, cpu);
include/linux/irqdomain.h +3 -4
@@ -105,6 +105,7 @@ struct irq_domain {unsigned int *revmap; } linear;struct radix_tree_root tree; +unsigned int nomap_max_virq; } revmap_data;const struct irq_domain_ops *ops;void *host_data;
@@ -126,15 +127,14 @@ struct irq_domain *irq_domain_add_linear(struct device_node *of_node,const struct irq_domain_ops *ops, void *host_data);struct irq_domain *irq_domain_add_nomap (struct device_node *of_node, -const struct irq_domain_ops *ops, -void *host_data); +const struct irq_domain_ops *ops, +void *host_data,unsigned int max_virq);struct irq_domain *irq_domain_add_tree (struct device_node *of_node,const struct irq_domain_ops *ops,void *host_data);extern struct irq_domain *irq_find_host (struct device_node *node);extern void irq_set_default_host (struct irq_domain *host); -extern void irq_set_virq_count (unsigned int count); static inline struct irq_domain *irq_domain_add_legacy_isa( struct device_node *of_node,
@@ -146,7 +146,6 @@ static inline struct irq_domain *irq_domain_add_legacy_isa( }extern struct irq_domain *irq_find_host (struct device_node *node);extern void irq_set_default_host (struct irq_domain *host); -extern void irq_set_virq_count (unsigned int count); extern unsigned int irq_create_mapping(struct irq_domain *host,
kernel/irq/irqdomain.c +7 -22
@@ -23,7 +23,6 @@ static LIST_HEAD(irq_domain_list);static DEFINE_MUTEX (irq_domain_mutex);static DEFINE_MUTEX (revmap_trees_mutex); -static unsigned int irq_virq_count =NR_IRQS ;static struct irq_domain *irq_default_domain;/**
@@ -185,12 +184,14 @@ struct irq_domain *irq_domain_add_linear(struct device_node *of_node,struct irq_domain *irq_domain_add_nomap (struct device_node *of_node,const struct irq_domain_ops *ops, -void *host_data) +void *host_data,unsigned int max_virq) {struct irq_domain *domain =irq_domain_alloc (of_node,IRQ_DOMAIN_MAP_NOMAP , ops, host_data); -if (domain) +if (domain) { + domain->revmap_data.nomap_max_virq = max_virq;irq_domain_add (domain); + }return domain; }
@@ -262,22 +263,6 @@ void irq_set_default_host(struct irq_domain *domain) irq_default_domain = domain; } -/** -* irq_set_virq_count() - Set the maximum number of linux irqs -* @count: number of linux irqs, capped with NR_IRQS -* -* This is mainly for use by platforms like iSeries who want to program -* the virtual irq number in the controller to avoid the reverse mapping -*/ -void irq_set_virq_count (unsigned int count) -{ -pr_debug ("irq: Trying to set virq count to %d\n" , count); - -BUG_ON (count <NUM_ISA_INTERRUPTS ); -if (count <NR_IRQS ) - irq_virq_count = count; -} -static int irq_setup_virq (struct irq_domain *domain,unsigned int virq,irq_hw_number_t hwirq) {
@@ -321,9 +306,9 @@ unsigned int irq_create_direct_mapping(struct irq_domain *domain)pr_debug ("irq: create_direct virq allocation failed\n" );return 0 ; } -if (virq >= irq_virq_count) { +if (virq > domain->revmap_data.nomap_max_virq) {pr_err ("ERROR: no free irqs available below %i maximum\n" , - irq_virq_count); + domain->revmap_data.nomap_max_virq);irq_free_desc (virq);return 0 ; }
@@ -549,7 +534,7 @@ static unsigned int irq_find_mapping_slow(struct irq_domain *domain,unsigned int i;/* Slow path does a linear search of the map */ -for (i =0 ; i < irq_virq_count; i++) { +for (i =0 ; i < nr_irqs; i++) {struct irq_data *data =irq_get_irq_data (i);if (data && (data->domain == domain) && (data->hwirq == hwirq))return i;
Signature · 1 line
1.7.9
Quoted 3 lines · On Thu, 16 Feb 2012 02:09:01 -0700 Grant Likely <[email protected]>…
This series generalizes the "
irq_host" infrastructure from powerpc so that it can be used by all architectures and renames it to "irq_domain".
drivers/mfd/twl-core.c is fairly horked on i386 allmodconfig:
drivers/mfd/twl-core.c: In function 'twl_probe':drivers/mfd/twl-core.c:1218: error: implicit declaration of function 'irq_alloc_descs' drivers/mfd/twl-core.c:1226: error: implicit declaration of function 'irq_domain_add_legacy' drivers/mfd/twl-core.c:1227: error: 'irq_domain_simple_ops' undeclared (first use in this function) drivers/mfd/twl-core.c:1227: error: (Each undeclared identifier is reported only once drivers/mfd/twl-core.c:1227: error: for each function it appears in.)
This is today's linux-next so it has rmk's "ARM: omap: fix broken twl-core dependencies and ifdefs" in there, which looks like it attempts to repair this stuff.
It's looking for things which are in both linux/irq.h and in linux/irqdomain.h.
btw, Russell, regarding this comment in include/linux/irq.h:
/*
* Please do not include this file in generic code. There is currently
* no requirement for any architecture to implement anything held
* within this file.
*
* Thanks. --rmk
*/
A quick grep indicates that we've lost this battle ;) Is the comments still true? Should we stop discouraging inclusion of linux/irq.h? Does anyone even know that it's discouraged ;)
Quoted 14 lines · Andrew Morton
Quoted 2 lines · On Thu, 16 Feb 2012 02:09:01 -0700 Grant Likely <[email protected]>…
This series generalizes the "
irq_host" infrastructure from powerpc so that it can be used by all architectures and renames it to "irq_domain".
drivers/mfd/twl-core.cis fairly horked on i386 allmodconfig:
drivers/mfd/twl-core.c: In function 'twl_probe':drivers/mfd/twl-core.c:1218: error: implicit declaration of function 'irq_alloc_descs'drivers/mfd/twl-core.c:1226: error: implicit declaration of function 'irq_domain_add_legacy'drivers/mfd/twl-core.c:1227: error: 'irq_domain_simple_ops' undeclared (first use in this function)drivers/mfd/twl-core.c:1227: error: (Each undeclared identifier is reported only oncedrivers/mfd/twl-core.c:1227: error: for each function it appears in.)
Quoted 3 lines
This is today's linux-next so it has rmk's "ARM: omap: fix broken twl-core dependencies and ifdefs" in there, which looks like it attempts to repair this stuff.
Yes, you're the third to report this breakage.
Grant's response on Tuesday over this was:
| This is irq_domain related. It's related to an API change. I'm | tracking to get it solved, either by moving the twl commit into the | irqdomain branch or by deferring the api change to v3.5. | | I've also got a patch that converts x86 over to the new api, but I | don't have sufficient review to put it into the irqdomain tree yet.
Quoted 10 lines
btw, Russell, regarding this comment in
include/linux/irq.h:/*
* Please do not include this file in generic code. There is currently
* no requirement for any architecture to implement anything held
* within this file.
*
* Thanks. --rmk
*/
Quoted 3 lines
A quick grep indicates that we've lost this battle ;) Is the comments still true? Should we stop discouraging inclusion of
linux/irq.h? Does anyone even know that it's discouraged ;)
It's still true for any platform which hasn't been converted to genirq, as such a platform would not have asm/hw_irq.h. That said, since genirq, it's now necessary for any driver which contains interrupt controller code like GPIO drivers. So I suspect the comment should now be lost, even though it's not really a replacement for asm/irq.h.
Quoted 9 lines
Quoted 9 lines
/*
* Please do not include this file in generic code. There is currently
* no requirement for any architecture to implement anything held
* within this file.
*
* Thanks. --rmk
*/
Quoted 6 lines
Quoted 3 lines
A quick grep indicates that we've lost this battle ;) Is the comments still true? Should we stop discouraging inclusion of
linux/irq.h? Does anyone even know that it's discouraged ;)It's still true for any platform which hasn't been converted to genirq, as such a platform would not have
asm/hw_irq.h.
In-tree only s390 is not using genirq.
All the rest are converted and provide hw_irq.h - most of the new archs provide hw_irq via asm-generic so it does not show up unless you look in the Kbuild file,.
Sam
Hi Grant,
Quoted 17 lines · Andrew Morton
Quoted 3 lines · On Thu, 16 Feb 2012 02:09:01 -0700 Grant Likely<[email protected]>…
This series generalizes the "
irq_host" infrastructure from powerpc so that it can be used by all architectures and renames it to "irq_domain".
drivers/mfd/twl-core.cis fairly horked on i386 allmodconfig:
drivers/mfd/twl-core.c: In function 'twl_probe':drivers/mfd/twl-core.c:1218: error: implicit declaration of function 'irq_alloc_descs'drivers/mfd/twl-core.c:1226: error: implicit declaration of function 'irq_domain_add_legacy'drivers/mfd/twl-core.c:1227: error: 'irq_domain_simple_ops' undeclared (first use in this function)drivers/mfd/twl-core.c:1227: error: (Each undeclared identifier is reported only oncedrivers/mfd/twl-core.c:1227: error: for each function it appears in.)
Quoted 3 lines
This is today's linux-next so it has rmk's "ARM: omap: fix broken twl-core dependencies and ifdefs" in there, which looks like it attempts to repair this stuff.
If we cannot assume this driver will be used only on architecture that does support IRQ_DOMAIN, we have to keep the #ifdef and then add the missing linux/irq.h.
Since this driver is using IRQ_DOMAIN only for Device Tree support, we can still avoid using irq_domain_add_legacy for the legacy non-DT case. That's too bad because I was expecting to use irq_domain to clean the cascading IRQ scheme used in that driver, but that can wait.
The fix is trivial, but here it is just in case.
Regards,
Benoit
---
Quoted 1 line
From
0faf51f8475025260d5db808b1651a38b409803dMon Sep 17 00:00:00 2001
From: Benoit Cousson <[email protected]>
Date: Fri, 17 Feb 2012 18:13:31 +0100
Subject: [PATCH] mfd: twl-core: Fix IRQ_DOMAIN dependency
TWL chips might be potentially used on architecture that does not support ird_domain yet.
Do not call ird_domain API in that case.
Include <linux/irq.h> directly since it will not be included anymore by <linux/irqdomain.h> if !IRQ_DOMAIN.
--- drivers/mfd/twl-core.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mfd/twl-core.c +3 -0
@@ -38,6 +38,7 @@#include <linux/of.h> #include <linux/of_irq.h> #include <linux/of_platform.h> +#include <linux/irq.h> #include <linux/irqdomain.h> #include <linux/regulator/machine.h>
@@ -1237,8 +1238,10 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) pdata->irq_base = status; pdata->irq_end = pdata->irq_base + nr_irqs; +#ifdef IRQ_DOMAIN irq_domain_add_legacy (node, nr_irqs, pdata->irq_base,0 , &irq_domain_simple_ops,NULL ); +#endif if (i2c_check_functionality (client->adapter,I2C_FUNC_I2C ) ==0 ) {dev_dbg (&client->dev,"can't talk I2C?\n" );
Signature · 1 line
1.7.5.4
Quoted 30 lines · Benoit
Hi Grant,
Quoted 17 lines · Andrew Morton
Quoted 3 lines · On Thu, 16 Feb 2012 02:09:01 -0700 Grant Likely<[email protected]>…
This series generalizes the "
irq_host" infrastructure from powerpc so that it can be used by all architectures and renames it to "irq_domain".
drivers/mfd/twl-core.cis fairly horked on i386 allmodconfig:
drivers/mfd/twl-core.c: In function 'twl_probe':drivers/mfd/twl-core.c:1218: error: implicit declaration of function 'irq_alloc_descs'drivers/mfd/twl-core.c:1226: error: implicit declaration of function 'irq_domain_add_legacy'drivers/mfd/twl-core.c:1227: error: 'irq_domain_simple_ops' undeclared (first use in this function)drivers/mfd/twl-core.c:1227: error: (Each undeclared identifier is reported only oncedrivers/mfd/twl-core.c:1227: error: for each function it appears in.)Quoted 3 lines
This is today's linux-next so it has rmk's "ARM: omap: fix broken twl-core dependencies and ifdefs" in there, which looks like it attempts to repair this stuff.
If we cannot assume this driver will be used only on architecture that does support
IRQ_DOMAIN, we have to keep the #ifdef and then add the missinglinux/irq.h.Since this driver is using
IRQ_DOMAINonly for Device Tree support, we can still avoid usingirq_domain_add_legacyfor the legacy non-DT case. That's too bad because I was expecting to useirq_domainto clean the cascading IRQ scheme used in that driver, but that can wait.The fix is trivial, but here it is just in case.
...
drivers/mfd/twl-core.c twl_probe(struct i2c_client *client, const struct i2c_device_id *id) · line 1244
Quoted 8 lines
drivers/mfd/twl-core.c +2
-0@@ -1237,8 +1238,10 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) pdata->irq_base = status; pdata->irq_end = pdata->irq_base + nr_irqs; +#ifdef IRQ_DOMAIN irq_domain_add_legacy (node, nr_irqs, pdata->irq_base,0 , &irq_domain_simple_ops,NULL ); +#endif
Do you really need this? If you've tested this, then apparantly the answer is no, because it won't ever be built like that. (You're missing a CONFIG_ prefix.)
Maybe the only solution to the x86 problem is to ensure that the driver includes linux/irq.h ?
Quoted 1 line · Russell King - ARM Linux
On Fri, Feb 17, 2012 at 06:42:31PM +0100, Cousson, Benoit wrote:
[...]
Quoted 12 lines
Review twl_probe(struct i2c_client *client, const struct i2c_device_id *id) · line 1244
Quoted 8 lines
(quoted diff) +2
-0@@ -1237,8 +1238,10 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) pdata->irq_base = status; pdata->irq_end = pdata->irq_base + nr_irqs; +#ifdef IRQ_DOMAIN irq_domain_add_legacy(node, nr_irqs, pdata->irq_base, 0, &irq_domain_simple_ops, NULL); +#endifDo you really need this? If you've tested this, then apparantly the answer is no, because it won't ever be built like that. (You're missing a
CONFIG_prefix.)
Ooops, sorry about that.
It was indeed working fine in every cases except for the DT boot :-(
As explain before, for the moment the interrupt domain is used only for the DT boot. It is mandatory do get the interrupt binding to work properly for all the TWL sub modules (RTC...).
Quoted 2 lines
Maybe the only solution to the x86 problem is to ensure that the driver includes
linux/irq.h?
Both will be needed to allow a DT boot with OMAP. Here is the updated version.
Regards,
Benoit
---
Quoted 1 line
From
d844a8fc84d4514884356c935967f59d88a00124Mon Sep 17 00:00:00 2001
From: Benoit Cousson <[email protected]>
Date: Mon, 20 Feb 2012 10:58:34 +0100
Subject: [PATCH] mfd: twl-core: Fix IRQ_DOMAIN dependency
TWL chips might be potentially used on architecture that does not support ird_domain yet.
Do not call ird_domain API in that case.
Include <linux/irq.h> directly since it will not be included anymore by <linux/irqdomain.h> if !IRQ_DOMAIN.
--- drivers/mfd/twl-core.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mfd/twl-core.c +3 -0
@@ -38,6 +38,7 @@#include <linux/of.h> #include <linux/of_irq.h> #include <linux/of_platform.h> +#include <linux/irq.h> #include <linux/irqdomain.h> #include <linux/regulator/machine.h>
@@ -1223,8 +1224,10 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) pdata->irq_base = status; pdata->irq_end = pdata->irq_base + nr_irqs; +#ifdef CONFIG_IRQ_DOMAIN irq_domain_add_legacy (node, nr_irqs, pdata->irq_base,0 , &irq_domain_simple_ops,NULL ); +#endif if (i2c_check_functionality (client->adapter,I2C_FUNC_I2C ) ==0 ) {dev_dbg (&client->dev,"can't talk I2C?\n" );
Signature · 1 line
1.7.0.4