]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: keep vga memory on MacBooks with switchable graphics
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Feb 2026 15:02:32 +0000 (10:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Feb 2026 17:16:11 +0000 (12:16 -0500)
commit096bb75e13cc508d3915b7604e356bcb12b17766
tree5a483d91ffc35358c4a4fba7145c5f97bdc13230
parent23c098b5fc89c17cec6b25ebe071f47a54b7d613
drm/amdgpu: keep vga memory on MacBooks with switchable graphics

On Intel MacBookPros with switchable graphics, when the iGPU
is enabled, the address of VRAM gets put at 0 in the dGPU's
virtual address space.  This is non-standard and seems to cause
issues with the cursor if it ends up at 0.  We have the framework
to reserve memory at 0 in the address space, so enable it here if
the vram start address is 0.

Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4302
Cc: stable@vger.kernel.org
Cc: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c