From patchwork Thu Dec 1 09:21:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160233wrr; Thu, 1 Dec 2022 01:25:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Hr0fHTOzLFCMBHTYqYf/qDzo2q9ewIqtwF2kduxq4wV/NIAqzACLhIcaLJ4Tr50lCYAls X-Received: by 2002:a50:ed14:0:b0:46b:fb4:6b6f with SMTP id j20-20020a50ed14000000b0046b0fb46b6fmr18484535eds.237.1669886753638; Thu, 01 Dec 2022 01:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886753; cv=none; d=google.com; s=arc-20160816; b=oL6/z/jLXKGxfO2iZCuK/9or1ICm2+9NnzVYoPPmq0QgtWGwLfV91t9y5GylvV/bkc /8FeVt8q9SsDWwsPBZoWxCdPch2Mz3k+bqRyx08tawIKs6xvj4b8YZRLdWKQ3AVMLS+/ 4HO3gNOH+QmL7D9jRxCCnQKhHFoePxCfh2OKFpwoHRy75/A7rHXnkwavlfrZ8sIVc/jD jnpKcUodciZN4F8mQuHaD0O2Y8l7lNZLHFLUt8w7aacuBGDsuw11XLF5U0oAFi3rYJEb 37tqSPHI4Gcowmp0/SE1cYkJS6crCIM5iEQUVN1Hzu8o/8ssaO+FDsP932MKyKtE8KoS ePVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=9cg4h08ScbCmARXEsFqgc8N6O4NbradYeqRREoszyl4=; b=PG0CjagHOTe3+S+d9iV6uipW42J4gnBYS6xktBJkDio1nR5PS4I9BPfKcagQwghGf6 MG3LHO4IOjAkQRLJwnp1EvLN8jEEusC3bghjBSoyPOfkK/PtaPZYcLghb5d3F/GbDCpu /NgIAyIXlOiA7dQ9XTpXdIJxTD537OCeqUR/cFnfW3eU6FT9EsgyttN/gIXrLsi4kCxc iJHfvSSIoMB1Ckr8oTWoX9gruwOgvE/H/pkt9NAoGNtA6arpCqC2YiomK6xBvGDmSeXy 2Qfbz6+IcFfZJzDYdk9x7b7oYUarvnhFRa7fVyhjrQ3PGQ7fAtlQ096n3AJDPKdZ0hYq ANCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=CXkqw4qU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr18-20020a170907721200b007ae24f7774bsi3278364ejc.168.2022.12.01.01.25.29; Thu, 01 Dec 2022 01:25:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=CXkqw4qU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbiLAJWI (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbiLAJWC (ORCPT ); Thu, 1 Dec 2022 04:22:02 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFD886594; Thu, 1 Dec 2022 01:22:00 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id bj12so2656066ejb.13; Thu, 01 Dec 2022 01:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=9cg4h08ScbCmARXEsFqgc8N6O4NbradYeqRREoszyl4=; b=CXkqw4qUp3iF1c/VAFgMXTatfXdqW2qdLv/ri5wf4ff6y/bwMhcPTiZXL1x5LkU5Sz 8Q3mRbIrRA7hlRTEfTFvkSh4JplJO/zNfnMvtjbXrFyqH4PZ7WpFjEnp/GBxXNwUR7GH EkCCEv4ab3AsoRp7+L1ILg70SRjD0TtXIjl5wkVTPpNUj+/yqoDESBjYRocrbG7qVSJg vVJbXbCSMCe9Dao9ZtUScNN9WV/YVzg1l6F9nWke00MhibBosR79feNatjZIYXSi/v24 VFRKQvRE0AS0abToSBRu3BfhJ0c225w/p4IfxWJ5Np67Q38A5aicQ82QiqNr6PElvY6M QySA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9cg4h08ScbCmARXEsFqgc8N6O4NbradYeqRREoszyl4=; b=Da5q08jiLNLYqb879IY42OVVTFOWTfftxLxUBt0ww8WJ9ZAg2vDVWE+9E+rH98cEd+ BCSGHY/t4feOwoVdH3OyAGfD0AKKwSVG6fXBu9uLNmMppCtQl7IvdIjh02Ca5wiMUUEX ib9admM8v6wASoQ7Ef6mKU8H2q8n4UbI2D/eGd5dLuQKORiyqsbkpzb9xYeoL58tFk/D zS5LxhFz71tjanNE18RhXbvDWLZrGYYJqdVfXcpQgoVFmrkflePT/JdMXTh5FI8y5Wt+ c6q13U2JxdLME6MkQmRrDjZC9u+Sx3RxiGLtwaHULLPCDa76ihE6KDCG/xEduA9pj/Xw iWlw== X-Gm-Message-State: ANoB5pnctS+WUx+NBlteVUgRP+KX4KrB28RYSw4VXTaaBooJSJmEFoeJ yjoDSlF1CPXxAtz7VeLsVFU= X-Received: by 2002:a17:906:a418:b0:7a5:e944:9e48 with SMTP id l24-20020a170906a41800b007a5e9449e48mr57172762ejz.109.1669886519485; Thu, 01 Dec 2022 01:21:59 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:21:59 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 1/7] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Thu, 1 Dec 2022 10:21:22 +0100 Message-Id: <20221201092131.62867-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003172341113019?= X-GMAIL-MSGID: =?utf-8?q?1751003172341113019?= Doesn't appear in the TRM I have, but it is used by the downstream galcore driver. Signed-off-by: Tomeu Vizoso Acked-by: Neil Armstrong --- include/dt-bindings/reset/amlogic,meson-g12a-reset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/amlogic,meson-g12a-reset.h b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h index 6d487c5eba2c..45f6b8a951d0 100644 --- a/include/dt-bindings/reset/amlogic,meson-g12a-reset.h +++ b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h @@ -69,7 +69,9 @@ #define RESET_PARSER_FETCH 72 #define RESET_CTL 73 #define RESET_PARSER_TOP 74 -/* 75-77 */ +/* 75 */ +#define RESET_NNA 76 +/* 77 */ #define RESET_DVALIN 78 #define RESET_HDMITX 79 /* 80-95 */ From patchwork Thu Dec 1 09:21:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28264 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160339wrr; Thu, 1 Dec 2022 01:26:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Mhu/lTSOGnrIBXD8pRIbBUu5NqL3JPSfbAIADp7otmoK1tbNZElMDIObWwCDgDi+Ywv1H X-Received: by 2002:a05:6402:100b:b0:461:f1c6:1f22 with SMTP id c11-20020a056402100b00b00461f1c61f22mr45747385edu.95.1669886769593; Thu, 01 Dec 2022 01:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886769; cv=none; d=google.com; s=arc-20160816; b=OIsF2FeezYBLT7/+o5fpYnZezW0w4HrVtsw7JLOQhw/UAVtjfcFS1WXN5NPDehvQkE NNfecKOl/Z6UDIgFNIxox3efAKlD2q5SjNjBkoNRZ35n4BORT+ph1l2aJtcZpsVcJRxy Bsfm+i30hPtbitEXfugmCdHEp/G9ptT+DZ7KbX7oCugf/GQdPrB2ilbS7k0Qhri/kTNJ gVScWuavY/06VGcUhVHxzE13eS6iMM/FBJaRDjSuiZJ2vxRV6+0SQVZQ2elL7gggTACm kKIuFVsuTRDgD363ppn7pPOZhTt4eb2GLrJ2c4xfeLk8TNmXGGVMLP/bBhNKr8oAfjHX qurQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=IIHeFovEuwjGuythdoubrFT/SXANkAJoc/lUtd9ZW10=; b=LvKpmrUTXkdp7fNJgZnkIUNgKG5C49eRkYBiymDy2WiqSywTA1tI7bCrdLX9Vrgpn9 66YLJ9XSRinjUhI/fA642/RDbqgMQu42ciBtkgzEIHm84UB4M98HnfUI9XMK2zKFtQcE v1eXtkrCFcnc+4/AmGl/fDhPmw37xtF4BnsEE57Ebr7/EiSHUUWSF24cNg/CQgKZnemj W4fRp0JvtzNEtjOPwLGaQSuTHae0qDIFyW/7n6J4BSj+jsx8Ny5GSul0Az1B3yMlfoX1 GUfvkIeb9kKKdoPzpPhZMHiweKZDBmg2XJGn2hqcQ/xrKUtiIfOm5V/bNyQleHO341Cx TqFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=T8NMw0au; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a1709065d1400b00791a7e441a3si4038898ejt.459.2022.12.01.01.25.42; Thu, 01 Dec 2022 01:26:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=T8NMw0au; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbiLAJWK (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiLAJWE (ORCPT ); Thu, 1 Dec 2022 04:22:04 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701D585679; Thu, 1 Dec 2022 01:22:03 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id f7so1506026edc.6; Thu, 01 Dec 2022 01:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=IIHeFovEuwjGuythdoubrFT/SXANkAJoc/lUtd9ZW10=; b=T8NMw0auTX3nVwIJOBEXOMKh+uqx8TL/MfgsQaHpXiIPpHbTluYVT5MbwoV+eH/Mwl aqCvSWODpNANYQEcN63jk0hAhV3rHpzhzuEZhLJYxzV3wogr9KE58ZfFLdqTumxU64Ah x4H9WETB8elERPDbGGTVLAbok1wt5d0RWcqQXOs1udLnRqd4lM5q4/Su2WpKE5VP35Cf XZCLXa0N3xi2YEDA/Ep+KNM5t9fSPxhIkOTQH01L2wOo6SVwXctSxX+BtCFPPxA5Cge9 umbox7LujP/qN+0OAsIz5/AU9jGE1SjQhJeHw/WLhEbzpYfWAShi3B5wD02MZTDaQXI5 UVLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IIHeFovEuwjGuythdoubrFT/SXANkAJoc/lUtd9ZW10=; b=5blYqe3G/RcosCvZ32CZEIcCqmzvhVq4rBrH9bxEEmsuT8tF4U9PGc0shRkAiwEpv5 t6RLNiNw//hfFWkD2lwdrvOjZL7i6rj3O66JWJ9PSZ5ski+pZ/yBOOybkV8Z2kYYH8jq 4TbnvleJfEkY1bjR9MoMARknKKtYzQl47UDeXQTRO8f+pnyWmBw5jEh6ZQHz5aP/f48t RjB9zBKQXaa1CcmTqQ/YwuPhZnyVtMmBKAl9gabvFIWgYYRbqz/AyKY2Kc9uYSh6Madq xGBNKo333fsawqgaq8IgriQaD4Q4a3/UpWoA4QkJ8PkLSdfX+0rxc2JMDOi44rEydBw0 w0Ig== X-Gm-Message-State: ANoB5pk0I/PiQG3OJRNmMw52hj4WZw8X+x3Xm/x1BAuMSLcFodD8myMq aKFGeArboMPRQO+hJjqbmxM= X-Received: by 2002:aa7:cad7:0:b0:459:443a:faf4 with SMTP id l23-20020aa7cad7000000b00459443afaf4mr59471545edt.297.1669886521955; Thu, 01 Dec 2022 01:22:01 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:01 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 2/7] dt-bindings: power: Add G12A NNA power domain Date: Thu, 1 Dec 2022 10:21:23 +0100 Message-Id: <20221201092131.62867-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003189208719816?= X-GMAIL-MSGID: =?utf-8?q?1751003189208719816?= Add define for the NNA power domain for the NPU in the G12A. Signed-off-by: Tomeu Vizoso Acked-by: Neil Armstrong --- include/dt-bindings/power/meson-g12a-power.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/power/meson-g12a-power.h b/include/dt-bindings/power/meson-g12a-power.h index bb5e67a842de..93b03bdd60b7 100644 --- a/include/dt-bindings/power/meson-g12a-power.h +++ b/include/dt-bindings/power/meson-g12a-power.h @@ -9,5 +9,6 @@ #define PWRC_G12A_VPU_ID 0 #define PWRC_G12A_ETH_ID 1 +#define PWRC_G12A_NNA_ID 2 #endif From patchwork Thu Dec 1 09:21:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160495wrr; Thu, 1 Dec 2022 01:26:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5r+c95x7dDDzh0nz4WtpcTOoj8ohYYchkD+IYu+zmX5JH1vgyak+h/2s4p4MKeg7Xeg3lO X-Received: by 2002:a17:907:2a10:b0:7a7:9b01:2a6c with SMTP id fd16-20020a1709072a1000b007a79b012a6cmr55486024ejc.153.1669886798973; Thu, 01 Dec 2022 01:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886798; cv=none; d=google.com; s=arc-20160816; b=ePFvZ6X2XeL2435EeXV1RGZMV/ILjK71V883jShpbsH4m9EZosajXOdo8yeaJDsu/a XYvMAdnqhOVMIuRkLwY+m9SH8U4urQKFaNtaVqiV2QtefQtcRPFBHT4Muq6jI4OCkM35 9X9+YpOy0oBKPEqG6KSv9OH2cOpTU6ql5Yln6xkC5s496jfutWOeGXmoPYl+Dt9pt67j VDtqadbmz0nHKdw+Uq0W7bcmiF4r46tKIgVB0GzO60DmVqmNG9724Rd4bJIDsAezzgMu tQSI2jnWnbyyus6kuQmrb2AWAiDTDfIAaay/LaXqVwfg9Y5ezLSKTr2h30i7K78BWuWU xmhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=BfAtN9Z8cVY7QIp+J5qV/dsTS9V5Cc0uAAGNUfNV+tggIj98tvUn3zI1Z+SLt1Hv+Q UxV1uCvee8MrROGmXJvfnML9TbPFn0UOKnDmJ33tIOrwCCsg3ZEhkCT1ZIcDvys8UXV5 eMP0zTpq3W5nvZLkzDCIRspxhnd2/lfDPMVxvsBPSUT7drSy4oyGwT2h6SYTETPaUfgo xLDVp+9NWFABbIT3PNgXiinSG14INRycv2Ui406hgFSRE94Vh3IjOQbE7j4oiyC8MSBI Tyb7caH88wOM/7yz6lbaztxdzAN+ze9o+6M65C/syOJGVUGbsdS0/EPuDTOt9Y8Stj6X 4B6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=VtKXP9Af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a50d746000000b00462e628189asi3212881edj.304.2022.12.01.01.26.05; Thu, 01 Dec 2022 01:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=VtKXP9Af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbiLAJWN (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbiLAJWF (ORCPT ); Thu, 1 Dec 2022 04:22:05 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC2F86594 for ; Thu, 1 Dec 2022 01:22:04 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id o13so2760110ejm.1 for ; Thu, 01 Dec 2022 01:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=VtKXP9AfoQpyEZYYV8RQoSBNAXIYAvwbKi6Yg6Coz0B22h0nwf6cOnNjAiCNC6+8J1 7NolDrEwXwXRx4yAaXXvqvu4wIgZsTZ6gLLbOMAqjbY94rN0zdjIWXsYwnONwGW/NsC/ w2BiyAJVq4d0sjwWQtorKHctehY7vfauDgXs2hBNxAUV8PVaRnzRlqVrq6EGnTfq/vot z8opNiGX6/1bWF+R5skTgx9u1kpkMP54cALtMfMmZFlCymXrysGAOIRICToMQONZs/4l x3ufy1N7+UUN9Y4RraBMyMX+QvO6MiINR/ScMSbAh+mq210eN2ipnUpL/d0hsGL7jsGR QzBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=r3Fdijw5U8NoegtxRC28gjxCs+u7KIE0xtDxZltKfCDkEhEBwR5oTayP3fwKPyN2XA g+Rbxc4HlbnjoNgC6yunAqVOFJH3+FBZzVfnDZQkxL/FB/H4+LbNItTCyp9gFv6hmdtL o3gbg3zLpxRlDhiMk9pKBTMUiKrZcLwzvlfPBphzcQe3wWf91/h7kFk0SlYdWnO6Vxo0 mfrblZw7JRS0lXKlxP9b4MhjdhPbBRxm8sFcrw92qKlgDR6PbDvrqiTCbuJ/FEBXyoBp TmBSuVI5/Cr9kK7Zf/JiR3hlamtaBJyIWpaLdxirgvEmg5wCx0q0Kg3GExOWnauTAdrp 8+xg== X-Gm-Message-State: ANoB5plADgIP43yCn7sjIx6DvyQ4kXq2rGdQfUFrU4JoY3nmjH2qpX6g QchT1zBXrphS2KivG1vcLlg= X-Received: by 2002:a17:906:a387:b0:7bc:2ad:7c1e with SMTP id k7-20020a170906a38700b007bc02ad7c1emr28734923ejz.588.1669886523183; Thu, 01 Dec 2022 01:22:03 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:02 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 3/7] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Thu, 1 Dec 2022 10:21:24 +0100 Message-Id: <20221201092131.62867-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003220394784537?= X-GMAIL-MSGID: =?utf-8?q?1751003220394784537?= Based on power initialization sequence in downstream driver. Signed-off-by: Tomeu Vizoso Reviewed-by: Neil Armstrong --- drivers/soc/amlogic/meson-ee-pwrc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index dd5f2a13ceb5..dfbf0b1c7d29 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -46,6 +46,9 @@ #define HHI_NANOQ_MEM_PD_REG1 (0x47 << 2) #define HHI_VPU_MEM_PD_REG2 (0x4d << 2) +#define G12A_HHI_NANOQ_MEM_PD_REG0 (0x43 << 2) +#define G12A_HHI_NANOQ_MEM_PD_REG1 (0x44 << 2) + struct meson_ee_pwrc; struct meson_ee_pwrc_domain; @@ -106,6 +109,13 @@ static struct meson_ee_pwrc_top_domain sm1_pwrc_usb = SM1_EE_PD(17); static struct meson_ee_pwrc_top_domain sm1_pwrc_pci = SM1_EE_PD(18); static struct meson_ee_pwrc_top_domain sm1_pwrc_ge2d = SM1_EE_PD(19); +static struct meson_ee_pwrc_top_domain g12a_pwrc_nna = { \ + .sleep_reg = GX_AO_RTI_GEN_PWR_SLEEP0, \ + .sleep_mask = BIT(16) | BIT(17), \ + .iso_reg = GX_AO_RTI_GEN_PWR_ISO0, \ + .iso_mask = BIT(16) | BIT(17), \ + }; + /* Memory PD Domains */ #define VPU_MEMPD(__reg) \ @@ -217,6 +227,11 @@ static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_audio[] = { { HHI_AUDIO_MEM_PD_REG0, GENMASK(27, 26) }, }; +static struct meson_ee_pwrc_mem_domain g12a_pwrc_mem_nna[] = { + { G12A_HHI_NANOQ_MEM_PD_REG0, GENMASK(31, 0) }, + { G12A_HHI_NANOQ_MEM_PD_REG1, GENMASK(23, 0) }, +}; + #define VPU_PD(__name, __top_pd, __mem, __is_pwr_off, __resets, __clks) \ { \ .name = __name, \ @@ -253,6 +268,8 @@ static struct meson_ee_pwrc_domain_desc g12a_pwrc_domains[] = { [PWRC_G12A_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, g12a_pwrc_mem_vpu, pwrc_ee_is_powered_off, 11, 2), [PWRC_G12A_ETH_ID] = MEM_PD("ETH", meson_pwrc_mem_eth), + [PWRC_G12A_NNA_ID] = TOP_PD("NNA", &g12a_pwrc_nna, g12a_pwrc_mem_nna, + pwrc_ee_is_powered_off), }; static struct meson_ee_pwrc_domain_desc gxbb_pwrc_domains[] = { From patchwork Thu Dec 1 09:21:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160646wrr; Thu, 1 Dec 2022 01:27:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BZdwK+xrX7fdBSf6eB62F5x7GI3RggKxV0iLv/29PKynl6XWrDmBx0EEwjD45qOmElavg X-Received: by 2002:a17:906:395:b0:7a0:b505:e8fb with SMTP id b21-20020a170906039500b007a0b505e8fbmr10111262eja.281.1669886825445; Thu, 01 Dec 2022 01:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886825; cv=none; d=google.com; s=arc-20160816; b=GTUF6mYRAU1OFxFSulIGaj04d6uIJqI82GN49+N+UrphBZoc5Fhd33pl7rzXcsAyGx ZqinXDOTMqyDllQfQwzFZJU4EhUKibP7yDDU+H13ueqITCAAN8gg/jstGg5ZszcmynFk 5AE3JVRjOuSTeYad0tVIAVfz5L1Uza/WlqxwUjFVapSSJzu5S10wDtkP8k4eXJCktZxo 1vANSjXEq/AVTBoEKvpITmuXc9mSVuKqjBAsqbZFRw/W6gY5selAKu54YViG2Qe/atjB Z2GSVczmPXWlwOHyNaqGrfbF/vJ/BakqR96pyxYZUNuVqaoMhzEgnOpMCDMwW/vQRZM4 HRqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=emFoOM20hOM5X61XhU2Zz+3u4EcYFFGnLjIcqz3xjIc=; b=iPs6x4TDq1ikvkDuaF3aqpQAMRInVRjJPT/ldAZIbFg+3rTQNghD7yDQnAwDhZuEJ5 +f7xKCwMDitW/xbSsltOTOiqhFVGgAaJSQ2V/VvZzPXNGm03dGw6EMF0Bn9HhQ+Pu4Ja JYvLucdu8ItyvcdrN42xHhPpN4QZSJaxbF+/SgrbODoYoRAlKA+LkJ+YHG0btNrHzBWT 1KLO/18XPhTWcQNHrxrBaot9Bku13RuiIjx2GkBhHgkGWkm5Im6yhmmPM6UtX4ImXoE7 rYTJut8czW4ihx4xRJJVWg7hNgJoOX4bj5VDIOqyl4EKOfs+hkDMhnHkD03/S2BboJpq ikYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=eEKedVMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh15-20020a170906a94f00b007a31138203asi2833023ejb.669.2022.12.01.01.26.38; Thu, 01 Dec 2022 01:27:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=eEKedVMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbiLAJWU (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiLAJWJ (ORCPT ); Thu, 1 Dec 2022 04:22:09 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F72C88B75; Thu, 1 Dec 2022 01:22:06 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id n21so2689861ejb.9; Thu, 01 Dec 2022 01:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=emFoOM20hOM5X61XhU2Zz+3u4EcYFFGnLjIcqz3xjIc=; b=eEKedVMqKjYToTnqqxIEak73Wzz7rW0xVExwfxSdUKfxOp8vkH2NxTqrOtIoQLz4F8 9exnW6NsirZrwSTRSfprHwDR5nwlpq0pDtbX1yq8dJmnSnKk/KwnLpBVOSkJTcxo147N WSyq6IUND9gaNMgFQUZqSGL7RikXSjj4WYPm9AtgEMeUD2wgnXFaZCLy2bwodcAmida4 ZsaQTs/81oikt/C+1jx4caWjMSbKOOSdBMb3ToqVHQmwU5UbUaLeMMvlB2IlyaAGUTuF aaDD5i4nFWyynDYWo15p/tdbfOA0xQJush3cXN4PQMqmOX/dO+Am4L7aSZGKcga+SsZC EbvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=emFoOM20hOM5X61XhU2Zz+3u4EcYFFGnLjIcqz3xjIc=; b=gGwhFrMapEKmtwjXbU6kUSJLdNz+hT7wvr8X4o+1ipXxniqWbfm/FAaXKPJVoPMAel EJitaPG+8XBKTR9M/KggjFrU/Twy6AoaXv6pxpwVbOLra3fMsO8oHOPq8jIAZd40DLjy UKyq6gx8X7EbKu26F1oTOwo382OGHvUR7huFpBKk9gwpfHHB8dsv0/JkMii1HPDDoCP1 g5+yvErXRbtK+RsSyzwXzi/4j+NfKxohxr80qWoBWNFk9uU+GmVTmjR0NQE2p5iXbEsX BGCO5tAnY4PZ9HTnOFOectMSog/PdLaA7gBQMcfGRErnaVIS6Hn4qJhKzUmEquAP4NEv UM2g== X-Gm-Message-State: ANoB5pl+0SHNNfBVH+sQsQZeSNc7b6Fu+5BONdMj/crMKatC18WRRoxP wLKW0D58g/XXuiZJKfRfs40= X-Received: by 2002:a17:906:4f0b:b0:78d:aaf9:7b8c with SMTP id t11-20020a1709064f0b00b0078daaf97b8cmr56468241eju.229.1669886524515; Thu, 01 Dec 2022 01:22:04 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:04 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 4/7] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Thu, 1 Dec 2022 10:21:25 +0100 Message-Id: <20221201092131.62867-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003247726682306?= X-GMAIL-MSGID: =?utf-8?q?1751003247726682306?= This "NPU" is very similar to the Vivante GPUs and Etnaviv works well with it with just a few small changes. v2: Add reference to RESET_NNA (Neil) v3: Fix indentation (Neil) Signed-off-by: Tomeu Vizoso Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 11 +++++++++++ .../boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 45947c1031c4..61c8461df614 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -2484,4 +2485,14 @@ xtal: xtal-clk { #clock-cells = <0>; }; + npu: npu@ff100000 { + compatible = "vivante,gc"; + reg = <0x0 0xff100000 0x0 0x20000>; + interrupts = <0 147 4>; + clocks = <&clkc CLKID_NNA_CORE_CLK>, + <&clkc CLKID_NNA_AXI_CLK>; + clock-names = "core", "bus"; + resets = <&reset RESET_NNA>; + power-domains = <&pwrc PWRC_G12A_NNA_ID>; + }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts index 124a80901084..73f3d87dcefd 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts @@ -15,6 +15,10 @@ / { compatible = "khadas,vim3", "amlogic,a311d", "amlogic,g12b"; }; +&npu { + status = "okay"; +}; + /* * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between From patchwork Thu Dec 1 09:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28268 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160905wrr; Thu, 1 Dec 2022 01:27:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OVxRPeGonEwBceTAgI+L3R1YWmTQU1+tdG2Vl0uHKM3WvPozVc1cXoU/MVmsEyhhXgnz2 X-Received: by 2002:a17:906:2481:b0:7b9:a749:e70b with SMTP id e1-20020a170906248100b007b9a749e70bmr33036580ejb.567.1669886870298; Thu, 01 Dec 2022 01:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886870; cv=none; d=google.com; s=arc-20160816; b=WmfGowWVWvIcBZkJGjoJYJT8i+FJQ6DDaJCnlEKnwpmKClH5fKLj/cElCcYgySVuHp L276Pe5SLyReI7ooQSy3stgIgtql6KnG/CCG+Q+oEhavutqTHcTQWfFPwqyJJb9XJTBN ftYKYE+aW471ZP+RyQkxJVZYFavFGfmD55EbknTLKWO6FQbAGSTe7aQ23xeOmvA17nLY 6Q3Rp+UfbWaev8wk+nRkm8lWqeGlD7hzpUSmfmWJO+cxD/Sk/aVYku2OmVvsEC4SlWXe DyZx0oBgfJ2n0mqsAIMg/O+9zBKHC4MXENZABc+rG/DF0RngqBFZgnCjDxDx9zs6ZWUd qYkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=j/wAlj9+lbLEBeIqsdF+yfeUS1s2V84+JTVk1VCdcTE=; b=PGlLBms5cs3NSMSWyWkC0h366WFeLsOQ/D8VDiPnZYuXyQdRBVup/K8WwDJK3O+fLN ga4cUZemCjyUAhJplnX9TdnP1hA+mBrvkumSqk7OFD+dqoUW36YTOb0Gomi7fh2wBnC5 daOhHO8rMWr6ym2ZR73tvPlbdO0XUg0rCwZQN+17s17zpl96qEk5zFp+PimTw4s+Ct25 QdWm/SY5TZUsSxgy1tITwYzOesMo/raUuvhPlgIgeJ4JQvcZe8Hz80MwpnsMuUfWKuUv FSGzIf4aCyg8rIusJzHs6OKfG0ux716EAhmh7L5s0bk9B1T2ZtJZ/FeveBY6jdIrO8rX w24Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=AEJ5Dr7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa37-20020a17090786a500b007bfe5b7feccsi3859349ejc.55.2022.12.01.01.27.27; Thu, 01 Dec 2022 01:27:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=AEJ5Dr7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbiLAJW1 (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbiLAJWJ (ORCPT ); Thu, 1 Dec 2022 04:22:09 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5780889AED for ; Thu, 1 Dec 2022 01:22:07 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id vp12so2696093ejc.8 for ; Thu, 01 Dec 2022 01:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=j/wAlj9+lbLEBeIqsdF+yfeUS1s2V84+JTVk1VCdcTE=; b=AEJ5Dr7zB416GNoTNHNKS9rh5+Y2xhjAKHwoZGCbN23KANzvgKbjQsTMwcHfU9//gc 7eEuqNfoarSzqd6Hub73JzuxHzfZ3zuKU8KbpyRTmxVxZ8jxQLHg56ngi90cCF+1I+IA ETujKamyy5Lki/kXzCCBzo3ZCdibteSRokDjyYZX6sa+sYTcCUzC47vjDpeOoHjJTFgi LldbFFMwGZoiqaX8LPCS0KrhY+dGHtSyCwpi8DfDbiKu4JcKUTRiGGW0qYhoXcVNL1xz C1ymFTKcSVgFRNt9TI20M1niY9gxYghKhHzmRWDYslmPMfNQ9FTKs+DyFqKxnbtnlWCx 997A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=j/wAlj9+lbLEBeIqsdF+yfeUS1s2V84+JTVk1VCdcTE=; b=i0yGl02n6kxRnNhZistUJDyf9h2Cj6zcfTmaJwKUDJTyoiZWzth7ARw70TmvFcgRIi IhrMskPxeGll0wHPE4VivhElr3MhYp/nInN90anjwcVwoRdrpN0IQNAQS96PCD4tuqUY xALGO3DmgUOrHvUls4CzYxU6mvUQhNJkkfn18VcNqyL0YgKvQSA40VbZTa3qGBduUnfQ aVgsH7egVIIEkWuYmUARt4L5o+fxFqH34D/L2ZE8tjfQgXCJ2IibIfwCU0onAb5r27ow P3/p5ybUTVvGY3+4qgNFewxKtKX8qY0gTPnUMctDWwLSaaaI68xi9wW3CAcUs5EAb77k 10bQ== X-Gm-Message-State: ANoB5pkAYrmg0KG5HPzpGSTRdZw/3Qhul7opxDBSZnb1peqF55LyfDww M+wV+NNVdhYhFKa32QbO0yE= X-Received: by 2002:a17:906:1ecf:b0:7ad:902c:d1d6 with SMTP id m15-20020a1709061ecf00b007ad902cd1d6mr43010098ejj.143.1669886525782; Thu, 01 Dec 2022 01:22:05 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:05 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org (moderated list:DRM DRIVERS FOR VIVANTE GPU IP), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR VIVANTE GPU IP), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 5/7] drm/etnaviv: add HWDB entry for VIPNano-QI.7120.0055 Date: Thu, 1 Dec 2022 10:21:26 +0100 Message-Id: <20221201092131.62867-6-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003294878259889?= X-GMAIL-MSGID: =?utf-8?q?1751003294878259889?= This is a compute-only module marketed towards AI and vision acceleration. This particular version can be found on the Amlogic A311D SoC. The feature bits are taken from the Khadas downstream kernel driver 6.4.4.3.310723AAA. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c index f2fc645c7956..3f6fd9a3c088 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c @@ -130,6 +130,37 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .minor_features10 = 0x90044250, .minor_features11 = 0x00000024, }, + { + .model = 0x8000, + .revision = 0x7120, + .product_id = 0x45080009, + .customer_id = 0x88, + .eco_id = 0, + .stream_count = 8, + .register_max = 64, + .thread_count = 256, + .shader_core_count = 1, + .vertex_cache_size = 16, + .vertex_output_buffer_size = 1024, + .pixel_pipes = 1, + .instruction_count = 512, + .num_constants = 320, + .buffer_size = 0, + .varyings_count = 16, + .features = 0xe0287cac, + .minor_features0 = 0xc1799eff, + .minor_features1 = 0xfefbfadb, + .minor_features2 = 0xeb9d6fbf, + .minor_features3 = 0xedfffced, + .minor_features4 = 0xd30dafc7, + .minor_features5 = 0x7b5ac333, + .minor_features6 = 0xfc8ee200, + .minor_features7 = 0x03fffa6f, + .minor_features8 = 0x00fe0ef0, + .minor_features9 = 0x0088003c, + .minor_features10 = 0x108048c0, + .minor_features11 = 0x00000010, + }, }; bool etnaviv_fill_identity_from_hwdb(struct etnaviv_gpu *gpu) From patchwork Thu Dec 1 09:21:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28266 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160569wrr; Thu, 1 Dec 2022 01:26:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VhVbKtPf5NbHkQUf9tJ5V6FIE1NsWZqbraYCa64QHVVb1EKoDYNU5TWadQPdafE/1TRgy X-Received: by 2002:a17:907:a50a:b0:7c0:7902:885f with SMTP id vr10-20020a170907a50a00b007c07902885fmr14416447ejc.233.1669886812992; Thu, 01 Dec 2022 01:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886812; cv=none; d=google.com; s=arc-20160816; b=JXP9vFflMVJ2UT/pGFpdfD5FqcoUEs7CHwKdq40+jFgUyN4tXMIeXmvp+/ZYPyyvpl njQlqnVimxJVn4lvzJkKkJ8eo5aFbLBoa0T8appALCv0ZBRd0RKq0VWm0OGHqJrxIDte SU1mef8PUh8qpAwtX/n3fFtwPMOQtd7PpeuEVlRaMYDYlzMSa40WIaWntS4wSERdPnnp /pyntX94t5pZNirLzS8KLW1PLRB1aP6JwBQcwmWw66iieqP5Nq6UtUhqTlI90prH1K/f qxiztVN9CwR8po4xL685IVrbGHLkQ+NrezeuAxYQuW31Crmn5V/FcEeT6fiGvGwrpgaJ DB2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=ZxpUnfBd0p8vcBE3KJWC/GuBXuBQqcwTN9Z0iX5mpvg=; b=NNHdKv8K485hogluO74rM56a4gy8NDDdScnJfAHnOFd+qRM4eFOTp3IfyIqrEELxix 2pBuG3ClbKHcxSAykbUd9jHp/9wV0JFcfH3pRFPpp21BA7r99zjKcOq3bYP5qzOAtH5l RnOJT5O8hHD4NpxIQ5R1pbdRzML0jv94zNSoaS93BT+U4HxzfznaSZZiCmISN3KFPCDU xm3New3jdNl/ZmOa/dwHUd7Y76kAJZ8YBRJj8yq8zAswhIGpVQ0LNAD7yoBJ/ehaFPqI xH4RfqaRaC1i5+TVmSRZJuSjL5u2pCg20Ge7PNUUJ9iDC7WBp3dq0teSfY3cBRNg6nkO 3UYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="HD5y/WXR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs33-20020a1709073ea100b007a7a3b40920si3804988ejc.995.2022.12.01.01.26.27; Thu, 01 Dec 2022 01:26:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="HD5y/WXR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbiLAJWQ (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbiLAJWK (ORCPT ); Thu, 1 Dec 2022 04:22:10 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FC2A8BD2F for ; Thu, 1 Dec 2022 01:22:08 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id s12so1510278edd.5 for ; Thu, 01 Dec 2022 01:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=ZxpUnfBd0p8vcBE3KJWC/GuBXuBQqcwTN9Z0iX5mpvg=; b=HD5y/WXR910sg83kjV2BWWD+qL/7BH8Xo4u7soFHYUr5CtSS9XJJU6O7ZscoquM91K 6i8CKACWUqe/EphfLVNL2AHfOvDiEB044SEXeiwUHAsO2Jug0lRYot3mwxw96t79SLgK 2iqa6epHYKcFXijhbisR/YZ3N9lhnp//SQWLMlTdL958FSj2WhAvDdmJIWdcfV7iFcP8 tTj8SjoHaM4lifnQ1ICKCqtYfDBJitNjdgyn11dBfVbHqs2Dh+PsU617DNKiLxHj7vXx ASv/A9z6YvKKX9AVQwdse0/25qgPMFHyAACGc+tmr8vfUArHhK+A/P+quLM8po7jBoq3 IwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ZxpUnfBd0p8vcBE3KJWC/GuBXuBQqcwTN9Z0iX5mpvg=; b=qg8cWyBw6w1H+n8AELbl+Yi/BBWRXge4x13PGFL4t5G2vpcEcuMwC+VXDueUcoDzxw MSNPzYhaDjFDqvjl7a1JBvUoUA1sgvDKNJK7anZJlfvbyawlSvWUssveMke82e0vQk3N UM0g0B3ys7edQU2yEB5KCub3O8sUmEPaqOyH1QBIAQuumtinAunNuIicztrZmGgoH1Ye HjwpC3cOHF7WeSHbq4fnRivfAIvKtyyWbATERYwSb8wgM/My9qtdpuDqwV7kWjtqtCKc cx3aiG554kUXNi5vm3UGTArYkfjzZwr9mJxLsk8TwmrYXEgKEyckuztXtmD4yvVvw1iy GihQ== X-Gm-Message-State: ANoB5pmVC7DALDQaXMgXM8iEo7PQfCtdSrneQeyJP02P3vHhcB3brBmi Iainy2QGmpM7S8LkLm+reJw= X-Received: by 2002:aa7:c042:0:b0:462:2f5a:8618 with SMTP id k2-20020aa7c042000000b004622f5a8618mr59546512edo.42.1669886527062; Thu, 01 Dec 2022 01:22:07 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:06 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org (moderated list:DRM DRIVERS FOR VIVANTE GPU IP), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR VIVANTE GPU IP), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 6/7] drm/etnaviv: Add nn_core_count to chip feature struct Date: Thu, 1 Dec 2022 10:21:27 +0100 Message-Id: <20221201092131.62867-7-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003234965687399?= X-GMAIL-MSGID: =?utf-8?q?1751003234965687399?= We will use these for differentiating between GPUs and NPUs, as the downstream driver does. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 3 +++ drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h index 85eddd492774..c8f3ad2031ce 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h @@ -50,6 +50,9 @@ struct etnaviv_chip_identity { /* Number of shader cores. */ u32 shader_core_count; + /* Number of Neural Network cores. */ + u32 nn_core_count; + /* Size of the vertex cache. */ u32 vertex_cache_size; diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c index 3f6fd9a3c088..9fc5223299e4 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c @@ -16,6 +16,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .register_max = 64, .thread_count = 128, .shader_core_count = 1, + .nn_core_count = 0, .vertex_cache_size = 8, .vertex_output_buffer_size = 1024, .pixel_pipes = 1, @@ -47,6 +48,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .register_max = 64, .thread_count = 512, .shader_core_count = 2, + .nn_core_count = 0, .vertex_cache_size = 16, .vertex_output_buffer_size = 1024, .pixel_pipes = 1, @@ -78,6 +80,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .register_max = 64, .thread_count = 512, .shader_core_count = 2, + .nn_core_count = 0, .vertex_cache_size = 16, .vertex_output_buffer_size = 1024, .pixel_pipes = 1, @@ -109,6 +112,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .register_max = 64, .thread_count = 1024, .shader_core_count = 4, + .nn_core_count = 0, .vertex_cache_size = 16, .vertex_output_buffer_size = 1024, .pixel_pipes = 2, @@ -140,6 +144,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .register_max = 64, .thread_count = 256, .shader_core_count = 1, + .nn_core_count = 8, .vertex_cache_size = 16, .vertex_output_buffer_size = 1024, .pixel_pipes = 1, From patchwork Thu Dec 1 09:21:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 28269 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp160975wrr; Thu, 1 Dec 2022 01:28:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7sYy+vTx/8w8CIdyxPrXqZ3to+LB2lNPJKrolJpWHeFtKb85mNpayF5B7Pz10xVsgdthdq X-Received: by 2002:a05:6402:448c:b0:461:7378:3501 with SMTP id er12-20020a056402448c00b0046173783501mr41369475edb.35.1669886885262; Thu, 01 Dec 2022 01:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886885; cv=none; d=google.com; s=arc-20160816; b=vL5hzuNIO/L+r/dxiUBd8BFahTXUClLIUXTvbwrt7UUmKwP6NA+E9KbQjrnMXtE9qH TuJcMtmTPWZFpbnvXVT72r3aqBJI/4DLSwOEvqg2BxGMSTsFSc6fBmLGUFO4+y/myC7a iuXGgvCUWYmiXL4E2Mrx6ORUzLaypqe1cI0hvUIWY7lxjOhoOpmhGSB2ivw9Yc7m6mfj P2XyWAmZ86+rlmNYc16eMPRRGhPE8ltRz9TprUcNfrMEe6TtAyhqMuCccNmbF7oFQANk GPBRc3FaAV4HeIhegSRM564DnV1/siVVBh/moz+9efPAKQq1Y1DRUQHJuudTfUXOu4Zv E3OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from:sender :dkim-signature; bh=NbApf1anPXhkyL1eMhU3x4CauZkX++vBii8PykYLja0=; b=EEcBUmj7Y1718VmMbrYn6sjc3mAvuCgEe9wnRRQqVZCJSlnYLC0gk3kKErZUSggjta tEe/xEMYScgrFkrlSFc4Ce1JynmSQNfYbqL5IiqdsapyPwH/a9OPj1a8agQHH4egfyjC D1X+eOz+Rk2+y5hR0pz/gC9gdEy5NOZjP4cNAUcAJAtsoYqBxCg/imSl6wGmFb96YPI/ f0jWZ5+UFB65mAh2Pe+obsbk3Tjf9G7rNGDkXzpqEIUUBLQJ7rd5WZXzOjewLDsRqHel Gsb0whLhwO1xJoQeHzzuixSIBu4bTvbxAL3yX6CTzdcmrJUMEPaVVf31j91wTofOTEoK sAQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=QZsc+anX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di7-20020a170906730700b007c00323cc16si3620415ejc.973.2022.12.01.01.27.41; Thu, 01 Dec 2022 01:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=QZsc+anX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbiLAJWc (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiLAJWM (ORCPT ); Thu, 1 Dec 2022 04:22:12 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3088886594 for ; Thu, 1 Dec 2022 01:22:10 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id b2so2707012eja.7 for ; Thu, 01 Dec 2022 01:22:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=NbApf1anPXhkyL1eMhU3x4CauZkX++vBii8PykYLja0=; b=QZsc+anXmpwu6POr+6D9Nn9OjPEpMot3211JfomV93JEayXGnUjwqnbnYsuH2EqZ8J 3QXZCMWe/ss5ahcWqWboFLZL3vqDH7B6puPa4VC80uGyOA+XWxAZSpNvpk3nBom9288C +MXcRRHO4kjisktIB490p1q2A9l115vmJMhbwvAeG7wihz8OmuT0nllQW/QTj4LEF9jH IclppEXhs/6UYUPsFSzxNyc5NapjHKT2wg9uAk0fqwtaicRwaXL6M8pXSWYpWnukA9au 4O0yxq1pVanNzhwssbcok9cAVk1PkfZXjBxWXXqq+6AoALKAocWg/5c180e2YCREbuO7 8UpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=NbApf1anPXhkyL1eMhU3x4CauZkX++vBii8PykYLja0=; b=s2yHNUyuwdXiD7HVeGHNFyc6+6rkUdyCNuOc+w7lAew4CVwWBxGaROCdqjO+fPpLUP ziL8CyOzTGsFbIpCyicy0jjNN8INBbc7sUWs/76b58Vtzr4EHix8dI8EN7yQ9Yk+aa99 dpg4Z3mKEhxcnZu8ByOo4KvbmAfcMpzxLJXERu5xfTse/KCZdyLK2DqNnq49hlt+LDrx NpnAVN2PnSqCvjNKdkQCtv1Y2n0NoFRqLnz36Cu8VjmAPz931jslk5Nm/kKqFomaTXDd LSC6CbLpT/w2hywDytFoXB+hWSh4lvzWWM50Myr2zcCoVXwSA/SUVOiqdbm5Tzu9yUs2 dFtw== X-Gm-Message-State: ANoB5pndFdzZHeGyz9oVG4PzaAJSJXiIfCjTXc5S8nbg7jKQY7jvV0D7 qndcXrffIZT6Sy9FaloGiyQ= X-Received: by 2002:a17:907:76e2:b0:7bd:f424:b1da with SMTP id kg2-20020a17090776e200b007bdf424b1damr20991045ejc.306.1669886528176; Thu, 01 Dec 2022 01:22:08 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:07 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org (moderated list:DRM DRIVERS FOR VIVANTE GPU IP), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR VIVANTE GPU IP), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 7/7] drm/etnaviv: Warn when probing on NPUs Date: Thu, 1 Dec 2022 10:21:28 +0100 Message-Id: <20221201092131.62867-8-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751003310349148311?= X-GMAIL-MSGID: =?utf-8?q?1751003310349148311?= Userspace is still not making full use of the hardware, so we don't know yet if changes to the UAPI won't be needed. Warn about it. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 37018bc55810..3cbc82bbf8d4 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -765,6 +765,10 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu) goto fail; } + if (gpu->identity.nn_core_count > 0) + dev_warn(gpu->dev, "etnaviv has been instantiated on a NPU, " + "for which the UAPI is still experimental\n"); + /* Exclude VG cores with FE2.0 */ if (gpu->identity.features & chipFeatures_PIPE_VG && gpu->identity.features & chipFeatures_FE20) {