parisc: Use implicit space register selection for loading the coherence index of...
authorJohn David Anglin <dave.anglin@bell.net>
Tue, 28 May 2019 00:15:14 +0000 (20:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:20:51 +0000 (12:20 +0200)
commit384c1d931b5ed0fa2dc55b0eef45da489f980b9f
tree1cdbd6080702334d80b610d4e4e816070727b141
parent6726307d20084cd8af3812e10c71c9b9a91fc24f
parisc: Use implicit space register selection for loading the coherence index of I/O pdirs

commit 63923d2c3800919774f5c651d503d1dd2adaddd5 upstream.

We only support I/O to kernel space. Using %sr1 to load the coherence
index may be racy unless interrupts are disabled. This patch changes the
code used to load the coherence index to use implicit space register
selection. This saves one instruction and eliminates the race.

Tested on rp3440, c8000 and c3750.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c