From ac4c68517583eb3c920aaf8482288eb3daf4332b Mon Sep 17 00:00:00 2001 From: tmm Date: Fri, 2 May 2003 01:21:37 +0000 Subject: - Reduce the DVMA preallocation limit from 128kB to 32kB. 128kB were quite excessive, and caused the available space to be used up too easily. The new limit should be a better estimation of how much the caller will need at most. - Double the IOTSB size 64kB, for a DVMA area size of 64MB. This should fix DMA problems on e450s and other large machines due to DVMA space exhaustion, which were introduced in my last IOMMU code revision in January. Reported and tested by: fenner --- sys/sparc64/sbus/sbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/sparc64/sbus') diff --git a/sys/sparc64/sbus/sbus.c b/sys/sparc64/sbus/sbus.c index f55206c..f695d5a 100644 --- a/sys/sparc64/sbus/sbus.c +++ b/sys/sparc64/sbus/sbus.c @@ -430,7 +430,7 @@ sbus_probe(device_t dev) * DMA pointer will be translated by the first page of the IOTSB. * To detect bugs we'll allocate and ignore the first entry. */ - iommu_init(name, &sc->sc_is, 2, -1, 1); + iommu_init(name, &sc->sc_is, 3, -1, 1); /* Enable the over-temperature and power-fail intrrupts. */ rid = 0; -- cgit v1.1