From: "Dieter Nützel" <Dieter-0hun7QTegEsDD4udEopG9Q@public.gmane.org>
To: Yrjan Skrimstad <yrjan-i8zSYrfQCDxH4x6Dk/4f9A@public.gmane.org>
Cc: "David Airlie" <airlied-cv59FeDIM0c@public.gmane.org>,
"Harry Wentland" <Harry.Wentland-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
"Alex Deucher" <alexander.deucher-5C7GfCeVMHo@public.gmane.org>,
"Evan Quan" <evan.quan-5C7GfCeVMHo@public.gmane.org>,
"Rex Zhu" <rex.zhu-5C7GfCeVMHo@public.gmane.org>,
"Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>
Subject: Re: [PATCH] drm/amd/powerplay/smu7_hwmgr: replace blocking delay with non-blocking
Date: Thu, 13 Jun 2019 02:46:43 +0200 [thread overview]
Message-ID: <b6c658153f1c8d3a18ef4718fbb88706@nuetzel-hh.de> (raw)
In-Reply-To: <20190604202149.GA20116@obi-wan>
CC trimmed
Hello Alex and Harry,
any comments on this?
I'm running my Xeon X3470 (4c/8t) with this under amd-staging-drm-next
(as always ;-) ) and see no issues so far.
Thanks!
Dieter
Am 04.06.2019 22:21, schrieb Yrjan Skrimstad:
> On Thu, May 30, 2019 at 02:08:21AM +0200, Yrjan Skrimstad wrote:
>> This driver currently contains a repeated 500ms blocking delay call
>> which causes frequent major buffer underruns in PulseAudio. This patch
>> fixes this issue by replacing the blocking delay with a non-blocking
>> sleep call.
>
> I see that I have not explained this bug well enough, and I hope that
> is
> the reason for the lack of replies on this patch. I will here attempt
> to
> explain the situation better.
>
> To start with some hardware description I am here using an AMD R9 380
> GPU, an AMD Ryzen 7 1700 Eight-Core Processor and an AMD X370 chipset.
> If any more hardware or software specifications are necessary, please
> ask.
>
> The bug is as follows: When playing audio I will regularly have major
> audio issues, similar to that of a skipping CD. This is reported by
> PulseAudio as scheduling delays and buffer underruns when running
> PulseAudio verbosely and these scheduling delays are always just under
> 500ms, typically around 490ms. This makes listening to any music quite
> the horrible experience as PulseAudio constantly will attempt to rewind
> and catch up. It is not a great situation, and seems to me to quite
> clearly be a case where regular user space behaviour has been broken.
>
> I want to note that this audio problem was not something I experienced
> until recently, it is therefore a new bug.
>
> I have bisected the kernel to find out where the problem originated and
> found the following commit:
>
> # first bad commit: [f5742ec36422a39b57f0256e4847f61b3c432f8c]
> drm/amd/powerplay: correct power reading on fiji
>
> This commit introduces a blocking delay (mdelay) of 500ms, whereas the
> old behaviour was a smaller blocking delay of only 1ms. This seems to
> me
> to be very curious as the scheduling delays of PulseAudio are always
> almost 500ms. I have therefore with the previous patch replaced the
> scheduling delay with a non-blocking sleep (msleep).
>
> The results of the patch seems promising as I have yet to encounter any
> of the old <500ms scheduling delays when using it and I have also not
> encountered any kernel log messages regarding sleeping in an atomic
> context.
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2019-06-13 0:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 0:08 [PATCH] drm/amd/powerplay/smu7_hwmgr: replace blocking delay with non-blocking Yrjan Skrimstad
2019-06-04 20:21 ` Yrjan Skrimstad
2019-06-13 0:46 ` Dieter Nützel [this message]
2019-06-13 13:57 ` Alex Deucher
2019-06-16 14:43 ` Yrjan Skrimstad
2019-07-04 20:15 ` Yrjan Skrimstad
2019-07-05 20:34 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6c658153f1c8d3a18ef4718fbb88706@nuetzel-hh.de \
--to=dieter-0hun7qtegesdd4udeopg9q@public.gmane.org \
--cc=Harry.Wentland-5C7GfCeVMHo@public.gmane.org \
--cc=airlied-cv59FeDIM0c@public.gmane.org \
--cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=christian.koenig-5C7GfCeVMHo@public.gmane.org \
--cc=evan.quan-5C7GfCeVMHo@public.gmane.org \
--cc=rex.zhu-5C7GfCeVMHo@public.gmane.org \
--cc=yrjan-i8zSYrfQCDxH4x6Dk/4f9A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox