Bug 43367

Summary: radeon: NULL pointer dereference on switching to dynpm power method
Product: Drivers Reporter: Christoph Haag (haagch.christoph)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal CC: florian
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.5-rc2 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: console log of the bug
possible fix

Description Christoph Haag 2012-06-12 12:59:52 UTC
Created attachment 73570 [details]
console log of the bug

After changing to dynpm with
# echo dynpm > /sys/class/drm/card0/device/power_method
I immediately get the attached kernel Oops.

Power profiles work fine.
Comment 1 Alex Deucher 2012-06-13 21:58:48 UTC
Created attachment 73588 [details]
possible fix

This patch should fix it.
Comment 2 Christoph Haag 2012-06-14 19:45:24 UTC
The patch fixes it. Thank you. :)
Comment 3 Florian Mickler 2012-07-01 09:44:25 UTC
A patch referencing this bug report has been merged in Linux v3.5-rc4:

commit 0ec0612a80f957000999c3f7b31a84e3558c719d
Author: Alex Deucher <alexander.deucher@amd.com>
Date:   Thu Jun 14 15:54:57 2012 -0400

    drm/radeon: fix regression in dynpm due to multi-ring rework