Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp434934pxf; Thu, 18 Mar 2021 04:15:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3AkaF08wVxoQEKuY+iBgJw6jVoPeD3zQz+0cLXb3aFAMkbsFVMHenlR5gEGXmjMcbtq5b X-Received: by 2002:a50:e80c:: with SMTP id e12mr2964310edn.229.1616066118628; Thu, 18 Mar 2021 04:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616066118; cv=none; d=google.com; s=arc-20160816; b=Z66Bg4+4Db/sPZ0kqp1JfGbuwUG35/F6Xz1asObQMGp5y9aKs/g2U2ZU8ieHVsvDot 6k+vka/W6hivqKl+SPtt1XADThtkH2KxukTbv5df33h7H3EKqPCEGqD0oMxUlGeknJUz 4d5taVHDZsyw6J2u3WzLJPaJMYYE6suQcP0X/cRJ3p06MhLolcZ+X8vA14CkItvowPAQ ra6+rt+mwH0Ga/NN43/MzO2uEJIJP1pek+6L2lNiI+an9Fa7hwiDJMeMCNsdxZZjMvTP IvjgoZSVVLxhu+I6eOOstQ0j9I0jxu2pfiA9u8T2H8F+LFMRj13jCalbtKuzcimZw7u+ 1JIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=gtJIDsT2DP+zWlSTz3tSq2OqaKbqmTkGw+zYu2Yg/Hg=; b=mSWCDw2zyz9jPOwqhsvNQTXgdvgkfqyeNlsSDlxfNsRXVMvFbAmybbXRehJaWaQG7H MAwSt6SWIWGrcyUZ6dC1qzqxss8c4xVHRAYMcCTrIl7H9kupEZGFHMW4FxpTo8oYDYmS k5/57PuYsq1B0szfOJlJlb4A+MYHXnDEE0MNDX8AI5lkXdXE8ZvgikOmOwCHuoC3e5xF FVxPv0RuR9IBp2JlzMK6Va85Yzjj0pa2869GftOKKvuEqV2xQFjEjWYSvxP1V4Q8RHAn uFSzuDfTWKbtQgYDrZM63wWUFc1d0QyUm6mEPqGG2di1cPrMUPFkZaDOmiG7zoegWCbO liYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j26si1325391ejs.484.2021.03.18.04.14.55; Thu, 18 Mar 2021 04:15:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229929AbhCRKcG (ORCPT + 99 others); Thu, 18 Mar 2021 06:32:06 -0400 Received: from 8bytes.org ([81.169.241.247]:59686 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhCRKbd (ORCPT ); Thu, 18 Mar 2021 06:31:33 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id B26D72D8; Thu, 18 Mar 2021 11:31:32 +0100 (CET) Date: Thu, 18 Mar 2021 11:31:31 +0100 From: Joerg Roedel To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Krishna Reddy , Nicolin Chen , Will Deacon , iommu@lists.linux-foundation.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] iommu/tegra-smmu: Make tegra_smmu_probe_device() to handle all IOMMU phandles Message-ID: References: <20210312155439.18477-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210312155439.18477-1-digetx@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 06:54:39PM +0300, Dmitry Osipenko wrote: > The tegra_smmu_probe_device() handles only the first IOMMU device-tree > phandle, skipping the rest. Devices like 3D module on Tegra30 have > multiple IOMMU phandles, one for each h/w block, and thus, only one > IOMMU phandle is added to fwspec for the 3D module, breaking GPU. > Previously this problem was masked by tegra_smmu_attach_dev() which > didn't use the fwspec, but parsed the DT by itself. The previous commit > to tegra-smmu driver partially reverted changes that caused problems for > T124 and now we have tegra_smmu_attach_dev() that uses the fwspec and > the old-buggy variant of tegra_smmu_probe_device() which skips secondary > IOMMUs. > > Make tegra_smmu_probe_device() not to skip the secondary IOMMUs. This > fixes a partially attached IOMMU of the 3D module on Tegra30 and now GPU > works properly once again. > > Fixes: 765a9d1d02b2 ("iommu/tegra-smmu: Fix mc errors on tegra124-nyan") > Signed-off-by: Dmitry Osipenko > --- > drivers/iommu/tegra-smmu.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) Applied for v5.12, thanks.