linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: sym53c8xx_2 and highmem_io
@ 2002-09-16 17:49 Todd Inglett
  2002-09-16 18:16 ` Todd Inglett
  2002-09-17 20:48 ` Gérard Roudier
  0 siblings, 2 replies; 3+ messages in thread
From: Todd Inglett @ 2002-09-16 17:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Gerard Roudier

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

I've been having an interesting experience getting sym53c8xx_2 working
on ppc64 now that highio is in place.  Of course ppc64 doesn't need
highio, and it does set blk_nohighio = 1 in setup_arch().  So the
sym53c8xx driver works.

However, sym53c8xx_2 fails because after calling scsi_register() in its
attach it blindly slams highmem_io on (in sym_glue.c).  Is this
correct?  It seems to me that it should just leave it alone since
scsi_register already handled that.

I might be misunderstanding something here.  Is there anything else a
64-bit arch must do for highio?  I found we also weren't setting max_pfn
which seemed bad...though maybe irrelevant.

The trivial patch to fix it is attached, but I haven't tested it on a
system that supports highio.

-todd


[-- Attachment #2: highio.sym2.patch --]
[-- Type: text/x-diff, Size: 613 bytes --]

Index: drivers/scsi/sym53c8xx_2/sym_glue.c
===================================================================
RCS file: /cvs/linuxppc64/linuxppc64_2_4/drivers/scsi/sym53c8xx_2/sym_glue.c,v
retrieving revision 1.2
diff -u -r1.2 sym_glue.c
--- drivers/scsi/sym53c8xx_2/sym_glue.c	23 Aug 2002 18:43:46 -0000	1.2
+++ drivers/scsi/sym53c8xx_2/sym_glue.c	16 Sep 2002 17:45:54 -0000
@@ -2140,7 +2140,7 @@
 	instance->max_cmd_len	= 16;
 #endif
 	instance->select_queue_depths = sym53c8xx_select_queue_depths;
-	instance->highmem_io	= 1;
+	/* instance->highmem_io	= 1; */
 
 	SYM_UNLOCK_HCB(np, flags);
 

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

* Re: BUG: sym53c8xx_2 and highmem_io
  2002-09-16 17:49 BUG: sym53c8xx_2 and highmem_io Todd Inglett
@ 2002-09-16 18:16 ` Todd Inglett
  2002-09-17 20:48 ` Gérard Roudier
  1 sibling, 0 replies; 3+ messages in thread
From: Todd Inglett @ 2002-09-16 18:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: Gerard Roudier

On Mon, 2002-09-16 at 12:49, Todd Inglett wrote:

> However, sym53c8xx_2 fails because after calling scsi_register() in its
> attach it blindly slams highmem_io on (in sym_glue.c).  Is this
> correct?  It seems to me that it should just leave it alone since
> scsi_register already handled that.

It's interesting that in 2.5 this assignment is still there, but the
driver works.  However, scsi_merge.c is very different.  I won't pretend
to know the scsi layer that well :).

Maybe the real fix is still somewhere else....

-todd


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

* Re: BUG: sym53c8xx_2 and highmem_io
  2002-09-16 17:49 BUG: sym53c8xx_2 and highmem_io Todd Inglett
  2002-09-16 18:16 ` Todd Inglett
@ 2002-09-17 20:48 ` Gérard Roudier
  1 sibling, 0 replies; 3+ messages in thread
From: Gérard Roudier @ 2002-09-17 20:48 UTC (permalink / raw)
  To: Todd Inglett; +Cc: linux-kernel


On 16 Sep 2002, Todd Inglett wrote:

> I've been having an interesting experience getting sym53c8xx_2 working
> on ppc64 now that highio is in place.  Of course ppc64 doesn't need
> highio, and it does set blk_nohighio = 1 in setup_arch().  So the
> sym53c8xx driver works.
>
> However, sym53c8xx_2 fails because after calling scsi_register() in its
> attach it blindly slams highmem_io on (in sym_glue.c).  Is this
> correct?  It seems to me that it should just leave it alone since
> scsi_register already handled that.

The may-be offending line is not from me. It has been added by a kernel
maintainer at the time the corresponding feature ;-) was added to the
Linux kernel.

Note that this let me think that it may well have been correct at that
time, at least.;)

The greatest guru for all this kinds of alchemy that address complex
beyond expectation architectures is David S. Miller IMO. You may submit
him your suggestion or just sent it to the linux Kernel list.

> I might be misunderstanding something here.  Is there anything else a
> 64-bit arch must do for highio?  I found we also weren't setting max_pfn
> which seemed bad...though maybe irrelevant.

highio very probably addresses antic 32 bit archs that want to address
more than 4 GB of physical memory, thus Intel PAE band-aid to IA32.

> The trivial patch to fix it is attached, but I haven't tested it on a
> system that supports highio.

Nor I can, since such systems are too expensive for me and, on the other
hand, I don't need nor want to use such horrible hardware.

Regards,
  Gérard.


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

end of thread, other threads:[~2002-09-17 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16 17:49 BUG: sym53c8xx_2 and highmem_io Todd Inglett
2002-09-16 18:16 ` Todd Inglett
2002-09-17 20:48 ` Gérard Roudier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).