Skip to content

[BUG][Regression] bind KPB and copier failed #6784

Closed

Description

@libinyang

Describe the bug
Bind KPB and copier will failed. This is a regression which is introduced by 0c2c050.
With a test change of moving comp_bind(source, bu); behind comp_buffer_connect(sink, sink->ipc_config.core, buffer, PPL_CONN_DIR_BUFFER_TO_COMP);, the issue disappears.
The topology is:
sof-mtl-nocodec

To Reproduce
Use a pipeline, which contains a KPB component, to record. For example, on MTL nocodec platform, run:

arecord -Dhw:0,11 -c2 -r16000 -fs32_le -M -N 2.wav -vvv

Reproduction Rate
100%

Expected behavior
Record works well.

Impact
The pipelines which contains kpb won't work

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).

  2. Name of the topology file

  3. Name of the platform(s) on which the bug is observed.

    • Platform: MTLP_RVP_NOCODEC

dmesg

dmesg.txt
mtrace.txt

Activity

  1. added
    bugSomething isn't working as expected
    on Dec 13, 2022
  2. added
    P1Blocker bugs or important features
    on Dec 13, 2022
  3. libinyang commented on Dec 13, 2022

    @libinyang
    ContributorAuthor

    Add the tplg. Please see the attachment.
    sof-mtl-nocodec.zip

  4. libinyang commented on Dec 13, 2022

    @libinyang
    ContributorAuthor

    The key dmesg error is:

    [  510.052106] snd_sof:sof_ipc4_route_setup: sof-audio-pci-intel-mtl 0000:00:1f.3: bind kpb.19.1:1 -> copier.host.18.1:0
    [  510.052112] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx      : 0x4500000e|0x8010004: MOD_BIND
    [  510.052465] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx reply: 0x6500000c|0x8010004: MOD_BIND
    [  510.052474] sof-audio-pci-intel-mtl 0000:00:1f.3: FW reported error: 12 - Required resource is in invalid state
    [  510.052938] sof-audio-pci-intel-mtl 0000:00:1f.3: ipc error for msg 0x4500000e|0x8010004
    [  510.052958] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to bind modules kpb.19.1:1 -> copier.host.18.1:0
    

    The key mtrace error is:

    [00:00:27.892,761] <inf> pipe: pipeline_connect: comp:2 0x40001 connect buffer 0 as source
    [00:00:27.894,311] <inf> ipc: ipc_cmd: rx	: 0x4500000e|0x8010004
    [00:00:27.894,330] <inf> ipc: buffer_new: buffer new size 0x100 id 0.65536 flags 0x0
    [00:00:27.894,351] <inf> pipe: pipeline_connect: comp:0 0xe0000 connect buffer 65536 as sink
    [00:00:27.894,360] <inf> pipe: pipeline_disconnect: comp:0 0xe0000 disconnect buffer 65536 as sink
    [00:00:27.894,385] <err> ipc: ipc4: MODULE_MSG failed with err 12
    
  5. mengdonglin commented on Dec 14, 2022

    @mengdonglin
    Collaborator

    #6773 is to fix this issue

  6. libinyang commented on Dec 16, 2022

    @libinyang
    ContributorAuthor

    close this bug as PR6773 is merged.

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

Metadata

Metadata

Assignees

Labels

Keyword DetectionApplies to Keyword DetectionMTLApplies to Meteor Lake platformP1Blocker bugs or important featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions