All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Higdon <jeremy@sgi.com>
To: Andrew Vasquez <praka@users.sourceforge.net>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Cc: jes@sgi.com
Subject: Re: qla1280 endiannes and 64/32bit fixes
Date: Sat, 17 Jan 2004 23:33:21 -0800	[thread overview]
Message-ID: <20040118073321.GC383498@sgi.com> (raw)
In-Reply-To: <20040118062157.GA11083@praka.local.home>

On Sat, Jan 17, 2004 at 10:21:57PM -0800, Andrew Vasquez wrote:
> 
> Jeremy:  have you had any problems with running I/O down the 64bit
> capable IOCB path?
> 
> --
> Andrew

No problems.  But then our Linux boxes are little endian.  We have
an ISP12160 on every one built so far, with no NVRAM.


James, with your code as it is now, ha->flags.enable_64bit_addressing
is always 0.  You'd need to add code to read the value out of the
nvram.  Then we'll need an nvram override for Altix.

Here's a patch to James's patch.  Yes, it has more nasty #ifdefs.  I
think there is probably a better way, but it's late  :-)

I'll let Jes continue with this, as I'll be away until next Friday.

thanks

jeremy

--- drivers/scsi/qla1280.c.bak	Sat Jan 17 23:22:54 2004
+++ drivers/scsi/qla1280.c	Sat Jan 17 23:22:59 2004
@@ -2935,6 +2935,15 @@
 	ha->flags.disable_risc_code_load =
 		nv->cntr_flags_1.disable_loading_risc_code;
 
+	/* Get NVRAM value from firmware */
+	ha->flags.enable_64bit_addressing =
+		nv->cntr_flags_1.enable_64bit_addressing;
+#if defined(CONFIG_IA64_GENERIC) || defined (CONFIG_IA64_SGI_SN2)
+	/* SN2 needs 64 bit */
+	if (ia64_platform_is("sn2"))
+		ha->flags.enable_64bit_addressing = 1;
+#endif
+
 	if (ha->flags.enable_64bit_addressing) {
 		dprintk(2, "scsi(%li): 64 Bit PCI Addressing Enabled\n",
 			ha->host_no);

  reply	other threads:[~2004-01-18  7:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-17 23:40 qla1280 endiannes and 64/32bit fixes James Bottomley
2004-01-18  2:43 ` Jeremy Higdon
2004-01-18  3:16   ` James Bottomley
2004-01-18  6:21     ` Andrew Vasquez
2004-01-18  7:33       ` Jeremy Higdon [this message]
2004-01-18 14:54         ` James Bottomley
2004-01-18 21:59           ` Jes Sorensen
2004-01-19 17:40           ` Christoph Hellwig
2004-01-19 21:13             ` Jes Sorensen
2004-01-18 14:35       ` James Bottomley
2004-01-19  8:54       ` Jes Sorensen
2004-01-18  7:08     ` Jeremy Higdon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040118073321.GC383498@sgi.com \
    --to=jeremy@sgi.com \
    --cc=jes@sgi.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=praka@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.