[EXT] Re: [RFC] firmware: arm_scmi: clock: add fixed clock attribute support
Sudeep Holla
sudeep.holla at arm.com
Wed Oct 11 06:40:03 PDT 2023
On Wed, Oct 11, 2023 at 03:54:59AM +0000, Ranjani Vaidyanathan wrote:
> From what I see SCMI clock protocol could benefit from an attribute for the
> clock that describes what operations are possible on a clock. There are many
> bus clocks that only the SCMI server manages and the error code DENIED
> should be handled gracefully by the agent.
>
Agreed, but we need to understand if we need it per operation basis or
at the higher granularity such as any write or set operations not allowed.
Just my initial thoughts, we can discuss.
> In the case of Linux, perhaps this should be handled by the SCMI clock
> driver, instead of allowing the error to propagate up the Linux clock
> framework?
Yes but even for that we need information from the firmware.
> It seems strange that the SCMI server should swallow the error (silently
> fail) only for certain agents.
I am bit confused by this statement. The SCMI server/platform must not
ignore or fail silently. Since the agent is not allowed, if it attempts
it must return the apt error.
While Linux may choose to ignore the error but I think this is what
we are discussing to figure out what is the best way to avoid it or
worst case handle it gracefully. With any extra info from the firmware,
the former option must be possible and we need not think of the latter
option IMO.
> I would think this would make debug quite difficult and having a "DENIED"
> error code not very useful.
>
Agreed especially if it can and is expected to continue functioning as normal.
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list