mirror of https://github.com/acidanthera/audk.git
b98e2113b5
As per the SCMI specification, section CLOCK_DESCRIBE_RATES mentions that the value of num_rates_flags[11:0] in the response must be 3 if the return format is the triplet. Due to the buggy firmware, this was not noticed for long time. The firmware is now fixed resulting in ClockDescribeRates() to fail with "Buffer Too Small" error as the RequiredArraySize gets miscalculated as 72 instead of 24. Fix the issue by reusing the logic for both the return format which must work if num_rates_flags has correct value as expected from the specification. Cc: Girish Pathak <girish.pathak@arm.com> Cc: Jeff Brasen <jbrasen@nvidia.com> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Tested-by: Pierre Gondois <pierre.gondois@arm.com> Reported-by: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Tested-by: Sami Mujawar <sami.mujawar@arm.com> |
||
---|---|---|
.. | ||
ArmScmiBaseProtocolPrivate.h | ||
ArmScmiClockProtocolPrivate.h | ||
ArmScmiDxe.inf | ||
ArmScmiPerformanceProtocolPrivate.h | ||
Scmi.c | ||
ScmiBaseProtocol.c | ||
ScmiClockProtocol.c | ||
ScmiDxe.c | ||
ScmiDxe.h | ||
ScmiPerformanceProtocol.c | ||
ScmiPrivate.h |