diff options
| author | Juston Li <[email protected]> | 2021-08-19 11:48:34 -0700 |
|---|---|---|
| committer | Anshuman Gupta <[email protected]> | 2021-09-09 13:09:06 +0530 |
| commit | 0f317ebb5f7cb2b1d9a538c9795962fabd6e180e (patch) | |
| tree | ae398e35501fa50c58aa49a18eff556dda7bbb33 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 58cfa3297aa0779e18b7cbb5e6c6301f97c5f776 (diff) | |
drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List
When reading RepeaterAuth_Send_ReceiverID_List, RxInfo is read by itself
once to retrieve the DEVICE_COUNT to calculate the size of the
ReceiverID list then read a second time as a part of reading ReceiverID
list.
On some MST docking stations, RxInfo can only be read after the RxStatus
READY bit is set otherwise the read will return -EIO. The spec states that
the READY bit should be cleared as soon as RxInfo has been read.
In this case, the first RxInfo read succeeds but after the READY bit is
cleared, the second read fails.
Fix it by reading RxInfo once and storing it before reading the rest of
RepeaterAuth_Send_ReceiverID_List once we know the size.
Modify get_receiver_id_list_size() to read and store RxInfo in the
message buffer and also parse DEVICE_COUNT so we know the size of
RepeaterAuth_Send_ReceiverID_List.
Afterwards, retrieve the rest of the message at the offset for
seq_num_V.
Changes in v5:
- Don't change the offset define for Send_ReceiverID_List
When reading, update message offset to account for RxInfo being read
Changes in v4:
- rebase and edit commit message
Changes in v3:
- remove comment
Changes in v2:
- remove unnecessary moving of drm_i915_private from patch 1
Signed-off-by: Juston Li <[email protected]>
Reviewed-by: Ramalingam C <[email protected]>
Reviewed-by: Anshuman Gupta <[email protected]>
Tested-by: Suraj K <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions