All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/5] Nvidia Arm SMMUv2 Implementation
@ 2020-05-21 23:31 ` Krishna Reddy
  0 siblings, 0 replies; 36+ messages in thread
From: Krishna Reddy @ 2020-05-21 23:31 UTC (permalink / raw)
  Cc: joro, will, robin.murphy, linux-arm-kernel, iommu, linux-kernel,
	linux-tegra, treding, yhsu, snikam, praithatha, talho, bbiswas,
	mperttunen, nicolinc, bhuntsman, Krishna Reddy

Changes in v5:
Rebased on top of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next

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 (5):
  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
  arm64: tegra: Add DT node for T194 SMMU
  arm64: tegra: enable SMMU for SDHCI and EQOS on T194

 .../devicetree/bindings/iommu/arm,smmu.yaml   |   5 +
 MAINTAINERS                                   |   2 +
 arch/arm64/boot/dts/nvidia/tegra194.dtsi      |  81 ++++++
 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 +
 8 files changed, 366 insertions(+), 3 deletions(-)
 create mode 100644 drivers/iommu/arm-smmu-nvidia.c


base-commit: 365f8d504da50feaebf826d180113529c9383670
-- 
2.26.2

^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: [PATCH v5 1/5] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage
@ 2020-05-22 11:35 kbuild test robot
  0 siblings, 0 replies; 36+ messages in thread
From: kbuild test robot @ 2020-05-22 11:35 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3380 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20200521233107.11968-2-vdumpa@nvidia.com>
References: <20200521233107.11968-2-vdumpa@nvidia.com>
TO: Krishna Reddy <vdumpa@nvidia.com>

Hi Krishna,

I love your patch! Perhaps something to improve:

[auto build test WARNING on 365f8d504da50feaebf826d180113529c9383670]

url:    https://github.com/0day-ci/linux/commits/Krishna-Reddy/Nvidia-Arm-SMMUv2-Implementation/20200522-073239
base:    365f8d504da50feaebf826d180113529c9383670
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-193-gb8fad4bc-dirty
        # save the attached .config to linux build tree
        make C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

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

# https://github.com/0day-ci/linux/commit/74ddf19a83203af9193b1921e43fdc6dc68c8379
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 74ddf19a83203af9193b1921e43fdc6dc68c8379
vim +151 drivers/iommu/arm-smmu-nvidia.c

74ddf19a83203a Krishna Reddy 2020-05-21  128  
74ddf19a83203a Krishna Reddy 2020-05-21  129  struct arm_smmu_device *nvidia_smmu_impl_init(struct arm_smmu_device *smmu)
74ddf19a83203a Krishna Reddy 2020-05-21  130  {
74ddf19a83203a Krishna Reddy 2020-05-21  131  	unsigned int i;
74ddf19a83203a Krishna Reddy 2020-05-21  132  	struct nvidia_smmu *nsmmu;
74ddf19a83203a Krishna Reddy 2020-05-21  133  	struct resource *res;
74ddf19a83203a Krishna Reddy 2020-05-21  134  	struct device *dev = smmu->dev;
74ddf19a83203a Krishna Reddy 2020-05-21  135  	struct platform_device *pdev = to_platform_device(smmu->dev);
74ddf19a83203a Krishna Reddy 2020-05-21  136  
74ddf19a83203a Krishna Reddy 2020-05-21  137  	nsmmu = devm_kzalloc(smmu->dev, sizeof(*nsmmu), GFP_KERNEL);
74ddf19a83203a Krishna Reddy 2020-05-21  138  	if (!nsmmu)
74ddf19a83203a Krishna Reddy 2020-05-21  139  		return ERR_PTR(-ENOMEM);
74ddf19a83203a Krishna Reddy 2020-05-21  140  
74ddf19a83203a Krishna Reddy 2020-05-21  141  	nsmmu->smmu = *smmu;
74ddf19a83203a Krishna Reddy 2020-05-21  142  	/* Instance 0 is ioremapped by arm-smmu.c */
74ddf19a83203a Krishna Reddy 2020-05-21  143  	nsmmu->num_inst = 1;
74ddf19a83203a Krishna Reddy 2020-05-21  144  
74ddf19a83203a Krishna Reddy 2020-05-21  145  	for (i = 1; i < MAX_SMMU_INSTANCES; i++) {
74ddf19a83203a Krishna Reddy 2020-05-21  146  		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
74ddf19a83203a Krishna Reddy 2020-05-21  147  		if (!res)
74ddf19a83203a Krishna Reddy 2020-05-21  148  			break;
74ddf19a83203a Krishna Reddy 2020-05-21  149  		nsmmu->bases[i] = devm_ioremap_resource(dev, res);
74ddf19a83203a Krishna Reddy 2020-05-21  150  		if (IS_ERR(nsmmu->bases[i]))
74ddf19a83203a Krishna Reddy 2020-05-21 @151  			return (struct arm_smmu_device *)nsmmu->bases[i];

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72527 bytes --]

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

end of thread, other threads:[~2020-05-22 20:27 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21 23:31 [PATCH v5 0/5] Nvidia Arm SMMUv2 Implementation Krishna Reddy
2020-05-21 23:31 ` Krishna Reddy
2020-05-21 23:31 ` Krishna Reddy
2020-05-21 23:31 ` Krishna Reddy
     [not found] ` <20200521233107.11968-1-vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-05-21 23:31   ` [PATCH v5 1/5] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-22 11:50     ` Dan Carpenter
2020-05-22 11:50       ` [kbuild] " Dan Carpenter
2020-05-22 20:27       ` Krishna Reddy
2020-05-21 23:31   ` [PATCH v5 4/5] arm64: tegra: Add DT node for T194 SMMU Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31   ` [PATCH v5 5/5] arm64: tegra: enable SMMU for SDHCI and EQOS on T194 Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-21 23:31     ` Krishna Reddy
2020-05-22 15:14   ` [PATCH v5 0/5] Nvidia Arm SMMUv2 Implementation Thierry Reding
2020-05-22 15:14     ` Thierry Reding
2020-05-22 15:14     ` Thierry Reding
2020-05-22 15:14     ` Thierry Reding
2020-05-22 18:10     ` Krishna Reddy
2020-05-22 18:10       ` Krishna Reddy
2020-05-22 18:10       ` Krishna Reddy
2020-05-22 18:10       ` Krishna Reddy
2020-05-21 23:31 ` [PATCH v5 2/5] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-21 23:31 ` [PATCH v5 3/5] iommu/arm-smmu: Add global/context fault implementation hooks Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-21 23:31   ` Krishna Reddy
2020-05-22 11:35 [PATCH v5 1/5] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.