]> 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)
commit7346e1f60759e95dede85868951db009e211898e
treeced20274a6deba743926be0d9d67ec8c379707c6
parent8b321e3a7ec1a3c200b5a60d6965f6c2c2f2aa1b
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