diff options
author | Subrata Banik <subrata.banik@intel.com> | 2021-07-23 21:00:58 +0530 |
---|---|---|
committer | Subrata Banik <subrata.banik@intel.com> | 2021-08-11 05:49:42 +0000 |
commit | 0c6c0dac5028cf77acc0ecfe864c11812efa1039 (patch) | |
tree | c43e8669a4b05b31e60298e11a156aea2c445723 /src/drivers/analogix/anx7625/Makefile.inc | |
parent | cf1996def838afbe2a650ec68bdcf6f9addc81cd (diff) |
arch/x86: Helper functions to get deterministic cache parameters
This patch creates helper function that internally detects the CPU
type (AMD or Intel) and pick the leaf to send CPUID instruction with
different cache level to retrieve deterministic cache parameters.
Lists of helper functions generated as part of this CL :
1. cpu_check_deterministic_cache_cpuid_supported => if CPU has support
for deterministic cache using CPUID instruction.
2. cpu_get_cache_ways_assoc_info => Get cache ways for associativity.
3. cpu_get_cache_type => Get cache type.
4. cpu_get_cache_level => Get cache level.
5. cpu_get_cache_phy_partition_info => Get cache physical partitions.
6. cpu_get_cache_line_size => Get cache line size.
7. cpu_get_cache_sets => Get cache number of sets.
8. cpu_is_cache_full_assoc => Check if cache is fully associative.
9. cpu_get_max_cache_share => Cores are sharing this cache.
10. get_cache_size => Calculate the cache size.
11. fill_cpu_cache_info => Fill cpu_cache_info structure.
Change-Id: I0dd701fb47460092448b64c7fa2162f762bf3095
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55965
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/analogix/anx7625/Makefile.inc')
0 files changed, 0 insertions, 0 deletions