Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"Zanoni, Paulo R" <paulo.r.zanoni@intel.com>,
	"Li, Jocelyn" <jocelyn.li@intel.com>,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
	Wang Xingchao <xingchao.wang@linux.intel.com>,
	"Hindman, Gavin" <gavin.hindman@intel.com>,
	"Barnes, Jesse" <jesse.barnes@intel.com>,
	"Girdwood, Liam R" <liam.r.girdwood@intel.com>,
	"Lin, Mengdong" <mengdong.lin@intel.com>
Subject: Re: [PATCH] drm/i915: Add private api for power well usage -- alignment between graphic team and audio team
Date: Fri, 26 Apr 2013 17:45:15 +0200	[thread overview]
Message-ID: <s5hzjwlz46s.wl%tiwai@suse.de> (raw)
In-Reply-To: <20130426154207.GP6169@phenom.ffwll.local>

At Fri, 26 Apr 2013 17:42:07 +0200,
Daniel Vetter wrote:
> 
> On Fri, Apr 26, 2013 at 05:12:34PM +0200, Takashi Iwai wrote:
> > At Fri, 26 Apr 2013 16:57:08 +0200,
> > Daniel Vetter wrote:
> > > 
> > > On Fri, Apr 26, 2013 at 07:53:41AM +0000, Li, Jocelyn wrote:
> > > > -----Original Message-----
> > > > From: Daniel Vetter [mailto:daniel.vetter@ffwll.ch] 
> > > > Sent: Friday, April 26, 2013 3:25 PM
> > > > To: Li, Jocelyn
> > > > Cc: Wang, Xingchao; Zanoni, Paulo R; ville.syrjala@linux.intel.com; Lin, Mengdong; Girdwood, Liam R; intel-gfx@lists.freedesktop.org; alsa-devel@alsa-project.org; Wang Xingchao; Takashi Iwai; Barnes, Jesse; Wysocki, Rafael J; Hindman, Gavin
> > > > Subject: Re: [PATCH] drm/i915: Add private api for power well usage -- alignment between graphic team and audio team
> > > > Once we've figured out what needs to be changed in the audio driver we
> > > > can look at the entire patch series and the interface to i915.ko.
> > > > That's also why I didn't comment on Xingchao's patch right away, but
> > > > only once he specifically asked for feedback, since doing a real review
> > > > of the interface doesn't make sense until we have all the pieces (and a
> > > > working audio driver).
> > > > 
> > > > [Jocelyn] I think you have made constructive comments on Xingchao's
> > > > patch yesterday. Next, shall we have Xingchao improve his patch? Or we
> > > > just have Xingchao wait till you have completed your pieces. Sorry, I am
> > > > a little confused :)
> > > 
> > > I think the next step is to use Xinchao's patch as-is and get the audio
> > > side going. Once we have that fixed up, we can revisit the interface and
> > > make it solid. But for now trying to polish this relatively simple part
> > > seems like wasted time.
> > > 
> > > Also, reviewing an interface is much easier if we have both the i915
> > > pieces (already here) and the audio pieces (which I haven't seen yet)
> > > avaialble.
> > 
> > I haven't checked the patch properly yet, but the patch pasted in the
> > post looks like i915 driver exports the functions to control power
> > well, and let audio driver calling them.  If so, the big mess in such
> > a case is the dependency between driver modules.
> > 
> > A simple workaround would be to split this function and the relevant
> > instance out of i915 and snd-hda-intel and put into an individual
> > module (e.g. i915-powerwell-ctl).
> 
> Yeah, the current patch doesn't work for loading i915/snd-hda-intel in any
> order. But it should be good enough to fix the hw interactions.

Well, my current concern is that the call is built into snd-hda-intel
module and this will lead to load i915 module no matter whether it's
used or not.  snd-hda-intel is used for any HD-audio controllers
(despite its name).  Loading i915 on a pure AMD system will annoy some
non-Intel people :)

Even if we built the code via ifdef CONFIG_DRM_I915 or such, it's
still hardcoded, thus the problem above will occur with distro
kernels.


> > Also, it would be feasible to implement some PM governor over both
> > graphics and audio, that is, it gives the proper serialization of
> > power up for audio controller, for example.
> 
> Yeah, I think once we have the hw interaction/sequence and stuff all
> figured out we need to figure out what kind of interface would suit best
> here. One of the options we've talked about a bit is a full runtime PM
> governor on a special device. Then only the device needs to be
> instantiated first, the audio driver could just grab runtime pm references
> and i915 could implement the PM backend.
> 
> But like I've said, those considerations should be a second step once we
> have something working with a quickly hacked-together interface.

Yep, I agree that we'll need a quick fix at this stage.


thanks,

Takashi

  reply	other threads:[~2013-04-26 15:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26  6:58 [PATCH] drm/i915: Add private api for power well usage -- alignment between graphic team and audio team Li, Jocelyn
2013-04-26  7:24 ` Daniel Vetter
2013-04-26  7:53   ` Li, Jocelyn
2013-04-26 14:57     ` Daniel Vetter
2013-04-26 15:12       ` Takashi Iwai
2013-04-26 15:42         ` Daniel Vetter
2013-04-26 15:45           ` Takashi Iwai [this message]
2013-04-26 17:17             ` Daniel Vetter
2013-04-27  9:20               ` Wang, Xingchao
2013-04-27 11:35                 ` Daniel Vetter
2013-04-29 15:02                   ` Jesse Barnes
2013-04-30 10:29                     ` David Henningsson
2013-04-30 14:38                       ` Jesse Barnes
2013-05-02  3:17                         ` Lin, Mengdong
2013-04-30 14:41                       ` [alsa-devel] " Liam Girdwood
2013-05-02 14:49                         ` David Henningsson
2013-05-03  8:28                           ` [alsa-devel] " Wang, Xingchao
2013-05-03 12:02                             ` David Henningsson
2013-05-03 14:31                               ` Takashi Iwai
2013-05-02  7:11                     ` Wang, Xingchao
2013-05-03 14:26                     ` Takashi Iwai
2013-05-03 15:17                       ` Wang, Xingchao
2013-04-27  8:54         ` Wang, Xingchao
2013-04-27  8:46       ` Wang, Xingchao

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=s5hzjwlz46s.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel@ffwll.ch \
    --cc=gavin.hindman@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jesse.barnes@intel.com \
    --cc=jocelyn.li@intel.com \
    --cc=liam.r.girdwood@intel.com \
    --cc=mengdong.lin@intel.com \
    --cc=paulo.r.zanoni@intel.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=xingchao.wang@linux.intel.com \
    /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