Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 1 Oct 2001 21:32:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 1 Oct 2001 21:31:58 -0400 Received: from alf.zfn.uni-bremen.de ([134.102.20.22]:25235 "EHLO alf.zfn.uni-bremen.de") by vger.kernel.org with ESMTP id ; Mon, 1 Oct 2001 21:31:50 -0400 Date: Tue, 2 Oct 2001 03:32:27 +0200 From: Christof Efkemann To: linux-kernel@vger.kernel.org Subject: [PATCH] Intel 830 support for agpgart Message-Id: <20011002033227.6e047544.efkemann@uni-bremen.de> X-Mailer: Sylpheed version 0.6.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Tue__2_Oct_2001_03:32:27_+0200_0822ce98" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --Multipart_Tue__2_Oct_2001_03:32:27_+0200_0822ce98 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, this patch for 2.4.10 adds support for the Intel i830 chipset to the agpgart module, thus eliminating the need for "agp_try_unsupported" with this chip. It seems to work fine on my Siemens Fujitsu notebook which has an ATI Radeon Mobility M6 graphics chip. I guess it should work for others too, maybe someone could try. -- Regards, Christof Efkemann --Multipart_Tue__2_Oct_2001_03:32:27_+0200_0822ce98 Content-Type: application/octet-stream; name="i830-agp.patch" Content-Disposition: attachment; filename="i830-agp.patch" Content-Transfer-Encoding: base64 ZGlmZiAtdXIgbGludXgtMi40LjEwLm9yaWcvZHJpdmVycy9jaGFyL0NvbmZpZy5pbiBsaW51eC9k cml2ZXJzL2NoYXIvQ29uZmlnLmluCi0tLSBsaW51eC0yLjQuMTAub3JpZy9kcml2ZXJzL2NoYXIv Q29uZmlnLmluCVN1biBTZXAgMjMgMTg6NTI6MzggMjAwMQorKysgbGludXgvZHJpdmVycy9jaGFy L0Nvbm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IC00Niw2ICs0Niw3IEBACiAJSU5URUxfR1gsCiAJSU5URUxfSTgxMCwK IAlJTlRFTF9JODE1LAorCUlOVEVMX0k4MzAsCiAJSU5URUxfSTg0MCwKIAlJTlRFTF9JODUwLAog CVZJQV9HRU5FUklDLAo= --Multipart_Tue__2_Oct_2001_03:32:27_+0200_0822ce98-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/