Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3551882rdb; Wed, 27 Dec 2023 10:58:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXqRdr4GGTqIBCkif4tdT+Cq+TbE56kieP7wYITagaPKeHzpVG9W2T2/+UiLz7GkU1odCR X-Received: by 2002:a05:620a:8dc:b0:781:6226:20b8 with SMTP id z28-20020a05620a08dc00b00781622620b8mr963621qkz.9.1703703520817; Wed, 27 Dec 2023 10:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703703520; cv=none; d=google.com; s=arc-20160816; b=Sqj/QQNKNI8ADJPeoVuoY9c/JWrb7hnzMSdXNa2IMuyqchOBwvyZugsO1EwAGolqIV HTiUODC9YAsg883MnaN/LDQuHI+7ee9mJpLgm3CQiw5lcExSX8OrYE1rf62L6Cu+RbRf Df9lK4tMQ/YI9N87137qnBOKBZGC9CxFEksw9cmzm7nbLhM+na1al+2J3HIuBX2/VMHt C0jaFDY80u9WbUuHRXG2cBMpxeD/v60+mixKzTOgCSjlW06x1Y2cBW8LayXE3bXsWaFd vUSGK2i29KC9neELaQp61n330lBxOzkzy/FVTdMsB5gStTW/D+ISPgc5w+2saf6ZHbZj NRxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=xVuXosUFDTUQZQSczZpvlGcCeK6ere2wBmKBK7cm7SI=; fh=MDf/OjPDuEgQXe+FH7P8IJt8OSE0/kJDZ2cqNBWSImk=; b=tX//RcL6dokCnY2lMLm9Icw54X4nTUE4JhNfZVWd3lWTyHzVeNuFbu0/otb2hPQiWz iJXEZ+QXBQERsxn3tlZkADstFx6fSeSTfVOGJwjKf3T+6HMJMEyQg5/du3jzJtMsEBVh E/fTaPg5uOl7G/ujQZpF86Mo4wqh/XzRRFlDkXHpzBElTN0OvXtsrvwG/gsUGUQzwkHd HulEx17qXB/vhkeXo+qMam1Ga8EGWlN4C3ZQsxkAFa+8cjSBM4LhHK3zpGyq+zmY2UF4 NPevIs2r2sDyL8cD/QeKtukNZDHugsks5PMZyTvS1PaersHZJxaDPBil6hHigyBXDfU3 0C4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12217-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s24-20020ae9f718000000b007816e431d5bsi437753qkg.328.2023.12.27.10.58.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 10:58:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12217-linux.lists.archive=gmail.com@vger.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 870351C21335 for ; Wed, 27 Dec 2023 18:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15C2846B85; Wed, 27 Dec 2023 18:58:32 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A81A20306; Wed, 27 Dec 2023 18:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net 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 5.4.0) id 67a3122417753e74; Wed, 27 Dec 2023 19:58:27 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (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 cloudserver094114.home.pl (Postfix) with ESMTPSA id 9C90D668E12; Wed, 27 Dec 2023 19:58:26 +0100 (CET) From: "Rafael J. Wysocki" To: Youngmin Nam , Greg KH Cc: rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, d7271.choe@samsung.com, janghyuck.kim@samsung.com, hyesoo.yu@samsung.com Subject: Re: [BUG] mutex deadlock of dpm_resume() in low memory situation Date: Wed, 27 Dec 2023 19:58:26 +0100 Message-ID: <5755916.DvuYhMxLoT@kreacher> In-Reply-To: <5754861.DvuYhMxLoT@kreacher> References: <2023122701-mortify-deed-4e66@gregkh> <5754861.DvuYhMxLoT@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvddvledguddvtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopedutddprhgtphhtthhopeihohhunhhgmhhinhdrnhgrmhesshgrmhhsuhhnghdrtghomhdprhgtphhtthhopehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhrghdprhgtphhtthhopehrrghfrggvlheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhgvnhdrsghrohifnhesihhnthgvlhdrtghomhdprhgtphhtthhopehprghvvghlsehutgifrdgt iidprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=10 Fuz1=10 Fuz2=10 On Wednesday, December 27, 2023 7:39:20 PM CET Rafael J. Wysocki wrote: > On Wednesday, December 27, 2023 5:08:40 PM CET Greg KH wrote: > > On Wed, Dec 27, 2023 at 05:42:50PM +0900, Youngmin Nam wrote: > > > Could you look into this issue ? > > > > Can you submit a patch that resolves the issue for you, as you have a > > way to actually test this out? That would be the quickest way to get it > > resolved, and to help confirm that this is even an issue at all. > > Something like the appended patch should be sufficient to address this AFAICS. > > I haven't tested it yet (will do so shortly), so all of the usual disclaimers > apply. > > I think that it can be split into 2 patches, but for easier testing here > it goes in one piece. Well, please scratch this, it will not handle "async" devices properly.