[PATCH 1 of 4] x86-64: Calgary IOMMU: print PCI bus numbers in hex
- From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
- Date: Sat, 30 Sep 2006 11:43:29 +0300
1 files changed, 4 insertions(+), 4 deletions(-)
arch/x86_64/kernel/pci-calgary.c | 8 ++++----
# HG changeset patch
# User Muli Ben-Yehuda <muli@xxxxxxxxxx>
# Date 1159604172 -10800
# Node ID 28658cf477bc8c6adc5a5335363a4d1428f58273
# Parent 585e6c1736a2a8b419ae9b8dc5055ee8774ba57f
x86-64: Calgary IOMMU: print PCI bus numbers in hex
From: Jon Mason <jdmason@xxxxxxxx>
Make the references to the bus number in hex instead of decimal, as
that is the way that lspci prints out the bus numbers.
Signed-off-by: Jon Mason <jdmason@xxxxxxxx>
Signed-off-by: Muli Ben-Yehuda <muli@xxxxxxxxxx>
diff -r 585e6c1736a2 -r 28658cf477bc arch/x86_64/kernel/pci-calgary.c
--- a/arch/x86_64/kernel/pci-calgary.c Sat Sep 30 11:13:54 2006 +0300
+++ b/arch/x86_64/kernel/pci-calgary.c Sat Sep 30 11:16:12 2006 +0300
@@ -715,7 +715,7 @@ static void calgary_watchdog(unsigned lo
/* If no error, the agent ID in the CSR is not valid */
if (val32 & CSR_AGENT_MASK) {
- printk(KERN_EMERG "calgary_watchdog: DMA error on bus %d, "
+ printk(KERN_EMERG "calgary_watchdog: DMA error on PHB %#x, "
"CSR = %#x\n", dev->bus->number, val32);
writel(0, target);
@@ -749,7 +749,7 @@ static void __init calgary_enable_transl
val32 = be32_to_cpu(readl(target));
val32 |= PHB_TCE_ENABLE | PHB_DAC_DISABLE | PHB_MCSR_ENABLE;
- printk(KERN_INFO "Calgary: enabling translation on PHB %d\n", busnum);
+ printk(KERN_INFO "Calgary: enabling translation on PHB %#x\n", busnum);
printk(KERN_INFO "Calgary: errant DMAs will now be prevented on this "
"bus.\n");
@@ -779,7 +779,7 @@ static void __init calgary_disable_trans
val32 = be32_to_cpu(readl(target));
val32 &= ~(PHB_TCE_ENABLE | PHB_DAC_DISABLE | PHB_MCSR_ENABLE);
- printk(KERN_INFO "Calgary: disabling translation on PHB %d!\n", busnum);
+ printk(KERN_INFO "Calgary: disabling translation on PHB %#x!\n", busnum);
writel(cpu_to_be32(val32), target);
readl(target); /* flush */
@@ -1053,7 +1053,7 @@ static int __init calgary_parse_options(
if (bridge < MAX_PHB_BUS_NUM) {
printk(KERN_INFO "Calgary: disabling "
- "translation for PHB 0x%x\n", bridge);
+ "translation for PHB %#x\n", bridge);
bus_info[bridge].translation_disabled = 1;
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0 of 4] x86-64: Calgary IOMMU updates
- From: Muli Ben-Yehuda
- [PATCH 0 of 4] x86-64: Calgary IOMMU updates
- Prev by Date: Re: [patch 14/23] clockevents: drivers for i386
- Next by Date: Re: Makefile for linux modules
- Previous by thread: Re: [PATCH 4 of 4] x86-64: Calgary IOMMU: Fix off by one when calculating register space
- Next by thread: Re: [PATCH 0 of 4] x86-64: Calgary IOMMU updates
- Index(es):
Relevant Pages
- Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices
... >>(bus, target, lun) triplets in any sane way is destined to fail. ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - OpenBSD 3.8 SMP w/ Proliant 1600 issue
... I can't see the relevance of this considering the uniprocessor kernel works fine having no
issues with the ISA bus. ... pcibios0: PCI BIOS has 9 Interrupt Routing table entries
... mainbus0: ... target 0 now using 8 bit async xfers ... (comp.unix.bsd.openbsd.misc) - Re: Program to parse HEX into data words
... to binary and place it on the stack. ... for a 64-bit bus it would be
... so for example say you had the HEX number... ... (comp.sys.hp48) - SCSI CAM Error.
... cam_logger: CAM_ERROR packet ... bus 0 target 3 lun 0 ...
(Tru64-UNIX-Managers) - Re: Somewhat OT: Narrow and wide on the same SCSI bus - ID question
... SCSI Bus ... and the other acts as a target. ... The initiator
originates an operation and ... (comp.sys.ibm.ps2.hardware)