Linux MIPS Architecture development
 help / color / mirror / Atom feed
* RE: mips kernel 2.6.16rc1 + IET 0.4.13 -  /dev/ietctl - ioctl unknown command
@ 2006-03-08 18:18 Shanthi Kiran Pendyala (skiranp)
  2006-03-09 14:19 ` [Iscsitarget-devel] " Ming Zhang
  0 siblings, 1 reply; 4+ messages in thread
From: Shanthi Kiran Pendyala (skiranp) @ 2006-03-08 18:18 UTC (permalink / raw)
  To: Frederic Temporelli, iet-dev, linux-mips

I have seen such error messages when userspace app is built in 32bit
mode
And kernel is built in 64 bit mode. Does this apply to your setup ?

The way to fix this is to register a ioctl32 conversion routine in
The driver. Google is your friend..

Thx
Kiran  

>-----Original Message-----
>From: linux-mips-bounce@linux-mips.org 
>[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
>Frederic Temporelli
>Sent: Wednesday, March 08, 2006 10:13 AM
>To: iet-dev; linux-mips
>Subject: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - 
>ioctl unknown command
>
>Hello,
>
>I would like to report an ioctl issue using IET 0.4.13 (iSCSI 
>target) and kernel 2.6.16-rc1, running on mips / SGI O2
>
>The driver seems to load nicely, but there was no way to do 
>ioctl on the userspace device /dev/ietctl.
>I got such messages in syslog:
>Mar  4 16:47:16 o2 kernel: [4303606.514000] 
>ioctl32(ietd:3448): Unknown cmd fd(4) cmd(81046900){01} 
>arg(7f942ab0) on /dev/ietctl
>
>=> I've been able to resolve the issue by adding a by-pass (goto
>do_ioctl) in kernel compat_sys_ioctl function (fs/compat.c)  
>and all is working fine now.
>
>I don't know if such issue is related to mips only or is due to changes
>2.6.16 kernel
>I've also did some tries on x86 with linux 2.6.15.5, all was 
>working fine without needing to change anything in the kernel.
>
>Did somebody report such issue with IET and recent kernel ?
>May some people from linux-mips tell if such issue is mips specific ?
>
>Best regards.
>--
>Fred
>
>
>--
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 
>08/03/2006
>

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

* Re: [Iscsitarget-devel] RE: mips kernel 2.6.16rc1 + IET 0.4.13 -  /dev/ietctl - ioctl unknown command
  2006-03-08 18:18 mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command Shanthi Kiran Pendyala (skiranp)
@ 2006-03-09 14:19 ` Ming Zhang
  2006-03-09 14:19   ` Ming Zhang
  2006-03-10 19:35   ` Frederic Temporelli
  0 siblings, 2 replies; 4+ messages in thread
From: Ming Zhang @ 2006-03-09 14:19 UTC (permalink / raw)
  To: Shanthi Kiran Pendyala (skiranp); +Cc: Frederic Temporelli, iet-dev, linux-mips

thanks. i guess this is the reason.

@Frederic, could you confirm this? also if you compile u user space as
64bit, it should be ok then.

ming

On Wed, 2006-03-08 at 10:18 -0800, Shanthi Kiran Pendyala (skiranp)
wrote:
> I have seen such error messages when userspace app is built in 32bit
> mode
> And kernel is built in 64 bit mode. Does this apply to your setup ?
> 
> The way to fix this is to register a ioctl32 conversion routine in
> The driver. Google is your friend..
> 
> Thx
> Kiran  
> 
> >-----Original Message-----
> >From: linux-mips-bounce@linux-mips.org 
> >[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
> >Frederic Temporelli
> >Sent: Wednesday, March 08, 2006 10:13 AM
> >To: iet-dev; linux-mips
> >Subject: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - 
> >ioctl unknown command
> >
> >Hello,
> >
> >I would like to report an ioctl issue using IET 0.4.13 (iSCSI 
> >target) and kernel 2.6.16-rc1, running on mips / SGI O2
> >
> >The driver seems to load nicely, but there was no way to do 
> >ioctl on the userspace device /dev/ietctl.
> >I got such messages in syslog:
> >Mar  4 16:47:16 o2 kernel: [4303606.514000] 
> >ioctl32(ietd:3448): Unknown cmd fd(4) cmd(81046900){01} 
> >arg(7f942ab0) on /dev/ietctl
> >
> >=> I've been able to resolve the issue by adding a by-pass (goto
> >do_ioctl) in kernel compat_sys_ioctl function (fs/compat.c)  
> >and all is working fine now.
> >
> >I don't know if such issue is related to mips only or is due to changes
> >2.6.16 kernel
> >I've also did some tries on x86 with linux 2.6.15.5, all was 
> >working fine without needing to change anything in the kernel.
> >
> >Did somebody report such issue with IET and recent kernel ?
> >May some people from linux-mips tell if such issue is mips specific ?
> >
> >Best regards.
> >--
> >Fred
> >
> >
> >--
> >No virus found in this outgoing message.
> >Checked by AVG Free Edition.
> >Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 
> >08/03/2006
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
> _______________________________________________
> Iscsitarget-devel mailing list
> Iscsitarget-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

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

* Re: [Iscsitarget-devel] RE: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command
  2006-03-09 14:19 ` [Iscsitarget-devel] " Ming Zhang
@ 2006-03-09 14:19   ` Ming Zhang
  2006-03-10 19:35   ` Frederic Temporelli
  1 sibling, 0 replies; 4+ messages in thread
From: Ming Zhang @ 2006-03-09 14:19 UTC (permalink / raw)
  To: Shanthi Kiran Pendyala (skiranp); +Cc: Frederic Temporelli, iet-dev, linux-mips

thanks. i guess this is the reason.

@Frederic, could you confirm this? also if you compile u user space as
64bit, it should be ok then.

ming

On Wed, 2006-03-08 at 10:18 -0800, Shanthi Kiran Pendyala (skiranp)
wrote:
> I have seen such error messages when userspace app is built in 32bit
> mode
> And kernel is built in 64 bit mode. Does this apply to your setup ?
> 
> The way to fix this is to register a ioctl32 conversion routine in
> The driver. Google is your friend..
> 
> Thx
> Kiran  
> 
> >-----Original Message-----
> >From: linux-mips-bounce@linux-mips.org 
> >[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
> >Frederic Temporelli
> >Sent: Wednesday, March 08, 2006 10:13 AM
> >To: iet-dev; linux-mips
> >Subject: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - 
> >ioctl unknown command
> >
> >Hello,
> >
> >I would like to report an ioctl issue using IET 0.4.13 (iSCSI 
> >target) and kernel 2.6.16-rc1, running on mips / SGI O2
> >
> >The driver seems to load nicely, but there was no way to do 
> >ioctl on the userspace device /dev/ietctl.
> >I got such messages in syslog:
> >Mar  4 16:47:16 o2 kernel: [4303606.514000] 
> >ioctl32(ietd:3448): Unknown cmd fd(4) cmd(81046900){01} 
> >arg(7f942ab0) on /dev/ietctl
> >
> >=> I've been able to resolve the issue by adding a by-pass (goto
> >do_ioctl) in kernel compat_sys_ioctl function (fs/compat.c)  
> >and all is working fine now.
> >
> >I don't know if such issue is related to mips only or is due to changes
> >2.6.16 kernel
> >I've also did some tries on x86 with linux 2.6.15.5, all was 
> >working fine without needing to change anything in the kernel.
> >
> >Did somebody report such issue with IET and recent kernel ?
> >May some people from linux-mips tell if such issue is mips specific ?
> >
> >Best regards.
> >--
> >Fred
> >
> >
> >--
> >No virus found in this outgoing message.
> >Checked by AVG Free Edition.
> >Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 
> >08/03/2006
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
> _______________________________________________
> Iscsitarget-devel mailing list
> Iscsitarget-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

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

* Re: [Iscsitarget-devel] RE: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command
  2006-03-09 14:19 ` [Iscsitarget-devel] " Ming Zhang
  2006-03-09 14:19   ` Ming Zhang
@ 2006-03-10 19:35   ` Frederic Temporelli
  1 sibling, 0 replies; 4+ messages in thread
From: Frederic Temporelli @ 2006-03-10 19:35 UTC (permalink / raw)
  To: mingz; +Cc: Shanthi Kiran Pendyala (skiranp), iet-dev, linux-mips

Hi,

Sorry, I'm not able to build 64 bits user space binaries (Debian distro, 
where all binaries are 32 bits... ld is reporting errors when I try to 
link using o64 and n64 ABIs, seems that only the kernel can be 64 bits).

But don't care, on my side it was just to do a test to IET.
I'll try do test it at work on IA64...
--
Fred

Ming Zhang a écrit :

>thanks. i guess this is the reason.
>
>@Frederic, could you confirm this? also if you compile u user space as
>64bit, it should be ok then.
>
>ming
>
>On Wed, 2006-03-08 at 10:18 -0800, Shanthi Kiran Pendyala (skiranp)
>wrote:
>  
>
>>I have seen such error messages when userspace app is built in 32bit
>>mode
>>And kernel is built in 64 bit mode. Does this apply to your setup ?
>>
>>The way to fix this is to register a ioctl32 conversion routine in
>>The driver. Google is your friend..
>>
>>Thx
>>Kiran  
>>
>>    
>>
>>>-----Original Message-----
>>>From: linux-mips-bounce@linux-mips.org 
>>>[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
>>>Frederic Temporelli
>>>Sent: Wednesday, March 08, 2006 10:13 AM
>>>To: iet-dev; linux-mips
>>>Subject: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - 
>>>ioctl unknown command
>>>
>>>Hello,
>>>
>>>I would like to report an ioctl issue using IET 0.4.13 (iSCSI 
>>>target) and kernel 2.6.16-rc1, running on mips / SGI O2
>>>
>>>The driver seems to load nicely, but there was no way to do 
>>>ioctl on the userspace device /dev/ietctl.
>>>I got such messages in syslog:
>>>Mar  4 16:47:16 o2 kernel: [4303606.514000] 
>>>ioctl32(ietd:3448): Unknown cmd fd(4) cmd(81046900){01} 
>>>arg(7f942ab0) on /dev/ietctl
>>>
>>>=> I've been able to resolve the issue by adding a by-pass (goto
>>>do_ioctl) in kernel compat_sys_ioctl function (fs/compat.c)  
>>>and all is working fine now.
>>>
>>>I don't know if such issue is related to mips only or is due to changes
>>>2.6.16 kernel
>>>I've also did some tries on x86 with linux 2.6.15.5, all was 
>>>working fine without needing to change anything in the kernel.
>>>
>>>Did somebody report such issue with IET and recent kernel ?
>>>May some people from linux-mips tell if such issue is mips specific ?
>>>
>>>Best regards.
>>>--
>>>Fred
>>>
>>>
>>>--
>>>No virus found in this outgoing message.
>>>Checked by AVG Free Edition.
>>>Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 
>>>08/03/2006
>>>
>>>      
>>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>>that extends applications into web and mobile media. Attend the live webcast
>>and join the prime developer group breaking into this new coding territory!
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
>>_______________________________________________
>>Iscsitarget-devel mailing list
>>Iscsitarget-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel
>>    
>>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Iscsitarget-devel mailing list
>Iscsitarget-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel
>
>  
>



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006

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

end of thread, other threads:[~2006-03-10 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 18:18 mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command Shanthi Kiran Pendyala (skiranp)
2006-03-09 14:19 ` [Iscsitarget-devel] " Ming Zhang
2006-03-09 14:19   ` Ming Zhang
2006-03-10 19:35   ` Frederic Temporelli

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