Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp65865rwb; Thu, 12 Jan 2023 03:38:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXvada7sY7sp9LFWaHHma3kVh8hz3/QiGRJ0Ox/tw1W8C+uzJS2v1gqyf8Fp2/YenHtvnDwt X-Received: by 2002:a17:906:99d1:b0:7ad:cf9c:b210 with SMTP id s17-20020a17090699d100b007adcf9cb210mr60935376ejn.18.1673523525498; Thu, 12 Jan 2023 03:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673523525; cv=none; d=google.com; s=arc-20160816; b=kcYM/ylOH56F9BMHtfTasO90Pm0jpTlKoKxfD7Y39Iy9h40Y2FI9ZsE6nay4iTbWwZ 4JoV2CnR0yWXrt1qznyFRAm7FWMRtauIUDSpfjq3Qsh+fTw5nnBbP9qd5FsGZI0HZnRq 42UDMwQkgDAdaw9QqmuNro5UCf+is6+MKk6Knl9aa252kMqY5Smn02O6peoQuKc6yAP+ Efa3C39NAF5VcxeE4jv2kR+xQLUQjDq5igQdCP9RgiDAi3xFqyzPUkiFJw1o7aqtbtCc ISO+ln3qzJXcIDArvS++aYK46iU26DewaqtIDKVNwvsaRutvRhh+YeXDXXNnyqAlcom8 VDyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=iYwZRT7mnDnD+1Ys7Sftal0USfXOpImO6PMVvnFoRF8=; b=jbvMCoQybjnm2GttFQdsyv3JZsbFo8FnZGpWYW0xPODD7geEnET1BRPgaw6lU0SMI9 Kp80roA0XkrxSEy+UK12J4qQ1qjDMMEg9jZwHiBGJvvfdhKVLOIyU8dTzljv47sMX2U1 SHwqhUKuiovoaBa1+YTMbaom9/G+4hjw0ho/mi3iVURyvwG8EPDNlZJgFORwlZ7xsqW2 bOgB4E29isLDjOetMLlv4HRpnuBlc4LFL/6li3jlcAP2MD+vxXhz0Y/FR9eV0YRudLd9 bCv5G1/v5LpDx+yu3zoOwdxKOPgdX85/v9t4Ss66tVLoRz1rF8h+01pyIb0SH2JUiG0j AUmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SuNYQC29; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b008366ae33ecesi17648050ejc.171.2023.01.12.03.38.33; Thu, 12 Jan 2023 03:38:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SuNYQC29; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbjALLX3 (ORCPT + 49 others); Thu, 12 Jan 2023 06:23:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231357AbjALLWk (ORCPT ); Thu, 12 Jan 2023 06:22:40 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B7025BA29; Thu, 12 Jan 2023 03:13:23 -0800 (PST) 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-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221219151503.385816-5-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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