Skip to content

[BUG] basic playback and capture tests failed with no bytes to copy in ADLP_SKU0B00_SDCA #7914

Description

@fredoh9

Describe the bug

ADLP_SKU0B00_SDCA_IPC4ZPH in daily test is broken.

2023-07-10 10:41:48 UTC [REMOTE_INFO] ===== Testing: (Round: 1/1) (PCM: Speaker [hw:0,2]) (Loop: 1/1) =====
2023-07-10 10:41:48 UTC [REMOTE_COMMAND] aplay   -Dhw:0,2 -r 48000 -c 2 -f S16_LE -d 100 /dev/zero -v -q
Hardware PCM card 0 'sof-soundwire' device 2 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 4096
  period_event : 0
  start_threshold  : 16384
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 4611686018427387904
  appl_ptr     : 0
  hw_ptr       : 0
aplay: pcm_write:2127: write error: Input/output error

no error in dmesg, mtrace has full of no bytes to copy...

[   77.962581] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.963583] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.964583] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.965583] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.966581] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.967583] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.968581] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[   77.969583] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0

To Reproduce
TPLG=/lib/firmware/intel/avs-tplg/sof-adl-rt711-l0-rt1316-l12-rt714-l3.tplg MODEL=ADLP_SKU0B00_SDCA_IPC4ZPH SOF_TEST_INTERVAL=5 ~/sof-test/test-case/check-playback.sh -d 100 -l 1 -r 1

Reproduction Rate
Looks 100% in recent test

Environment

Screenshots or console output

mtrace_ADLP_SKU0B00_SDCA_IPC4ZPH.txt

Intel internal daily test link:
planresultdetail/28790?model=ADLP_SKU0B00_SDCA_IPC4ZPH&testcase=check-playback-100sec

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    SDWSoundWire
    ADLApplies to Alder Lake platform
    Intel Linux Daily testsThis issue can be found in internal Linux daily tests
    on Jul 10, 2023
  2. fredoh9 commented on Jul 12, 2023

    @fredoh9
    ContributorAuthor

    For today daily test, only playback is broken, capture tests were passed.

    Intel daily test: planresultdetail/28946?model=ADLP_SKU0B00_SDCA_IPC4ZPH&testcase=check-playback-100sec

  3. added this to the v2.7 milestone on Jul 14, 2023
  4. lgirdwood commented on Jul 14, 2023

    @lgirdwood
    Member

    @fredoh9 related to #7913 ? Both ADL and both SDW ? @kv2019i @bard any thoughts ?

  5. mengdonglin commented on Jul 31, 2023

    @mengdonglin
    Collaborator

    @fredoh9 @keqiaozhang @lgirdwood @bardliao @aiChaoSONG Maybe a duplicate of #7979 caused by copier refactoring commit e424b87 and fixed by #7987 by @ranj063 and @btian1

    ADLP_SKU0B00_SDCA as 2 speaker amplifiers on 2 SDW links, so the DAI copier has multi-endpoints

  6. lgirdwood commented on Jul 31, 2023

    @lgirdwood
    Member

    ok, pls mark as duplicate or close if fixed.

  7. fredoh9 commented on Jul 31, 2023

    @fredoh9
    ContributorAuthor

    @mengdonglin #7987 in new daily test(plan=29598) is working fine after #7987 merged

    New SOF build SHA1 is,
    79532b8 copier: fix no consume for multi endpoint copy

    Can we wait for a few days to confirm this?

  8. mengdonglin commented on Aug 1, 2023

    @mengdonglin
    Collaborator

    Can we wait for a few days to confirm this?
    @fredoh9 Okay.

    This issue cannot be reproduce on main branch commit cfd786110ae7 on ww31.2 (daily report ID 29617) The fix 79532b8
    has been merged

  9. fredoh9 commented on Aug 1, 2023

    @fredoh9
    ContributorAuthor

    yes, looks fixed. closing now

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

    ADLApplies to Alder Lake platformFix confirmedFix for the issue has been found and verifiedIntel Linux Daily testsThis issue can be found in internal Linux daily testsP1Blocker bugs or important featuresSDWSoundWirebugSomething isn't working as expectedduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions