Re: Adding support for WC (write-combining) memory to bus_dma

看板FB_current作者時間13年前 (2012/07/13 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/8 (看更多)
--EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-Jul-12 10:40:27 -0400, John Baldwin <jhb@freebsd.org> wrote: >contigmalloc(). In fact, even better is to call kmem_alloc_contig() direc= tly >rather than using contigmalloc(). =2E.. >Peter, this is somewhat orthognal (but related) to your bus_dma patch whic= h is >what prompted me to post this. Overall, the change seems good to me. My sole thought on the API was whether the actual attribute should be passed, rather than having a couple of new BUS_DMA_ flags but you've addressed that in a followup. One change is that previously allocated memory was all charged to M_DEVBUF via the malloc_type_allocated() call in contigmalloc() whereas now only small allocations are counted. This would seem to indicate that large bus_dmamem_alloc() allocations won't be visible in (eg) "vmstat -m". --=20 Peter Jeremy --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk//W60ACgkQ/opHv/APuIdr6QCdHk7mMLXvzlKh6fBfaNi9q5sn pEkAnR/oKgGStC/HYMpkBBlx3bO2Fj4B =DKsp -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--
文章代碼(AID): #1F_rvoWf (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1F_rvoWf (FB_current)