sof icon indicating copy to clipboard operation
sof copied to clipboard

ipc4: remove report dsp properties to host driver

Open dnikodem opened this issue 2 years ago • 6 comments

The ADSP properties are obsolete and not using by host driver so can be removed.

Signed-off-by: Damian Nikodem [email protected]

dnikodem avatar Aug 16 '22 11:08 dnikodem

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

plbossart avatar Aug 17 '22 06:08 plbossart

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

Yes, some of them are used in the kernel. Please don't remove it.

bardliao avatar Aug 17 '22 07:08 bardliao

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

ipc4 fw also supports windows which requires these properties and we will add more missed.

RanderWang avatar Aug 17 '22 07:08 RanderWang

@dnikodem ok, it looks like these will need to be optional as some driver may use and others may not use.

lgirdwood avatar Aug 17 '22 09:08 lgirdwood

Thanks for your update - it is really helpful.

Ok, so now it is clear that the kernel uses MAX_PPL_CNT from DSP_PROPERTIES - removing it would cause regression.

I checked the code base also and in my opinion we can try to use FIRMWARE_CONFIG (extended ID 7) instead of DSP_PROPERTIES (extended ID 0) to get MAX_PPL_CNT. Could I ask for help with determining if the kernel/windows uses any other DSP properties?

If the kernel/windows uses MAX_PPL_CNT only, what do you think about such a change? (using FIRMWARE_CONFIG and removing DSP_PROPERTIES support as it is obsolete)

dnikodem avatar Aug 19 '22 09:08 dnikodem

Thanks for your update - it is really helpful.

Ok, so now it is clear that the kernel uses MAX_PPL_CNT from DSP_PROPERTIES - removing it would cause regression.

I checked the code base also and in my opinion we can try to use FIRMWARE_CONFIG (extended ID 7) instead of DSP_PROPERTIES (extended ID 0) to get MAX_PPL_CNT. Could I ask for help with determining if the kernel/windows uses any other DSP properties?

If the kernel/windows uses MAX_PPL_CNT only, what do you think about such a change? (using FIRMWARE_CONFIG and removing DSP_PROPERTIES support as it is obsolete)

Sounds like a topic for next Tuesday call. @mwasko fyi.

lgirdwood avatar Aug 19 '22 15:08 lgirdwood

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

ipc4 fw also supports windows which requires these properties and we will add more missed.

@RanderWang Windows driver do not use ADSP Properties, it ask only for IPC4 HW Config and FW Config. That is a reason why we want to clean IPC4 and remove unused ADSP properties.

mwasko avatar Aug 22 '22 08:08 mwasko

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

Yes, some of them are used in the kernel. Please don't remove it.

@bardliao as far as I can tell all the ADSP properties fields can be read either from FW Config (e.g. MAX_PPL_COUNT) or HW Config. Keeping it duplicated is not a good approach so the recommendation is to remove ADSP properties and use FW and HW config instead.

mwasko avatar Aug 22 '22 08:08 mwasko

FYI @pjdobrowolski

kv2019i avatar Aug 22 '22 09:08 kv2019i

Pretty sure some of those properties are used in the kernel, e.g. the MAX_PPL_COUNT. Adding @RanderWang and @bardliao for comments.

Yes, some of them are used in the kernel. Please don't remove it.

@bardliao as far as I can tell all the ADSP properties fields can be read either from FW Config (e.g. MAX_PPL_COUNT) or HW Config. Keeping it duplicated is not a good approach so the recommendation is to remove ADSP properties and use FW and HW config instead.

it's fine to clean things up @mwasko but it's an ABI change. this cannot be done without a real process.

plbossart avatar Aug 22 '22 11:08 plbossart

Thanks for checking @kv2019i . @ujfalusi good for you too after checking now ?

lgirdwood avatar Aug 23 '22 14:08 lgirdwood

@dnikodem still draft (i.e. WIP) or ready to merge ?

lgirdwood avatar Aug 24 '22 10:08 lgirdwood