MIPS: Octeon: Remove udelay() causing huge IRQ latency
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Wed, 18 Mar 2015 13:05:21 +0000 (14:05 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:19 +0000 (00:32 +0100)
commit53493d44a771a3155ee12b6ac668fb2543d21a7a
treef76a8669636a63033546c652e7f1bdf8e8187557
parent6bde6a3df0b4c8680d51c987d446b0ff2d6df0a6
MIPS: Octeon: Remove udelay() causing huge IRQ latency

commit 73bf3c2a500b2db8ac966469591196bf55afb409 upstream.

udelay() in PCI/PCIe read/write callbacks cause 30ms IRQ latency on Octeon
platforms because these operations are called from PCI_OP_READ() and
PCI_OP_WRITE() under raw_spin_lock_irqsave().

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: linux-mips@linux-mips.org
Cc: David Daney <ddaney@cavium.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Masanari Iida <standby24x7@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Mathias <mathias.rulf@nokia.com>
Patchwork: https://patchwork.linux-mips.org/patch/9576/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/mips/include/asm/octeon/pci-octeon.h
arch/mips/pci/pci-octeon.c
arch/mips/pci/pcie-octeon.c