Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12198080rwl; Tue, 3 Jan 2023 10:25:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4t+MeMG0HZo3ZZdlaBzVQpGfwBXiM7LT53TeN+sdMVoy4ylx1dgvTM+U8ilsvffuLs9+u X-Received: by 2002:a17:906:a38f:b0:7c4:f348:3b1f with SMTP id k15-20020a170906a38f00b007c4f3483b1fmr39369259ejz.44.1672770345953; Tue, 03 Jan 2023 10:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672770345; cv=none; d=google.com; s=arc-20160816; b=PcOTuL6A7Hey2lfReZz4DNJ+FpFXZwCTAdSANcBE3CUr3nFxEIzDY4aSu/2w9p0WmD byoUBmE4bD1M6MJLA+qe2m/e8ydajeU+9taRo0rg/bi9NStt5tj4IbYUBmticCdAf0qu 8prC8BXVRFxULOsBGG9TFh06/AqCJ+pVuyoKkn0/HbNMBmJnDkDdrPLKasNuXwhYfQuJ sH9N3sqrTxFxH2hEV085504cfb8Oj4M78KlRunhxb3cCBrjcPk+tS3NOAkcb/wCkXP5V btWosWRCX5m4kIXZoS7EpjnM5aBJNmJDga4iuIDjuvBb8Z71kDjfa2FRhzAJ/EtrQ67B hokQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g9TS4SJ+83/pLOhWHZLdZeC8hyETp6X/nWYIPMtmOR4=; b=YroCTO1DXy37nH07rnuTF2jgzmuRkWDTYXlVIgJrkM7rhcv9Re5S3MZil8Zdbyn6Xs 9qzbw0Oq7vQcuE+T3j6mIy3Bu1gbiz88cLk86s4upVs9xHuh5tMWrEHQc6ywH8BOlgwH kKB5QpX26xj5kFH2QxsxajCs7Flo0AjTixaM5lvpTtizrVfIU8U29RLxHbjGYoL+e0Ub LGFiqdkC8T3FcHkRdaEJQdqhln3VQE6/nYg9DLjp6LJRc+sfZTR/jA9eUXEIfXHjAFKT KJq+DPHY4D/vriMohrX48xFDoShO7h0BeaT5j4XXUu1Ui5S1fTM43iyv+Su11t3YzS8W ff8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IkOm6cg4; 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 cs17-20020a170906dc9100b007acbaeed9besi30725767ejc.398.2023.01.03.10.25.30; Tue, 03 Jan 2023 10:25:45 -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=IkOm6cg4; 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 S238097AbjACRbQ (ORCPT + 60 others); Tue, 3 Jan 2023 12:31:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237814AbjACRbL (ORCPT ); Tue, 3 Jan 2023 12:31:11 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DD4D4B for ; Tue, 3 Jan 2023 09:31:10 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id bt23so29943745lfb.5 for ; Tue, 03 Jan 2023 09:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g9TS4SJ+83/pLOhWHZLdZeC8hyETp6X/nWYIPMtmOR4=; b=IkOm6cg4jYOgHWBc6tW60dORhiFerv+60CiD0QP/aXBp99xSxeTJHP0DPza2wff06c XDPftLeO6i+f7+0gyK8yjpHzFjfciBPgG9498Xek8cgUWHvmkU0OuaDCFGUPNdVsh1M7 quk++8SC5kADnH8sBQsWNwc5kDAX796QHWHRr8mg230oSJDQSraYuZutC+63wPPkdi/c V1a7dQ7L431jGAN8ch4PWDTB3gM39H3Fz9E9pTfMmk2f88u2KoTf0NBE7ZKykHMv6ZDh 2FGehtczs1D8bUjJnuO2fAQK6lGE5TGxnBRZiuU17k3DMZWqBR/l+Qet7xxZ5Qdai+wP ctMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g9TS4SJ+83/pLOhWHZLdZeC8hyETp6X/nWYIPMtmOR4=; b=kkdwndXgeivAmLFww8o1EbmexZU3Ey8Da9VdC8XJR15fbh4RhAjgZwwUrFJhkU0iMZ 6W2MyRx2/yVmj1SWEs4Mp8bTuec6Uz62Ds2JlBRFliBd20gTaYNBbcW51HEuv2BKedyM XeKi7Z7xleeySg40Sh54Diy7Y2rPg9QQ0XMKwtsJUetiaRwmdGJzS1bJ3x6k3ol0j9hA fsUVoCp9hXg65xkwe2rjWvSO0sr+GKgfF2JpKQx67k7P8h/lK7MYDx1EikqW4YgQobJV jpJBHS/wWMUXZ022C3ymOs8mDiMsOWmhjdYgPkAZ2B9TAK36qxq0jwEL2juZ3Ruh+rzy PhBg== X-Gm-Message-State: AFqh2kplFpSSt4P2u78AanLI7loXAsqO9i6TNuoHccfvedckbSVegzk3 +HtMZT+BmH1VhePHtIr/clZKGQ== X-Received: by 2002:ac2:498f:0:b0:4a4:86ff:9562 with SMTP id f15-20020ac2498f000000b004a486ff9562mr13562225lfl.38.1672767068622; Tue, 03 Jan 2023 09:31:08 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id o9-20020ac25e29000000b004b4b5da5f80sm4916818lfg.219.2023.01.03.09.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 09:31:08 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Georgi Djakov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno Subject: [PATCH 2/4] interconnect: qcom: rpm: Set QoS parameters regardless of RPM bw setting Date: Tue, 3 Jan 2023 18:30:57 +0100 Message-Id: <20230103173059.265856-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230103173059.265856-1-konrad.dybcio@linaro.org> References: <20230103173059.265856-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 QoS parameters and RPM bandwidth requests are wholly separate. Setting one should only depend on the description of the interconnect node and not whether the other is present. If we vote through RPM, QoS parameters should be set so that the bus controller can make better decisions. If we don't vote through RPM, QoS parameters should be set regardless, as we're requesting additional bandwidth by setting the interconnect clock rates. The Fixes tag references the commit in which this logic was added, it has since been shuffled around to a different file, but it's the one where it originates from. Fixes: f80a1d414328 ("interconnect: qcom: Add SDM660 interconnect provider driver") Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/icc-rpm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 06e0fee547ab..a190a0a839c8 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -252,8 +252,10 @@ static int __qcom_icc_set(struct icc_node *n, struct qcom_icc_node *qn, ret = qcom_icc_rpm_set(qn->mas_rpm_id, qn->slv_rpm_id, sum_bw); if (ret) return ret; - } else if (qn->qos.qos_mode != -1) { - /* set bandwidth directly from the AP */ + } + + if (qn->qos.qos_mode != NOC_QOS_MODE_INVALID) { + /* Set QoS params from the AP */ ret = qcom_icc_qos_set(n, sum_bw); if (ret) return ret; -- 2.39.0