Bug 46274

Summary: Reading from /sys/kernel/debug/dri/0/radeon_ring_cp* cause null-pointer dereference
Product: DRI Reporter: Thomas Lindroth <thomas.lindroth>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Only create additional ring info files on Cayman or newer none

Description Thomas Lindroth 2012-02-19 01:33:00 UTC
Using evergreen(cedar) hardware reading from /sys/kernel/debug/dri/0/radeon_ring_cp[12] cause null-pointer dereference with latest linus git(3.3-rc4).
Comment 1 Michel Dänzer 2012-02-20 09:24:58 UTC
Created attachment 57337 [details] [review]
Only create additional ring info files on Cayman or newer

This patch should not create the additional files at all for your card. I've only been able to compile-test it, does it work for you?
Comment 2 Michel Dänzer 2012-02-22 01:55:59 UTC
I've tested the fix and submitted it, should make it into 3.3 final.
Comment 3 Florian Mickler 2012-02-27 14:29:59 UTC
A patch referencing this bug report has been merged in Linux v3.3-rc5:

commit f0d14daa6906070ca044b86f483fdde7d81f5294
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 21 17:39:15 2012 +0100

    drm/radeon: Only create additional ring debugfs files on Cayman or newer.
Comment 4 Michel Dänzer 2012-02-28 00:03:24 UTC
Resolving per comment #3.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.