Bug 36672 (radeon_switch_off) - Kernel crashes when radeon is switched off with vga_switcheroo
Summary: Kernel crashes when radeon is switched off with vga_switcheroo
Status: RESOLVED OBSOLETE
Alias: radeon_switch_off
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 21:32 UTC by Ilya Uvarenkov
Modified: 2013-12-23 13:43 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.38+
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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?

Note You need to log in before you can comment on or make changes to this bug.