From patchwork Wed May 31 19:08:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3119359vqr; Wed, 31 May 2023 12:17:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72iCxi315/E+lmrNtOnIdG28n1waeAPtb1VlNTTZmnjdHlUMXZPTFhBIZTC5AWBo97q/e+ X-Received: by 2002:a17:902:e846:b0:1b1:9463:79d2 with SMTP id t6-20020a170902e84600b001b1946379d2mr691734plg.38.1685560664346; Wed, 31 May 2023 12:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560664; cv=none; d=google.com; s=arc-20160816; b=GlD6nW+Tv6iCD3Cz9VYZ+etF4zkx2SRiUA5HPrG7MZG22Tsx4V0Lj58wBv9ZOgoswQ tq+j4PgxZZjst2gRd5SNHkQJDaIkwTiS/ZAwS+L8E38bdIGyEOrJU3EtPmsG4SHD3SOg UWmM1wAS1WogRgStLrWn+9yga2J/eyhsLE8A0tBkLSsOvz2PkIIj4X/UHcLK5KLavNj6 DYd+rhJbEmeysozYQbDqaGjfAJ2mdfhs1lFUJcDaTJ7awYcpQNd4gXg0wN3ZdOUzAG6r byyCzWMX2qEPKy6JnqsxrCLRZy7HfOGSjmET1TQ6a82gIKgoj317DKejNg1TFG6c2xt7 9tSw== 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=f02QY76Z/zUTOa1xNejn3ObrxHG/cUW3iNC9INehNrQ=; b=UFnYIVWRPR1SY7Y1yAn9vtXD5kXYIgIz5LPPLIvF/fzXNwaBCdJhTEu34MbMv2X2n7 lEe4dKZFRl55Sui5KYipbk8uix9KxAj/67gVf4AwePpeMIvi+mJNov7NOGDYpdA+w8mr KHjY1FnztSX2sjuSVK7l4m2tDPYEp3Q4x7bkgREZ6mFbUACKk0Knf4UhC/osn3c6yR0Q gb1xGpKWpkMf58U515pmr7/aDexlo6ldKHtT9NJx7K8QAcC4hPMcQXzQUuFHhrZgWKZp 4cW31vgDnEs4H0W7tIt26TE545xp5aCjmPlAGW86ErFjApaJRCAQIlJRNe254J4BoiUE xsgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lfwJASpo; 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 y2-20020a170902ed4200b001a50dcd10c2si1349527plb.247.2023.05.31.12.17.30; Wed, 31 May 2023 12:17:44 -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=lfwJASpo; 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 S229991AbjEaTIa (ORCPT + 99 others); Wed, 31 May 2023 15:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbjEaTIY (ORCPT ); Wed, 31 May 2023 15:08:24 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C528E133 for ; Wed, 31 May 2023 12:08:17 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f3b314b1d7so6913049e87.1 for ; Wed, 31 May 2023 12:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685560096; x=1688152096; 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=f02QY76Z/zUTOa1xNejn3ObrxHG/cUW3iNC9INehNrQ=; b=lfwJASpoWgSiCFGPDsFHmQ6GaK8QnkCBkuXKWCjuHNenzhWgHpkehKR+9ucBFRfOn4 g7Ag3VLHoezLPz/RJdUnnLmEcTqZW58sWVuMXpRcs6XqLPk+7FRnb2hPqIel3wIF5OI3 2cK7M4NkMtd8nAUMdR9mJvw3UPjjejftEqMDo/uXClw6mu/I25Ozmu4Q1Xhy/T9PoReV NXcTH0SoJoGZ2xZu1HQnLU/Is8ir+7hfwhelkM7+RLSSpGytqT1djL9slGrFvwjp0Zvu 6cQNLujKKUxCN6TRzvYGSjf95BIVLDdmPCaKtjegJ2bFWG24cCUSCAprGHT5hoXmj9uT BTTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685560096; x=1688152096; 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=f02QY76Z/zUTOa1xNejn3ObrxHG/cUW3iNC9INehNrQ=; b=GmBKZhprygNlUyVbqOILsLLKnOe1n2Pk/NQtMCedKG3jKk5oI7rvR/JSi17lojquac 7Ujr/wyYsdVhzDBtHO4EGf2GK8+7bagviwwzUdMj8Wf6VwxnIP497h8gPs9qxR+9vWTW mH2K4SdzOkbuwtVuLcNe5Sbn09L2qlhtzGFW8Q0X1pO5FOU/XVr8u2nKpzkm4SzUbs+/ GyFDuVd5O3CUmA7aCAq1525nLQfSB3sO2hrJQDh9cISKoj/J3webJcVd1Uaw8x8Lz8mv C6e2qe4HhhgxHAFBEOESX6M2HzsIzwgTPLaOIXmB8Fp7r5+by/5Ag5QUUFrv3Ut5SWm9 K5kQ== X-Gm-Message-State: AC+VfDwwlC63mIkd9H3lWvyBFujO/ITUWPjD7w2GaA1z2k5jTiU++CbB XrkbnaFZ/8HkyYlqOh9Ch0iYkA== X-Received: by 2002:ac2:5ddc:0:b0:4f4:b0a5:b583 with SMTP id x28-20020ac25ddc000000b004f4b0a5b583mr3580446lfq.44.1685560096083; Wed, 31 May 2023 12:08:16 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id i7-20020ac25227000000b004f3b4d17114sm820935lfl.144.2023.05.31.12.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 12:08:15 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 21:08:10 +0200 Subject: [PATCH 1/2] clk: qcom: gcc-sm6115: Set up flags on GPU mem_iface clk MIME-Version: 1.0 Message-Id: <20230531-topic-sm61125_gpucc_flag-v1-1-f59dd1350781@linaro.org> References: <20230531-topic-sm61125_gpucc_flag-v1-0-f59dd1350781@linaro.org> In-Reply-To: <20230531-topic-sm61125_gpucc_flag-v1-0-f59dd1350781@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685560093; l=935; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=4kKahsZ/nvnpLCXGAaKSzL7oy0Wb/A5ayZLZEPcyD54=; b=g8S0eA3PdUUp/URNqKIbLRwTlcPsp8wU2H0Ay4KWhYCQRtRkScbVjOA34PyKfKittYEa37u9y +vbv/CBl9MYB4O4h0w8oZyxEzErHFma5wPxp/UzkUERC46+k5chxKK+ 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767438459225605871?= X-GMAIL-MSGID: =?utf-8?q?1767438459225605871?= Following the BSP, disable the RETAIN_MEM and RETAIN_PERIPH bits on gcc_gpu_memnoc_gfx_clk. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm6115.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/gcc-sm6115.c b/drivers/clk/qcom/gcc-sm6115.c index 5f09aefa7fb9..b8454e1f3e9d 100644 --- a/drivers/clk/qcom/gcc-sm6115.c +++ b/drivers/clk/qcom/gcc-sm6115.c @@ -3504,6 +3504,10 @@ static int gcc_sm6115_probe(struct platform_device *pdev) clk_alpha_pll_configure(&gpll10, regmap, &gpll10_config); clk_alpha_pll_configure(&gpll11, regmap, &gpll11_config); + /* Set up no PERIPH/MEM retain on the GPU mem_iface clock */ + qcom_branch_set_force_mem_core(regmap, gcc_gpu_memnoc_gfx_clk, false); + qcom_branch_set_force_periph_on(regmap, gcc_gpu_memnoc_gfx_clk, false); + return qcom_cc_really_probe(pdev, &gcc_sm6115_desc, regmap); } From patchwork Wed May 31 19:08:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101567 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3115660vqr; Wed, 31 May 2023 12:12:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72e1DJj2L8OgyB/6Y1V4tL59Gm5wRwdLqzo4K0hK+bHYROWpoQVp47IgUpy7refxTNeegU X-Received: by 2002:a05:6a21:3996:b0:111:997d:d215 with SMTP id ad22-20020a056a21399600b00111997dd215mr5731136pzc.8.1685560329880; Wed, 31 May 2023 12:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560329; cv=none; d=google.com; s=arc-20160816; b=o05VZiGSxt1OrGSz9YZEFDon4o0KOC4nWAOEoEyJdYCcH0TZs0V6JdXzVuYfDqTbTo IfKwH8ovSOPf1Yr7vMrlyksPco5KFfEDDQgUA70TT428Kw7xzaUGqPLijaVll9dUWX8G NlYmaq/W4rcrooOTsQcHmd10oIxa1/IL7c03wo3scqzmFcT64eyq2SYnqHDjEG+xi6PV q4UgbhyUzJJVmEDFzcqf4i+SomFyDclKzPneA8RvWdthA6gTH1w2Dvne445lYH0dypOc mURGjfg9rqpAzmPviOcEw+4fjD+8u8WWdgiZdETlTsF4u84xJYjovAhpiri1KGHusMVC b45Q== 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=KPuFw0npUksRN+4mHiT4+56P5P3V/hniye1VhYDyU0w=; b=fOTdj7q7VkX1IeWf1oiChdsNlqDNvDCqM4os3HECdkbO+MI0kIMo/FYvagD+lUEnrx 2wYBT7e2vFxZSq7zueVEHjQzg4KeDpUbNbT5ZO7MBpxxbmi0fusOpj7brU/4Zz0qZo8f RvaDHpMideYAeS+BwmyFsoaIXdlljDFg4yuYUaO0nJ9mK3Q6LZoVKOrcQQcO3A2AQHNt +s4e5D660q05IKG3pJTz7qEypkjy8au1HI9qxaDMJ/l0QuKONfnozT9I7sXc9NUOOwsL jhdPNz62XzPtN2NksmTukpsJhFdXSgOkkjXqbl1h+FOWSuFDpzdaRlb5HZMMXe02L+iI ibzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sis4OrHy; 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 j7-20020a170903024700b001ae5eb838edsi1422846plh.152.2023.05.31.12.11.55; Wed, 31 May 2023 12:12:09 -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=Sis4OrHy; 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 S230092AbjEaTIc (ORCPT + 99 others); Wed, 31 May 2023 15:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbjEaTIY (ORCPT ); Wed, 31 May 2023 15:08:24 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C718101 for ; Wed, 31 May 2023 12:08:18 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f4f3ac389eso5961381e87.1 for ; Wed, 31 May 2023 12:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685560097; x=1688152097; 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=KPuFw0npUksRN+4mHiT4+56P5P3V/hniye1VhYDyU0w=; b=Sis4OrHydMo42fDcC44TNHJSZKzjTozD2PehkgwML9aetns/dUYYzGIf1Qa8o1JVPj RYoMxcF5ZeRmGtlGvdXuj7+p5UhvySuI5FJKpxyaw/GQVC2Zi9RqLV5bmSWUr6X4Otic AuQAzmpmPEhSyWrw6fj+D+tVIqH+se18LmgLC9iyGzRjWdrM9RnxjbUQMHijqMsFJF6I czVSLXcKnzR8Z5OK5M6gN91vprEid4mvTafmKxm68QRScuITBageropUGdMkgtQv0qdS xAOkzlVBZkuDsxahwY7EIogMOXrh3tYAeVM9s80BfXuDTsYmuS86iWJtcZjgqageq+mO efdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685560097; x=1688152097; 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=KPuFw0npUksRN+4mHiT4+56P5P3V/hniye1VhYDyU0w=; b=RxWX4RQ3cyjIBk3V42eC8wIaW0ibeYemZU3SzBumDdioCqRH+bMoxPJ6aHS5xyiRKE gjD7oiDvBOWmJIcj8qQWAYj150Z1bZg21wkb61HI62tSWDB6xzuc76oIyGhoXP9QnXLF 2IRDjv62BegtXfy/4jHKAj+z9Qt9RWEdPV6jwlsW8qSVx2ESJ7UFOOhS1CBzHNmS5euC nJ9jFa/MkK3gqRem9dDHk8ebc/DzjUgVaqmvqv23oaHU3sdyIguIcSyCueMz6JxgP7nk atHkol/HzIK1rr2H3spo7oz7aC7W2PwIAc17fJeYfWe1nwgdRulIxoZRTVpHPN7gtYMI Wm3Q== X-Gm-Message-State: AC+VfDw0pUhhxoV5UYBGEe5E3pVE17J6EgGkDmIJNFEs6ocbikipff+y VV3/s0hNlHrphJ948pEhJRbdyA== X-Received: by 2002:ac2:5ecf:0:b0:4f4:deee:efaf with SMTP id d15-20020ac25ecf000000b004f4deeeefafmr36163lfq.4.1685560097279; Wed, 31 May 2023 12:08:17 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id i7-20020ac25227000000b004f3b4d17114sm820935lfl.144.2023.05.31.12.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 12:08:16 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 21:08:11 +0200 Subject: [PATCH 2/2] clk: qcom: gcc-sm6125: Set up flags on GPU mem_iface clk MIME-Version: 1.0 Message-Id: <20230531-topic-sm61125_gpucc_flag-v1-2-f59dd1350781@linaro.org> References: <20230531-topic-sm61125_gpucc_flag-v1-0-f59dd1350781@linaro.org> In-Reply-To: <20230531-topic-sm61125_gpucc_flag-v1-0-f59dd1350781@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685560093; l=841; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=IEG6edkTJ6CWQJbTd+SqBb7jA9qXN5DYOo46+SWTNaQ=; b=C19QIJ+cMrTd9aUbcEfcX7gO4fZN0tbV+8Qndittoq8YWiKVMg+cUu7mjFqSCAP07aPGlVuRq WrMx8gJV6FPBW5R6bEnOoHnXJRcllaqXvIZajXBNn+G4y97mY8y0ZK5 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=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?1767438108626218507?= X-GMAIL-MSGID: =?utf-8?q?1767438108626218507?= Following the BSP, disable the RETAIN_MEM and RETAIN_PERIPH bits on gcc_gpu_memnoc_gfx_clk. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm6125.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/gcc-sm6125.c b/drivers/clk/qcom/gcc-sm6125.c index 40ad062d1bf7..ea1d567c7994 100644 --- a/drivers/clk/qcom/gcc-sm6125.c +++ b/drivers/clk/qcom/gcc-sm6125.c @@ -4162,6 +4162,10 @@ static int gcc_sm6125_probe(struct platform_device *pdev) if (ret) return ret; + /* Set up no PERIPH/MEM retain on the GPU mem_iface clock */ + qcom_branch_set_force_mem_core(regmap, gcc_gpu_memnoc_gfx_clk, false); + qcom_branch_set_force_periph_on(regmap, gcc_gpu_memnoc_gfx_clk, false); + return qcom_cc_really_probe(pdev, &gcc_sm6125_desc, regmap); }