[External] [PATCH v6 3/5] drivers: firmware: add riscv SSE support
Clément Léger
cleger at rivosinc.com
Tue Aug 12 05:57:02 PDT 2025
On 12/08/2025 14:54, yunhui cui wrote:
>> &preferred_hart);
>> + if (ret)
>> + goto err_event_free;
>> +
>> + cpu = riscv_hartid_to_cpuid(preferred_hart);
>> + sse_global_event_update_cpu(event, cpu);
>> +
>> + ret = sse_sbi_register_event(event, event->global);
>> + if (ret)
>> + goto err_event_free;
>> +
>> + } else {
>> + sse_on_each_cpu(event, SBI_SSE_EVENT_REGISTER,
>> + SBI_SSE_EVENT_DISABLE);
>> + }
> It is necessary to check the return value; otherwise, the event might
> be passed as a valid value to subsequent logic, such as
> sse_event_enable().
>
>
Hi Yunhui,
Indeed, nice catch. I'll fix that.
Thanks,
Clément
More information about the linux-riscv
mailing list