Skip to contentSkip to conversation

merge megaraid 2.20.x in kernel 2.6?

DISCUSSION Matt Domsch 4 participants 6 messages Aug 17, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

James, is there anything you're still waiting on before merging the LSI megaraid 2.20.x driver into your scsi-misc-2.6 tree? I thought the agreement by you, Christoph, and Atul was to get it merged, and then fix up the few outstanding concerns post-merge.

Thanks,
Matt

Signature · 4 lines
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
#1 lore raw
Quoted 4 lines · Matt Domsch

James, is there anything you're still waiting on before merging the LSI megaraid 2.20.x driver into your scsi-misc-2.6 tree? I thought the agreement by you, Christoph, and Atul was to get it merged, and then fix up the few outstanding concerns post-merge.

OK, I forgot in the rush of conferences.

I did put it in, but it fails to compile on parisc:

In file included from drivers/scsi/megaraid/megaraid_mm.c:18:
drivers/scsi/megaraid/megaraid_mm.h:51:25: asm/ioctl32.h: No such file or directory
drivers/scsi/megaraid/megaraid_mm.c: In function `mraid_mm_init':
drivers/scsi/megaraid/megaraid_mm.c:1069: warning: implicit declaration of function register_ioctl32_conversion' drivers/scsi/megaraid/megaraid_mm.c: In function mraid_mm_exit':
drivers/scsi/megaraid/megaraid_mm.c:1098: warning: implicit declaration of function `unregister_ioctl32_conversion'
make[3]: *** [drivers/scsi/megaraid/megaraid_mm.o] Error 1 make[2]: *** [drivers/scsi/megaraid] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

It looks like the compat ioctl infrastructure is incorrect.

James

#2 lore raw
Quoted 6 lines · James Bottomley
Quoted 4 lines · Matt Domsch

James, is there anything you're still waiting on before merging the LSI megaraid 2.20.x driver into your scsi-misc-2.6 tree? I thought the agreement by you, Christoph, and Atul was to get it merged, and then fix up the few outstanding concerns post-merge.

Quoted 7 lines

OK, I forgot in the rush of conferences.

I did put it in, but it fails to compile on parisc:

In file included from drivers/scsi/megaraid/megaraid_mm.c:18:
drivers/scsi/megaraid/megaraid_mm.h:51:25: asm/ioctl32.h: No such file or directory

No one should use <asm/ioctl32.h> but always <linux/ioctl32.h>

Quoted 6 lines

drivers/scsi/megaraid/megaraid_mm.c: In function `mraid_mm_init':
drivers/scsi/megaraid/megaraid_mm.c:1069: warning: implicit declaration of function register_ioctl32_conversion' drivers/scsi/megaraid/megaraid_mm.c: In function mraid_mm_exit':
drivers/scsi/megaraid/megaraid_mm.c:1098: warning: implicit declaration of function `unregister_ioctl32_conversion'

That should also fix this one I guess, not having the current source tree near me. Does this driver release have the queue removal James wanted?

#3 lore raw
Quoted 1 line · Christoph Hellwig

Does this driver release have the queue removal James wanted?

Not yet, that was one of the changes Atul requested he be allowed to make post-merge.

Thanks,
Matt

Signature · 4 lines
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
#4 lore raw
Quoted 2 lines · Matt Domsch

Not yet, that was one of the changes Atul requested he be allowed to make post-merge.

OK, this seems to be what fixes the COMPAT_IOCTL problem.

James

===== drivers/scsi/megaraid/megaraid_mm.c 1.1 vs edited =====

drivers/scsi/megaraid/megaraid_mm.c +1 -1
@@ -1075,7 +1075,7 @@
 /**
  * mraid_mm_compat_ioctl	: 32bit to 64bit ioctl conversion routine
  */
-#ifdef LSI_CONFIG_COMPAT
+#ifdef CONFIG_COMPAT
 static int
 mraid_mm_compat_ioctl(unsigned int fd, unsigned int cmd,
 			unsigned long arg, struct file *filep)

===== drivers/scsi/megaraid/megaraid_mm.h 1.1 vs edited =====

drivers/scsi/megaraid/megaraid_mm.h +2 -13
@@ -41,18 +41,7 @@
 /*
  * Localizing ioctl32 differences
  */
-#if defined (CONFIG_COMPAT) || defined(__x86_64__) || defined(IA32_EMULATION)
-#if !defined(CONFIG_IA64)
-#define LSI_CONFIG_COMPAT
-#endif
-#endif
-
-#ifdef LSI_CONFIG_COMPAT
-#include <asm/ioctl32.h>
-#else
-#define register_ioctl32_conversion(a,b)	do{}while(0)
-#define unregister_ioctl32_conversion(a)	do{}while(0)
-#endif /* LSI_CONFIG_COMPAT */
+#include <linux/ioctl32.h>
 
 /**
  * mimd_t	: Old style ioctl packet structure (deprecated)
@@ -137,7 +126,7 @@
 static void mraid_mm_free_adp_resources(mraid_mmadp_t *);
 static void mraid_mm_teardown_dma_pools(mraid_mmadp_t *);
 
-#ifdef LSI_CONFIG_COMPAT
+#ifdef CONFIG_COMPAT
 static int mraid_mm_compat_ioctl(unsigned int, unsigned int, unsigned long,
 		struct file *);
 #endif
#5 lore raw
In reply to Matt Domsch
Quoted 5 lines · Matt Domsch
Quoted 1 line · Christoph Hellwig

Does this driver release have the queue removal James wanted?

Not yet, that was one of the changes Atul requested he be allowed to make post-merge.

if that was a few weeks ago.. that should be completed by now, right ? I fear that when we merge this new driver we'll never get the queueing removed once it's let in.