From patchwork Thu Dec 9 16:35:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12695499 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 101FDC43217 for ; Thu, 9 Dec 2021 16:38:12 +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=AISHyRaqE0K9GsfDBnBVxJqDTb83YC071FGtkQXju6Q=; b=XuUmxA7RAhdn6z Gn8BKrRIiIJyH76Xk1l3hFPLQ/8U8z9AZgNAXUBztbbkGf2EZR62HK0VLbsvR/czgVE6alu1Ugeu4 FTq0RUSdMHYWFRueOqRFp8R+tsgIvERAcaWdxJ5zbTiI0p4VaLRKBtFPhrwaGRrdqx2rsD98KPD0Q 9qxfa5By+qCNLSd90Ntb84TV9cklqMvmyv5ALkYItdjNl5u+nveaUzq9yK3kRQ4HDAFr+NCJEzzx8 2ZWTrQgIMY15S7Q0+hfWAyMKtdWeDRO5s7V81B398MqNzVUdp879Wc8osCBBZK76+YuSzv3L3ZUli UpkATfQALo1ntudUe6BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvMPX-00GgzO-3D; Thu, 09 Dec 2021 16:36:47 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvMP0-00Ggo9-AH for linux-arm-kernel@lists.infradead.org; Thu, 09 Dec 2021 16:36:15 +0000 Received: by mail-wr1-x434.google.com with SMTP id q3so10693919wru.5 for ; Thu, 09 Dec 2021 08:36:12 -0800 (PST) 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=RBVbB9vWDMJLfuwUYZUrRPLV7w25shhYgWxxhrA4Z48=; b=DGTmwROcRMmvUsuy3YNzANsG6/H/eUb9VX0utTdtacM8z6GqwRXVbC16JeNePjBBHE O55Lqu5LqXYX+xVavU00nqw3JV3zVVvasfffLIOYCVbEYjBFW9sEf63e7WXDdodZoRYU VdG0oFsYnOuIc5CcB7i9KT7XGIj9UPc9DzI6JfaZIhNaBiTRx6DPT9BTC9H2PLGY9Dln KgylB4YajKqGbcfIVCX7ea8KgNU6l+mp3oOP1+5NSJil2XFG3yZaisW4rMhV8dbJ73/w OnhDDp6NUZyATkuzV4x3mnHSiQELVzNokQT7UIOiSyRr01Echrq5VC4Lc2vlGZ3UHlKR 3OKg== 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=RBVbB9vWDMJLfuwUYZUrRPLV7w25shhYgWxxhrA4Z48=; b=ygX/QhFJnMCEvp83Xis55DjxJfrn7IrBhK1Jasrz15blqbCei1AGHXTSL1/gA+8bul MRM8i8JbMUeXOV5+fZ89prdJt/+nLtKuJyH7RvfYm7b4AxT7Jh6f99Mdsrt1LzOeB8fz NH6fA/hiLN5zaH307NwZuF2DGY4JEMUOxovqi3mFDDwtx32MbmgcPluG9Qa+2Zxbl8fM feLOSIRi5tL4s/wZAetftz1JxX8/71PVxM4011WX4F7FvmxvtKp5nIXJymK8xPKIEjFc I/VASJRzazNA6+4mt3AJicfSi5SwODvDpeL+aU5IMkspo0JZSPqOeCCufpFHEX8Gh3tf xV/Q== X-Gm-Message-State: AOAM530VmtZnLMA3l00gvcaNrdRlMpBTL8LIbYNCaj22F+8Za0EsNFGp pdGyTjCQlcsDmb0gGjkHOD8= X-Google-Smtp-Source: ABdhPJyoyzm35sKhtbHbEgfcyRTMC6E0F0fB9LiKI1mNHER0VWEYotU23cMbHIBCAVjMsVva3cZv1A== X-Received: by 2002:adf:f491:: with SMTP id l17mr7747810wro.525.1639067771765; Thu, 09 Dec 2021 08:36:11 -0800 (PST) Received: from localhost ([193.209.96.43]) by smtp.gmail.com with ESMTPSA id v2sm250094wmc.36.2021.12.09.08.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 08:36:10 -0800 (PST) From: Thierry Reding To: Joerg Roedel , Will Deacon , Robin Murphy , Rob Herring Cc: Thierry Reding , Jon Hunter , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/4] iommu/arm-smmu: Support Tegra234 SMMU Date: Thu, 9 Dec 2021 17:35:59 +0100 Message-Id: <20211209163600.609613-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211209163600.609613-1-thierry.reding@gmail.com> References: <20211209163600.609613-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-20211209_083614_404428_9137D95D X-CRM114-Status: GOOD ( 11.02 ) 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. Signed-off-by: Thierry Reding Acked-by: Will Deacon --- 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);