[Bug 2208] New: [MdeMoudlePkg - UFS] edk2 UFS stack does not handle the 'FLAG VALUE' field of the QUERY RESPONSE UPIU properly


bugzilla-daemon at bugzilla.tianocore.org...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=2208

Bug ID: 2208
Summary: [MdeMoudlePkg - UFS] edk2 UFS stack does not handle
the 'FLAG VALUE' field of the QUERY RESPONSE UPIU
properly
Product: EDK2
Version: Current
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Lowest
Component: Code
Assignee: michael.d.kinney(a)intel.com
Reporter: hao.a.wu(a)intel.com
CC: edk2-bugs(a)lists.01.org

According to the UFS spec Version 2.1 (JESD220C), Table 10-48 & Table 10-49,
the "FLAG VALUE" field in the Read/Write Flag Response Data Format is at byte
offset 23 of the structure.

However, both

* UfsBlockIoPei: UfsHci.c - UfsRwFlags(), line 980
* UfsPassThruDxe: UfsPassThruHci.c - UfsGetReturnDataFromQueryResponse(), line
866

is fetching this field at byte offset 20 of the UTP Query Response UPIU
structure.

This behavior may cause wrong flag value being returned, and the issue should
be
addressed.

--
You are receiving this mail because:
You are on the CC list for the bug.