All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai-l3A5Bk7waGM@public.gmane.org>
To: "Kazlauskas,
	Nicholas" <Nicholas.Kazlauskas-5C7GfCeVMHo@public.gmane.org>
Cc: "Li, Sun peng (Leo)" <Sunpeng.Li-5C7GfCeVMHo@public.gmane.org>,
	"Wentland, Harry" <Harry.Wentland-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 2/2] drm/amd/display: Add drm_audio_component support to amdgpu_dm
Date: Fri, 19 Jul 2019 11:24:52 +0200	[thread overview]
Message-ID: <s5h4l3icr6j.wl-tiwai@suse.de> (raw)
In-Reply-To: <s5hh87k3hx4.wl-tiwai-l3A5Bk7waGM@public.gmane.org>

On Wed, 17 Jul 2019 15:32:55 +0200,
Takashi Iwai wrote:
> 
> On Wed, 10 Jul 2019 16:36:19 +0200,
> Takashi Iwai wrote:
> > 
> > On Wed, 10 Jul 2019 16:31:40 +0200,
> > Kazlauskas, Nicholas wrote:
> > > 
> > > On 7/10/19 9:48 AM, Takashi Iwai wrote:
> > > > On Tue, 09 Jul 2019 18:30:19 +0200,
> > > > Nicholas Kazlauskas wrote:
> > > >>
> > > >> [Why]
> > > >> The drm_audio_component can be used to give pin ELD notifications
> > > >> directly to the sound driver. This fixes audio endpoints disappearing
> > > >> due to missing unsolicited notifications.
> > > >>
> > > >> [How]
> > > >> Send the notification via the audio component whenever we enable or
> > > >> disable audio state on a stream. This matches what i915 does with
> > > >> their drm_audio_component and what Takashi Iwai's proposed hack for
> > > >> radeon/amdpgu did.
> > > >>
> > > >> This is a bit delayed in when the notification actually occurs, however.
> > > >> We wait until after all the programming is complete rather than sending
> > > >> the notification mid sequence.
> > > >>
> > > >> Particular care is needed for the get ELD callback since it can happen
> > > >> outside the locking and fencing DRM does for atomic commits.
> > > >>
> > > >> Cc: Takashi Iwai <tiwai@suse.de>
> > > >> Cc: Leo Li <sunpeng.li@amd.com>
> > > >> Cc: Harry Wentland <harry.wentland@amd.com>
> > > >> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
> > > > 
> > > > Thanks for the patch, this has been a long-standing TODO for me, too!
> > > > 
> > > > Do you have the patch for HD-audio part as well?  Or you tested with
> > > > my old patch?  Then I'll resurrect my patch set as well.
> > > 
> > > I've tested this series with and without that patch. The notifications 
> > > work and the driver will query back with get_eld as expected.
> > 
> > OK, then I'm going to prepare a branch including that patch.
> 
> FWIW, my latest patches are found in topic/hda-acomp branch on sound
> git tree:
>   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/hda-acomp
> 
> There have been a slight refactoring in HD-audio side, and now it
> supports both AMD and Nvidia audio component support.  The branch
> contains the patches for radeon and nouveau support.
> 
> Note that the branch isn't permanent one, it'll be rebased later.
> Once after I submit and get the review for the HD-audio patches, I'll
> create an immutable branch based on 5.3-rc1 containing those HD-audio
> patches (but not DRM ones), so that you can pull into your drm tree
> for the completeness.

BTW, one thing I forgot to add: i915 audio component recently added
the device-link for assuring the PM call order.  More specifically, in
the component bind and unbind callbacks, device_link_add() and
device_link_del() get called respectively.  I guess the similar calls
are needed for AMDGPU driver as well.


thanks,

Takashi
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      parent reply	other threads:[~2019-07-19  9:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-09 16:30 [PATCH 1/2] drm/amd/display: Expose audio inst from DC to DM Nicholas Kazlauskas
     [not found] ` <20190709163019.32085-1-nicholas.kazlauskas-5C7GfCeVMHo@public.gmane.org>
2019-07-09 16:30   ` [PATCH 2/2] drm/amd/display: Add drm_audio_component support to amdgpu_dm Nicholas Kazlauskas
     [not found]     ` <20190709163019.32085-2-nicholas.kazlauskas-5C7GfCeVMHo@public.gmane.org>
2019-07-10  3:14       ` Alex Deucher
2019-07-10 13:48       ` Takashi Iwai
     [not found]         ` <s5hy316q9u8.wl-tiwai-l3A5Bk7waGM@public.gmane.org>
2019-07-10 14:31           ` Kazlauskas, Nicholas
     [not found]             ` <fea8c06d-dd4a-ae18-31d9-d0f9d0a0cd88-5C7GfCeVMHo@public.gmane.org>
2019-07-10 14:36               ` Takashi Iwai
     [not found]                 ` <s5hmuhmq7mk.wl-tiwai-l3A5Bk7waGM@public.gmane.org>
2019-07-17 13:32                   ` Takashi Iwai
     [not found]                     ` <s5hh87k3hx4.wl-tiwai-l3A5Bk7waGM@public.gmane.org>
2019-07-19  9:24                       ` Takashi Iwai [this message]

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=s5h4l3icr6j.wl-tiwai@suse.de \
    --to=tiwai-l3a5bk7wagm@public.gmane.org \
    --cc=Harry.Wentland-5C7GfCeVMHo@public.gmane.org \
    --cc=Nicholas.Kazlauskas-5C7GfCeVMHo@public.gmane.org \
    --cc=Sunpeng.Li-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.