Retrieve and store checksum_region's CRC data from the DC hardware in vline0 irq
handler. A new function amdgpu_dm_crtc_update_checksum_region_crc() is
implemented and hooked to CRTC callback for updating the latest CRC values
to the checksum CRC blob.
Signed-off-by: Alan Liu
---
.../gp
This commit creates checksum_region properties at CRTC initialization,
and update the new region during the atomic atomic. A new function
amdgpu_dm_crtc_set_secure_display_crc_source() is implemented to control
the state of CRC engine of DC hardware.
Signed-off-by: Alan Liu
---
.../gpu/drm/amd
CRC
checksum to the crc blob.
- Squash patches from 7 to 3.
Alan Liu (3):
drm: Introduce CRTC checksum region and CRC properties
drm/amd/display: Create checksum_region properties and handle new
region update
drm/amd/display: Implement the retrieval of checksum_region's CRC data
a CRTC by calling
drm_crtc_create_checksum_region_properties() and hook its own
implementation on new CRTC function update_chechsum_region_crc() to update
the values of the CRC property for the incoming userspace request.
Signed-off-by: Alan Liu
---
drivers/gpu/drm/drm_atomic_state_helper.c | 7
Retrieve secure display's CRC data from the DC hardware in vline0 irq
handler, and store the values in secure display contexts.
Signed-off-by: Alan Liu
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 50 ---
1 file changed, 42 insertions(+), 8 deletions(-)
diff --
Check if there is a new ROI update during the atomic commit and process
it. A new function amdgpu_dm_crtc_set_secure_display_crc_source() is
implemented to control the state of CRC engine in hardware.
Signed-off-by: Alan Liu
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 38
When the user requests for secure display ROI or CRC data, the
request will be blocked until the CRC result of current frame is
calculated and updated to secure display ctx in vline0 irq handler.
Signed-off-by: Alan Liu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8
Implement set/get functions as the callback for userspace to get the CRC
result values of the corresponding ROI configuration of secure display.
Signed-off-by: Alan Liu
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 +
.../amd/display/amdgpu_dm/amdgpu_dm_crtc.c| 38
Add a new blob properties and implement the property creation and
attachment functions for the CRC result values of secure display.
Signed-off-by: Alan Liu
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 3 +++
.../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 1 +
.../drm/amd/display
Implement set/get functions as the callback for userspace to update or
get the secure display ROI configuration.
Signed-off-by: Alan Liu
---
.../amd/display/amdgpu_dm/amdgpu_dm_crtc.c| 51 +++
1 file changed, 51 insertions(+)
diff --git a/drivers/gpu/drm/amd/display
Add a new blob properties as well as the create and attach functions
for configuring region of interested (ROI) of secure display.
Signed-off-by: Alan Liu
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 10 ++
.../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 4 +++
.../drm/amd/display
mit
6. Implement the retrieval of secure display CRC data
7. Block the requests for secure display ROI/CRC until data
ready
Thanks for the reading and welcome any advice from your review.
Alan Liu (7):
drm/amd/display: Add new blob properties for secure display ROI
12 matches
Mail list logo