Bug 72283 - [<ffffffffa01b7ecb>] dce6_afmt_write_speaker_allocation+0xdb/0x140 [radeon]
Summary: [<ffffffffa01b7ecb>] dce6_afmt_write_speaker_allocation+0xdb/0x140 [radeon]
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 20:05 UTC by bgunteriv
Modified: 2019-11-19 08:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
possible fix (2.03 KB, patch)
2013-12-03 22:47 UTC, Alex Deucher
no flags Details | Splinter Review
dmesg (66.82 KB, text/plain)
2013-12-09 18:28 UTC, bgunteriv
no flags Details
X.org.0.log (36.07 KB, text/plain)
2013-12-09 18:30 UTC, bgunteriv
no flags Details
dmesg (73.97 KB, text/plain)
2013-12-13 07:19 UTC, Lee Donaghy
no flags Details
Xorg (34.97 KB, text/plain)
2013-12-13 07:20 UTC, Lee Donaghy
no flags Details
possible fix (1.04 KB, patch)
2013-12-13 14:07 UTC, Alex Deucher
no flags Details | Splinter Review
dmesg (78.21 KB, text/plain)
2013-12-13 16:22 UTC, Lee Donaghy
no flags Details
Xorg (34.96 KB, text/plain)
2013-12-13 16:23 UTC, Lee Donaghy
no flags Details
first bad commit (672 bytes, text/plain)
2013-12-13 16:38 UTC, bgunteriv
no flags Details
git bisect log (2.61 KB, text/plain)
2013-12-13 16:41 UTC, bgunteriv
no flags Details
possible fix (2.14 KB, patch)
2013-12-13 17:01 UTC, Alex Deucher
no flags Details | Splinter Review
dmesg (78.65 KB, text/plain)
2013-12-13 18:23 UTC, Lee Donaghy
no flags Details

Description bgunteriv 2013-12-03 20:05:08 UTC
Not sure if this has been known.

After trying to update to kernel 3.13rc2, I get problems booting my mini.iso system.
Once the system loads, it loses the HDMI signal, and I get no picture. 
I get errors talking about the HAWAII drivers not loaded:
update-initramfs: Generating /boot/initrd.img-3.13.0-031300rc2-generic
W: Possible missing firmware /lib/firmware/radeon/HAWAII_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_sdma.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_rlc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_mc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_mec.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_ce.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_me.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/HAWAII_pfp.bin for module radeon

here are my log files:xbmc@xbmc:~$ dmesg | pastebinit 
http://paste.ubuntu.com/6514897/
xbmc@xbmc:~$ cat ~/.xbmc/temp/xbmc.log | pastebinit 
http://paste.ubuntu.com/6514899/
xbmc@xbmc:~$ cat /var/log/Xorg.0.log | pastebinit 
http://paste.ubuntu.com/6514901/
xbmc@xbmc:~$ DISPLAY=:0 vdpauinfo | pastebinit 
[1]+ Stopped DISPLAY=:0 vdpauinfo | pastebinit
xbmc@xbmc:~$ dpkg -l | grep mesa | pastebinit 
http://paste.ubuntu.com/6514909/

as you can see, when I try to run DISPLAY=:0 vdpauinfo, my system hangs, and I have to force kill the command.
Comment 1 Alex Deucher 2013-12-03 22:47:25 UTC
Created attachment 90196 [details] [review]
possible fix

Does the attached patch fix the issue?  Also, please attach files rather than pointing to pastebin since pastebin entries can disappear.
Comment 2 bgunteriv 2013-12-04 14:41:44 UTC
this patch did not fix the issue.

should I attach newer logs?
Comment 3 Alex Deucher 2013-12-04 16:33:26 UTC
(In reply to comment #2)
> this patch did not fix the issue.
> 
> should I attach newer logs?

Does the patch fix the segfault in dce6_afmt_write_speaker_allocation?
Comment 4 Alex Deucher 2013-12-04 16:33:56 UTC
(In reply to comment #2)
> this patch did not fix the issue.
> 
> should I attach newer logs?

Yes, please attach the logs with the patch applied.
Comment 5 bgunteriv 2013-12-05 15:14:14 UTC
now it's saying:
perf samples too long (* > *), lowering kernel.per_event_max_sample_rate to ***

this repeats for about 5 lines
where I have asteriks(*), are random numbers that keep changing every time a new line shows up.

this is the last line:
perf samples too long (463153 > 250000), lowering kernel.per_event_max_sample_rate to 500

seems to have stopped here.
Comment 6 bgunteriv 2013-12-05 20:39:22 UTC
okay,

i was able to get past that last error. 
I apologize, it was a bad kernel build (i'm pretty sure).

now I'm able to get the kernel to load a little more, and I'm now getting this 

on my screen i get:
*ERROR* UVD not responding, trying to reset the VCPU!!!

this repeats until it gives up
then it says:
*ERROR* radeon: failed initializing UVD (-1)

i've had other people report this similar experience with this patch
Comment 7 Alex Deucher 2013-12-05 20:42:37 UTC
(In reply to comment #6)
> okay,
> 
> i was able to get past that last error. 
> I apologize, it was a bad kernel build (i'm pretty sure).
> 
> now I'm able to get the kernel to load a little more, and I'm now getting
> this 
> 
> on my screen i get:
> *ERROR* UVD not responding, trying to reset the VCPU!!!
> 
> this repeats until it gives up
> then it says:
> *ERROR* radeon: failed initializing UVD (-1)

Make sure you have installed the latest rlc ucode for your chip and make sure you've updated the ucode in your initrd if you are using one.

> 
> i've had other people report this similar experience with this patch

Which patch?
Comment 8 bgunteriv 2013-12-05 21:36:08 UTC
> 
> Make sure you have installed the latest rlc ucode for your chip and make
> sure you've updated the ucode in your initrd if you are using one.

I'm not sure what you mean. can you point me in the right direction?
thanks in advance.

> 
> > 
> > i've had other people report this similar experience with this patch
> 
> Which patch?

the patch you provided above.
Comment 9 bgunteriv 2013-12-06 03:33:44 UTC
i copied over the HAWAII drivers from here -> http://people.freedesktop.org/~agd5f/radeon_ucode/

so when i run:
update-initramfs -k all -u

it no longer complains about the HAWAII firmware not installed.
was this the proper way to do this?

when i pull the git version of linux-firmware, these files are not in the repo.
Comment 10 bgunteriv 2013-12-06 13:13:09 UTC
(In reply to comment #8)
> > 
> > Make sure you have installed the latest rlc ucode for your chip and make
> > sure you've updated the ucode in your initrd if you are using one.
> 


my system is just not very stable.

sometimes i get the UVD errors
sometimes i get the reference to [<ffffffffa01b7ecb>] dce6_afmt_write_speaker_allocation+0xdb/0x140 [radeon]

and a couple of times it will get a little bit further, and then freeze. but i can't get any logs, cause it never gets to loading my network.
Comment 11 bgunteriv 2013-12-06 15:24:41 UTC
not sure if these reports will help you.
http://forum.xbmc.org/showthread.php?tid=174854&page=123

i see that you and fritsch are working together on this.

thanks for all your help and support. 
let us know if there is any information that we can give you to help out.
Comment 12 Alex Deucher 2013-12-06 15:58:34 UTC
(In reply to comment #9)
> i copied over the HAWAII drivers from here ->
> http://people.freedesktop.org/~agd5f/radeon_ucode/
> 
> so when i run:
> update-initramfs -k all -u
> 
> it no longer complains about the HAWAII firmware not installed.
> was this the proper way to do this?

Yes.  You can ignore the hawaii errors though since you aren't using a hawaii board.
Comment 13 bgunteriv 2013-12-09 18:28:24 UTC
Created attachment 90534 [details]
dmesg

Here are new logs with the latest drm-intel kernel (http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/current/)
Comment 14 bgunteriv 2013-12-09 18:30:43 UTC
Created attachment 90535 [details]
X.org.0.log
Comment 15 bgunteriv 2013-12-10 14:36:04 UTC
still no signal with the latest kernel from today Dec. 10.

do you need more logs?
Comment 16 Alex Deucher 2013-12-10 14:39:11 UTC
(In reply to comment #15)
> still no signal with the latest kernel from today Dec. 10.

Can you bisect?
Comment 17 bgunteriv 2013-12-10 14:45:42 UTC
i can try.

i can tell you that this started happening as soon as 3.13 started rolling out. 
so, i will try to start there.
Comment 18 bgunteriv 2013-12-10 14:54:32 UTC
which git repo should i use?
https://www.kernel.org/
Comment 19 Alex Deucher 2013-12-10 15:06:40 UTC
Yes, please use Linus' git tree:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Comment 20 bgunteriv 2013-12-11 06:12:56 UTC
3017 revisions between 3.12 - 3.13rc1
wow!!! this is gonna take a while.

is there a faster way???
Comment 21 bgunteriv 2013-12-11 22:09:11 UTC
i think i have found the culprit.

it was a merge that happened right before rc2.

i'm still bisecting, i have about 6 more steps to go.

so, hopefully by the end of the week, i will have a report.
Comment 22 bgunteriv 2013-12-12 18:19:21 UTC
i'm still testing.

this is my log so far: 
root@xbmc:~/linux# git bisect log
# bad: [dc1ccc48159d63eca5089e507c82c7d22ef60839] Linux 3.13-rc2
# good: [5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52] Linux 3.12
git bisect start 'v3.13-rc2' 'v3.12'
# good: [5cbb3d216e2041700231bcfc383ee5f8b7fc8b74] Merge branch 'akpm' (patches from Andrew Morton)
git bisect good 5cbb3d216e2041700231bcfc383ee5f8b7fc8b74
# good: [d8fe4acc88da8fbbe360b6592c9d0abbb85117dc] Merge branch 'akpm' (patch-bomb from Andrew Morton)
git bisect good d8fe4acc88da8fbbe360b6592c9d0abbb85117dc
# good: [4914d7b458e35a7db2f9c7dc6eb014620254bbbf] alpha: Use qemu+cserve provided high-res clock and alarm.
git bisect good 4914d7b458e35a7db2f9c7dc6eb014620254bbbf
# bad: [82023bb7f75b0052f40d3e74169d191c3e4e6286] Merge tag 'pm+acpi-2-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect bad 82023bb7f75b0052f40d3e74169d191c3e4e6286
# bad: [1ea406c0e08c717241275064046d29b5bac1b1db] Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
git bisect bad 1ea406c0e08c717241275064046d29b5bac1b1db

---------------
Comment 23 Lee Donaghy 2013-12-13 07:19:58 UTC
Created attachment 90699 [details]
dmesg

Same problem.
Comment 24 Lee Donaghy 2013-12-13 07:20:30 UTC
Created attachment 90700 [details]
Xorg
Comment 25 Alex Deucher 2013-12-13 14:07:59 UTC
Created attachment 90723 [details] [review]
possible fix

Does this patch fix the issue?
Comment 26 Lee Donaghy 2013-12-13 16:22:55 UTC
Created attachment 90731 [details]
dmesg

Still broken.
Comment 27 Lee Donaghy 2013-12-13 16:23:15 UTC
Created attachment 90732 [details]
Xorg
Comment 28 bgunteriv 2013-12-13 16:38:40 UTC
Created attachment 90735 [details]
first bad commit

so, it says that this is the first bad commit for me.

doesn't seem quite right, and this seems to deal with Samba...
Comment 29 bgunteriv 2013-12-13 16:41:03 UTC
Created attachment 90736 [details]
git bisect log

Here's my full git bisect log.

still not sure if I did this correctly. I never saw a 3.13 kernel build...?
Comment 30 Alex Deucher 2013-12-13 17:01:34 UTC
Created attachment 90737 [details] [review]
possible fix

Does this patch work any better?
Comment 31 Lee Donaghy 2013-12-13 18:23:16 UTC
Created attachment 90739 [details]
dmesg

i now have a working screen.

i get this error in dmesg:
[drm:dce4_afmt_write_speaker_allocation] *ERROR* Couldn't read Speaker Allocation Data Block: 0
but video and audio is working for me.

many thanks.
Comment 32 bgunteriv 2013-12-13 18:51:07 UTC
yup... this patch works!!!

now we just gotta figure out the artifacts :-)
Comment 33 Martin Peres 2019-11-19 08:41:04 UTC
-- 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/414.


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.