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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0878EC433EF for ; Thu, 21 Oct 2021 18:51:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CBB9D60D07 for ; Thu, 21 Oct 2021 18:51:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CBB9D60D07 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XPF0YVhq/slk4ySAZKlNchFbkCeHzKrhoqOzfXR/xZc=; b=H3/PCjk4uwfsDz SKYP5uSGU0jgsycoMqSfM4i8OkFz+K5pZujayjgnLjBPiuuGllUD2cn66ROnXbpWa7vFi33Yflef7 J28+SmGm25k9fkerYy6fD1LzkDppN1vWO4NLSYNis9axqYp0amohlStsM4W+u1oQKTVLywcR25cGQ 5G+tLEEm8X9GfDXS9kA70SEMW3HVPpEeQJKkB7rIWLtMg09IYrursPVdtbmFqEAoK75juUOaPIbv/ Illr7x3bhVK1WAxatoOoKLiQWACWKq+OrHy/8oK/7rlwKF7A0lFnyuZQVXPcMAf96MTiB3uEKTRbT CZonnnYXAjL8ar3huQcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdd8a-008u6N-1c; Thu, 21 Oct 2021 18:50:01 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdd8O-008u3Y-7N for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 18:49:49 +0000 Received: by mail-lj1-x233.google.com with SMTP id u5so1525970ljo.8 for ; Thu, 21 Oct 2021 11:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/TtfFv+YJK+r0KiR4Q7jDkvUjTqglRl+YDTfrv8xxts=; b=vZCfEv+leEgiq2uSITsk1Q+02XwaBs9iqHHpdbXsWgEA2/a6EX2zDGgIrQmVOOS8m1 811Em6eRDdc8/knnqhcu1muPymVjGWzY4HkHuAocuvV5G7EJnMevzYWYxOt2P21S1EEg SvUpsYcF1kyoGnEjYVkUTqPHFo9lF4wCHBDTncb/y+AD8H5/c20NeH/0XggR+7WmVt+Q 09hmN32jSv02U6zbV0FKGHtsfMX1DpsoX+44fKlzdzWH4WDPECNcax1iMCNcC/3X5AiU tC3/zVwmvkpl/iQk1I1HDeaD8KarQNg+ekYppqJFi61tmyI9hpyYWxVs+6MsaUf+PMWL 6Nxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/TtfFv+YJK+r0KiR4Q7jDkvUjTqglRl+YDTfrv8xxts=; b=fUnHGWT6qhm2cD4s0W8DM5nZMgzIGMu32T3ykysgDtxe1D1fL12XVPCI+LEs2e1Q2+ ZAnibIWlL8PymlfJi0cB9KfegxvoOLLVz+clvetdEa7K6uGC8OSp/WxwL81TtY3zU+bI YD2IYACbj2fWoVC8CKJnXvneZWdfZKsDdfIkEchh2AFOpfRyMw0x7jPL/0NDi43j2k9u khZhsKpITP5ptvjOiCMr+gbJ2Gub1E3Uy6GwfVTVahWF+/xVFg9j41FmMXwm6De67LfS cIQ29S7I1fTOaIvr2Kv/HZR7L19EbretXbd/4FSJ8pGP2X5P424dDJjGjqd3wkeQ98Md bCuQ== X-Gm-Message-State: AOAM530+gsGfWFEppXa+/lspAj+q/IrluWrx9dBLU0+nfiJ0F9OYFvQR yYX4C+6xsHxMP8QS7pZepmNGewlSrfurV51aU0Iu0A== X-Google-Smtp-Source: ABdhPJwaN/7Wj+W48MDMN3pQ75XqWwMeL+aCCHzrNt4lw0cYdyMmzGTZVQDEtFEa9DXYRyhULOCZpXiL4NtOVgt/mxI= X-Received: by 2002:a2e:a5c8:: with SMTP id n8mr7994342ljp.367.1634842186126; Thu, 21 Oct 2021 11:49:46 -0700 (PDT) MIME-Version: 1.0 References: <20210929144451.113334-1-ulf.hansson@linaro.org> <20210929144451.113334-3-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Thu, 21 Oct 2021 20:49:09 +0200 Message-ID: Subject: Re: [PATCH 2/2] PM: sleep: Fix runtime PM based cpuidle support To: "Rafael J. Wysocki" Cc: Daniel Lezcano , Linux PM , Maulik Shah , Peter Zijlstra , Vincent Guittot , Len Brown , Bjorn Andersson , Linux ARM , Linux Kernel Mailing List X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_114948_353918_4CB0B6C7 X-CRM114-Status: GOOD ( 14.42 ) 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 [...] > > The PM-runtime case should be addressed directly IMO, we only need to > > figure out how to do that. > > > > I'm wondering how you are dealing with the case when user space > > prevents pd_dev from suspending via sysfs, for that matter. > > Or what happens if rpm_suspend() returns -EAGAIN, because someone has > started to resume the device right after its reference counter went > down to 0. That would mean that the pm_runtime_put_sync() call fails to runtime suspend the device. In other words, the corresponding genpd stays powered on, which prevents idle states from being selected by the genpd governor. So, yes, this should work fine. > > It looks to me like the problem is there regardless of the whole > interference with system suspend. I don't think so, but I may be overlooking some points. Kind regards Uffe _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel