All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "Lin, Mengdong" <mengdong.lin@intel.com>, alsa-devel@alsa-project.org
Subject: Re: HD-audio runtime PM
Date: Mon, 25 Nov 2013 11:25:46 +0100	[thread overview]
Message-ID: <529325AA.7060208@canonical.com> (raw)
In-Reply-To: <s5hr4a4bznw.wl%tiwai@suse.de>

On 11/25/2013 10:26 AM, Takashi Iwai wrote:
> At Mon, 25 Nov 2013 10:20:55 +0100,
> David Henningsson wrote:
>>
>> On 11/25/2013 08:17 AM, Takashi Iwai wrote:
>>> At Mon, 25 Nov 2013 07:32:57 +0100,
>>> David Henningsson wrote:
>>>>
>>>> On 11/22/2013 12:57 PM, Takashi Iwai wrote:
>>>>> Hi,
>>>>>
>>>>> after my previous fix, the runtime PM seems working stably finally.
>>>>> However, there seem still some glitches:
>>>>>
>>>>> 1. The wakeup via jack or HDMI/DP detection doesn't seem to work on my
>>>>>   test machines.  WAKEEN is set properly.  And its value can be read
>>>>>   correctly at the point of runtime resume, too.
>>>>
>>>> Hi and thanks for working on this.
>>>>
>>>> I've been trying to reproduce the above, but I can't seem to activate
>>>> runtime PM at all. I can't seem to get a callback to runtime_suspend,
>>>> and further investigation shows that
>>>> /sys/class/sound/card0/power/runtime_status shows "unsupported".
>>>
>>> You need to adjust power/control of the parent PCM device,
>>> i.e. /sys/devices/pci/*/power/control.  The following udev rule should
>>> work for HD-audio.  Give it a try.
>>>
>>>   ACTION=="add", SUBSYSTEM=="pci", ATTR{class}=="0x040300", TEST=="power/control", ATTR{power/control}="auto"
>>
>> I tried this rule, but it did not make any difference -
>> /sys/class/sound/card0/device/power/control was still on. (And I did
>> proofread the rule...)
> 
> This (and other sound/*) doesn't matter.  Only the entry in the PCI
> device counts.  It's the runtime PM of the PCI device after all.
> (Remember that the runtime PM callbacks are set only on this device.)

But /sys/class/sound/card0/device is just a symlink for
/sys/devices/pci0000:00/0000:00:03.0 - is this not the PCI device you're
talking about?

Anyway, power/runtime_status is always active, and power/usage_count is
always 1. (And pulseaudio is not running, and nothing else is using any
/dev/snd/* files.)

> You can put a printk in azx_runtime_suspend().  For Haswell, it should
> work as is with 3.13-rc1.

I guess I could test that, but I doubt it would help...

> For IvyBridge, check sound-unstable test/hda branch.  I'll try to
> merge to sound git tree once after brushing up and submitting for
> review.

Ok. I currently have nothing Ivybridge to check with.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

  reply	other threads:[~2013-11-25 10:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22 11:57 HD-audio runtime PM Takashi Iwai
2013-11-25  6:32 ` David Henningsson
2013-11-25  7:17   ` Takashi Iwai
2013-11-25  9:20     ` David Henningsson
2013-11-25  9:26       ` Takashi Iwai
2013-11-25 10:25         ` David Henningsson [this message]
2013-11-25 10:34           ` Takashi Iwai
2013-11-25 12:22             ` David Henningsson
2013-11-26  1:05 ` Wang Xingchao
2013-11-26  6:14   ` Takashi Iwai
2013-11-26  6:56     ` Lin, Mengdong
2013-11-26  7:28       ` Takashi Iwai
2013-11-26  8:26         ` Takashi Iwai
2013-11-27  9:37           ` Lin, Mengdong
2013-11-27 10:54             ` Takashi Iwai
2013-11-27 11:32               ` Lin, Mengdong
2013-12-09  7:02                 ` Lin, Mengdong
2013-12-10 12:17                   ` Lin, Mengdong
2013-12-10 12:25                     ` Takashi Iwai
2013-12-10 12:34                       ` Lin, Mengdong
2013-12-10 14:25                         ` Takashi Iwai
2013-12-11  5:37                           ` Lin, Mengdong
2013-12-11 13:36                             ` Takashi Iwai
2013-12-12  5:21                               ` Lin, Mengdong
2014-01-24 14:45                               ` Lin, Mengdong
2013-12-11  5:40                           ` Lin, Mengdong
2013-11-26  8:53         ` Lin, Mengdong
2013-11-26  8:56           ` Takashi Iwai
2013-11-26  9:02             ` 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=529325AA.7060208@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=mengdong.lin@intel.com \
    --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.