From: Christian König Date: Sun, 7 Jan 2018 09:18:57 +0000 (+0100) Subject: drm/amdgpu: fix 64bit BAR detection X-Git-Tag: Ubuntu-5.2.0-15.16~5065^2~6^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7;p=mirror_ubuntu-eoan-kernel.git drm/amdgpu: fix 64bit BAR detection Windows added by the BIOS are not marked as 64bit because they are usually not changeable anyway. This fixes large BAR support on my new Ryzen build system. Signed-off-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 357cd8bf2e55..9baf182d5418 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -626,7 +626,7 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) root = root->parent; pci_bus_for_each_resource(root, res, i) { - if (res && res->flags & IORESOURCE_MEM_64 && + if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) && res->start > 0x100000000ull) break; }