ANDROID: mm: add vendor hook to set up dma ops

Add one vendor hook to set up customized dma ops.

Bug: 375352459
Bug: 179291683
Change-Id: Ic4087067bfd759d286402c76db6f51a88ecead91
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
This commit is contained in:
Zhenhua Huang
2024-10-21 16:56:54 +08:00
committed by Suren Baghdasaryan
parent 8c8091668d
commit 646712ef72
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1759,6 +1759,8 @@ void iommu_setup_dma_ops(struct device *dev)
if (dev->dma_iommu && iommu_dma_init_domain(domain, dev))
goto out_err;
trace_android_rvh_iommu_setup_dma_ops(dev);
return;
out_err:
pr_warn("Failed to set up IOMMU for device %s; retaining platform DMA ops\n",
+2 -2
View File
@@ -10,8 +10,8 @@
#include <trace/hooks/vendor_hooks.h>
DECLARE_RESTRICTED_HOOK(android_rvh_iommu_setup_dma_ops,
TP_PROTO(struct device *dev, u64 dma_base, u64 dma_limit),
TP_ARGS(dev, dma_base, dma_limit), 1);
TP_PROTO(struct device *dev),
TP_ARGS(dev), 1);
struct iova_domain;