summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
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);
}