summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-01-31 05:04:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-01-31 05:04:24 +0000
commit25ece682b561cc0c243d0c7aa09ebbc08489bbf3 (patch)
tree33cfcb1cae80e9afb3f1c6346c6f42d8d7e73716 /sys/dev/pci
parentf36f72f926e318277c79c672dc96433f0a3e9170 (diff)
revert fb size workaround from amdgpu_gmc.c rev 1.3
djm@ confirms the recently committed 5.5.18 change 'drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2' to use the right register for GMC9 DCN2 (RENOIR, GREEN_SARDINE) is enough on t14 gen 2 amd.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
index a8e4e89edd1..82706b5abe2 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
@@ -704,15 +704,6 @@ void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev)
} else {
size = amdgpu_gmc_get_vbios_fb_size(adev);
-#ifdef __amd64__
- /*
- * XXX Workaround for machines where the framebuffer
- * size reported by the hardware is incorrect.
- */
- extern psize_t efifb_stolen();
- size = max(size, efifb_stolen());
-#endif
-
if (adev->mman.keep_stolen_vga_memory)
size = max(size, (unsigned)AMDGPU_VBIOS_VGA_ALLOCATION);
}