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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-26-06, 04:45 PM   #1
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default [PATCH] xen-3.0.2-2 and nv-1.0-8762

Hi!

Just to let you know, the nvidia xen patch created for 1.0-8756 also
applies and works for 1.0-8762. The patch can be downloaded at:
http://www.nvnews.net/vbulletin/showthread.php?t=68648

I also successfully tried it with the latest FC5 xen-3.0.2 kernel
(2122). You can install it similar the description at:
http://www.nvnews.net/vbulletin/showthread.php?t=68703

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 06-18-06, 10:43 PM   #2
raven-au
Registered User
 
Join Date: Jun 2006
Posts: 3
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Quote:
Originally Posted by JaXXoN
Hi!

Just to let you know, the nvidia xen patch created for 1.0-8756 also
applies and works for 1.0-8762. The patch can be downloaded at:
http://www.nvnews.net/vbulletin/showthread.php?t=68648

I also successfully tried it with the latest FC5 xen-3.0.2 kernel
(2122). You can install it similar the description at:
http://www.nvnews.net/vbulletin/showthread.php?t=68703

Bernhard
Just to let you know this also works with 2123.

Unfortuneately, with the kernel kernel-xen-2.6.16-1.2289_FC6 there's a
bunch of messages from an Oops at shutdown and the system hangs.

This could be caused by a xen since it is a fairly recent development
snapshot.

Is there any chance that nVidia will support xen in the driver?
The in kernel driver for my 6200 doesn't work at all!

Ian
raven-au is offline   Reply With Quote
Old 07-07-06, 03:40 PM   #3
fozner
Registered User
 
Join Date: Sep 2005
Posts: 63
Exclamation Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Um, not quite. Sure, Xen0 boots ok and loads KDE, and when I run any 3D app i.e., glxinfo or glxgears, it runs fine...

However, as soon as I exit the 3D app, the system freezes, keyboard lights go out, mouse cursor disappears and a cold reboot (holding the power button down for 5 sec) is necessary.

Here is a console log of the exact steps I took. Perhaps I am doing something wrong as I am new to Xen.

Code:
# ./NVID* -x
# cp patch* ./NVIDIA-Linux-x86_64-1.0-8762-pkg2/usr/src/nv
# cd NVIDIA-Linux-x86_64-1.0-8762-pkg2/usr/src/nv
# patch -p1 < patch-nv-1.0-8756-xen-3.0.2-2.txt
# make clean
# make SYSSRC=/usr/src/kernels/2.6.17-1.2145_FC5-xen0-x86_64 module
# xen_tlb_flush=`grep xen_tlb_flush$ /boot/System.map-2.6.17-1.2145_FC5xen0 | colrm 17`
# ld -m elf_x86_64 --defsym xen_tlb_flush=0x$xen_tlb_flush -r -o nvidia.ko nvidia.o nvidia.mod.o
# cp *.ko /lib/modules/2.6.17-1.2145_FC5xen0/kernel/drivers/video
# depmod -a 2.6.17-1.2145_FC5xen0
# reboot
sysinfo
AMD Athlon(tm) 64 Processor 2800+
GeForce 6800/AGP/SSE2
2.0.2 NVIDIA 87.62
X Window System Version 7.0.0
fozner is offline   Reply With Quote
Old 07-08-06, 08:02 PM   #4
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Quote:
Originally Posted by fozner
as soon as I exit the 3D app, the system freezes, keyboard lights go out, mouse cursor disappears
Can you please try to capture the kernel log through serial
console? (append "console=ttyS0,115200n8" to the kernel
boot parameter string, attach a second computer to COM1
with a null-modem cable and start minicom (linux) or
hyperterminal (windows) on the second machine)

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 07-14-06, 02:39 AM   #5
tephra
Registered User
 
Join Date: Jul 2006
Posts: 2
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

hi guys,

let me just get this straight - this patch allows the use of 3d graphics in a guest linux OS using HVM or SVM?

does the host OS need drivers as well?

cheers
dave
tephra is offline   Reply With Quote
Old 07-14-06, 09:21 AM   #6
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Quote:
Originally Posted by tephra
this patch allows the use of 3d graphics in a guest linux OS using HVM or SVM?
Yes, but you need to dedicate the graphics card to guest linux OS (domU).
Means: the same card can't be used by the host linux OS (dom0) at the
same time. It's just like you have to different physical PCs: a PCI card
can only belong to one or the other.

Quote:
Originally Posted by tephra
does the host OS need drivers as well?
Depends: you could have a head-less dom0 using the serial line as console.
Or you could have an additional card for dom0 - then you certainly
need the appropriate driver. In case both cards have nvidia chips,
then the patch will do it for both domain. I guess you could easily
mix different cards (intel/ATI+nvida), but i didn't yet tried that out.

It's realy more like having two PCs: a PCI card can't be shared
amongst dom0 and domU (unless very special hacks are done).

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 07-14-06, 09:31 AM   #7
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Quote:
Originally Posted by tephra
let me just get this straight - this patch allows the use of 3d graphics in a guest linux OS using HVM or SVM?
For details, please check:

http://www.nvnews.net/vbulletin/showthread.php?t=68703

starting from post #22

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 09-25-06, 08:35 AM   #8
nodens2099
Registered User
 
Join Date: Apr 2006
Posts: 9
Exclamation Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Hi,

FYI, the patch applies cleanly to a 1.0-8774 driver. However, the ld trick to add symbols to the driver does not seem to be necessary (here on my debian sid + 2.6.16 or 2.6.17 xen kernel). Sadly, the driver won't work with the patch (whether or not the symbols are added). It works for a few minutes, then freeze (usually after using xvideo or xscreensaver).

Quote:
Sep 25 21:29:45 haven kernel: NVRM: loading NVIDIA Linux x86_64 Kernel Module 1.0-8774 Tue Aug 1 21:42:17 PDT 2006
Sep 25 21:29:45 haven kernel: NVRM: builtin PAT support disabled, falling back to MTRRs.
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a00000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: please see the README section on Cache Aliasing for more information
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a01000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a02000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a03000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a04000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a05000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a06000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a07000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a08000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: NVRM: bad caching on address 0xffff880034a09000: actual 0x177 != expected 0x77
Sep 25 21:29:45 haven kernel: i2c_adapter i2c-2: SMBus Quick command not supported, can't probe for chips
Sep 25 21:29:45 haven kernel: i2c_adapter i2c-3: SMBus Quick command not supported, can't probe for chips
Sep 25 21:29:45 haven kernel: i2c_adapter i2c-4: SMBus Quick command not supported, can't probe for chips
Sep 25 21:36:43 haven kernel: Unable to handle kernel paging request at ffff8800018aad20 RIP:
Sep 25 21:36:43 haven kernel: <ffffffff80252e40>{__change_page_attr+2589}
Sep 25 21:36:43 haven kernel: PGD 18a9067 PUD 18aa067 PMD 18b7067 PTE 18aa165
Sep 25 21:36:43 haven kernel: Oops: 0003 [1] SMP
Sep 25 21:36:43 haven kernel: CPU 0
Sep 25 21:36:43 haven kernel: Modules linked in: nvidia binfmt_misc ipv6 ipt_MASQUERADE ipt_addrtype ipt_REJECT ipt_LOG xt_tcpudp xt_limit xt_state iptable_nat ip_nat iptable_filter ip_tables x_tables xfs loop ip_conntrack_irc ip_conntrack_ftp ip_conntrack nfnetlink w83627hf hwmon_vid eeprom i2c_isa i2c_nforce2 i2c_core joydev sr_mod sbp2 psmouse ide_generic bridge ext3 jbd mbcache dm_mirror dm_snapshot dm_mod ide_cd cdrom ide_disk sata_nv libata scsi_mod generic ohci_hcd ehci_hcd amd74xx ide_core forcedeth ohci1394 ieee1394 r8169 thermal processor fan
Sep 25 21:36:43 haven kernel: Pid: 3740, comm: Xorg Tainted: P 2.6.17-2-xen-amd64 #1
Sep 25 21:36:43 haven kernel: RIP: e030:[<ffffffff80252e40>] <ffffffff80252e40>{__change_page_attr+2589}
Sep 25 21:36:43 haven kernel: RSP: e02b:ffff880035e09a18 EFLAGS: 00010286
Sep 25 21:36:43 haven kernel: RAX: 80000000348000e7 RBX: ffff880001a4f190 RCX: 0000000000000023
Sep 25 21:36:43 haven kernel: RDX: ffff8800018aad20 RSI: 0000000000001a4f RDI: 0000000000000067
Sep 25 21:36:43 haven kernel: RBP: ffff880034832000 R08: ffff880001ae6148 R09: 0000000000000000
Sep 25 21:36:43 haven kernel: R10: 8000000000000067 R11: 80000000000000e7 R12: 0000000034832000
Sep 25 21:36:43 haven kernel: R13: 0000000000000000 R14: 0000000000000d20 R15: ffffffff80201880
Sep 25 21:36:43 haven kernel: FS: 00002b75525e3ae0(0000) GS:ffffffff80524000(0000) knlGS:0000000000000000
Sep 25 21:36:43 haven kernel: CS: e033 DS: 0000 ES: 0000
Sep 25 21:36:43 haven kernel: Process Xorg (pid: 3740, threadinfo ffff880035e08000, task ffff880001136400)
Sep 25 21:36:43 haven kernel: Stack: ffff880035310000 ffffffff8857336e 0000000000000011 ffff8800353b47c0
Sep 25 21:36:43 haven kernel: 0000000000000011 ffffffff802625de 0000000000000000 ffff880034832000
Sep 25 21:36:43 haven kernel: 0000000000034832 0000000034832000
Sep 25 21:36:43 haven kernel: Call Trace: <ffffffff8857336e>{:nvidia:_nv008662rm+68}
Sep 25 21:36:43 haven kernel: <ffffffff802625de>{__down_write+18} <ffffffff80273ec2>{change_page_attr_addr+123}
Sep 25 21:36:43 haven kernel: <ffffffff885a8f15>{:nvidia:nv_vm_free_pages+213} <ffffffff885a5240>{:nvidia:nv_free_pages+384}
Sep 25 21:36:43 haven kernel: <ffffffff88355f54>{:nvidia:_nv002055rm+46} <ffffffff8850a99a>{:nvidia:_nv002833rm+80}
Sep 25 21:36:43 haven kernel: <ffffffff8834cad8>{:nvidia:_nv002345rm+150} <ffffffff8834ce63>{:nvidia:_nv002343rm+81}
Sep 25 21:36:43 haven kernel: <ffffffff8835eae8>{:nvidia:rm_free_agp_pages+210 } <ffffffff885a5231>{:nvidia:nv_free_pages+369}
Sep 25 21:36:43 haven kernel: <ffffffff88355f54>{:nvidia:_nv002055rm+46} <ffffffff8850a99a>{:nvidia:_nv002833rm+80}
Sep 25 21:36:43 haven kernel: <ffffffff8832e81d>{:nvidia:_nv009965rm+231} <ffffffff8833ccb4>{:nvidia:_nv009161rm+346}
Sep 25 21:36:43 haven kernel: <ffffffff8832cc46>{:nvidia:_nv009926rm+16} <ffffffff8833bfeb>{:nvidia:_nv009177rm+251}
Sep 25 21:36:43 haven kernel: <ffffffff8835e08b>{:nvidia:rm_set_interrupts+287 } <ffffffff885aa012>{:nvidias_acquire_sema+95}
Sep 25 21:36:43 haven kernel: <ffffffff883385f2>{:nvidia:_nv009494rm+112} <ffffffff8835fda9>{:nvidia:_nv009131rm+425}
Sep 25 21:36:43 haven kernel: <ffffffff8835e34b>{:nvidia:rm_ioctl+9} <ffffffff885a7019>{:nvidia:nv_kern_ioctl+921}
Sep 25 21:36:43 haven kernel: <ffffffff80275445>{xen_tlb_flush_mask+43} <ffffffff885a70ea>{:nvidia:nv_kern_unlocked_ioctl+ 28}
Sep 25 21:36:43 haven kernel: <ffffffff80244317>{do_ioctl+33} <ffffffff8023208b>{vfs_ioctl+594}
Sep 25 21:36:43 haven kernel: <ffffffff802320c5>{__up_write+33} <ffffffff8024e830>{sys_ioctl+89}
Sep 25 21:36:43 haven kernel: <ffffffff8025f05e>{system_call+134} <ffffffff8025efd8>{system_call+0}
Sep 25 21:36:43 haven kernel:
Sep 25 21:36:43 haven kernel: Code: 48 89 02 31 c0 eb 5a 48 89 da 48 b8 ff ff ff 7f ff ff ff ff
Sep 25 21:36:43 haven kernel: RIP <ffffffff80252e40>{__change_page_attr+2589} RSP <ffff880035e09a18>
Sep 25 21:36:43 haven kernel: CR2: ffff8800018aad20
Sep 25 22:22:41 haven kernel: <6>SysRq : SAK
Edit: It does not appear to crash if I do not use Xv or GL xscreensaver. Did not try any other openGL app yet.

I guess I'll have to choose between Xorg 7.1 and xen until someone figure that out

Last edited by nodens2099; 09-26-06 at 03:46 PM.
nodens2099 is offline   Reply With Quote

Old 10-07-06, 03:36 PM   #9
nodens2099
Registered User
 
Join Date: Apr 2006
Posts: 9
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8762

Ok, I figured it out : the patch doesn't work with xen-unstable, and this is the version to be used on my debian sid when using the 2.6.17 or 2.6.18 kernel. With xen 3.0.2 and a 2.6.16 kernel, it works fine.
nodens2099 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 07:32 AM.


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