public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Aspert <Nicolas.Aspert@epfl.ch>
To: Knut J Bjuland <knutjbj@online.no>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>, Dave Jones <davej@suse.de>,
	marcelo@conectiva.com.br
Cc: linux-kernel@vger.kernel.org
Subject: Re: bug in Linux 2.4.19RC1 i815e agpgart module, unable to determineaperturesize.
Date: Thu, 27 Jun 2002 11:04:29 +0200	[thread overview]
Message-ID: <3D1AD51D.3050001@epfl.ch> (raw)
In-Reply-To: 3D1AD0A0.9D053C4E@online.no

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

Knut J Bjuland wrote:
> Your patch fix my problem with the new i815 code. I run it through a quake3 test and it is as fast as the old
> code,
> Agpgart is now able to determine aperture size, I think you nailed  this problem. Thank you for your patch, hope
> it get in Linux 2.4.19.
> 

Ok that sounds like one bug killed ;-), so I guess this should go in for 
2.4.19-rc2 ...

Marcelo, please apply (patch is against 2.4.19-rc1). I know that Alan 
and Dave have also similar parts in their trees and they are likely to 
suffer the same problem.
Thanks Knut for pointing the problem (although it was present in 
2.4.19-pre10-ac2 already for sure...)

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: 710 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 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++) {

      parent reply	other threads:[~2002-06-27  9:04 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   ` bug in Linux 2.4.19RC1 i815e agpgart module, unable to determineaperture size Nicolas Aspert
     [not found]     ` <3D1AD0A0.9D053C4E@online.no>
2002-06-27  9:04       ` Nicolas Aspert [this message]

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=3D1AD51D.3050001@epfl.ch \
    --to=nicolas.aspert@epfl.ch \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davej@suse.de \
    --cc=knutjbj@online.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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