drm/amdgpu: fix 64bit BAR detection
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -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 ; }
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180108135147.41819-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Ping? Alex, David, anybody?
Am 08.01.2018 um 14:51 schrieb Christian König:
Quoted 15 lines
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 <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) · line 632
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -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 ; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
Reviewed-byQuoted 6 lines · Christian König
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 <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -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 ; } --2.14.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx