Re: [PATCH V3 1/6] perf/x86/intel/uncore: Add Sapphire Rapids server support

From: Liang, Kan
Date: Wed Jun 30 2021 - 09:06:19 EST




On 6/30/2021 5:39 AM, Greg KH wrote:
On Tue, Jun 29, 2021 at 11:13:58AM -0700, kan.liang@xxxxxxxxxxxxxxx wrote:
From: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>

Intel Sapphire Rapids supports a discovery mechanism, that allows an
uncore driver to discover the different components ("boxes") of the
chip.

All the generic information of the uncore boxes should be retrieved from
the discovery tables. This has been enabled with the commit edae1f06c2cd
("perf/x86/intel/uncore: Parse uncore discovery tables"). Add
use_discovery to indicate the case. The uncore driver doesn't need to
hard code the generic information for each uncore box.

But we still need to enable various functionality that cannot be
directly discovered. This is done here.
- Add a meaningful name for each uncore block.
- Add CHA filter support.
- The layout of the control registers for each uncore block is a little
bit different from the generic one. Set the platform specific format
and ops. Expose the common ops which can be reused.
- Add a fixed counter for IMC

Shouldn't this all be individual patches, one per new feature added?
There's a lot of stuff happening all at once here, maybe the perf
maintainers are more lax about this type of thing than other
subsystems...


These features are similar to the previous platforms. The implementation is very similar, so I put them in one patch.

I will split the patch and make one patch for each unit in v4.

Thanks,
Kan