Date: Sun, 4 Aug 2019 19:25:23 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r350569 - head/sys/powerpc/powerpc Message-ID: <201908041925.x74JPNYU096056@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Sun Aug 4 19:25:23 2019 New Revision: 350569 URL: https://svnweb.freebsd.org/changeset/base/350569 Log: 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 Modified: head/sys/powerpc/powerpc/busdma_machdep.c Modified: head/sys/powerpc/powerpc/busdma_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/busdma_machdep.c Sun Aug 4 12:47:38 2019 (r350568) +++ head/sys/powerpc/powerpc/busdma_machdep.c Sun Aug 4 19:25:23 2019 (r350569) @@ -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 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; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908041925.x74JPNYU096056>