Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp911452pxb; Thu, 21 Oct 2021 11:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzmxrQ79QEw9GT3Y/Kvzl922eBqpsNH0EI0VGd3woQmQEvUj/0ZzVtasofcamdPhwHaZxg X-Received: by 2002:a63:3481:: with SMTP id b123mr5761611pga.230.1634842323002; Thu, 21 Oct 2021 11:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634842322; cv=none; d=google.com; s=arc-20160816; b=uYRFusr0c7BsRU84oL3sQCSd1H5uuKjD10fnYeQr4mtadm23rgPbQ0VeGVr8eEn8Ah T+oX6enEQ1Ze4Cs4lHOm3+5OjqWSTFVZZPhC7D6kmjw0hZm2pt2LZtIFWnQW9ta/Fl6i oWhXS/2X3BhMlddVdpKKqGXGGw/F3M9py/mAWvnoE5kNw6oPazmTu/zSwA9NsxyVBYQw 0rOQPfa3BizNCLgnLXDNUX55Xdpy/Rwz5SJIEmnpmUbQn/4FN/xdqHQR6VR9DYvE6Z6j R/RBbJ+ACwoFZa9b4m5JDVopkkrN4Fi8wK0uGUXeMxyrA8+BZP9ZBgDfRwEXsvrT0ylW Q4Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/TtfFv+YJK+r0KiR4Q7jDkvUjTqglRl+YDTfrv8xxts=; b=00k8uowlb+QzbuL0vKX+D0RUVP7bA+LYzvd8pl9pw4Wf8kUKCjYPZbmM7N7f3ZlODc xoySVbK0pUeb3rkgwHSHz0Bc56jb+5W8qSn7XVbujNeLZOv68HeT+1+e59Ji8R8WoCQS TN02H9mXpDCN0T4mXJXYhlJHkKlYOmP2Y6FiBG7rqMNOB3HTyQb3RT7H2KODupNf/nrL dLVHYWrXLNOylKrUvChmkC/ualftkfWkF/mBoLQwFQPjR44S311z/eRAKx3ET0BZBstJ NZZPl9z8zUANGOGsALCoz0RbQl01sfwr33VKvVV4jV27MOKYGhsDUrCmBCH/U/8268lP LKHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZCfEv+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lp9si16490836pjb.42.2021.10.21.11.51.50; Thu, 21 Oct 2021 11:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZCfEv+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230103AbhJUSwF (ORCPT + 99 others); Thu, 21 Oct 2021 14:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbhJUSwE (ORCPT ); Thu, 21 Oct 2021 14:52:04 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24DAC0613B9 for ; Thu, 21 Oct 2021 11:49:47 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id d13so1673748ljg.0 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=Eu4IQtgtD6jCyS5MwK4Ai38Bj4TQRmf14oZL3oFXo1GOnJTLwTHbmJGb6iNA62i7fl 6g+NCbtAhGNDrhvDeRddXGnPynOo31ycGA5Wl++4u8lpUFeM1hDfWLYXCIeY6UPwXPLV yl1CMunrwT0vmQsPLb1L4f8VxIz+haQXmDvTIzonEJ8uIAASFhR6bXWhrYBWrzs5DilX X249gMfY1Y5RTuziO3YPDkgF8pTX5Yi1IDQE3yfVEI5GOsG2N6y0ypd1e4mnFoXpL1jA 8ZzDZDdt1+iXQ+Ftf67psCvWaWjtTUh2xOAMqb3BDs+8CFpJZWE3UzdloOmBUHdMKxdQ sOGw== X-Gm-Message-State: AOAM533XBxJH7whykpElNikZfB1uyWCzXQKWg07pyoeLONO7rCDuuXI3 JOUWN/MPcXhKHO27mp8r223IpCN9RisCIvVfLAuwaw== 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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