Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7039217rdb; Wed, 3 Jan 2024 02:28:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGew6lUHML6+vKeX/TM0VFOP/7cn0VmL0WhP7j4hXiFTc+x8fRMhRfnqVQvYnGwaD/14r6o X-Received: by 2002:a05:6214:2683:b0:67f:824b:99b3 with SMTP id gm3-20020a056214268300b0067f824b99b3mr1185462qvb.38.1704277736570; Wed, 03 Jan 2024 02:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704277736; cv=none; d=google.com; s=arc-20160816; b=zFuQ01+174Vb2dumzVM7UeNKlpvri3aNwUVVHyF89cyiDYKQidJVqqac1MWh3QQIxC TDWF3ljyWgUsUYyHr7LM0eqQxeNu9MLBpcMSTaW7UGFXwYIhMhr/5BD6yGLlSW3dUAHP Vn/11OYu04ZakiYaGf33l1OUCcJO8tqmdmB/LaBrXLjUA2rDdhiUOgloOcKs54bYoNWD HNqv+SXBctjZsvDYmDkB7a7FfCXgMOJUKdJPQ3vpTFDauxX7YYYzfGa2+THqP/S9Cro4 /4/9+0qd3QnXi/HBLWPzC9mldw5t8fHreSWEqt7tsCTr0Lhx8J/YaKn1iT5laEkIOWRn 7Rsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=O71FlOOiGk/7AmpyQ57yDmpDlt8Ip4jkuT5waQGee/E=; fh=rC4ef441DXkE+hzv6V6708KfQdnLAkTf5D0A8WQp9SA=; b=ZLMCgxN6wWi+LNsM0ysvTD9ydqM8VpvY1uRtAR/5i2nPU6KQmaXjWfhrBcrneNHjOm pVf0X/JhK3F/dnh10hraljtXGilG2x7GAYyf1AA1q2Y4iHlRz49o9uQJaoUftMR1mj9e IoLY4BV0PJUD2YM/X9jUKtT2jgTx5qNcvcHlps4o59TysdKnQMEt1ZptZ3qLdZx4MTdq SPJTRlQs279uFvjuvjNTqwJwN3IgdXhmqBoDOe/zsi4z3WD83gh/KQVOBCB32s0sFmjD +qq1YgJ5vk0TGgm1P5P52G/TJWiquoBSiqfLWNwMJ/lIxR5cWjTfsU17ZUTDLf5Fi+zZ DqLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p19-20020a0ce193000000b0067f28570972si28461313qvl.373.2024.01.03.02.28.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:28:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 528B01C232EA for ; Wed, 3 Jan 2024 10:28:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C71C418C24; Wed, 3 Jan 2024 10:28:34 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05C0D18C01; Wed, 3 Jan 2024 10:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-594cabe74f8so342938eaf.0; Wed, 03 Jan 2024 02:28:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704277712; x=1704882512; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O71FlOOiGk/7AmpyQ57yDmpDlt8Ip4jkuT5waQGee/E=; b=HEcomYPki1NYzWwzTIIX60PuKgJSgEC62nMJEEWif52l6M9LRhsPB42OsghBhY6qgD mZetX1e7n7zV+sTmObo3KIOW1eILHJx/c/LAMQ3tZAWZvyzek3dMxSyqhm+syAWDJlqq Uj3AkWUdnv/gbNwtGBCRWL6NeWYGfQcaZBaI+0rMLEQrCJdOnjQTdxqo4BfZbeOeNzmV XMZ+I3MarQA60be1u4f4hGGWJAhHG0ZUBd9xcsrh/6Y9ZGOx+bZm+6nDcQDczfb+3eXX oENYT8yHaAXUZ6NwbQg2ubTcipIdt28qd+Ykg4o5mL/UJIE8x0/vT6s0famVPdMnURuf Rrag== X-Gm-Message-State: AOJu0YxLQJGhRNqQCMCYLI0l+k4y3oHPWQR0+bb1bWmzKm8SEjXUO6IT 8ivDxFzHdG22QsQvbBltzRuw44Il3/BPABZDHQ8= X-Received: by 2002:a4a:e096:0:b0:595:6028:d8cb with SMTP id w22-20020a4ae096000000b005956028d8cbmr6936937oos.0.1704277712127; Wed, 03 Jan 2024 02:28:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2023122701-mortify-deed-4e66@gregkh> <5754861.DvuYhMxLoT@kreacher> <6019796.lOV4Wx5bFT@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 3 Jan 2024 11:28:21 +0100 Message-ID: Subject: Re: [PATCH v1 0/3] PM: sleep: Fix possible device suspend-resume deadlocks To: Youngmin Nam Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Greg KH , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, d7271.choe@samsung.com, janghyuck.kim@samsung.com, hyesoo.yu@samsung.com, hs.gil@samsung.com, yulgon.kim@samsung.com, Alan Stern , Ulf Hansson Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 3, 2024 at 5:39=E2=80=AFAM Youngmin Nam wrote: > > On Tue, Jan 02, 2024 at 02:18:43PM +0100, Rafael J. Wysocki wrote: > > On Wed, Dec 27, 2023 at 9:41=E2=80=AFPM Rafael J. Wysocki wrote: > > > > > > Hi Everyone, > > > > > > As reported here > > > > > > https://lore.kernel.org/linux-pm/ZYvjiqX6EsL15moe@perf/ > > > > > > the device suspend-resume code running during system-wide PM transiti= ons > > > deadlock on low memory, because it attempts to acquire a mutex that's > > > already held by it in those cases. > > > > > > This series addresses the issue by changing the resume code behavior > > > to directly run the device PM functions synchronously if they cannot > > > be scheduled for asynchronous executions (patch [3/3]). > > > > > > For this purpose, the async code is rearranged (patch [1/3]) and a > > > new variant of async_schedule_dev() is introduced (patch [2/3]). > > > > Given the lack of negative feedback, I've queued up this series for 6.8= -rc1. > > > > Please let me know if there are any issues with that. > > > > Thanks! > > > Hi Rafael > > We haven't seen any regression issue under our stress test. > > So, feel free to add > > Tested-by: Youngmin Nam Thank you!