Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4523802ybc; Tue, 26 Nov 2019 10:13:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyS5z1plQh25F7danrsUJeP8K9vpfKpFLtiOL0T55KM93cFCkGx/WiKDHGO+FCK/0QJKYf9 X-Received: by 2002:a17:906:80c:: with SMTP id e12mr45195474ejd.59.1574792002063; Tue, 26 Nov 2019 10:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574792002; cv=none; d=google.com; s=arc-20160816; b=cag5K7p0jATa68cveVcE3JnN4LTGh6KSj+0LaxVNQKdxaNb3egGVpYh4cOwXpwQ69E 4uMERfbvjM7E/go5sqqwM9GyBQ0wOxtrTHOdpBcbMs9ojO2iaIbyP26ltPnM1bk5Cw2N v0QHebYjSwWTdeodGjJnZ3sEAa5MqtI0aSWGMLfMpoVC0/6XQc4qISHZpIVi7QbhH9TN 0PgwpN3ArbXlg2i68jtK4cPQz7ORdeOmBWAQnwMMbxVmKQjXEA1S0jVbYfHa7xrBxPZX lyVnwb0KV+XKAZwkx5gG2Eg83i1NVMl+JGccvKroO9gxUhbELSvy8rY2V/JgSsjEq1qi 4E0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GrPJpcv2kAoZ7Pa5wFmqJ26HHkHbC+r60z5zGkgeTlc=; b=f54p/UXameTh1B3eNyIAbj2FFotpjNJ8Mi8E6+qxq1DlUkRajIkZd5cVutHcOMqUlw N1JvgfE9v5wBSgitC+u+9PMCi9hEwVdKyARfj54FG3l5L7tAam3oiJfbujAfZPIP8RDM uaOdJ7UtUEyAAIQI4nl0VpO2x2OYxR0H+VcQ6jhW+ewdJEqsR61cMrPO088e55WP4kvf g4Pm+6nqZG5GkXE5k1oAqp49FRdNVKs95EGBIrg+Tb+DVbTe65Lat1cC9UCVPBBJ1R36 bd/RoRHDtEQCDrsbBegF9OmG9zBcZhu4xqQhSoxxP0sPw3kHQjLHqSC2gO0pLxROVQmx g18A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FSuf+eIj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21si8674551edb.180.2019.11.26.10.12.53; Tue, 26 Nov 2019 10:13:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FSuf+eIj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbfKZSLf (ORCPT + 99 others); Tue, 26 Nov 2019 13:11:35 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40677 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfKZSLf (ORCPT ); Tue, 26 Nov 2019 13:11:35 -0500 Received: by mail-ed1-f67.google.com with SMTP id p59so17266219edp.7; Tue, 26 Nov 2019 10:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GrPJpcv2kAoZ7Pa5wFmqJ26HHkHbC+r60z5zGkgeTlc=; b=FSuf+eIjU3TVKhG5wdERqGRJHInyQ242QsArJiIxTXaO8NkLp8PHC/W0qznac8Bmdq zGrAW4QDMSJb/t9Mw60jLTMBeLECvQkTBdFmW5XYMUiFLKGxBURKYeho2WeWW/pvg/gT XKdiuDXkxT+gFJQbFXPcUWaASAIrsNWLhA7KNOyIuN9P0R7Caa5Yk8GLx0NrtRTWHhH1 Iix6d8bsDgKHiQogZWKRPXH5lp/IXuiUKOBnEGnLW6QQ8MtYDzzas+6hng3h91spr8Mx 9oYUVNU7ssTmVKPwyXRcAKDAFzylH77UGVf89YdyNumOq1iIGNllnoL/xFByP/CcN/qG kf5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GrPJpcv2kAoZ7Pa5wFmqJ26HHkHbC+r60z5zGkgeTlc=; b=DLJhPvnEgOir0TcJDxVid6tVS7xikOI/beaAbRX/6O50nb26J1L7pOHA9d6J7tT6+N PWX4bYSdrGT+bFVI9Cpnu1Q10BQfuWmCbLMFwChdrjc181E0YTGllbIMmxv8piAl8KL8 fd/pNEgMBr7lgs6ADP1wyKQ6TMVOEV7HNwvTYSLUqMNDCwLh5SCxFhs+gBBlrS7Xi0SQ 78ZWUHkPMq+E6JharjgZV/LXd9Nccj2PlhBhGfPNRUuHqphABiGV5d4leLXRKw7OxKQM IRlulumxXC7WmAYZzNbCj+lJ+3pN2KJWQY1aeM/bEbzUFmWD3XRJEBl69bYwLOmFzIZa Mh4Q== X-Gm-Message-State: APjAAAXVYOFtna2xjqBwGMNuTVGbYtHnJrr5xuMryInin7AFoRhbnCVA Zs+G+P4t3O5rivHAzl+bR9LJ9t+mjlg6a62harAXeQ30 X-Received: by 2002:a05:6402:2d7:: with SMTP id b23mr1048647edx.272.1574791891717; Tue, 26 Nov 2019 10:11:31 -0800 (PST) MIME-Version: 1.0 References: <20191126153437.11808-1-georgi.djakov@linaro.org> In-Reply-To: <20191126153437.11808-1-georgi.djakov@linaro.org> From: Rob Clark Date: Tue, 26 Nov 2019 10:11:19 -0800 Message-ID: Subject: Re: [PATCH] clk: qcom: gcc-sdm845: Add missing flag to votable GDSCs To: Georgi Djakov Cc: Stephen Boyd , Bjorn Andersson , Michael Turquette , Andy Gross , Taniya Das , anischal@codeaurora.org, linux-arm-msm , linux-clk , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 26, 2019 at 7:34 AM Georgi Djakov wrote: > > On sdm845 devices, during boot we see the following warnings (unless we > have added 'pd_ignore_unused' to the kernel command line): > hlos1_vote_mmnoc_mmu_tbu_sf_gdsc status stuck at 'on' > hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc status stuck at 'on' > hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc status stuck at 'on' > hlos1_vote_aggre_noc_mmu_tbu2_gdsc status stuck at 'on' > hlos1_vote_aggre_noc_mmu_tbu1_gdsc status stuck at 'on' > hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc status stuck at 'on' > hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc status stuck at 'on' > > As the name of these GDSCs suggests, they are "votable" and in downstream > DT, they all have the property "qcom,no-status-check-on-disable", which > means that we should not poll the status bit when we disable them. > > Luckily the VOTABLE flag already exists and it does exactly what we need, > so let's make use of it to make the warnings disappear. > > Fixes: 06391eddb60a ("clk: qcom: Add Global Clock controller (GCC) driver for SDM845") > Reported-by: Rob Clark > Signed-off-by: Georgi Djakov Tested-by: Rob Clark (on yoga c630) > --- > drivers/clk/qcom/gcc-sdm845.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c > index 95be125c3bdd..56d22dd225c9 100644 > --- a/drivers/clk/qcom/gcc-sdm845.c > +++ b/drivers/clk/qcom/gcc-sdm845.c > @@ -3255,6 +3255,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc = { > .name = "hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = { > @@ -3263,6 +3264,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = { > .name = "hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = { > @@ -3271,6 +3273,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = { > .name = "hlos1_vote_aggre_noc_mmu_tbu1_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = { > @@ -3279,6 +3282,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = { > .name = "hlos1_vote_aggre_noc_mmu_tbu2_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { > @@ -3287,6 +3291,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { > .name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = { > @@ -3295,6 +3300,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = { > .name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { > @@ -3303,6 +3309,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { > .name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = VOTABLE, > }; > > static struct clk_regmap *gcc_sdm845_clocks[] = {