Repository navigation
topology2: Deep Buffer cleanups - #8700
Conversation
The DeepBuffer stream is D0I3 compatible for some time now on all IPC4 platforms, The CAVS2.5 topologies just did not got updated. Swap the default for the DEEPBUFFER_D0I3_COMPATIBLE to true. New, experimental platforms can change this if needed until the feature is verified. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The default for DEEPBUFFER_FW_DMA_MS is 100, remove the DEEPBUFFER_FW_DMA_MS parameter set for individual topologies when the value set is also 100 Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
jsarha
left a comment
There was a problem hiding this comment.
Looks technically sound. There is couple of topologies that used to have DEEPBUFFER_D0I3_COMPATIBLE=false before this, but I guess that is intentional. Wonder, if that would still be worth mentioning explicitly int he commit message.
Hrm, I think we only have DEEPBUFFER_D0I3_COMPATIBLE=true specified for topologies. True that when it was not set those were taking the false, but this is mentioned in the commit message. I have re-checked again and I did not removed any DEEPBUFFER_D0I3_COMPATIBLE=false |
|
There are some
Yes I only meant that, some topologies used the default setting, which is false. And indeed there is the sentence about the cavs2.5 topologies, I just did not read it with ehough tought. |
| # SSP topology for MTL | ||
| "cavs-nocodec\;sof-mtl-nocodec\;PLATFORM=mtl,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,\ | ||
| PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-nocodec.bin,DEEPBUFFER_FW_DMA_MS=100,\ | ||
| DEEPBUFFER_D0I3_COMPATIBLE=true" |
There was a problem hiding this comment.
I think this flag is controversial even for MTL. The intention of the D0i3_COMPATIBLE flag for a pcm was to ensure that while the stream is suspended by ALSA, it can still keep running the DSP. While this works for streams like wov, we have no idea how to do this for playback. So until we figure out how to do this, my vote would be to set this to false for all platforms or even better just remove it altogether for now. @plbossart @kv2019i what do you think?
There was a problem hiding this comment.
@ranj063 the D0i3 premise is that there's a contract between host and dsp that there will be no IPC or interaction in the immediate future, so the DSP can turn specific things off.
I am not sure what remains to be done for D0i3, we already have an idleness detection and in theory all we need to do is send the D0i3 IPC and set the D0i3 mode.
What are we missing to enable this mode? I don't fully follow the 'we have no idea how to do this' since it's been done before on other platforms.
There was a problem hiding this comment.
@plbossart what I was referring to was enabling S0ix playback. If we set a stream as D0i3 compatible and suspend the system to S0ix, the stream will get suspended by ALSA but can it really keep running in the DSP in this case? I suppose we have never tried this.
There was a problem hiding this comment.
@ranj063 I suggest we try walking before running. the first issue to solve is to see if we can detect 'idleness' in S0/D0i0 and transition to S0/D0i3 without any issues in audio rendering.
The S0i1 case is different, the host side will need to periodically refill buffers and that means applications need to keep on running. I am not sure this can be done either, but that's the second level of optimization.
There was a problem hiding this comment.
@plbossart my point is that the deep buffer stream with this flag set will not be able to resume from S0ix. We don't test this in our CI today, so we havent seen it fail.
There was a problem hiding this comment.
@ranj063, should then it be disabled? The DEEPBUFFER_D0I3_COMPATIBLE is applied to DeepBuffer PCMs and they are playback PCMs, so the flag is wrong and it is incorrectly enabled?
Hi,
Set DEEPBUFFER_D0I3_COMPATIBLE to true by default for all configuration and remove the individual topology parameters.
Reasoning:
The DeepBuffer stream is D0I3 compatible for some time now on all IPC4 platforms, The CAVS2.5 topologies just did not got updated.
Remove the DEEPBUFFER_FW_DMA_MS=100 from individual topology parameter list as it is redundant, the default value is 100.