Message ID | 20230517-topic-a7xx_prep-v2-5-5b9daa2b2cf0@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1238799vqo; Fri, 19 May 2023 06:32:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/sCS5V9FX2FfVBMlHkysGaV4hLk/14PctpBGDqFG9ZuH9tEPZLcxbNjvDsMA63+DYS8L8 X-Received: by 2002:a17:902:c403:b0:1a9:4cd5:e7e0 with SMTP id k3-20020a170902c40300b001a94cd5e7e0mr7742112plk.17.1684503163077; Fri, 19 May 2023 06:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684503163; cv=none; d=google.com; s=arc-20160816; b=t4OkA07n0B3qaGeZu2FKnzEH9Gl5Dhx/GCHdbFNN2W/eqKrw4bifYilQ2+3/x3+aTY Qg4NfpPLOwq4fp/pp7rXaWWlJNPzIyv6LaILnMDLnTfqyQ7rKx7WhmAnZ/bm6m3SOQa3 ACsdMCf80eGSx1EPyY1ono4NAAi7dBlVJsydpTgeCK9NjLwB+T45nhjM1L8oF+qFxh0l MJTP4JN/0Ve7GpyqZUDFCLqIE66Q7arx6eQn74/2IyR0wEv5PTSV6PwKNhUDv2FgbV6S An0ZdhNYZMG7alc6MJJ90rfUlQpd1NarlcDf0B/H7bspLjTwXjxvrxV8KzZewCbncx/R 6JTw== 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=Xbg/GarYLH0aFj2Z0GcGyUdxXKd4AWIEjgCUU5KwNKM=; b=E1qtkgnk2UanV0SwNvMpelo0+BdhEMAtfe/cld4v2WN9WiX+lVBDDF1ncEBEj8nG3/ 3rGp0pFdoJsjw8QoP/FXuHW8dRZcUsBJobZiOWcy+HWDgE2EyPConcFzwLQUmKXuazoX JUD3/kncYhXdLyrRiE5pHMcI1mCzSbcbu6Y9hoQSHCBHaVo6o0n9EOHES4zG2wIDP+6q RyCKTR/gYpg4SXpz6Oy7uNc+sIHRgjylC3eVqaKsVsaUrrTtptCF5B+5iA2SV5QGq/xu wjN6CS2PvGlRtaS4rypXznEhB5Pz8ghkLVZl5KPSb8PktaBm0STqKrlP5OGDuMRrkn6q TxKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vJuSxGYk; 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 l12-20020a170902d34c00b001adc73620a0si3548273plk.410.2023.05.19.06.32.30; Fri, 19 May 2023 06:32:43 -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=vJuSxGYk; 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 S231824AbjESN3i (ORCPT <rfc822;wlfightup@gmail.com> + 99 others); Fri, 19 May 2023 09:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbjESN30 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 19 May 2023 09:29:26 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AF913E for <linux-kernel@vger.kernel.org>; Fri, 19 May 2023 06:29:25 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2af2451b3f1so7929771fa.2 for <linux-kernel@vger.kernel.org>; Fri, 19 May 2023 06:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684502963; x=1687094963; 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=Xbg/GarYLH0aFj2Z0GcGyUdxXKd4AWIEjgCUU5KwNKM=; b=vJuSxGYk/KQ7DJM8LMmmyVUgzqptU4GWlxJl2iPW+t5MM4OSpQeXAOGSISVK5GBoZ5 lQLfAMinnu3hVvPIQx7So0vMnFfLrNF1Xbro3spArt3sitaMsyprZCiRmesL3LzsFqTe bue4u8C7eXuVRgCx9jdHpIMOF6JkQKkkJESB2rUnksQ/SuBvAYmKLxTebQALspUgY6iZ GLFAgQ3iOk64ezVs0Q37K3j1Vw81Wyv97Pvo11VMrMS1eqAO/+o+vQCrBBGzlbfvWjHB 2GkLVfJ1zfm5Hz1mKURus7lkBUYYNighIwJoXV0cFsrJxqxhcq9op8TMrb5/WPlOLjJY /fdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684502963; x=1687094963; 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=Xbg/GarYLH0aFj2Z0GcGyUdxXKd4AWIEjgCUU5KwNKM=; b=ccX/uAsXJSgT1EFn4k5C8NpqE82yhCKCdKekw1AIfzzVEpCx6whDhaOuX06nU3Tkzz UuvwqNEEG5cODxOpy3h56hhYDGizO9DSRq1JXxCdHVw5AEFKvVczX3QfJEQO6l5N2CPM IOM0fY0VZfPRlTsVZBzznrrEs7ukEc/jTbv1NpVCF+s6fJ1U8/lWP4yQgR7tlrW2QsdP cxMD/DWC48rM3bEhSCYNhUQVjgsAWQw1KndvxSVimlGrbmSUY4btPjATcELlMtftje1s Pk7R5XxcyOm7YdVUo7rBKfQnGKH5Pa4QXwkK/Wbd8t6e7mNAMbya1z2dRHhTMT4VeefR Uz0w== X-Gm-Message-State: AC+VfDxtPKl6O3Pwq4rEoNweEZNO559aA0tF30DJWbBnONQNtJDo9TJ5 z2o789/vZLEGj0EmDl69hQwoZpIbeRTGG2YWujc= X-Received: by 2002:a2e:2417:0:b0:2aa:3cee:c174 with SMTP id k23-20020a2e2417000000b002aa3ceec174mr887376ljk.13.1684502963335; Fri, 19 May 2023 06:29:23 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id q24-20020a2e9698000000b002ad92dff470sm821384lji.134.2023.05.19.06.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 06:29:23 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Fri, 19 May 2023 15:29:10 +0200 Subject: [PATCH v2 5/6] drm/msm/a6xx: Improve GMU force shutdown sequence MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230517-topic-a7xx_prep-v2-5-5b9daa2b2cf0@linaro.org> References: <20230517-topic-a7xx_prep-v2-0-5b9daa2b2cf0@linaro.org> In-Reply-To: <20230517-topic-a7xx_prep-v2-0-5b9daa2b2cf0@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> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Jonathan Marek <jonathan@marek.ca>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684502955; l=999; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=tIqOHRwnY5c8M0EJh8c6iF51VO5nfDTSDxvclL4zDow=; b=KYPo2qeuYKLdvjj9oKoR1uGIGtpjAhcYDxd18dm3Lwi5iPiyTSKITY8bEUzM2vOEEa3w8ByAg sTMUWlNlnzwBn7Mt3wFvyNRhmol24Y9mXySPWHFi9n360y5ZUZIDaAF 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766329588936850110?= X-GMAIL-MSGID: =?utf-8?q?1766329588936850110?= |
Series |
Adreno QoL changes
|
|
Commit Message
Konrad Dybcio
May 19, 2023, 1:29 p.m. UTC
The GMU force shutdown sequence involves some additional register cleanup
which was not implemented previously. Do so.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c index ea6d671e7c6c..8004b582e45f 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c @@ -930,6 +930,13 @@ static void a6xx_gmu_force_off(struct a6xx_gmu *gmu) /* Make sure there are no outstanding RPMh votes */ a6xx_gmu_rpmh_off(gmu); + /* Clear the WRITEDROPPED fields and put fence into allow mode */ + gmu_write(gmu, REG_A6XX_GMU_AHB_FENCE_STATUS_CLR, 0x7); + gmu_write(gmu, REG_A6XX_GMU_AO_AHB_FENCE_CTRL, 0); + + /* Make sure the above writes go through */ + wmb(); + /* Halt the gmu cm3 core */ gmu_write(gmu, REG_A6XX_GMU_CM3_SYSRESET, 1);