Skip to content

[BUG] FW status on IPC timeout in test 07_05_TestKdDmicD0ix16000Hz16b16b2ch #4929

Closed

Description

@kkarask

Describe the bug
Tests 07_05_TestKdDmicD0ix16000Hz16b16b2ch and 07_05_TestKdDmicD0ix16000Hz24b32b2ch failed wit error:
ERROR failed to alloc 0x2ea00 bytes zone 0x3 caps 0x8 flags 0x0

To Reproduce
Run test 07_05_TestKdDmicD0ix16000Hz16b16b2ch or 07_05_TestKdDmicD0ix16000Hz24b32b2ch with Diagnostic driver

Reproduction Rate
100%

Environment

  1. Firmware branch name and commit.
  2. Name of the platform(s) on which the bug is observed.
    • Platform: TGL RVP

Screenshots or console output

[      996808.255208] (          10.286458) c0 dma-trace                 src/trace/trace.c:135  Suppressed 19 similar messages:   block %d base 0x%x size %d
[      996812.994792] (           4.739583) c0 memory                      src/lib/alloc.c:958  ERROR failed to alloc 0x2ed00 bytes zone 0x3 caps 0x8 flags 0x0
[      996821.848958] (           8.854167) c0 dma-trace                 src/trace/trace.c:135  Suppressed 19 similar messages:    count %d free %d
[      996828.411458] (           6.562500) c0 memory                      src/lib/alloc.c:958  ERROR failed to alloc 0x2ec00 bytes zone 0x3 caps 0x8 flags 0x0
[      996839.270833] (          10.859375) c0 memory                      src/lib/alloc.c:958  ERROR failed to alloc 0x2eb00 bytes zone 0x3 caps 0x8 flags 0x0
[      996848.750000] (           9.479167) c0 memory                      src/lib/alloc.c:958  ERROR failed to alloc 0x2ea00 bytes zone 0x3 caps 0x8 flags 0x0
[      999899.140625] (        3050.390625) c0 dma-trace                 src/trace/trace.c:135  Suppressed 494 similar messages: failed to alloc 0x%x bytes zone 0x%x caps 0x%x flags 0x%x
[      999909.427083] (          10.286458) c0 sa                          src/lib/agent.c:79   WARN validate(), ll drift detected, delta = 47614
Skipped 56724 bytes after the last statement.

Logs:
TGL_07_05_TestKdDmicD0ix16000Hz16b16b2ch.zip
TGL_07_05_TestKdDmicD0ix16000Hz24b32b2ch.zip

Activity

  1. added
    bugSomething isn't working as expected
    TGLApplies to Tiger Lake
    on Oct 27, 2021
  2. lgirdwood commented on Oct 27, 2021

    @lgirdwood
    Member

    @kkarask can you bisect. There has not been any memory updates this week, but a few weeks back there was some updates merged. @keyonjie fyi.

  3. kkarask commented on Oct 28, 2021

    @kkarask
    Author

    Bisect done.
    Last working commit: 5b4ea83
    First bad commit: bec163c

  4. keyonjie commented on Nov 2, 2021

    @keyonjie
    Contributor

    I believe this error message actually doesn't impact the KD functionality?
    This is for the KPB history buffer allocation, when fails we will retry with smaller size and the request is from LPSRAM where we have 64KB only on TGL. So I think we actually should always see this but the allocation eventually succeed so no impact in functionality. @mrajwa FYI.

  5. keyonjie commented on Nov 2, 2021

    @keyonjie
    Contributor

    BTW @marc-hb the filter feature is very annoying here that it kills useful logs for us:
    "Suppressed 19 similar messages: block %d base 0x%x size %d"

  6. marc-hb commented on Nov 2, 2021

    @marc-hb
    Collaborator

    We can discuss turning TRACE_FILTERING_ADAPTIVE off by default as long as that change is:

    Even before discussing it, anyone can submit a draft PR that turns it off just to get test results and more verbose logs.

  7. bkokoszx commented on Nov 2, 2021

    @bkokoszx
    Collaborator

    Hi @keyonjie
    I misled you during bugscrub - it looks like we have another problem here (some timeout). @kkarask is checking that. We will make an update later.

  8. changed the title [-][BUG] ERROR failed to alloc 0x2ea00 bytes zone 0x3 caps 0x8 flags 0x0 in test 07_05_TestKdDmicD0ix16000Hz16b16b2ch[/-] [+][BUG] FW status on IPC timeout in test 07_05_TestKdDmicD0ix16000Hz16b16b2ch[/+] on Nov 2, 2021
  9. kkarask commented on Nov 2, 2021

    @kkarask
    Author

    @keyonjie There is timeout on IPC:

    Exception TimeoutError occurred at 'C:\work\KK\cavs_scripts-py\utilities\ipc_driver.py':603
    FW status on IPC timeout after 5.0 seconds:
    0x00000005 0x00000000 0x00004000

    Sending PmGate (40080000, 00000000)
    Payload:
    00000020 40080000 0000000E 00000000 
    

    when test passed with working commit there is a response from that IPC:

    Sending PmGate (40080000, 00000000)
    Payload:
    00000020 40080000 0000000E 00000000 
    00000000 00000000 00000000 00000000 
    
    Response ReplyMsg (10000000, 0000000C)
    Payload:
    0000000C 10000000 00000000  received!
    

    The error: ERROR failed to alloc 0x2ec00 bytes zone 0x3 caps 0x8 flags 0x0 was not the real reason test failed, so I change the title

  10. marc-hb commented on Nov 2, 2021

    @marc-hb
    Collaborator

    The error: ERROR failed to alloc 0x2ec00 bytes zone 0x3 caps 0x8 flags 0x0 was not the real reason test failed, so I change the title

    Just to be sure: the bisect result is still the same?

  11. kkarask commented on Nov 3, 2021

    @kkarask
    Author

    @marc-hb yes, bisect result is still the same with reproduction rate 100%.

  12. lgirdwood commented on Nov 11, 2021

    @lgirdwood
    Member

    @keyonjie any update ?

  13. keyonjie commented on Nov 18, 2021

    @keyonjie
    Contributor

    Looks we are quite lack of KWD coverage in our CI now, check-keyword-detection.sh event can't run on any of our 29 daily models, @keqiaozhang @aiChaoSONG @mengdonglin FYI.
    Without that, we don't have this PM_GATE IPC validation at all, need to re-enable that and debug what happens here, with the latest main.

  14. wszypelt commented on Jan 2, 2023

    @wszypelt

    issue does not occur
    Tested FW hash: 4943aaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TGLApplies to Tiger LakebugSomething isn't working as expecteddiagnostic driverSlim driver / diagnostic driver issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions