From d03e896b57ea1ae2fea640937df2d57b684ce629 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Fri, 21 Oct 2022 11:09:27 +0200 Subject: soc/intel/eklhartlake: Provide an option to disable the L1 prefetcher Depending on the real workload that is executed on the system the L1 prefetcher might be too aggressive and will populate the L1 cache ahead with data that is not really needed. In the end, this will result in a higher cache miss rate thus slowing down the real application. This patch provides a devicetree option to disable the L1 prefetcher if needed. This can be requested on mainboard level if needed. Change-Id: I3fc8fb79c42c298a20928ae4912ee23916463038 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/c/coreboot/+/68667 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) --- src/soc/intel/elkhartlake/chip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/elkhartlake/chip.h') diff --git a/src/soc/intel/elkhartlake/chip.h b/src/soc/intel/elkhartlake/chip.h index d63844ffe7..94a2cdff78 100644 --- a/src/soc/intel/elkhartlake/chip.h +++ b/src/soc/intel/elkhartlake/chip.h @@ -454,6 +454,9 @@ struct soc_intel_elkhartlake_config { * 3600, 3733, 4000, 4200, 4267 and 0 for Auto. */ uint16_t max_dram_speed_mts; + + /* Disable L1 prefetcher */ + bool L1_prefetcher_disable; }; typedef struct soc_intel_elkhartlake_config config_t; -- cgit v1.2.3