All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: multiple SMMUv3 devices probe
@ 2021-04-07  9:37 richard clark
  2021-04-08  1:31 ` richard clark
  2021-04-08  7:25 ` Jean-Philippe Brucker
  0 siblings, 2 replies; 6+ messages in thread
From: richard clark @ 2021-04-07  9:37 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: will, jean-philippe, mark.rutland, Richard Clark

Hi guys,
There're 3 SMMUv3 devices in my arm64 box. I am confused by the below
probe process:

arm_smmu_device_probe(...) --> arm_smmu_set_bus_ops(&arm_smmu_ops):
if (platform_bus_type.iommu_ops != ops) {
        err = bus_set_iommu(&platform_bus_type, ops);
        if (err)
}

so for the 1st smmu device on the platform_bus, the
arm_smmu_device_probe(...) will set the platform_bus_type.iommu_bus =
arm_smmu_ops, so for the arm_smmu_device_probe(...) when probing the
2nd smmu device, the bus_set_iommu() will have no chance be called
since the platform_bus_type.iommu_bus == arm_smmu_ops is true, my
question is how the followed bus_set_iommu(...) being called?

Thanks,
RC

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-04-14  3:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07  9:37 Question: multiple SMMUv3 devices probe richard clark
2021-04-08  1:31 ` richard clark
2021-04-08  7:25 ` Jean-Philippe Brucker
     [not found]   ` <CAJNi4rPx=oh7iv=4=-5PV-7OAgkZzr5zLysgTjr3YVKzHsC44w@mail.gmail.com>
     [not found]     ` <YHWVWiQpS93lRNly@myrica>
2021-04-14  1:45       ` richard clark
2021-04-14  2:39         ` Zenghui Yu
2021-04-14  3:17           ` richard clark

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.