aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2009-11-25 19:28:50 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-12-04 18:46:20 -0500
commitc6a415761c59adabb53699c84e5cb42868d97c67 (patch)
tree0f5f8e1478c46d24748d804de90e4e3268f96c6b /drivers/pci
parent5c788a695ab5740413d9f9c0035d0d7aeef1c708 (diff)
PCI: add debug output for DMA mask info
This allows us to find out what DMA mask is used for each PCI device at boot time; useful for debugging. After the patch: ehci_hcd 0000:00:02.1: using 31bit consistent DMA mask e1000 0000:0b:01.0: using 64bit DMA mask e1000 0000:0b:01.0: using 64bit consistent DMA mask e1000e 0000:04:00.0: using 64bit DMA mask e1000e 0000:04:00.0: using 64bit consistent DMA mask ixgb 0000:0c:01.0: using 64bit DMA mask ixgb 0000:0c:01.0: using 64bit consistent DMA mask aacraid 0000:86:00.0: using 32bit DMA mask aacraid 0000:86:00.0: using 32bit consistent DMA mask aacraid 0000:86:00.0: using 64bit DMA mask aacraid 0000:86:00.0: using 64bit consistent DMA mask qla2xxx 0000:0c:02.0: using 64bit consistent DMA mask qla2xxx 0000:0c:02.1: using 64bit consistent DMA mask lpfc 0000:06:00.0: using 64bit DMA mask lpfc 0000:06:00.1: using 64bit DMA mask pata_amd 0000:00:06.0: using 32bit DMA mask pata_amd 0000:00:06.0: using 32bit consistent DMA mask mptsas 0000:0c:04.0: using 64bit DMA mask mptsas 0000:0c:04.0: using 64bit consistent DMA mask forcedeth 0000:00:08.0: using 39bit DMA mask forcedeth 0000:00:08.0: using 39bit consistent DMA mask niu 0000:02:00.0: using 44bit DMA mask niu 0000:02:00.0: using 44bit consistent DMA mask sata_nv 0000:00:05.0: using 32bit DMA mask sata_nv 0000:00:05.0: using 32bit consistent DMA mask ib_mthca 0000:03:00.0: using 64bit DMA mask ib_mthca 0000:03:00.0: using 64bit consistent DMA mask Reviewed-by: Grant Grundler <grundler@google.com> Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 453d6ba6811e..be91a09c74a5 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2101,6 +2101,7 @@ pci_set_dma_mask(struct pci_dev *dev, u64 mask)
2101 return -EIO; 2101 return -EIO;
2102 2102
2103 dev->dma_mask = mask; 2103 dev->dma_mask = mask;
2104 dev_dbg(&dev->dev, "using %dbit DMA mask\n", fls64(mask));
2104 2105
2105 return 0; 2106 return 0;
2106} 2107}
@@ -2112,6 +2113,7 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
2112 return -EIO; 2113 return -EIO;
2113 2114
2114 dev->dev.coherent_dma_mask = mask; 2115 dev->dev.coherent_dma_mask = mask;
2116 dev_dbg(&dev->dev, "using %dbit consistent DMA mask\n", fls64(mask));
2115 2117
2116 return 0; 2118 return 0;
2117} 2119}