OSDN Git Service

MIPS: Alchemy: Increase minimum timeout for 32kHz timer.
authorManuel Lauss <manuel.lauss@googlemail.com>
Tue, 20 Dec 2011 16:37:29 +0000 (17:37 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 20 Feb 2012 17:33:18 +0000 (18:33 +0100)
commit8e3657903589f5a5a36a95f660a33e137b3da6f5
tree47f7853d3e662ff6b6e307eedcae48687e374414
parent193fb42613ec8d96bcb645cf717e949821ff07a7
MIPS: Alchemy: Increase minimum timeout for 32kHz timer.

Since a clocksource change post 3.2-rc1, tasks on my DB1500 board
hang after random amounts of time (from a few minutes to a few hours),
regardless of load.  Debugging showed that the compare-match register
value is a few seconds lower than the current counter value.

The minimum value of 8 was initialy determined by a trial-and-error
approach.  Currently it is sufficient for all Alchemys (without PCI
apparently), independent of CPU clock;  only the DB1500 and DB1550
boards experience these timer-related tasks hangs now.

This patch increases the minimum timeout by 1 (to 9 counter ticks)
which seems sufficient since the systems are still working perfectly
fine after over 24 hours.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3214/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/time.c