-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASoC: SOF: intel: hda-stream: Print stream name on STREAM_SD_OFFSET t… #3121
ASoC: SOF: intel: hda-stream: Print stream name on STREAM_SD_OFFSET t… #3121
Conversation
@plbossart, @lgirdwood: FYI. Is this something can be of use as mentioned in thesofproject/sof#4548? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is useful to help root causing the stream DMA stop offset timeout.
sound/soc/sof/intel/hda-stream.c
Outdated
if (ret < 0) { | ||
dev_err(sdev->dev, | ||
"%s: cmd %d on substream %s: timeout on STREAM_SD_OFFSET read\n", | ||
__func__, cmd, hstream->substream ? hstream->substream->name : "--"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be correct to assume that only the trace and or probes would not have a substream name ? if so, could we asign then a name as part of their open() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neither the probes, dma-trace or the real compressed would have substream. We don't have place to assign custom name, let me try something...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could print out the stream_tag
which is always unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, stream_tag
is in the FW logs so could be aligned with the dmesg and would work for debug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try to squeeze it there. We are 90 char already which is the limit I rather not step, but under 100 is still OK for checkpatch
ee77a51
to
27b016e
Compare
Changes since v1:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, stream_tag would be a bonus.
27b016e
to
fb4185e
Compare
Changes since v2:
|
fb4185e
to
c21ae64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @ujfalusi. out of curiosity what does stream name print? Usually, I can find out which streamis it my seeing the PCM device number and the direction. Just wondering what this would show
@ranj063, on a tgl-h laptop. |
@ujfalusi Thanks. I wonder if it then makes sense to also print the direction? subdevice #0 ? |
I tried to use the stream name for SoundWire stuff and all I could get was a bunch of 'subdevice #0' and 'subdevice #1'. Not very helpful when you have multiple dailinks. I ended-up adding the dai name to at least know which stream this really was. |
@plbossart, @ranj063, or if we can reach the dai-link name for the given stream? Looking at the prints the |
c21ae64
to
b0846b5
Compare
Changes since v3:
Tested on top of SOF clients branch to have working probes and the prints are: aplay -Dplughw:1,0 probes crecord |
Changes since v4:
|
b0846b5
to
666c187
Compare
…imeout In order to provide more information in case of timeout observed while reading STREAM_SD_OFFSET, print out the stream name or in case there is no audio stream associated (like dma-trace), print "--" Signed-off-by: Peter Ujfalusi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ujfalusi. this is quite nice!
…imeout
In order to provide more information in case of timeout observed while
reading STREAM_SD_OFFSET, print out the stream name or in case there is
no audio stream associated (like dma-trace), print "--"
Signed-off-by: Peter Ujfalusi [email protected]