From patchwork Wed Nov 1 09:04:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13442631 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 B1C9FC4167B for ; Wed, 1 Nov 2023 09:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233230AbjKAJEe (ORCPT ); Wed, 1 Nov 2023 05:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233002AbjKAJEc (ORCPT ); Wed, 1 Nov 2023 05:04:32 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C412101 for ; Wed, 1 Nov 2023 02:04:23 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-543c3756521so183881a12.2 for ; Wed, 01 Nov 2023 02:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698829461; x=1699434261; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xAgADHr8F66v1cbu28V1cj8/cSQmipxI6WLHMltxgpQ=; b=RPSn18fzes6e2b/JtI1UvjoemLWI/NDclJQkEyBCcg106ZoS0agTlS1IUNIRQ9K8DX d6WW60yDjWgS/M8oWXq++0gKJWyk2aSME2w0FiDUKeT6XLNwlTMW4q0GGU+Cd2ZHWUNt Uy9sD0SObPcfvy5HvQlK89eEf7IUPqdXyyVBi7zbxQt+csgjAiDmmxiUDRu4LCKwRJQI 9l67Tq+1xs3oWApsf59egESXDWVPRwwPy531padYqlioIYze8l2KkWoThTT0nXMHvJWw aw7cmPaE/0eEwx4E9fz2KrMKSkE/wkztaVUnC0shoIElApy2fxqBDYoPZMRBw27c4cOb 3BNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698829461; x=1699434261; 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=xAgADHr8F66v1cbu28V1cj8/cSQmipxI6WLHMltxgpQ=; b=qZV0CR4x+IxMFhhFbw5u3RhqQAFZl1p+TLeoCSvM3pcLn8hoxOhDA2r+PP85isuh3t W9XJ7Clxd0aKK5AzkGPEI2Vy5BiiWnP7LaYjgwEwkXGNQ2ZIALSEA0i44w/jxH6o2q1u xxSrpPRMJsBKErsPBjmQv+Qx6GpvkSaRG0JtYFL5yB/YT7g5SmesVFEAgicrFmQm7b1K 8M31gjODhyHNv5UoboW+dVn6/pCrVDMTdjkJpJH63KSPopMddhtqiIovWrtTphVAixtw oszLN7pC05Ug1JGCJYtb57U+5vKuTIvrtLT0h6vx6nD92aQDpECyYLAMg5FY88ZC0bvq b7fg== X-Gm-Message-State: AOJu0YxcCLlvRZm9V05fs5j2sVIJdJGu9hMafSpgV9J2jc0fp5yq25/U 2g11p+TIsAfFNjO8ibBVpPSp9g== X-Google-Smtp-Source: AGHT+IG/oxz6Hjy41Gw/rCWlijHAqZQYXIkwi5awktL6htxV3fZ98awAExkMrsPT43rS0fRw5YRBGg== X-Received: by 2002:a17:906:dac4:b0:9ae:5120:5147 with SMTP id xi4-20020a170906dac400b009ae51205147mr1491707ejb.38.1698829461446; Wed, 01 Nov 2023 02:04:21 -0700 (PDT) Received: from [127.0.1.1] ([86.122.213.220]) by smtp.gmail.com with ESMTPSA id l25-20020a170906a41900b0099cd1c0cb21sm2152781ejz.129.2023.11.01.02.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 02:04:20 -0700 (PDT) From: Abel Vesa Subject: [PATCH RESEND v3 0/5] PM: domains: Add control for switching back and forth to HW control Date: Wed, 01 Nov 2023 11:04:06 +0200 Message-Id: <20231101-gdsc-hwctrl-v3-0-0740ae6b2b04@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIYUQmUC/x2NsQrCMBBAf6Xc7NGkAQdnuzroKA7J5doENNVca YXSfzdxfPAebwPhHFng1GyQeYkSp1TAHBqgYNPIGH1h6FRntFYaRy+EYaU5P1GbQWm2R0XOQym cFUaXbaJQmw9Nr7b6bVixBtV5Zx7i93+8w7W/9ZczPPb9BwrOThaJAAAA To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: Taniya Das , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-media@vger.kernel.org, Abel Vesa , Taniya Das , Jagadeesh Kona X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1535; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=IMghRN0GHIaYwd3qOqpxrh49MQz/bpL0aj591dU6KPY=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlQhSItQu7eU6tRAk2KSC1vO4XZNRtKRF3QXL6b e3vVamqDhGJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZUIUiAAKCRAbX0TJAJUV VvN3EAC4Vw8ic4lltLGvppV48k2HtbT7bCdgtSOVW+ajY/kiMZfMyL43s8U0s/gEHjbfwfn2zSM NZO56shVcbFdLo9kwMKpVC3+3J4qK74vSgNl4nIPvOxUP3toZMPNN/ouOs4OTkvRAe6ZcM7yqjd 7coaHqfKqDtcCAprgnpRN1A1JxxdCrapM3IYAxeZkdVecSR4OeazJAuJ1n9k4a+RFm0uDy3mnBg MK4YhSfRGdq5R2xzI5+KaFhNlFQ4tF6EeS31fDsH0DRpjibsezNgtZi8MrtoKCGUaTOwDCjLwoo QBlL/IdHpMXxU7cWqrnxcsPqBi9k+CjzH5ktI8p8KQ60k/oUoZO0iPCGBnfnPtse4k1Q0MLZOwA sHzLIcam9ZYmVhEP+niuuGQqy+ldNrkJ373/KhmC8xMC6XG8NeQ36ui76dJqfqoqlAlxlCio+k8 HULfB7BgyKd3JDfPVQ0Gh7qgdxTA/qi6v2LE9pyzyKCNUFB4OMoAlfiNMxxZUSDKjYiW+2uboTe NNaDhPdGzpDqDK0NvMBtkTADYzk/EjUz0iN0qMTQkE2tYKztJqZTK0KZX8KNs19J/1lqR7COm4i jLfE4SgOt1BBT74m4et3gDO2p8aETtVHv7lw2U4UBArBSNGqy/oNXMJ35rr1dTUI5nwvT5lwBTs C6j6j5EBRax9w6g== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This is just a resend of v3: https://lore.kernel.org/lkml/20230923115008.1698384-1-abel.vesa@linaro.org/ Signed-off-by: Abel Vesa --- Abel Vesa (1): PM: domains: Add the domain HW-managed mode to the summary Jagadeesh Kona (3): clk: qcom: gdsc: Add set and get hwmode callbacks to switch GDSC mode clk: qcom: Use HW_CTRL_TRIGGER flag to switch video GDSC to HW mode venus: pm_helpers: Use dev_pm_genpd_set_hwmode to switch GDSC mode Ulf Hansson (1): PM: domains: Allow devices attached to genpd to be managed by HW drivers/base/power/domain.c | 84 +++++++++++++++++++++++++- drivers/clk/qcom/gdsc.c | 32 ++++++++++ drivers/clk/qcom/gdsc.h | 1 + drivers/clk/qcom/videocc-sc7180.c | 2 +- drivers/clk/qcom/videocc-sc7280.c | 2 +- drivers/clk/qcom/videocc-sdm845.c | 4 +- drivers/clk/qcom/videocc-sm8250.c | 4 +- drivers/clk/qcom/videocc-sm8550.c | 4 +- drivers/media/platform/qcom/venus/core.c | 4 ++ drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/pm_helpers.c | 47 ++++++-------- include/linux/pm_domain.h | 17 ++++++ 12 files changed, 165 insertions(+), 37 deletions(-) --- base-commit: fa7d0c17278644aa691f96d08bef8001b762f9cd change-id: 20231101-gdsc-hwctrl-13f01ea60cbd Best regards,