Bug 103786 - DP audio does not work with Thinkpad Ultra Dock and DP-to-HDMI converter
Summary: DP audio does not work with Thinkpad Ultra Dock and DP-to-HDMI converter
Status: NEW
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Filip Kaczmarski
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 21:27 UTC by Jan Hoffmann
Modified: 2019-07-16 13:49 UTC (History)
5 users (show)

See Also:
i915 platform: SKL
i915 features: display/audio, display/DP


Attachments
dmesg: Dock DP connector with converter (279.18 KB, text/plain)
2017-11-16 21:27 UTC, Jan Hoffmann
no flags Details
dmesg: Internal DP connector with converter (201.01 KB, text/plain)
2017-11-16 21:28 UTC, Jan Hoffmann
no flags Details
dmesg: Dock HDMI connector (213.22 KB, text/plain)
2017-11-16 21:28 UTC, Jan Hoffmann
no flags Details
dmesg: Internal HDMI connector (187.28 KB, text/plain)
2017-11-16 21:29 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400) (16.19 KB, text/plain)
2018-05-07 22:31 UTC, Jan Hoffmann
no flags Details
dmesg: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400) (3.12 MB, text/plain)
2018-05-07 22:32 UTC, Jan Hoffmann
no flags Details
Logs for DSP based Audio products (465.14 KB, text/plain)
2018-06-15 12:59 UTC, Sriram Periyasamy
no flags Details
dmesg: Dock DP connector with converter (drm-tip 4.19 3c13515b1233) (906.18 KB, text/plain)
2018-09-13 01:15 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Dock DP connector with converter (drm-tip 4.19 3c13515b1233) (16.18 KB, text/plain)
2018-09-13 01:15 UTC, Jan Hoffmann
no flags Details
dmesg: Dock DP connector (drm-tip 5.2) (3.33 MB, text/plain)
2019-06-26 20:17 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Dock DP connector (drm-tip 5.2) (16.19 KB, text/plain)
2019-06-26 20:17 UTC, Jan Hoffmann
no flags Details
dmesg: Dock DP connector with converter (drm-tip 5.2) (3.46 MB, text/plain)
2019-06-26 20:18 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Dock DP connector with converter (drm-tip 5.2) (3.46 MB, text/plain)
2019-06-26 20:19 UTC, Jan Hoffmann
no flags Details
dmesg: Internal DP connector (drm-tip 5.2) (2.09 MB, text/plain)
2019-06-26 20:20 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Internal DP connector (drm-tip 5.2) (16.19 KB, text/plain)
2019-06-26 20:20 UTC, Jan Hoffmann
no flags Details
dmesg: Internal DP connector with converter (drm-tip 5.2) (2.09 MB, text/plain)
2019-06-26 20:21 UTC, Jan Hoffmann
no flags Details
intel_audio_dump: Internal DP connector with converter (drm-tip 5.2) (16.19 KB, text/plain)
2019-06-26 20:21 UTC, Jan Hoffmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hoffmann 2017-11-16 21:27:17 UTC
Created attachment 135529 [details]
dmesg: Dock DP connector with converter

I'm using a T460 with the Thinkpad Ultra Dock (contains Synaptics DP MST hub) and  a DP-HDMI converter (CAC-1070, based on PS176) to connect a 4K TV.

In this configuration the DP audio output is detected, but no audio can actually be heard. When connecting directly via HDMI or using the converter on the internal DP port of the laptop, audio works fine.

I have attached the dmesg output with drm.debug=0xe for the following test cases:

Dock DP connector with converter -> no audio
Internal DP connector with converter -> audio works
Dock HDMI connector -> audio works
Internal HDMI connector -> audio works
Comment 1 Jan Hoffmann 2017-11-16 21:28:09 UTC
Created attachment 135530 [details]
dmesg: Internal DP connector with converter
Comment 2 Jan Hoffmann 2017-11-16 21:28:50 UTC
Created attachment 135531 [details]
dmesg: Dock HDMI connector
Comment 3 Jan Hoffmann 2017-11-16 21:29:26 UTC
Created attachment 135532 [details]
dmesg: Internal HDMI connector
Comment 4 Jani Nikula 2018-01-22 10:23:22 UTC
Please try current drm-tip branch of https://cgit.freedesktop.org/drm/drm-tip

There might be some fixes in v4.15-rc9 already, not sure.
Comment 5 Jan Hoffmann 2018-01-23 12:27:33 UTC
The problem still exists with a kernel built from drm-git.

Additional system information:
-- Linux distribution: Arch Linux x86_64
-- kernel: 4.15.0-1035f22af3e97
-- libdrm: 2.4.89
Comment 6 Jani Saarinen 2018-03-29 07:10:43 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 7 Jani Saarinen 2018-04-25 10:16:01 UTC
Due to inactivity, closing, please re-open is issue still exists.
Comment 8 Jan Hoffmann 2018-05-02 18:00:51 UTC
This issue still exists with drm-tip 7ff375cb9400.
Comment 9 Jani Saarinen 2018-05-04 07:19:45 UTC
Can you send dmesg with drm.debug=0x1e log_buf_len=4M from drm-tip?
Comment 10 Abhijeet Kumar 2018-05-07 10:57:28 UTC
Along with dmesg, can you please provide the output of intel_audio_dump when you see no audio?

https://sarata.com/manpages/intel_audio_dump.1.html
Comment 11 Jan Hoffmann 2018-05-07 22:31:51 UTC
Created attachment 139414 [details]
intel_audio_dump: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400)
Comment 12 Jan Hoffmann 2018-05-07 22:32:48 UTC
Created attachment 139415 [details]
dmesg: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400)
Comment 13 Jan Hoffmann 2018-05-07 22:35:48 UTC
I have attached the output of dmesg and intel_audio_dump on drm-tip 7ff375cb9400.
Comment 14 Abhijeet Kumar 2018-05-08 06:44:26 UTC
AUD_PWRST(0x4c) 0x0fffffff Audio Power State(Function Group, Convertor, Pin Widget)

The corresponding pin and converter(audio widgets) are not in D0 thus "no audio".

I can see the monitor has audio support and i915 has enabled the audio codec.
[8.489083] [drm:intel_audio_codec_enable [i915]] ELD on [CONNECTOR:101:DP-4], [ENCODER:89:DP-MST A]
[8.489114] [drm:hsw_audio_codec_enable [i915]] Enable audio codec on pipe A, 44 bytes ELD
[14.735364] [drm:drm_detect_monitor_audio [drm]] Monitor has basic audio support


But i'm seeing there's no active encoder for DP MST:
[23.695602] [drm:i915_audio_component_get_eld [i915]] Not valid for port B
[23.695617] [drm:i915_audio_component_get_eld [i915]] Not valid for port B
[23.695628] [drm:i915_audio_component_get_eld [i915]] Not valid for port B
[23.695648] [drm:i915_audio_component_get_eld [i915]] Not valid for port C
[23.695659] [drm:i915_audio_component_get_eld [i915]] Not valid for port C
[23.695669] [drm:i915_audio_component_get_eld [i915]] Not valid for port D
[23.695680] [drm:i915_audio_component_get_eld [i915]] Not valid for port D
[23.695692] [drm:i915_audio_component_get_eld [i915]] Not valid for port D
Comment 15 Sriram Periyasamy 2018-05-08 10:40:40 UTC
(In reply to Jan Hoffmann from comment #0)
> Created attachment 135529 [details]
> dmesg: Dock DP connector with converter
> 
> I'm using a T460 with the Thinkpad Ultra Dock (contains Synaptics DP MST
> hub) and  a DP-HDMI converter (CAC-1070, based on PS176) to connect a 4K TV.
> 
> In this configuration the DP audio output is detected, but no audio can
> actually be heard. When connecting directly via HDMI or using the converter
> on the internal DP port of the laptop, audio works fine.
> 
> I have attached the dmesg output with drm.debug=0xe for the following test
> cases:
> 
> Dock DP connector with converter -> no audio
> Internal DP connector with converter -> audio works
> Dock HDMI connector -> audio works
> Internal HDMI connector -> audio works

are you able to hear the audio when connected without a converter, directly from dock DP port to DP monitor?.
Comment 16 Jani Saarinen 2018-05-17 08:49:09 UTC
Reporter, can you answer to question?
Comment 17 Jan Hoffmann 2018-05-17 09:31:31 UTC
(In reply to Sriram Periyasamy from comment #15)
> are you able to hear the audio when connected without a converter, directly
> from dock DP port to DP monitor?.

I couldn't test this yet as I don't have a DP monitor. Maybe I'll have access to one in two weeks.

If it helps, I could try with a passive DP-HDMI cable.

I was able to check with the dock DP and converter on Windows to check if there is a hardware problem, and audio worked.
Comment 18 Sriram Periyasamy 2018-06-15 12:58:34 UTC
Jani Nikula,

The same issue is seen in SST audio also. With the latest kernel, basically intel_audio_codec_enable is not invoked from graphics driver to intel_audio.c which maps the encoder for the respective pipe. 

Attached the logs for the same. Any thoughts on this.
Comment 19 Sriram Periyasamy 2018-06-15 12:59:33 UTC
Created attachment 140174 [details]
Logs for DSP based Audio products
Comment 20 Lakshmi 2018-09-10 12:40:24 UTC
Jan, do you still have the issue?
Comment 21 Jan Hoffmann 2018-09-13 01:15:02 UTC
Created attachment 141540 [details]
dmesg: Dock DP connector with converter (drm-tip 4.19 3c13515b1233)
Comment 22 Jan Hoffmann 2018-09-13 01:15:24 UTC
Created attachment 141541 [details]
intel_audio_dump: Dock DP connector with converter (drm-tip 4.19 3c13515b1233)
Comment 23 Jan Hoffmann 2018-09-13 01:16:51 UTC
Yes, I tested with drm-tip 3c13515b1233, and the issue still exists.
Comment 24 Martin Peres 2018-11-14 12:25:06 UTC
I can also reproduce this at home. Thanks for your detailed bug filing Jan!
Comment 25 Jani Nikula 2018-11-14 13:33:18 UTC
One possibility: The DP-HDMI converter PS176 requires manually setting the AVI infoframes using DP AUX. This is what we do for the on-board LSPCON chips; see commits 799a964ffe0b ("drm/i915: Write AVI infoframes for Parade LSPCON") and 7cbf19fd54ff ("drm/i915: Write AVI infoframes for MCA LSPCON").

If that's the case, then this would not even be Intel specific as we're taking about a cable adapter.

Unfortunately https://www.paradetech.com/products/ps176/ isn't too forthcoming on the details.
Comment 26 Lakshmi 2019-02-26 11:03:20 UTC
Jan, any updates here? Can you address Jani's comment 25?
Comment 27 Lakshmi 2019-06-04 09:49:01 UTC
Jan, have you tried the suggestion given in comment 25?
Comment 28 Jan Hoffmann 2019-06-05 14:17:31 UTC
(In reply to Jani Nikula from comment #25)
> One possibility: The DP-HDMI converter PS176 requires manually setting the
> AVI infoframes using DP AUX. This is what we do for the on-board LSPCON
> chips; see commits 799a964ffe0b ("drm/i915: Write AVI infoframes for Parade
> LSPCON") and 7cbf19fd54ff ("drm/i915: Write AVI infoframes for MCA LSPCON").

If that is the case, should the issue also exist when using the DP port on the laptop?

Audio works when the adapter is connected directly to the laptop (and has worked before these commits). The issue only exists when using the docking station DP port.
Comment 29 James Ausmus 2019-06-18 14:46:46 UTC
Jani - any thoughts based on Jan's latest feedback?
Comment 30 Jani Nikula 2019-06-20 12:44:43 UTC
(In reply to Jan Hoffmann from comment #28)
> (In reply to Jani Nikula from comment #25)
> > One possibility: The DP-HDMI converter PS176 requires manually setting the
> > AVI infoframes using DP AUX. This is what we do for the on-board LSPCON
> > chips; see commits 799a964ffe0b ("drm/i915: Write AVI infoframes for Parade
> > LSPCON") and 7cbf19fd54ff ("drm/i915: Write AVI infoframes for MCA LSPCON").
> 
> If that is the case, should the issue also exist when using the DP port on
> the laptop?
> 
> Audio works when the adapter is connected directly to the laptop (and has
> worked before these commits). The issue only exists when using the docking
> station DP port.

Right, this should rule out any problems in driving the converter, and points at the DP MST hub.

Does DP audio (DP-to-DP, without adapters) work both via the hub and directly through the laptop port?
Comment 31 Jan Hoffmann 2019-06-26 20:17:20 UTC
Created attachment 144640 [details]
dmesg: Dock DP connector (drm-tip 5.2)
Comment 32 Jan Hoffmann 2019-06-26 20:17:53 UTC
Created attachment 144641 [details]
intel_audio_dump: Dock DP connector (drm-tip 5.2)
Comment 33 Jan Hoffmann 2019-06-26 20:18:54 UTC
Created attachment 144642 [details]
dmesg: Dock DP connector with converter (drm-tip 5.2)
Comment 34 Jan Hoffmann 2019-06-26 20:19:28 UTC
Created attachment 144643 [details]
intel_audio_dump: Dock DP connector with converter (drm-tip 5.2)
Comment 35 Jan Hoffmann 2019-06-26 20:20:18 UTC
Created attachment 144644 [details]
dmesg: Internal DP connector (drm-tip 5.2)
Comment 36 Jan Hoffmann 2019-06-26 20:20:46 UTC
Created attachment 144645 [details]
intel_audio_dump: Internal DP connector (drm-tip 5.2)
Comment 37 Jan Hoffmann 2019-06-26 20:21:24 UTC
Created attachment 144646 [details]
dmesg: Internal DP connector with converter (drm-tip 5.2)
Comment 38 Jan Hoffmann 2019-06-26 20:21:46 UTC
Created attachment 144647 [details]
intel_audio_dump: Internal DP connector with converter (drm-tip 5.2)
Comment 39 Jan Hoffmann 2019-06-26 20:25:55 UTC
(In reply to Jani Nikula from comment #30)
> Does DP audio (DP-to-DP, without adapters) work both via the hub and
> directly through the laptop port?

Yes, DP audio without adapter works both on the laptop DP port and the docking station DP port.

I added new logs for the following cases (same display was used for all tests):

Internal DP connector to DP display input  -  works
Internal DP connector via adapter to HDMI display input  -  works
Dock DP connector to DP display input  -  works
Dock DP connector via adapter to HDMI display input  -  does not work
Comment 40 Lakshmi 2019-07-16 13:49:37 UTC
Assigning this issue to Filip to get feedback from audio team.
If this issue has nothing to do from audio point of view, please assign it to default assignee.


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.