From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5F82C54EBD for ; Thu, 12 Jan 2023 11:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Wr76HDNxwg+nAhFkmhqWSIZ9VnB8tw27sZv7FB7T75M=; b=0D4YKv9fYgRJOg bQjk7UalH/6HfSi+p4Sl1ggMXFebDlsJiTOlBFPSX1VEDHH/qYpx81KzeHgnbuMrhcOfG9QvE3w8J cZ7lMvztTyXuBKXvKw9wTmZGQUOC7f985i0LkkMWdInb2E4A7RiqQUuDCjQgh1rjioDzzuvO1ahZq puijpuB4Afzn1XqMG5nlYeCzoRkNaw5oUQBfeMB06U4St7rPm5goLSdkMj/9DKxw4cGBmIEN7RCAp Xe0eJFa2TBTLZxE9FJ1/eRgyb8mS3ypeG10Q513hGg/vWWKeTTpwujZUn36h7XH5aN9tcZ6b6m8RG WM0IGAioJTA1/DOcEApA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFvWZ-00Enht-EK; Thu, 12 Jan 2023 11:13:35 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFvWN-00Enfc-9e for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2023 11:13:33 +0000 Date: Thu, 12 Jan 2023 12:13:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673522001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iYwZRT7mnDnD+1Ys7Sftal0USfXOpImO6PMVvnFoRF8=; b=SuNYQC29NyY+TDI6nwnfT7WXHxdyovhPnmfnWSqgs3Wyy1jJTu72AJg0Kz5vIy2yTFcenU K3gmMrZPE2IO/JkguEFLejU2ySxT8ag5PjdfkWoLplGu6GVJtNitTf+a7TjlqiW5cfRWIb GaL/I2VlOh9CWSy1/dXaVCvn9erFdYrKI8C5CiPlAJvboL9LsmYCCKFv0UkfU17mmomwtk UGZkQHUJTk/RAIpN9ZXaaxja9NrSonL7RlkUVeOcT8dqHi9KGptHl8t9+CC+u9a4l52Km3 H+L97rIeCiZwfrK/9mM42BcXZlEh60uzB+NYDCfNKLRzzhhA1DtHzW+1tdHelA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673522001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iYwZRT7mnDnD+1Ys7Sftal0USfXOpImO6PMVvnFoRF8=; b=Ayk6KLw9TKqzWx4Z3qRALbmaPTf3FvnlEVwKYkct9ZQ7uELvY7GNpe19SdrgZCozX7dZk+ iqBI0g/6ePDk2SCA== From: Sebastian Andrzej Siewior To: Krzysztof Kozlowski Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , Kevin Hilman , Ulf Hansson , Daniel Lezcano , Lorenzo Pieralisi , Sudeep Holla , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Adrien Thierry , Brian Masney , linux-rt-users@vger.kernel.org Subject: Re: [PATCH v2 4/5] PM: Allow calling dev_pm_domain_set() with raw spinlock Message-ID: References: <20221219151503.385816-1-krzysztof.kozlowski@linaro.org> <20221219151503.385816-5-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221219151503.385816-5-krzysztof.kozlowski@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_031332_151296_725F5A28 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-12-19 16:15:02 [+0100], Krzysztof Kozlowski wrote: > device_pm_check_callbacks() uses dev->power spinlock, which on > PREEMPT_RT sleeps. However some PM domains on PREEMPT_RT might be using > raw spinlocks as genpd_lock(), thus dev_pm_domain_set() must not call > device_pm_check_callbacks(). In fact device_pm_check_callbacks() is not > strictly related to dev_pm_domain_set() and calls for these two can be > made separately. > > Add new helper dev_pm_domain_set_no_cb() which will only set PM domain > but will not check the callbacks, leaving the checl to the caller. s/checl/check/ But this I comprehend. > Cc: Adrien Thierry > Cc: Brian Masney > Cc: linux-rt-users@vger.kernel.org > Signed-off-by: Krzysztof Kozlowski Sebastian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel