From patchwork Fri Nov 12 13:12:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12692399 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF228C433F5 for ; Fri, 12 Nov 2021 13:26:53 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 732FC61054 for ; Fri, 12 Nov 2021 13:26:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 732FC61054 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=i01n9oyrnUOBmbs7MOLOXE/qw0bhrqD2LM3Te2seyLE=; b=huDZEjjNcn9fsN iagOsQx1ITMK1yPCJ5DTYQMBkJFPF2jBuAKX01tdSgYzw8t1PjtglcRGUvKAAVbqdbPoIknTsqUJ8 qGKlfaWlZhwAEHhVxdpFrHRXOQsd/TrKZNWx5JwQ4gwhfS7fnZ1nsWt5lkh0i/KNp5rxDzWqJ6NtM 5Uswp+8wu3tB7uhxUI6Y0HZkazuPOSpL8QOrA5HSP9Pql1fe0Tjcn5+RXW7l0/3bt6DK5xmuSTLQl Ie25iC+hjVABHxmPcUTsnmKr7dkuM2RVq/wPh2sN0RCP1L7B5OmvNGaXd0cQxtwFzGZwNS3DBD0f2 C/EZDj6eqp266Zpx196g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlWXt-00AXGg-Qi; Fri, 12 Nov 2021 13:24:47 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlWMG-00AUWu-82 for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 13:12:46 +0000 Received: by mail-wr1-x432.google.com with SMTP id w29so15395307wra.12 for ; Fri, 12 Nov 2021 05:12:44 -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=CD8KrErZHm2h0/ca8/KMvKQBC9npkDaLuOssn3ZYFLU=; b=WhgOPku/sJMt9I096l9adybmV45TCPeL5vYAMvumDuf4XLqQEQi9ByjZiWFvBqTb/T wePpQAZ9se+qWnxsOuElDdl6LSU2Pmm/Hsx4ehCuASikRcdDMES66ADfcFgeDaXPo/1m NlemVs7zbsTktVJmPRxljAF/CJDRceLKE32XC/DE7ff9YWSIZYTpde+P7zdto7OJox0e R/Mj2i0dNGUh4x0odLrgMPSAkdPsbpOoJibLX2lJFHF36z4/AYL59dxm6Aly/tIYunmC PSCN9o6jR6ab2bOdT9vgECNbEH9vKUZb5bDwpf6lpdX+sTpUYDXv/pom4HT33E0gRioZ kh9Q== 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=CD8KrErZHm2h0/ca8/KMvKQBC9npkDaLuOssn3ZYFLU=; b=C4U3tSMcd3n0UZvIzD7QHzROvbDkyNgNq2CkeGnsAwXtcBs11XD7om3CyJZSa1X4YQ w5f4PKHHfvXDn6o+7ZPGDn2c+4dEdUHWClS3haYPbaXUrBi5NfX0jP8LZXvyklOrgzVv gsueSo0TGsK6+lYGilhz1dnbwNVcKFxypAPFnPKAf5Ge4FjPrWnzU1IUgku35uvux//d rM7vdaJWIXn13q91/gbznKFduDMt462FmcD/9y5bbBkppSX3j3kt4/24gomZYWadOUoX 7e8X0rwzEkqNMlKiCemIK+NYqn0z7dApAuxAEjkpZfUZZNY6DdWFmNDOdLLN2fnwXPaz k6Gg== X-Gm-Message-State: AOAM531T8aZbkyDyf5q5c24Y3kcKTK5FrgpEFIHP0/BuNwUSSvEkXr8s zghabJZkNnTCncZpznEAkTohiceXUnuVyg== X-Google-Smtp-Source: ABdhPJzobwIYLFkRU9Zi7ARLqvfIYTYsPB7tVqy3KAjMnKkoqWgxe1N4kFQxuKkmGCazsQHjw2/KwQ== X-Received: by 2002:a5d:68d2:: with SMTP id p18mr18611547wrw.21.1636722762864; Fri, 12 Nov 2021 05:12:42 -0800 (PST) Received: from localhost ([193.209.96.43]) by smtp.gmail.com with ESMTPSA id x1sm5665416wru.40.2021.11.12.05.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 05:12:41 -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 3/4] iommu/arm-smmu: Support Tegra234 SMMU Date: Fri, 12 Nov 2021 14:12:30 +0100 Message-Id: <20211112131231.3683098-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211112131231.3683098-1-thierry.reding@gmail.com> References: <20211112131231.3683098-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-20211112_051244_338245_6B91ED5E X-CRM114-Status: GOOD ( 11.39 ) 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 --- 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);