* qla2xxxx driver for IA64
@ 2003-11-19 17:10 Evan Felix
2003-11-19 20:13 ` David Mosberger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Evan Felix @ 2003-11-19 17:10 UTC (permalink / raw)
To: linux-ia64
Andrew, I downloaded the qla2xxx-src-v8.00.00b6.tar.bz2 driver from
sourceforge, and had a few issues getting it woking under IA64 on a
rx2600 system. We have two dual channel qla2312 cards.
- I had to add '#include <vmalloc.h>' to qla_os.c
- the IA64 ioctl.h file did not hav the _IOXX_BAD macros, and i added
them, i'm not sure how safe that was, but it compiled.
The driver then built fine, and we have been testing it for a couple
days now.
Evan
--
-------------------------
Evan Felix
Administrator of Supercomputer #5 in Top 500, Nov 2003
Environmental Molecular Sciences Laboratory
Pacific Northwest National Laboratory
Operated for the U.S. DOE by Battelle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: qla2xxxx driver for IA64
2003-11-19 17:10 qla2xxxx driver for IA64 Evan Felix
@ 2003-11-19 20:13 ` David Mosberger
2003-11-20 0:52 ` Greg Banks
2003-11-24 16:54 ` Andrew Vasquez
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2003-11-19 20:13 UTC (permalink / raw)
To: linux-ia64
>>>>> On Wed, 19 Nov 2003 09:10:34 -0800, Evan Felix <evan.felix@pnl.gov> said:
Evan> the IA64 ioctl.h file did not hav the _IOXX_BAD macros, and i
Evan> added them, i'm not sure how safe that was, but it compiled.
Last time I checked, the _IOXX_BAD macros were not used anywhere in
the standard kernel and that's why I leaned against including them
(they seemed like a very temporary thing to me). Perhaps the driver
could be fixed instead to not use the bad macros?
--david
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: qla2xxxx driver for IA64
2003-11-19 17:10 qla2xxxx driver for IA64 Evan Felix
2003-11-19 20:13 ` David Mosberger
@ 2003-11-20 0:52 ` Greg Banks
2003-11-24 16:54 ` Andrew Vasquez
2 siblings, 0 replies; 4+ messages in thread
From: Greg Banks @ 2003-11-20 0:52 UTC (permalink / raw)
To: linux-ia64
David Mosberger wrote:
>
> >>>>> On Wed, 19 Nov 2003 09:10:34 -0800, Evan Felix <evan.felix@pnl.gov> said:
>
> Evan> the IA64 ioctl.h file did not hav the _IOXX_BAD macros, and i
> Evan> added them, i'm not sure how safe that was, but it compiled.
>
> Last time I checked, the _IOXX_BAD macros were not used anywhere in
> the standard kernel and that's why I leaned against including them
> (they seemed like a very temporary thing to me). Perhaps the driver
> could be fixed instead to not use the bad macros?
Andrew,
In the v8.00.00b6 version the function pointer for the ioctl() handler
is not set up in qla2x00_driver_template in qla_os.c so none of the
ioctl()s work anyway.
This patch fixes it.
--- drivers/scsi/qla2xxx.v8.00.00b6.orig/qla_os.c Wed Nov 5 10:48:29 2003
+++ drivers/scsi/qla2xxx/qla_os.c Sat Nov 8 00:54:58 2003
@@ -405,6 +405,7 @@
.module = THIS_MODULE,
.name = DRIVER_NAME,
.proc_name = DRIVER_NAME,
+ .ioctl = qla2x00_ioctl,
.proc_info = qla2x00_proc_info,
.queuecommand = qla2x00_queuecommand,
Also, possibly one of the contributing factors which required
the use of _IOWR_BAD instead of _IOWR is the spurious sizeof()
in exioctln.h:
#define QL_IOCTL_BASE(idx) \
_IOWR_BAD(QLMULTIPATH_MAGIC, idx, sizeof(EXT_IOCTL))
^^^^^^
The macro expects a type as the third argument, not a size (despite
the name of the parameter in the macro definition).
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: qla2xxxx driver for IA64
2003-11-19 17:10 qla2xxxx driver for IA64 Evan Felix
2003-11-19 20:13 ` David Mosberger
2003-11-20 0:52 ` Greg Banks
@ 2003-11-24 16:54 ` Andrew Vasquez
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Vasquez @ 2003-11-24 16:54 UTC (permalink / raw)
To: linux-ia64
All,
> <evan.felix@pnl.gov> said:
>
> Evan> the IA64 ioctl.h file did not hav the _IOXX_BAD macros, and i
> Evan> added them, i'm not sure how safe that was, but it compiled.
>
The cooresponding callers of the IOCTLs have not had the changes added
to support the 8.x driver -- you should be ok for now.
> Last time I checked, the _IOXX_BAD macros were not used anywhere in
> the standard kernel and that's why I leaned against including them
> (they seemed like a very temporary thing to me). Perhaps the driver
> could be fixed instead to not use the bad macros?
>
Yes, the next driver drop will have the _BAD() macros usage addressed.
Thanks,
Andrew Vasquez
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-24 16:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-19 17:10 qla2xxxx driver for IA64 Evan Felix
2003-11-19 20:13 ` David Mosberger
2003-11-20 0:52 ` Greg Banks
2003-11-24 16:54 ` Andrew Vasquez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox