Attention is currently required from: Rizwan Qureshi, Angel Pons.

Subrata Banik uploaded patch set #7 to this change.

View Change

soc/intel/common/block/cpu: Introduce CAR_HAS_YMM Kconfig

List of changes:
1. Default select INTEL_CAR_NEM_ENHANCED to use the existing algorithm
2. Select CAR_HAS_SF_MASKS
3. Select COS_MAPPED_TO_MSB
4. Add new MSR 0xc85 IA32_YMM
4.
a. Update eNEM init flow:

- Set MSR 0x1891 IA32_CR_SF_QOS_MASK_1 = (1 << 2*no. of ways of LLC) - (2^(no. of data ways)-1)
- Set MSR 0x1892 IA32_CR_SF_QOS_MASK_2 = (2^(no. of data ways)-1)
- Set MSR 0xC85 L3_Protected_ways = (2^(no. of data ways)-1)

b. Update eNEM teardown flow:
- Set MSR 0xC85 L3_Protected_ways = 0x00000

This new eNEM flow can be used for ADL SoC and onwards.

BUG=b:168820083
TEST=Verified filling up the entire cache with memcpy at the beginning
itself and then running the entire bootblock, verstage, debug FSP-M
without running into any issue. This proofs that code caching and
eviction is working as expected in eNEM mode.

Change-Id: Idb5a9ec74c50bda371c30e13aeadbb4326887fd6
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
---
M src/include/cpu/x86/msr.h
M src/soc/intel/common/block/cpu/Kconfig
M src/soc/intel/common/block/cpu/car/cache_as_ram.S
M src/soc/intel/common/block/cpu/car/exit_car.S
4 files changed, 31 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/48344/7

To view, visit change 48344. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idb5a9ec74c50bda371c30e13aeadbb4326887fd6
Gerrit-Change-Number: 48344
Gerrit-PatchSet: 7
Gerrit-Owner: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-CC: Furquan Shaikh <furquan@google.com>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-CC: Rizwan Qureshi <rizwan.qureshi@intel.com>
Gerrit-CC: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi@intel.com>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newpatchset