[PATCH] drm/amdgpu: fix 64bit BAR detection
Alex Deucher
alexdeucher at gmail.com
Wed Jan 10 16:32:21 UTC 2018
On Mon, Jan 8, 2018 at 8:51 AM, Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
> 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 at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index e91575311646..7114f2527edc 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;
> }
> --
> 2.14.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list