[PATCH] drivers/scsi/sym53c8xx_2/sym_glue.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I believe the attempt not to use 64-bit BARs caused an unintended
result.  The current code disables MMIO for all 64 bit BARs and not just 
those with an address >= 4Gb.

thanks,


bob

Signed-off-by: Bob Picco <bob.picco@xxxxxx>


Index: linux-memory-less-nodes/drivers/scsi/sym53c8xx_2/sym_glue.c
===================================================================
--- linux-memory-less-nodes.orig/drivers/scsi/sym53c8xx_2/sym_glue.c	2005-04-27 14:17:07.000000000 -0400
+++ linux-memory-less-nodes/drivers/scsi/sym53c8xx_2/sym_glue.c	2005-04-27 14:18:21.000000000 -0400
@@ -155,10 +155,11 @@ pci_get_base_address(struct pci_dev *pde
 	base = tmp;
 	if ((tmp & 0x7) == PCI_BASE_ADDRESS_MEM_TYPE_64) {
 		pci_read_config_dword(pdev, PCI_BAR_OFFSET(index++), &tmp);
-		if (tmp > 0)
+		if (tmp > 0) {
 			dev_err(&pdev->dev,
 				"BAR %d is 64-bit, disabling\n", index - 1);
-		base = 0;
+			base = 0;
+		}
 	}
 
 	if ((base & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_IO) {
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux