mhi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: Does MHI driver support DMA remapping?
       [not found] <7ac21c73.2acb.183cf5fff45.Coremail.slark_xiao@163.com>
@ 2022-10-13  7:07 ` Loic Poulain
  2022-10-14 11:17   ` Slark Xiao
  0 siblings, 1 reply; 2+ messages in thread
From: Loic Poulain @ 2022-10-13  7:07 UTC (permalink / raw)
  To: Slark Xiao; +Cc: Manivannan Sadhasivam, quic_hemantk, mhi

Hi Slark,

On Thu, 13 Oct 2022 at 05:25, Slark Xiao <slark_xiao@163.com> wrote:
>
> Hi,
>   I have a question about the DMA feature on our MHI driver. Does MHI support DMA remapping feature?
>   This is the reference description from Windows OS:
>
> To ensure compatibility with Kernel DMA Protection and DMAGuard Policy, PCIe device drivers can opt into Direct Memory Access (DMA) remapping.
>
> DMA remapping for device drivers protects against memory corruption and malicious DMA attacks, and provides a higher level of compatibility for devices. Also, devices with DMA remapping-compatible drivers can start and perform DMA regardless of lock screen status.

I assume this is all about IOMMU? then AFAIK it should be supported by
the driver, not because the driver does anything special to handle it,
but because it uses the standard dma helpers. So if there is an IOMMU
in between, indicated in e.g. devicetree or ACPI, the different device
IOVA spaces will be managed/isolated automatically via the IOMMU
layer/driver.

Regards,
Loic

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

* Re:Re: Does MHI driver support DMA remapping?
  2022-10-13  7:07 ` Does MHI driver support DMA remapping? Loic Poulain
@ 2022-10-14 11:17   ` Slark Xiao
  0 siblings, 0 replies; 2+ messages in thread
From: Slark Xiao @ 2022-10-14 11:17 UTC (permalink / raw)
  To: Loic Poulain; +Cc: Manivannan Sadhasivam, quic_hemantk, mhi

















At 2022-10-13 15:07:21, "Loic Poulain" <loic.poulain@linaro.org> wrote:
>Hi Slark,
>
>On Thu, 13 Oct 2022 at 05:25, Slark Xiao <slark_xiao@163.com> wrote:
>>
>> Hi,
>>   I have a question about the DMA feature on our MHI driver. Does MHI support DMA remapping feature?
>>   This is the reference description from Windows OS:
>>
>> To ensure compatibility with Kernel DMA Protection and DMAGuard Policy, PCIe device drivers can opt into Direct Memory Access (DMA) remapping.
>>
>> DMA remapping for device drivers protects against memory corruption and malicious DMA attacks, and provides a higher level of compatibility for devices. Also, devices with DMA remapping-compatible drivers can start and perform DMA regardless of lock screen status.
>
>I assume this is all about IOMMU? then AFAIK it should be supported by
>the driver, not because the driver does anything special to handle it,
>but because it uses the standard dma helpers. So if there is an IOMMU
>in between, indicated in e.g. devicetree or ACPI, the different device
>IOVA spaces will be managed/isolated automatically via the IOMMU
>layer/driver.
>
>Regards,
>Loic

Hi Loic,
  Thanks for your great explanation.
   And I have one more concern, until now, we still don't know how to use the diag port "wwan0qcdm0".
   It doesn't like Qualcomm traditional USB diag port that we can use QXDM (though this is a non-open tool and seems only accept USB diag port) or some other serial tool to collect debug log.
   Is there any method to collect debug log based on this port?

Thanks!

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

end of thread, other threads:[~2022-10-14 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <7ac21c73.2acb.183cf5fff45.Coremail.slark_xiao@163.com>
2022-10-13  7:07 ` Does MHI driver support DMA remapping? Loic Poulain
2022-10-14 11:17   ` Slark Xiao

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