From: Takashi Iwai <tiwai@suse.de>
To: "Zhang, Xiong Y" <xiong.y.zhang@intel.com>
Cc: "Yang, Libin" <libin.yang@intel.com>,
"Lu, Han" <han.lu@intel.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] ALSA: hda - Set intel hda controller power at freeze() and thaw()
Date: Thu, 17 Dec 2015 10:24:39 +0100 [thread overview]
Message-ID: <s5hk2odv354.wl-tiwai@suse.de> (raw)
In-Reply-To: <8082FF9BCB2B054996454E47167FF4EC0B10DD9A@SHSMSX104.ccr.corp.intel.com>
On Thu, 17 Dec 2015 10:05:08 +0100,
Zhang, Xiong Y wrote:
>
> > > -----Original Message-----
> > > From: Takashi Iwai [mailto:tiwai@suse.de]
> > > Sent: Thursday, December 17, 2015 3:44 PM
> > > To: Zhang, Xiong Y
> > > Cc: alsa-devel@alsa-project.org; Yang, Libin; Lu, Han
> > > Subject: Re: [alsa-devel] [PATCH] ALSA: hda - Set intel hda controller
> > > power at freeze() and thaw()
> > >
> > > On Thu, 17 Dec 2015 07:58:44 +0100,
> > > Xiong Zhang wrote:
> > > >
> > > > It takes three minutes to enter into hibernation on some OEM SKL
> > > > machines and we see many codec spurious response after thaw()
> > > opertion.
> > > > This is because HDA is still in D0 state after freeze() call and
> > > > pci_pm_freeze/pci_pm_freeze_noirq() don't set D3 hot in pci_bus
> > > driver.
> > > > It seems bios still access HDA when system enter into freeze state,
> > > > HDA will receive codec response interrupt immediately after thaw() call.
> > > > Because of this unexpected interrupt, HDA enter into a abnormal
> > > > state and slow down the system enter into hibernation.
> > > >
> > > > In this patch, we put HDA into D3 hot state in azx_freeze_noirq() and
> > > > put HDA into D0 state in azx_thaw_noirq().
> > >
> > > A slight concern is whether this would cause any impact on older
> > > chipsets. I don't believe it would, but BIOSen are often crazy
> > > sensitive about such a detail.
> > >
> > > Maybe safer to limit this to SKL+? I guess Broxton should be covered
> > > as well?
> >
> > As the issue fixed by the patch is only found on SKL, I agree to
> > limit it to SKL+. And apply it to other old platforms later if necessary.
> >
> > BTW: We have tested it on BDW and SKL. It works on both platforms.
> >
> [Zhang, Xiong Y] Ok, I will apply the fix to SKL+. But how could I identify the HDA is SKL+
> 1) HDA device ID or define macro IS_SKL_PLUS with DID, this means hard code
> 2) use AZX_DCAPS_I915_POWERWELL, this means applying it to HSW+
> 3) add a new AZX_DCAPS_xxxx bit, but the bit for pci->driver_date is valuable and hda_intel driver has used most of the bit. Only bit 11, 22 and 31 are left.
I suppose 1. You already hardcoded for PCI ID check to be Intel
only.
Takashi
next prev parent reply other threads:[~2015-12-17 9:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-17 6:58 [PATCH] ALSA: hda - Set intel hda controller power at freeze() and thaw() Xiong Zhang
2015-12-17 7:43 ` Takashi Iwai
2015-12-17 8:29 ` Yang, Libin
2015-12-17 9:05 ` Zhang, Xiong Y
2015-12-17 9:24 ` Takashi Iwai [this message]
2015-12-18 5:29 ` [PATCH] ALSA: hda - Set SKL+ " Xiong Zhang
2015-12-18 8:39 ` Takashi Iwai
2015-12-18 8:51 ` 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=s5hk2odv354.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=han.lu@intel.com \
--cc=libin.yang@intel.com \
--cc=xiong.y.zhang@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 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.