timer unit of Allwinner A64 UNKNOWN1 bug
Subsystems (2)
Hello all,
owned a Pinephone and it turns out, that the genmask(8,0) is not sufficient to get a workaround in this particular case.
The phone get freezed pretty often, and after some 10-15 minutes unfreezes. Time jumps too.
Did the test https://github.com/smaeul/timer-tools that resulted in
https://pastebin.com/xbTeksJN
After applying the patch (changing to genmask(7,0)) the test passed. No errors within hours and no freezes/time jumps.
Could you implement this into a mainline?
Best regards,
Ilya
drivers/clocksource/arm_arch_timer.c +1 -1
@@ -371,7 +371,7 @@do { \ _val =read_sysreg (reg); \ _retries--; \ - }while (((_val +1 ) &GENMASK (8 ,0 )) <=1 && _retries); \ + }while (((_val +1 ) &GENMASK (7 ,0 )) <=1 && _retries); \ \WARN_ON_ONCE (!_retries); \ _val; \
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel