OSDN Git Service

ARC: [plat-eznps] disabled stall counter due to a HW bug
authorNoam Camus <noamca@mellanox.com>
Sun, 28 May 2017 06:52:04 +0000 (09:52 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Aug 2017 22:17:36 +0000 (15:17 -0700)
This counter represents threshold for consecutive stall which
would trigger HW threads scheduling. However when enabled, low
threshhold values cause performance degradation and in the
worst case even livelock.

So disable it by resorting to HW reset value

Signed-off-by: Noam Camus <noamca@mellanox.com>
Reviewed-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: fixed changelog]

arch/arc/plat-eznps/mtm.c

index aaaaffd..e0cb36b 100644 (file)
@@ -119,8 +119,6 @@ void mtm_enable_core(unsigned int cpu)
        mt_ctrl.value = 0;
        mt_ctrl.hsen = 1;
        mt_ctrl.hs_cnt = MT_CTRL_HS_CNT;
-       mt_ctrl.sten = 1;
-       mt_ctrl.st_cnt = MT_CTRL_ST_CNT;
        mt_ctrl.mten = 1;
        write_aux_reg(CTOP_AUX_MT_CTRL, mt_ctrl.value);