Skip to content

[BUG] I/O error when checking capture on LNL-HDA #8714

@keqiaozhang

Description

@keqiaozhang

Describe the bug
No obvious error in kernel log, there's one I/O error in console log. From the mtrace, it should be a xrun happened.
the reproduction rate is low.

To Reproduce
~/sof-test/test-case/check-capture.sh -d 1 -l 1 -r 50

Reproduction Rate
TBD

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: {sof-hda-generic-4ch.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {LNL-HDA}

Screenshots or console output

2024-01-08 23:13:12 UTC [REMOTE_INFO] ===== Testing: (Round: 45/50) (PCM: HDA Analog [hw:0,0]) (Loop: 1/1) =====
2024-01-08 23:13:12 UTC [REMOTE_INFO] no file prefix, use /dev/null as dummy capture output
2024-01-08 23:13:12 UTC [REMOTE_COMMAND] arecord   -Dhw:0,0 -r 48000 -c 2 -f S16_LE -d 1 /dev/null -v -q
Hardware PCM card 0 'sof-hda-dsp' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  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  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 4611686018427387904
  appl_ptr     : 0
  hw_ptr       : 0
arecord: pcm_read:2221: read error: Input/output error
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/127/gvfs
      Output information may be incomplete.
2024-01-08 23:21:08 UTC [REMOTE_ERROR] arecord on PCM hw:0,0 failed at 1/1.
2024-01-08 23:21:08 UTC [REMOTE_INFO] Starting func_exit_handler(1)
2024-01-08 23:21:08 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2024-01-08 23:21:08 UTC [REMOTE_ERROR]  die()  @  /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2024-01-08 23:21:08 UTC [REMOTE_ERROR]  main()  @  /home/ubuntu/sof-test/test-case/check-capture.sh:100
2024-01-08 23:21:08 UTC [REMOTE_INFO] pkill -TERM -f mtrace-reader.py
2024-01-08 23:21:08 UTC [REMOTE_INFO] nlines=10717 /home/ubuntu/sof-test/logs/check-capture/2024-01-08-23:11:31-9208/mtrace.txt
2024-01-08 23:21:09 UTC [REMOTE_INFO] ktime=1962 sof-test PID=10477: ending
2024-01-08 23:21:09 UTC [REMOTE_INFO] Test Result: FAIL!

dmesg.txt

mtrace.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    HDAApplies to HD-Audio bus for codec connectionLNLApplies to Lunar Lake platformP2Critical bugs or normal featuresbugSomething isn't working as expectedxrunXRUN is observed and firmware may not recover

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions