diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2021-07-01 00:08:25 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-07-02 16:58:36 +0300 |
commit | c54c53d9921adef2c239cb43d5a936b63c57ebf0 (patch) | |
tree | 08192f4057fb136efb2e5cbf74adbb2a1bed6b02 /mm/vmalloc.c | |
parent | 012669c740e6e2afa8bdb95394d06676f933dd2d (diff) | |
download | linux-c54c53d9921adef2c239cb43d5a936b63c57ebf0.tar.xz |
perf/x86/intel/uncore: Add Sapphire Rapids server framework
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.
To support these functionalities, the Sapphire Rapids server framework
is introduced here. Each specific uncore unit will be added into the
framework in the following patches.
Add use_discovery to indicate that the discovery mechanism is required
for the platform. Currently, Intel Sapphire Rapids is one of the
platforms.
The box ID from the discovery table is the accurate index. Use it if
applicable.
All the undiscovered platform-specific features will be hard code in the
spr_uncores[]. Add uncore_type_customized_copy(), instead of the memcpy,
to only overwrite these features.
The specific uncore unit hasn't been added here. From user's
perspective, there is nothing changed for now.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lore.kernel.org/r/1625087320-194204-2-git-send-email-kan.liang@linux.intel.com
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions