]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: use GTT only as fallback for VRAM|GTT
authorChristian König <christian.koenig@amd.com>
Mon, 27 Nov 2023 14:26:41 +0000 (15:26 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 1 Mar 2024 16:12:26 +0000 (17:12 +0100)
commit216c1282dde38ca87ebdf1ccacee5a0682901574
treeeb9b6dae676f7f74335d9842ceabbb48913f3201
parentcc941c70df3927be89dfb875a9b3cec3ef5cf2c8
drm/amdgpu: use GTT only as fallback for VRAM|GTT

Try to fill up VRAM as well by setting the busy flag on GTT allocations.

This fixes the issue that when VRAM was evacuated for suspend it's never
filled up again unless the application is restarted.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240229134003.3688-2-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c