Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1507455
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg |
| Date | 2016-10-24 19:00 +0200 |
| Message-ID | <svQLo-1O1-37@gated-at.bofh.it> (permalink) |
| References | <svHI5-4mJ-11@gated-at.bofh.it> <svNu9-87q-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Greg KH <gregkh@linuxfoundation.org> writes: > On Sun, Oct 23, 2016 at 10:29:32PM -0700, mzoran@crowfest.net wrote: >> From: Michael Zoran <mzoran@crowfest.net> >> >> The original arm implementation uses dmac_map_area which is not >> portable. Replace it with an architecture neutral version >> which uses dma_map_sg. >> >> As you can see that for larger page sizes, the dma_map_sg >> implementation is faster then the original unportable dma_map_area >> implementation. >> >> Test dmac_map_area dma_map_page dma_map_sg >> vchiq_test -b 4 10000 51us/iter 76us/iter 76us >> vchiq_test -b 8 10000 70us/iter 82us/iter 91us >> vchiq_test -b 16 10000 94us/iter 118us/iter 121us >> vchiq_test -b 32 10000 146us/iter 173us/iter 187us >> vchiq_test -b 64 10000 263us/iter 328us/iter 299us >> vchiq_test -b 128 10000 529us/iter 631us/iter 595us >> vchiq_test -b 256 10000 2285us/iter 2275us/iter 2001us >> vchiq_test -b 512 10000 4372us/iter 4616us/iter 4123us >> >> For message sizes >= 64KB, dma_map_sg is faster then dma_map_page. >> >> For message size >= 256KB, the dma_map_sg is the fastest >> implementation. > > What is the "normal" message size value when using this driver? For the contents of a bulk transfer, the performance case you care about is moving an image (video decode, camera, etc.), so on the order of 1MB.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg mzoran@crowfest.net - 2016-10-24 09:20 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Greg KH <gregkh@linuxfoundation.org> - 2016-10-24 15:30 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Michael Zoran <mzoran@crowfest.net> - 2016-10-24 17:00 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Eric Anholt <eric@anholt.net> - 2016-10-24 19:00 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Eric Anholt <eric@anholt.net> - 2016-10-24 19:40 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Michael Zoran <mzoran@crowfest.net> - 2016-10-25 17:10 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Eric Anholt <eric@anholt.net> - 2016-10-25 18:20 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Michael Zoran <mzoran@crowfest.net> - 2016-10-25 18:40 +0200
Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg Michael Zoran <mzoran@crowfest.net> - 2016-10-25 17:20 +0200
csiph-web