Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1468398pxf; Fri, 19 Mar 2021 07:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRoDz/qqntJvJphcxcD5uYeCL1eM6DhRWgTDxeCjMZInkokmfV8idNngPTQfsdY2sQ+F2F X-Received: by 2002:aa7:ce1a:: with SMTP id d26mr9942384edv.206.1616165442524; Fri, 19 Mar 2021 07:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616165442; cv=none; d=google.com; s=arc-20160816; b=RAk8NMXrsdN2wZIrQ9Awp6udkI9UCPir6Kifd+mkmKRrD1w9cRm2lqQcyUDSIOtwv9 jnRM8hug2Bqn94N+GspcthwSzKak4TNK+e0mjQ7f63zTBVb/IlG0FKr5AsUQLoCtkcXv TnkYOEoY1WsBgNuMZ2JgHr1qgG4/W2HUCKv35typhxAJAiDir1V7865+3+vjein+7ISv QwJeTEojF40hvZNYD42hD14Z4zkx+wGVtaBd2Bj36mot76z/4MtNFD8NwaBG6o4a8dlE 2KXfxRApHe27Citcs0kCzPPNQ/CP8QYTTf5EPn4s87mSCryOGUiSLfy8hNptwKHhf7HY k1ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BcZ1qt+x39CFAA0zP9kapI5FJWE8A0j4cMjWZdknixk=; b=tE54sehmHlRHLAkNoXivcLssXHfd6wn5yytejxl8ojE7HqbdPDI18KK23ECl1txfIk vNSJxTTevMV8uXhOUOU7jji+fNGrzYKmuYHJP90ev4YBDHqIZ54emGVKe4SA6o/gJaT1 futu0H8reIIp3zwHWcns/SCMSLkErv2h6bSuvG4Nk0Fjuey2cBL8Xa1pFwbsKaM79FRR IOP8dWu2y4iTXV8ZwO0cXKUxRDz5OoBgv6jlXMPB6WbaEBxGkGCD2K3Yo0r2oveFaH+0 oRcdV7syhGbjVFP+Xkr5IYl5XAsFDNlouDro8DYSYyoG7VLeRDMJBSwG/PekstRMN1Cn A6vA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si4372878edr.399.2021.03.19.07.50.20; Fri, 19 Mar 2021 07:50:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhCSOsu (ORCPT + 99 others); Fri, 19 Mar 2021 10:48:50 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:54422 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbhCSOsZ (ORCPT ); Fri, 19 Mar 2021 10:48:25 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 2.0.3) id cc85d19a4bd52e87; Fri, 19 Mar 2021 15:48:23 +0100 Received: from kreacher.localnet (89-64-81-50.dynamic.chello.pl [89.64.81.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 27668667D8E; Fri, 19 Mar 2021 15:48:23 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM , "elaine.zhang" Cc: LKML , Ulf Hansson Subject: [PATCH v2 0/2] PM: runtime: Update device status before letting suppliers suspend (another take) Date: Fri, 19 Mar 2021 15:42:58 +0100 Message-ID: <4641414.31r3eYUQgx@kreacher> In-Reply-To: <5448054.DvuYhMxLoT@kreacher> References: <5448054.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrudefkedgjedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvjeelgffhiedukedtleekkedvudfggefhgfegjefgueekjeelvefggfdvledutdenucfkphepkeelrdeigedrkedurdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeekledrieegrdekuddrhedtpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepiihhrghnghhqihhnghesrhhotghkqdgthhhiphhsrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuhhlfhdrhhgrnhhsshhonheslhhinhgrrhhordhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, March 18, 2021 7:06:54 PM CET Rafael J. Wysocki wrote: > Hi All, > > The previous attempt to address the issue tackled by this series, commit > 44cc89f76464 ("PM: runtime: Update device status before letting suppliers > suspend") was incorrect, because it introduced a rather nasty race condition > into __rpm_callback(), so let's revert it (patch [1/2]). > > Instead, let's avoid suspending the suppliers immediately after dropping the > PM-runtime references to them and do that later, when the status of the > consumer has changed to RPM_SUSPENDED. > > Please see the patch changelogs for details. > > Elaine, please test this series on the system where you saw the original > problem. The above still applies. The v2 is sent because of some updates in the second patch, plus the tags from Ulf. Thanks!