Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1705813ybb; Thu, 9 Apr 2020 07:32:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLXKLCYNOMf6fC/UR2irlTg6XGWeNUwGXPlK5Y7N3iNWj8Cj83w13kqRc4jQgvKQa9zSIZX X-Received: by 2002:ac8:5486:: with SMTP id h6mr12397773qtq.256.1586442760746; Thu, 09 Apr 2020 07:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586442760; cv=none; d=google.com; s=arc-20160816; b=mGeX44o8JbHOoPoe9hFJINfNtILdlHmylmmuWChmlpoobdZ3EBkAV/HV4pG9FCQzrZ pioBEjUHXKKZ8yxC0fuT1aQhdhnSp8H+0WhkeOadIezsexFS/l1SpK0SkDomqmr5TJ8V 8aBgzYlbYZ3ZfbN+mJrl1vDyAAufJbDlK694bPSDxf7OSvABWj/RKL0F3gIVAwTjAa0N jirVAHDBz1sHpBPvW1ViACWxhMC9sY9zEKMoUVfTYsktqtIgGCBjDuPyizlb0/V9x4Lh JiuyeX9uOHHDRve/dfFPgxhScYK3xBHdrhwVmcNNP0/wfl8wTE3pKcNVeEbvzzhcs5Wx oLpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8VBDtyKKfindHVYxm7GUaaThxTbfyqpdQCxkW2oIsmc=; b=JaglgQLuH/Cx64nGbDWw6u6dkWot8u97/iY7/8lMNPBNHJsGJyMNeAv8tCwUwb3x1X IDK04fsWdgEVmaGHq58EEj6+ig3q+QL0kpcMLfl6GR6SUDmaSppXOWC//AyjnRxH2PTd hxmafnQnGX5lU1M+SilXzwag/FBF9Z69QTzO+m4sAGFX3tKtGvu+Tp/1b4UwE/F3ALVr 3xeDBbLiQdciY9hN09IvYCllezRo9cRJL/NiznBZe6DUGjynOqZ0bdQTeAvS+aKjZTkx ONSZMqzbV3iFRZliyn0Y69HjGBcz8EnkuPLVuqti8f5l7Ic32Jv59+QYL55VedUTEyuV fQaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si5718939qko.362.2020.04.09.07.32.09; Thu, 09 Apr 2020 07:32:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727447AbgDIObC (ORCPT + 99 others); Thu, 9 Apr 2020 10:31:02 -0400 Received: from 8bytes.org ([81.169.241.247]:58886 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbgDIObC (ORCPT ); Thu, 9 Apr 2020 10:31:02 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 40578391; Thu, 9 Apr 2020 16:31:01 +0200 (CEST) Date: Thu, 9 Apr 2020 16:30:59 +0200 From: Joerg Roedel To: Marek Szyprowski Cc: Will Deacon , Robin Murphy , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Lu Baolu , Andy Gross , Bjorn Andersson , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , Jean-Philippe Brucker , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: Re: [PATCH] iommu/exynos: Get rid of 'struct exynos_iommu_owner' exynos_iommu_owner Message-ID: <20200409143059.GP3103@8bytes.org> References: <20200407183742.4344-1-joro@8bytes.org> <20200407183742.4344-32-joro@8bytes.org> <449e7f16-e719-9617-ec92-63b82c0bc33f@samsung.com> <20200409114620.GA16298@8bytes.org> <40af831b-d00c-0cf9-0a06-e60c048a9ab8@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40af831b-d00c-0cf9-0a06-e60c048a9ab8@samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, On Thu, Apr 09, 2020 at 03:58:00PM +0200, Marek Szyprowski wrote: > The main problem after your conversion is the fact that ->probe_device() > is called very early, before any other platform device (thus IOMMU > controller) is is probed. It doesn't handle EPROBE_DEFER too. I don't quite understand why probe_device() is called too early, as it is called at the same time add_device() was called before. But anyway, I have seen a similar problem on OMAP. If the SYSMMU for a master is not probed yet when probe_device() is called, it can just return -ENODEV and in your driver you just call but_iommu_probe() when a new SYSMMU got initialized to re-probe uninitialized masters on the bus. This patch-set contains a change to export bus_iommu_probe() for exactly that reason. What do you think? Regards, Joerg