From patchwork Fri Aug 11 13:04:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 713414 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76C8BC41513 for ; Fri, 11 Aug 2023 13:04:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbjHKNEU (ORCPT ); Fri, 11 Aug 2023 09:04:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234919AbjHKNER (ORCPT ); Fri, 11 Aug 2023 09:04:17 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B46E26A0 for ; Fri, 11 Aug 2023 06:04:17 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fe61ae020bso3055294e87.2 for ; Fri, 11 Aug 2023 06:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691759055; x=1692363855; 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=dbMy2EJg1/HfJ8Ke6dWMRUTNv1lsrcvmOYBylkeVnks=; b=cyUqTseuMNNavvl/Rf56R/12jMWk/KxToJhWT1aKCbVn8G12AU+iGbiX82IusyF9D1 45wMScJvXukq8y0ACKun8KVS4Zn3UXH+Uj4/OZ0wwQPteEVLaMj0ddWQvbpmkb5DHNje YjgJfOMVr3mEt3nPJTqawqA7eXjJEY186LgIej9dZ5NN+SgPoqIYrwtjYicXgzk7phCv uf7YhwMuy7IFfP8cIexrO4JImuYEjt/bAoUWqaNENTof+8iVn8pxDbW5f4tBVTqLEmmM e+AYLur+r3E+AqgN1JstXHnbvC6PuifjQ7JWFMU8Qbf7XIM0eKFbR3LbYBjUOzNDkznK KEGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691759055; x=1692363855; 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=dbMy2EJg1/HfJ8Ke6dWMRUTNv1lsrcvmOYBylkeVnks=; b=lTudMIUWMHPgckm/o6CTYCxxB/MluiLWNSZriGDZ8lmizgBZUWxzNarKM/acFlvFQV ngE+6NTKJIZEfgCK1kzOjNVGUgZmcd1OJsJfZjo3cLVFrqWoMXBOG7YenItT4g5HFcUM jArtqKNICxDzdiqvETaVukt2/JBrlWUThXLORMpu4Irr1DBTdA8IfpjvvMts3p3Ww+m/ M5L+lLvxpR7qkuycldYMpve0/2EWqvMpbA+f+9gHzaL42PaDedSTDzGew/D09VYoanBI WIxHICB0MWMntk6H8sAB1f5g68PyV3xuWppapyOpk842wb7EYySddAysqLpe4yRywDW0 383Q== X-Gm-Message-State: AOJu0YxNpFYw5/BEr9nkVm+6I7X5Zn6Jng/FPo6oSXAFR/qVU7zYdkaX acPMgQMAg6kjQZyzicmiD75QUBz+bqCF2BFDKs4= X-Google-Smtp-Source: AGHT+IH8g+spn5g3JkwOvSskTdTzBcg7cT0meQQYzOj/nIzMRFE97G/jSwlHnsHCQjk0tArWBlANFw== X-Received: by 2002:a05:6512:3695:b0:4fe:2efa:b847 with SMTP id d21-20020a056512369500b004fe2efab847mr1220902lfs.23.1691759055289; Fri, 11 Aug 2023 06:04:15 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id v20-20020a197414000000b004fe15a2f0f6sm722491lfe.62.2023.08.11.06.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 06:04:14 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 15:04:08 +0200 Subject: [PATCH 01/11] interconnect: qcom: qdu1000: Set ACV enable_mask MIME-Version: 1.0 Message-Id: <20230811-topic-acv-v1-1-a85b6e94f46d@linaro.org> References: <20230811-topic-acv-v1-0-a85b6e94f46d@linaro.org> In-Reply-To: <20230811-topic-acv-v1-0-a85b6e94f46d@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Melody Olvera , Odelu Kukatla , Richard Acayan , David Dai , Rob Herring , Greg Kroah-Hartman , Luca Weiss , Sibi Sankar , Jonathan Marek , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@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=1691759050; l=1290; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DxgRmQ1OzR3nEWUhjrHYmNAELDVHgCeW41xvvvTsUgo=; b=Brnmp31zihvGRHdQEMbXAiTFp8/XbQXmNqHrn0BraTd4gfvMwpceabzhZjH4oCc5MgPNj+se8 AAVUbNkM7FDDZ2unVfhZqE2IO0P4bVYbxHyB/semsAqmH8VqxipCJKZ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org ACV expects an enable_mask corresponding to the APPS RSC, fill it in. Fixes: 1f51339f7dd0 ("interconnect: qcom: Add QDU1000/QRU1000 interconnect driver") Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/bcm-voter.h | 2 ++ drivers/interconnect/qcom/qdu1000.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/interconnect/qcom/bcm-voter.h b/drivers/interconnect/qcom/bcm-voter.h index b4d36e349f3c..da92267877f9 100644 --- a/drivers/interconnect/qcom/bcm-voter.h +++ b/drivers/interconnect/qcom/bcm-voter.h @@ -16,4 +16,6 @@ struct bcm_voter *of_bcm_voter_get(struct device *dev, const char *name); void qcom_icc_bcm_voter_add(struct bcm_voter *voter, struct qcom_icc_bcm *bcm); int qcom_icc_bcm_voter_commit(struct bcm_voter *voter); +#define ACV_RSC_APPS BIT(3) + #endif diff --git a/drivers/interconnect/qcom/qdu1000.c b/drivers/interconnect/qcom/qdu1000.c index bf800dd7d4ba..c504bf348294 100644 --- a/drivers/interconnect/qcom/qdu1000.c +++ b/drivers/interconnect/qcom/qdu1000.c @@ -769,6 +769,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = { static struct qcom_icc_bcm bcm_acv = { .name = "ACV", + .enable_mask = ACV_RSC_APPS, .num_nodes = 1, .nodes = { &ebi }, };