From: Takashi Iwai <tiwai@suse.de>
To: Imre Deak <imre.deak@intel.com>
Cc: Thomas Voegtle <tv@lio96.de>,
intel-gfx@lists.freedesktop.org, alsa-devel@alsa-project.org
Subject: Re: [Intel-gfx] [PATCH 1/2] ALSA: hda: Release controller display power during shutdown/reboot
Date: Wed, 23 Jun 2021 16:51:55 +0200 [thread overview]
Message-ID: <s5h1r8socqc.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210623134601.2128663-1-imre.deak@intel.com>
On Wed, 23 Jun 2021 15:46:00 +0200,
Imre Deak wrote:
>
> Make sure the HDA driver's display power reference is released during
> shutdown/reboot.
>
> During the shutdown/reboot sequence the pci device core calls the
> pm_runtime_resume handler for all devices before calling the driver's
> shutdown callback and so the HDA driver's runtime resume callback will
> acquire a display power reference (on HSW/BDW). This triggers a power
> reference held WARN on HSW/BDW in the i915 driver's subsequent shutdown
> handler, which expects all display power references to be released by
> that time.
>
> Since the HDA controller is stopped in the shutdown handler in any case,
> let's follow here the same sequence as the one during runtime suspend.
> This will also reset the HDA link and drop the display power reference,
> getting rid of the above WARN.
>
> Tested on HSW.
>
> v2:
> - Fix the build for CONFIG_PM=n (Takashi)
> - s/__azx_runtime_suspend/azx_shutdown_chip/
>
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3618
> References: https://lore.kernel.org/lkml/cea1f9a-52e0-b83-593d-52997fe1aaf6@er-systems.de
> Reported-and-tested-by: Thomas Voegtle <tv@lio96.de>
> Cc: Takashi Iwai <tiwai@suse.de>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
Thanks, applied both patches now.
Takashi
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2021-06-23 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-23 13:46 [Intel-gfx] [PATCH 1/2] ALSA: hda: Release controller display power during shutdown/reboot Imre Deak
2021-06-23 13:46 ` [Intel-gfx] [PATCH 2/2] ALSA: hda: Release codec " Imre Deak
2021-06-23 14:46 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] ALSA: hda: Release controller " Patchwork
2021-06-23 14:51 ` Takashi Iwai [this message]
2021-06-23 15:15 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-06-23 17:41 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-08-10 14:50 ` [Intel-gfx] [PATCH 1/2] " youling257
2021-08-10 15:09 ` youling 257
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=s5h1r8socqc.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=tv@lio96.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox