summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-01-07 12:18:57 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-01-10 23:44:54 +0300
commit0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7 (patch)
tree04c5f8ac76852aee58f002ff9e21a0560a0346db /drivers/gpu
parent9b8cad2047ddcce761b0665ba7e601228df82bfd (diff)
downloadlinux-0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7.tar.xz
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')
-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)
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;
}