From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91386] Tonga HDMI Audio needs CPU load Date: Sat, 18 Jul 2015 16:46:29 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0271272110==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E2016E02F for ; Sat, 18 Jul 2015 09:46:29 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0271272110== Content-Type: multipart/alternative; boundary="1437237989.EFDBc20.30564"; charset="UTF-8" --1437237989.EFDBc20.30564 Date: Sat, 18 Jul 2015 16:46:29 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91386 Bug ID: 91386 Summary: Tonga HDMI Audio needs CPU load Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: adf.lists@gmail.com There are other reports I know for 270x/280x about HDMI audio needing CPU load I've been testing again on this issue recently with R9 285 and wanted to get a clean report out. Cpu phenom II x4 965be now in a new mobo (asrock) with the tonga. Previous mobo (asus) with 270x also had the issue. I see from other si bugs that people with intel cpu/boards are also affected. rv 790 and onboard rs880 on old mobo didn't have the issue. rv770 on current setup didn't have the issue. Symptoms are that with no cpu load it sounds like the same buffer gets played out repeatedly. With a bit more load progress can be made but there are repeats as well. With almost enough load sounds like a bit of analogue crackle. I've recently found that saying "cpu load" is not really accurate - I can spin cpus without curing the sound, with eg. dd if=/dev/urandom of=/dev/null or tests like cpuburn-1.4a and certain p95/mprime loads. Using mprime it seems what is needed is actually ram/memory controller load. The "torture test" has three options described as - Choose a type of torture test to run. 1 = Small FFTs (maximum heat and FPU stress, data fits in L2 cache, RAM not tested much). 2 = In-place large FFTs (maximum power consumption, some RAM tested). 3 = Blend (tests some of everything, lots of RAM tested). 1 = no fix, 2 = better than 1 but nowhere near right, 3 = OK sound. Historically and recently I've tried many things with no luck - Many sound debugging options, building without hres timers. Disabling cool n quiet in bios. Testing with different hdmi sinks/modes/sample rates/sizes. I only till now used LFS + alsa but now pulse also tested as - Yesterday I dug up an old HD and installed ubuntu 15.04 and installed/updated fglrx - it also has the issue (I was kind of hoping it wouldn't so regs could be compared). The issue does not exist if I boot into windows 7 (unless it's fooling me by always doing something behind the scenes!) So where to go from here? First thought - is there an obvious difference between the way the pre-si driver code does things and what code later h/w hits? Does the type of load needed give any clues? Do people have this h/w on setups without the issue? I don't know what proportion will test HDMI and then they may just look to eg. the kodi forums and be told it's a known issue rather than filing new bugs/adding "a me too". Anything else to test that I've missed? I don't mind spraying printfs/changing things, but don't really know where to start in the code. -- You are receiving this mail because: You are the assignee for the bug. --1437237989.EFDBc20.30564 Date: Sat, 18 Jul 2015 16:46:29 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91386
Summary Tonga HDMI Audio needs CPU load
Product DRI
Version DRI git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter adf.lists@gmail.com

There are other reports I know for 270x/280x about HDMI audio needing CPU load
I've been testing again on this issue recently with R9 285 and wanted to get a
clean report out.

Cpu phenom II x4 965be now in a new mobo (asrock) with the tonga. Previous mobo
(asus) with 270x also had the issue. I see from other si bugs that people with
intel cpu/boards are also affected.

rv 790 and onboard rs880 on old mobo didn't have the issue.

rv770 on current setup didn't have the issue.

Symptoms are that with no cpu load it sounds like the same buffer gets played
out repeatedly. With a bit more load progress can be made but there are repeats
as well. With almost enough load sounds like a bit of analogue crackle.

I've recently found that saying "cpu load" is not really accurate - I can spin
cpus without curing the sound, with eg. dd if=/dev/urandom of=/dev/null or
tests like cpuburn-1.4a and certain p95/mprime loads. Using mprime it seems
what is needed is actually ram/memory controller load. The "torture test" has
three options described as -

Choose a type of torture test to run.
1 = Small FFTs (maximum heat and FPU stress, data fits in L2 cache, RAM 
not tested much).
2 = In-place large FFTs (maximum power consumption, some RAM tested).
3 = Blend (tests some of everything, lots of RAM tested).

1 = no fix, 2 = better than 1 but nowhere near right, 3 = OK sound.

Historically and recently I've tried many things with no luck -

Many sound debugging options, building without hres timers.

Disabling cool n quiet in bios.

Testing with different hdmi sinks/modes/sample rates/sizes.

I only till now used LFS + alsa but now pulse also tested as -

Yesterday I dug up an old HD and installed ubuntu 15.04 and installed/updated
fglrx - it also has the issue (I was kind of hoping it wouldn't so regs could
be compared).

The issue does not exist if I boot into windows 7 (unless it's fooling me by
always doing something behind the scenes!)

So where to go from here?

First thought - is there an obvious difference between the way the pre-si
driver code does things and what code later h/w hits?

Does the type of load needed give any clues?

Do people have this h/w on setups without the issue? I don't know what
proportion will test HDMI and then they may just look to eg. the kodi forums
and be told it's a known issue rather than filing new bugs/adding "a me too".

Anything else to test that I've missed? I don't mind spraying printfs/changing
things, but don't really know where to start in the code.


You are receiving this mail because:
  • You are the assignee for the bug.
--1437237989.EFDBc20.30564-- --===============0271272110== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0271272110==--