On Mon, Oct 21, 2013 at 8:34 AM, Vikas Patil <vikasmpatil at gmail.com> wrote:
> Hi All,
>
> I am running the webkit on custom linux based on 3.4.25 kernel on omap5.
> However it is failing to map some memory using drm_gem_mmap() at following
> code.
>
> if (map->size < vma->vm_end - vma->vm_start) {
>                                 ret = -EINVAL;
>                                 goto out_unlock;
>                 }
>
> Here is one of the failing params
> vma->vm_pgoff = 170254
> map->size:73728
>  vma->vm_end = 1776594944
>  vma->vm_start:1776463872
>  (vm_end - vm_start):131072
>
> Could anyone please suggest how to debug this or Is this a known bug?

Hi Vikas,

It is not really a bug.. or rather it is somehow a userspace bug.  GEM
only wants you to mmap an entire buffer, and not a partial buffer.  So
somehow userspace is asking to only mmap part of the buffer (73728 vs
131072)

BR,
-R

> Regards,
> Vikas
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>

Reply via email to