Bug 36672 (radeon_switch_off)

Summary: Kernel crashes when radeon is switched off with vga_switcheroo
Product: Drivers Reporter: Ilya Uvarenkov (trukanduk)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED OBSOLETE    
Severity: normal CC: alan, alexdeucher
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.38+ Subsystem:
Regression: No Bisected commit-id:

Description Ilya Uvarenkov 2011-06-04 21:32:26 UTC
I have laptop with ATI Radeon HD 5600 (and also processor i5 with integrated graphics) and Debian linux 6.

When I switch off radeon card (with 'sudo echo OFF > /sys/kernel/debug/vgaswitcheroo/switch'), kernel crashes.

So, I had downloaded kernel sourses and tryed to debug it. I found that function evergreen_suspend(..) (in /drivers/gpu/drm/radeon/evergreen.c) was commented in old kernel versions. If it commented (also in new kernels) switching normally works else kernel will crash with segmentation fault, because rdev->r600_blit (<struct radeon_device*> and <struct r600_blit*>) doesn't init (and in documentation I have founded TODOs like 'write r600_blit') and rdev->r600_blit equals NULL.

I afraid I can't write r600_blit but I think function evergreen_suspend should be commented as in old versions of kernel.

Thanks.
Comment 1 Alex Deucher 2012-08-24 15:41:26 UTC
Is this still an issue on a newer kernel?