From patchwork Fri Apr 29 08:22:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12831623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2F24C433EF for ; Fri, 29 Apr 2022 08:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tQhnZNAuDcJCSS6/MMYgZcftBEdeZWUsKUOyru47vCk=; b=YibTgssW/PoLkK Fh7NSPTW4+gw2cTlSs2UW5/4guDMa09NkG/p62gyIQdyXuagFNsm7vccqxeyAPdkot7sVjTh71YfW La7JMFFe1WgkCMCi3Fxg92Zn83GvTb7v2xnle6y78zfp9LEfvS+aqWtqyCP6TJiOU1aeeHhmZ7fYD eTKS1Xh5/UHuWHE+lGynG4kglWa/3nYNSVX7kgYXWb1r573ih3AsMII6Ul7xf5Nx7HOY0JYybS2/Y MiyV1zFgct6Z2zCxrelzydNRrexnc8sWpD5eiCDrENzULH9XQb8Jy8pIBZoF/IG/VI9Fg68HibkEp xwcw84JmagWNJr/Kt2SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkLuZ-00A9ii-NB; Fri, 29 Apr 2022 08:23:35 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkLty-00A9Vw-R6 for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 08:23:00 +0000 Received: by mail-lj1-x236.google.com with SMTP id q14so9605490ljc.12 for ; Fri, 29 Apr 2022 01:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PAlN+PTUyqks6hqGrW+qckqB/lH9aZjKYWgmrQYYHa4=; b=fUqJrWvtrx8Af1i1dIKCvDN65PW96rX20FLwt+ie7pGKrJuRIq5FJhHpdmjo8bNp2a hjNQjVLxsxnZ7pQMF4RKdt1pcwonGXo2nE2ewIIj/yvzYz/MYLAlN3bPZFD1jKGlinaq IGk+NWifc1meAHo1k0pEZT3pdD/EneCDx4HJ46ltwQSZuGycNQT2r6H4awyAuYWys/Nt 76Odh6+ZOWivq3i++ViCecadNgQiH642RERe4sQWEga5G8yYfCjN1mdNywPsoPAIQC4F LAAy7+r8mJGOHpI8G7LidTTD/kZDEqvrv+ZpoAz1Syv140gdhf65HqzMpe2tSvM3y5Cm NGfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PAlN+PTUyqks6hqGrW+qckqB/lH9aZjKYWgmrQYYHa4=; b=oUy8eXU4ArLgRS++oFUDucqiM2cnI1s2HdheM+fq4oLQhOHn27b1LBkShBMvUQ8YTz 8RVGp6XkRb93Vy2wHr678Z9Fbs0+AMxge6pHfcvv7+7s7GtBwNU9CJxm17siXOiUUJrT Ri2pDkruSRUN7ePWm6SXgtWamjKVca+Wi5Pvwop1r70fFMY+Vb/VVLrtj10nL6iYX9kM wcEv9HWG/o8pZk2W1IgHH5TYy9UydzNbOIDxS8ud6Q49RwRt58xZic8ZQqXGL4U74iBT qHOXPBwSIK67Ivpx0bSz8fK9VI6Tgn9jMyLCxEZX3qeoOsB0Vrruld3xfZiEF9sN3BRI xxvw== X-Gm-Message-State: AOAM533jTXZVYBRBMAnpw/A79jqzayzOSZaq7vYnt8WqImDhiuFPxNZz /IGBV1gfgiSbsRjOs+Es9nA= X-Google-Smtp-Source: ABdhPJxQNk6WVaoL+9t7XN7z10p4srU1Oi91euacYwvlEX3pKTPyIRh42d6HgZfmjfH3BSEQY0XflQ== X-Received: by 2002:a05:651c:893:b0:249:4023:3818 with SMTP id d19-20020a05651c089300b0024940233818mr24408230ljq.44.1651220575123; Fri, 29 Apr 2022 01:22:55 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id d11-20020a19f24b000000b0047224d546adsm178803lfk.132.2022.04.29.01.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 01:22:54 -0700 (PDT) From: Thierry Reding To: Joerg Roedel Cc: Will Deacon , Robin Murphy , iommu@lists.linux-foundation.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/3] iommu/arm-smmu: Support Tegra234 SMMU Date: Fri, 29 Apr 2022 10:22:43 +0200 Message-Id: <20220429082243.496000-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220429082243.496000-1-thierry.reding@gmail.com> References: <20220429082243.496000-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_012258_968590_124A0D8F X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding Allow the NVIDIA-specific ARM SMMU implementation to bind to the SMMU instances found on Tegra234. Acked-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Thierry Reding --- drivers/iommu/arm/arm-smmu/arm-smmu-impl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c b/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c index 2c25cce38060..658f3cc83278 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c @@ -211,7 +211,8 @@ struct arm_smmu_device *arm_smmu_impl_init(struct arm_smmu_device *smmu) if (of_property_read_bool(np, "calxeda,smmu-secure-config-access")) smmu->impl = &calxeda_impl; - if (of_device_is_compatible(np, "nvidia,tegra194-smmu") || + if (of_device_is_compatible(np, "nvidia,tegra234-smmu") || + of_device_is_compatible(np, "nvidia,tegra194-smmu") || of_device_is_compatible(np, "nvidia,tegra186-smmu")) return nvidia_smmu_impl_init(smmu);