Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp60724rwb; Thu, 12 Jan 2023 03:34:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1lu55Mq3shBmqVyZu9kwq37VnCdF8t8l5LzKuQx7VeocPDaRMCC3UwW+P/YDFA4qLdnvU X-Received: by 2002:a05:6a00:150c:b0:581:38df:f9f8 with SMTP id q12-20020a056a00150c00b0058138dff9f8mr75198811pfu.4.1673523258126; Thu, 12 Jan 2023 03:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673523258; cv=none; d=google.com; s=arc-20160816; b=Ng6D8fu/6+KFzRBSjIn1UF2BfEWrFw0tRXcktRWbfph+pvI7GJmIDz6vY+GqftpfjZ M1BJLBElNhqJjYz6GJJztPPYzSfn/HPNO3sH6LJ8eGoRexXSTBiXaJZ4UYufT06oVuCl bMq6ER5uxmnfqD49vY5NW5ZgZWrRQSh3+wmBx6XScvfQhDbEYZXJ1ADWebTASWyexmeO rgzFG7ucXKwt6sE8DXXaxfPHp0moLopshp8vD5z05+7etc33V0Ldyr2fNEIV59aSG4fi naYHWQIXp8ZXHS0BGZThsaY2I3FFrK7F9ZFmZYM7md8bdocaLzKCozkf24z0y8S1gM8Q ZkqQ== 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=w+q9O0QBx7caBqvk7I7LqqANXtU1eZvZLl5BZlayw+Q=; b=dWvPWJkIDyM0fcE0pXVRiS7mpBNncrzWBtN33kFEVeCmxbPNIoHU7Yn15lbIsWowt8 NNtRNUKgGgrpTPjpLTflyvRoxtZmqUJKUXYqi1bsJJ3Zq/7xcXLnVrjSkmBIdd10Rm0Z IYNwS0fYg9VTxT9MfG0+qXCGD4KxdUFLzNBfeQo0DBmHBk5IlUsdI/TwGZ3TdBOvpsMx r56glG+Ac7sskYyYMcYLqtqftYcaAxfgoWfVJqa4vXbqm7/HwZBwJ6av2Y6Bq/Z23zup nYBe0dSKfw9GAoM3/VzO1fnIa50gy005c94qGBKrVp1VFqGQC7K9LSv9V7f8+Uw7KfKj qysw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fRkTEumR; dkim=neutral (no key) header.i=@linutronix.de; 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 x126-20020a623184000000b0058866177f92si10603589pfx.314.2023.01.12.03.34.11; Thu, 12 Jan 2023 03:34:18 -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=fRkTEumR; dkim=neutral (no key) header.i=@linutronix.de; 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 S230430AbjALKmk (ORCPT + 49 others); Thu, 12 Jan 2023 05:42:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235483AbjALKmF (ORCPT ); Thu, 12 Jan 2023 05:42:05 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C3ED33D70; Thu, 12 Jan 2023 02:36:18 -0800 (PST) Date: Thu, 12 Jan 2023 11:36:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673519777; 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=w+q9O0QBx7caBqvk7I7LqqANXtU1eZvZLl5BZlayw+Q=; b=fRkTEumRk4CzMYZUt8LAh/RJ8slqeouYyZNvTpO1GV2VpwmLt01q480Aq5TZFQsQr/6F39 5lb1JiQ+ybojkK06e+Vy6YUXqW3Qjls++T+9usTh3TdkJpeYLelEXZV/1PYZtMEVwmpdk2 GrwB0N7exf6lKrgLYD/lZOTyG+uaVgtWVnBW/T8YSKj2t2kjnhzbbX+oqEQ05BnkOos+FK 5c7rqYZthb29zRTmXw0Li2xcteUcMnDMU9UUhwFkBPshsm43wo7RK819+YszXYU9iF9TTf 6bx4S/j8a66hLdcciISidY/sXgF019uGZzjvkhcm/TEJc4XVdyoTE8Luj7jVpw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673519777; 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=w+q9O0QBx7caBqvk7I7LqqANXtU1eZvZLl5BZlayw+Q=; b=9NIVp/yPvUNYUDTJsZlZ0lvXWhGgsOLTh2TTGR1v7URp40uPVOhA5VtsXtLFMU6BNC3wyx mQhpAP9/qYBQ4ABQ== From: Sebastian Andrzej Siewior To: Krzysztof Kozlowski Cc: Ulf Hansson , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , Kevin Hilman , 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 1/5] PM: domains: Add GENPD_FLAG_RT_SAFE for PREEMPT_RT Message-ID: References: <20221219151503.385816-1-krzysztof.kozlowski@linaro.org> <20221219151503.385816-2-krzysztof.kozlowski@linaro.org> <9771639f-5172-8f3b-3ce6-8fd195aa95b3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9771639f-5172-8f3b-3ce6-8fd195aa95b3@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 2023-01-06 15:52:57 [+0100], Krzysztof Kozlowski wrote: > > Just so I don't get this wrong, since the cpuidle-psci also calls > > pm_runtime_* functions so it isn't PREEMPT_RT safe, at least not yet? > > You are correct. Patch 3 here addresses it by... just not doing runtime > PM. This is a hacky workaround but: > 1. I don't have any other idea, > 2. It's not a big problem because RT systems are not supposed to have > any CPU idle (one of first things during RT system tuning is to disable > cpuidle). so you say you use idle=poll instead? > Best regards, > Krzysztof Sebastian