Commit cb8bba90 authored by Mike Leach's avatar Mike Leach Committed by Greg Kroah-Hartman

coresight: etmv4: Fix resource selector constant

ETMv4 max resource selector constant incorrectly set to 16. Updated to the
correct 32 value, and adjustments made to limited code using it.
Signed-off-by: default avatarMike Leach <mike.leach@linaro.org>
Fixes: 2e1cdfe1 ("coresight-etm4x: Adding CoreSight ETM4x driver")
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200716175746.3338735-10-mathieu.poirier@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e82d785e
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
#define ETMv4_MAX_CTXID_CMP 8 #define ETMv4_MAX_CTXID_CMP 8
#define ETM_MAX_VMID_CMP 8 #define ETM_MAX_VMID_CMP 8
#define ETM_MAX_PE_CMP 8 #define ETM_MAX_PE_CMP 8
#define ETM_MAX_RES_SEL 16 #define ETM_MAX_RES_SEL 32
#define ETM_MAX_SS_CMP 8 #define ETM_MAX_SS_CMP 8
#define ETM_ARCH_V4 0x40 #define ETM_ARCH_V4 0x40
...@@ -325,7 +325,7 @@ struct etmv4_save_state { ...@@ -325,7 +325,7 @@ struct etmv4_save_state {
u32 trccntctlr[ETMv4_MAX_CNTR]; u32 trccntctlr[ETMv4_MAX_CNTR];
u32 trccntvr[ETMv4_MAX_CNTR]; u32 trccntvr[ETMv4_MAX_CNTR];
u32 trcrsctlr[ETM_MAX_RES_SEL * 2]; u32 trcrsctlr[ETM_MAX_RES_SEL];
u32 trcssccr[ETM_MAX_SS_CMP]; u32 trcssccr[ETM_MAX_SS_CMP];
u32 trcsscsr[ETM_MAX_SS_CMP]; u32 trcsscsr[ETM_MAX_SS_CMP];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment