lkml.org 
[lkml]   [2005]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.6.12-mm1 cannot build nvidia driver?
    Okay, it is fixed by adding back  "!defined(HAVE_COMPAT_IOCTL)", might
    something wrong with debian package

    Thanks.

    On 6/21/05, Paradise <paradyse@gmail.com> wrote:
    > *version of 1.0.7174-3 from debian*
    >
    > On 6/21/05, Paradise <paradyse@gmail.com> wrote:
    > > 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 */
    > > }
    > >
    > >
    > > On 6/21/05, Valdis.Kletnieks@vt.edu <Valdis.Kletnieks@vt.edu> wrote:
    > > > On Mon, 20 Jun 2005 20:20:06 +0800, Paradise said:
    > > > > 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
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    > > --
    > > Regards,
    > > Paradise
    > >
    >
    >
    > --
    > Regards,
    > Paradise
    >


    --
    Regards,
    Paradise
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-06-20 21:37    [W:0.025 / U:118.464 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site