From patchwork Tue Apr 20 17:26:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12214833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E7ABC43461 for ; Tue, 20 Apr 2021 17:28:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 A7D3061076 for ; Tue, 20 Apr 2021 17:28:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7D3061076 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yezYhLY28lI/5QvkL8LeEGoPWhy3WyGZRH/hcpN2aYo=; b=X+bcjVfCsEcoln/tHSc5qODrY RJZfO7M0+q/vqQBU59Cc1e6h6/lzBTBCf+Bq0inw4mdn/k9WeUnViB6V/KLqv0qSZJVkK6BaSuNx3 REyE4gSrrEuVUTuhQzs+0/3fddtwO5qjXA+zzGzmp5sOAOccbHxXDmXvod0tWCBZnMDRtrfousWXI pULghYrifAHuHeHE68H5NaVAiYPFZ8BAQKnPZZTWPS2Nd6TBfgwqj85ZSkuiBfp3fFJtBy/HiwVKm j9lXneGF5iaxBvapY1+lNZhOgk5ct9myUMrhEU62yI2m8PyNm86geYLYDdAFxLiV54gUQ+gt07/gL r16a4WsNg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYu8V-00CibL-FG; Tue, 20 Apr 2021 17:26:11 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYu8B-00CiXN-OK for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 17:25:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=rplQXUmZ3dZaacFdD2/srDfpf5ly21wkPzV828fQxU0=; b=zoogaH27nEUDOo44Zf80nFK8zE fhCP44DX4k0F27pj0uFFlnddWeTKdsAhrPO/tIR563e2MQhuQ+XjOuPEPm+ugLJPCONO79xsmSKcq L17ZPRPar64CiRJFD928bh3AwnUvXVu/GCu68mbgEEjnSEekscJ5T+xdua4N+sxBZKTlkojVSyRxI bsfA4IbHl5uVXvykg9gWJ5xs/PmUxvaC9Wj6VUxmsbYby/PCmurZ451QVMlFoamlBjzgDZscJnpu0 Laam+8F/ZWonWbwKr827dMprSPf2D27xSW2voDjGJHuWj8u9R2JPN+KhGOPOzpxIOZ9lOPgmmJczO oEiq11Sg==; Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYu86-00CJKS-5i for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 17:25:46 +0000 Received: by mail-ed1-x52c.google.com with SMTP id i3so20359443edt.1 for ; Tue, 20 Apr 2021 10:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rplQXUmZ3dZaacFdD2/srDfpf5ly21wkPzV828fQxU0=; b=WGtiLxPL+ZMD/2cJcTdb6TNrVJ7kpsc/TKm+6Yn5hLZagZgNELwTGSFe2OB7JgOH2f lNFTEJF96qxnqFGwExDRuH2mi/nSk6rgnz34yO89rQixQ3DB95+l3FnxHk3Y2aqBiP1I yKo06USh0xCCuc6A4bqB/4uiJkqjVFzfUxmFW0+BqYgCqCpJrGsZR3vAhn0qGWuT6Kuu GrEFILmMbP8utFC6ypWzvQGNR+HYUYlNtEU99G839CR1KPROi7S/H47eyKoSdKIB1t/a ZEkUHGVMSYj21ReVIMjvZS9nCUqfb58gXoaVqwDudmAgBnUvAu7VjVhAjSzwSDVTj9QP wHzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rplQXUmZ3dZaacFdD2/srDfpf5ly21wkPzV828fQxU0=; b=ToA7uWgwnA48jBhHGkevtYAT69X9KeXJ92d/IvhClJtNdyAet8cwQvrSkR/oUOAixH yRReqFeabzWJrt8hl0vBDJwgpY0Ft11hJrhGWxiB7BvhfgY+AQyjp+wd7JVzyVXDIG0P N42a8hYM+rhn01SuNjbLuOFQKOsOWPPmm5CYSvl47slxiLjE/iLmwBdDXtRaMAAUtdI1 Y8UZ4nP4UkqplaUxHeIAbcM3RFEpO1ssUd+3IJ5xKOztrsag4v5TyQququyKSaLuTvMM q+dQ1ouPRqiCV43wtFx28lPIMcmrvVBnB8twj/T76oCJuIc8cg80iDetpseuVkvGHvBX zyGQ== X-Gm-Message-State: AOAM531EnNjZtBZyDoEFhnL9rsuALEDHHTmEfhuNW6UyhvzMQ3LpFEvl OQTHcu7u6gpxNZN+70PDjHWa2ICkovc= X-Google-Smtp-Source: ABdhPJy2hEVDGdB7GOaFHXjCKKKVhYmH5kmX29KofoItNeRF5QX6huP1VBvPg6OO52HQJ3zXXgYoeA== X-Received: by 2002:a05:6402:27ce:: with SMTP id c14mr33381218ede.263.1618939540856; Tue, 20 Apr 2021 10:25:40 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id m14sm7179088edr.45.2021.04.20.10.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:25:39 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Will Deacon , Robin Murphy , Joerg Roedel , Krzysztof Kozlowski Subject: [PATCH v2 02/10] dt-bindings: arm-smmu: Add Tegra186 compatible string Date: Tue, 20 Apr 2021 19:26:11 +0200 Message-Id: <20210420172619.3782831-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210420172619.3782831-1-thierry.reding@gmail.com> References: <20210420172619.3782831-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-20210420_102542_234856_204FD55C X-CRM114-Status: GOOD ( 12.94 ) 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: , Cc: iommu@lists.linux-foundation.org, Jon Hunter , Nicolin Chen , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding The ARM SMMU instantiations found on Tegra186 and later need inter- operation with the memory controller in order to correctly program stream ID overrides. Furthermore, on Tegra194 multiple instances of the SMMU can gang up to achieve higher throughput. In order to do this, they have to be programmed identically so that the memory controller can interleave memory accesses between them. Add the Tegra186 compatible string to make sure the interoperation with the memory controller can be enabled on that SoC generation. Signed-off-by: Thierry Reding --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index 9d27aa5111d4..1181b590db71 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -54,8 +54,14 @@ properties: - const: arm,mmu-500 - description: NVIDIA SoCs that program two ARM MMU-500s identically items: + - description: NVIDIA SoCs that require memory controller interaction + and may program multiple ARM MMU-500s identically with the memory + controller interleaving translations between multiple instances + for improved performance. + items: - enum: - - nvidia,tegra194-smmu + - const: nvidia,tegra194-smmu + - const: nvidia,tegra186-smmu - const: nvidia,smmu-500 - items: - const: arm,mmu-500 @@ -165,10 +171,11 @@ allOf: contains: enum: - nvidia,tegra194-smmu + - nvidia,tegra186-smmu then: properties: reg: - minItems: 2 + minItems: 1 maxItems: 2 else: properties: