svn commit: r216129 - user/nwhitehorn/ps3/powerpc/ps3
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Thu Dec 2 18:01:18 UTC 2010
Author: nwhitehorn
Date: Thu Dec 2 18:01:18 2010
New Revision: 216129
URL: http://svn.freebsd.org/changeset/base/216129
Log:
Set the cache hint bit in our IOPTEs so that they are not evicted by
hardware. This prevents I/O hangs now that more of the address space is
accessible to the EHCI driver. While here, remove some irrelevant DMA
tag restrictions.
Modified:
user/nwhitehorn/ps3/powerpc/ps3/ps3bus.c
Modified: user/nwhitehorn/ps3/powerpc/ps3/ps3bus.c
==============================================================================
--- user/nwhitehorn/ps3/powerpc/ps3/ps3bus.c Thu Dec 2 17:37:16 2010 (r216128)
+++ user/nwhitehorn/ps3/powerpc/ps3/ps3bus.c Thu Dec 2 18:01:18 2010 (r216129)
@@ -500,7 +500,7 @@ ps3bus_get_dma_tag(device_t dev, device_
err = lv1_map_device_dma_region(dinfo->bus, dinfo->dev,
sc->regions[i].mr_start, dinfo->dma_base[i],
sc->regions[i].mr_size,
- 0xf800000000000000UL /* see Cell IO/MMU docs */);
+ 0xf800000000000800UL /* Cell Handbook Figure 7.3.4.1 */);
if (err != 0) {
device_printf(child,
"could not map DMA region %d: %d\n", i, err);
@@ -510,7 +510,7 @@ ps3bus_get_dma_tag(device_t dev, device_
err = bus_dma_tag_create(bus_get_dma_tag(dev),
1, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR,
- NULL, NULL, BUS_SPACE_MAXSIZE_32BIT, 0, BUS_SPACE_MAXSIZE_32BIT,
+ NULL, NULL, BUS_SPACE_MAXSIZE, 0, BUS_SPACE_MAXSIZE,
0, NULL, NULL, &dinfo->dma_tag);
bus_dma_tag_set_iommu(dinfo->dma_tag, dev, dinfo);
More information about the svn-src-user
mailing list