Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BCF9F3FF5 for ; Fri, 28 Jul 2023 04:09:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CE1DC433C7; Fri, 28 Jul 2023 04:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690517348; bh=uw0Xjt7/KMv5o/4UdrtIWciAkDGApwQ+7UzCn1CqA5g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p3Is/j119bril0PDN0qA5OJEw2nmlR2e+RcyQzjSfZz917JGE3cDUmeF3FHX10L/k rYD4MYnNeeXGNhnc0NM8Owv1582AZb9EH/dEINcR6bj6NIX4lT6CVrYXUfdmlYsPgR wG28HMtn7SzjrCq/X4SLXzPK1UbhRYIagygvJKbZ3Zto2kmFUoqaxJXA33ybhYpcW0 CfSUXLsOADa1AzFrfbHJIkaEFC1pbsQPwTm6AVwHC2mO6Fd2jkzTrcwYrLWzRoNEEL VQLVtRGSaYW4n9rBt4UYyTgIXy5KvPRTd/Xp92/2y6QlI2iZ8OHzqTVfn6DcUu48dv Abb6SykABXp/g== Message-ID: <3836423e-8f0f-1278-38e5-d35fbd7298e4@kernel.org> Date: Fri, 28 Jul 2023 13:09:06 +0900 Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Scsi_bus_resume+0x0/0x90 returns -5 when resuming from s3 sleep Content-Language: en-US To: TW , Thorsten Leemhuis Cc: regressions@lists.linux.dev, Mario Limonciello , Bart Van Assche , LKML , stable@vger.kernel.org References: <0e272abe-292d-d58f-cf80-55868e793abc@gmail.com> <6b66dd9a-8bd5-2882-9168-8e6e0848c454@leemhuis.info> <86435987-734e-c6c1-a857-1ba80da709fe@gmail.com> <48bc1736-5e4e-3a9b-3715-60509c333bb1@kernel.org> <40365501-283a-408b-3514-48c29db36861@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/28/23 11:49, TW wrote: > Comparing to the 5.15 kernel which had almost no delay. They are HDDs > though, it was working flawlessly earlier but didn't want to top post > again. Tried a systemd suspend instead of from the Xfce4 logout menu and > everything works as intended. So I'd say that it's fixed now. I think that asynchronous scsi suspend/resume using the PM infrastructure, introduced in 5.16, is creating this additional delay. The reason is that now, ata and scsi drivers do their resume operations from within the PM resume process, resulting in some delays to reach "PM: suspend exit". I am looking into improving this, but it may take some more time. I will post officially the patch you tried and CC you. A "tested-by" tag from you would be appreciated. Thanks. > > On 7/27/23 20:33, Damien Le Moal wrote: >> "Slow coming back" -> Compared to which version of the kernel ? Do you >> have numbers ? If the devices are HDDs, resume will wait for these to >> spin up. That takes a while (about 10s normally). -- Damien Le Moal Western Digital Research