public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: Kiwoong Kim <kwmad.kim@samsung.com>,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com,
	martin.petersen@oracle.com, beanhuo@micron.com,
	cang@codeaurora.org, sc.suh@samsung.com, hy50.seo@samsung.com,
	sh425.lee@samsung.com, bhoon95.kim@samsung.com,
	vkumar.1997@samsung.com
Cc: Bart Van Assche <bvanassche@acm.org>
Subject: Re: [PATCH RESEND v2] scsi: ufs: clear doorbell for hibern8 errors when using ah8
Date: Mon, 25 Oct 2021 08:38:40 +0300	[thread overview]
Message-ID: <6726fd8a-47f4-185d-e7a3-d006902d605c@intel.com> (raw)
In-Reply-To: <029e01d7c66b$6f6e7830$4e4b6890$@samsung.com>

On 21/10/2021 14:04, Kiwoong Kim wrote:
>> On 19/10/2021 07:57, Kiwoong Kim wrote:
>>> Changes from v1:
>>> * Change the time to requeue pended commands
>>>
>>> When an scsi command is dispatched right after host complete all the
>>> pended requests and ufs driver tries to ring a doorbell, host might be
>>> still during entering into hibern8.
>>> If the hibern8 error occurrs during that period, the doorbell might
>>> not be zero and clearing it should have done.
>>> But, current ufshcd_err_handler goes directly to reset w/o clearing
>>> the doorbell when the driver's link state is broken.
>>
>> So you mean HCE 1->0 does not clear the doorbell register?
>>
>>> This patch is to requeue pended commands after host reset.
>>
>> So you mean HCE 0->1 does clear the doorbell register?
> 
> 
> I talked about this again and maybe he didn't seem to accept its description like that
> Because he just focused on the term 'disable' in the description.
> Instead, there is an vendor sfr to clear all the contexts.
> 
> Yes, the description contains like this, but I think he could think it's done when setting one.
> --
> When HCE is ‘0’ and software writes ‘1’, the host 
> controller hardware shall execute the step 2 described in 7.1.1 of this standard, 
> including >>>>> reset <<<<< of the host UTP and UIC layers.
> 
> Of course, some statements, such as 8.2.2. UIC Error Handling, seems to show setting zero means clearing.
> But speaking the description, it's not quite clear to me.
> 
> Anyway, let me know how to deal with this.

It seems vendor-specific.  Perhaps export ufshcd_complete_requests()
and call it from vendor ops->hce_enable_notify(hba, POST_CHANGE) ?

Note that Bart submitted a patch to remove ufshcd_retry_aborted_requests().

  reply	other threads:[~2021-10-25  5:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20211019051346epcas2p132d3b9c6a1c812f3132e913525235b83@epcas2p1.samsung.com>
2021-10-19  4:57 ` [PATCH RESEND v2] scsi: ufs: clear doorbell for hibern8 errors when using ah8 Kiwoong Kim
2021-10-20 15:33   ` Adrian Hunter
2021-10-21 11:04     ` Kiwoong Kim
2021-10-25  5:38       ` Adrian Hunter [this message]
2021-10-21  6:10   ` Can Guo

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=6726fd8a-47f4-185d-e7a3-d006902d605c@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=alim.akhtar@samsung.com \
    --cc=avri.altman@wdc.com \
    --cc=beanhuo@micron.com \
    --cc=bhoon95.kim@samsung.com \
    --cc=bvanassche@acm.org \
    --cc=cang@codeaurora.org \
    --cc=hy50.seo@samsung.com \
    --cc=jejb@linux.ibm.com \
    --cc=kwmad.kim@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=sc.suh@samsung.com \
    --cc=sh425.lee@samsung.com \
    --cc=vkumar.1997@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