From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 A8FA349F121 for ; Fri, 11 Sep 2026 16:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789143232; cv=none; b=dpQEAJwSL9x+K2jhgZw3vhCIbS8q2nujFtgXgilaL3B55EbiPSiicHW1bQrTLLs/OGfcVOxKuCmu3tql7aLu14U5sSD3YHFlwnJruN8if8hG6WOdn/FMwhSzFHMPYGUFGLGaNFrygWBRt8lHXoWVwTO24M3Ig4wzBK0kyV95K7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789143232; c=relaxed/simple; bh=nViZvjRLJAYmqpZ2v695pR86EYVgDFqOJd6KL6H4ZQE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GiJPFK8yrqBO8aZo5Nr/c/wuY3BTvsLkodyTg5CZe7jsKptuMmnqok1fAqBQZ8pzZvLrwsm6smTav9JlIcHV9KkeX7OZPy8rgvLvvzM1S+/XhgprgGYL/FPwELc5EoG88FLm5/NE7uf75VMQ5tOP3OHeHbxDEUQLFcFE7xudtRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=n+PPDFvu; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n+PPDFvu" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-398c1101c1bso1081460a91.1 for ; Fri, 11 Sep 2026 09:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789143229; x=1789748029; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DgyMvad3ooLpvm/jCLKD7Z6/JEFk0gV7nLYGOHZ1KIY=; b=n+PPDFvuLZtONF09Lb7OaaKopRnHv9cmXKN/QI9F0sOQKks+IQZE3Gbrm4gSawuE/U GHd62DiSTD7Lr6QPh2oimyACJa/fRgrxwz84LIlBUGvGtopHrGJJubVXLVLxEqU3xxki hzSGp6HUKYW7JqJYjGEwPofN2fw638oaiOCyZirHuJcgKtcspZVd5FpTsqSNcnHKC/cm 0AjEHVyo7foz9NkyV3br8hAK8jOBGLmeZDGQOl+AJijFce9BEgZwIBDXT9C6w3sh6qwG hqUydlWr4RvZ5xRfOGJzAcUZhE04CEYktN6FlCdVV8cKsCtlFLlYl2RGnaVEKWn0P7hh 0yBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789143229; x=1789748029; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=DgyMvad3ooLpvm/jCLKD7Z6/JEFk0gV7nLYGOHZ1KIY=; b=VXH7o2GDE7tmyfME0tBn6wXCq7a9BksOOa6FZTq9zYGFj6GN23Hc8hCSZTOUyxoClV FfP8LzjqFlQ7UPHD76HyzzmIUqidOOaA3MYdrYdP+fR1YgJ/daqq5VW/5cfoOI3sUWQx qsN0mQkEJJg5089H0AFAyiVSD21Xh2/CkyMj3Ni7Z3YIdMOQrEKBAOQH6qO6Glwybacc Eps/W9f91/ofywEafxnvcZBDVif6Mtfw3W7llKk6Lrmp2k2GkWNRHO1lQ1U06Xrrzbqa 5HZ8bUXIfuqzePiBr5zU0pG6+zzTncS76mnMxDCDAxM2tlpqQQy17t3nqjbgXIuKvO5X rXdw== X-Forwarded-Encrypted: i=1; AKwUvBzJsa6xkX4MT2X0j/xm6CFHfOLlEejSq9WYs+3a4jJym9o+lS4ne9sqTcfZssyHZfo/82IidaT3OkFccPo=@vger.kernel.org X-Gm-Message-State: AFuF++m61ksgB4Y9QG6Y/5YS4aGbvh7CmmvsNQNE4VXANxwIodlJsfB/ F4BSuS6hqXHITZD/4q3HiA8LVWXiwNIZMMjvqbP7RqvpqBw5zJEDggVo X-Gm-Gg: AYBFou1p40mn/ixV0HP11lYAdYG/hwwi3bQOQw7/hd14vZOpi2qAPzFQc4ZKnbhRkQg l2HxxDOlDks8jXdanbRqys5GadSHTU43yVBbDb8q9JfrxCrtIAlHji1LfFJ7IFSbzZfPRpJSjKY lpJtVIAgYjuCjz58FG0ZAORpJ8bMFUbtLGsszxAVZBXgBgLTQWqgCEroaPOcFHmYfyCtgGcsHCQ T75W6kkTgK7maOl9E/U2ckcsT/Ilsmz+6wc/l35dlYtJs4CP0kD2OO50BIkp8QC15Jdj0m8LPg8 tKPwJy1BRLbPWyDniCNgivA/NOt+9IGfdhN0yIwffneBG1JF98VAOvEYH0LHsUfP5MtJXcXFGdr ecg+WC3ksfAnKhrW0WYtHzueLAloKxyUrgnIRKIC3Q9/hMftHzcJP0VQveFyn57P7kMc8fJ8siW JMW/eN+3oyW08mssB9jVKzZ+ZBy7R3ZOebJw+cnc0ftb1t+TByG2L0i/4QFPUPhrTyHCQpu8+gu IHxKAs1BCS0PUdm/NZo+HyMb0yunE/PVTS6rMF24NK43hLsjQ== X-Received: by 2002:a17:90b:528b:b0:398:9c0c:7c71 with SMTP id 98e67ed59e1d1-39d9c35a3ccmr8571433a91.24.1789143228656; Fri, 11 Sep 2026 09:13:48 -0700 (PDT) Received: from ?IPV6:2406:7400:56:e503:ad72:fda5:83e8:be95? ([2406:7400:56:e503:ad72:fda5:83e8:be95]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39d98e602d8sm5497522a91.3.2026.09.11.09.13.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2026 09:13:48 -0700 (PDT) Message-ID: Date: Fri, 11 Sep 2026 21:43:41 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/5] pmdomain: core: Add a genpd config to support unknown initial status To: Ulf Hansson , Sudeep Holla , "Rafael J . Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org Cc: Abel Vesa , Lorenzo Pieralisi , Christian Loehle , Maulik Shah , Yuanfang Zhang , Sneh Mankad , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260907111659.263324-1-ulf.hansson@oss.qualcomm.com> <20260907111659.263324-4-ulf.hansson@oss.qualcomm.com> Content-Language: en-US From: Dhruva G In-Reply-To: <20260907111659.263324-4-ulf.hansson@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07-09-2026 16:46, Ulf Hansson wrote: > It's not always possible for a genpd provider to know the initial status > for its corresponding PM domain(s). To register the PM domain in a safe > state, the genpd provider driver may therefore have to initialize the > genpd's status to be powered off, as a way to prevent the PM domain from > being used when it actually could be powered off. > > In these cases we may end up to power on a PM domain through the genpd > subsystem, while from the HW point of view it may already be powered on. > Under these circumstances, it may also be required to keep the PM domain > powered on until all the consumer devices have been probed. In other words, > until the ->sync_state() callback for the genpd provider in question have > been called. > > To support this behaviour for a genpd provider, let's introduce a new genpd > configuration, GENPD_FLAG_POWER_UNKNOWN. > > Reported-by: Maulik Shah > Link: https://lore.kernel.org/all/20260811-domain_off_ss3-v1-0-6a0a0fc023f5@oss.qualcomm.com/ > Reviewed-by: Abel Vesa > Tested-by: Yuanfang Zhang > Signed-off-by: Ulf Hansson > --- Reviewed-by: Dhruva Gole > > Changes in v3: > - None. > Changes in v2: > - Rename the config to GENPD_FLAG_POWER_UNKNOWN. > --- > drivers/pmdomain/core.c | 6 +++++- > include/linux/pm_domain.h | 9 +++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) [...]