From: Keith Whitwell <keith@tungstengraphics.com>
To: Dave Jones <davej@suse.de>
Cc: Nicolas ASPERT <Nicolas.Aspert@epfl.ch>,
Margit Schubert-While <margitsw@t-online.de>,
linux-kernel@vger.kernel.org, faith@redhat.com,
dri-devel@lists.sourceforge.net
Subject: Re: [Dri-devel] Re: 2.4.20 AGP for I845 wrong ?
Date: Wed, 11 Dec 2002 13:40:41 +0000 [thread overview]
Message-ID: <3DF74059.2020905@tungstengraphics.com> (raw)
In-Reply-To: 20021211140504.D11689@suse.de
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
Dave Jones wrote:
> On Wed, Dec 11, 2002 at 12:45:49PM +0000, Keith Whitwell wrote:
> > In any case I don't think the string in the informational is very useful --
> > it's a potentially inaccurate translation of state from *another* module, so
> > I'm just removing the lot.
>
> Cool, that gets my vote too 8-)
>
> Dave
>
Here's the changes I've committed to dri cvs.
Keith
[-- Attachment #2: drm-agp-info.diff --]
[-- Type: text/plain, Size: 3831 bytes --]
? diff
Index: drmP.h
===================================================================
RCS file: /cvsroot/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h,v
retrieving revision 1.54
diff -u -r1.54 drmP.h
--- drmP.h 3 Dec 2002 00:43:47 -0000 1.54
+++ drmP.h 11 Dec 2002 13:29:18 -0000
@@ -488,7 +488,6 @@
typedef struct drm_agp_head {
agp_kern_info agp_info;
- const char *chipset;
drm_agp_mem_t *memory;
unsigned long mode;
int enabled;
Index: drm_agpsupport.h
===================================================================
RCS file: /cvsroot/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_agpsupport.h,v
retrieving revision 1.9
diff -u -r1.9 drm_agpsupport.h
--- drm_agpsupport.h 22 Aug 2002 19:35:31 -0000 1.9
+++ drm_agpsupport.h 11 Dec 2002 13:29:18 -0000
@@ -260,60 +260,6 @@
return NULL;
}
head->memory = NULL;
- switch (head->agp_info.chipset) {
- case INTEL_GENERIC: head->chipset = "Intel"; break;
- case INTEL_LX: head->chipset = "Intel 440LX"; break;
- case INTEL_BX: head->chipset = "Intel 440BX"; break;
- case INTEL_GX: head->chipset = "Intel 440GX"; break;
- case INTEL_I810: head->chipset = "Intel i810"; break;
-
- case INTEL_I815: head->chipset = "Intel i815"; break;
-#if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */
- case INTEL_I820: head->chipset = "Intel i820"; break;
-#endif
- case INTEL_I840: head->chipset = "Intel i840"; break;
-#if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */
- case INTEL_I845: head->chipset = "Intel i845"; break;
-#endif
- case INTEL_I850: head->chipset = "Intel i850"; break;
-
- case VIA_GENERIC: head->chipset = "VIA"; break;
- case VIA_VP3: head->chipset = "VIA VP3"; break;
- case VIA_MVP3: head->chipset = "VIA MVP3"; break;
- case VIA_MVP4: head->chipset = "VIA MVP4"; break;
- case VIA_APOLLO_KX133: head->chipset = "VIA Apollo KX133";
- break;
- case VIA_APOLLO_KT133: head->chipset = "VIA Apollo KT133";
- break;
-
- case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro";
- break;
- case SIS_GENERIC: head->chipset = "SiS"; break;
- case AMD_GENERIC: head->chipset = "AMD"; break;
- case AMD_IRONGATE: head->chipset = "AMD Irongate"; break;
- case ALI_GENERIC: head->chipset = "ALi"; break;
- case ALI_M1541: head->chipset = "ALi M1541"; break;
-
-#if LINUX_VERSION_CODE >= 0x020402
- case ALI_M1621: head->chipset = "ALi M1621"; break;
- case ALI_M1631: head->chipset = "ALi M1631"; break;
- case ALI_M1632: head->chipset = "ALi M1632"; break;
- case ALI_M1641: head->chipset = "ALi M1641"; break;
- case ALI_M1647: head->chipset = "ALi M1647"; break;
- case ALI_M1651: head->chipset = "ALi M1651"; break;
-#endif
-
-#if LINUX_VERSION_CODE >= 0x020406
- case SVWRKS_HE: head->chipset = "Serverworks HE";
- break;
- case SVWRKS_LE: head->chipset = "Serverworks LE";
- break;
- case SVWRKS_GENERIC: head->chipset = "Serverworks Generic";
- break;
-#endif
-
- default: head->chipset = "Unknown"; break;
- }
#if LINUX_VERSION_CODE <= 0x020408
head->cant_use_aperture = 0;
head->page_mask = ~(0xfff);
@@ -321,13 +267,12 @@
head->cant_use_aperture = head->agp_info.cant_use_aperture;
head->page_mask = head->agp_info.page_mask;
#endif
-
- DRM_INFO("AGP %d.%d on %s @ 0x%08lx %ZuMB\n",
- head->agp_info.version.major,
- head->agp_info.version.minor,
- head->chipset,
- head->agp_info.aper_base,
- head->agp_info.aper_size);
+
+ DRM_DEBUG("AGP %d.%d, aperture @ 0x%08lx %ZuMB\n",
+ head->agp_info.version.major,
+ head->agp_info.version.minor,
+ head->agp_info.aper_base,
+ head->agp_info.aper_size);
}
return head;
}
next prev parent reply other threads:[~2002-12-11 13:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.jjk71mv.1kja10g@ifi.uio.no>
2002-12-11 12:07 ` 2.4.20 AGP for I845 wrong ? Nicolas ASPERT
2002-12-11 12:20 ` Dave Jones
2002-12-11 12:26 ` Nicolas ASPERT
2002-12-11 12:38 ` [Dri-devel] " Keith Whitwell
2002-12-11 12:45 ` Keith Whitwell
2002-12-11 13:05 ` Dave Jones
2002-12-11 13:40 ` Keith Whitwell [this message]
2002-12-12 1:58 ` David Dawes
2002-12-12 8:57 ` Nicolas ASPERT
2002-12-11 12:16 ` Nicolas ASPERT
2002-12-11 17:12 [Dri-devel] " Margit Schubert-While
-- strict thread matches above, loose matches on Subject: below --
2002-12-11 19:09 Margit Schubert-While
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=3DF74059.2020905@tungstengraphics.com \
--to=keith@tungstengraphics.com \
--cc=Nicolas.Aspert@epfl.ch \
--cc=davej@suse.de \
--cc=dri-devel@lists.sourceforge.net \
--cc=faith@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=margitsw@t-online.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.