aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-08-31 17:54:07 -0400
committerDave Airlie <airlied@redhat.com>2011-09-06 06:55:08 -0400
commitfcf4de5acf09889e3f0c131ebe385c983006d71b (patch)
treebe714bec3efe39f1b4952d372ed2f1090362e3b0 /drivers/gpu/drm/radeon
parent2ae7b03c26948eddf7c0dd80e1f4eb09140f2698 (diff)
drm/radeon: Print gart initialization details on all chipsets
This was previously done for r300 only. Use %016llX instead of %08X for printing the table address. Also fix typos in gart warning messages. Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c3
-rw-r--r--drivers/gpu/drm/radeon/ni.c3
-rw-r--r--drivers/gpu/drm/radeon/r100.c3
-rw-r--r--drivers/gpu/drm/radeon/r300.c5
-rw-r--r--drivers/gpu/drm/radeon/r600.c3
-rw-r--r--drivers/gpu/drm/radeon/radeon_gart.c4
-rw-r--r--drivers/gpu/drm/radeon/rs400.c3
-rw-r--r--drivers/gpu/drm/radeon/rs600.c3
-rw-r--r--drivers/gpu/drm/radeon/rv770.c3
9 files changed, 26 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index d8d71a399f52..0b517e16fd3a 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -910,6 +910,9 @@ int evergreen_pcie_gart_enable(struct radeon_device *rdev)
910 WREG32(VM_CONTEXT1_CNTL, 0); 910 WREG32(VM_CONTEXT1_CNTL, 0);
911 911
912 evergreen_pcie_gart_tlb_flush(rdev); 912 evergreen_pcie_gart_tlb_flush(rdev);
913 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
914 (unsigned)(rdev->mc.gtt_size >> 20),
915 (unsigned long long)rdev->gart.table_addr);
913 rdev->gart.ready = true; 916 rdev->gart.ready = true;
914 return 0; 917 return 0;
915} 918}
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index a2e00fa9c618..3b8b849643d0 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -996,6 +996,9 @@ int cayman_pcie_gart_enable(struct radeon_device *rdev)
996 WREG32(VM_CONTEXT1_CNTL, 0); 996 WREG32(VM_CONTEXT1_CNTL, 0);
997 997
998 cayman_pcie_gart_tlb_flush(rdev); 998 cayman_pcie_gart_tlb_flush(rdev);
999 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
1000 (unsigned)(rdev->mc.gtt_size >> 20),
1001 (unsigned long long)rdev->gart.table_addr);
999 rdev->gart.ready = true; 1002 rdev->gart.ready = true;
1000 return 0; 1003 return 0;
1001} 1004}
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index f2204cb1ccdf..574f2c7c6dd9 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -513,6 +513,9 @@ int r100_pci_gart_enable(struct radeon_device *rdev)
513 tmp = RREG32(RADEON_AIC_CNTL) | RADEON_PCIGART_TRANSLATE_EN; 513 tmp = RREG32(RADEON_AIC_CNTL) | RADEON_PCIGART_TRANSLATE_EN;
514 WREG32(RADEON_AIC_CNTL, tmp); 514 WREG32(RADEON_AIC_CNTL, tmp);
515 r100_pci_gart_tlb_flush(rdev); 515 r100_pci_gart_tlb_flush(rdev);
516 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
517 (unsigned)(rdev->mc.gtt_size >> 20),
518 (unsigned long long)rdev->gart.table_addr);
516 rdev->gart.ready = true; 519 rdev->gart.ready = true;
517 return 0; 520 return 0;
518} 521}
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c
index 55a7f190027e..33f2b68c680b 100644
--- a/drivers/gpu/drm/radeon/r300.c
+++ b/drivers/gpu/drm/radeon/r300.c
@@ -144,8 +144,9 @@ int rv370_pcie_gart_enable(struct radeon_device *rdev)
144 tmp |= RADEON_PCIE_TX_GART_UNMAPPED_ACCESS_DISCARD; 144 tmp |= RADEON_PCIE_TX_GART_UNMAPPED_ACCESS_DISCARD;
145 WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp); 145 WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp);
146 rv370_pcie_gart_tlb_flush(rdev); 146 rv370_pcie_gart_tlb_flush(rdev);
147 DRM_INFO("PCIE GART of %uM enabled (table at 0x%08X).\n", 147 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
148 (unsigned)(rdev->mc.gtt_size >> 20), table_addr); 148 (unsigned)(rdev->mc.gtt_size >> 20),
149 (unsigned long long)table_addr);
149 rdev->gart.ready = true; 150 rdev->gart.ready = true;
150 return 0; 151 return 0;
151} 152}
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index aa5571b73aa0..334aee6eab7c 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -993,6 +993,9 @@ int r600_pcie_gart_enable(struct radeon_device *rdev)
993 WREG32(VM_CONTEXT0_CNTL + (i * 4), 0); 993 WREG32(VM_CONTEXT0_CNTL + (i * 4), 0);
994 994
995 r600_pcie_gart_tlb_flush(rdev); 995 r600_pcie_gart_tlb_flush(rdev);
996 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
997 (unsigned)(rdev->mc.gtt_size >> 20),
998 (unsigned long long)rdev->gart.table_addr);
996 rdev->gart.ready = true; 999 rdev->gart.ready = true;
997 return 0; 1000 return 0;
998} 1001}
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index a533f52fd163..fdc3a9a54bf8 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -142,7 +142,7 @@ void radeon_gart_unbind(struct radeon_device *rdev, unsigned offset,
142 u64 page_base; 142 u64 page_base;
143 143
144 if (!rdev->gart.ready) { 144 if (!rdev->gart.ready) {
145 WARN(1, "trying to unbind memory to unitialized GART !\n"); 145 WARN(1, "trying to unbind memory from uninitialized GART !\n");
146 return; 146 return;
147 } 147 }
148 t = offset / RADEON_GPU_PAGE_SIZE; 148 t = offset / RADEON_GPU_PAGE_SIZE;
@@ -174,7 +174,7 @@ int radeon_gart_bind(struct radeon_device *rdev, unsigned offset,
174 int i, j; 174 int i, j;
175 175
176 if (!rdev->gart.ready) { 176 if (!rdev->gart.ready) {
177 WARN(1, "trying to bind memory to unitialized GART !\n"); 177 WARN(1, "trying to bind memory to uninitialized GART !\n");
178 return -EINVAL; 178 return -EINVAL;
179 } 179 }
180 t = offset / RADEON_GPU_PAGE_SIZE; 180 t = offset / RADEON_GPU_PAGE_SIZE;
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c
index aa6a66eeb4ec..89a6e1ecea8d 100644
--- a/drivers/gpu/drm/radeon/rs400.c
+++ b/drivers/gpu/drm/radeon/rs400.c
@@ -182,6 +182,9 @@ int rs400_gart_enable(struct radeon_device *rdev)
182 /* Enable gart */ 182 /* Enable gart */
183 WREG32_MC(RS480_AGP_ADDRESS_SPACE_SIZE, (RS480_GART_EN | size_reg)); 183 WREG32_MC(RS480_AGP_ADDRESS_SPACE_SIZE, (RS480_GART_EN | size_reg));
184 rs400_gart_tlb_flush(rdev); 184 rs400_gart_tlb_flush(rdev);
185 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
186 (unsigned)(rdev->mc.gtt_size >> 20),
187 (unsigned long long)rdev->gart.table_addr);
185 rdev->gart.ready = true; 188 rdev->gart.ready = true;
186 return 0; 189 return 0;
187} 190}
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c
index 4b5d0e6974a8..9320dd6404f6 100644
--- a/drivers/gpu/drm/radeon/rs600.c
+++ b/drivers/gpu/drm/radeon/rs600.c
@@ -484,6 +484,9 @@ static int rs600_gart_enable(struct radeon_device *rdev)
484 tmp = RREG32_MC(R_000009_MC_CNTL1); 484 tmp = RREG32_MC(R_000009_MC_CNTL1);
485 WREG32_MC(R_000009_MC_CNTL1, (tmp | S_000009_ENABLE_PAGE_TABLES(1))); 485 WREG32_MC(R_000009_MC_CNTL1, (tmp | S_000009_ENABLE_PAGE_TABLES(1)));
486 rs600_gart_tlb_flush(rdev); 486 rs600_gart_tlb_flush(rdev);
487 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
488 (unsigned)(rdev->mc.gtt_size >> 20),
489 (unsigned long long)rdev->gart.table_addr);
487 rdev->gart.ready = true; 490 rdev->gart.ready = true;
488 return 0; 491 return 0;
489} 492}
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
index 4720d000d440..80928f9ff80f 100644
--- a/drivers/gpu/drm/radeon/rv770.c
+++ b/drivers/gpu/drm/radeon/rv770.c
@@ -161,6 +161,9 @@ int rv770_pcie_gart_enable(struct radeon_device *rdev)
161 WREG32(VM_CONTEXT0_CNTL + (i * 4), 0); 161 WREG32(VM_CONTEXT0_CNTL + (i * 4), 0);
162 162
163 r600_pcie_gart_tlb_flush(rdev); 163 r600_pcie_gart_tlb_flush(rdev);
164 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n",
165 (unsigned)(rdev->mc.gtt_size >> 20),
166 (unsigned long long)rdev->gart.table_addr);
164 rdev->gart.ready = true; 167 rdev->gart.ready = true;
165 return 0; 168 return 0;
166} 169}