From patchwork Fri Nov 25 11:19:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 25938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3940305wrr; Fri, 25 Nov 2022 03:26:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DheTEZzJYbyinzr1HSiRKTs1NIbuQlND36nWXghtrwxPEdo89vPrt9uWRM/SLjQJDb2rD X-Received: by 2002:a05:6402:3785:b0:461:e598:e0bb with SMTP id et5-20020a056402378500b00461e598e0bbmr34899457edb.21.1669375611273; Fri, 25 Nov 2022 03:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669375611; cv=none; d=google.com; s=arc-20160816; b=wk01S2VOX9mtM91hi/dAhi1nSixUBDICCHUjavWrAdf8DQ6TU8YxiPIc29STduOeix o0xGgS5F0XiZ2bEwNbLva8TvBy8kwSTMFNVcJtMCG4NlBpP9jKz+pN+wdmiU1wC3/I0c 5MLJ410h4aIMQCMbmIn2mq/bAd0gqbFbpq3/UUQEpThYTF8KlLF7x/UMrm6dgwkWGiCH Adt74ewUWmsgjQ+34S68R1Y4O39cEjv2VmpiubGWUc0YT1Kw4iqF4Qf/1XM4EVZcSuGM ok0CAHy0Wptekdxkn5NwFEFsVlX/x5fA1MjApkuEzB31YJvJQO6Uvow/myXqasx4GWhV XEhQ== 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=y55T3XcvqjsoZQC7fSt/fQ7AH8JLb51GJEuqjrk1Z+BVcV43uzfFVPBsW9AlpAr1VH 3CKXaXkIyx9kBtDzKYV/4nvLeM7eE0AnqIXYVWYjgNSaSfrEiJkJvN/biitckf9T4dli HgMr6brbSiKaQy/NErQkmgl6VJk9L98nLpYwMrDJbN3Kqf9pYIoJ/gNiuB8g9VnFlrLS WrFnJ2NZ8EcP1KWfaQreZ0jxvPdLn7Vp9XKa6JKr0KLmjTQSalq8EDmrFkAx8roezn7/ HgGkRd0C3TlxSjgwNnU3Oi6eh0M65sn30ciOevclyyY8n9gwVrX26Sz9UKeaIP46/NCE p0JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=Q67PhOoP; 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 wz7-20020a170906fe4700b00770534b5a71si2330306ejb.858.2022.11.25.03.26.27; Fri, 25 Nov 2022 03:26:51 -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=Q67PhOoP; 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 S230074AbiKYLUC (ORCPT + 99 others); Fri, 25 Nov 2022 06:20:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiKYLTu (ORCPT ); Fri, 25 Nov 2022 06:19:50 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90EE42936B for ; Fri, 25 Nov 2022 03:19:48 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id s5so6304872wru.1 for ; Fri, 25 Nov 2022 03:19:48 -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=Q67PhOoPndCW0Ur1I4yEyXtV4bG9hnF8ZFZhsbiWnN6QRVw7MJRorO/s2l05wgYoXC 5+oumRoP2SxEVQBrgGblHyNxtrSSX7HXHOU2GfMSYbIKplAnchCWiLMDigQRJwsxqj+P doALLtIgkISCNPoju1ONitsepzU/n7ZqyZTJp4M9YHbW1u5t1GLvnvbAxTspHE5HgArW 9v4I3j5F6ktF8IYtwVMgC16QrZNSK8z2RGQ/jyex7CElzFweOWjnYRtQHkj3DGqPAGev LPLxg9AZ1Y+Mm0IUeAE7RWPZbqCdaqQl6SGn/Si2uTDAkB1ZOl2NlDB6K2jVwI9v9yqH x3Kw== 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=LZxJx+kzw53P8kdNpI++aK0a+Evpi9N3qbsW/k1LceZ6mwfgl02xjO4OXNEZ7g10fI VSUXK7jCxpGgvLakifiqs+XXPDk05I+Le/2G2bslrEXuf7DyxfHtN00vgExQzKverFV9 PoJ8aio804xfdbZe4bdc3hxCmV12+nurezYvJCdsdIYity7ZWp10X6fKFJQpFOet25Q9 M1zewjUsmQv31r+MiZY7E7AMGFbNrm9q674bX0JV8C3SEUBltSJFrq3ct2ldN5/E58SK mD8WFtMMVH4un8W9Iq7POCcmdXGOuARd3ozHVrpKS4yGvWmVb4ADNt3xCaIeiwSG6DB2 nlrg== X-Gm-Message-State: ANoB5pl27osSQZuOz2T27EWqNuMven3u73cCxAEKj35wSX0RvMxH2Kn3 30eejkqxNcSY9n16sW1YCQI= X-Received: by 2002:adf:fb0e:0:b0:241:87cb:6e0c with SMTP id c14-20020adffb0e000000b0024187cb6e0cmr12875298wrr.166.1669375187088; Fri, 25 Nov 2022 03:19:47 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:46 -0800 (PST) Sender: Tomeu Vizoso From: Tomeu Vizoso Cc: 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 6/6] drm/etnaviv: add HWDB entry for VIPNano-QI.7120.0055 Date: Fri, 25 Nov 2022 12:19:19 +0100 Message-Id: <20221125111921.37261-7-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 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?1750467200751580170?= X-GMAIL-MSGID: =?utf-8?q?1750467200751580170?= 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)