1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

powerpc: Enable the BUS_DMA_NOCACHE flag handling

The flag handling was committed commented out 7 years ago.  It works, and is
needed for LinuxKPI-based DRM drivers.

Also mark a local as potentially unusable, as it's only really used when KTR
is enabled.

Submitted by:	mmacy
This commit is contained in:
Justin Hibbits 2019-08-04 19:25:23 +00:00
parent a1601073bf
commit 69a277d98e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350569

View File

@ -350,7 +350,7 @@ bus_dma_tag_set_domain(bus_dma_tag_t dmat, int domain)
int
bus_dma_tag_destroy(bus_dma_tag_t dmat)
{
bus_dma_tag_t dmat_copy;
bus_dma_tag_t dmat_copy __unused;
int error;
error = 0;
@ -515,11 +515,9 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
if (flags & BUS_DMA_ZERO)
mflags |= M_ZERO;
#ifdef NOTYET
if (flags & BUS_DMA_NOCACHE)
attr = VM_MEMATTR_UNCACHEABLE;
else
#endif
attr = VM_MEMATTR_DEFAULT;
/*