linux/arch/sh/drivers
Hideo Saito bb68660943 sh: Fix PCI BAR address-space wraparound.
When a SH7751R system includes a card that has wide range space
like a graphics card, the pci-pci bridge controller can't set the
correct address range.

For example, when *lower_limit is 0xfd000000 and bar_size is
0x4000000, in the following code at arch/sh/drivers/pci/pci-auto.c,
0x0 is set in bar_value.

pciauto_setup_bars()
{
...
                bar_value = ((*lower_limit - 1) & ~(bar_size - 1)) + bar_size;
...
                *lower_limit = bar_value + bar_size;
}

As a result, 0x4000000 is set in *lower_limit, but this value is wrong.

The following patch avoids this problem by checking the range of the
value and refusing to update the BAR if the calculated value ends up
being bogus.

Signed-off-by: Hideo Saito <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2007-03-12 14:50:49 +09:00
..
dma sh: SH-DMAC compile fixes 2007-02-13 10:54:45 +09:00
pci sh: Fix PCI BAR address-space wraparound. 2007-03-12 14:50:49 +09:00
superhyway [PATCH] sh: SuperHyway support for SH4-202 2005-11-07 07:53:28 -08:00
heartbeat.c sh: Compile fix for heartbeat consolidation. 2007-02-13 15:46:39 +09:00
Kconfig sh: generic push-switch framework. 2006-12-06 10:45:38 +09:00
Makefile sh: heartbeat consolidation for banked LEDs. 2007-02-13 15:42:28 +09:00
push-switch.c sh: push-switch fixups for work_struct API damage. 2006-12-12 08:42:07 +09:00