2020-06-04 23:48:35

by Krishna Reddy

[permalink] [raw]
Subject: [PATCH v6 0/4] Nvidia Arm SMMUv2 Implementation

Changes in v6:
Restricted the patch set to driver specific patches.
Fixed the cast warning reported by kbuild test robot.
Rebased on git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next

v5 - https://lkml.org/lkml/2020/5/21/1114
v4 - https://lkml.org/lkml/2019/10/30/1054
v3 - https://lkml.org/lkml/2019/10/18/1601
v2 - https://lkml.org/lkml/2019/9/2/980
v1 - https://lkml.org/lkml/2019/8/29/1588

Krishna Reddy (4):
iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage
dt-bindings: arm-smmu: Add binding for Tegra194 SMMU
iommu/arm-smmu: Add global/context fault implementation hooks
iommu/arm-smmu-nvidia: fix the warning reported by kbuild test robot

.../devicetree/bindings/iommu/arm,smmu.yaml | 5 +
MAINTAINERS | 2 +
drivers/iommu/Makefile | 2 +-
drivers/iommu/arm-smmu-impl.c | 3 +
drivers/iommu/arm-smmu-nvidia.c | 261 ++++++++++++++++++
drivers/iommu/arm-smmu.c | 11 +-
drivers/iommu/arm-smmu.h | 4 +
7 files changed, 285 insertions(+), 3 deletions(-)
create mode 100644 drivers/iommu/arm-smmu-nvidia.c


base-commit: 431275afdc7155415254aef4bd3816a1b8a2ead0
--
2.26.2


2020-06-04 23:49:13

by Krishna Reddy

[permalink] [raw]
Subject: [PATCH v6 4/4] iommu/arm-smmu-nvidia: fix the warning reported by kbuild test robot

>> drivers/iommu/arm-smmu-nvidia.c:151:33: sparse: sparse: cast removes
>> address space '<asn:2>' of expression

Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Krishna Reddy <[email protected]>
---
drivers/iommu/arm-smmu-nvidia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/arm-smmu-nvidia.c b/drivers/iommu/arm-smmu-nvidia.c
index 5999b6a770992..6348d8dc17fc2 100644
--- a/drivers/iommu/arm-smmu-nvidia.c
+++ b/drivers/iommu/arm-smmu-nvidia.c
@@ -248,7 +248,7 @@ struct arm_smmu_device *nvidia_smmu_impl_init(struct arm_smmu_device *smmu)
break;
nsmmu->bases[i] = devm_ioremap_resource(dev, res);
if (IS_ERR(nsmmu->bases[i]))
- return (struct arm_smmu_device *)nsmmu->bases[i];
+ return ERR_CAST(nsmmu->bases[i]);
nsmmu->num_inst++;
}

--
2.26.2

2020-06-23 08:36:05

by Thierry Reding

[permalink] [raw]
Subject: Re: [PATCH v6 4/4] iommu/arm-smmu-nvidia: fix the warning reported by kbuild test robot

On Thu, Jun 04, 2020 at 04:44:14PM -0700, Krishna Reddy wrote:
> >> drivers/iommu/arm-smmu-nvidia.c:151:33: sparse: sparse: cast removes
> >> address space '<asn:2>' of expression
>
> Reported-by: kbuild test robot <[email protected]>
> Signed-off-by: Krishna Reddy <[email protected]>
> ---
> drivers/iommu/arm-smmu-nvidia.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

This should be folded into the patch that introduced this error.

Thierry


Attachments:
(No filename) (468.00 B)
signature.asc (849.00 B)
Download all attachments