Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 2013 23:27:38 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r257905 - projects/altix2/sys/ia64/sgisn
Message-ID:  <201311092327.rA9NRc8L088496@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Nov  9 23:27:37 2013
New Revision: 257905
URL: http://svnweb.freebsd.org/changeset/base/257905

Log:
  Use an I/O MMU page size of 4KB when the kernel uses a page size less
  than 16KB. Use a 16KB I/O MMU page size otherwise.

Modified:
  projects/altix2/sys/ia64/sgisn/sgisn_pcib.c

Modified: projects/altix2/sys/ia64/sgisn/sgisn_pcib.c
==============================================================================
--- projects/altix2/sys/ia64/sgisn/sgisn_pcib.c	Sat Nov  9 22:28:04 2013	(r257904)
+++ projects/altix2/sys/ia64/sgisn/sgisn_pcib.c	Sat Nov  9 23:27:37 2013	(r257905)
@@ -58,7 +58,11 @@ __FBSDID("$FreeBSD$");
 
 #include <ia64/sgisn/sgisn_pcib.h>
 
-#define	SGISN_PCIB_PAGE_SHIFT	14	/* 16KB; Use 12 for 4KB */
+#if PAGE_SIZE < 16384
+#define	SGISN_PCIB_PAGE_SHIFT	12	/* 4KB */
+#else
+#define	SGISN_PCIB_PAGE_SHIFT	14	/* 16KB */
+#endif
 #define	SGISN_PCIB_PAGE_SIZE	(1UL << SGISN_PCIB_PAGE_SHIFT)
 #define	SGISN_PCIB_PAGE_MASK	(SGISN_PCIB_PAGE_SIZE - 1UL)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311092327.rA9NRc8L088496>