[PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync
Robin Murphy
robin.murphy at arm.com
Wed Jun 8 09:48:15 PDT 2016
On 08/06/16 16:44, Rob Herring wrote:
> On Wed, Jun 1, 2016 at 1:06 AM, Kefeng Wang <wangkefeng.wang at huawei.com> wrote:
>> The of_iommu_init() is called multiple times by arch code,
>> make it postcore_initcall_sync, then we can drop relevant
>> calls fully.
>>
>> Note, the IOMMUs should have a chance to perform some basic
>> initialisation before we start adding masters to them. So
>> postcore_initcall_sync is good choice, it ensures of_iommu_init()
>> called before of_platform_populate.
>
> What ever happened to doing deferred probe for IOMMUs?
Sricharan has been trying to resurrect it recently[1], although the fact
that we're starting to need more or less the same thing for certain
interrupt controllers as well (and I'm not sure how immune ACPI IORT is
to the problem) suggests a more general rethink might be in order. I've
got a big TODO item hanging over me on that one...
Robin.
[1]:http://thread.gmane.org/gmane.linux.kernel.iommu/13243
>
> Rob
>
More information about the linux-arm-kernel
mailing list