aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-01-07 04:18:57 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-01-10 15:44:54 -0500
commit0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7 (patch)
tree04c5f8ac76852aee58f002ff9e21a0560a0346db /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent9b8cad2047ddcce761b0665ba7e601228df82bfd (diff)
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 <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
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)
626 root = root->parent; 626 root = root->parent;
627 627
628 pci_bus_for_each_resource(root, res, i) { 628 pci_bus_for_each_resource(root, res, i) {
629 if (res && res->flags & IORESOURCE_MEM_64 && 629 if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
630 res->start > 0x100000000ull) 630 res->start > 0x100000000ull)
631 break; 631 break;
632 } 632 }