From patchwork Thu Jan 2 10:02:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315503 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 6D1F6138C for ; Thu, 2 Jan 2020 10:02:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 4B0EA21655 for ; Thu, 2 Jan 2020 10:02:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kYIlB2L1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B0EA21655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 90E8789F41; Thu, 2 Jan 2020 10:02:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id A2A3189F1B; Thu, 2 Jan 2020 10:02:42 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id y11so38680191wrt.6; Thu, 02 Jan 2020 02:02:42 -0800 (PST) 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=SOmEZGQpMcpl6KDihwRiQnkiTEmQlzVwGvhf3uAJ7uE=; b=kYIlB2L1AxKKkqLfBBz2x5NEXeyGbYVvjEsE/WcP7lMpZBOsx0l01OwK8lT/Z7XPS+ oD8ccvAUl89UzYzrIWEXEkaJQfXjz7fsdfDWYaW/E8EFJFYfSQVqDpuuPMfenpoCJyJR 4HIyY+CbbCsCDfI9eaWz0+SdEaB4WqkSYV6DFPRmdtkCkdl/UBRUbgrBAMXvnCJYGaGH jo9a95uXs++xqcqLoRFdF+rtLzT8AcfJaYeeSc/aZgGmzuJ9XLP4jfszbtHxHE737hMT oHeijPGP64v3QxJ5cf1sM8Eg0X/uO4Pjvp1isYys8ioG0EXlovPbj/dnh8+UABehzH97 lWGA== 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=SOmEZGQpMcpl6KDihwRiQnkiTEmQlzVwGvhf3uAJ7uE=; b=oML5gG+O+SPKxtWUxht1RHPs3yfaMz9fh/WxYpAZVLgI7SEauysDJmbFa1MkY6RXn1 jdqu6whgYxQZbjqPbRqphSHyW+UYttyxEEZ/fk84DPuSIP+WZ2dzGMIwjd2dMyG6xC9s AXciJuSzVIrbev51pUKMud37MMpvlqDIEyMsSuMh3QNoLx+ll4HcgJFB4/zZrH31GRZj hSs8AYDy6uLuvYzptoX7aWt+ES7fzW24MwVWiWr9++G0w42d5oJI7ALg8ydJlmANgQQu IRGZcU1/2Lxk3AtI07n9hr5lFl+ZHNVMrRZ4u/vxsAgHcuP5xspHOuZAzoCxlGuXiedG vq9Q== X-Gm-Message-State: APjAAAVbnwwMYEGa6wc32TxyfD6f9grF6PIQ8HDkKV4Dy0tM3Mrh5ivH iXgjRGTqI8sORpvYxtmMPlI= X-Google-Smtp-Source: APXvYqwxYJmjv+yPpKU1P3aQMjg8T96/q5DtGgvd/OuF0sZ3+bV9YgZGwNK+dOc207nRprf53055HA== X-Received: by 2002:adf:e6d2:: with SMTP id y18mr84427045wrm.262.1577959361310; Thu, 02 Jan 2020 02:02:41 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:40 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 1/6] drm/etnaviv: update hardware headers from rnndb Date: Thu, 2 Jan 2020 11:02:15 +0100 Message-Id: <20200102100230.420009-2-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Update the state HI header from rnndb commit 7f1ce75 ("rnndb: document some GPU identity register") Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/state_hi.xml.h | 29 ++++++++++++++++---------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/state_hi.xml.h b/drivers/gpu/drm/etnaviv/state_hi.xml.h index 41d8da2b6f4f..004d8ddacf6a 100644 --- a/drivers/gpu/drm/etnaviv/state_hi.xml.h +++ b/drivers/gpu/drm/etnaviv/state_hi.xml.h @@ -8,17 +8,17 @@ This file was generated by the rules-ng-ng headergen tool in this git repository git clone git://0x04.net/rules-ng-ng The rules-ng-ng source files this header was generated from are: -- state.xml ( 26087 bytes, from 2017-12-18 16:51:59) -- common.xml ( 35468 bytes, from 2018-01-22 13:48:54) -- common_3d.xml ( 14615 bytes, from 2017-12-18 16:51:59) -- state_hi.xml ( 30232 bytes, from 2018-02-15 15:48:01) -- copyright.xml ( 1597 bytes, from 2016-12-08 16:37:56) -- state_2d.xml ( 51552 bytes, from 2016-12-08 16:37:56) -- state_3d.xml ( 79992 bytes, from 2017-12-18 16:51:59) -- state_blt.xml ( 13405 bytes, from 2017-12-18 16:51:59) -- state_vg.xml ( 5975 bytes, from 2016-12-08 16:37:56) - -Copyright (C) 2012-2018 by the following authors: +- state.xml ( 26666 bytes, from 2019-12-20 21:20:35) +- common.xml ( 35468 bytes, from 2018-02-10 13:09:26) +- common_3d.xml ( 15058 bytes, from 2019-12-28 20:02:03) +- state_hi.xml ( 30552 bytes, from 2019-12-28 20:02:48) +- copyright.xml ( 1597 bytes, from 2018-02-10 13:09:26) +- state_2d.xml ( 51552 bytes, from 2018-02-10 13:09:26) +- state_3d.xml ( 83098 bytes, from 2019-12-28 20:02:03) +- state_blt.xml ( 14252 bytes, from 2019-10-20 19:59:15) +- state_vg.xml ( 5975 bytes, from 2018-02-10 13:09:26) + +Copyright (C) 2012-2019 by the following authors: - Wladimir J. van der Laan - Christian Gmeiner - Lucas Stach @@ -48,6 +48,9 @@ DEALINGS IN THE SOFTWARE. #define MMU_EXCEPTION_SLAVE_NOT_PRESENT 0x00000001 #define MMU_EXCEPTION_PAGE_NOT_PRESENT 0x00000002 #define MMU_EXCEPTION_WRITE_VIOLATION 0x00000003 +#define MMU_EXCEPTION_OUT_OF_BOUND 0x00000004 +#define MMU_EXCEPTION_READ_SECURITY_VIOLATION 0x00000005 +#define MMU_EXCEPTION_WRITE_SECURITY_VIOLATION 0x00000006 #define VIVS_HI 0x00000000 #define VIVS_HI_CLOCK_CONTROL 0x00000000 @@ -140,6 +143,8 @@ DEALINGS IN THE SOFTWARE. #define VIVS_HI_CHIP_TIME 0x0000002c +#define VIVS_HI_CHIP_CUSTOMER_ID 0x00000030 + #define VIVS_HI_CHIP_MINOR_FEATURE_0 0x00000034 #define VIVS_HI_CACHE_CONTROL 0x00000038 @@ -237,6 +242,8 @@ DEALINGS IN THE SOFTWARE. #define VIVS_HI_BLT_INTR 0x000000d4 +#define VIVS_HI_CHIP_ECO_ID 0x000000e8 + #define VIVS_HI_AUXBIT 0x000000ec #define VIVS_PM 0x00000000 From patchwork Thu Jan 2 10:02:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315505 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 0138E138C for ; Thu, 2 Jan 2020 10:02:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D2E2121655 for ; Thu, 2 Jan 2020 10:02:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TJXleVLo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2E2121655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C73989F6B; Thu, 2 Jan 2020 10:02:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8768189F69; Thu, 2 Jan 2020 10:02:47 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id j26so40151235ljc.12; Thu, 02 Jan 2020 02:02:47 -0800 (PST) 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=vckSF9hpY/qz2kAzKmxateqNX/b2XwGcAzaPFz9WQdQ=; b=TJXleVLoHctBPaOFvOv6CBlbQzySi93ukWOTrbxAnVszwNIKvekkBg0kLqA/Up4QDV IXsPkEGu47pYf0YNuo6sxMZykuzzD5jaPAc8BuPdywUUNDWetq9pikeV3j5nRpZMqwAX xswDDZ+yBQuWLPOBjfrVlJRpNnWGck36vEQS9YHyPDKf1Il+KT08+InDmRVeaKayFOFX I9D05hcO10SbgtwKWh2RJQ5zuLfxZRdnIzR+jGy36CzzKWW76052OdreLrtr3rmRCwGZ dGecClihocL73d3Zv2bGBYerkBDXwsQMFwK2+R0YrQpXkwzpJhVhmZSJRJNVUqoxfq5D lzPA== 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=vckSF9hpY/qz2kAzKmxateqNX/b2XwGcAzaPFz9WQdQ=; b=ZoW+t1aVd/hDrU3UxMI4P7W27qt35CB/+tXNWgichD8HeJkCxafLGYGW851Hv/7FEt E+kjCdXkcitWm8EV9tf4BMMqQ4e1eAx7IhFKaBtdALwJBSvNvzptvR0zOd3Gih5zGP70 tl71OFDKGkPI5GkbQAztdX9ZDG/TANXincNh7MwdB47KHk1EoZGHH3IAySquUqJikSw8 WS7aNSFGu2dSEmi14PbtFKGxAqkoJlIwvFwM2dkjvrkZSr+v4dCD5Vx7VWAH9NLH9DrQ 89U2vdsyEsnyjwfw4quFDlTfWsKv1bfZhwNlFev3EJXYIu6F7O86Ka5E9O92PAkxl18E Kj6Q== X-Gm-Message-State: APjAAAWn9crOeoK4DsETsEB8A85irqNipUu13KVzTO+Z0CT6fvLf7ZYp lfEOM6moOe3eHa86QJ+/RdrY18edxqE= X-Google-Smtp-Source: APXvYqy+OuS6PLVs/lm3LeFD0O7BF2v4S4kgM9bCjj1OccQ6dLHnyBdURAmyaNC9b1jbGsueQxOG3Q== X-Received: by 2002:adf:df90:: with SMTP id z16mr86769792wrl.273.1577959364963; Thu, 02 Jan 2020 02:02:44 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:44 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 2/6] drm/etnaviv: determine product, customer and eco id Date: Thu, 2 Jan 2020 11:02:16 +0100 Message-Id: <20200102100230.420009-3-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" They will be used for extended HWDB support. The eco id logic was taken from galcore kernel driver sources. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 17 +++++++++++++++++ drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index d47d1a8e0219..253301be9e95 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -321,6 +321,18 @@ static void etnaviv_hw_specs(struct etnaviv_gpu *gpu) gpu->identity.varyings_count -= 1; } +static void etnaviv_hw_eco_id(struct etnaviv_gpu *gpu) +{ + const u32 chipDate = gpu_read(gpu, VIVS_HI_CHIP_DATE); + gpu->identity.eco_id = gpu_read(gpu, VIVS_HI_CHIP_ECO_ID); + + if (etnaviv_is_model_rev(gpu, GC1000, 0x5037) && (chipDate == 0x20120617)) + gpu->identity.eco_id = 1; + + if (etnaviv_is_model_rev(gpu, GC320, 0x5303) && (chipDate == 0x20140511)) + gpu->identity.eco_id = 1; +} + static void etnaviv_hw_identify(struct etnaviv_gpu *gpu) { u32 chipIdentity; @@ -362,6 +374,8 @@ static void etnaviv_hw_identify(struct etnaviv_gpu *gpu) } } + gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); + /* * NXP likes to call the GPU on the i.MX6QP GC2000+, but in * reality it's just a re-branded GC3000. We can identify this @@ -375,6 +389,9 @@ static void etnaviv_hw_identify(struct etnaviv_gpu *gpu) } } + etnaviv_hw_eco_id(gpu); + gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); + dev_info(gpu->dev, "model: GC%x, revision: %x\n", gpu->identity.model, gpu->identity.revision); diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h index 8f9bd4edc96a..68bd966e3916 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h @@ -15,11 +15,11 @@ struct etnaviv_gem_submit; struct etnaviv_vram_mapping; struct etnaviv_chip_identity { - /* Chip model. */ u32 model; - - /* Revision value.*/ u32 revision; + u32 product_id; + u32 customer_id; + u32 eco_id; /* Supported feature fields. */ u32 features; From patchwork Thu Jan 2 10:02:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315507 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 3D0B5138C for ; Thu, 2 Jan 2020 10:02:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 1ABB621655 for ; Thu, 2 Jan 2020 10:02:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jgLF3vSi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1ABB621655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AE94089FCC; Thu, 2 Jan 2020 10:02:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id D794689F6B; Thu, 2 Jan 2020 10:02:48 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id g17so38673632wro.2; Thu, 02 Jan 2020 02:02:48 -0800 (PST) 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=er9/v9hYbfqIgu2voF735eSDEeNVgwGUORwc3VQPHA8=; b=jgLF3vSim1KrWRJOj4EfWsQqcPwmV0YZhC9zhHKWrNIZw48tFMCHKbi94hebV0Mhkb OjFxxXO2mHT75XsQ6Edjl3la2rofkgQmByIZK6MbEU4CWfQ+5YVOE+BYP5DNAjnDTyR6 WJwJjwzYj6vFm/2avoicIS2UYt/ahARybLBg6x0OgKtUxTUWQrcKvF8EUMhjqD8QvX14 WFEzOROS17m4l1C4Nhx778xYd38VpS/eAicGEA9Udn++xI68g/9UfbnTpy2X5ieQY9uW lWoU983NrWn5s5Q4xER5m99DTNrr8HrbW/HLkt9/7BWmDWGrRqkjOxFoIIYinyDtzk8O cx8A== 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=er9/v9hYbfqIgu2voF735eSDEeNVgwGUORwc3VQPHA8=; b=ZdCNs0NAuxYJWBrgCWzus9phogI1qLpYXCo2x+HqKG8X7ZbLT8uzq2Gq8F5Hznplo+ jiHqftInjwfQc4ysXuG8gUE9hW5AkY6we1XOre9X0QxUFwHnSl25ObKYY2YyUKnC6B4z oN6st6ziJQNMtMxPMn1edHC+6au+PZ6X40C1Fbh/FQfPSDxzWB1lP60xvl7qSZuuy91K 4iaJ7RrB+sKWsRaeobXzTowmBi1tIXAU0vJfSV2RtrQ/0KRiX0/JgXTAIfNgYxxEWxil k2aX4h5fStkcpvRcIhGDwBSxUTiwL4HZ1qT2BDRF/ojU31DIzVQewjf4RuxOwYWV2yCY fcfg== X-Gm-Message-State: APjAAAWX8Ufi6HmnHU/bgATaWT/oJDM+jcFLRQz5iQ6lB9QqpKN30OFF 186wKn1r91cr/k9HfMUvCc8= X-Google-Smtp-Source: APXvYqxBt6oHDq9LLKZN2xnzF2RUfaONzQj75vvMhHVT7sEcmHf2BmDO0H8AfCt2i0o6w7vlkaMvww== X-Received: by 2002:adf:fd43:: with SMTP id h3mr44281177wrs.169.1577959367619; Thu, 02 Jan 2020 02:02:47 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:46 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 3/6] drm/etnaviv: show identity information in debugfs Date: Thu, 2 Jan 2020 11:02:17 +0100 Message-Id: <20200102100230.420009-4-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 253301be9e95..cecef5034db1 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -868,6 +868,18 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m) verify_dma(gpu, &debug); + seq_puts(m, "\tidentity\n"); + seq_printf(m, "\t model: 0x%x\n", + gpu->identity.model); + seq_printf(m, "\t revision: 0x%x\n", + gpu->identity.revision); + seq_printf(m, "\t product_id: 0x%x\n", + gpu->identity.product_id); + seq_printf(m, "\t customer_id: 0x%x\n", + gpu->identity.customer_id); + seq_printf(m, "\t eco_id: 0x%x\n", + gpu->identity.eco_id); + seq_puts(m, "\tfeatures\n"); seq_printf(m, "\t major_features: 0x%08x\n", gpu->identity.features); From patchwork Thu Jan 2 10:02:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315509 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 3E4FB1395 for ; Thu, 2 Jan 2020 10:02:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 1C7EB21655 for ; Thu, 2 Jan 2020 10:02:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XUFS/11/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C7EB21655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F9F289FEA; Thu, 2 Jan 2020 10:02:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41F7889FEA; Thu, 2 Jan 2020 10:02:52 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id p17so5165751wma.1; Thu, 02 Jan 2020 02:02:52 -0800 (PST) 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=zpVrjWu9aDwxR+gFK4Bj/HRMRoCvr4WMHyXpeXsUZuI=; b=XUFS/11/wVNM+/r+f1Vd8xJZWbXqdYDFXoUsCi/mHVhJ2kU96cF9Z0riPvkbtgPWj3 0lH9gaoXnNQ+wnIlKP/y9N9hcGkLde/8gYk8ikvBA52s4eWyoYK1Eb0UwgfWWvhblYhS DVXdgr17dnovrWtGu2yUIjWMhenQkIXA+/K5JkEPuEho7KHrCuz5DO/pE8Q79PTdBcZv xX4fKjNTMU7J4Z5fpB/8XQL1AoV97PNicKaDlNji5EGPFTgEOwEOxAevUoLrfBfixvdk LvVWWDWgAD+hP3sn/TWVT+Bqd1V1Ns/J92em8pAuluCRSxc91RLuvdrZoFpAVv13Vo2L bq/g== 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=zpVrjWu9aDwxR+gFK4Bj/HRMRoCvr4WMHyXpeXsUZuI=; b=SyOVuE0osZynPeDRxgE6Xzx2T0hMK0rzm4MEDqxFwx9yjVhNyuxTMQ82McHBcklRpU wnRSl3mwEtTD5KigiQdzVfwNFWvUBVZokN9yHLloOMH9ZlM0vJBBB23vZnQWyK7594DO WutJcpMf+Dt/RXhPQ6Q+HfYfS4MltPcDhEulKNgzOVZdYfPe7lVMSMWMBVCaK4oiX5pd jasIYbhs/FfcQhlUHxCdocVegRCzyzB4g7IOXXDgSGs/ZdttjGaFg0N5wqDPYyosvVwn yDpszVje23gHaybex2iifEu7XVEyEea0hDP0Q4QpzdWFPW/5LAsZ0l14ipvw3/Swb92/ v6tw== X-Gm-Message-State: APjAAAUWXK/pdNXFzXvpeQPcQS8oanFNyBOT6lcRM7XgOp1Dr0fsqTyc Q88lR2E1wxoZCCV97jsm3nk= X-Google-Smtp-Source: APXvYqylD8GwBP3d6yFUKkkJNL3QNwwyoYcJUzEPpB2RvAj973nYeo/AuM9KHExhcF+1SgfwUwNTwQ== X-Received: by 2002:a1c:5f41:: with SMTP id t62mr14472812wmb.42.1577959370957; Thu, 02 Jan 2020 02:02:50 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:50 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 4/6] drm/etnaviv: update gc7000 chip identity entry Date: Thu, 2 Jan 2020 11:02:18 +0100 Message-Id: <20200102100230.420009-5-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use ~0U as marker for 'I do not care'. I am not sure what GC7000 based devices are in the wild and I do not want to break them. In the near future we should extend the hwdb. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c index 39b463db76c9..eb0f3eb87ced 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c @@ -9,6 +9,9 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { { .model = 0x7000, .revision = 0x6214, + .product_id = ~0U, + .customer_id = ~0U, + .eco_id = ~0U, .stream_count = 16, .register_max = 64, .thread_count = 1024, From patchwork Thu Jan 2 10:02:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315511 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 5916D1395 for ; Thu, 2 Jan 2020 10:02:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 377E821655 for ; Thu, 2 Jan 2020 10:02:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YATk5J7g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 377E821655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A6346E02C; Thu, 2 Jan 2020 10:02:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE1F36E02C; Thu, 2 Jan 2020 10:02:54 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id b19so5096151wmj.4; Thu, 02 Jan 2020 02:02:54 -0800 (PST) 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=De6Z7XlByT/3y43y8ANqlsh9lPr7hWe/7UFt2ZwYqp4=; b=YATk5J7gbPl8aSHbGfbKvNtScL1wLi/SmbrgwfdHCFO53alDDQe6bpj3xhOaiw54fP iWW9bxSoChvzWwHweh5nzSHbxJgsfCG0909tt9AnIoMXLWdAM2CGWF1ecM/aPmDuSqYM rl3DXWMbMvWGmE/FMRzDroXXn9hHtgb9+eJITdbEAxviCn/m6LZ3q2Ot1ic3yY7pVkRF 6xoeoOVc7ZzSRiVrGPy5GpRVGdEYiRVxJzCd2eBa/HAn/EUmoTUHOGryhojEwDjlrL9R Uen6nPmMmoLFIX4rDo2Gchm1gaYURR3k71bqDsAb4lc+4CZ/R9S7LnW6HDFuvBznZ0tw jk8Q== 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=De6Z7XlByT/3y43y8ANqlsh9lPr7hWe/7UFt2ZwYqp4=; b=frFIBvzVAjvVTFy/faEJCGGx1gBX7wnXtNlhAHLAPDa7SLNOruagSAR+/tXpnHl5X9 E9lPFiS/83OVr+h3mVIPks2dyt424u7TftDGm7geh98rpnkIhUcgruKLrc3HtyN3PWni zSJCxyNRPGgLF8lnCoXUbWadKw5+xydvxvULXPIKuXwaMTCLEe29+qVUK+qlWjmqKAHq na5YsviGEKzvhImf9XUay5ipjVHKWkaLrjGzmd7dwzFsUrQeZDH0XboyhAxL8Xesy6S7 IDyld2kGS48hn7Fycn9J+lsN6KDkLdNbz849E+LkL741X/Q4s5+rI0TpjgrxBMTr3gmC Xa0g== X-Gm-Message-State: APjAAAWcYlA/C246C1vtMLK1OKSfaWpsH4TWyJ/3aE44AcG+JuzXnIft HOR9L6CnwUd2pTRA+47F0NA= X-Google-Smtp-Source: APXvYqywYgY1OpijhABjU9VkAhd9hds5Pl2h/firY7w1mQDLa1s7CITtTjAt+znNZtG0BnLfCiA0pw== X-Received: by 2002:a05:600c:2318:: with SMTP id 24mr13403333wmo.48.1577959373515; Thu, 02 Jan 2020 02:02:53 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:52 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 5/6] drm/etnaviv: update hwdb selection logic Date: Thu, 2 Jan 2020 11:02:19 +0100 Message-Id: <20200102100230.420009-6-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Take product id, customer id and eco id into account. If that delivers no match try a search for model and revision. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c index eb0f3eb87ced..d1744f1b44b1 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c @@ -44,9 +44,26 @@ bool etnaviv_fill_identity_from_hwdb(struct etnaviv_gpu *gpu) struct etnaviv_chip_identity *ident = &gpu->identity; int i; + /* accurate match */ for (i = 0; i < ARRAY_SIZE(etnaviv_chip_identities); i++) { if (etnaviv_chip_identities[i].model == ident->model && - etnaviv_chip_identities[i].revision == ident->revision) { + etnaviv_chip_identities[i].revision == ident->revision && + etnaviv_chip_identities[i].product_id == ident->product_id && + etnaviv_chip_identities[i].customer_id == ident->customer_id && + etnaviv_chip_identities[i].eco_id == ident->eco_id) { + memcpy(ident, &etnaviv_chip_identities[i], + sizeof(*ident)); + return true; + } + } + + /* match based only on model and revision */ + for (i = 0; i < ARRAY_SIZE(etnaviv_chip_identities); i++) { + if (etnaviv_chip_identities[i].model == ident->model && + etnaviv_chip_identities[i].revision == ident->revision && + etnaviv_chip_identities[i].product_id == ~0U && + etnaviv_chip_identities[i].customer_id == ~0U && + etnaviv_chip_identities[i].eco_id == ~0U) { memcpy(ident, &etnaviv_chip_identities[i], sizeof(*ident)); return true; From patchwork Thu Jan 2 10:02:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11315513 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 8FDC3138C for ; Thu, 2 Jan 2020 10:03:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 6CCF721835 for ; Thu, 2 Jan 2020 10:03:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U7I8i4xe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CCF721835 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C3D96E02F; Thu, 2 Jan 2020 10:02:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 692F76E02F; Thu, 2 Jan 2020 10:02:58 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id z7so38615852wrl.13; Thu, 02 Jan 2020 02:02:58 -0800 (PST) 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=/h6NXyD6aVKL5bx8Xk7zLnuH4ugoW90Sl0nahNHK5jE=; b=U7I8i4xeYif2uypX4KDfROp0j+MUuq0bTvsx90CwzEy0ej2aUbqTEzGTDGoDoD1lMl EEnplWcR3tc6csYkgiVANSuMEQfq1kG4GbnD2/dagsGEVaOrcAkj5ZJ6E6GwL9xeW6k/ Uk13PISUdBZjY57xpw9gNHeTnZ5hzRWLqb9KbOKtz9iV+I8Uren4+8xzmr39BHHt6/uC IJpRohJROAaQGvSBADPoUyyjfkO4A+BxMPCuWTc8I/nr2cj5v6Lo7LeIRDuCq4zLH5hR 26om24StYh/dVw2/hjo1FHaDkKpNAhOKsIDXgRS1DIsKTw4F9uXApP9x/WO2YO96BHQF oOmQ== 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=/h6NXyD6aVKL5bx8Xk7zLnuH4ugoW90Sl0nahNHK5jE=; b=NQQKgmY3glj7fSDt3RIhC+lgmDg3fTsW43GrXzf31FoJJXNa65HIYTRZ28Q0eQ862t MjsX6mR1URxKaIF7rKT3/TD9Urk5RK4S0LhVlpNo0aFzTBzqN+3gsMDznJwnBKA7SMHo Ml/lNAdd20d/7AsUUMwcJ97Ywnm5Yt8m+3NJ39A7Y4wnBjv9WBJ7zK9gGHzXShEbcGqk Gd+6ZJkir86vj7PDULbotcNeBrxphi88GRaTTGQrGBsYwPn1Jx1gIBHmyIAyJ4kcvTFG 35kgDsyU1kkfpW5qTD1f6xhgO0O12lMs317TOuGnSWk58p2lwdETn3l24iBD5WKgc0H9 mcOA== X-Gm-Message-State: APjAAAVhLkfXKti3zjERsXAyBX8xPMZhXDVwR/v/Vi+JKSMIyWQ1FvPP 0ZPuCGnMKbDqr75Ny5uPpuA= X-Google-Smtp-Source: APXvYqwuWzsCGpjQcNQa5lHuh7FuWlPCZt+dlf5F5Z/vvbfkuGlWFhtrM+c4T01AWO6cbZ1Pxh7SVw== X-Received: by 2002:adf:e6d2:: with SMTP id y18mr84428535wrm.262.1577959377141; Thu, 02 Jan 2020 02:02:57 -0800 (PST) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id r6sm55418683wrq.92.2020.01.02.02.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 02:02:56 -0800 (PST) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 6/6] drm/etnaviv: add hwdb entry for gc400 found in STM32 Date: Thu, 2 Jan 2020 11:02:20 +0100 Message-Id: <20200102100230.420009-7-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102100230.420009-1-christian.gmeiner@gmail.com> References: <20200102100230.420009-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The information was taken from STM32 glacore driver hw database. The entry is named as gc7000nano_0x4652. Signed-off-by: Christian Gmeiner --- 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 d1744f1b44b1..8495b041a3b7 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c @@ -6,6 +6,37 @@ #include "etnaviv_gpu.h" static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { + { + .model = 0x400, + .revision = 0x4652, + .product_id = 0x70001, + .customer_id = 0x100, + .eco_id = 0, + .stream_count = 4, + .register_max = 64, + .thread_count = 128, + .shader_core_count = 1, + .vertex_cache_size = 8, + .vertex_output_buffer_size = 1024, + .pixel_pipes = 1, + .instruction_count = 256, + .num_constants = 320, + .buffer_size = 0, + .varyings_count = 8, + .features = 0xa0e9e004, + .minor_features0 = 0xe1299fff, + .minor_features1 = 0xbe13b219, + .minor_features2 = 0xce110010, + .minor_features3 = 0x8000001, + .minor_features4 = 0x20102, + .minor_features5 = 0x120000, + .minor_features6 = 0x0, + .minor_features7 = 0x0, + .minor_features8 = 0x0, + .minor_features9 = 0x0, + .minor_features10 = 0x0, + .minor_features11 = 0x0, + }, { .model = 0x7000, .revision = 0x6214,