From patchwork Thu Dec 1 09:21:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 2467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp159907wrr; Thu, 1 Dec 2022 01:24:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf568y9qmz1lY02bsivgSx8DBVP2jbaXJstv0zWrNnuM2h4CYDhoXa0DshgOIUApweJQxehP X-Received: by 2002:a05:6402:4284:b0:461:8156:e0ca with SMTP id g4-20020a056402428400b004618156e0camr4609611edc.271.1669886698505; Thu, 01 Dec 2022 01:24:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669886698; cv=none; d=google.com; s=arc-20160816; b=ObevwjPEHHdlZo9llEGmvVoFSzti2W81KX+glswB3vNHz0AZQ4pWEbXC+BPuedpojZ vEoVC8Mr2f3CQikksV6h+LcG5egiOPrVn9U+oI09ilyHriAkZrr25Y4IRmo9jyB44fY3 2WWjtACTUN61Eevzn6x16KVJ80Epb2QPcg8ueUqQuaXkDJsHM0qYHLlVuMzbvYOQVffb 5QQjOIfoLUtfcbMevnjnSgNoZzziST2ylcoJ3j6HtuGU9+SMRI5ydG0rVtmZpsYkogtj ZbHMdmjrYpZBdO4fDQiQA1IVNMlp21EXF/UwpFeUnQfrsunXUjm1/TnFwl0gGC50m74/ XXcQ== 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 :message-id:date:subject:cc:from:sender:dkim-signature; bh=D4GMG59V6FeZymcJDpr/Ed9DLLQeE59Ry2O920ck0QI=; b=zqnpp01C9v8+Wilxc9nMCrcQWYtMWA5+6vOMWl3ln9o6mdWAVPbLR1lKkZ1G+cq75n 5oPMelyVgceXpS57KpKrrL+izwjMDPuBSfKgNzGLdECDF0PzYOTnvfUJdrJiOYfVffjk evj4Ksn6jyOGyn5/NYDdLqEDeSVj3nPI1KXMEMbk74ejoWgJWDYRKFjSPZnpglmBX8Pc Y6LmVIPnao/Q4f2wjcLY1n20BkmR30/roN2QDk1WF7y7i/CK/S+aTxqaLg9Juhaw9ypW a+JC321a91YbabV+uKnjG5mPF26mFz0B2DyLdNjTMFajLc+qKEM58ZRBEllcf7+D2c3J sEJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=HSmShfYA; 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 tz14-20020a170907c78e00b0078e1d213812si2873288ejc.184.2022.12.01.01.24.35; Thu, 01 Dec 2022 01:24:58 -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=HSmShfYA; 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 S229795AbiLAJWF (ORCPT + 99 others); Thu, 1 Dec 2022 04:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiLAJWB (ORCPT ); Thu, 1 Dec 2022 04:22:01 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD58D85679; Thu, 1 Dec 2022 01:21:59 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id bj12so2655947ejb.13; Thu, 01 Dec 2022 01:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=D4GMG59V6FeZymcJDpr/Ed9DLLQeE59Ry2O920ck0QI=; b=HSmShfYANbJDMjl8pkqcdgD+IxVD2GxDxg+y3Ge4ZK1rg9vO/pdbZeZOZaiFMKkY8O BG1ax4x2uVfk2bcfv0HXXgKiaRThvqzYv5tLa2Tl3vSQR11ZIMwg/0ehIQUB4AISF4sV vc1KJjb4O3Tr98nvcTXzuxr90rYQvX5Iv4MO604v2wjCkIYP9yLtOE7Nomx2klxuT2Pc VDh4Y/s+Si0rd0BVsLXaRHPNc/QMAcZPxwB34bdgfuJaMQbvx8sKk66W4JJpUoc+Drpw 4ubmTbp7/WwT3ESDIUix7rIMNeCm9VqH2jvu7je3HYaPaLVMHOt4h8UgTh3b9i1Ozz4g 4B5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D4GMG59V6FeZymcJDpr/Ed9DLLQeE59Ry2O920ck0QI=; b=wzkHF5oX5hXPasBd4kQSX6lCe0wNkaZb/Ao2R1Ao3k3qd1GuHaGn5rtL+gpKedy+hI Gmbs/i/KpcTwWeeZsQUIFpjMBmZG7RIWBHd9DD3pUB4dBcPQJtlgV+1EzBM7kpr6i7TB O/KOM+HYfiSvbsBJsmA5QUN1MBrwQE9m6ozH9RF8iayEeDtVevV5ONTUv22Er1SCYtMQ Ttnc8uImMyj+EmxGuEsM9EOrHwa+lLa+Oc1PunVIug1jbKSp0EiO3eSs7+VFqtIk58O0 tRP5ObGp204LL1cRsk5j5e4P1TtDo50lY5CII/jsnbm9iMcMOn0TU98L6avow/8EKQ1K tTEA== X-Gm-Message-State: ANoB5pl1SVfufF1VV1r5vYWgigftEfU6c6CS8NllYYttX7lyxi80On9a idvzbBJWZjPGKlTxBtlQAbU= X-Received: by 2002:a17:906:4cc1:b0:7ae:50c6:fd0a with SMTP id q1-20020a1709064cc100b007ae50c6fd0amr21346768ejt.184.1669886518206; Thu, 01 Dec 2022 01:21:58 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:21:57 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: italonicola@collabora.com, Tomeu Vizoso , Christian Gmeiner , Daniel Vetter , David Airlie , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR VIVANTE GPU IP), etnaviv@lists.freedesktop.org (moderated list:DRM DRIVERS FOR VIVANTE GPU IP), Jerome Brunet , Kevin Hilman , Krzysztof Kozlowski , linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list), Lucas Stach , Martin Blumenstingl , Neil Armstrong , Philipp Zabel , Rob Herring , Russell King Subject: [PATCH v4 0/7] Support for the NPU in Vim3 Date: Thu, 1 Dec 2022 10:21:21 +0100 Message-Id: <20221201092131.62867-1-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 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?1751003114256303674?= X-GMAIL-MSGID: =?utf-8?q?1751003114256303674?= Hi, This series adds support for the Verisilicon VIPNano-QI NPU in the A311D as in the VIM3 board. The IP is very closely based on previous Vivante GPUs, so the etnaviv kernel driver works basically unchanged. The userspace part of the driver is being reviewed at: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18986 v2: Move reference to RESET_NNA to npu node (Neil) v3: Fix indentation mistake (Neil) v4: Add warning when etnaviv probes on a NPU Regards, Tomeu Tomeu Vizoso (7): dt-bindings: reset: meson-g12a: Add missing NNA reset dt-bindings: power: Add G12A NNA power domain soc: amlogic: meson-pwrc: Add NNA power domain for A311D arm64: dts: Add DT node for the VIPNano-QI on the A311D drm/etnaviv: add HWDB entry for VIPNano-QI.7120.0055 drm/etnaviv: Add nn_core_count to chip feature struct drm/etnaviv: Warn when probing on NPUs .../boot/dts/amlogic/meson-g12-common.dtsi | 11 ++++++ .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 4 +++ drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 +++ drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 3 ++ drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 36 +++++++++++++++++++ drivers/soc/amlogic/meson-ee-pwrc.c | 17 +++++++++ include/dt-bindings/power/meson-g12a-power.h | 1 + .../reset/amlogic,meson-g12a-reset.h | 4 ++- 8 files changed, 79 insertions(+), 1 deletion(-)