]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
committerHelge Deller <deller@gmx.de>
Thu, 6 Jun 2019 12:12:18 +0000 (14:12 +0200)
commit63923d2c3800919774f5c651d503d1dd2adaddd5
treef1dcdf2ecb8d36db9b9224d9ad08cc092eeb096d
parent6b98d9134e14f5ef4bcf64b27eedf484ed19a1ec
parisc: Use implicit space register selection for loading the coherence index of I/O pdirs

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>
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c