public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/scsi/sym53c8xx_2/sym_glue.c
@ 2005-04-27 19:39 Bob Picco
  2005-05-02 20:02 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Picco @ 2005-04-27 19:39 UTC (permalink / raw)
  To: matthew; +Cc: linux-scsi, bob.picco

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@hp.com>


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) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-02 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 19:39 [PATCH] drivers/scsi/sym53c8xx_2/sym_glue.c Bob Picco
2005-05-02 20:02 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox