Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7864332rwl; Tue, 10 Jan 2023 06:21:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXtKjo01zfx92nE9e9SLyLCXSZ2HJR2AdJHd8osYZvwl/GW2ejy45bGeILZrZRl7PF1+ucjg X-Received: by 2002:a05:6a20:1455:b0:b0:7873:dda9 with SMTP id a21-20020a056a20145500b000b07873dda9mr104685406pzi.3.1673360513645; Tue, 10 Jan 2023 06:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673360513; cv=none; d=google.com; s=arc-20160816; b=iDYrVXWzpsNKVeGa3c3y6Q+tKrsHYa4itcATPbjxM6515LMDfpaQcjqvtaRpY6rNVt kW5qujHKXA3pJkROY5DlFDXFN5w4fXi0DY99/yseP5iuBzCvuGunEzLdVouDUG9bhFsm FS5/J1//j4sawHxHOrLMqdr4MaewBgmXClHbbxsxOPkz1Kmk34Cm55Fy6keaNaNJszMd ytTls+ycd1euCjii0s5m1SC3VkPemMKl7vMQRAGPwlu+2dZMGmQZXVbWeGQznaHbF6zD IazHwy2CYZKHZfvVHJfQeKRZKOX00fvJ38plB9GDDGt4m92cnmvD5btekXf3/4L9wCYm PxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CCLXjJDBA/yZy5Qm5n4xkawhrlKWWq87IS+X7t/wE4c=; b=acfmDWVezOOAVEj4984m6BRYpvfd8x0Pt6lWAQ7EgYDyMmOpVE6X5QTkb4dOEmPMqz z+n6vFrhn4UIzkv5ow3GaOSljKIqkHm9geUjbiJHbDlNcByK70wKSq3n2XWyfsprdjEL xAU/h9HB5+zsrNOG6+fOdTR1+u/SpQy4joRK51Vxx/AXi/oVJ3XtD6IPQCdKIbuAG5nK VRP35HfLZNtBEZ1BOeFSy134fT4vwVpzILynL4aoxOQW0dhM9AphHvZFnnd7Yw77cf4h 64v3fdvBVdANnwP8Eyv2OHe0+ebizQdofCz/xbUElDhoEaM6y1DjOfdFhHcwN6dcN9RG ADeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h0+DYlL0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a63d00d000000b0047702d2fe08si11620506pgf.493.2023.01.10.06.21.46; Tue, 10 Jan 2023 06:21:53 -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=h0+DYlL0; 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 S233634AbjAJOBY (ORCPT + 53 others); Tue, 10 Jan 2023 09:01:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232982AbjAJOAz (ORCPT ); Tue, 10 Jan 2023 09:00:55 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CD32EF for ; Tue, 10 Jan 2023 06:00:51 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id g10so8863346wmo.1 for ; Tue, 10 Jan 2023 06:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CCLXjJDBA/yZy5Qm5n4xkawhrlKWWq87IS+X7t/wE4c=; b=h0+DYlL0hvt4o0qrTP2PPem00/rHncpdOTcyHrcNiwxFBkvex3AQwp+6jf/jxw8gND MUm6aOk1+5x7BlDbNZvS2g74ShAcmMSFAeJyO1gRoYNgf7jO9toL9VrFSVg88mNenkzB 2oRZQ/LRp0EoAzsm1ThudPb/AzQuel+2CaN2gZP3j/tkkKx+I1br5nZB56ovh1aoyXYH b+cVRKeeXzWtCe6YboaJinc8KI2AJh49Ny3YQBpFjASNTeONRKLDhfI6LHxYd8ukUAUW Gc8lXMoCBjKMtgRsuKu6RCTlhr+rEfucOnvO4K1Q6NSHgaC+lg9AxJ2/MQ+MLMySR2Vt 6A6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CCLXjJDBA/yZy5Qm5n4xkawhrlKWWq87IS+X7t/wE4c=; b=DhqkU1go1tekm6oJdJUnPVTubANHzCHDXViLAh5fydxrj5uWgEvcmV8MC2srREUahn /A5sjBR+061+x7tzQezxQkAkBnyQVN+opYkAUs68MeEYQZIXYcvHbA/iw2u9aO3znpAM Z1Xr9EyaO/Gkk8DzuxhPYy4y9Kgq6G/3NjUbCdukzLy8N1x/GGvRgk34MxWvDExVKMRW KIsxFLaOCH676SPbLDTJdN5zgfcjlH8DrNIbkEHVJQb02roBpa2zcY0VGRcA15m+HWgf wm2jIvpjSRBdTu4yq4b6GXcIaG9ym2QRqGege9CAzkK96CSSwwK5E8tm4uFELWE2+6W8 5G4g== X-Gm-Message-State: AFqh2ko5C6hkgxQZg4651LGVlSep2pobJPuRx4OJF94Z3Sv0S9YLcbOr sBBwz1EiAxBJnuCLd1Pb3ILpsA== X-Received: by 2002:a05:600c:348b:b0:3d2:2a72:2577 with SMTP id a11-20020a05600c348b00b003d22a722577mr48383078wmq.27.1673359249302; Tue, 10 Jan 2023 06:00:49 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id p21-20020a7bcc95000000b003c65c9a36dfsm14631018wma.48.2023.01.10.06.00.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jan 2023 06:00:48 -0800 (PST) Message-ID: <1039a507-c4cd-e92f-dc29-1e2169ce5078@linaro.org> Date: Tue, 10 Jan 2023 14:00:47 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2 01/10] interconnect: qcom: rpm: Don't set QoS params before non-zero bw is requested Content-Language: en-US To: Konrad Dybcio , linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Georgi Djakov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230110132202.956619-1-konrad.dybcio@linaro.org> <20230110132202.956619-2-konrad.dybcio@linaro.org> From: Bryan O'Donoghue In-Reply-To: <20230110132202.956619-2-konrad.dybcio@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 10/01/2023 13:21, Konrad Dybcio wrote: > Until now, the icc-rpm driver unconditionally set QoS params, even on > empty requests. This is superfluous and the downstream counterpart does > not do it. Follow it by doing the same. > > Signed-off-by: Konrad Dybcio > --- > drivers/interconnect/qcom/icc-rpm.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c > index df3196f72536..361dcbf3386f 100644 > --- a/drivers/interconnect/qcom/icc-rpm.c > +++ b/drivers/interconnect/qcom/icc-rpm.c > @@ -191,6 +191,12 @@ static int qcom_icc_qos_set(struct icc_node *node, u64 sum_bw) > struct qcom_icc_provider *qp = to_qcom_provider(node->provider); > struct qcom_icc_node *qn = node->data; > > + /* Defer setting QoS until the first non-zero bandwidth request. */ > + if (!(node->avg_bw || node->peak_bw)) { > + dev_dbg(node->provider->dev, "NOT Setting QoS for %s\n", qn->name); > + return 0; > + } > + > dev_dbg(node->provider->dev, "Setting QoS for %s\n", qn->name); > > switch (qp->type) { I still think you should include the original logic on the else, for the minimum case of silicon that predates the 5.4 kernel release. /* Clear bandwidth registers */ set_qos_bw_regs(base, mas_index, 0, 0, 0, 0, 0); Either that or get the relevant silicon engineers at qcom to say the host side port write is redundant. --- bod