drm/amd/display: Add missing DMUB CACP and PR definitions

[Why]
Should have been picked up in 0.1.69.0 promotion commit.

[How]
Add the missing DMUB command-header definitions in dmub_cmd.h:

1. DMUB_CMD__CACP_GET_ACE_CURVE_AREA command ID.
2. Request/response data and command structs.
3. PR runtime flag bit.

Signed-off-by: Taimur Hassan <Syed.Hassan@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Taimur Hassan
2026-07-27 00:11:49 -04:00
committed by Alex Deucher
parent 77c9d06187
commit f82cee9dd8

View File

@@ -6256,6 +6256,10 @@ enum dmub_cmd_cacp_type {
* Get CACP Histogram
*/
DMUB_CMD__CACP_GET_HISTOGRAM = 7,
/**
* Get ACE curve area for IGT test validation.
*/
DMUB_CMD__CACP_GET_ACE_CURVE_AREA = 8,
};
/**
@@ -6644,6 +6648,50 @@ struct dmub_rb_cmd_cacp_get_histogram {
uint8_t pad;
};
/**
* Data passed from driver to FW in a DMUB_CMD__CACP_GET_ACE_CURVE_AREA command.
*/
struct dmub_cmd_cacp_get_ace_curve_area_in {
/**
* eDP panel instance (0-based).
*/
uint8_t panel_inst;
/**
* Explicit padding to 4 byte boundary.
*/
uint8_t pad[3];
};
/**
* Data returned from FW in a DMUB_CMD__CACP_GET_ACE_CURVE_AREA command.
*/
struct dmub_cmd_cacp_get_ace_curve_area_out {
/**
* Computed area under the ACE PWL curve (trapezoidal integration).
* Lower value = stronger dimming (higher CACP level).
* Directly comparable across levels.
*/
uint32_t area;
};
/**
* Definition of a DMUB_CMD__CACP_GET_ACE_CURVE_AREA command.
* Uses inline response pattern: input and output share the data union.
*/
struct dmub_rb_cmd_cacp_get_ace_curve_area {
/**
* Command header.
*/
struct dmub_cmd_header header;
/**
* Data union for input/output.
*/
union {
struct dmub_cmd_cacp_get_ace_curve_area_in in;
struct dmub_cmd_cacp_get_ace_curve_area_out out;
} data;
};
/**
* Data passed from driver to FW in a DMUB_CMD__QUERY_FEATURE_CAPS command.
*/
@@ -7435,6 +7483,7 @@ struct dmub_rb_cmd_pr_copy_settings {
union dmub_pr_runtime_flags {
struct {
uint32_t disable_abm_optimization : 1; // Disable ABM optimization for PR
uint32_t abm_periodic_ffu_allowed : 1; // DAL: scenario wants periodic ABM keep-alive FFU
} bitfields;
uint32_t u32All;
};
@@ -7815,6 +7864,11 @@ union dmub_rb_cmd {
*/
struct dmub_rb_cmd_cacp_get_histogram cacp_get_histogram;
/**
* Definition of a DMUB_CMD__CACP_GET_ACE_CURVE_AREA command.
*/
struct dmub_rb_cmd_cacp_get_ace_curve_area cacp_get_ace_curve_area;
/**
* Definition of a DMUB_CMD__IDLE_OPT_DCN_NOTIFY_IDLE command.
*/