]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:21:34 +0000 (07:21 -0500)
commitb1e034af484a4b58a16af19d6777a2ce8d6fd24b
tree1dec08182caad894f50777a8a4c69e44dc740930
parent832f430b6b33705e9cc80d1dddf20c89e88386f3
drm/amdgpu: keep vga memory on MacBooks with switchable graphics

[ Upstream commit 096bb75e13cc508d3915b7604e356bcb12b17766 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c