linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* please revert "drm/msm: Use the correct dma_sync calls in msm_gem"
@ 2019-08-02 21:37 Christoph Hellwig
  2019-08-02 22:06 ` Rob Clark
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2019-08-02 21:37 UTC (permalink / raw)
  To: Rob Clark; +Cc: Stephan Gerhold, Rob Clark, Sean Paul, linux-kernel, torvalds

Hi Rob,

I just saw your above commit in Linus' tree, which is completely
bogus and misunderstand the DMA API. Next time you have any issues
please Cc the relevant maintainers and mailing lists.  But even
more importantly get_dma_ops is an completely internal API, and
whatevet your helpers are trying to do is bad - if the dma wasn't
mapped at the time you call the new sync_for_device helper, this
is broken because you can't call dma_sync_sg_for_device on unmapped
address.  If it was mapped it is bogus as well as you can't double
map it.  Please describe what you're actually trying to fix and we're
going to work on a proper solution, but this shot from the hip is just
going to make things worse.

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

end of thread, other threads:[~2019-08-03 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02 21:37 please revert "drm/msm: Use the correct dma_sync calls in msm_gem" Christoph Hellwig
2019-08-02 22:06 ` Rob Clark
2019-08-03  6:19   ` Christoph Hellwig
2019-08-03 14:47     ` Rob Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).