Re: [PATCH V5 16/20] platform/x86/intel/pmc: Display LPM requirements for multiple PMCs
From: Ilpo Järvinen
Date: Thu Nov 23 2023 - 09:08:31 EST
On Wed, 22 Nov 2023, David E. Box wrote:
> From: Rajvi Jingar <rajvi.jingar@xxxxxxxxxxxxxxx>
>
> Update the substate_requirements attribute to display the requirements for
> all the PMCs on a package.
>
> Signed-off-by: Rajvi Jingar <rajvi.jingar@xxxxxxxxxxxxxxx>
> Signed-off-by: David E. Box <david.e.box@xxxxxxxxxxxxxxx>
> ---
This change looked fine.
However, I spent considerable time in figuring out the addition of
lpm_req_regs NULL check so it would be nice to mention it in the commit
message that since the caller's primary_pmc->lpm_req_regs check no longer
covers all pmcs, it has to checked within the loop. It's was far from
obvious whether it was a bugfix accidently mixed together with this patch
or required by this change itself but I managed to finally convince
myself it's the latter.
With that noted down for the benefit of the next unfortunate victim who
has to read this change from the git history, :-)
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
--
i.