* About reading UECxx in ufshcd_dump_regs
[not found] <CGME20220205070515epcas2p324076e473ad0d955f43fdb3cb409c584@epcas2p3.samsung.com>
@ 2022-02-05 7:05 ` Kiwoong Kim
2022-02-06 8:22 ` Avri Altman
0 siblings, 1 reply; 2+ messages in thread
From: Kiwoong Kim @ 2022-02-05 7:05 UTC (permalink / raw)
To: linux-scsi, alim.akhtar, avri.altman, jejb, martin.petersen,
beanhuo, cang, adrian.hunter, sc.suh, hy50.seo, sh425.lee,
bhoon95.kim
Dear all
I want to discuss about reading UECxx of UFS SFRs in ufshcd_dump_regs.
There are five SFRs - UECPA, UECDL, UECN, UECT and UECDME which are all ROC type that means they are cleared when reading them.
Originally, these SFRs are to let UFS driver know UIC error type which a UIC errors occurs.
Thus, when UFS driver reads them after clearing IS.UE, they are cleared.
I think the read values would be zero in many cases because of the flow I mentioned
And there might be some cases when ufshcd_dump_regs reads them before the ISR reads them.
e.g. when a command is timed out and ufshcd_dump_regs is called in ufshcd_abort.
So I want to ask this: how about removing reading UECxx in ufshcd_dump_regs?
I think reading them is meaningless and might be even a little bit risky.
Thanks.
Kiwoong Kim
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: About reading UECxx in ufshcd_dump_regs
2022-02-05 7:05 ` About reading UECxx in ufshcd_dump_regs Kiwoong Kim
@ 2022-02-06 8:22 ` Avri Altman
0 siblings, 0 replies; 2+ messages in thread
From: Avri Altman @ 2022-02-06 8:22 UTC (permalink / raw)
To: Kiwoong Kim, linux-scsi@vger.kernel.org, alim.akhtar@samsung.com,
jejb@linux.ibm.com, martin.petersen@oracle.com,
beanhuo@micron.com, cang@codeaurora.org, adrian.hunter@intel.com,
sc.suh@samsung.com, hy50.seo@samsung.com, sh425.lee@samsung.com,
bhoon95.kim@samsung.com
> Dear all
>
> I want to discuss about reading UECxx of UFS SFRs in ufshcd_dump_regs.
>
> There are five SFRs - UECPA, UECDL, UECN, UECT and UECDME which are all
> ROC type that means they are cleared when reading them.
> Originally, these SFRs are to let UFS driver know UIC error type which a UIC
> errors occurs.
> Thus, when UFS driver reads them after clearing IS.UE, they are cleared.
>
> I think the read values would be zero in many cases because of the flow I
> mentioned And there might be some cases when ufshcd_dump_regs reads them
> before the ISR reads them.
> e.g. when a command is timed out and ufshcd_dump_regs is called in
> ufshcd_abort.
>
> So I want to ask this: how about removing reading UECxx in ufshcd_dump_regs?
> I think reading them is meaningless and might be even a little bit risky.
Maybe send an RFC patch to make the discussion concrete.
Thanks,
Avri
>
> Thanks.
> Kiwoong Kim
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-06 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20220205070515epcas2p324076e473ad0d955f43fdb3cb409c584@epcas2p3.samsung.com>
2022-02-05 7:05 ` About reading UECxx in ufshcd_dump_regs Kiwoong Kim
2022-02-06 8:22 ` Avri Altman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox