Thread (16 messages) 16 messages, 4 authors, 2021-03-03

Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

From: Bean Huo <hidden>
Date: 2021-03-02 19:49:17
Also in: lkml

On Tue, 2021-03-02 at 13:15 +0000, Avri Altman wrote:
quoted
On Fri, 2021-02-26 at 16:35 +0900, Daejun Park wrote:
quoted
+static void ufshpb_set_unmap_cmd(unsigned char *cdb, struct
ufshpb_region *rgn)
+{
+       cdb[0] = UFSHPB_WRITE_BUFFER;
+       cdb[1] = rgn ? UFSHPB_WRITE_BUFFER_INACT_SINGLE_ID :
+                         UFSHPB_WRITE_BUFFER_INACT_ALL_ID;
Here is wrong,
Valid HPB Region is (0 ~ (Ceiling( Region size calculated by
bHPBRegionSize )- 1) ). how do you know the region==0 is not
a single normal region?
Please note that rgn  here is a ufshpb_region *rgn
I see, thanks. 
Thanks,
Avri
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help