From patchwork Thu Jul 16 14:33:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667731 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C098513B6 for ; Thu, 16 Jul 2020 14:35:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 980C1206C1 for ; Thu, 16 Jul 2020 14:35:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mrb8d5b0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e7sZLkgb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 980C1206C1 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=+4W7fsBjSo95xi5Um9ktkqGGrgox6PfMezZyCYA0q/A=; b=mrb8d5b0VoP1RMk80oh1v96Vv3 m1XJ4pVrwGDkvKPWbAQSHmtv2irlB4uix06ShWLPnj+zY3+/tFBKuW1t/K3HTFgUmKgLDXp/G6sDe c9UGegFovwUgPnVNjKJh4Vszu466ihzS8so7xnl/X5h/UJsWyxRdYdBzLAubl/Xi6jQOzn/xhZezW aMl/BDAQza8IpX3AmzBhebSRbHFoQCw5loYg1LsVdsSdHWsd0MYqw/1HJdUjvR9ewQttm+ojK2wl8 yM3mvUcb/dcDjX6FnGhuoZO+LQ6cafyHiFvqHkwDh48e6cV9biTRiXlApPdCpjWtl6sp4I1Y0uiv3 v0+CEBaw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4xJ-0007gE-Pk; Thu, 16 Jul 2020 14:33:49 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4xH-0007fb-Bd for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:33:48 +0000 Received: by mail-ed1-x543.google.com with SMTP id a1so4897517edt.10 for ; Thu, 16 Jul 2020 07:33:47 -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:mime-version :content-transfer-encoding; bh=HEwVwfYlTT2pmymqyaazzSn/Ii+VxfI7QEp8UVQCKaY=; b=e7sZLkgbguIfKzJ416HutW9XQ6G4M3oFl+o6j+dtHOMuJB7FKxXsxDeO7p/kegkV2U F7O1kDbujixm/xIa7RGuCDgl/dw5RgmObd+GzUiIujKTM7y6Hkc18PxG3Nq/Pqm5Yo2t 9X4IQiXLCXnvVt5xcFf1BwGqMx3vAN59ZlH1TFxuqSHf00+2eNWkgf3h9MMre2g8+ypk Y+fa0J/M7tj5JrSlnlHsurrejFI/1JN405WgQTBkdA5lTCZdjj9yxUpAIdAvt0+aIxPg Afs1iKUAsH1jILcvehN9TQSJ33AO+71srml1MlMVJzELaPSGyCwNoHNG+mxY1QtQrL9V c4Kw== 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:mime-version :content-transfer-encoding; bh=HEwVwfYlTT2pmymqyaazzSn/Ii+VxfI7QEp8UVQCKaY=; b=RYT4u0UcwVyYEMd7j4sgV1WtPBr18BSmaVQ9ZR7qOrA9+1+ee6KoEDhJzKdmqBbPVU GDmnhqiRF131QP/0BULkq64vF2RrX+LZMDAOrv14r8VC1xhcuZaKTLyX0kgkL0l/bpwG L3aqOCwdUvgs5yiC4xjRokZN6/qYn7AXZ9kZ49N14SuZnmZ9GXUWOueDeUsfci5JWATW NbzIYEDhkO7DM0IBAF6KFJoOX41vynhGLGwOlu70A9URJ3YemQROZcT6UweoVLaIR50D x0WXqCO/MTuDqlhSuwbmMRv3ydyLkZmla3kQ3XqdvgAlsydLCfjCNdt89WbOisYV+fMI GCuQ== X-Gm-Message-State: AOAM533uN/vmRMFTrGBZFax674s84D9czI5lCPBDJAcVG3ndOGp8vD4T 0pDKAk0ESTR3JUJtlEO3zhs= X-Google-Smtp-Source: ABdhPJwc0FF0XQx/jWz80bghse2U1SS94cy2WHRnJ09AcsyVXGMmc7sXeuw03b8YX8norObXlCyCoQ== X-Received: by 2002:aa7:d1c8:: with SMTP id g8mr4787186edp.337.1594910026189; Thu, 16 Jul 2020 07:33:46 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id sa10sm5331518ejb.79.2020.07.16.07.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:33:45 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 1/2] dt-bindings: Add documentation for GV11B GPU Date: Thu, 16 Jul 2020 16:33:40 +0200 Message-Id: <20200716143341.545804-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_103347_416978_79B10B92 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Debarshi Dutta , Terje Bergstrom , Jon Hunter , Rob Herring , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Thierry Reding The GV11B's device tree bindings are the same as for GP10B, though the GPU is not completely compatible, so all that is needed is a different compatible string. Signed-off-by: Thierry Reding --- .../devicetree/bindings/gpu/nvidia,gk20a.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt b/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt index f32bbba4d3bc..533edb4c3eec 100644 --- a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt +++ b/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt @@ -6,6 +6,7 @@ Required properties: - nvidia,gk20a - nvidia,gm20b - nvidia,gp10b + - nvidia,gv11b - reg: Physical base address and length of the controller's registers. Must contain two entries: - first entry for bar0 @@ -88,3 +89,21 @@ Example for GP10B: power-domains = <&bpmp TEGRA186_POWER_DOMAIN_GPU>; iommus = <&smmu TEGRA186_SID_GPU>; }; + +Example for GV11B: + + gpu@17000000 { + compatible = "nvidia,gv11b"; + reg = <0x17000000 0x10000000>, + <0x18000000 0x10000000>; + interrupts = , + ; + interrupt-names = "stall", "nonstall"; + clocks = <&bpmp TEGRA194_CLK_GPCCLK>, + <&bpmp TEGRA194_CLK_GPU_PWR>; + clock-names = "gpu", "pwr"; + resets = <&bpmp TEGRA194_RESET_GPU>; + reset-names = "gpu"; + power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>; + iommus = <&smmu TEGRA194_SID_GPU>; + }; From patchwork Thu Jul 16 14:33:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667733 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57D63618 for ; Thu, 16 Jul 2020 14:35:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2E3562065D for ; Thu, 16 Jul 2020 14:35:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JqNk4xzs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ku55tpGp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E3562065D 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; 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=1WSBo98NH03hzDMcQoTwb923rNJFL9NuDd/3lIUXZ88=; b=JqNk4xzsm6JfL1OOnqIIo8hHg UT1bMPQlIJfAdWWxSF6bAwAJtBoWDwdPy6FWDHw28JZ5f1DMy1ZWQsYtHzgSiOfGdIuZGyVsyCkE9 kWaMbfA5Cv8ass3XdrXEHRHR/jj0g+i6VMhPBKXPKPDbCh0R/rSxzwLLDKIZG9v21tscG9MQCwzzi FXacCpMXVuI/W8wUkQBe10uMpljRI/2GPGMY6ySB0i6aXWt7F6V9Uaz3CnJ9Oxa4l2cl7Cy6bEnrp jjHf/jo9ALNNEQqqQkuQaPdr8xZvbE9ftKdSby37ZIpdlXfV5hjQkH5o8BmumgnujX9tyN3uM5eLW uftbDck0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4xP-0007iB-GS; Thu, 16 Jul 2020 14:33:56 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4xL-0007ga-3A for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:33:52 +0000 Received: by mail-ed1-x541.google.com with SMTP id b15so4916129edy.7 for ; Thu, 16 Jul 2020 07:33:50 -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=YGCp2APVC4UtHLQu1ncbQQ8xQNK26HTOlJJtmViM0RM=; b=Ku55tpGp4Q1NZye//rZ+dDYbha/NX5x0phnPvAMND1wpOpQhbumYHyk+wB4/hDCkVv 3bhqJYWy4QM/FhzTJalo6EGa5XWmCaGjIMcBZnFi+syCQn6QkHGzbvM+OJYYxl2p4/Iv lOm7kyZHFLsfrHiuQRwgwg20eiEpf9n6/BHGinihXxDP/BIFCqkiGxB5U+LOLHHmdBtj Z/nH/bMavZxUagHifY704/n9EnCuJ6JTQs0qS4rgnGzjmWcdBSJZszTKqhXFznAjQVNA 0XzWF4fGSVnb41jBTGdsbj6cyOa1f3Tbc6l3kKeT4Ur/QlpVh+FRXi6VIKBggu2rWYDl h4vA== 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=YGCp2APVC4UtHLQu1ncbQQ8xQNK26HTOlJJtmViM0RM=; b=j0u2me5AFb9L4mQRLcKR2vjKviL/ebzmhr4ABpVMA38TrGlE1BkbwDAcwVJ1WNI+tx 2eX+BQC51UT22tsEYr+V+QNNIQ+0rtZC1y3r9GoSXH3tZz977j5p0fecrR7ZzS0j0m3b OuDCbjWQWidD9tqMH6rVWPWjirQ+q270kUSb55cxtROFJZZQCt4Jius5T8WdYMfu3iAT ZHH8S0tgE/Y8PSfM4B1nzQvsYLJpkHqxTkYv5NjXwGp0HanmP62egsKjT30loGJ0yDeJ spmvCtjn7quaB+odwwF/cDDEWHsmTa/sd8qRyyMjBWMc5vRPHTiBOFs+lAkHBJxKaqXJ crbw== X-Gm-Message-State: AOAM531Lz4sRiF1LrSO8fag6gPR9gvQpXqiFMwbesb0i9QSKaETy/3qX m3BF1coTJm6h/vXl9ltXzbbVo62N X-Google-Smtp-Source: ABdhPJwEroVrR5v1BDRHGeZoUvW37zCydzEd4NVRPvNBUEbr1KgHeAyXkxIvEcf2zUnX2B0lyGHz4g== X-Received: by 2002:a05:6402:14c1:: with SMTP id f1mr4920406edx.342.1594910030012; Thu, 16 Jul 2020 07:33:50 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id d19sm5270823ejk.47.2020.07.16.07.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:33:47 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 2/2] arm64: tegra: Add the GPU on Tegra194 Date: Thu, 16 Jul 2020 16:33:41 +0200 Message-Id: <20200716143341.545804-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716143341.545804-1-thierry.reding@gmail.com> References: <20200716143341.545804-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-20200716_103351_204140_83B96CBE X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:541 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Debarshi Dutta , Terje Bergstrom , Jon Hunter , Rob Herring , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Thierry Reding The GPU found on NVIDIA Tegra194 SoCs is a Volta generation GPU called GV11B. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 98c366ab4aab..14da0793be69 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -1395,6 +1395,39 @@ sor3: sor@15bc0000 { nvidia,interface = <3>; }; }; + + gpu@17000000 { + compatible = "nvidia,gv11b"; + reg = <0x17000000 0x10000000>, + <0x18000000 0x10000000>; + interrupts = , + ; + interrupt-names = "stall", "nonstall"; + clocks = <&bpmp TEGRA194_CLK_GPCCLK>, + <&bpmp TEGRA194_CLK_GPU_PWR>; + clock-names = "gpu", "pwr"; + resets = <&bpmp TEGRA194_RESET_GPU>; + reset-names = "gpu"; + status = "disabled"; + + power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>; + interconnects = <&mc TEGRA194_MEMORY_CLIENT_NVL1R &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL1RHP &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL1W &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL2R &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL2RHP &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL2W &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL3R &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL3RHP &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL3W &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL4R &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL4RHP &emc>, + <&mc TEGRA194_MEMORY_CLIENT_NVL4W &emc>; + interconnect-names = "dma-mem", "read-0-hp", "write-0", + "read-1", "read-1-hp", "write-1", + "read-2", "read-2-hp", "write-2", + "read-3", "read-3-hp", "write-3"; + }; }; pcie@14100000 {