mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
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>
This commit is contained in:
parent
9b8cad2047
commit
0ebb7c5405
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user