I made a second way to enable the nvidia binary driver
on the Macbook Pro V3. The attached patch is for
the nvidia binary kernel driver.
happy penguin
Edgar ( gimli ) Hucek
diff -uNr nv.orig/nv.c nv/nv.c
--- nv.orig/nv.c 2007-07-26 08:35:00.000000000 +0200
+++ nv/nv.c 2007-07-26 12:40:11.000000000 +0200
@@ -1555,6 +1555,39 @@
__nv_init_sp = sp;
+ {
+ for (i = 0; i < num_nv_devices; i++) {
+ printk("Macbook Hack\n");
+ struct pci_dev *dev = nv_linux_devices[i].dev;
+ #define NV_WR32(p,i,d) (__raw_writel((d), (void __iomem *)(p) + (i)))
+
+ unsigned long mmio_start;
+ __u32 mmio_len;
+
+ mmio_start = pci_resource_start(dev, 0);
+ mmio_len = pci_resource_len(dev, 0);
+ volatile u32 __iomem *REGS;
+
+ REGS = ioremap(mmio_start, mmio_len);
+
+ if(REGS) {
+ NV_WR32(REGS, 0x1708, 0);
+ NV_WR32(REGS, 0x1900, 0);
+ NV_WR32(REGS, 0x1901, 0);
+ NV_WR32(REGS, 0x1902, 0);
+ NV_WR32(REGS, 0x1903, 0);
+ NV_WR32(REGS, 0x1904, 0);
+ NV_WR32(REGS, 0x1905, 0);
+ NV_WR32(REGS, 0x1906, 0);
+ NV_WR32(REGS, 0x1907, 0);
+
+ iounmap(REGS);
+ } else {
+ printk("Error mapping memory\n");
+ }
+ }
+ }
+
return 0;
failed:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users