2.6.12-mm1 cannot build nvidia driver?
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
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 symbolregister_ioctl32_conversion
nvidia: Unknown symbolunregister_ioctl32_conversionNvidia driver 7174.
--
Regards,
Paradise
Signature · 2 lines
Regards, Paradise
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
*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_CALLos_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_CALLos_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.patchBuilding 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_CALLos_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_IOCTLisn't defined - there's at least 3 other places where it matters (innv.c). It's #defined in theinclude/linux/fs.hheader 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
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.patchBuilding 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_CALLos_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_IOCTLisn't defined - there's at least 3 other places where it matters (innv.c). It's #defined in theinclude/linux/fs.hheader 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
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_CALLos_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_CALLos_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.patchBuilding 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_CALLos_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_IOCTLisn't defined - there's at least 3 other places where it matters (innv.c). It's #defined in theinclude/linux/fs.hheader 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
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....
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.