mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Peter Wang (王信友)" <peter.wang@mediatek.com>
To: "beanhuo@micron.com" <beanhuo@micron.com>,
	"avri.altman@wdc.com" <avri.altman@wdc.com>,
	"jeuk20.kim@samsung.com" <jeuk20.kim@samsung.com>,
	"quic_nguyenb@quicinc.com" <quic_nguyenb@quicinc.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"bvanassche@acm.org" <bvanassche@acm.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"adrian.hunter@intel.com" <adrian.hunter@intel.com>,
	"alim.akhtar@samsung.com" <alim.akhtar@samsung.com>,
	"wone.jung@samsung.com" <wone.jung@samsung.com>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"James.Bottomley@HansenPartnership.com"
	<James.Bottomley@HansenPartnership.com>,
	"j-young.choi@samsung.com" <j-young.choi@samsung.com>
Subject: Re: [PATCH] scsi: ufs: core: Reset urgent_bkops_lvl to allow runtime PM power mode
Date: Wed, 11 Feb 2026 13:00:31 +0000	[thread overview]
Message-ID: <1d893295d23f59d87ab30e7cd7d2c872fe7c85fb.camel@mediatek.com> (raw)
In-Reply-To: <1891546521.01770806581968.JavaMail.epsvc@epcpadp2new>

On Wed, 2026-02-11 at 15:01 +0900, Won Jung wrote:
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 604043a7533d..e2d3e834ccba 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -5959,6 +5959,7 @@ static int ufshcd_disable_auto_bkops(struct
> ufs_hba *hba)
>  
>  	hba->auto_bkops_enabled = false;
>  	trace_ufshcd_auto_bkops_state(hba, "Disabled");
> +	hba->urgent_bkops_lvl = BKOPS_STATUS_PERF_IMPACT;
>  	hba->is_urgent_bkops_lvl_checked = false;
>  out:
>  	return err;
> @@ -6062,7 +6063,7 @@ static void
> ufshcd_bkops_exception_event_handler(struct ufs_hba *hba)
>  	 * impacted or critical. Handle these device by determining
> their urgent
>  	 * bkops status at runtime.
>  	 */
> -	if (curr_status < BKOPS_STATUS_PERF_IMPACT) {
> +	if ((curr_status > BKOPS_STATUS_NO_OP) && (curr_status <
> BKOPS_STATUS_PERF_IMPACT)) {
>  		dev_err(hba->dev, "%s: device raised urgent BKOPS
> exception for bkops status %d\n",
>  				__func__, curr_status);
>  		/* update the current status as the urgent bkops
> level */

Reviewed-by: Peter Wang <peter.wang@mediatek.com>


  reply	other threads:[~2026-02-11 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20260211060105epcms2p6631646c964afae761c5d8b93db5a476d@epcms2p6>
2026-02-11  6:01 ` Won Jung
2026-02-11 13:00   ` Peter Wang (王信友) [this message]
2026-02-18  2:30   ` Martin K. Petersen
2026-02-24 16:47   ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1d893295d23f59d87ab30e7cd7d2c872fe7c85fb.camel@mediatek.com \
    --to=peter.wang@mediatek.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=adrian.hunter@intel.com \
    --cc=alim.akhtar@samsung.com \
    --cc=avri.altman@wdc.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=j-young.choi@samsung.com \
    --cc=jeuk20.kim@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=quic_nguyenb@quicinc.com \
    --cc=wone.jung@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®