From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (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 90A6B25C809; Thu, 29 Jan 2026 17:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769706285; cv=none; b=PHe6zfAfi9/tsEGbwUHfCh6qn+3U+Sa9tmMLL1uFCREY09oyekrQJ4Zvjo8tU8mDFt6H8IJpnFanmFGi4m+3TYky3/k42w9LN3JeCK15dXuyqncGu7Qq8H4LtlMcQ5p69fBHBVXMFuVEaqNUBjcUGXUv0ztAVYwfN7+4pYn6lXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769706285; c=relaxed/simple; bh=boCPdpXYfD8PuSLj09gk7+Jv66FTxmWiUC02IUa4mFw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=m5wqDjG9u/PdIZJvvZr18ahYWfitFgsZo+X731iDl0kB9hDqbsAU/xRhHFcJBKFBLDLRYx6DNrn/XaJz8kIgbBnlR+GNHjjvZJIkcH7jRcaNflL/EcH5xKHVxodqBG0FvGeBLVvmpYFA7wxARbLwW6TIw2DQEyWxLhJ2RHWA7BQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=zJJW5Htw; arc=none smtp.client-ip=199.89.1.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="zJJW5Htw" Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4f259672Qbz1XMFjh; Thu, 29 Jan 2026 17:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1769706280; x=1772298281; bh=Ty9IjOGh7/WAsF8C/6LQywzE GewJekM7qjkPanmf2lA=; b=zJJW5HtwS1bY/jmG6pjreZ8NuzaObClcf5rVLMGw m+ghQ/4muF0DmG7TtiwyE1LwXWMjRCTP0wAY7SPytVbXeFxaNdhA04/hMEW0eZwW WNjc3ABZkiKEKsDfnQ8pabeEzXz7i+1dhESn6Fa/JmtPn275nFKCKW2kwJ8HbCAs 0zUR+ZRiFCwid3Th71o+3b4dWqISCmyDKI9wqYZ7gIlBcSkWB3guSaNThYcDkTsE vyYg2vdkjhcDw1PwPrXJEFlnyDJCiv+ghzFB4QtN52znitJmHfeLbuleWvxAIeGa I5MLLxMdSdjS1ksFqL9aI/hxEVNy4IszM/50W5DhSMqUeA== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id 4Ypt1cFNEEWt; Thu, 29 Jan 2026 17:04:40 +0000 (UTC) Received: from [100.119.48.131] (unknown [104.135.180.219]) (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) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4f25912MN0z1XMFjf; Thu, 29 Jan 2026 17:04:37 +0000 (UTC) Message-ID: <491d53b9-a110-431b-9a5e-3b46d833fdbb@acm.org> Date: Thu, 29 Jan 2026 09:04:36 -0800 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/1] scsi: ufs: core: Flush exception handling work when RPM level is zero To: Thomas Yen Cc: Stable Tree , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Peter Wang , Bean Huo , Adrian Hunter , "Bao D. Nguyen" , "open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER" , open list References: <20260129070657.678532-1-thomasyen@google.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20260129070657.678532-1-thomasyen@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/28/26 11:06 PM, Thomas Yen wrote: > Ensure that the exception event handling work is explicitly flushed > during suspend when the runtime power management level is set to > UFS_PM_LVL_0. > > When the RPM level is zero, the device power mode and link state both > remain active. Previously, the UFS core driver bypassed flushing > exception event handling jobs in this configuration. This created a race > condition where the driver could attempt to access the host controller > to handle an exception after the system had already entered a deep > power-down state, resulting in a system crash. > > Explicitly flush this work and disable auto BKOPs before the suspend > callback proceeds. This guarantees that pending exception tasks complete > and prevents illegal hardware access during the power-down sequence. > > Signed-off-by: Thomas Yen > Cc: Stable Tree For future patch submissions, please place the Cc: tag above the Signed-off-by tag. I think that is a widely used convention in the Linux kernel community. Anyway: Reviewed-by: Bart Van Assche