Message ID | 20230628-topic-a7xx_drmmsm-v2-5-1439e1b2343f@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2434743vqr; Tue, 8 Aug 2023 15:36:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEo1zidfCeNCRpFboFSYaroO0nI/mi5o9wxSKTdBrrNvIci2WNeVe4wlrPh9BpJqweVrS+q X-Received: by 2002:a17:903:1252:b0:1b9:ebe9:5f01 with SMTP id u18-20020a170903125200b001b9ebe95f01mr1248256plh.19.1691534177342; Tue, 08 Aug 2023 15:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534177; cv=none; d=google.com; s=arc-20160816; b=keKoOAjodewTRS3CZt8TJuY2fXrXwCDuViv3Nvm5MHflhqipv1lFDNiiUsZmiEaiXx WUdc3tnvjbtDe3IFvqOyDUKAGH3Mkt9RC9HqkqNkPK/V2UvuQsuV/FUb1BL3+VwDYFGa 3E2+OILFuGcH+ruqny5X7JR4/r+Z3im9Ur/JTjRuxQzuwkplfF/Klf8c5Mk36OETGScM gylwitMfEwbH1qYQDsL9LDaCjwwqp2KjGpwZEzJnig3DGrjJdLgCjb3BiA5tXP9ppbkM 5nIjdkgBAIOdg0WwfcRoWxYQr1+/bMVZO7Qa+xsEhEI12cHiTWAfqIyBlWizYtJkoxk5 I50g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=lqz7w9DN46LollZ8B8cwAps5w+FdCgj3qIXMhHKzaOA=; fh=3hwGaXu58rAZWOfog+OLn7auuhW/vtrcTPHDYtQJhEw=; b=JxHSY/n7fQ3/ZuUE16Qyl60eYpA/HH5fT5vbR8u1ZMVDtpg4OuayBH34VSj1G7LR23 HDXtQKw0uDDy6lJLI5YsWKXwGTmpIlgIX+TfbkoD0DX+F12hblS4ennWQg0PafWjISIY Kf7AjDIGMMu95QJj8jrxTfv4ebg7RzUUTGx/gxjA3cBvpznnvyJBjYc1lZiSZcMdZgXM UoQ/qZVn7sejOhqnVJo+ok7l/yaESH7iPO+MZLEwennjDvi1SXJyrCyoxPyNO+8BagJi ad65exFqOsethmMFUucIJRr5MMunskGi2ehR8M8o6jwAE+jqJHLQZtlX0Sp/mvGWfSnq PFEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w7TM1+29; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a170902d1c100b001b53c722c3fsi7889332plb.597.2023.08.08.15.36.04; Tue, 08 Aug 2023 15:36:17 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=w7TM1+29; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235101AbjHHVDH (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 17:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234395AbjHHVDA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 17:03:00 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55178269A for <linux-kernel@vger.kernel.org>; Tue, 8 Aug 2023 14:02:58 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9cd6a554cso95357171fa.3 for <linux-kernel@vger.kernel.org>; Tue, 08 Aug 2023 14:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691528576; x=1692133376; 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=lqz7w9DN46LollZ8B8cwAps5w+FdCgj3qIXMhHKzaOA=; b=w7TM1+29aq7mu8DdyFgFg7q+tgvrgq72wC0QJ1yMpAwOb7RgSgZuGmuKEmbwBXvDzu ZORquxMncRCJAal/oUKm5zZRUGD1FqYFfzQ+4NTN6QCZ0Y3Asgd/KkBWNo83AxuryI1P NQSnjjqfQXWMDTi2eZdHcQY761nqfLPi6OY8rh5nBD0ll44gRz/jzi769Z7XLoYuTpij KBrP87k27wq+4TguJ2Yp7Y0Ckz+HjaXAf6AAVgEo+iBKZv6sNjDiHAUjGYfSq7mNB6mg YAx08WwEv6X0ml8XbTkRlerFClWzFHI+E+h8nagjK0xKUFXVCFyQcD/ze9bF7Sw1u+0z wzdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691528576; x=1692133376; 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=lqz7w9DN46LollZ8B8cwAps5w+FdCgj3qIXMhHKzaOA=; b=YP3Px9PelatlqdMTwT6Q9NWSQJfxg0y47NJvTiWHxADpOlNU1zdT7BZ6BZqLH7OK0r X0JafrwlaAP55U3dYOyqEtKWJY1gCmlyEMEa1W9cRrksSik/1VhQ2u1UmvcjwsqaWzW3 hWDJ3tEF+5BRRO+HAiIUh0jdH0mKJ7qx05xf6H92dMivooZMLjvTSjlDFTi0NnVHYTI+ mVj2k//Yg933SiM4dAcHIYonKetq0Kz9tUPNs3mWMDlaROraZ8icKuZ1uPoTbnDMIXK8 A4c8z3YWS2dRpUz9VSMT/gBS2ulbWiiNZuzdOD73PYwlBvG29pJaYXKXLuIwCJb+qirP vylw== X-Gm-Message-State: AOJu0YxHkdWkyo0cNTKgppgO25OEOw9SxeOKXRShkt5lZrvwsje/KqX9 ueDCugjXOdBx0IFq+sfQcs3hrw== X-Received: by 2002:a2e:a307:0:b0:2b6:c886:681 with SMTP id l7-20020a2ea307000000b002b6c8860681mr492063lje.6.1691528576656; Tue, 08 Aug 2023 14:02:56 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id h11-20020a2eb0eb000000b002b6cc17add3sm2431483ljl.25.2023.08.08.14.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 14:02:56 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 08 Aug 2023 23:02:43 +0200 Subject: [PATCH v2 05/14] drm/msm/a6xx: Introduce a6xx_llc_read MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230628-topic-a7xx_drmmsm-v2-5-1439e1b2343f@linaro.org> References: <20230628-topic-a7xx_drmmsm-v2-0-1439e1b2343f@linaro.org> In-Reply-To: <20230628-topic-a7xx_drmmsm-v2-0-1439e1b2343f@linaro.org> To: Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Bjorn Andersson <andersson@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691528566; l=1048; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=TnlFTvDdHhoi4rVAYZ2tyAwm56dDVRIuWBaJyWSlozw=; b=a/SUmHuwx6GbHQKZ+zB6XePPj9sI9E9dNkhNkm4geJQBC/XMyObKFtFrnDWlvJ+i/rulMyMRt UaeyhJm1kS7BUbCC3ZrXmWHAvbWEMsshMCIBeYdQFx+cLTGdOsb1k+7 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773702141608438111 X-GMAIL-MSGID: 1773702141608438111 |
Series |
A7xx support
|
|
Commit Message
Konrad Dybcio
Aug. 8, 2023, 9:02 p.m. UTC
Add a helper that does exactly what it says on the can, it'll be required for A7xx. Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # sm8450 Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index 1ed202c4e497..0fef92f71c4e 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -1740,6 +1740,11 @@ static void a6xx_llc_rmw(struct a6xx_gpu *a6xx_gpu, u32 reg, u32 mask, u32 or) return msm_rmw(a6xx_gpu->llc_mmio + (reg << 2), mask, or); } +static u32 a6xx_llc_read(struct a6xx_gpu *a6xx_gpu, u32 reg) +{ + return msm_readl(a6xx_gpu->llc_mmio + (reg << 2)); +} + static void a6xx_llc_write(struct a6xx_gpu *a6xx_gpu, u32 reg, u32 value) { msm_writel(value, a6xx_gpu->llc_mmio + (reg << 2));