All of lore.kernel.org
 help / color / mirror / Atom feed
* drm/exynos: when to call dma_map_sg() on a GEM object?
@ 2015-10-30 20:44 Tobias Jakobi
  2015-11-02  7:41 ` Joonyoung Shim
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Jakobi @ 2015-10-30 20:44 UTC (permalink / raw)
  To: ML dri-devel, linux-samsung-soc, Marek Szyprowski, Joonyoung Shim

Hey there,

this question arose during some discussion with someone concerning the
Exynos mixer and G2D.

The question is the following. Consider the Exynos mixer when run under
the IOMMU (that's sysmmu_tv IIRC). What exactly does setup the IOMMU
mapping so that the mixer can scanout the framebuffer?

There is exynos_gem_map_sgt_with_dma() in the Exynos GEM code, but it's
currently exclusively used for the G2D and only when dealing with
userptr (and not GEM) there.

I was looking at exynos_drm_alloc_buf() since this called when
allocating a BO to be used as scanout.

I see dma_alloc_attrs() being called, which also sets the DMA address
that is later used in the mixer code. But DMA_ATTR_NO_KERNEL_MAPPING is
passed, so no mapping is done at this point.

Is the mapping done somewhere else, or is it simply not necessary here?

With best wishes,
Tobias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-02 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-30 20:44 drm/exynos: when to call dma_map_sg() on a GEM object? Tobias Jakobi
2015-11-02  7:41 ` Joonyoung Shim
2015-11-02 10:29   ` Tobias Jakobi
2015-11-02 10:42     ` Inki Dae

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.