]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Cobalt: Fix theoretical port aliasing issue
authorRalf Baechle <ralf@linux-mips.org>
Wed, 24 Feb 2010 16:41:00 +0000 (17:41 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:43 +0000 (12:53 +0100)
commitd13d7660e4508877d1f30dcb9372cc6a05de3623
tree36e0ed76f0ec0e7b3b28877f9d37a9523227dec8
parent886f6895c9731bdf9082393db87eda8f91ee0cb9
MIPS: Cobalt: Fix theoretical port aliasing issue

Because the VIA SuperIO chip only decodes 24 bits of address space but port
address space currently being configured as 32MB there is the theoretical
possibility of aliases within the I/O port address range.

The complicated solution is to reserve all address range that potencially
could cause such aliases.  But with the PCI spec limiting port allocations
for devices to a maximum of 256 bytes 16MB of port address space already is
way more than one would ever expect to be used so we just reduce the port
space to 16MB.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
To: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: linux-mips@linux-mips.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Patchwork: http://patchwork.linux-mips.org/patch/995/
arch/mips/cobalt/pci.c