[PATCH v2 3/3] drm/amd/display: Implement the retrieval of checksum_region's CRC data

2023-06-18 Thread Alan Liu
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 --- .../gpu/drm

[PATCH v2 2/3] drm/amd/display: Create checksum_region properties and handle new region update

2023-06-18 Thread Alan Liu
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

[PATCH v2 0/3] Checksum Region with new CRTC properties

2023-06-18 Thread Alan Liu
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 .../gpu/drm/amd/display

[PATCH v2 1/3] drm: Introduce CRTC checksum region and CRC properties

2023-06-18 Thread Alan Liu
for 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

[PATCH 6/7] drm/amd/display: Implement the retrieval of secure display CRC data

2023-05-15 Thread Alan Liu
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 --git

[PATCH 5/7] drm/amd/display: Processing secure display new ROI update in atomic commit

2023-05-15 Thread Alan Liu
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

[PATCH 7/7] drm/amd/display: Block the requests for secure display ROI/CRC until data ready

2023-05-15 Thread Alan Liu
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

[PATCH 4/7] drm/amd/display: Implement set/get functions for secure display CRC properties

2023-05-15 Thread Alan Liu
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

[PATCH 3/7] drm/amd/display: Add new blob properties for secure display CRC

2023-05-15 Thread Alan Liu
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

[PATCH 2/7] drm/amd/display: Implement set/get functions for secure display ROI properties

2023-05-15 Thread Alan Liu
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

[PATCH 1/7] drm/amd/display: Add new blob properties for secure display ROI

2023-05-15 Thread Alan Liu
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

[PATCH 0/7] Secure display with new CRTC properties

2023-05-15 Thread Alan Liu
. 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 drm