USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitor
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.
We found adding the delay in "sound/pci/hda/patch_hdmi.c " can fix this issue.(as the attachment) May need your help to review and advice. Thanks.
Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.
sound/pci/hda/patch_hdmi.c +1 -1
@@ -854,7 +854,7 @@ static void haswell_verify_D0(struct hda_codec *codec,* converters are in correct power state */ if (!snd_hda_check_power_state (codec, cvt_nid,AC_PWRST_D0 ))snd_hda_codec_write (codec, cvt_nid,0 ,AC_VERB_SET_POWER_STATE ,AC_PWRST_D0 ); - +msleep (40 );if (!snd_hda_check_power_state (codec, nid,AC_PWRST_D0 )) {snd_hda_codec_write (codec, nid,0 ,AC_VERB_SET_POWER_STATE ,AC_PWRST_D0 );
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.
Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318
Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 10 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.
Quoted 6 lines
[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; nathan.d.cioba [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (T PE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien
(TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file
after unplug and re-plug the monitor
Quoted 4 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when
play video after hot pluging.
Quoted 5 lines
We can reproduce not only on chromebook but also ubuntu 16.04. There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Thanks
.
Quoted 3 lines
Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318
Could you check whether it still happens with the latest upstream kernel, at lea st 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's reall y mandatory. I'm wondering whether the recent write-sync change improves the si tuation, so let's check the recent code.
thanks,
Takashi
Quoted 10 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.
Quoted 6 lines
[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
=======================================================================
========================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information,
by persons or entities other than the intended recipient is prohibited.
=======================================================================
========================================
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Takashi, can you point to the patch series you suspect may have fixed this issue?
Thanks,
Nathan
Quoted 26 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318
Quoted 25 lines
Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 16 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Takashi, can you point to the patch series you suspect may have fixed this issue?
The first suspect would be 2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips
Takashi
Quoted 56 lines
Thanks,
NathanQuoted 51 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 16 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
[email protected]
Reviewed-by Sathyanarayana Nujella Reviewed-by Mathew King Reviewed-by Sean Paul Tested-by Sathyanarayana NujellaHi Takashi
Is the attachment what you suspect? That merged to our kernel v4.19 already, hav e any suggestions? Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:57 AM
To: Nathan Ciobanu <[email protected]>
Cc: Kao. Lucien (TPE) <[email protected]>; Cheng. AJ (TPE) <AJ_Cheng@compal. com>; [email protected]; [email protected]; Wang. CindyX T (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap.
Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file
after unplug and re-plug the monitor
Quoted 5 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer
to attachment), the result is positive which symptom doesn't happen anymore onc
e I played music or video sound output through Dell S2718D Type-C monitor. It se ems had some fix in latest kernel.
Quoted 2 lines
Takashi, can you point to the patch series you suspect may have fixed this iss
ue?
The first suspect would be 2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips
Takashi
Quoted 25 lines
Thanks,
NathanQuoted 22 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 4 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once
when play video after hot pluging.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
We can reproduce not only on chromebook but also ubuntu 16.04. There has higher failure rate with Dell Solomon dock and Dell S2718D monit
or.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Th
anks.
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel, at
least 5.4.y, if it wasn't tested yet?
Quoted 2 lines
Quoted 2 lines
I don't want to put a long delay just because of random reason unless it's r
eally mandatory. I'm wondering whether the recent write-sync change improves th e situation, so let's check the recent code.
Quoted 16 lines
Quoted 16 lines
thanks,
Takashi
Quoted 10 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
=======================================================================
========================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information,
by persons or entities other than the intended recipient is prohibited.
=======================================================================
========================================
From da6e9a5dbb81f0ce039a2079aa79366a5889d516 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Fri, 19 Jul 2019 10:27:54 +0200
Subject: [PATCH] UPSTREAM: ALSA: hda - Fix intermittent CORB/RIRB stall on
Intel chips
It turned out that the recent Intel HD-audio controller chips show a significant stall during the system PM resume intermittently. It doesn't happen so often and usually it may read back successfully after one or more seconds, but in some rare worst cases the driver went into fallback mode.
After trial-and-error, we found out that the communication stall seems covered by issuing the sync after each verb write, as already done for AMD and other chipsets. So this patch enables the write-sync flag for the recent Intel chips, Skylake and onward, as a workaround.
Also, since Broxton and co have the very same driver flags as Skylake, refer to the Skylake driver flags instead of defining the same contents again for simplification.
BUG=b:140610533
TEST="run suspend_stress_test for 1000 cycles and only saw one cycle
audio codec suspend time > 1sec"
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1827072
--- sound/pci/hda/hda_intel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/pci/hda/hda_intel.c +2 -3
@@ -328,11 +328,10 @@ enum {#define AZX_DCAPS_INTEL_SKYLAKE \ (AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ + AZX_DCAPS_SYNC_WRITE |\ AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT) -#define AZX_DCAPS_INTEL_BROXTON \ - (AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ - AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT) +#define AZX_DCAPS_INTEL_BROXTON AZX_DCAPS_INTEL_SKYLAKE/* quirks for ATI SB / AMD Hudson */ #define AZX_DCAPS_PRESET_ATI_SB \
Signature · 1 line
2.7.4
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 4 lines · On Wed, 08 Jan 2020 04:07:17 +0100, <[email protected]> wrote:
Hi Takashi
Is the attachment what you suspect? That merged to our kernel v4.19 already, have any suggestions? Thanks.
Then I have no concrete idea. It might be some other changes in HDMI codec driver or it might be a fix in i915 graphics side, or even thunderbolt or whatever, too...
Takashi
Quoted 99 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:57 AM
To: Nathan Ciobanu <[email protected]>
Cc: Kao. Lucien (TPE) <[email protected]>; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Takashi, can you point to the patch series you suspect may have fixed this issue?
The first suspect would be
2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chipsTakashi
Quoted 61 lines
Thanks,
NathanQuoted 56 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 16 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561
Mobile : +886-932827829
COMPAL Electronics, Inc.[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel==============================================================================
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information,
by persons or entities other than the intended recipient is prohibited.
==============================================================================
=================================
Quoted 4 lines
[1.2 <text/plain; us-ascii (base64)>]
[2 0001-UPSTREAM-ALSA-hda-Fix-intermittent-CORB-RIRB-stall-o.patch <application/octet-stream (base64)>]
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi Takashi
Sorry to bother you again, during this period I do some experiment then issue may be fixed by my local patch, but I am not sure, however may I have your suggestion if you are available.
I put snd_hda_codec_read and snd_hda_codec_set_power_to_all ahead then add debug log in function haswell_verify_D0 I found my changes cause cvt_nid and nid could get "power state: 1" every single time after re-plug type-c cable then playing music, you can see flash_once_fixed_messages in details. But without my patch which nid gets "power state: 0" and external type-c monitor flashes once after playing music. Assume my finding is right, do we have chance to submit code to fix issue? Thanks.
With patch
2020-02-12T00:58:27.496016-08:00 ERR kernel: [ 47.729823] @@@ cvt_nid power state: 1 2020-02-12T00:58:27.496024-08:00 ERR kernel: [ 47.729883] @@@ nid power state: 1
Without patch
2020-02-12T00:55:36.795016-08:00 ERR kernel: [ 125.047502] @@@ cvt_nid power state: 1 2020-02-12T00:55:36.795026-08:00 ERR kernel: [ 125.047565] @@@ nid power state: 0
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:18 PM
To: Kao. Lucien (TPE) <[email protected]>
Cc: [email protected]; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitor
Quoted 4 lines · On Wed, 08 Jan 2020 04:07:17 +0100, <[email protected]> wrote:
Hi Takashi
Is the attachment what you suspect? That merged to our kernel v4.19 already, have any suggestions? Thanks.
Then I have no concrete idea. It might be some other changes in HDMI codec driver or it might be a fix in i915 graphics side, or even thunderbolt or whatever, too...
Takashi
Quoted 106 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:57 AM
To: Nathan Ciobanu <[email protected]>
Cc: Kao. Lucien (TPE) <[email protected]>; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Takashi, can you point to the patch series you suspect may have fixed this issue?
The first suspect would be
2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chipsTakashi
Quoted 60 lines
Thanks,
NathanQuoted 55 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can
fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 15 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561 Mobile : +886-932827829 COMPAL Electronics, Inc.[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel======================================================================
========
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.
======================================================================
========
=================================
Quoted 5 lines
[1.2 <text/plain; us-ascii (base64)>]
[2 0001-UPSTREAM-ALSA-hda-Fix-intermittent-CORB-RIRB-stall-o.patch <application/octet-stream (base64)>]
sound/pci/hda/patch_hdmi.c +5 -3
@@ -852,6 +852,8 @@ static void haswell_verify_D0(struct hda_codec *codec,/* For Haswell, the converter 1/2 may keep in D3 state after bootup, * thus pins could only choose converter 0 for use. Make sure the * converters are in correct power state */ +printk (KERN_ERR "@@@ cvt_nid power state: %d\n" ,snd_hda_check_power_state (codec, cvt_nid,AC_PWRST_D0 )); +printk (KERN_ERR "@@@ nid power state: %d\n" ,snd_hda_check_power_state (codec, nid,AC_PWRST_D0 ));if (!snd_hda_check_power_state (codec, cvt_nid,AC_PWRST_D0 ))snd_hda_codec_write (codec, cvt_nid,0 ,AC_VERB_SET_POWER_STATE ,AC_PWRST_D0 );
@@ -2470,13 +2472,13 @@ static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec)static void haswell_set_power_state (struct hda_codec *codec,hda_nid_t fg,unsigned int power_state) { +snd_hda_codec_read (codec, fg,0 ,AC_VERB_SET_POWER_STATE , power_state); +snd_hda_codec_set_power_to_all (codec, fg, power_state); +if (power_state ==AC_PWRST_D0 ) {intel_haswell_enable_all_pins (codec, false);intel_haswell_fixup_enable_dp12 (codec); } - -snd_hda_codec_read (codec, fg,0 ,AC_VERB_SET_POWER_STATE , power_state); -snd_hda_codec_set_power_to_all (codec, fg, power_state); }/* There is a fixed mapping between audio pin node and display port.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · On Wed, 12 Feb 2020 10:37:30 +0100, <[email protected]> wrote:
Hi Takashi
Sorry to bother you again, during this period I do some experiment then issue may be fixed by my local patch, but I am not sure, however may I have your suggestion if you are available.
I putsnd_hda_codec_readandsnd_hda_codec_set_power_to_allahead then add debug log in functionhaswell_verify_D0I found my changes causecvt_nidand nid could get "power state: 1" every single time after re-plug type-c cable then playing music, you can seeflash_once_fixed_messagesin details. But without my patch which nid gets "power state: 0" and external type-c monitor flashes once after playing music. Assume my finding is right, do we have chance to submit code to fix issue? Thanks.
Is the issue reproduced with the latest upstream code (or at least 5.4.y stable)?
Then yeah, we need to take a deeper look.
thanks,
Takashi
Quoted 152 lines
With patch
2020-02-12T00:58:27.496016-08:00 ERR kernel: [ 47.729823] @@@ cvt_nid power state: 1 2020-02-12T00:58:27.496024-08:00 ERR kernel: [ 47.729883] @@@ nid power state: 1Without patch
2020-02-12T00:55:36.795016-08:00 ERR kernel: [ 125.047502] @@@ cvt_nid power state: 1 2020-02-12T00:55:36.795026-08:00 ERR kernel: [ 125.047565] @@@ nid power state: 0-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:18 PM
To: Kao. Lucien (TPE) <[email protected]>
Cc: [email protected]; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 4 lines · On Wed, 08 Jan 2020 04:07:17 +0100, <[email protected]> wrote:
Hi Takashi
Is the attachment what you suspect? That merged to our kernel v4.19 already, have any suggestions? Thanks.
Then I have no concrete idea. It might be some other changes in HDMI codec driver or it might be a fix in i915 graphics side, or even thunderbolt or whatever, too...
Takashi
Quoted 106 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:57 AM
To: Nathan Ciobanu <[email protected]>
Cc: Kao. Lucien (TPE) <[email protected]>; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please refer to attachment), the result is positive which symptom doesn't happen anymore once I played music or video sound output through Dell S2718D Type-C monitor. It seems had some fix in latest kernel.
Takashi, can you point to the patch series you suspect may have fixed this issue?
The first suspect would be
2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chipsTakashi
Quoted 60 lines
Thanks,
NathanQuoted 55 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 7 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash once when play video after hot pluging. We can reproduce not only on chromebook but also ubuntu 16.04.
There has higher failure rate with Dell Solomon dock and Dell S2718D monitor.Quoted 5 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can
fix this issue.(as the attachment) May need your help to review and advice. Thanks.Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel, at least 5.4.y, if it wasn't tested yet?
I don't want to put a long delay just because of random reason unless it's really mandatory. I'm wondering whether the recent write-sync change improves the situation, so let's check the recent code.
thanks,
Takashi
Quoted 15 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561 Mobile : +886-932827829 COMPAL Electronics, Inc.[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel======================================================================
========
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.
======================================================================
========
=================================Quoted 5 lines
[1.2 <text/plain; us-ascii (base64)>]
[2 0001-UPSTREAM-ALSA-hda-Fix-intermittent-CORB-RIRB-stall-o.patch <application/octet-stream (base64)>]
==============================================================================
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information,
by persons or entities other than the intended recipient is prohibited.
==============================================================================
=================================
Quoted 8 lines
[1.2 <text/plain; us-ascii (base64)>]
[2
flash_once_fixed_messages<application/octet-stream (base64)>][3
flash_once_present_messages<application/octet-stream (base64)>][4 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
This issue we found in kernel 4.19.x, but Ubuntu 19.10 (kernel 5.4.x stable) iss ue not found. We are chromebook team, so for our product design it shouldn't be upgraded kernel to 5.4.x, however does it has any chance to fix issue in kernel 4.19.x?
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, February 12, 2020 6:04 PM
To: Kao. Lucien (TPE) <[email protected]>
Cc: [email protected]; Cheng. AJ (TPE) <[email protected]>; int [email protected]; [email protected]; Wang. CindyXT (TPE) < [email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (T PE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file
after unplug and re-plug the monitor
Quoted 4 lines · On Wed, 12 Feb 2020 10:37:30 +0100, <[email protected]> wrote:
Hi Takashi
Sorry to bother you again, during this period I do some experiment then issue
may be fixed by my local patch, but I am not sure, however may I have your sugge stion if you are available.
Quoted 1 line
I put
snd_hda_codec_readandsnd_hda_codec_set_power_to_allahead then add deb
ug log in function haswell_verify_D0 I found my changes cause cvt_nid and nid co uld get "power state: 1" every single time after re-plug type-c cable then playi ng music, you can see flash_once_fixed_messages in details. But without my patch
which nid gets "power state: 0" and external type-c monitor flashes once after
playing music. Assume my finding is right, do we have chance to submit code to f ix issue? Thanks.
Is the issue reproduced with the latest upstream code (or at least 5.4.y stable) ?
Then yeah, we need to take a deeper look.
thanks,
Takashi
Quoted 3 lines
With patch
2020-02-12T00:58:27.496016-08:00 ERR kernel: [ 47.729823] @@@ cvt_nid power
state: 1
Quoted 1 line
2020-02-12T00:58:27.496024-08:00 ERR kernel: [ 47.729883] @@@ nid power stat
e: 1
Quoted 20 lines
Without patch
2020-02-12T00:55:36.795016-08:00 ERR kernel: [ 125.047502] @@@ cvt_nid power state: 1 2020-02-12T00:55:36.795026-08:00 ERR kernel: [ 125.047565] @@@ nidpower state: 0
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:18 PM
To: Kao. Lucien (TPE) <[email protected]>
Cc: [email protected]; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitor
Quoted 6 lines
Quoted 4 lines · On Wed, 08 Jan 2020 04:07:17 +0100, <[email protected]> wrote:
Hi Takashi
Is the attachment what you suspect? That merged to our kernel v4.19 already,
have any suggestions? Thanks.
Quoted 2 lines
Then I have no concrete idea. It might be some other changes in HDMI codec dr
iver or it might be a fix in i915 graphics side, or even thunderbolt or whatever , too...
Quoted 24 lines
Takashi
Quoted 21 lines
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Wednesday, January 8, 2020 2:57 AM
To: Nathan Ciobanu <[email protected]>
Cc: Kao. Lucien (TPE) <[email protected]>; Cheng. AJ (TPE) <[email protected]>; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitorQuoted 5 lines · Nathan Ciobanu
Quoted 3 lines · On Mon, Jan 06, 2020 at 08:08:04AM +0000, [email protected] wrote:
Hi Takashi
We verified on Ubuntu 19.10 with kernel 5.4.0.0-050400-generic (please r
efer to attachment), the result is positive which symptom doesn't happen anymore
once I played music or video sound output through Dell S2718D Type-C monitor. I
t seems had some fix in latest kernel.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Takashi, can you point to the patch series you suspect may have fixed this
issue?
Quoted 27 lines
Quoted 27 lines
The first suspect would be
2756d9143aa517b97961e85412882b8ce31371a6
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chipsTakashi
Quoted 20 lines
Thanks,
NathanQuoted 17 lines
Thanks.
-----Original Message-----
From: Takashi Iwai <[email protected]>
Sent: Friday, January 3, 2020 5:16 PM
To: Cheng. AJ (TPE) <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Wang. CindyXT (TPE) <[email protected]>; Ye. Nelson (TPE) <[email protected]>; Yap. Shane (TPE) <[email protected]>; Kao. Lucien (TPE) <[email protected]>; Tseng. Evan (TPE) <[email protected]>
Subject: Re: [alsa-devel] USB Type-C monitor flashes once when play a video file after unplug and re-plug the monitor
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · On Fri, 03 Jan 2020 02:57:03 +0100, <[email protected]> wrote:
Quoted 4 lines
Hi Sirs,
Here is chromebook SW team from Compal.
As the mail title, we hit issue that the external monitor will flash o
nce when play video after hot pluging.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
We can reproduce not only on chromebook but also ubuntu 16.04. There has higher failure rate with Dell Solomon dock and Dell S2718D m
onitor.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
We found adding the delay in "
sound/pci/hda/patch_hdmi.c" can fix this issue.(as the attachment) May need your help to review and ad
vice. Thanks.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Here is the issue number in gitlab for more detail.
https://gitlab.freedesktop.org/drm/intel/issues/318Could you check whether it still happens with the latest upstream kernel
, at least 5.4.y, if it wasn't tested yet?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I don't want to put a long delay just because of random reason unless it
's really mandatory. I'm wondering whether the recent write-sync change improve s the situation, so let's check the recent code.
Quoted 62 lines
Quoted 41 lines
Quoted 15 lines
Quoted 15 lines
thanks,
Takashi
Quoted 9 lines
AJ Cheng
NID/NID1
e-mail: [email protected]<mailto:[email protected]>
Tel: +886-2-8797-8599 ext. 17561 Mobile : +886-932827829 COMPAL Electronics, Inc.Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
[2 flash_once.diff <application/octet-stream (base64)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel====================================================================
==
========
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.
====================================================================
==
========
=================================Quoted 5 lines
[1.2 <text/plain; us-ascii (base64)>]
[2 0001-UPSTREAM-ALSA-hda-Fix-intermittent-CORB-RIRB-stall-o.patch <application/octet-stream (base64)>]
======================================================================
========
=================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.
======================================================================
========
=================================
Quoted 8 lines
[1.2 <text/plain; us-ascii (base64)>]
[2
flash_once_fixed_messages<application/octet-stream (base64)>][3
flash_once_present_messages<application/octet-stream (base64)>][4 flash_once.diff <application/octet-stream (base64)>]
=======================================================================
========================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc.
If you are not the intended recipient of this message, please notify the sender and destroy/delete the message.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information,
by persons or entities other than the intended recipient is prohibited.
=======================================================================
========================================
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel