public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [HELP] qla2200 driver over 4G memory
@ 2002-06-19 10:02 miyoshi
  2002-06-19 15:57 ` Craig Tierney
  0 siblings, 1 reply; 8+ messages in thread
From: miyoshi @ 2002-06-19 10:02 UTC (permalink / raw)
  To: linux-scsi


Hi, all

I am using QLA2200 on my IA64 box and when I read data to
the area which strides over 4G boundaries, it seems to read
the disk data into wrap-around memory area.

I wrote small test kernel patch and read disk contents to
physical 0x1ffffc000 to 0x200013fff (0x18000 bytes.)
It reads first 16K bytes into 0x1ffffc000-0x1ffffffff correctly
but destroys 0x100000000-0x100013fff.

I checked the incorrect data contents via kdb, and also
my printk() in qla2100_64bit_start_scsi() says the address is
correctly written into request ring, as far as I understood
the driver code correctly.

Does anybody have idea?

Thanks,

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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-19 10:02 [HELP] qla2200 driver over 4G memory miyoshi
@ 2002-06-19 15:57 ` Craig Tierney
  2002-06-20 10:20   ` miyoshi
  0 siblings, 1 reply; 8+ messages in thread
From: Craig Tierney @ 2002-06-19 15:57 UTC (permalink / raw)
  To: miyoshi; +Cc: linux-scsi

I haven't had to do this, but did you change the bios
settings on the QLA2200 to allow the card to access
memory above 4GB?  There is an option in there for
this.

Craig

On Wed, Jun 19, 2002 at 07:02:28PM +0900, miyoshi@hpc.bs1.fc.nec.co.jp wrote:
> 
> Hi, all
> 
> I am using QLA2200 on my IA64 box and when I read data to
> the area which strides over 4G boundaries, it seems to read
> the disk data into wrap-around memory area.
> 
> I wrote small test kernel patch and read disk contents to
> physical 0x1ffffc000 to 0x200013fff (0x18000 bytes.)
> It reads first 16K bytes into 0x1ffffc000-0x1ffffffff correctly
> but destroys 0x100000000-0x100013fff.
> 
> I checked the incorrect data contents via kdb, and also
> my printk() in qla2100_64bit_start_scsi() says the address is
> correctly written into request ring, as far as I understood
> the driver code correctly.
> 
> Does anybody have idea?
> 
> Thanks,
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Craig Tierney (ctierney@hpti.com)

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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-19 15:57 ` Craig Tierney
@ 2002-06-20 10:20   ` miyoshi
  2002-06-20 18:18     ` Doug Ledford
  0 siblings, 1 reply; 8+ messages in thread
From: miyoshi @ 2002-06-20 10:20 UTC (permalink / raw)
  To: ctierney; +Cc: linux-scsi


Hi, 

Thanks for your reply.

I enabled "4GB > addressing" on HBA BIOS but it still destroys
wrap-around memory area...

Regards,

> I haven't had to do this, but did you change the bios
> settings on the QLA2200 to allow the card to access
> memory above 4GB?  There is an option in there for
> this.
> 
> Craig
> 
> On Wed, Jun 19, 2002 at 07:02:28PM +0900, miyoshi@hpc.bs1.fc.nec.co.jp wrote:
> > 
> > Hi, all

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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-20 10:20   ` miyoshi
@ 2002-06-20 18:18     ` Doug Ledford
  2002-06-20 18:46       ` Matthew Jacob
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Ledford @ 2002-06-20 18:18 UTC (permalink / raw)
  To: miyoshi; +Cc: ctierney, linux-scsi

On Thu, Jun 20, 2002 at 07:20:38PM +0900, miyoshi@hpc.bs1.fc.nec.co.jp wrote:
> 
> Hi, 
> 
> Thanks for your reply.
> 
> I enabled "4GB > addressing" on HBA BIOS but it still destroys
> wrap-around memory area...

Try splitting the sg segment up into a segment that goes up to the 
boundary and a different segment that starts after the boundary and see if 
that solves the problem.

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-20 18:18     ` Doug Ledford
@ 2002-06-20 18:46       ` Matthew Jacob
  2002-06-20 20:21         ` Doug Ledford
  0 siblings, 1 reply; 8+ messages in thread
From: Matthew Jacob @ 2002-06-20 18:46 UTC (permalink / raw)
  To: Doug Ledford; +Cc: miyoshi, ctierney, linux-scsi



Hah. The qlogic documentation is clear- you can't span 4GB segments when you
use 64 bit SCSI requests.

On Thu, 20 Jun 2002, Doug Ledford wrote:

> On Thu, Jun 20, 2002 at 07:20:38PM +0900, miyoshi@hpc.bs1.fc.nec.co.jp wrote:
> > 
> > Hi, 
> > 
> > Thanks for your reply.
> > 
> > I enabled "4GB > addressing" on HBA BIOS but it still destroys
> > wrap-around memory area...
> 
> Try splitting the sg segment up into a segment that goes up to the 
> boundary and a different segment that starts after the boundary and see if 
> that solves the problem.
> 
> -- 
>   Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
>          Red Hat, Inc. 
>          1801 Varsity Dr.
>          Raleigh, NC 27606
>   
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-20 18:46       ` Matthew Jacob
@ 2002-06-20 20:21         ` Doug Ledford
  2002-06-20 20:35           ` Matthew Jacob
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Ledford @ 2002-06-20 20:21 UTC (permalink / raw)
  To: Matthew Jacob; +Cc: miyoshi, ctierney, linux-scsi

On Thu, Jun 20, 2002 at 11:46:05AM -0700, Matthew Jacob wrote:
> 
> 
> Hah. The qlogic documentation is clear- you can't span 4GB segments when you
> use 64 bit SCSI requests.

Hehehe...I would have said that instead of guessing that if I actually had 
docs ;-)

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-20 20:21         ` Doug Ledford
@ 2002-06-20 20:35           ` Matthew Jacob
  2002-06-21  2:27             ` miyoshi
  0 siblings, 1 reply; 8+ messages in thread
From: Matthew Jacob @ 2002-06-20 20:35 UTC (permalink / raw)
  To: Doug Ledford; +Cc: miyoshi, ctierney, linux-scsi

On Thu, 20 Jun 2002, Doug Ledford wrote:

> On Thu, Jun 20, 2002 at 11:46:05AM -0700, Matthew Jacob wrote:
> > 
> > 
> > Hah. The qlogic documentation is clear- you can't span 4GB segments when you
> > use 64 bit SCSI requests.
> 
> Hehehe...I would have said that instead of guessing that if I actually had 
> docs ;-)

Aw, g'wan wid zchew.... I'm sure QLogic will give you docs... :-)



Hmph.... now that I actually have one PC with > 4GB memory, I guess I'd better
start looking to make sure my own driver works right......




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

* Re: [HELP] qla2200 driver over 4G memory
  2002-06-20 20:35           ` Matthew Jacob
@ 2002-06-21  2:27             ` miyoshi
  0 siblings, 0 replies; 8+ messages in thread
From: miyoshi @ 2002-06-21  2:27 UTC (permalink / raw)
  To: mjacob, dledford, ctierney, linux-scsi


Hi,

> Hah. The qlogic documentation is clear- you can't span 4GB segments when you
> use 64 bit SCSI requests.

Thanks, it's clear to me now :-)

Perhaps qla2x00's higher 32bits just holds the bits.
It sounds natural from cost consideration :-<

Regards,

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

end of thread, other threads:[~2002-06-21  2:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-19 10:02 [HELP] qla2200 driver over 4G memory miyoshi
2002-06-19 15:57 ` Craig Tierney
2002-06-20 10:20   ` miyoshi
2002-06-20 18:18     ` Doug Ledford
2002-06-20 18:46       ` Matthew Jacob
2002-06-20 20:21         ` Doug Ledford
2002-06-20 20:35           ` Matthew Jacob
2002-06-21  2:27             ` miyoshi

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