Bug 80434 - [HSW/BDW] Asus PA238Q monitor: there's no DP 48Khz sound output after resume from S3
Summary: [HSW/BDW] Asus PA238Q monitor: there's no DP 48Khz sound output after resume ...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 00:43 UTC by Libin Yang
Modified: 2017-07-24 22:53 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg with drm.debug=0xe (244.27 KB, text/plain)
2014-06-25 07:09 UTC, Libin Yang
no flags Details
before suspend (9.38 KB, text/plain)
2014-06-25 07:20 UTC, Libin Yang
no flags Details
after resume (9.37 KB, text/plain)
2014-06-25 07:21 UTC, Libin Yang
no flags Details

Description Libin Yang 2014-06-24 00:43:30 UTC
Steps to reproduce:
1. aplay -D hw:0,7 /home/$USER/Music/1_WAV_PCM_48000Hz_stereo_16bit.wav
2. rtcwake -m mem -s 10
3. aplay -D hw:0,7 /home/$USER/Music/1_WAV_PCM_48000Hz_stereo_16bit.wav
Phenomenon:
at step 1: music cat be played successful
at step 3: music was be playing, but no sound output
Note:
The test steps have been run both on ASUS and DELL monitor, but the bug only appears on ASUS PA238Q monitor, not on DELL.

This issue only happens to ASUS PA238Q monitor's DisplayPort for 48KHz audio.

Reproduced on both Haswell and Broadwell.
Comment 1 Todd Previte 2014-06-24 04:26:16 UTC
So this doesn't happen with other sample rates on the same monitor? There's really not a lot of information to go on here. Can you provide a dmesg log with drm.debug=0xe set? 

-T
Comment 2 Jani Nikula 2014-06-24 09:16:34 UTC
And which kernel version? Did you try current drm-intel-nightly?

Also, intel_reg_dumper output before suspend and after resume might prove useful.
Comment 3 dog 2014-06-24 14:30:39 UTC
Note that this problem has been seen on one brand of DP monitor when using 48KHz audio.  When the problem happens and audio is not heard, if the monitor is power cycled, the audio is heard.

Todd:  could one vendor's monitor have a FW bug that would cause such a unique issue?  Or, when power cycles, does the monitor reset audio parameters in the OS vis the AUX channel?

Note that for anyone exploring the bug, the exact ASUS DP monitor must be used.
Comment 4 Libin Yang 2014-06-25 07:09:39 UTC
Created attachment 101720 [details]
dmesg with drm.debug=0xe

This is all the dmesg of init, playback, rtcwake, and playback again
Comment 5 Libin Yang 2014-06-25 07:17:28 UTC
Hi all,

It only happens with 48KHz.

I'm working on drm-intel-nightly, 3.15.0-rc3. I will test on the latest drm-intel-nightly later.

Today I find another interesting clue: WHen there is no sound, if I reload the audio driver, the sound comes back.

Based on all the symptom, I think this may be the asynchronous issue between audio driver and video driver. As other monitor is OK, is there any possibility that gfx driver delays while audio driver setup with the wrong information for the special monitor.

Thanks,
Libin
Comment 6 Libin Yang 2014-06-25 07:20:21 UTC
Created attachment 101721 [details]
before suspend
Comment 7 Libin Yang 2014-06-25 07:21:00 UTC
Created attachment 101722 [details]
after resume
Comment 8 Jani Nikula 2014-09-08 14:09:07 UTC
We've fixed some HDMI/DP audio suspend/resume problems a while back. Please re-test with current upstream v3.17-rc's or drm-intel-nightly.
Comment 9 Libin Yang 2014-09-09 02:45:46 UTC
Hi Jani Nikula,

Our QA has tested and found this issue is fixed on the latest kernel.

Do you have any idea which patches may fix this issue?

Thanks,
Libin
Comment 10 Jani Nikula 2014-09-09 07:36:43 UTC
(In reply to comment #9)
> Our QA has tested and found this issue is fixed on the latest kernel.
> 
> Do you have any idea which patches may fix this issue?

My best guess is
commit e4d9e513dedb5ac4e166c1053314fa935ddecc8c
Author: Mengdong Lin <mengdong.lin@intel.com>
Date:   Thu Jul 3 17:02:23 2014 +0800

    ALSA: hda - restore BCLK M/N value as per CDCLK for HSW/BDW display HDA controller

and its dependency
commit c149dcb5c60bfea8871f16dfcc0690255eeb825f
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Jul 4 10:00:37 2014 +0800

    drm/i915: provide interface for audio driver to query cdclk
Comment 11 Libin Yang 2014-09-10 00:40:21 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Our QA has tested and found this issue is fixed on the latest kernel.
> > 
> > Do you have any idea which patches may fix this issue?
> 
> My best guess is
> commit e4d9e513dedb5ac4e166c1053314fa935ddecc8c
> Author: Mengdong Lin <mengdong.lin@intel.com>
> Date:   Thu Jul 3 17:02:23 2014 +0800
> 
>     ALSA: hda - restore BCLK M/N value as per CDCLK for HSW/BDW display HDA
> controller
> 
> and its dependency
> commit c149dcb5c60bfea8871f16dfcc0690255eeb825f
> Author: Jani Nikula <jani.nikula@intel.com>
> Date:   Fri Jul 4 10:00:37 2014 +0800
> 
>     drm/i915: provide interface for audio driver to query cdclk

got it. Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.