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

* Re: [PATCH] drivers/scsi/sym53c8xx_2/sym_glue.c
  2005-04-27 19:39 [PATCH] drivers/scsi/sym53c8xx_2/sym_glue.c Bob Picco
@ 2005-05-02 20:02 ` Matthew Wilcox
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2005-05-02 20:02 UTC (permalink / raw)
  To: Bob Picco; +Cc: matthew, linux-scsi

On Wed, Apr 27, 2005 at 03:39:24PM -0400, Bob Picco wrote:
> 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.  You're quite right.  The code made a lot more sense when I
was trying to handle a real 64-bit BAR, but after I decided that changing
the rest of the driver to support this rare case was more trouble than
warranted, I didn't quite get it right.  I'll try and get 2.2.1 out today.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ 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