[Skiboot] [PATCH] hw/imc: Fix opal_imc_counters_* return for unknown type
Madhavan Srinivasan
maddy at linux.vnet.ibm.com
Wed Mar 20 14:59:29 AEDT 2019
On 10/01/19 3:36 AM, Stewart Smith wrote:
> Madhavan Srinivasan <maddy at linux.vnet.ibm.com> writes:
>> Commit 7801be0fcf2a2 ('skiboot: Add opal calls to init/start/stop IMC devices')
>> added opal_imc_counters_* calls to program and control the In-Memory
>> Collection(IMC) counter feature of the Power9 system. These opal calls
>> take "type" as input parameter to differentiate the device or domain to
>> work with. Even though, is_imc_device_type_supported() and
>> check_imc_device_type() is called at boot to remove any unknown imc
>> devices in the device tree, it is still better to return "OPAL_PARAMETER"
>> in the opal_imc_counters_* for any unknown type value passed.
> this seems to constitute an API change. What is the effect on current
> kernels? There should also be an update to the documentation for these
> calls explaining the current behaviour as well as noting that prior to
> version X there was this other behaviour.
Hi Stewart,
My bad, missed to respond to this.
Fix here is to adhere with the api definition document of imc.
"opal-imc-counters.rst" doc states for unsupported "type" the return
value is OPAL_PARAMETER.
Maddy
More information about the Skiboot
mailing list