From patchwork Fri Feb 16 11:03:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 202095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp438390dyb; Fri, 16 Feb 2024 03:11:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX47rhUxIFa1RRSwzQePCjW/SRFhspvrjLaB6zcjM9G3MBhJ8w9x6CUocLIGmNAXslQi43lS11NYiHZKydhd7GwzA6cIw== X-Google-Smtp-Source: AGHT+IEh2m/1jNRFiAWnV/lfKP1gADqL4ENlz+MRIQEllQvyIZBy5BFC62k62KsuLVXumJ341GfJ X-Received: by 2002:a17:902:b944:b0:1d9:893f:cd06 with SMTP id h4-20020a170902b94400b001d9893fcd06mr3943133pls.60.1708081894263; Fri, 16 Feb 2024 03:11:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708081894; cv=pass; d=google.com; s=arc-20160816; b=Seb/baBOKoVYKzFhqvB9OcMzKFt0ZgtuzCvxgB/zlAhLMmJHlQqJA8qKkpdrS6HF4V 4jDBqXcZ48GjoCf2raIAXVuDX3GlLBUdvdxfkVWJpsl9p2UPICQjN4ovzrW7quomozOx jnG/e7n1RZQyc8nMDUJTCIQaB4QoFdwX/VRbaAVe1XH+CkyLPtWbIO2udY05gUUR8ZLY IjDbu7sUlqxPasU3sRA/VyU5uyD7Czpd6DYii8oY3iz+q2MzFbd0RMyk9gam8R0W1Nvw /Fc+HijxngzIdjlbC4b7385lxCf4kZ9In0MuRXZX/HPmWOjXwr5xkq4zCTfaKxh+3i/m oagQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=5ygFt5WEvBpqUpx/ZfEWpp/27W6mJ4fXmmus9YC0aao=; fh=0BTQf3mcvTXMbMI7rGbjeSsehtplrKujV0T7OVUCsTA=; b=BbPeHv2swrGTIfQFTD+Ywx8JV1TzNAVmzF18McCnzUAJCJcVhArQBQTGArVbVPPIl/ GfHJ4lMRBAVX3PUAW+2RNk7yij5ykViNQWFVWN4+qmod8hD6tOJ4YKQEPPCZH31QZTE0 WGRFlgJMqcVqp6ErMI6s8Z3Y7QrETw6JtyM9geXCAj/iuokOmtO1wovp07PopFn4PKrX YCGWEcG8zJ2AKoZjahj28bOocS3/vRicpxktY4gYoeBb1LKA7aQt+uwLJ6LnlLPmhqW7 05D3voAr2vOy1snEzsCNO65KeLWFzFstia2P1yNDGxzn+DJX14cTEJwj5aMk+JYGmgyy qk5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZafwBbBC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m10-20020a1709026bca00b001d015cec684si1383863plt.238.2024.02.16.03.11.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:11:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZafwBbBC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6ED0EB247AD for ; Fri, 16 Feb 2024 11:05:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 956F660DD4; Fri, 16 Feb 2024 11:04:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZafwBbBC" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D84658AA7 for ; Fri, 16 Feb 2024 11:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081442; cv=none; b=VhCLYjkBBuRer4eRIPkQmKNaTmgo9WCgrbPLcrhqVQeBEC9lhblmFVocDm2cj3Jenzcq5lg2masOmaZ1RRGUr/phHgwDaG+lKhoRB3S0FkNr7RfvrxHgJscR8cDgLDMKjAHdcxbloa5cj6qVJLvfG4CIi5lqHgA1WcQ/p6W4Fig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081442; c=relaxed/simple; bh=B2VkxjrRCyr4kbi/Ih6iBNEXikEKFqg0faRJON0SE+g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o1xenv3gmZhYrGgkj1B7rueEW1Q6iRKBzA1/zFkLERs6ZFHC4ja1eDo/0gnjV0t02vlO31iJsxwNPWr+vA8dgQBf9i1pI6oxyYY2erwzbFcjbSEnuf6SBz0DYZvbF1kkVBEuUjUNir6OxblkxbY6NvYLANNlGXmnMVBUNXLjgkM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZafwBbBC; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-33b2960ff60so1650594f8f.1 for ; Fri, 16 Feb 2024 03:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708081438; x=1708686238; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5ygFt5WEvBpqUpx/ZfEWpp/27W6mJ4fXmmus9YC0aao=; b=ZafwBbBCKun+sMxiwhxBJE/xLZNpIW/w9WgF9AjbWEVUoSDZtfyQEKjbIQms8ye8Kf ineE1yy07UpC8e7oUydgIkZQ+612p7oenOGxAUuLondBOjohPUidyxSnI9FTAH0X+T0Q s+GI1quXFqDQNMioIR1z4wt5ptaHVuIqFK7Ny7yzmM5geFBPsSsusMZdz74ie2kLbss/ i9+kpAq1I9k/sFzXGMP+6ezV4EI6ewm3Yp94l9XORqyvZQdvpahSOR+WCykKZEg9VIDP NXCSR5Oq8ttv6raBoUMOqPvAW7p7BU/KsgMioAH37Rwj7WHbWLqTUzhgyie3uIepuoGg 83cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708081438; x=1708686238; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5ygFt5WEvBpqUpx/ZfEWpp/27W6mJ4fXmmus9YC0aao=; b=FYQbaUtEdU6KAVL3ODISrjKHR/awoJE2Rx19fHnbHZ5yuaVdgosyIJiAYSt5lx0uo2 1FAOgaWEZ03dmt7uTM0DbMZL3t/KmG9wYpF6QA797yzggRa9hyVklb598n/8NcALKe4H GOOQsUeMl/kFTOrKCzanofF3zKizxC6mc0X+4C4fZiT5bjiEqCGIFqR1DosL/czCngbW jHb6wn5q6264FcYr3T4qei6joXKHzlVAaKHZLtLAVfxIgl4/hHUvCCjwrsFEIz2rFqxr YaRk7Z5cQ6n8qHMIyIc+JcfXe67H3/oGFr0/HpjbKmG8Xc9bwXnGck8muqVu+9xfnOGj f09w== X-Forwarded-Encrypted: i=1; AJvYcCXIJuXMnP3r+UTy5cbvl0mj17LaiIsC+up72tGxxOr5mGbJLIxMgUw6YGz6ED4Gr6yUAC30A1HsKqrVuKz0+tipgQetSkT4bWJ/eK95 X-Gm-Message-State: AOJu0Yylg5duQ3uqXPtAZgEL9k7A9PBNWnBURylT2cAT8J0BT0kUwEoG u16LuzT6XYI630kg8fGbAXcJALne4PBF9yZiKWaaNIiu+WL7DYMmFfBCZsK/Jq4= X-Received: by 2002:adf:f9c6:0:b0:33a:d28c:222c with SMTP id w6-20020adff9c6000000b0033ad28c222cmr6833643wrr.11.1708081438346; Fri, 16 Feb 2024 03:03:58 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id r2-20020a05600c35c200b004123b049f86sm1993174wmq.37.2024.02.16.03.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:03:57 -0800 (PST) From: Neil Armstrong Date: Fri, 16 Feb 2024 12:03:51 +0100 Subject: [PATCH v3 4/7] drm/msm/a6xx: Add missing regs for A750 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240216-topic-sm8650-gpu-v3-4-eb1f4b86d8d3@linaro.org> References: <20240216-topic-sm8650-gpu-v3-0-eb1f4b86d8d3@linaro.org> In-Reply-To: <20240216-topic-sm8650-gpu-v3-0-eb1f4b86d8d3@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Krzysztof Kozlowski , Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1661; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=B2VkxjrRCyr4kbi/Ih6iBNEXikEKFqg0faRJON0SE+g=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlz0EWLv15OOt84prn+zzezyX4bsOfCsjeKZ0p7RdD 9nUyGtCJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZc9BFgAKCRB33NvayMhJ0QcTEA CS2n5fqoqmYy9GHm6c4t2zLB5dDvZtmceau88GuV5umatO4fIxWOJ2NVqQz0VOvJbPEtS7xPrnA3o7 JAnZ6MUVuh2noUioy3nxLe7FSMkh/ZPU2LRXwfKk4dwEZ0jF+MsRF3ZmZ2Hfw+elII/+aN7mJqw52s W8eyo/MgX0PgcTEKTYrqq0QRtGygwFwY4l1nxJV0IOtMGboM1VDlRq/BxaiUIyjIxFcNjuzz+Xh3w+ Zr3SAVhHwGmNGYJmfIBHL8afHrOBGBloWT4rsKve+hzQ4NQIbt8MAblLGzeUTZSHpwwDPrIMBmO1rF vS+I1A12OTe4bEUDLXkmNEJPSs6NyxRsgGdOySmv3GJakcqJ+nbKW8sg1qR9tiNtCGmARKrnEnGPOL eEcxzYm8wlfIvLMMmxVQCKPv6tvaLo/Y0e5vo2YLoE8hsN1WTcOjSGnKCzxIXdLEeH+y+794HFWyc1 1Dt8glMqWYagPv+aiZhsjdO3gFo0NuovcYjgjuxnr3SQ1nOXsS9q8YT6l+/q4pr47E2lOXRgqNttWo BnMpIc+sS5r8L9x4jpkteunntBHt8+6nQZTtFHCt/zok5FjqaNK/DGrKOiWDRm9xWQtEsBff6yphGC 9JcXauVI9RI/gN52Cv42EbKaIhM09ziGBnkjek3NhTCJGhmUhay3i0Sj6n7A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791053680229572712 X-GMAIL-MSGID: 1791053680229572712 Sync missing regs for A750 clock gating control related registers from Mesa a6xx.xml.h generated file. Those registers were added in the !27576 merge request [1]. [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27576 Signed-off-by: Neil Armstrong --- drivers/gpu/drm/msm/adreno/a6xx.xml.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a6xx.xml.h b/drivers/gpu/drm/msm/adreno/a6xx.xml.h index 863b5e3b0e67..58877464692a 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx.xml.h +++ b/drivers/gpu/drm/msm/adreno/a6xx.xml.h @@ -1725,6 +1725,8 @@ static inline uint32_t REG_A6XX_RBBM_PERFCTR_RBBM_SEL(uint32_t i0) { return 0x00 #define REG_A6XX_RBBM_BLOCK_SW_RESET_CMD2 0x00000046 +#define REG_A7XX_RBBM_CLOCK_CNTL_GLOBAL 0x000000ad + #define REG_A6XX_RBBM_CLOCK_CNTL 0x000000ae #define REG_A6XX_RBBM_CLOCK_CNTL_SP0 0x000000b0 @@ -1939,12 +1941,19 @@ static inline uint32_t REG_A6XX_RBBM_PERFCTR_RBBM_SEL(uint32_t i0) { return 0x00 #define REG_A6XX_RBBM_CLOCK_HYST_HLSQ 0x0000011d +#define REG_A7XX_RBBM_CGC_GLOBAL_LOAD_CMD 0x0000011e + +#define REG_A7XX_RBBM_CGC_P2S_TRIG_CMD 0x0000011f + #define REG_A6XX_RBBM_CLOCK_CNTL_TEX_FCHE 0x00000120 #define REG_A6XX_RBBM_CLOCK_DELAY_TEX_FCHE 0x00000121 #define REG_A6XX_RBBM_CLOCK_HYST_TEX_FCHE 0x00000122 +#define REG_A7XX_RBBM_CGC_P2S_STATUS 0x00000122 +#define A7XX_RBBM_CGC_P2S_STATUS_TXDONE 0x00000001 + #define REG_A7XX_RBBM_CLOCK_HYST2_VFD 0x0000012f #define REG_A6XX_RBBM_LPAC_GBIF_CLIENT_QOS_CNTL 0x000005ff