Skip to content

HDMI misleading report on Up2 #227

Closed

Description

@plbossart

Dmesg provides a misleading report even when HDMI can work.
[ 4.093970] sof-audio-pci 0000:00:0e.0: no HDMI audio devices found
dmesg.log

Activity

  1. added
    bugSomething isn't working
    APLApplies to ApolloLake platform
    on Oct 30, 2018
  2. markyang commented on Nov 1, 2018

    @markyang

    Summary:
    This issue can be reproduced on UP2.
    [ 6.061752] sof-audio-pci 0000:00:0e.0: no HDMI audio devices found

    Test env:
    sof master: 43da169
    sof tool: 4ac9248
    kernel debug/v4.19-backport: 925637e
    tplg: sof-apl-pcm512x.tplg-4ac9248

    dmesg-apl-hdmi.txt

  3. plbossart commented on Nov 6, 2018

    @plbossart
    MemberAuthor

    This was introduced w/ the patch 89bef7a ('ASoC: SOF: Intel HDA: continue probe if no HDMI devices found');

    @lgirdwood why was the error control removed? if you've compiled in HDMI support and can't init the i915 parts then something is just very wrong.

  4. lgirdwood commented on Nov 7, 2018

    @lgirdwood
    Member

    @plbossart so the initial code from @RanderWang printed the error and returned an error if no monitor was connected (meaning SOF would not probe on devices with no monitors connected).
    @RanderWang should this error be visible when no monitors are connected or does it mean something more fatal perhaps unrecoverable has happened ?

  5. plbossart commented on Nov 8, 2018

    @plbossart
    MemberAuthor

    @lgirdwood the connection state (plugged/unplugged) is irrelevant. Even when there is nothing connected you can establish the link with the iDISP codec. With HDaudio you can even stream audio out with nothing connected. So this error really means the link with the graphics IP is not working, and that is non-recoverable, so we should fail big-time and early rather than try to continue.

  6. lgirdwood commented on Nov 8, 2018

    @lgirdwood
    Member

    @plbossart ok, the initial error message made it seem like a codec was not detected and non fatal.

  7. lgirdwood commented on Nov 9, 2018

    @lgirdwood
    Member

    Updated to HEAD 3277edc, regarding above this error should only be fatal if HDMI based topologies are loaded.

        4.708781] sof-audio-pci 0000:00:0e.0: PCI DSP detected
    [    4.709115] sof-audio-pci 0000:00:0e.0: No matching ASoC machine driver found - using nocodec
    [    4.711206] sof-audio sof-audio: probing SOF DSP device....
    [    4.711211] sof-audio sof-audio: using platform alias (null)
    [    4.711294] sof-audio sof-audio: checking for capabilities at offset 0xc00
    [    4.711296] sof-audio sof-audio: found ML capability at 0xc00
    [    4.711299] sof-audio sof-audio: checking for capabilities at offset 0x800
    [    4.711301] sof-audio sof-audio: found DSP capability at 0x800
    [    4.711304] sof-audio sof-audio: checking for capabilities at offset 0x500
    [    4.711305] sof-audio sof-audio: found GTS capability at 0x500
    [    4.711308] sof-audio sof-audio: checking for capabilities at offset 0x1f00
    [    4.711310] sof-audio sof-audio: found DRSM capability at 0x1f00
    [    4.711313] sof-audio sof-audio: checking for capabilities at offset 0x700
    [    4.711315] sof-audio sof-audio: found SPIB capability at 0x700
    [    4.711323] sof-audio-pci 0000:00:0e.0: DMA mask is 64 bit
    [    4.711327] sof-audio sof-audio: hda global caps = 0x1006701
    [    4.711329] sof-audio sof-audio: detected 6 playback and 7 capture streams
    [    4.711364] sof-audio sof-audio: use msi interrupt mode
    [    4.711366] sof-audio sof-audio: using HDA IRQ 25
    [    4.719986] sof-audio sof-audio: using IPC IRQ 25
    [    4.725178] sof-audio sof-audio: Debug PCIR: 00000000 at  00000044
    [    4.725183] sof-audio-pci 0000:00:0e.0: PP capability, will probe DSP later.
    [    4.725189] sof-audio-pci 0000:00:0e.0: no HDMI audio devices found
    [    4.727934] sof-audio sof-audio: error: failed to probe DSP -19
    
  8. lgirdwood commented on Nov 9, 2018

    @lgirdwood
    Member

    @plbossart same error on Leafhill too. My only thoughts are if you are not seeing this then a Kconfig option is breaking this (and it should be non fatal).

  9. lgirdwood commented on Nov 9, 2018

    @lgirdwood
    Member

    Ok, @RanderWang the SOF HDMI support depends on the Intel display driver. Can you add such a rule in Kconfig otherwise we get this error.

  10. plbossart commented on Nov 9, 2018

    @plbossart
    MemberAuthor

    All machine drivers which support HDMI should select HDAC_HDMI. This is not the case today.
    That said, we will need to make the select conditional as well to build without HDMI when SOF_HDA is not selected. Kconfig mess again.

  11. plbossart commented on Nov 9, 2018

    @plbossart
    MemberAuthor

    @lgirdwood actually if you are using nocodec you should not have HDMI enabled, not sure how you reached this point?

  12. libinyang commented on Nov 14, 2018

    @libinyang

    @lgirdwood
    @plbossart
    After checking the code, I mainly knows why this bug happens and what's the design in SOF for HDMI.
    Actually, the code is somehow copy from HDA. But the copier missed one point, in HDA we will return error directly in some cases. These cases are the controller is only for HDMI/DP audio. This means we never need initialize the HDA audio controller after we met the i915 init fails (no other codec is connected to this controller). And the copier copied this solution for all controller. This is wrong. Because in SOF, the controller will connect both to HDMI/DP codec and to other codecs. So we should still init the SOF even i915 init fails. So Rander/Liam made a patch for it (There is a little defect in the patch. We should only logout "no HDMI" info only init i915 fails).

    The right solution is: after init i915 fails, we logout the information and set a flag. And in the later code, we will skip all HDMI/DP operations.

    What's your opinion? If it is OK for you, I will make a patch.

  13. 2 remaining items

  14. plbossart commented on Nov 14, 2018

    @plbossart
    MemberAuthor

    @libinyang I am not able to follow your explanations, can you submit a PR if you believe something is not correct.

  15. libinyang commented on Nov 15, 2018

    @libinyang

    @libinyang I am not able to follow your explanations, can you submit a PR if you believe something is not correct.

    Sure. I will submit a patch.

  16. libinyang commented on Nov 16, 2018

    @libinyang

    @plbossart
    @lgirdwood

    Patch submitted: #295.
    Please help review.

  17. libinyang commented on Nov 19, 2018

    @libinyang

    The latest sof-dev branch should have already fixed this issue. Should I porting the patch to debug/v4.19-backport? code is like:
    ret = hda_codec_i915_init(sdev);
    if (ret < 0) {
    dev_err(&pci->dev, "no HDMI audio devices found\n");
    return ret;
    }

  18. plbossart commented on Nov 19, 2018

    @plbossart
    MemberAuthor
  19. libinyang commented on Nov 20, 2018

    @libinyang

    one should be using debug/v4.19-backport, I will push it to the archives. All the 4.1

    No one should be using debug/v4.19-backport, I will push it to the archives. All the 4.19 code is now in topic/sof-dev, the debug branches are temporary to check for bugs or missing features during transitions.

    Got it.

  20. mengdonglin commented on Nov 20, 2018

    @mengdonglin

    @libinyang @plbossart Can we close this issue if "the latest sof-dev branch should have already fixed this issue"?

  21. libinyang commented on Nov 21, 2018

    @libinyang

    i think so

  22. RanderWang commented on Nov 21, 2018

    @RanderWang

    sorry, I am late.
    Now the error message has been removed after I refine the algorithm of HDA codec detection.
    So, It could be closed.

  23. added a commit that references this issue on May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

APLApplies to ApolloLake platformP2Critical bugs or normal featuresbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions