Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 15:37:02 +0800
From:      Yuka Muromachi <yuka.muromachi@gmail.com>
To:        freebsd-multimedia@freebsd.org
Subject:   How alloc non-cache type memory?
Message-ID:  <c5c27980050804003749c56a96@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I meet some problem with nvidia chip, the dma buffer data seems incorrect.

Windows NT can use MmAllocatePagesForMdl() to allocate nonpaged
physical memory and use MmMapLockedPagesSpecifyCache() map to kernel
speace.

MmMapLockedPagesSpecifyCache() also can set page cachetype to  MmNonCached.

Then use MmGetPhysicalAddress() to get physical address fill to DMA
address register.

If I set cache type to MmNonCached, it will work.=20

Is there any way to allocate Non-Cached type physical memory for dma
transfer in FreeBSD?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c5c27980050804003749c56a96>