Skip to content

[BUG][tgl] Jack detection is off in amixer contents after reboot with HDMI connected #1792

Closed

Description

@Liviali155

Describe the bug
Jack detection is off in amixer contents after reboot with HDMI/DP connected,and no sound output,but monitor display is normally
Unplug/plug HDMI/DP again can recovery

To Reproduce
1.sudo reboot with HDMI/DP connected
2.amixer contents to check jack detection

Reproduction Rate
10/10

Expected behavior
HDMI/DP jack detection is on in amixer contents

Actual result
HDMI/DP jack detection is off in amixer contents

numid=8,iface=CARD,name='HDMI/DP,pcm=3 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=14,iface=CARD,name='HDMI/DP,pcm=4 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=20,iface=CARD,name='HDMI/DP,pcm=5 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=7,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=6,iface=CARD,name='Mic Jack'

Platform: TGL-U RVP with onboard codec ALC711 in HDA mode
Firmware: 4d17d0d https://github.com/thesofproject/sof/commits/master
Kernel: daf71dc https://github.com/thesofproject/linux/commits/topic/sof-dev
Topology file: tools/topology/sof-hda-generic-4ch.tplg same as firmware
dmesg0214.log
sof_trace0214.txt

Activity

  1. Liviali155 commented on Feb 14, 2020

    @Liviali155
    Author

    Bi-sect result:
    caused by kernel commit #8c0050f

  2. added
    bugSomething isn't working
    TGLApplies to Tiger Lake platform
    on Feb 14, 2020
  3. self-assigned this
    on Feb 14, 2020
  4. kv2019i commented on Feb 14, 2020

    @kv2019i
    Collaborator

    @Liviali155 wrote:

    Bi-sect result:
    caused by kernel commit #8c0050f

    Thanks, this a good lead. I will take a look at this next week.

  5. sinahuang commented on Feb 26, 2020

    @sinahuang

    Issue also can be reproduced on TGL-U RVP with codec ALC711 in SDW mode and RT1308 in I2S mode if reboot with HDMI connected.

  6. Liviali155 commented on Feb 27, 2020

    @Liviali155
    Author

    On latest sof/dev +master,issue can only be reproduced with HDMI,DP is normal,tested on TGL HDA
    Platform: TGL-U RVP with onboard codec ALC711 in HDA mode
    Firmware: 21f1344 https://github.com/thesofproject/sof/commits/master
    Kernel: 8d47294 https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology file: tools/topology/sof-hda-generic-4ch.tplg same as firmware

  7. changed the title [-][BUG][tgl] Jack detection is off in amixer contents after reboot with HDMI/DP connected[/-] [+][BUG][tgl] Jack detection is off in amixer contents after reboot with HDMI connected[/+] on Feb 27, 2020
  8. kv2019i commented on Feb 27, 2020

    @kv2019i
    Collaborator

    Tested today with TGL RVP and HDMI, but could not reproduce. @Liviali155 can you take log of the case with i915 traces enabled:

    modprobe conf.d:
    options drm debug=0x1e

    OR with kernel cmdline:
    drm.debug=0x1e

  9. Liviali155 commented on Feb 28, 2020

    @Liviali155
    Author

    modprobe conf.d:
    options drm debug=0x1e

    OR with kernel cmdline:
    drm.debug=0x1e

    log as attachment
    drm.log

  10. added
    P1Blocker bugs or important features
    on Mar 3, 2020
  11. kv2019i commented on Mar 3, 2020

    @kv2019i
    Collaborator

    @Liviali155 The DRM log is so verbose that it fills the dmesg buffer very quickly and e.g. this log is missing lot of events from the early boot. You can overcome by increasing the dmesg size. "log_buf_len=1M" should be sufficient. You can add this e.g. with following to to /etc/default/grub:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash log_buf_len=1M"

  12. reopened this on Mar 3, 2020
  13. Liviali155 commented on Mar 5, 2020

    @Liviali155
    Author

    @Liviali155 The DRM log is so verbose that it fills the dmesg buffer very quickly and e.g. this log is missing lot of events from the early boot. You can overcome by increasing the dmesg size. "log_buf_len=1M" should be sufficient. You can add this e.g. with following to to /etc/default/grub:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash log_buf_len=1M"

    I have increased the dmesg size,drm log as attachment
    drm0305.log

  14. 5 remaining items

  15. Liviali155 commented on Mar 18, 2020

    @Liviali155
    Author

    @Liviali155 Can you give a test to the fix candidate #1904 ?

    Tried with PR #1904 ,tips“Failed to start load kernel Modules”

    Capture

  16. mamarley commented on Mar 18, 2020

    @mamarley

    Not sure what's happening for Livia, but for me it works fine. HDMI/DP audio now works fine immediately on boot. Thanks!

  17. mamarley commented on Mar 18, 2020

    @mamarley

    After further usage, however, it seems this introduces a strange issue where even small amounts of GPU load cause the mouse cursor to move jerkily and "drop frames". It seems weird, but reverting the patch causes it to work normally again.

  18. kv2019i commented on Mar 18, 2020

    @kv2019i
    Collaborator

    Thanks @mamarley ! Follow-up is currently discussed on intel-gfx list and I passed your findings to the folks working on the patch now.

  19. mamarley commented on Mar 18, 2020

    @mamarley

    I'm probably just being dense, but I can't seem to locate the thread. Could you please link to it? Thanks!

  20. kv2019i commented on Mar 18, 2020

    @kv2019i
    Collaborator

    @mamarley

    I'm probably just being dense, but I can't seem to locate the thread. Could you please link to it? Thanks!

    Sure, no prob. It is here: https://lists.freedesktop.org/archives/intel-gfx/2020-March/233802.html

  21. mamarley commented on Mar 18, 2020

    @mamarley

    That patch is different from the one you linked earlier. When I tried the one from the list (it took a bit of massaging to get it to apply to 5.6-rc6), the audio works on boot and the cursor behaves normally.

  22. Liviali155 commented on Mar 19, 2020

    @Liviali155
    Author

    @Liviali155 Can you give a test to the fix candidate #1904 ?

    Tried with PR #1904 ,tips“Failed to start load kernel Modules”

    Capture

    The kern.log as attachment,It should has 2 times power on log,first is power on failed log
    kern.log

  23. kv2019i commented on Mar 19, 2020

    @kv2019i
    Collaborator

    @mamarley wrote:

    That patch is different from the one you linked earlier. When I tried the one from the list
    (it took a bit of massaging to get it to apply to 5.6-rc6), the audio works on boot and

    Yes, true, they modified the implementation in the first version sent out on the list. Thanks a lot for the report. There are now additional validation rounds done on the patch sent to the list and if all goes well, the patch will get merged. Thanks a lot for testing!

    @Liviali155 I'll check the log separately, this might something else.

  24. mamarley commented on Mar 23, 2020

    @mamarley

    I hadn't noticed this before since I didn't test my Broadwell laptop with an eDP display with the patched kernel, but the patch from the ML re-regresses https://gitlab.freedesktop.org/drm/intel/issues/1151.

  25. kv2019i commented on Mar 24, 2020

    @kv2019i
    Collaborator

    @mamarley Can you report this in the gitlab issue 1363? The gfx folks are not following this bug tracker.
    UPDATE: aa, you already did, thanks!

  26. mamarley commented on Mar 24, 2020

    @mamarley
  27. Liviali155 commented on Mar 27, 2020

    @Liviali155
    Author

    Tried with #1939,error not seen

  28. kv2019i commented on Mar 27, 2020

    @kv2019i
    Collaborator

    @Liviali155 wrote:

    Tried with #1939,error not seen

    Excellent news, thanks a lot for the quick testing. The patch is merged upstream and I'll now proceed to merge this in sof-dev as well, so we get the fixing immediately to the audio tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GFXGFX driver restrictionP1Blocker bugs or important featuresTGLApplies to Tiger Lake platformbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions