]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: SLC: Make sure busy bit is set properly on SLC flushing
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 29 Mar 2017 14:15:11 +0000 (17:15 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 31 Mar 2017 00:32:33 +0000 (17:32 -0700)
commit8496329007dcb3ee3673af5e82e4b918d0469966
treeced20274a6deba743926be0d9d67ec8c379707c6
parent8c8c5731e37830c248deb1d4d9749f764fc427d6
ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

As reported in STAR 9001165532, an SLC control reg read (for checking
busy state) right after SLC invalidate command may incorrectly return
NOT busy causing software to NOT spin-wait while operation is underway.
(and for some reason this only happens if L1 cache is also disabled - as
required by IOC programming model)

Suggested workaround is to do an additional Control Reg read, which
ensures the 2nd read gets the right status.

Cc: stable@vger.kernel.org #4.10
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
[vgupta: reworte changelog a bit]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/cache.c