Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp87760rwb; Thu, 12 Jan 2023 03:55:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQho/Bko1l2u28flYkyjMYHmgcxP8b0J6hn3oaFEh8UdcHVEyt+DhrCd5pJjXUXMic+k3B X-Received: by 2002:a17:906:3451:b0:857:b916:94bd with SMTP id d17-20020a170906345100b00857b91694bdmr7196751ejb.60.1673524506834; Thu, 12 Jan 2023 03:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673524506; cv=none; d=google.com; s=arc-20160816; b=ZqvyQexRZGLLMSpR/1goAaCgimRbwNlP5V9jAuYFOO4xTYH/8oi2LaX5v0tlHhTYhE GnSENQ5X4oK7C/3aolsqhwI5dTQ+ZMiMiJTpdebCVS1OY592qtJbwZ29s7cng/EUA+F3 1wlJV4/ubnxZPPC/z2HPGjqLIp59lha7pjZ4E7BzTDXhvP/fZHTgIijJu1nLiDPtU0QJ MGAVH53+/5HnaQhXicZ2W7OKJnVCJ8CdKVsR5mZmNyIKlH/222cFj2oVwIQKkKL81xAG EOaPpzHENughLsvDOeykZoGBpy3nM+YUPgOpT3rDDs9MAxLTWBLTnhC98nQ4Q82cpsZe NaTg== 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=tDCtF1k4ANTCGutHZXIyNVj0A5DsZpaHBXshV6rRwdY=; b=Lc/PVqwvyfU48/FxK7hufm4ycwaDjXqcJqvJp/TapbxTNm+t6jqnqf6KejO9MMcEot Dw0xBKIWXJDKDQOsUlWilaXr5KqghrOdnrr1f4ZMi9olHhdgM+7wQdlvhGpVdIjwO4cS IH8btfNXVV3DG8Cy696xRsJGRHah8Gm4PZG6IHb+CyS8JTdj/qG+nuUAq1hvzDcumivR E8nEHdXDyi8viU39cIn8Gd1xssBuUMyQz70wvZ5OWlCQtS5hzNwJE6SFt6fXB/aM5sn7 Iyspecdr/9ZO8TP+vvM8dh+F3ekbEsF7yaaUntx0uA7kCSeswcSVwJ3AZg1zVJNcVsxo HkKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ee7t37a9; dkim=neutral (no key) header.i=@linutronix.de header.b="WH/bRg/8"; 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 gn11-20020a1709070d0b00b007c13387a548si19586326ejc.26.2023.01.12.03.54.53; Thu, 12 Jan 2023 03:55:06 -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=ee7t37a9; dkim=neutral (no key) header.i=@linutronix.de header.b="WH/bRg/8"; 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 S234214AbjALLRX (ORCPT + 49 others); Thu, 12 Jan 2023 06:17:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbjALLQm (ORCPT ); Thu, 12 Jan 2023 06:16:42 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2EB13FA7; Thu, 12 Jan 2023 03:09:28 -0800 (PST) Date: Thu, 12 Jan 2023 12:09:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673521767; 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=tDCtF1k4ANTCGutHZXIyNVj0A5DsZpaHBXshV6rRwdY=; b=ee7t37a9m4MbSl1YM8AB8lsLv44oXc7o450J1A73ZhciksFKMKtprL3YsPL2tdA9QRzsYx 2g2/SSnYwYhqBgDETKOFI4hk6yeaFPyo8LX4AGTxnaXrXmeF48vWEvfClVY3uFSzJ5c7Bt s/fYK0vWKkJgvI77QYrOuVib/5clL0JcAai2U1Gqfs5UscqdWwabPIJVIOs1pXGGLyI+OD itvOQW63Ayzvj2MiyxO3BCxjBjTDVFh7tY7Qw/0YK98WeiMcgCDctftExJsx2fCJOz6EGS WPnsqAmCYgJ/B+hy/rzqgHajoCOb31cbPNfMs6Y5EpHptxjHQXMn1JYrPk84iw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673521767; 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=tDCtF1k4ANTCGutHZXIyNVj0A5DsZpaHBXshV6rRwdY=; b=WH/bRg/8GIIjrOFnCYPDlqmZlTOc7fuDxEBo9XyYwsOO/edYoEvSUTBjL8ndZGsyx6ecMj enypQq+NC61jrjBw== 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 3/5] cpuidle: psci: Do not suspend topology CPUs on PREEMPT_RT Message-ID: References: <20221219151503.385816-1-krzysztof.kozlowski@linaro.org> <20221219151503.385816-4-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221219151503.385816-4-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:01 [+0100], Krzysztof Kozlowski wrote: > diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c > index 57bc3e3ae391..9d971cc4b12b 100644 > --- a/drivers/cpuidle/cpuidle-psci.c > +++ b/drivers/cpuidle/cpuidle-psci.c > @@ -72,7 +72,7 @@ static int __psci_enter_domain_idle_state(struct cpuidle_device *dev, > ct_irq_enter_irqson(); > if (s2idle) > dev_pm_genpd_suspend(pd_dev); > - else > + else if (!IS_ENABLED(CONFIG_PREEMPT_RT)) > pm_runtime_put_sync_suspend(pd_dev); So based on the commit description you run into a sleeping lock in pm_runtime_put_sync_suspend() while the CPU is in an IRQ-off region. Why is it okay to skip it on PREEMPT_RT? > ct_irq_exit_irqson(); > Sebastian