diff options
author | Nicholas Kazlauskas <[email protected]> | 2019-11-12 13:46:34 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-12-05 16:30:43 -0500 |
commit | 2f39835cc35033672ace41f32d653dbf2c0c8132 (patch) | |
tree | 1bab4ea671fcf54334ad1392ba15a8963f2557c8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d4bbcecb596296834aeafb93008474671c7988cf (diff) |
drm/amd/display: Add shared DMCUB/driver firmware state cache window
[Why]
Scratch registers are limited on the DMCUB and we have an expanding
list of state to track between driver and DMCUB.
[How]
Place shared state in cache window 6. The cache window size is aligned
to the size of the cache line on the DMCUB to make it easy to
invalidate.
The shared state is intended to be read only from driver side so
it's been marked as const.
The use of volatile is intentional. The memory for the shared firmware
state is memory mapped from the framebuffer memory. The DMCUB will
flush its cache after modifying the region. There's no way for x86
to known whether this data is stale or not so we want to intentionally
disable optimization to force the read at every access.
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions