Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675927

Re: [PATCH 1/5] [media] rockchip/rga: v4l2 m2m support

From Jacob Chen <jacobchen110@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] [media] rockchip/rga: v4l2 m2m support
Date 2017-06-27 17:50 +0200
Message-ID <tX0Uy-2xM-17@gated-at.bofh.it> (permalink)
References <tWDEC-3EY-25@gated-at.bofh.it> <tWUcq-6mA-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Tomasz,
Yeah, the comments are wrong, i will correct it

>> +        */
>> +       pages = (unsigned int *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 3);
>
> This is rather unfortunate and you should expect failures here on
> actively used systems with uptime longer than few hours. Changing this
> to dma_alloc_coherent() and enabling CMA _might_ give you a bit better
> success rate, but...
>
> Normally, this kind of (scatter-gather capable) hardware would allow
> some kind of linking of separate pages, e.g. last entry in the page
> would point to the next page, or something like that. Doesn't this RGA
> block have something similar?
>

Thx for pointing it out ! : )

I looked RGA drvier used in rockchip android and i find it use
kmalloc, so i think it might support separate pages.
I will test it.


> Best regards,
> Tomasz

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/5] [media] rockchip/rga: v4l2 m2m support Tomasz Figa <tfiga@chromium.org> - 2017-06-27 10:40 +0200
  Re: [PATCH 1/5] [media] rockchip/rga: v4l2 m2m support Jacob Chen <jacobchen110@gmail.com> - 2017-06-27 17:50 +0200
  Re: [PATCH 1/5] [media] rockchip/rga: v4l2 m2m support Jacob Chen <jacobchen110@gmail.com> - 2017-06-28 02:40 +0200

csiph-web