Skip to content

Commit 55a3203

Browse files
committed
Merge branch 'irqdomain/merge' of git://git.secretlab.ca/git/linux-2.6
Pull the code to generalize the powerpc VIRQ_DEBUG code from Grant Likely. That code had been moved into generic irqdomain code, but still had powerpc-specific code and could only be enabled on powerpc. * 'irqdomain/merge' of git://git.secretlab.ca/git/linux-2.6: irqdomain/powerpc: updated defconfigs for VIRQ_DEBUG rename irqdomain: Remove powerpc dependency from debugfs file
2 parents 18a06ef + d4886bc commit 55a3203

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

arch/powerpc/Kconfig.debug

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,6 @@ config DEBUGGER
114114
depends on KGDB || XMON
115115
default y
116116

117-
config VIRQ_DEBUG
118-
bool "Expose hardware/virtual IRQ mapping via debugfs"
119-
depends on DEBUG_FS
120-
help
121-
This option will show the mapping relationship between hardware irq
122-
numbers and virtual irq numbers. The mapping is exposed via debugfs
123-
in the file powerpc/virq_mapping.
124-
125-
If you don't know what this means you don't need it.
126-
127117
config BDI_SWITCH
128118
bool "Include BDI-2000 user context switcher"
129119
depends on DEBUG_KERNEL && PPC32

arch/powerpc/configs/85xx/p1023rds_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ CONFIG_DETECT_HUNG_TASK=y
165165
CONFIG_DEBUG_INFO=y
166166
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
167167
CONFIG_SYSCTL_SYSCALL_CHECK=y
168-
CONFIG_VIRQ_DEBUG=y
168+
CONFIG_IRQ_DOMAIN_DEBUG=y
169169
CONFIG_CRYPTO_PCBC=m
170170
CONFIG_CRYPTO_SHA256=y
171171
CONFIG_CRYPTO_SHA512=y

arch/powerpc/configs/chroma_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ CONFIG_FTRACE_SYSCALLS=y
279279
CONFIG_PPC_EMULATED_STATS=y
280280
CONFIG_XMON=y
281281
CONFIG_XMON_DEFAULT=y
282-
CONFIG_VIRQ_DEBUG=y
282+
CONFIG_IRQ_DOMAIN_DEBUG=y
283283
CONFIG_PPC_EARLY_DEBUG=y
284284
CONFIG_KEYS_DEBUG_PROC_KEYS=y
285285
CONFIG_CRYPTO_NULL=m

arch/powerpc/configs/corenet64_smp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CONFIG_DEBUG_FS=y
9595
CONFIG_DETECT_HUNG_TASK=y
9696
CONFIG_DEBUG_INFO=y
9797
CONFIG_SYSCTL_SYSCALL_CHECK=y
98-
CONFIG_VIRQ_DEBUG=y
98+
CONFIG_IRQ_DOMAIN_DEBUG=y
9999
CONFIG_CRYPTO_PCBC=m
100100
CONFIG_CRYPTO_SHA256=y
101101
CONFIG_CRYPTO_SHA512=y

arch/powerpc/configs/mpc85xx_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ CONFIG_DEBUG_FS=y
214214
CONFIG_DETECT_HUNG_TASK=y
215215
CONFIG_DEBUG_INFO=y
216216
CONFIG_SYSCTL_SYSCALL_CHECK=y
217-
CONFIG_VIRQ_DEBUG=y
217+
CONFIG_IRQ_DOMAIN_DEBUG=y
218218
CONFIG_CRYPTO_PCBC=m
219219
CONFIG_CRYPTO_SHA256=y
220220
CONFIG_CRYPTO_SHA512=y

arch/powerpc/configs/mpc85xx_smp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ CONFIG_DEBUG_FS=y
216216
CONFIG_DETECT_HUNG_TASK=y
217217
CONFIG_DEBUG_INFO=y
218218
CONFIG_SYSCTL_SYSCALL_CHECK=y
219-
CONFIG_VIRQ_DEBUG=y
219+
CONFIG_IRQ_DOMAIN_DEBUG=y
220220
CONFIG_CRYPTO_PCBC=m
221221
CONFIG_CRYPTO_SHA256=y
222222
CONFIG_CRYPTO_SHA512=y

arch/powerpc/configs/ppc64_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ CONFIG_CODE_PATCHING_SELFTEST=y
457457
CONFIG_FTR_FIXUP_SELFTEST=y
458458
CONFIG_MSI_BITMAP_SELFTEST=y
459459
CONFIG_XMON=y
460-
CONFIG_VIRQ_DEBUG=y
460+
CONFIG_IRQ_DOMAIN_DEBUG=y
461461
CONFIG_BOOTX_TEXT=y
462462
CONFIG_CRYPTO_NULL=m
463463
CONFIG_CRYPTO_TEST=m

arch/powerpc/configs/pseries_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ CONFIG_FTR_FIXUP_SELFTEST=y
340340
CONFIG_MSI_BITMAP_SELFTEST=y
341341
CONFIG_XMON=y
342342
CONFIG_XMON_DEFAULT=y
343-
CONFIG_VIRQ_DEBUG=y
343+
CONFIG_IRQ_DOMAIN_DEBUG=y
344344
CONFIG_CRYPTO_NULL=m
345345
CONFIG_CRYPTO_TEST=m
346346
CONFIG_CRYPTO_CCM=m

kernel/irq/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ config GENERIC_IRQ_CHIP
5656
config IRQ_DOMAIN
5757
bool
5858

59+
config IRQ_DOMAIN_DEBUG
60+
bool "Expose hardware/virtual IRQ mapping via debugfs"
61+
depends on IRQ_DOMAIN && DEBUG_FS
62+
help
63+
This option will show the mapping relationship between hardware irq
64+
numbers and Linux irq numbers. The mapping is exposed via debugfs
65+
in the file "virq_mapping".
66+
67+
If you don't know what this means you don't need it.
68+
5969
# Support forced irq threading
6070
config IRQ_FORCED_THREADING
6171
bool

kernel/irq/irqdomain.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ unsigned int irq_linear_revmap(struct irq_domain *domain,
632632
return revmap[hwirq];
633633
}
634634

635-
#ifdef CONFIG_VIRQ_DEBUG
635+
#ifdef CONFIG_IRQ_DOMAIN_DEBUG
636636
static int virq_debug_show(struct seq_file *m, void *private)
637637
{
638638
unsigned long flags;
@@ -668,7 +668,7 @@ static int virq_debug_show(struct seq_file *m, void *private)
668668
data = irq_desc_get_chip_data(desc);
669669
seq_printf(m, "0x%16p ", data);
670670

671-
if (desc->irq_data.domain->of_node)
671+
if (desc->irq_data.domain && desc->irq_data.domain->of_node)
672672
p = desc->irq_data.domain->of_node->full_name;
673673
else
674674
p = none;
@@ -695,14 +695,14 @@ static const struct file_operations virq_debug_fops = {
695695

696696
static int __init irq_debugfs_init(void)
697697
{
698-
if (debugfs_create_file("virq_mapping", S_IRUGO, powerpc_debugfs_root,
698+
if (debugfs_create_file("irq_domain_mapping", S_IRUGO, NULL,
699699
NULL, &virq_debug_fops) == NULL)
700700
return -ENOMEM;
701701

702702
return 0;
703703
}
704704
__initcall(irq_debugfs_init);
705-
#endif /* CONFIG_VIRQ_DEBUG */
705+
#endif /* CONFIG_IRQ_DOMAIN_DEBUG */
706706

707707
int irq_domain_simple_map(struct irq_domain *d, unsigned int irq,
708708
irq_hw_number_t hwirq)

0 commit comments

Comments
 (0)