From patchwork Thu Feb 23 12:06:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 60930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp275190wrd; Thu, 23 Feb 2023 04:07:42 -0800 (PST) X-Google-Smtp-Source: AK7set8rxFBz9TOhH+YxXnQUMXjxmOBtzQERf1oziy2+/ukuPE+n+je1KuUJXyKL6e2SOpwBl0UM X-Received: by 2002:a05:6a20:9383:b0:cb:af96:9436 with SMTP id x3-20020a056a20938300b000cbaf969436mr7467305pzh.0.1677154061932; Thu, 23 Feb 2023 04:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677154061; cv=none; d=google.com; s=arc-20160816; b=yNNbtqcG6Tbze7lsSpiEbbKBBiD7CZFvFqlQj7v5G6LJ1i6dq4DbS3gq5zzhH7ozv0 ppXZqjjWpRvrbNYkcXRg4+qQauHVGa/0zVfhM9mcz0hHj03tn/Y8Ih9WzlvsreksDPYb xzglqd8wPTPaq2adPGlTvgAjtj6yb1YenrS+N2GlJep2pT2Udc1Fyne+q+AJZSPOhKT5 0Ya1Ewlrt7uKUVBUapckHomK5bqJDll/yyRaO5kUU2PC/y6u2XJ0kv48HUD0XDcUq4y0 tQwCg2qM0q/bCIGtmVpDLadumj0Q4/Jpl5s2ucY0zK9FX5Wubfns+j3BHApwC5xrSryd 1xeQ== 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=2SpxHoGUShGB+o0R51zX1h3RUDAwPHpUo8NWuduSFvs=; b=DmPCoNaDo8e1HxlHWcOQmtObflE7Q7pJOFvBXgny+LoP00g7mqo88EFssUiMrZzVh+ LVKRtOq+MIlEUqUNz9FXrA1fhw6okIKxYnoZPmZt9pblE1ZqpCakNjvTeFwOvlpLCi+0 5B7yT45DafhbpitGux1rQMvTV6GnlTZ0cI5G+GNLsOeQVWB0LrAxak3SamIjq10qbHfI LkIgt8+SPitMeVvSYXLbk4/3ruoel1dp9MFQiFJVi/di/aDSaLxIeFvvS3gPHkdOjOM1 g2IFS26P5347aHlbjS3+PDAX7jqwRoqp4TEahBej5fIT2kmzXI0GhoiSq3RXQ0tbuYTm Otzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CW7Zdf9o; 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 e7-20020a636907000000b00478368ceee9si3545971pgc.235.2023.02.23.04.07.28; Thu, 23 Feb 2023 04:07:41 -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=pass header.i=@linaro.org header.s=google header.b=CW7Zdf9o; 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 S233909AbjBWMG7 (ORCPT + 99 others); Thu, 23 Feb 2023 07:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233682AbjBWMGv (ORCPT ); Thu, 23 Feb 2023 07:06:51 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90AD654546 for ; Thu, 23 Feb 2023 04:06:49 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id a10so10672458ljq.1 for ; Thu, 23 Feb 2023 04:06:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=2SpxHoGUShGB+o0R51zX1h3RUDAwPHpUo8NWuduSFvs=; b=CW7Zdf9o3xrK/6ELRsSFvOeXYvGWeCWQUMKUIDEzLj0zJDMC0kZ4Sf+eu+ByhkMTcl Es1Q3UTCbueqYr7YOPW1jJHCExdQH+AiXelzjich8/Sdyoag3yS2hAYwdtikL5ZTu7TZ GFPAzxjiQa/Ro5lOGHYXCjSbzVUf8JInS2E1uY19uOEVGPeCDAWWTL8BpR6RCr2cXBdN tBmH4ZQv3nFju+1g1nLNU8vwunWMSeNAot98NwpTUX8cmpInhOQvpPZiwv2bkk2U4iSJ m0wHHMmAbpJ6a+X8bN+fnAqPe1eCTnaTAuydlFLgELu0s9JjugPB9lwPzSmjPq6dfCWR Se4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=2SpxHoGUShGB+o0R51zX1h3RUDAwPHpUo8NWuduSFvs=; b=lTLXTzB37FS+JRS+73tCkNC0rqxUIX3rBuiKK0JGMH+SsXn8+i03aGcjpS9bSM0dMq rkcH+kpj9xlKrewQ9OKR8UI3Iv8hieGRoiZi/ho5+tvbHEG1fbIfQgbztLNOvHv2fYPe VhnxC/KXSn5bLETFGfeEpKksCa3AIshdb3JETVooYHIfM77YPoZInw6agcqyucu4YR4O laU8CBSRuX36/R2WRCimyxSwraazr9D+W3ZXbWmQRYuh2Fyn8tKlcXjzX+kUCYUPLSbg rQbo6I905IXNN1wjqlPeUvX+nlX1RAvawaQ8BYrc/TMbPftTMWPDOg/FPxrF3wK1g+pT cuVw== X-Gm-Message-State: AO0yUKXXVwZy88PoQQc0kdk5DhEyWrCJz/Bniq/fM5qxd08JZNfQA3Jf dcN065UOXzIfP4iTHrwSmTUuPA== X-Received: by 2002:a05:651c:1548:b0:294:6ef3:f53d with SMTP id y8-20020a05651c154800b002946ef3f53dmr6137826ljp.23.1677154009124; Thu, 23 Feb 2023 04:06:49 -0800 (PST) Received: from [192.168.1.101] (abxi151.neoplus.adsl.tpnet.pl. [83.9.2.151]) by smtp.gmail.com with ESMTPSA id h23-20020a2ea497000000b0029599744c02sm414838lji.75.2023.02.23.04.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 04:06:48 -0800 (PST) From: Konrad Dybcio Date: Thu, 23 Feb 2023 13:06:37 +0100 Subject: [PATCH v3 03/15] drm/msm/a6xx: Remove static keyword from sptprac en/disable functions MIME-Version: 1.0 Message-Id: <20230223-topic-gmuwrapper-v3-3-5be55a336819@linaro.org> References: <20230223-topic-gmuwrapper-v3-0-5be55a336819@linaro.org> In-Reply-To: <20230223-topic-gmuwrapper-v3-0-5be55a336819@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Akhil P Oommen 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, Rob Clark , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677154003; l=1711; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ckva7phaYizBiCARarCiXDqf5CCsJebA/ji3HmmQc6g=; b=l/shpHg0ffSlNRZs2INQLoUVacJRFfYkF+Cy0e+TxZ1egkncjMzHjycDzxCx+q1+9tccT2zVosvB bS8CU6WmA47RpIYvEnMLEb0EPdGByaiQb71p/qQ9pLoAf9bdQsDj 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 autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758623497572607368?= X-GMAIL-MSGID: =?utf-8?q?1758623497572607368?= These two will be reused by at least A619_holi in the non-gmu paths. Turn them non-static them to make it possible. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c index f3c9600221d4..90e636dcdd5b 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c @@ -354,7 +354,7 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state) } /* Enable CPU control of SPTP power power collapse */ -static int a6xx_sptprac_enable(struct a6xx_gmu *gmu) +int a6xx_sptprac_enable(struct a6xx_gmu *gmu) { int ret; u32 val; @@ -376,7 +376,7 @@ static int a6xx_sptprac_enable(struct a6xx_gmu *gmu) } /* Disable CPU control of SPTP power power collapse */ -static void a6xx_sptprac_disable(struct a6xx_gmu *gmu) +void a6xx_sptprac_disable(struct a6xx_gmu *gmu) { u32 val; int ret; diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h index e034935b3986..ec28abdd327b 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h @@ -186,5 +186,7 @@ int a6xx_hfi_set_freq(struct a6xx_gmu *gmu, int index); bool a6xx_gmu_gx_is_on(struct a6xx_gmu *gmu); bool a6xx_gmu_sptprac_is_on(struct a6xx_gmu *gmu); +void a6xx_sptprac_disable(struct a6xx_gmu *gmu); +int a6xx_sptprac_enable(struct a6xx_gmu *gmu); #endif