All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Airlie <airlied@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Takashi Iwai <tiwai@suse.de>
Subject: Re: [RFC] drm dynamic power off support
Date: Mon, 10 Sep 2012 15:04:02 +1000	[thread overview]
Message-ID: <CAPM=9twAbBNovDZno2d_rg9Ga7hO60inJkDtC=OFpAF-Voecew@mail.gmail.com> (raw)
In-Reply-To: <1347251515-10136-1-git-send-email-airlied@gmail.com>

On Mon, Sep 10, 2012 at 2:31 PM, Dave Airlie <airlied@gmail.com> wrote:
> For optimus and powerxpress setups where we can explicitly power off
> the GPU I'd like to do this under control of the driver. Now that I've
> added X server support for secondary GPUs, it makes sense to start
> powering them down more often if we can.
>
> I've tested this code on two laptops, one intel/nouveau one intel/radeon
> It works, powertop says I use 5-6W less power.
>
> Caveats:
> There is a race at X server start with platform probing code, if
> the secondary device is off, we the wrong PCI info for it, I've
> got a patch that works around this I'll send to the xorg-devel.
>
> Audio seems to get screwed at least on one machine, we power up
> and the alsa callbacks into snd_hda_intel get called but it can't
> find the hw properly, need to investigate a bit further.
>
> Dave.
>
Hi Takashi,

just wondering how well setup alsa would be for the dGPU powering
up/down a lot more often,
  139.529103] nouveau  [     DRM][0000:01:00.0] resuming display...
[  139.833960] ALSA sound/pci/hda/hda_intel.c:2533 Enabling
0000:01:00.1 via VGA-switcheroo
[  139.844789] snd_hda_intel 0000:01:00.1: Refused to change power
state, currently in D3
[  139.915760] snd_hda_intel 0000:01:00.1: Refused to change power
state, currently in D3
[  140.917437] ALSA sound/pci/hda/hda_intel.c:813 spurious response
0x0:0x3, last cmd=0x301f0500
[  140.917449] ALSA sound/pci/hda/hda_intel.c:813 spurious response
0x0:0x3, last cmd=0x301f0500
[  140.917455] ALSA sound/pci/hda/hda_intel.c:813 spurious response
0x0:0x3, last cmd=0x301f0500
[  140.917460] ALSA sound/pci/hda/hda_intel.c:813 spurious response
0x0:0x3, last cmd=0x301f0500
[  140.917465] ALSA sound/pci/hda/hda_intel.c:813 spurious response
0x0:0x3, last cmd=0x301f0500

is just some of the things I see, if I turn off before snd_hda_intel,
things go badly wrong when
I do power up the dGPU, if I delay the power off until audio is
loaded, I start to see wierd things when pulseaudio starts when the
dGPU is off.

Dave.

  parent reply	other threads:[~2012-09-10  5:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-10  4:31 [RFC] drm dynamic power off support Dave Airlie
2012-09-10  4:31 ` [PATCH 1/5] gpu/vga_switcheroo: add driver control power feature Dave Airlie
2012-09-10  4:31 ` [PATCH 2/5] drm: Add initial dnyamic power off feature Dave Airlie
2012-09-10  7:18   ` Daniel Vetter
2012-09-10  8:23     ` Dave Airlie
2012-09-10  8:36       ` Chris Wilson
2012-09-10 10:55         ` Alan Cox
2012-09-10  9:00       ` Daniel Vetter
2012-09-10 11:07   ` Alan Cox
2012-09-10 11:16     ` Dave Airlie
2012-09-10  4:31 ` [PATCH 3/5] nouveau: Add interface to detect optimus support Dave Airlie
2012-09-10 16:25   ` Lekensteyn
2012-09-10 20:24     ` Dave Airlie
2012-09-10  4:31 ` [PATCH 4/5] nouveau: add dynamic gpu power off support Dave Airlie
2012-09-10 16:30   ` Peter Wu
2012-09-10  4:31 ` [PATCH 5/5] radeon: add dynamic " Dave Airlie
2012-09-10  5:04 ` Dave Airlie [this message]
2012-09-10  8:47   ` [RFC] drm " Takashi Iwai
2012-09-10  8:50     ` Dave Airlie
2012-09-11 13:32       ` Takashi Iwai

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='CAPM=9twAbBNovDZno2d_rg9Ga7hO60inJkDtC=OFpAF-Voecew@mail.gmail.com' \
    --to=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=tiwai@suse.de \
    /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.