From 98a303843fe7e9a13c43dcf58c9e7aabefe0c717 Mon Sep 17 00:00:00 2001 From: Kyle Yan <kyan@codeaurora.org> Date: Mon, 22 May 2017 22:52:42 -0700 Subject: [PATCH] lrdp-v2: Fix cache dump parsing for Kryo3xx Initial commit of adding support for cache dump parsing in SDM845 contained syntax errors due to being unable to test on actual dumps. Fix the cache parsing to deal with the errors. Change-Id: I38dc3cebcd3ea7cfda1e6424fd4e19772b965570 --- linux-ramdump-parser-v2/cachedumplib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-ramdump-parser-v2/cachedumplib.py b/linux-ramdump-parser-v2/cachedumplib.py index ce5014b..40ba0cf 100644 --- a/linux-ramdump-parser-v2/cachedumplib.py +++ b/linux-ramdump-parser-v2/cachedumplib.py @@ -445,7 +445,7 @@ class L1_DCache_KRYO3XX_SILVER(CacheDumpType_v1): self.NumSets = 0x80 self.NumWays = 4 - def MESI_to_string(MESI_d): + def MESI_to_string(self, MESI_d): if MESI_d == 0: return 'I' elif MESI_d == 1: @@ -483,7 +483,7 @@ class L1_ICache_KRYO3XX_SILVER(CacheDumpType_v1): self.NumSets = 0x80 self.NumWays = 4 - def valid_to_string(valid_d): + def valid_to_string(self, valid_d): if valid_d == 0: return 'A32' elif valid_d == 1: @@ -518,7 +518,7 @@ class L1_DCache_KRYO3XX_GOLD(CacheDumpType_v1): self.NumSets = 0x40 self.NumWays = 16 - def MESI_to_string(MESI_d): + def MESI_to_string(self, MESI_d): if MESI_d == 0: return 'I' elif MESI_d == 1: @@ -537,7 +537,7 @@ class L1_DCache_KRYO3XX_GOLD(CacheDumpType_v1): mesi_d = (data[0] >> 2) & 0x3 addr = (addr_higher << 22) | addr_lower - mesi = MESI_to_string(mesi_d) + mesi = self.MESI_to_string(mesi_d) output.append(addr) output.append(mesi) -- GitLab