From owner-cvs-all Sat Mar 23 18:50:58 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4059037B400; Sat, 23 Mar 2002 18:50:53 -0800 (PST) Received: (from tmm@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2O2orH85978; Sat, 23 Mar 2002 18:50:53 -0800 (PST) (envelope-from tmm) Message-Id: <200203240250.g2O2orH85978@freefall.freebsd.org> From: Thomas Moestl Date: Sat, 23 Mar 2002 18:50:53 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sparc64/include bus.h bus_private.h iommuvar.h src/sys/sparc64/pci psycho.c src/sys/sparc64/sbus sbus.c src/sys/sparc64/sparc64 bus_machdep.c iommu.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tmm 2002/03/23 18:50:53 PST Modified files: sys/sparc64/include bus.h iommuvar.h sys/sparc64/pci psycho.c sys/sparc64/sbus sbus.c sys/sparc64/sparc64 bus_machdep.c iommu.c Added files: sys/sparc64/include bus_private.h Log: Revamp the busdma implementation a bit: - change the IOMMU support code so that it supports overcommittting the available DVMA memory, while still allocating as lazily as possible. This is achieved by limiting the preallocation, and deferring the allocation to map load time when it fails. In the latter case, the DVMA memory reserved for unloaded maps can be stolen to free up enough memory for loading a map. - allow NULL settings in the method tables, and search the parent tags until an appropriate implementation is found. This allows to remove some kluges in the old implementation. Revision Changes Path 1.8 +91 -24 src/sys/sparc64/include/bus.h 1.1 +47 -0 src/sys/sparc64/include/bus_private.h (new) 1.5 +12 -12 src/sys/sparc64/include/iommuvar.h 1.10 +41 -32 src/sys/sparc64/pci/psycho.c 1.2 +40 -32 src/sys/sparc64/sbus/sbus.c 1.8 +62 -47 src/sys/sparc64/sparc64/bus_machdep.c 1.5 +158 -77 src/sys/sparc64/sparc64/iommu.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message