Re: [PATCH 3/5] ARC: handle DSP presence in HW

From: Vineet Gupta
Date: Mon Jan 06 2020 - 20:30:23 EST


On 1/6/20 5:03 PM, Vineet Gupta wrote:
>
>> +.macro DSP_SAVE_REGFILE_IRQ
>> +#if defined(CONFIG_ARC_DSP_KERNEL)
>> + /* Drop any changes to DSP_CTRL made by userspace so userspace won't be
>> + * able to break kernel */
>> + mov r58, DSP_CTRL_DISABLED_ALL
>> + sr r58, [ARC_AUX_DSP_CTRL]
>

This also clears the sticky flag DSP_CTRL.SAT, can you check with DSP lib folks if
they rely on this bit in any way whatsoever !