From: Robert Love <rml@tech9.net>
To: Nicolas Aspert <Nicolas.Aspert@epfl.ch>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH]agp for i820 chipset
Date: 05 Nov 2001 11:01:29 -0500 [thread overview]
Message-ID: <1004976089.934.12.camel@phantasy> (raw)
In-Reply-To: <3BE6B50A.5010806@epfl.ch>
In-Reply-To: <3BE6B50A.5010806@epfl.ch>
On Mon, 2001-11-05 at 10:49, Nicolas Aspert wrote:
> Here is an unpdated version of the patch I posted last week that enables
> AGP support for i820 chipset. This one has been done against 2.4.13-ac7,
> _but_ not tested under this kernel. However, it works fine under 2.4.9
> Redhat's kernel (i.e. close to a 2.4.9-ac kernel I think). Xfree-4.1,
> openGL apps and Quake3 are running smoothly.
> [...]
Hey, very good. I don't have an i820 but I am working with the AGPGART
driver so I can say everything looks good. I am actually working on a
rewrite; I find it ridiculous we need all these specific 820 functions.
I am have a design where we load a lookup table, index by the enum, with
the register information and then a generic function can load in the
right value. I really working on cleaning the cruft up ...
I do have two comments, though. I would suggest if you don't hear
anything negative and the patch works for you to go ahead and send it to
Alan and Linus, although you should make sure it is diffed against their
newest trees.
> @@ -200,6 +203,9 @@
> #ifndef PCI_DEVICE_ID_INTEL_810_1
> #define PCI_DEVICE_ID_INTEL_810_1 0x7121
> #endif
> +#ifndef PCI_DEVICE_ID_INTEL_820_1
> +#define PCI_DEVICE_ID_INTEL_820_1 0x250f
> +#endif
I'm not too sure why you need this. I see other chipsets have their
device 0:01 defined but I can't reason why. When I add AGP drivers I
never add it. If you remove it, I think you will find everything still
works.
> +static int intel_820_fetch_size(void)
> +{
> + int i;
> + u8 temp;
> + aper_size_info_16 *values;
> +
> + pci_read_config_byte(agp_bridge.dev, INTEL_APSIZE, &temp);
> + values = A_SIZE_16(agp_bridge.aperture_sizes);
> +
> + for (i = 0; i < agp_bridge.num_aperture_sizes; i++) {
> + if (temp == (u8)(values[i].size_value)) {
> + agp_bridge.previous_size =
> + agp_bridge.current_size = (void *) (values + i);
> + agp_bridge.aperture_size_idx = i;
> + return values[i].size;
> + }
> + }
> +
> + return 0;
> +}
You can just use intel_generic_fetch_size or even one of the
i840-specific or whatever versions, here. Note you don't use anything
specific to the i820, so reduce the footprint and ditch it.
Robert Love
next prev parent reply other threads:[~2001-11-05 16:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-05 15:49 [PATCH]agp for i820 chipset Nicolas Aspert
2001-11-05 16:01 ` Robert Love [this message]
2001-11-05 18:03 ` Nicolas Aspert
2001-11-05 20:19 ` Robert Love
2001-11-05 22:14 ` Robert Love
2001-11-06 7:19 ` Nicolas Aspert
[not found] <linux.kernel.3BE25263.9080108@epfl.ch>
2001-11-02 11:29 ` [PATCH] agp " Nicolas Aspert
-- strict thread matches above, loose matches on Subject: below --
2001-11-02 7:59 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=1004976089.934.12.camel@phantasy \
--to=rml@tech9.net \
--cc=Nicolas.Aspert@epfl.ch \
--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