Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-plugins-good gst-plugins-good
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 648
    • Issues 648
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 82
    • Merge requests 82
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-plugins-goodgst-plugins-good
  • Issues
  • #642

Closed (moved)
(moved)
Open
Created Aug 27, 2019 by Kevin Song@kevinbing.songContributor

glupload: Dirty cache line with UVC camera.

@ndufresne , I met UVC camera has dirty cache line issue. I run below command line:

gst-launch-1.0 v4l2src device=/dev/video2 ! queue ! glimagesink sync=false -v

UVC camera driver use queue->queue.mem_ops = &vb2_vmalloc_memops; But I don't see ret = dmabuf->ops->end_cpu_access(dmabuf, direction) implement in vb2_vmalloc_memops. So we haven't chance to flush cache.

v4l2src will output dmabuf. glupload will upload to GPU. if I remove _set_cached_eglimage (mems[i], dmabuf->eglimage[i], cache_id); , it works fine.

It doesn't help if I add if (ioctl (fd[0], DMA_BUF_IOCTL_SYNC, &sync) < 0) for every frame in gstglupload.c.

Do you have any suggestion? Where should do cache flush? I think GPU driver should do cache flush before GPU access the buffer.

Edited Aug 27, 2019 by Nicolas Dufresne
Assignee
Assign to
Time tracking