From: Peter Wang <peter.wang@mediatek.com>
To: Daniel Lee <chullee@google.com>
Cc: <James.Bottomley@hansenpartnership.com>,
<martin.petersen@oracle.com>, <alim.akhtar@samsung.com>,
<avri.altman@sandisk.com>, <bvanassche@acm.org>,
<tanghuan@vivo.com>, <linux-scsi@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] ufs: sysfs: Add WB partial flush mode support
Date: Tue, 24 Nov 2026 14:14:28 +0800 [thread overview]
Message-ID: <0849f8a091ab35cfc2220ec5fb275f0fc95461a5.camel@mediatek.com> (raw)
In-Reply-To: <CALBjLoAtLCcQJ2TQD4uuTJR-eiD1Dqr+Q2oV1+8K4pnOKRuOvw@mail.gmail.com>
On Mon, 2026-11-23 at 15:32 -0800, Daniel Lee wrote:
> Hi Peter,
>
> ufshcd_is_wb_attrs() determines whether a query request sets INDEX
> via
> ufshcd_wb_get_query_index(hba) or leaves it as 0.
>
> Per JESD220G Table 14.28, 0x42, 0x43, and 0x44 (along with 0x3F) are
> Type "D" (device-level) attributes and must use INDEX = 0, even in
> LU-dedicated WB mode. Only 0x1C-0x1F, 0x40-0x41, and 0x45-0x46 are
> "A/LU/0 or D" (Note 15) and use ufshcd_wb_get_query_index(hba).
>
> This was updated in v4 per Bart's review [1].
>
> [1]
> https://lore.kernel.org/linux-scsi/9d58cbf3-e0cc-41b8-8958-df8abd505524@acm.org/
>
>
> Thanks,
> Daniel
>
Hi Daniel,
Thank you for your detailed explanation.
I missed this part of the spec.
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
prev parent reply other threads:[~2026-11-24 6:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 0:47 Daniel Lee
2026-11-19 9:58 ` Peter Wang
2026-11-23 23:32 ` Daniel Lee
2026-11-24 6:14 ` Peter Wang [this message]
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=0849f8a091ab35cfc2220ec5fb275f0fc95461a5.camel@mediatek.com \
--to=peter.wang@mediatek.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@sandisk.com \
--cc=bvanassche@acm.org \
--cc=chullee@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=tanghuan@vivo.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®