[PATCH xf86-video-tdfx 6/7] Unmap MMIO ranges for all chips
Guillem Jover
guillem at hadrons.org
Mon Oct 7 12:11:24 PDT 2013
This is relevant on SLI setups, where each chip has their own MMIO
range.
Signed-off-by: Guillem Jover <guillem at hadrons.org>
---
src/tdfx_driver.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/tdfx_driver.c b/src/tdfx_driver.c
index 130c066..bcd674f 100644
--- a/src/tdfx_driver.c
+++ b/src/tdfx_driver.c
@@ -1310,9 +1310,12 @@ TDFXUnmapMem(ScrnInfoPtr pScrn)
pci_device_unmap_range(pTDFX->PciInfo[0],
pTDFX->FbBase,
pTDFX->FbMapSize);
- pci_device_unmap_range(pTDFX->PciInfo[0],
- pTDFX->MMIOBase[0],
- TDFXIOMAPSIZE);
+
+ for (i = 0; i < pTDFX->numChips; i++) {
+ pci_device_unmap_range(pTDFX->PciInfo[i],
+ pTDFX->MMIOBase[i],
+ TDFXIOMAPSIZE);
+ }
(void) memset(pTDFX->MMIOBase, 0, sizeof(pTDFX->MMIOBase));
pTDFX->FbBase = NULL;
--
1.8.4
More information about the xorg-devel
mailing list