Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp457870rdb; Tue, 23 Jan 2024 05:07:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1NhktBO+gAq2yJD9nQm0f/6XQH3jaPjqlktL0nIZUJWzPhOTTW8KijS6mxYRF0aoqFx9R X-Received: by 2002:a17:907:c241:b0:a30:268f:a6b8 with SMTP id tj1-20020a170907c24100b00a30268fa6b8mr2243730ejc.119.1706015261050; Tue, 23 Jan 2024 05:07:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706015261; cv=pass; d=google.com; s=arc-20160816; b=b3Vw9YGfmwbIC72me1rckKi53bU8QLq7fBFpruUJ5ciTNwb58i3GlE9DMgdMszm4lf O9ZZZfiNeCyLv/Xy0bBwFGWtPhs1RIZYouwZxxIqdCZDIeEGWkUMbmXHUToASw5MlIKj 6S6CnUGsP9vYYS3tEPpoFMyE9tfF1dpUuQez7I+0oy3RbNownZbkbe3fXs5UIa7Lo520 AbTKhYZs+k9U+XPDWKAYhWZOxl7MMgBG4JltTMCSx/P5QREFSBt10OWYNidMS3c8HchG 59j2noNZh9WY2G+5kDqD9So4iBY0EX7QNn9XpYdpv3tV2WBS4vEwjUnoEKcmuMmOrjwq XPNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=3nn+YYpd5382zai0iv6hd4Aw6J6UtUSEjEEQnVFo5no=; fh=1as7hezWf8xF5TqoQvWSbmG0rIK8vt7/iXxTvtzii9E=; b=uD+nN8GZHF4uKR+3aheRZX36JRhRrfhy3JzT5yLaKxP39EGUwjY6hi8kmg7TTmn7xy Bdfrlz+d5rBGPnBgqBYFZR3p++r1PCKD/e4fvoBy+1FNfb9yJLwqAtNnVh3o3pZMqFU5 kEQMGCL0V2jW0jsDsjeeZZXG17SP7bV2Sj2RWrofBxgRat3W80EYrYEfW85qjk64JgnW VnRsxbb9sWs4Ya8X6gzzloy747fi0k36+r74gmNp7ivQgaTlMwEHbsFJJVoeeb5PFcZE Q4H/ysr9FaP+D+KhDgrR/UnNYDKkx6cbAr7AQylMX/Q6ytFp+rl+JFROV2asv2lUjzPc rYkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I9wfgzI6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t7-20020a170906178700b00a28cd92bb7asi12133447eje.832.2024.01.23.05.07.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 05:07:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I9wfgzI6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5C5DD1F24CBF for ; Tue, 23 Jan 2024 13:06:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 763B35F545; Tue, 23 Jan 2024 13:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="I9wfgzI6" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E1365EE87 for ; Tue, 23 Jan 2024 13:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706014866; cv=none; b=nv05dqF0sqoDR2ji3iXtu8uw8n2B+3goelgf3tUJ/SRQ5JEo/T55W1aXvsaEwmCeGSxQxocr9/bvGXg9x6ITwnas080H3F1/9/bzaItKVZrI2Yb91AWeLLde2rbWjec/s4IpYsZt2s1Bjb3CaXUjfROo6BEH2J3l74OmjkYQz/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706014866; c=relaxed/simple; bh=Rhu11kHNwAkr6YhiKhtbh07fNK4FgW0qEO9f97hhyI0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uVc+S5CoU80Q7iyZxx2JEYJtQZElM0GaP0kxYBDcoPuQeexLV5vIEfJUXO0o8yqMQwS9qEtznOe6EudvvuI4WihawUHAaObfEz1Jv9c/ZmC7kL9ustTDfLF+F8jpgjlxyWHVzTj+HAoMLRP5qsTqMEMFvYsUp6XBjkbmFNhjsRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=I9wfgzI6; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5ff84214fc7so40300797b3.0 for ; Tue, 23 Jan 2024 05:01:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706014864; x=1706619664; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3nn+YYpd5382zai0iv6hd4Aw6J6UtUSEjEEQnVFo5no=; b=I9wfgzI6RteeWG1uauP3YOui1uTmV6L6MSgtpnlxpfaDBAP2QnFBqznn72Eo+yVLaw pIIC9TNCz86Gt5KAB1zfMJPV7y+Jlk1c716sywU/ReVSNFeS+NS9l6lRSAdpBfL2vYFI d3ODVcH8eFq31y6GnOUEd+Fd2S/Yx3UJmxAGbjghCrzsGS89jS4Wjfc6GVVE7gN9zg5i hyq1w6lUjh4AfRv1oXv1wCQKHwKRAiV3CvJKNS2dbvPpp0brHUBwx5nVxmOaRM0j3mR5 uf9urjHMPC/lGqq0E9rtKEhSw3opM8+WEBrwPBDzQS+WheRWlzpT9PwJ8bzYKUiHpT3h NV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706014864; x=1706619664; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3nn+YYpd5382zai0iv6hd4Aw6J6UtUSEjEEQnVFo5no=; b=FNTqLkr9boFmn097cJc8zh9S43QA/Qig2xso4z5wkhfxXEywoZQbFgTtXDPU0pSB86 jgse4n4ELSbT6GMGMZfMMyjGMA7NAu5FwU5nmFDoaQx6Uq9RWG1+931nvAlBjx5nN7DO 8ggyPrpoVnIyXy/KUXTwFUft1CqhV+dnptPy/a+ugnG9uCkBrBHWXT0yiey+z6pEh7L2 mNAoBKNRZC1QLq5wHMdgxLPOy236WQyQl9SMMjrO4TIL2IH0rcHsxHjPROGi+utCybuG DgArbQoGWMZ9+rSZ4wVFVQzAjn/jhN7Et7KsMiAMiV0xf/uaGfYi4sAIORdyMGMrl0JQ Cp7A== X-Gm-Message-State: AOJu0Yx3ieAlljY55AyYFpvFeASBt1Fr7eG1CEndxWVjyPaaxGZO99kA 17hUsQpu0GEF9S7rzGcP0JqRvOnMSmVIoSY18yefa0YZyPSg74kpnn5q18HZvNYcW13O7aBNbPe tmPv9AD6gK5WIJJ6f6/zPMI2dRERUy/K1rLmlJw== X-Received: by 2002:a81:48cd:0:b0:5ff:7cca:a434 with SMTP id v196-20020a8148cd000000b005ff7ccaa434mr4298126ywa.51.1706014864029; Tue, 23 Jan 2024 05:01:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122-gdsc-hwctrl-v4-0-9061e8a7aa07@linaro.org> In-Reply-To: <20240122-gdsc-hwctrl-v4-0-9061e8a7aa07@linaro.org> From: Ulf Hansson Date: Tue, 23 Jan 2024 14:00:28 +0100 Message-ID: Subject: Re: [PATCH v4 0/5] PM: domains: Add control for switching back and forth to HW control To: Abel Vesa , Bjorn Andersson Cc: "Rafael J. Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , Greg Kroah-Hartman , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Stanimir Varbanov , Vikash Garodia , "Bryan O'Donoghue" , Mauro Carvalho Chehab , Taniya Das , Jagadeesh Kona , Dmitry Baryshkov , 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 Content-Type: text/plain; charset="UTF-8" On Mon, 22 Jan 2024 at 09:47, Abel Vesa wrote: > > Signed-off-by: Abel Vesa > --- > Changes in v4: > - Re-worded 1st patch commit message, as per Bjorn's suggestion, and added > Dmitry's R-b tag > - Added Bjorn's and Dmitry's R-b tags to the 2nd patch > - Re-worded 3rd patch commit message, to better explain the HW_CTRL_TRIGGER flag. > - Added mode transition delay when setting mode for GDSC > - Added status polling if GDSSC is enabled when transitioning from HW to SW > - Re-worded 4th patch commit message to better explain why the > HW_CTRL_TRIGGER needs to be used instead > - Drop changes to SC7180, SDM845 and SM8550 video CC drivers, as only > SC7280 and SM8250 have been tested so far. More platforms (with v6 venus) > will be added eventually. > - Call genpd set_hwmode API only for v6 and dropped the vcodec_pmdomains_hwctrl. > - Re-worded 5th patch commit message accordingly. > - Link to v3: > https://lore.kernel.org/r/20231101-gdsc-hwctrl-v3-0-0740ae6b2b04@linaro.org/ > > --- > 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/clk/qcom/gdsc.c | 54 +++++++++++++++++ > drivers/clk/qcom/gdsc.h | 1 + > drivers/clk/qcom/videocc-sc7280.c | 2 +- > drivers/clk/qcom/videocc-sm8250.c | 4 +- > drivers/media/platform/qcom/venus/pm_helpers.c | 23 +++---- > drivers/pmdomain/core.c | 83 +++++++++++++++++++++++++- > include/linux/pm_domain.h | 17 ++++++ > 7 files changed, 169 insertions(+), 15 deletions(-) > --- Bjorn, if it helps, I can funnel this complete series via my pmdomain tree? Another option is that I host an immutable branch with patch1 and patch2 for you to pull in? Just let me know what you prefer. Kind regards Uffe