aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorShaokun Zhang <[email protected]>2019-05-28 10:16:54 +0800
committerCatalin Marinas <[email protected]>2019-06-04 13:47:35 +0100
commit7b8c87b297a7c1b3badabc1d054b6e0b758952df (patch)
tree11ca9370d6a563b3e6703cf9b832aa42dc6d562e /scripts/gcc-plugins/cyc_complexity_plugin.c
parent9a83c84c3a491cbe7fc9dea3c43e26a8e67204d2 (diff)
arm64: cacheinfo: Update cache_line_size detected from DT or PPTT
cache_line_size is derived from CTR_EL0.CWG field and is called mostly for I/O device drivers. For some platforms like the HiSilicon Kunpeng920 server SoC, cache line sizes are different between L1/2 cache and L3 cache while L1 cache line size is 64-byte and L3 is 128-byte, but CTR_EL0.CWG is misreporting using L1 cache line size. We shall correct the right value which is important for I/O performance. Let's update the cache line size if it is detected from DT or PPTT information. Cc: Will Deacon <[email protected]> Cc: Jeremy Linton <[email protected]> Cc: Zhenfa Qiu <[email protected]> Reported-by: Zhenfa Qiu <[email protected]> Suggested-by: Catalin Marinas <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions