From patchwork Wed May 31 13:22:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 687503 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 EE2E1C77B73 for ; Wed, 31 May 2023 13:22:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235353AbjEaNWs (ORCPT ); Wed, 31 May 2023 09:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231651AbjEaNWr (ORCPT ); Wed, 31 May 2023 09:22:47 -0400 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 AD99E98 for ; Wed, 31 May 2023 06:22:45 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f4bdcde899so6549884e87.0 for ; Wed, 31 May 2023 06:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539364; x=1688131364; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=KIZPiJOryrYBNzDV98c5rF00N4czhl7JRYIFLL6eVDE=; b=tE0emTrSm9NQyVenD1GTAkMF6bvCt1cGL00lP46GIgghU5FL+whNQ94bXxDu07Nqmc GKamdIfxvYDEGucW1fWmwZ0eU2CRPwRqfBbdGlNOSbbJ/QlhSj2dNXDQbZe156n4wxZp C6U/8JeNf9MnNOi2hL7jrb69nQ2U8YEf9xiDPBbkOkjOVBVrikwSCXXMHWqy8AbAGD/I mdWQSdcpuCAglFEX78X4Sdr3owhIYl2IK7EtP87uHJwf08xU3LU7FFBo744cTwiBfqPR /F+pyfXakVR1aVmHNcGQpmnxURMi8SPXJPrkzHAAWrqODPGYDZIB7eHGd6GftY+e/byD 19VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539364; x=1688131364; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KIZPiJOryrYBNzDV98c5rF00N4czhl7JRYIFLL6eVDE=; b=kTYIa7bhoxjSSVTAd1LuImAFngdSQLcKar7W0XSoXU4OiGRQPXxIWPoV2MsFvkwUkn e5ebM57e6U2xQcwQVqOYoNOkQ2R6rjP4CfBVAJlWr7xNEi8RL79kb3p7XTR+17csu3O1 zwBIPTWLH9AQHVf0eX13knZrDd0GnbZgrgS1M2g1AEx9fH/On9XuGw7OUKNojpoJKGLw 9qOlwf76Zl504to33XKdcSHiteaPvTjrIaLLAvMOcmX1O7h/f4uk/I62Um9lNQHjLo0O SEfj01ymy3r5O26kY4sRcvV/T1Zol03h2KW8LUIrgfSBw8BDZ+EmGpsMZ3U0+3EC2Iet /BTw== X-Gm-Message-State: AC+VfDwlX2RHTC3RY5JiDD2eP/ChcMgCclctyhLZWA+fyVb/z2fmNkn3 9cdlAODSI8bN7Z0IIGYR+xCEzHLeNdrnVWphrrk= X-Google-Smtp-Source: ACHHUZ69cuPzxgFaBu/ndAZ/Jh0mzfaPzNG2OiEpJsxsJzTr0tCnhuHghDE45Y+hXakMT1wYSGfSMQ== X-Received: by 2002:ac2:4c1a:0:b0:4dd:9a38:fcc with SMTP id t26-20020ac24c1a000000b004dd9a380fccmr2597905lfq.63.1685539363921; Wed, 31 May 2023 06:22:43 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id w8-20020ac24428000000b004eb0c51780bsm720138lfl.29.2023.05.31.06.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:43 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/8] Flush RSC votes properly on more RPMh platforms Date: Wed, 31 May 2023 15:22:34 +0200 Message-Id: <20230531-topic-rsc-v1-0-b4a985f57b8b@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABpKd2QC/x2NQQqDQAxFrzJkbUBnEGyvUrrIjLEGZJSkiiDev aHL93mfd4GxChs8wwXKh5is1aFrApSZ6odRRmeIbUxtnzr8rpsUVCuYeh7SMNKDpgzuZzLGrFT L7I+6L4uPm/Ik5z/wet/3D/m8hRNwAAAA To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Melody Olvera , Vinod Koul , Richard Acayan , Lina Iyer , Douglas Anderson , Neil Armstrong , Abel Vesa , Sai Prakash Ranjan Cc: Marijn Suijten , Bartosz Golaszewski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , Konrad Dybcio , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685539362; l=2037; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JZ68AX9UMXCzwIdH9lqsuXJaapN5UStvCJNTkI8Mj+8=; b=ORTrmJjKqdpwjFR3Ef9AKxSvaE6DTtZc1d7TLHHwp12L0cAOPlIES0MvS3S3LGxSz/AxR4Jmh GOR+J3KZS6GCaEJgQbWBIsWFVAxYV3whdi16uuGo7Fm7luAxpwKRd59 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As pointed out in [1], the Linux implementation of RSC basically requires (even if not explicitly) that we point it to a power domain which represents the power state of the CPUs. In an effort to fulfill that requirement, make it required in bindings and hook it up on all platforms where I was able to do. This means all RPMh platforms, except - SC7180 - SC7280 - SA8775 As there wasn't an idle-states setup (which may be on purpose for CrOS devices, certainly not for Windows SC7[12]80s) that I could validate. (Doug, Bartosz, could you guys look into your respective platforms of interest here?) This series also adds support for idle states on SM6350, as I was able to add and test that. [1] https://lore.kernel.org/linux-arm-msm/20230512150425.3171122-1-quic_bjorande@quicinc.com/ Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Konrad Dybcio (8): dt-bindings: soc: qcom,rpmh-rsc: Require power-domains arm64: dts: qcom: sm6350: Add PSCI idle states arm64: dts: qcom: qdu1000: Flush RSC sleep & wake votes arm64: dts: qcom: sc8180x: Flush RSC sleep & wake votes arm64: dts: qcom: sdm670: Flush RSC sleep & wake votes arm64: dts: qcom: sdm845: Flush RSC sleep & wake votes arm64: dts: qcom: sm6350: Flush RSC sleep & wake votes arm64: dts: qcom: sm8550: Flush RSC sleep & wake votes .../bindings/soc/qcom/qcom,rpmh-rsc.yaml | 2 + arch/arm64/boot/dts/qcom/qdu1000.dtsi | 1 + arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 + arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + arch/arm64/boot/dts/qcom/sm6350.dtsi | 142 +++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8550.dtsi | 1 + 7 files changed, 149 insertions(+) --- base-commit: d4cee89031c80066ec461bb77b5e13a4f37d5fd2 change-id: 20230531-topic-rsc-35e838da9afb Best regards,