Skip to contentSkip to conversation

2.6.0-test4-mm6

DISCUSSION dave 1 participant 1 message Sep 5, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

dave

author
#2 lore raw
Quoted 10 lines · Maciej Soltysiak
Quoted 4 lines

2. X11R6 won't start anymore, it fails with a strange Fatal server error:
xf86OpenConsole: VT_GETMODE failed
I can't find a reason for that in the changelog.

Well, I can't start X because I am using nvidia drivers + www.minion.de patches, and some specs seem to have changed again.
kernel: nvidia: Unknown symbol kdev_val

If the kdev_t.h changes are going to stay, I will have to wait for Christian Zander's updates to the nvidia 2.6-patch.

The following patch fixes it for me.

Cheers,

dave

nv-linux.h.fixed 2003-09-05 15:21:03.000000000 +0100 renamed from nv-linux.h 2003-09-05 15:20:55.000000000 +0100 +7 -2
@@ -129,8 +129,13 @@
 #define NV_VMA_PRIVATE(vma)           ((vma)->vm_private_data)
 
 #ifdef KERNEL_2_5
-#  define NV_DEVICE_NUMBER(_minor)      ((kdev_val(_minor)) & 0x0f)
-#  define NV_IS_CONTROL_DEVICE(_minor)  (((kdev_val(_minor)) & 0xff) == 0xff)
+
+//#  define NV_DEVICE_NUMBER(_minor)      ((kdev_val(_minor)) & 0x0f)
+//#  define NV_IS_CONTROL_DEVICE(_minor)  (((kdev_val(_minor)) & 0xff) == 0xff)
+
+#  define NV_DEVICE_NUMBER(_minor)      (MINOR(_minor) & 0x0f)
+#  define NV_IS_CONTROL_DEVICE(_minor)  ((MINOR(_minor) & 0x0ff) == 0xff)
+
 #  define NV_IS_SUSER()                 capable(CAP_SYS_ADMIN)
 #  define NV_PCI_DEVICE_NAME(x)         ((x)->pretty_name)
 #  define NV_CLI()                      local_irq_disable()