Skip to contentSkip to conversation

] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

Bug 95015 [email protected] 1 participant 15 messages Apr 19, 2016 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=95015

            Bug ID: 95015
           Summary: [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0
                    test failed (scratch(0x8504)=0xCAFEDEAD)
           Product: DRI
           Version: XOrg git
          Hardware: PowerPC
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: DRM/Radeon
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 123045
--> https://bugs.freedesktop.org/attachment.cgi?id=123045&action=edit
dmesg

Full dmesg attached. I have a Power Mac G5 (late 2005, PCIe) with a Radeon HD 6450 (CAICOS, x86 BIOS) installed on the PCIe x16 slot, and I get this error on boot. I also have a GeForce 6600 (Open Firmware) on a PCIe x8 slot, which works fine, minus the usual nouveau caveats. I have no idea if this is related at all, but the x16 slot is directly connected to the U4 northbridge, and is capable of bypassing the DART IOMMU for 64-bit DMA capable devices (like the Radeon). The other slots are connected to a PCIe bridge on the HyperTransport bus, and DMA always goes through the DART. If needed, I can provide ssh access to the machine.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=95015

Rui Salvaterra <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Rui Salvaterra <[email protected]> --- Created attachment 123179
--> https://bugs.freedesktop.org/attachment.cgi?id=123179&action=edit
dmesg (Radeon on PCIe x8, no IOMMU bypass)

So, today I tried moving the Radeon card from the x16 to the x8 slot, and it initialised correctly, as you can see in the attached dmesg. This bug is most certainly caused by some kind of interaction between the card and the IOMMU (bypass). Can someone please take a look at this? Like I wrote before, I'm willing to provide ssh access to the machine (Power Mac G5), if the bug is hard to reproduce. Thanks in advance!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

Rui Salvaterra <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Rui Salvaterra <[email protected]> --- Adding Benjamin Herrenschmidt to the cc list, for the original [1] patch.

[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-August/085302.html

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

Rui Salvaterra <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Rui Salvaterra <[email protected]> --- *** Bug 89886 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #4 from Oded Gabbay <[email protected]> --- Did you try running a 4.5 kernel ?
I added a POWER relevant fix for radeon in 4.5, which relates to caches (c524498 - drm/radeon: mask out WC from BO on unsupported arches)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #5 from Rui Salvaterra <[email protected]> --- (In reply to Oded Gabbay from comment #4)

Quoted 3 lines

Did you try running a 4.5 kernel ?
I added a POWER relevant fix for radeon in 4.5, which relates to caches (c524498 - drm/radeon: mask out WC from BO on unsupported arches)

Hi, Oded

I compiled 4.6-rc6 today and the result is the same (actually, now that I see, the second dmesg I attached is from 4.6-rc4). The card works on the x8 slot (behind the DART) but not on the x16 slot (bypassing the DART).

Thanks,

Rui

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

Dominik Klementowski <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Dominik Klementowski <[email protected]> --- Created attachment 123548
--> https://bugs.freedesktop.org/attachment.cgi?id=123548&action=edit
dmesg | grep radeon

I use Lenovo Z51-70 laptop with Intel HD5500 and discrete Radeon R9 M375. I wasn't ever be able to switch to faster card and use it with radeon module. (I only was able to run it with fglrx proprietary driver, but it was running so ugly so computer wasn't usable at all).

Once I switched (that was kernel 4.4 i guess), but my screen was blank and after that and I could only reboot laptop to see anything (reboot reaction normally, CTRL+ALT+DEL)
But content of vgaswitcheroo changed from:
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:04:00.0
to:
0:IGD: :Off:0000:00:02.0
1:DIS:+:DynOff:0000:04:00.0

So THERE'S HOPE i thought :D

Quoted 1 line

From kernel 4.5 I have such error and /sys/kernel/debug/vgaswitcheroo file no

longer exists.

If I could provide some logs, do tests or stuff, just let me know.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #7 from Michel D�nzer <[email protected]> --- (In reply to Dominik Klementowski from comment #6)

Quoted 1 line

I use Lenovo Z51-70 laptop [...]

This bug report is about a problem which is specific to a different platform. Please file your own report for your problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #8 from [email protected] ---
I can confirm the exact same error with a PowerMac G5 Quad, only difference is I have an AMD TURKS card. Card works in all slots except the x16 one.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #9 from [email protected] <[email protected]> --- Same bug i face on quad g5 equiped
5450 1 gb and 6570 2gb (x86 vboards).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #10 from [email protected] ---
Created attachment 131264
--> https://bugs.freedesktop.org/attachment.cgi?id=131264&action=edit
Ubuntu 16.04.2 LTS apport-cli output from a Toshiba P200 laptop

I am having the exact same error in a laptop with an Advanced Micro Devices, Inc. [AMD/ATI] RV630/M76 [Mobility Radeon HD 2600].

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #12 from [email protected] ---
(In reply to raulvior.bcn from comment #11)

Quoted 1 line

When I mean the same exact error I mean the same address too.

This:
may 08 19:13:31 username-portatil kernel: [drm:r600_ring_test [radeon]]
*ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

--- Comment #13 from Joshua Cogliati <[email protected]> --- Just for reference, this error comes from the line:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/radeon/r600.c#n2848

Basically, the r600 driver writes 0xCAFEDEAD into a scratch register, then uses a ring write to try and write 0xDEADBEEF into the scratch register, and then waits and then reads the scratch register again to see what is in it. If it is not 0xDEADBEEF, then the test fails and hardware acceleration is turned off.

The important question is why is the ring write failing, and I don't have an answer.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=95015

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #14 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/708.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel