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
Created attachment 135530 [details] dmesg: Internal DP connector with converter
Created attachment 135531 [details] dmesg: Dock HDMI connector
Created attachment 135532 [details] dmesg: Internal HDMI connector
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.
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
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.
Due to inactivity, closing, please re-open is issue still exists.
This issue still exists with drm-tip 7ff375cb9400.
Can you send dmesg with drm.debug=0x1e log_buf_len=4M from drm-tip?
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
Created attachment 139414 [details] intel_audio_dump: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400)
Created attachment 139415 [details] dmesg: Dock DP connector with converter (drm-tip 4.17 7ff375cb9400)
I have attached the output of dmesg and intel_audio_dump on drm-tip 7ff375cb9400.
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
(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?.
Reporter, can you answer to question?
(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.
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.
Created attachment 140174 [details] Logs for DSP based Audio products
Jan, do you still have the issue?
Created attachment 141540 [details] dmesg: Dock DP connector with converter (drm-tip 4.19 3c13515b1233)
Created attachment 141541 [details] intel_audio_dump: Dock DP connector with converter (drm-tip 4.19 3c13515b1233)
Yes, I tested with drm-tip 3c13515b1233, and the issue still exists.
I can also reproduce this at home. Thanks for your detailed bug filing Jan!
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.
Jan, any updates here? Can you address Jani's comment 25?
Jan, have you tried the suggestion given in comment 25?
(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.
Jani - any thoughts based on Jan's latest feedback?
(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?
Created attachment 144640 [details] dmesg: Dock DP connector (drm-tip 5.2)
Created attachment 144641 [details] intel_audio_dump: Dock DP connector (drm-tip 5.2)
Created attachment 144642 [details] dmesg: Dock DP connector with converter (drm-tip 5.2)
Created attachment 144643 [details] intel_audio_dump: Dock DP connector with converter (drm-tip 5.2)
Created attachment 144644 [details] dmesg: Internal DP connector (drm-tip 5.2)
Created attachment 144645 [details] intel_audio_dump: Internal DP connector (drm-tip 5.2)
Created attachment 144646 [details] dmesg: Internal DP connector with converter (drm-tip 5.2)
Created attachment 144647 [details] intel_audio_dump: Internal DP connector with converter (drm-tip 5.2)
(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
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.
@Filip, any updates here? This bug need an update at least once in a week considering this as a High priority.
I tested with another adapter, the CAC-1080 (which apparently uses a MCDP2900 converter chip). With this adapter, audio works fine. However, with the CAC-1080, 4K video at 60 Hz only works reliably on the laptop DP port. When connected through the MST hub in the docking station, the highest stable setting seems to be 3840x2160 at 23.98 Hz. Anything higher results in the display showing nothing or a broken picture (sound can sometimes be heard though). Similar to the CAC-1070, everything works without issues on Windows. So both adapters work fine on the internal DP port, but fail in different ways when connected via the docking station.
(In reply to Jan Hoffmann from comment #42) > I tested with another adapter, the CAC-1080 (which apparently uses a > MCDP2900 converter chip). With this adapter, audio works fine. > > However, with the CAC-1080, 4K video at 60 Hz only works reliably on the > laptop DP port. When connected through the MST hub in the docking station, > the highest stable setting seems to be 3840x2160 at 23.98 Hz. Anything > higher results in the display showing nothing or a broken picture (sound can > sometimes be heard though). > > Similar to the CAC-1070, everything works without issues on Windows. > > So both adapters work fine on the internal DP port, but fail in different > ways when connected via the docking station. Thanks for the feedback. So with CAC-1080, audio works fine (which is the original issue)? At the moment display is not working as expected via docking station. Did I understood correctly? Can you verify the issue with latest drmtip and attach the logs?
Created attachment 145285 [details] dmesg: Dock DP connector with CAC-1080 converter (drm-tip 5.3)
Created attachment 145286 [details] intel_audio_dump: Dock DP connector with CAC-1080 converter (drm-tip 5.3)
(In reply to Lakshmi from comment #43) > So with CAC-1080, audio works fine (which is the original issue)? Yes. Logs are attached (for CAC-1080 connected to docking station, at 1920x1080/60Hz resolution). (In reply to Lakshmi from comment #43) > At the moment display is not working as expected via docking station. > Did I understood correctly? With the CAC-1080, high resolutions (3840x2160/60Hz) do not work via docking station. The symptoms seem to me like there is some problem with signal quality. (The display switches between "no signal" and a black screen with strange detected resolution like 3840x2159 or 1920x2160. Sometimes a broken picture shows briefly, sound can often be heard shortly.) I am not sure if it is possible these issues are related (i.e. weak signal causing different problems), or if should I open a separate bug for the video issue?
(In reply to Jan Hoffmann from comment #46) > (In reply to Lakshmi from comment #43) > > So with CAC-1080, audio works fine (which is the original issue)? > > Yes. Logs are attached (for CAC-1080 connected to docking station, at > 1920x1080/60Hz resolution). > > > (In reply to Lakshmi from comment #43) > > At the moment display is not working as expected via docking station. > > Did I understood correctly? > > With the CAC-1080, high resolutions (3840x2160/60Hz) do not work via docking > station. The symptoms seem to me like there is some problem with signal > quality. (The display switches between "no signal" and a black screen with > strange detected resolution like 3840x2159 or 1920x2160. Sometimes a broken > picture shows briefly, sound can often be heard shortly.) > > I am not sure if it is possible these issues are related (i.e. weak signal > causing different problems), or if should I open a separate bug for the > video issue?
(In reply to Jan Hoffmann from comment #42) > I tested with another adapter, the CAC-1080 (which apparently uses a > MCDP2900 converter chip). With this adapter, audio works fine. > > However, with the CAC-1080, 4K video at 60 Hz only works reliably on the > laptop DP port. For this case can you please attach the dmesg from boot with debug parameters (from drmtip)? From drmtip kernel, good to see the logs with docking station (where it's not working as expected, which is already attached) and without docking station.
Hi Hoffmann, Along with what Lakshmi requested, can you also attach logs for failure scenario (ie 4k@60case) along with working one 1920x1080 (this is already shared). Also please attach output of cat /sys/kernel/debug/dri/0/i915_display_info Thanks & Regards, Uma Shankar
Created attachment 145348 [details] Video issue - dmesg: Laptop DP port with CAC-1070 at 3840x2160 (drm-tip 5.3)
Created attachment 145349 [details] Video issue - i915_display_info: Laptop DP port with CAC-1070 at 3840x2160 (drm-tip 5.3)
Created attachment 145350 [details] Video issue - dmesg: Laptop DP port with CAC-1080 at 3840x2160 (drm-tip 5.3)
Created attachment 145351 [details] Video issue - i915_display_info: Laptop DP port with CAC-1080 at 3840x2160 (drm-tip 5.3)
Created attachment 145352 [details] Video issue - dmesg: Dock DP port with CAC-1070 at 3840x2160 (drm-tip 5.3)
Created attachment 145353 [details] Video issue - i915_display_info: Dock DP port with CAC-1070 at 3840x2160 (drm-tip 5.3)
Created attachment 145354 [details] Video issue - dmesg: Dock DP port with CAC-1080 at 3840x2160 (drm-tip 5.3)
Created attachment 145355 [details] Video issue - i915_display_info: Dock DP port with CAC-1080 at 3840x2160 (drm-tip 5.3)
Created attachment 145356 [details] Video issue - dmesg: Dock DP port with CAC-1080 at 1920x1080 (drm-tip 5.3)
Created attachment 145357 [details] Video issue - i915_display_info: Dock DP port with CAC-1080 at 1920x1080 (drm-tip 5.3)
I added logs for the video issue with the following cases: Laptop DP port with CAC-1070 at 3840x2160 Laptop DP port with CAC-1080 at 3840x2160 Dock DP port with CAC-1070 at 3840x2160 (audio is broken) Dock DP port with CAC-1080 at 3840x2160 (video is broken) Dock DP port with CAC-1080 at 1920x1080 The internal display is also on in all cases here, as I needed it for the case with broken video.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/63.
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.