iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Regression due to d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code)
@ 2019-08-06  9:13 Lucas Stach
  2019-08-06 11:33 ` Christoph Hellwig
  0 siblings, 1 reply; 13+ messages in thread
From: Lucas Stach @ 2019-08-06  9:13 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: iommu, linux-kernel

Hi Christoph,

I just found a regression where my NVMe device is no longer able to set
up its HMB.

After subject commit dma_direct_alloc_pages() is no longer initializing
dma_handle properly when DMA_ATTR_NO_KERNEL_MAPPING is set, as the
function is now returning too early.

Now this could easily be fixed by adding the phy_to_dma translation to
the NO_KERNEL_MAPPING code path, but I'm not sure how this stuff
interacts with the memory encryption stuff set up later in the
function, so I guess this should be looked at by someone with more
experience with this code than me.

Regards,
Lucas
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

end of thread, other threads:[~2019-08-08  7:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06  9:13 Regression due to d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code) Lucas Stach
2019-08-06 11:33 ` Christoph Hellwig
2019-08-06 12:20   ` Lucas Stach
2019-08-06 13:38   ` Lendacky, Thomas
2019-08-06 14:04     ` Christoph Hellwig
2019-08-06 14:06       ` Lucas Stach
2019-08-06 14:18         ` Lendacky, Thomas
2019-08-06 15:46           ` Christoph Hellwig
2019-08-06 15:59             ` Lendacky, Thomas
2019-08-06 16:07               ` Christoph Hellwig
2019-08-06 15:44         ` Christoph Hellwig
2019-08-07 15:24           ` Lucas Stach
2019-08-08  7:48             ` Christoph Hellwig

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).