Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-21-06, 05:55 AM   #1
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Please find attached a patch for the nvidia linux graphics driver version
1.0-8776 that will allow you to compile and run the kernel module for
Xen or Realtime Preemption enabled kernels.

This Patch has been successfully tested on FC5-i386 (32bit) with the
following kernels:

* 2.6.18-1.2200.fc5smp (standard FC5 kernel)
* 2.6.17-1.2187_FC5xen0 (FC5 xen linux kernel)
* 2.6.18-rt7 (vanilla kernel with patched with -rt7)

Installation:

1. Make sure the nvidia driver has been installed using a "standard" Kernel
and is working properly.

2. Unpack, patch, compile and install the driver module (example for Xen):

Code:
sh NVIDIA-Linux-x86-1.0-8776-pkg1.run --extract-only
cd NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/
patch -p1 < ../../../../patch-nv-1.0-8776-xenrt.txt
make SYSSRC=/usr/src/kernel/2.6.17-1.2187_FC5-xen0-i686 module
cp nvidia.ko /lib/modules/2.6.17-1.2187_FC5xen0/kernel/drivers/video
depmod -a 2.6.17-1.2187_FC5xen0
Feedback appreciated

regards

Bernhard
Attached Files
File Type: txt patch-nv-1.0-8776-xenrt.txt (6.7 KB, 1493 views)
JaXXoN is offline   Reply With Quote
Old 10-27-06, 02:48 AM   #2
Amr_not_Amr
*BANNED*
 
Amr_not_Amr's Avatar
 
Join Date: Apr 2006
Posts: 11
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

oh my God! Dear sir, you really deserve a noble prize!!
After I've spent over 12 hours trying to get the X with nvidia driver work on Xen; reading too many docs, googling, searching forums, installing, uninstalling, patching, failing I couldn't do any thing ..
So I searched here for Xen, found your topic, applied it to my box ..
It's Ubuntu drapper, 6.0.6 ... with Xen 3.0.3 which I've complied from source ... It's running kernel 2.6.16.29-xen .. I followed your instructions, applied it , and Got it work!!

I really want to thank you very very very very very very much you cannot imagine how much you made me happy after I became 85% hopeless!! ...
thanks man ... It works very fine ... Thanks my God!
Amr_not_Amr is offline   Reply With Quote
Old 10-27-06, 08:29 PM   #3
sevet
Registered User
 
Join Date: Oct 2006
Posts: 2
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

I tried the patch on Xen 3.0.3 gentoo kernel 2.6.16.29 64bit and it didn't work...
the patch went smoothly and the module loaded but when I try to start Xorg the screen goes blank, I can kill it with ctrl+alt+backspace....

Does the problem has to do with the 64bit kernel version?
Before the patch when I loaded the module it froze the computer and messed up my file system, I had to boot from rescure and fsck it.

Please help, i'm getting deperate....
sevet is offline   Reply With Quote
Old 10-27-06, 09:55 PM   #4
Penguinfan
Fedora Core 6
 
Join Date: Oct 2006
Location: Brisbane
Posts: 6
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Many many thanks for this. I've looked forward to having 3D acceleration in my (32 bit) Xen host for ages and now it's finally working.

I did end up having to run the patched installer afterwards with the source path option (I'm guessing that it installs libraries that I didn't have already).
Penguinfan is offline   Reply With Quote
Old 10-28-06, 07:50 AM   #5
sevet
Registered User
 
Join Date: Oct 2006
Posts: 2
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

This works great on my Gentoo 64Bit !!
Turns out it was my bad, I was just inatalling the system and forgot I plugged the second monitor (it was off) so actually whn my screen blacked it was activating the second monitor.

Great patch thanks and now its confirmed for 64bit
sevet is offline   Reply With Quote
Old 11-05-06, 07:15 PM   #6
sschwoeg
Registered User
 
Join Date: Apr 2006
Posts: 2
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Bernhard,

I must say excellent work. installed flawlessly on debian sarge x86_32 for my 7800gt. X11R6 init is noticeably slower (previously I honestly thought the driver turned off the nvidia logo for x init it was so fast however i'm betting that's due to the Xen overhead.

Thanks a million!

EDIT: looks like the xinit performance issue was due to TLS; there was a warning in my logs about X11R6 offending. After moving /usr/lib/tls and rerunning ldconfig all was well.
__________________
DFI LanParty NF4 Ultra-D [SLI mod] (BIOS: 623-3 NV: 6.70)
AMD Athlon 64 X2 4400+
2x512MB G.Skill 4400LE (2-2-5-2)
eVGA 7800GT 256MB [445/1070] (FW: 84.43 BETA)
2xDeskstar T7K250 RAID0 (16/4)
NEC ND-3500A DVD+/-R (FW: 2.1A)
OCZ PowerStream 600W
Lian-Li PC-7BW + 120mm top exhaust + MNPCtech's Machine Finished Al Billet Handles
Hyundai L90D+ | Saitek Executive | Razer Diamondback Plasma LE
OS: Debian Sarge, Xen 3.0, Win32
Danger Den Cooled: TDX D5 Low-Profile Maze4GPU 2xBIX Tygon 1/2"T-line 3xPanaflo FBA12G12U 120mmx38mm Aspire 609 Fan Master

Last edited by sschwoeg; 11-05-06 at 07:39 PM.
sschwoeg is offline   Reply With Quote
Old 11-06-06, 03:12 AM   #7
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Quote:
Originally Posted by sschwoeg
I must say excellent work.
Thanks, but the credits actually needs to go to "honny" who originally issued the patch at:
http://www.nvnews.net/vbulletin/showthread.php?t=66383

I only adopted it for the latest release and merged -rt support.

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 11-08-06, 05:18 PM   #8
krico
Registered User
 
Join Date: Nov 2006
Posts: 1
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

JaXXon, you are a jedi master! It worked!

Notebook: Dell XPS M1710
Graphics card: NVIDIA® GeForceTM Go 7950 GTX
Kernel: Linux version 2.6.16.29-xen
Distro: Debian 4.1.1-19
Xen version: 3.0.3-0

Thanks!!!!
krico is offline   Reply With Quote

Old 11-09-06, 03:56 AM   #9
paulororke
Registered User
 
Join Date: Oct 2006
Posts: 2
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Is there such a patch for FC6 with NVIDIA-Linux-x86_64-1.0-9629-pkg2? I can get xen running without the nvidia drivers or else the plain kernel with this driver. I would love to see the twinview with the xen kernel if possible.

Motherboard: MSI K9N Platinum
Graphics card: ASUS EN7300GS (Nvidia7300)
Processor: AMD X2 4200
RAM: 2048MB DDR2
Kernel: kernel-2.6.18-1.2798.fc6 and kernel-xen-2.6.18-1.2798.fc6
Xen version: xen-3.0.3-0.1.rc3

Please and thanks.
paulororke is offline   Reply With Quote
Old 12-21-06, 06:28 PM   #10
aetherane
Registered User
 
Join Date: Dec 2006
Posts: 2
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

What does this patch allow for in terms of graphics for my guest if I apply it on my host's kernel? Also, what do I use for drivers for the domU?
aetherane is offline   Reply With Quote
Old 12-21-06, 11:47 PM   #11
Penguinfan
Fedora Core 6
 
Join Date: Oct 2006
Location: Brisbane
Posts: 6
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

Quote:
Originally Posted by aetherane
What does this patch allow for in terms of graphics for my guest if I apply it on my host's kernel? Also, what do I use for drivers for the domU?
I don't think it does anything for the guest systems, it just lets you use accellerated graphics in Dom0 which has more direct access to the hardware than guests. This allows things like 3d desktop effects and (some) 3d games to run on Dom0.

As far as I know accessing the DomU consoles still requires VNC or SDL interfaces which don't support graphics accelleration (they either have a simple framebuffer with virtual hardware or VNC's own memory framebuffer system). I have (very vague) memories of there being discussion in one of the Xen related threads about the issues in sharing (or *giving*) the card directly to guests but I think it gets fairly complex.

Last edited by Penguinfan; 12-21-06 at 11:59 PM.
Penguinfan is offline   Reply With Quote
Old 01-01-07, 06:50 PM   #12
smcarrick
Registered User
 
Join Date: Dec 2005
Posts: 11
Send a message via AIM to smcarrick Send a message via MSN to smcarrick
Default Re: [Patch] unified patch for Xen or Realtime Preemption for 1.0-8776

As I read through this thread, it seems that no one has had any problems with this patch. I, however, had no problems patching the source, but `make` blew up when I tried to compile the module. The output is as follows:

Code:
[root@hal nv]# make SYSSRC=/usr/src/kernels/2.6.18-1.2868.fc6-xen-i686/ module

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/kernels/2.6.18-1.2868.fc6-xen-i686/ SUBDIRS=/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_versions
rm -f /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv
  cc -Wp,-MD,/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -Iinclude/asm/mach-xen -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -D__XEN_INTERFACE_VERSION__=0x00030203 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts  -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-xen -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8776  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_nv.o /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c
In file included from /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:14:
/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv-linux.h:17:26: error: linux/config.h: No such file or directory
In file included from include/linux/list.h:8,
                 from include/linux/lockdep.h:12,
                 from include/linux/spinlock_types.h:12,
                 from include/linux/spinlock.h:78,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv-linux.h:51,
                 from /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in arithmetic
In file included from include/linux/dmapool.h:14,
                 from include/linux/pci.h:564,
                 from /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv-linux.h:76,
                 from /root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:14:
include/asm/mach-xen/asm/io.h: In function ‘check_signature’:
include/asm/mach-xen/asm/io.h:258: warning: wrong type argument to increment
make[3]: *** [/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/root/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2
[
Any ideas on what could have caused this, please let me know what I can try to make it work.

System Info:
Linux 2.6.18-1.2798.fc6xen #1 SMP i686 i686 i386 GNU/Linux
Pentium IV 2GHz
1 Gb RAM
100 Gb HDD
nVidia GeForce 5500 w/256 MB RAM

Thanks for any and all help, suggestions or ideas. Have a great day.

Cheers...

Sean C.
smcarrick is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.