Re: [PATCH v5 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

From: Nicolin Chen
Date: Sun Oct 04 2020 - 18:10:23 EST


On Sat, Oct 03, 2020 at 05:05:52PM +0300, Dmitry Osipenko wrote:
> 03.10.2020 09:59, Nicolin Chen пишет:
> > ubuntu@jetson:~$ dmesg | grep iommu
> > iommu: Default domain type: Translated
> > tegra-i2c 7000c400.i2c: Adding to iommu group 0
> > tegra-i2c 7000c500.i2c: Adding to iommu group 0
> > tegra-i2c 7000d000.i2c: Adding to iommu group 0
> > tegra-pcie 1003000.pcie: Adding to iommu group 1
>
> Could you please explain how you got I2C into IOMMU?
>
> Are you testing vanilla upstream kerne? Upstream DT doesn't assign AHB
> group to I2C controllers, nor to APB DMA controller.

I have local DT changes adding iommus property in i2c/pcie nodes
to test group_device() and pci device, yet neither of them is in
vanilla kernel. The log is merely to show to people the sequence
of iommu core prior to clients.