Message ID | 20230811-topic-icc_fix_1he-v1-2-5c96ccef3399@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1102186vqi; Fri, 11 Aug 2023 06:39:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7ENKtNhG7HgzbP2iEjrT2Qi11XePvMMaJFxS6YeTlmgG+PladzoWYzGVl3WjR5iyfesGa X-Received: by 2002:a05:6a21:61c:b0:13d:6c5a:1887 with SMTP id ll28-20020a056a21061c00b0013d6c5a1887mr1796769pzb.20.1691761173741; Fri, 11 Aug 2023 06:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691761173; cv=none; d=google.com; s=arc-20160816; b=ye1OqHVEn4H6sqLH1YQbu5RCJm8qfQKMAT0MtiIJ+OrNmBXC2XqfwRljhjtj0JaTAJ F2DxNiDYqpRcobNDbsscTScwkkBFwS7RLAX3d71NDSM+mmq0Y8jZoTx8rmDM+o2Z5RXp 56IfLJmMuf4dKRB8ZWNrB9T26WXoqiJUZ9JQcEkyQY0y5GWkbjbedzhHH3opRXqiePJU ggdyykWhuU9y22TtqwBrCgWbNJVoTDiGf/VF91mJRxLMAOzWrD0XGuXUnKD7XbCI7OhD GdOCJ+MUdy/ubbsAhaV7CYn9UNNQL/VaYzi0VDulZR8K/YN2evNeyBebrp2yaDTfjHDL UnhA== 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=Ch1MMPzXxt2ZLlG7nltXMcHjVLEaj7rMyA9/R+Q9Z3Y=; fh=bWvamGpdkNoygqK2bxbdJkVNNi/JSwlzeYU8Un6dbCk=; b=I62E3O0fwKiN8FTHQWqE/vCfdcA6ToEV4bj67vUmzb5WgAzo/OiSB4/NzO5Rzqj7QJ bjv0mQ60bO7CEkwdQeUpQorqdnIK5Yb4uQmxQT0ByEW9L4mmt72DHKx8BKa84CLVijLn EsHKpy0btDoIho26HSPg9souo2LwFdj//yHP4iq+/4yhQZnbENDSfGJGwXY8Cb1qMjxf Z6fNtqYYVi3ZVPXc0NYnfSQSv/Etal0MKy5aHm5VoW6YQwK8TMbydhKvbAfFqnSlwmfv cfOzN3fHP9Aqd8wkiJ9rEJarK5qFcjpeF3ccoCWsiHrRClLR8tlvNHXBCS6h7VjG806S DpZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oeoNxyzU; 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 cw6-20020a056a00450600b00687a1406b9bsi3376193pfb.30.2023.08.11.06.39.20; Fri, 11 Aug 2023 06:39:33 -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=oeoNxyzU; 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 S235777AbjHKLze (ORCPT <rfc822;shaohuahua6@gmail.com> + 99 others); Fri, 11 Aug 2023 07:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234448AbjHKLz0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Aug 2023 07:55:26 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86B5121 for <linux-kernel@vger.kernel.org>; Fri, 11 Aug 2023 04:55:24 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fe0fe622c3so3049032e87.2 for <linux-kernel@vger.kernel.org>; Fri, 11 Aug 2023 04:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691754923; x=1692359723; 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=Ch1MMPzXxt2ZLlG7nltXMcHjVLEaj7rMyA9/R+Q9Z3Y=; b=oeoNxyzUCf/7wTNdJY6f32WjV37AuuwyBZga1pT/Vxsyaq7xfywmkt9c59bHuAf6hE nvDCDMSIbVhuTykuD24U0eXWxmHvkSQ/GCgaM9q5vz9gX7MaE6/Y9CgB5cgTyx5USUmM d54N90N1LVZnrVnUPmlWeH52bp8QU+LXy1GPEHV+p07/F/4mkwc7uUp6lUwKSG9Ivps7 9OUk6s30Y55GTUmWqKTmfKi2Sf3UGGOUT7jH9dwgGGlES2Nc5posp4ZQ1poNWeIzp58V Rw/eunQPHMaXzpf9MUXpP5pdFAg/noTjajEOYWhQYKGk7b6Hiw90keq4TVdK3eBwJthC mxEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691754923; x=1692359723; 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=Ch1MMPzXxt2ZLlG7nltXMcHjVLEaj7rMyA9/R+Q9Z3Y=; b=AlaPxNo28D9JFLU8dgtwyAUlyoJbnQxM2xxTHWbuA74197vyNQ4ISdTy255JMkIpwA vFs02sQ385IyAKK7gg8JoDLKU1WTjvylXDlgA9N9A/a9Sb+FPxzq2xLI++Rmro/y73vA YLh/9qmzJBvJPZqDDbE9+O3s/QR31YRPsGlaGYWgLiccCzRNbICitSks9eHi+/EUouu9 jeO3Df+1d149vLoC7mzs0SSakGTkcyxEeGFD5qP6NLsmRBcaQjPkDnBcw5iH+2mGF1TP qPPU0/MpaEtgCx50TAFIy8dejsmWjvLEDc0jeyp5TZdsE/udK5J5Ddmp3vfGQe4ojnX5 n7uA== X-Gm-Message-State: AOJu0Yw5+TEveKQW47iVY7pRmp3SmdKyaPecSa7Wk6oXQjDQtLmdOGn7 NBop8dEaWPXnVGNIaBnkPTxw+Q== X-Received: by 2002:a05:6512:1154:b0:4f8:5885:61e with SMTP id m20-20020a056512115400b004f85885061emr1303842lfg.40.1691754923165; Fri, 11 Aug 2023 04:55:23 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id b17-20020ac25631000000b004fe4a4c61f0sm691729lff.191.2023.08.11.04.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 04:55:22 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Fri, 11 Aug 2023 13:55:08 +0200 Subject: [PATCH 2/2] interconnect: qcom: bcm-voter: Use enable_maks for keepalive voting MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230811-topic-icc_fix_1he-v1-2-5c96ccef3399@linaro.org> References: <20230811-topic-icc_fix_1he-v1-0-5c96ccef3399@linaro.org> In-Reply-To: <20230811-topic-icc_fix_1he-v1-0-5c96ccef3399@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Georgi Djakov <djakov@kernel.org>, Mike Tipton <mdtipton@codeaurora.org>, Neil Armstrong <neil.armstrong@linaro.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Bjorn Andersson <quic_bjorande@quicinc.com> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691754919; l=1365; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ooKoWDrIZBGoRmYbzBT936ZVDY0VC6/O2RuTPuEpqXc=; b=tWCHfvHPwWdJ+l7tj7scfETlbh3LpPB3jM6S4mCR0aIO+zrEmhfuWOqfuwneYYhij6dzsCNvi Cy/1avBW7rKA2app07sfTr621oIoFoYrJIqh+oReAI5Z/rxilUUBNQM 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773940164563923040 X-GMAIL-MSGID: 1773940164563923040 |
Series |
Improve enable_mask handling
|
|
Commit Message
Konrad Dybcio
Aug. 11, 2023, 11:55 a.m. UTC
BCMs with an enable_mask expect to only have that specific value written
to them. The current implementation only works by miracle for BCMs with
enable mask == BIT(0), as the minimal vote we've been using so far just
so happens to be equal to that.
Use the correct value with keepalive voting.
Fixes: d8630f050d3f ("interconnect: qcom: Add support for mask-based BCMs")
Reported-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/interconnect/qcom/bcm-voter.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/interconnect/qcom/bcm-voter.c b/drivers/interconnect/qcom/bcm-voter.c index 82433f35717f..a28b87eec3da 100644 --- a/drivers/interconnect/qcom/bcm-voter.c +++ b/drivers/interconnect/qcom/bcm-voter.c @@ -78,10 +78,10 @@ static void bcm_aggregate_1he(struct qcom_icc_bcm *bcm) } if (bcm->keepalive) { - bcm->vote_x[QCOM_ICC_BUCKET_AMC] = 1; - bcm->vote_x[QCOM_ICC_BUCKET_WAKE] = 1; - bcm->vote_y[QCOM_ICC_BUCKET_AMC] = 1; - bcm->vote_y[QCOM_ICC_BUCKET_WAKE] = 1; + bcm->vote_x[QCOM_ICC_BUCKET_AMC] = bcm->enable_mask; + bcm->vote_x[QCOM_ICC_BUCKET_WAKE] = bcm->enable_mask; + bcm->vote_y[QCOM_ICC_BUCKET_AMC] = bcm->enable_mask; + bcm->vote_y[QCOM_ICC_BUCKET_WAKE] = bcm->enable_mask; } }