From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757990AbcFHQsT (ORCPT ); Wed, 8 Jun 2016 12:48:19 -0400 Received: from foss.arm.com ([217.140.101.70]:55026 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757522AbcFHQsS (ORCPT ); Wed, 8 Jun 2016 12:48:18 -0400 Subject: Re: [PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync To: Rob Herring , Kefeng Wang References: <1464761175-22677-1-git-send-email-wangkefeng.wang@huawei.com> Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Joerg Roedel , Hanjun Guo , Arnd Bergmann , Catalin Marinas , Marek Szyprowski , Rich Felker , Will Deacon From: Robin Murphy Message-ID: <57584C4F.6050108@arm.com> Date: Wed, 8 Jun 2016 17:48:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/06/16 16:44, Rob Herring wrote: > On Wed, Jun 1, 2016 at 1:06 AM, Kefeng Wang 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 >