2002-06-27 09:04:30

by Nicolas ASPERT

[permalink] [raw]
Subject: Re: bug in Linux 2.4.19RC1 i815e agpgart module, unable to determineaperturesize.

diff -Nru linux-2.4.19-rc1.clean/drivers/char/agp/agpgart_be.c linux-2.4.19-rc1/drivers/char/agp/agpgart_be.c
--- linux-2.4.19-rc1.clean/drivers/char/agp/agpgart_be.c Thu Jun 27 09:07:04 2002
+++ linux-2.4.19-rc1/drivers/char/agp/agpgart_be.c Thu Jun 27 10:53:47 2002
@@ -1402,6 +1402,12 @@
aper_size_info_8 *values;

pci_read_config_byte(agp_bridge.dev, INTEL_APSIZE, &temp);
+
+ /* Intel 815 chipsets have a _weird_ APSIZE register with only
+ * one non-reserved bit, so mask the others out ... */
+ if (agp_bridge.type == INTEL_I815)
+ temp &= (1 << 3);
+
values = A_SIZE_8(agp_bridge.aperture_sizes);

for (i = 0; i < agp_bridge.num_aperture_sizes; i++) {


Attachments:
i815-fetch-size-2.4.19-rc1.diff (710.00 B)