]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Resize BAR0 to the maximum available size, even if it doesn't cover VRAM
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 7 Jan 2021 14:15:10 +0000 (15:15 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 14 Jan 2021 20:20:53 +0000 (21:20 +0100)
commit405f12cd3f906a71312586b4b9dd634283a12b8e
tree45fbf0285a0f459ca426e38707d48e5c76ccda46
parentffa0a763c9aaf6c1513ffcdadeff924bd1285669
drm/amdgpu: Resize BAR0 to the maximum available size, even if it doesn't cover VRAM

This allows BAR0 resizing to be done for cards which don't advertise
support for a size large enough to cover the VRAM but which do
advertise at least one size larger than the default. For example,
my RX 5600 XT, which advertises 256MB, 512MB and 1GB.

Signed-off-by: Darren Salt <devspam@moreofthesa.me.uk>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20210107175017.15893-4-nirmoy.das@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c