Skip to contentSkip to conversation

2.6.12-mm1 cannot build nvidia driver?

DISCUSSION Paradise 2 participants 8 messages Jun 20, 2005

lore
Share & tools
lore

Paradise

author
#0 lore raw

Hi all,

I cannot build the nvidia with 2.6.12-mm1, error is:
nvidia: Unknown symbol register_ioctl32_conversion
nvidia: Unknown symbol unregister_ioctl32_conversion

Nvidia driver 7174.

Signature · 2 lines
Regards,
Paradise
author
#1 lore raw

seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. any patch for nvidia kernel driver?

Quoted 13 lines · Paradise

Hi all,

I cannot build the nvidia with 2.6.12-mm1, error is:
nvidia: Unknown symbol register_ioctl32_conversion
nvidia: Unknown symbol unregister_ioctl32_conversion

Nvidia driver 7174.
--
Regards,
Paradise

Signature · 2 lines
Regards,
Paradise
#2 lore raw
Quoted 2 lines · Paradise

seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. any patch for nvidia kernel driver?

No patch, but some hints - I suspect the problem is a local build config error...

1) The exact patch causing your problem in -mm1 is:
remove-register_ioctl32_conversion-and-unregister_ioctl32_conversion.patch

Building with this one patch -R'ed out should help, but it's the wrong thing to do, as it only papers over the real problem, which is:

2) Your failing code is in os-interface.c:

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) && !defined(HAVE_COMPAT_IOCTL)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif
}

Might want to figure out why HAVE_COMPAT_IOCTL isn't defined - there's at least 3 other places where it matters (in nv.c). It's #defined in the include/linux/fs.h header in 2.6.12-rc6-mm1, so you probably want to figure out why your build isn't picking up on it. Are your #include directories screwed up?

Sorry I can't provide more help, this looks like an X86-64 only issue. If this isnt enough, take it up on the NVidia forums:

http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14

author
#4 lore raw
In reply to Paradise

*version of 1.0.7174-3 from debian*

Quoted 63 lines · Paradise

this is the version of !defined(HAVE_COMPAT_IOCTL) from debian .....there is no "!defined(HAVE_COMPAT_IOCTL)" that you said..

void NV_API_CALL os_register_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    register_ioctl32_conversion(request, (void *)sys_ioctl);

#endif /* NVCPU_X86_64 */
}

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif /* NVCPU_X86_64 */
}

Quoted 27 lines · On 6/21/05, [email protected] <[email protected]> wrote:
Quoted 2 lines · Paradise

seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. any patch for nvidia kernel driver?

No patch, but some hints - I suspect the problem is a local build config error...

1) The exact patch causing your problem in -mm1 is:
remove-register_ioctl32_conversion-and-unregister_ioctl32_conversion.patch

Building with this one patch -R'ed out should help, but it's the wrong thing to do, as it only papers over the real problem, which is:

2) Your failing code is in os-interface.c:

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) && !defined(HAVE_COMPAT_IOCTL)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif
}

Might want to figure out why HAVE_COMPAT_IOCTL isn't defined - there's at least 3 other places where it matters (in nv.c). It's #defined in the include/linux/fs.h header in 2.6.12-rc6-mm1, so you probably want to figure out why your build isn't picking up on it. Are your #include directories screwed up?

Quoted 9 lines

Sorry I can't provide more help, this looks like an X86-64 only issue. If this isnt enough, take it up on the NVidia forums:

http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14

--
Regards,
Paradise

Signature · 2 lines
Regards,
Paradise
author
#3 lore raw
In reply to [email protected]

this is the version of !defined(HAVE_COMPAT_IOCTL) from debian .....there is no "!defined(HAVE_COMPAT_IOCTL)" that you said..

void NV_API_CALL os_register_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    register_ioctl32_conversion(request, (void *)sys_ioctl);

#endif /* NVCPU_X86_64 */
}

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif /* NVCPU_X86_64 */
}

Quoted 36 lines · On 6/21/05, [email protected] <[email protected]> wrote:
Quoted 2 lines · Paradise

seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. any patch for nvidia kernel driver?

No patch, but some hints - I suspect the problem is a local build config error...

1) The exact patch causing your problem in -mm1 is:
remove-register_ioctl32_conversion-and-unregister_ioctl32_conversion.patch

Building with this one patch -R'ed out should help, but it's the wrong thing to do, as it only papers over the real problem, which is:

2) Your failing code is in os-interface.c:

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) && !defined(HAVE_COMPAT_IOCTL)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif
}

Might want to figure out why HAVE_COMPAT_IOCTL isn't defined - there's at least 3 other places where it matters (in nv.c). It's #defined in the include/linux/fs.h header in 2.6.12-rc6-mm1, so you probably want to figure out why your build isn't picking up on it. Are your #include directories screwed up?

Sorry I can't provide more help, this looks like an X86-64 only issue. If this isnt enough, take it up on the NVidia forums:

http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14

Signature · 2 lines
Regards,
Paradise
author
#5 lore raw
In reply to Paradise

Okay, it is fixed by adding back "!defined(HAVE_COMPAT_IOCTL)", might something wrong with debian package

Thanks.

Quoted 72 lines · Paradise

*version of 1.0.7174-3 from debian*

Quoted 59 lines · Paradise

this is the version of !defined(HAVE_COMPAT_IOCTL) from debian .....there is no "!defined(HAVE_COMPAT_IOCTL)" that you said..

void NV_API_CALL os_register_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    register_ioctl32_conversion(request, (void *)sys_ioctl);

#endif /* NVCPU_X86_64 */
}

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif /* NVCPU_X86_64 */
}

Quoted 27 lines · On 6/21/05, [email protected] <[email protected]> wrote:
Quoted 2 lines · Paradise

seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. any patch for nvidia kernel driver?

No patch, but some hints - I suspect the problem is a local build config error...

1) The exact patch causing your problem in -mm1 is:
remove-register_ioctl32_conversion-and-unregister_ioctl32_conversion.patch

Building with this one patch -R'ed out should help, but it's the wrong thing to do, as it only papers over the real problem, which is:

2) Your failing code is in os-interface.c:

void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) {

#if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) && !defined(HAVE_COMPAT_IOCTL)
    unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]);
    unregister_ioctl32_conversion(request);

#endif
}

Might want to figure out why HAVE_COMPAT_IOCTL isn't defined - there's at least 3 other places where it matters (in nv.c). It's #defined in the include/linux/fs.h header in 2.6.12-rc6-mm1, so you probably want to figure out why your build isn't picking up on it. Are your #include directories screwed up?

Quoted 9 lines

Sorry I can't provide more help, this looks like an X86-64 only issue. If this isnt enough, take it up on the NVidia forums:

http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14

Quoted 4 lines

--
Regards,
Paradise

--
Regards,
Paradise

Signature · 2 lines
Regards,
Paradise
#7 lore raw
In reply to Paradise
Quoted 1 line · Paradise

*version of 1.0.7174-3 from debian*

Sorry, I was looking at 7664 - you might try using the more recent driver and seeing if that helps. Presumably the fixed #ifdef's in the newer code will work better....

#6 lore raw
In reply to Paradise
Quoted 2 lines · Paradise

Okay, it is fixed by adding back "!defined(HAVE_COMPAT_IOCTL)", might something wrong with debian package

You certainly want to try to upgrade to the 7664 drivers, as there are at least 3 other places that need a similar change (all in nv.c). What you have now is at best half-fixed, and the other half is a bug waiting to happen.