freebsd-dev/sys/powerpc/powerpc
John Baldwin 2db99100a4 Improve the handling of static DMA buffers that use non-default memory
attributes (currently just BUS_DMA_NOCACHE):
- Don't call pmap_change_attr() on the returned address, instead use
  kmem_alloc_contig() to ask the VM system for memory with the requested
  attribute.
- As a result, always use kmem_alloc_contig() for non-default memory
  attributes, even for sub-page allocations.  This requires adjusting
  bus_dmamem_free()'s logic for determining which free routine to use.
- For x86, add a new dummy bus_dmamap that is used for static DMA
  buffers allocated via kmem_alloc_contig().  bus_dmamem_free() can then
  use the map pointer to determine which free routine to use.
- For powerpc, add a new flag to the allocated map (bus_dmamem_alloc()
  always creates a real map on powerpc) to indicate which free routine
  should be used.

Note that the BUS_DMA_NOCACHE handling in powerpc is currently #ifdef'd out.
I have left it disabled but updated it to match x86.

Reviewed by:	scottl
MFC after:	1 month
2012-08-03 13:50:29 +00:00
..
altivec.c
autoconf.c
bcopy.c
bus_machdep.c Replace eieio; sync for creating bus-space memory barriers with sync. 2012-04-22 18:54:51 +00:00
busdma_machdep.c Improve the handling of static DMA buffers that use non-default memory 2012-08-03 13:50:29 +00:00
copystr.c
cpu.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
db_disasm.c
db_hwwatch.c
db_interface.c
db_trace.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
dump_machdep.c Add the watchdogs patting during the (shutdown time) disk syncing and 2011-04-28 16:02:05 +00:00
elf32_machdep.c
elf64_machdep.c
exec_machdep.c Do not restore the register holding the TLS pointer when doing various 2012-04-11 00:00:40 +00:00
fpu.c
fuswintr.c
gdb_machdep.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
genassym.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
in_cksum.c
intr_machdep.c Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
iommu_if.m - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
mem.c
mmu_if.m Avoid recursion on the pvh global lock in the aim oea pmap. 2012-07-10 22:10:21 +00:00
mp_machdep.c MFC 2011-06-24 16:35:40 +00:00
openpic_fdt.c Move OpenPIC FDT bus glue to a shared location, so that other PowerPC 2012-05-26 21:02:49 +00:00
openpic.c Make the intended change. 2011-05-10 13:48:21 +00:00
pic_if.m Add the powerpc support. 2011-05-09 16:16:15 +00:00
platform_if.m
platform.c Fix physical address type to vm_paddr_t. 2012-05-24 21:13:24 +00:00
pmap_dispatch.c Fix physical address type to vm_paddr_t. 2012-05-24 21:13:24 +00:00
sc_machdep.c
setjmp.S This commit adds profiling support for powerpc64. Now we can do application 2012-01-20 22:34:19 +00:00
sigcode32.S
sigcode64.S
stack_machdep.c
suswintr.c
syncicache.c
sys_machdep.c
uio_machdep.c