From: Nicolas Aspert <Nicolas.Aspert@epfl.ch>
To: Adrian Bunk <bunk@fs.tum.de>, Knut J Bjuland <knutjbj@online.no>
Cc: linux-kernel@vger.kernel.org, jhartmann@addoes.com
Subject: Re: bug in Linux 2.4.19RC1 i815e agpgart module, unable to determineaperture size.
Date: Thu, 27 Jun 2002 09:07:41 +0200 [thread overview]
Message-ID: <3D1AB9BD.8050303@epfl.ch> (raw)
In-Reply-To: fa.soqp29v.17ncoig@ifi.uio.no
[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]
Adrian Bunk wrote:
> Since -rc1 agpgart_be.c uses for the 815 new 815-specific instead of the
> generic intel functions.
>
> Could you try whether reverting the following part of the patch fixes the
> problem?
>
> --- linux/drivers/char/agp/agpgart_be.c 2002-06-04 01:22:07.000000000 +0000
> +++ linux/drivers/char/agp/agpgart_be.c 2002-06-24 15:23:36.000000000 +0000
> @@ -3929,7 +4005,7 @@
> INTEL_I815,
> "Intel",
> "i815",
> - intel_generic_setup },
> + intel_815_setup },
> { PCI_DEVICE_ID_INTEL_820_0,
> PCI_VENDOR_ID_INTEL,
> INTEL_I820,
>
>
>
Hello
I suspect that the problem (from what you sent) comes from the
'intel_8xx_fetch_size' function. The APSIZE register has only one bit
with valuable information with intel815 chipset, all other bits are
'reserved'. The problem you saw may come from reading those reserved bits.
I attach a patch against 2.4.19-rc1 that aims at fixing this. Could you
please test and report whether things get better/worse ?
Best regards
Nicolas.
--
Nicolas Aspert Signal Processing Institute (ITS)
Swiss Federal Institute of Technology (EPFL)
[-- Attachment #2: i815-fetch-size-2.4.19-rc1.diff --]
[-- Type: text/plain, Size: 574 bytes --]
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 08:56:02 2002
+++ linux-2.4.19-rc1/drivers/char/agp/agpgart_be.c Thu Jun 27 08:59:21 2002
@@ -1402,6 +1402,10 @@
aper_size_info_8 *values;
pci_read_config_byte(agp_bridge.dev, INTEL_APSIZE, &temp);
+
+ 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++) {
next parent reply other threads:[~2002-06-27 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.ckqb7hv.j48jpn@ifi.uio.no>
[not found] ` <fa.soqp29v.17ncoig@ifi.uio.no>
2002-06-27 7:07 ` Nicolas Aspert [this message]
[not found] ` <3D1AD0A0.9D053C4E@online.no>
2002-06-27 9:04 ` bug in Linux 2.4.19RC1 i815e agpgart module, unable to determineaperturesize Nicolas Aspert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D1AB9BD.8050303@epfl.ch \
--to=nicolas.aspert@epfl.ch \
--cc=bunk@fs.tum.de \
--cc=jhartmann@addoes.com \
--cc=knutjbj@online.no \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox