linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ati_pcigart: support 16K and 64K page size
@ 2002-09-28  4:34 Bjorn Helgaas
  2002-09-29  0:13 ` [Dri-devel] " Michel Dänzer
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2002-09-28  4:34 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel, dri-devel

This adds support for 16K and 64K system page sizes.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.660   -> 1.661  
#	drivers/char/drm/ati_pcigart.h	1.6     -> 1.7    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/14	bjorn_helgaas@hp.com	1.661
# Add 64K & 16K page size support to ati_pcigart.h
# --------------------------------------------
#
diff -Nru a/drivers/char/drm/ati_pcigart.h b/drivers/char/drm/ati_pcigart.h
--- a/drivers/char/drm/ati_pcigart.h	Sat Sep 14 15:26:54 2002
+++ b/drivers/char/drm/ati_pcigart.h	Sat Sep 14 15:26:54 2002
@@ -29,14 +29,20 @@
 
 #include "drmP.h"
 
-#if PAGE_SIZE == 8192
+#if PAGE_SIZE == 65536
+# define ATI_PCIGART_TABLE_ORDER 	0
+# define ATI_PCIGART_TABLE_PAGES 	(1 << 0)
+#elif PAGE_SIZE == 16384
+# define ATI_PCIGART_TABLE_ORDER 	1
+# define ATI_PCIGART_TABLE_PAGES 	(1 << 1)
+#elif PAGE_SIZE == 8192
 # define ATI_PCIGART_TABLE_ORDER 	2
 # define ATI_PCIGART_TABLE_PAGES 	(1 << 2)
 #elif PAGE_SIZE == 4096
 # define ATI_PCIGART_TABLE_ORDER 	3
 # define ATI_PCIGART_TABLE_PAGES 	(1 << 3)
 #else
-# error - PAGE_SIZE not 8K or 4K
+# error - PAGE_SIZE not 64K, 16K, 8K or 4K
 #endif
 
 # define ATI_MAX_PCIGART_PAGES		8192	/* 32 MB aperture, 4K pages */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Dri-devel] [PATCH] ati_pcigart: support 16K and 64K page size
  2002-09-28  4:34 [PATCH] ati_pcigart: support 16K and 64K page size Bjorn Helgaas
@ 2002-09-29  0:13 ` Michel Dänzer
  0 siblings, 0 replies; 2+ messages in thread
From: Michel Dänzer @ 2002-09-29  0:13 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-kernel, dri-devel

On Sam, 2002-09-28 at 06:34, Bjorn Helgaas wrote: 
> This adds support for 16K and 64K system page sizes.

[...]

Committed to the DRI trunk, thanks.


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-29  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-28  4:34 [PATCH] ati_pcigart: support 16K and 64K page size Bjorn Helgaas
2002-09-29  0:13 ` [Dri-devel] " Michel Dänzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).