drm/amdgpu: extend MacBook VRAM-at-0 workaround to VERDE
Subsystems (2)
PATCH 1/1 drm/amdgpu: extend MacBook VRAM-at-0 workaround to VERDE
The existing MacBook workaround reserves VRAM at address 0 for Polaris ASICs when the iGPU is enabled. This prevents cursor allocations from landing at address 0.
A MacBookPro11,5 with Radeon R9 M370X (VERDE) hits the same failure mode. Hardware cursor updates repeatedly log "DC: Cursor address is 0!" followed by
"DC failed to set cursor attributes".
Extend the existing workaround to CHIP_VERDE. With this change, hardware cursor operation is stable, the cursor errors remain at zero during repeated cursor movement, and cursor disappearance and flicker are no longer observed.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -0
@@ -1086,6 +1086,7 @@ void amdgpu_gmc_init_vga_resv_regions(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; +case CHIP_VERDE :case CHIP_POLARIS10 :case CHIP_POLARIS11 :case CHIP_POLARIS12 :
Signature · 1 line
2.55.0
Quoted 10 lines · Ayhan Çiçek
The existing MacBook workaround reserves VRAM at address 0 for Polaris ASICs when the iGPU is enabled. This prevents cursor allocations from landing at address 0.
A MacBookPro11,5 with Radeon R9 M370X (VERDE) hits the same failure mode. Hardware cursor updates repeatedly log "DC: Cursor address is 0!" followed by
"DC failed to set cursor attributes".
Quoted 4 lines
Extend the existing workaround to
CHIP_VERDE. With this change, hardware cursor operation is stable, the cursor errors remain at zero during repeated cursor movement, and cursor disappearance and flicker are no longer observed.
Sounds like this may be consistent for most or all Macs. How about something like the attached patch?
Alex
Quoted 19 lines
Signed-off-by Ayhan Çiçek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1
-1@@ -1086,6 +1086,7 @@ void amdgpu_gmc_init_vga_resv_regions(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; +case CHIP_VERDE :case CHIP_POLARIS10 :case CHIP_POLARIS11 :case CHIP_POLARIS12 : --
Quoted 2 lines
2.55.0
From a92384b77af3818310b471c9ef0484a1a64e8166 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Fri, 25 Sep 2026 09:16:26 -0400
Subject: [PATCH] drm/amdgpu: make Mac FB workaround generic
Rather than adding a case of every chip where this is seen just check if the FB is at 0 and the ssid is apple. This should cover all chips which fall into this case.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +7 -10
@@ -1086,20 +1086,17 @@ void amdgpu_gmc_init_vga_resv_regions(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; -case CHIP_POLARIS10 : -case CHIP_POLARIS11 : -case CHIP_POLARIS12 : -/* MacBookPros with switchable graphics put VRAM at 0 when -* the iGPU is enabled which results in cursor issues if -* the cursor ends up at 0. Reserve vram at 0 in that case. -*/ -if (adev->gmc.vram_start ==0 ) - adev->mman.keep_stolen_vga_memory = true; -break ;default : adev->mman.keep_stolen_vga_memory = false;break ; } +/* MacBookPros with switchable graphics put VRAM at 0 when +* the iGPU is enabled which results in cursor issues if +* the cursor ends up at 0. Reserve vram at 0 in that case. +*/ +if ((adev->pdev->subsystem_vendor ==PCI_VENDOR_ID_APPLE ) && + (adev->gmc.vram_start ==0 )) + adev->mman.keep_stolen_vga_memory = true;if (amdgpu_sriov_vf (adev) || !amdgpu_device_has_display_hardware (adev)) {
Signature · 1 line
2.55.0
Thanks, that approach makes sense and looks cleaner than handling individual ASICs.
I'll test the attached generic patch on the affected MacBookPro11,5 with the Radeon R9 M370X (VERDE), with the hardware cursor enabled. I'll verify that the original symptoms do not return and that the kernel no longer reports:
DC: Cursor address is 0!
DC failed to set cursor attributes
I'll report back with the test results and add my Tested-by if everything works as expected.
Thanks,
Ayhan
Alex Deucher <[email protected]>, 25 Eyl 2026 Cum, 16:19 tarihinde şunu yazdı:
Quoted 45 lines · Ayhan Çiçek
Quoted 10 lines
The existing MacBook workaround reserves VRAM at address 0 for Polaris ASICs when the iGPU is enabled. This prevents cursor allocations from landing at address 0.
A MacBookPro11,5 with Radeon R9 M370X (VERDE) hits the same failure mode. Hardware cursor updates repeatedly log "DC: Cursor address is 0!" followed by
"DC failed to set cursor attributes".Quoted 4 lines
Extend the existing workaround to
CHIP_VERDE. With this change, hardware cursor operation is stable, the cursor errors remain at zero during repeated cursor movement, and cursor disappearance and flicker are no longer observed.Sounds like this may be consistent for most or all Macs. How about something like the attached patch?
Alex
Review
Quoted 7 lines
Signed-off-by Ayhan Çiçek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.cdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c void amdgpu_gmc_init_vga_resv_regions(struct
Quoted 4 lines
index
1bf2a42fa..9e7f9cc2b100644drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +0
-0@@ -1086,6 +1086,7 @@ void amdgpu_gmc_init_vga_resv_regions(struct
amdgpu_device*adev)Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1
-1case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; +case CHIP_VERDE :case CHIP_POLARIS10 :case CHIP_POLARIS11 :case CHIP_POLARIS12 : --2.55.0
Signature · 5 lines
Ayhan ÇİÇEK Software Architect +90 532 291 21 62 http://www.ayhancicek.com
Ayhan Çicek
Tested-byApologies for the delayed response. I wasn’t able to test the patch immediately because I had surgery, so it took me a little longer than expected to get back to this. Thank you for your
patience.
I tested the generic patch on the affected MacBookPro11,5 with a Radeon R9 M370X (VERDE).
The test was performed with the hardware cursor enabled and without the Mutter software-cursor workaround.
Before and after repeated cursor movement, the kernel log remained at zero occurrences of:
DC: Cursor address is 0!
DC failed to set cursor attributes
I also did not observe any cursor disappearance, flickering, or instability during testing.
The generic patch appears to fix the issue on this hardware.
Thanks,
Ayhan
26 Eyl 2026 Cmt 01:24 tarihinde Ayhan Çicek <[email protected]> şunu yazdı:
Quoted 75 lines
Thanks, that approach makes sense and looks cleaner than handling individual ASICs.
I'll test the attached generic patch on the affected MacBookPro11,5 with the Radeon R9 M370X (VERDE), with the hardware cursor enabled. I'll verify that the original symptoms do not return and that the kernel no longer reports:
DC: Cursor address is 0!
DC failed to set cursor attributes
I'll report back with the test results and add my Tested-by if everything works as expected.
Thanks,
AyhanAlex Deucher <[email protected]>, 25 Eyl 2026 Cum, 16:19 tarihinde şunu yazdı:
Quoted 27 lines · Ayhan Çiçek
Quoted 10 lines
The existing MacBook workaround reserves VRAM at address 0 for Polaris ASICs when the iGPU is enabled. This prevents cursor allocations from landing at address 0.
A MacBookPro11,5 with Radeon R9 M370X (VERDE) hits the same failure mode. Hardware cursor updates repeatedly log "DC: Cursor address is 0!" followed by
"DC failed to set cursor attributes".Quoted 4 lines
Extend the existing workaround to
CHIP_VERDE. With this change, hardware cursor operation is stable, the cursor errors remain at zero during repeated cursor movement, and cursor disappearance and flicker are no longer observed.Sounds like this may be consistent for most or all Macs. How about something like the attached patch?
Alex
Quoted 6 lines
Signed-off-by Ayhan Çiçek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 + 1 file changed, 1 insertion(+)Quoted 18 lines
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.cdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c void amdgpu_gmc_init_vga_resv_regions(struct
Quoted 4 lines
index
1bf2a42fa..9e7f9cc2b100644drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +0
-0@@ -1086,6 +1086,7 @@ void amdgpu_gmc_init_vga_resv_regions(struct
amdgpu_device*adev)Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1
-1case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; +case CHIP_VERDE :case CHIP_POLARIS10 :case CHIP_POLARIS11 :case CHIP_POLARIS12 : --2.55.0
--
Ayhan ÇİÇEK
Software Architect+90 532 291 21 62
http://www.ayhancicek.com