[Bug 106525] [CI][IGT] DRM-Tip 4.17-rc5 RIP: 0010:snd_hdac_display_power dmesg splat

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 13 14:23:09 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106525

--- Comment #6 from Takashi Iwai <tiwai at suse.de> ---
(In reply to Imre Deak from comment #5)
> Looks like a refcounting bug in the HDA driver:
> WARN_ON(!bus->drm_power_refcount);

Hm, the device free gets called during it being suspended.
A shot in the dark:

--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -834,7 +834,8 @@ static int snd_hda_codec_dev_free(struct snd_device
*device)

        codec->in_freeing = 1;
        snd_hdac_device_unregister(&codec->core);
-       snd_hdac_link_power(&codec->core, false);
+       if (pm_runtime_active(hda_codec_dev(codec)))
+               snd_hdac_link_power(&codec->core, false);
        put_device(hda_codec_dev(codec));
        return 0;
 }


> Takashi, is there a bugzilla for the HDA driver we could we move this ticket
> to?

Feel free to move to bugzilla.kernel.org.  Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20180913/445f31fa/attachment.html>


More information about the intel-gfx-bugs mailing list