AGPGART for i7205/i7505
PATCH 1/1 AGPGART for i7205/i7505
Hi,
[ Please Cc: [email protected], I'm not subscribed to the list. ]
attached is a patch to add support for i7205/i7505 to the 2.4.22-pre4 kernel (it should apply to newer -pre's). I only looked at the driver in 2.5 and AFAICS this is really the only thing needed (Dave, please correct me). Alas, the NVIDIA binary-only drivers don't like it. I have tried 2.6.0-pre1 on the same machine and it doesn't work with that either. I haven't been able to test with anything else yet.
Another problem I had, in agp_find_max it reads something like:
long memory, index, result;
memory = (num_physpages << PAGE_SHIFT) >> 20; I have 4 GB of memory on this box and the function reports the maximum agp memory to be 0 MB. It's clear why, num_physpages << PAGE_SHIFT is zero in this case. Something like:
if (PAGE_SHIFT > 20)
memory = num_physpages << (PAGE_SHIFT - 20)
else
memory = num_physpages >> (20 - PAGE_SHIFT)
should do the trick.
Marcelo
drivers/char/agp/agp.h +10 -0
@@ -223,6 +223,12 @@#ifndef PCI_DEVICE_ID_INTEL_860_0 #define PCI_DEVICE_ID_INTEL_860_0 0x2531#endif +#ifndef PCI_DEVICE_ID_INTEL_7205_0 +#define PCI_DEVICE_ID_INTEL_7205_0 0x255d +#endif +#ifndef PCI_DEVICE_ID_INTEL_7505_0 +#define PCI_DEVICE_ID_INTEL_7505_0 0x2550 +#endif #ifndef PCI_DEVICE_ID_INTEL_810_DC100_0 #define PCI_DEVICE_ID_INTEL_810_DC100_0 0x7122#endif
@@ -366,6 +372,10 @@#define INTEL_I860_MCHCFG 0x50#define INTEL_I860_ERRSTS 0xc8 +/* intel i7505 registers */ +#define INTEL_I7505_MCHCFG 0x50 +#define INTEL_I7505_ERRSTS 0x42 +/* intel i810 registers */ #define I810_GMADDR 0x10#define I810_MMADDR 0x14
drivers/char/agp/agpgart_be.c +75 -0
93 lines not on this page · raw message
include/linux/agp_backend.h +2 -0
@@ -55,6 +55,8 @@INTEL_I855_PM ,INTEL_I860 ,INTEL_I865_G , +INTEL_I7205 , +INTEL_I7505 ,VIA_GENERIC ,VIA_VP3 , VIA_MVP3,