diff options
author | Wesley Chalmers <[email protected]> | 2021-04-01 12:23:06 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-06-15 17:25:41 -0400 |
commit | 30adeee52d1ebadd8e4e594a54c7cf77250b91db (patch) | |
tree | f4378d55155ea19356cb5f8c4036cfae9df33a31 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 788797c793788415426ef7249ca81c66bbfb9f14 (diff) |
drm/amd/display: Enforce DPCD Address ranges
[WHY]
Some DPCD addresses, notably LTTPR Capability registers, are expected to
be read all together in a single DPCD transaction. Rather than force callers to
read registers they don't need, we want to quietly extend the addresses
read, and only return back the values the caller asked for.
This does not affect DPCD writes.
[HOW]
Create an additional layer above AUX to perform 'checked' DPCD
transactions.
Iterate through an array of DPCD address ranges that are marked as being
contiguous. If a requested read falls within one of those ranges, extend
the read to include the entire range.
After DPCD has been queried, copy the requested bytes into the caller's
data buffer, and deallocate all resources used.
Signed-off-by: Wesley Chalmers <[email protected]>
Reviewed-by: Jun Lei <[email protected]>
Acked-by: Anson Jacob <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions