Commit 1f61d824 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley

[SCSI] Change Kconfig option from IOMAPPED to MMIO

Most of the Kconfig options for switching between IO Port and MMIO
operations use the opposite sense from sym2.  Really, this option
should be set at a chipset level rather than per-driver.
Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 92aab646
...@@ -1079,7 +1079,7 @@ config SCSI_SYM53C8XX_DMA_ADDRESSING_MODE ...@@ -1079,7 +1079,7 @@ config SCSI_SYM53C8XX_DMA_ADDRESSING_MODE
memory using PCI DAC cycles. memory using PCI DAC cycles.
config SCSI_SYM53C8XX_DEFAULT_TAGS config SCSI_SYM53C8XX_DEFAULT_TAGS
int "default tagged command queue depth" int "Default tagged command queue depth"
depends on SCSI_SYM53C8XX_2 depends on SCSI_SYM53C8XX_2
default "16" default "16"
help help
...@@ -1090,7 +1090,7 @@ config SCSI_SYM53C8XX_DEFAULT_TAGS ...@@ -1090,7 +1090,7 @@ config SCSI_SYM53C8XX_DEFAULT_TAGS
exceed CONFIG_SCSI_SYM53C8XX_MAX_TAGS. exceed CONFIG_SCSI_SYM53C8XX_MAX_TAGS.
config SCSI_SYM53C8XX_MAX_TAGS config SCSI_SYM53C8XX_MAX_TAGS
int "maximum number of queued commands" int "Maximum number of queued commands"
depends on SCSI_SYM53C8XX_2 depends on SCSI_SYM53C8XX_2
default "64" default "64"
help help
...@@ -1099,13 +1099,14 @@ config SCSI_SYM53C8XX_MAX_TAGS ...@@ -1099,13 +1099,14 @@ config SCSI_SYM53C8XX_MAX_TAGS
possible. The driver supports up to 256 queued commands per device. possible. The driver supports up to 256 queued commands per device.
This value is used as a compiled-in hard limit. This value is used as a compiled-in hard limit.
config SCSI_SYM53C8XX_IOMAPPED config SCSI_SYM53C8XX_MMIO
bool "use port IO" bool "Use memory mapped IO"
depends on SCSI_SYM53C8XX_2 depends on SCSI_SYM53C8XX_2
default y
help help
If you say Y here, the driver will use port IO to access Memory mapped IO is faster than Port IO. Most people should
the card. This is significantly slower then using memory answer Y here, but some machines may have problems. If you have
mapped IO. Most people should answer N. to answer N here, please report the problem to the maintainer.
config SCSI_IPR config SCSI_IPR
tristate "IBM Power Linux RAID adapter support" tristate "IBM Power Linux RAID adapter support"
......
...@@ -1874,7 +1874,7 @@ sym_init_device(struct pci_dev *pdev, struct sym_device *device) ...@@ -1874,7 +1874,7 @@ sym_init_device(struct pci_dev *pdev, struct sym_device *device)
i = pci_get_base_address(pdev, 1, &device->mmio_base); i = pci_get_base_address(pdev, 1, &device->mmio_base);
pci_get_base_address(pdev, i, &device->ram_base); pci_get_base_address(pdev, i, &device->ram_base);
#ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED #ifdef CONFIG_SCSI_SYM53C8XX_MMIO
if (device->mmio_base) if (device->mmio_base)
device->s.ioaddr = pci_iomap(pdev, 1, device->s.ioaddr = pci_iomap(pdev, 1,
pci_resource_len(pdev, 1)); pci_resource_len(pdev, 1));
......
...@@ -973,8 +973,8 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru ...@@ -973,8 +973,8 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru
* *
* Has to be called with interrupts disabled. * Has to be called with interrupts disabled.
*/ */
#ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED #ifdef CONFIG_SCSI_SYM53C8XX_MMIO
static int sym_regtest (struct sym_hcb *np) static int sym_regtest(struct sym_hcb *np)
{ {
register volatile u32 data; register volatile u32 data;
/* /*
...@@ -992,20 +992,25 @@ static int sym_regtest (struct sym_hcb *np) ...@@ -992,20 +992,25 @@ static int sym_regtest (struct sym_hcb *np)
#endif #endif
printf ("CACHE TEST FAILED: reg dstat-sstat2 readback %x.\n", printf ("CACHE TEST FAILED: reg dstat-sstat2 readback %x.\n",
(unsigned) data); (unsigned) data);
return (0x10); return 0x10;
} }
return (0); return 0;
}
#else
static inline int sym_regtest(struct sym_hcb *np)
{
return 0;
} }
#endif #endif
static int sym_snooptest (struct sym_hcb *np) static int sym_snooptest(struct sym_hcb *np)
{ {
u32 sym_rd, sym_wr, sym_bk, host_rd, host_wr, pc, dstat; u32 sym_rd, sym_wr, sym_bk, host_rd, host_wr, pc, dstat;
int i, err=0; int i, err;
#ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED
err |= sym_regtest (np); err = sym_regtest(np);
if (err) return (err); if (err)
#endif return err;
restart_test: restart_test:
/* /*
* Enable Master Parity Checking as we intend * Enable Master Parity Checking as we intend
...@@ -1094,7 +1099,7 @@ restart_test: ...@@ -1094,7 +1099,7 @@ restart_test:
err |= 4; err |= 4;
} }
return (err); return err;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment