History

scsi: ufs: core: Add support for qTimestamp attribute

The new qTimestamp attribute was added to UFS 4.0 spec, in order to synchronize timestamp between device logs and the host. The spec recommends to send this attribute upon device power-on Reset/HW reset or when switching to Active state (using SSU command). Due to this attribute, the attribute's max value was extended to 8 bytes. As a result, the new definition of struct utp_upiu_query_v4_0 was added. Signed-off-by: Arthur Simchaev <Arthur.Simchaev@wdc.com> ----------------- Changes to v2: - Adressed Bart's comments - Add missed response variable to ufshcd_set_timestamp_attr

Arthur Simchaev committed 3 years ago

Commit 24befa91 parent 47699a23 files · +64 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/scsi/scsi_bsg_ufs.h+25−0
@@ -70,6 +70,31 @@ struct utp_upiu_query { · 69 unmodified lines
70 __be32 reserved[2];70 __be32 reserved[2];
71};71};
72 72
73/**
74 * struct utp_upiu_query_v4_0 - upiu request buffer structure for
75 * query request >= UFS 4.0 spec.
76 * @opcode: command to perform B-0
77 * @idn: a value that indicates the particular type of data B-1
78 * @index: Index to further identify data B-2
79 * @selector: Index to further identify data B-3
80 * @osf4: spec field B-5
81 * @osf5: spec field B 6,7
82 * @osf6: spec field DW 8,9
83 * @osf7: spec field DW 10,11
84 */
85struct utp_upiu_query_v4_0 {
86 __u8 opcode;
87 __u8 idn;
88 __u8 index;
89 __u8 selector;
90 __u8 osf3;
91 __u8 osf4;
92 __be16 osf5;
93 __be32 osf6;
94 __be32 osf7;
95 __be32 reserved;
96};
97
73/**98/**
74 * struct utp_upiu_cmd - Command UPIU structure99 * struct utp_upiu_cmd - Command UPIU structure
75 * @data_transfer_len: Data Transfer Length DW-3100 * @data_transfer_len: Data Transfer Length DW-3