diff options
author | 2018-01-07 10:18:57 +0100 | |
---|---|---|
committer | 2018-01-10 15:44:54 -0500 | |
commit | 0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7 (patch) | |
tree | 04c5f8ac76852aee58f002ff9e21a0560a0346db /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amdgpu: optimize moved handling only when vm_debug is inactive (diff) | |
download | wireguard-linux-0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7.tar.xz wireguard-linux-0ebb7c5405941bde1d5ddaa806f6085e6a6deaa7.zip |
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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
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; } |