]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: use GTT for VRAM on APUs only if GTT is larger
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jan 2025 20:20:05 +0000 (15:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:08 +0000 (21:04 -0500)
commit759e764f7d587283b4e0b01ff930faca64370e59
tree48ebd7e09d09b636a5be0635e817b5e302171137
parent8b0d068e7dd177eca506d908622095b4a6c9d168
drm/amdkfd: use GTT for VRAM on APUs only if GTT is larger

If the user has configured a large carveout on a small APU,
only use GTT for VRAM allocations if GTT is larger than
VRAM.

v2: fix reversed check (Philip)

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c