Skip to content

Commit acbbbd2

Browse files
AMD-aricalexdeucher
authored andcommitted
drm/amd/display: 3.2.309
This version brings along the following: - DML2 fixes - DP fixes - DPMS fix - HPD fixes - Misc cleanup - ODM fix - Replay fix - SPL fix Reviewed-by: Leo Li <[email protected]> Signed-off-by: Aric Cyr <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b7e381b commit acbbbd2

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct aux_payload;
5555
struct set_config_cmd_payload;
5656
struct dmub_notification;
5757

58-
#define DC_VER "3.2.308"
58+
#define DC_VER "3.2.309"
5959

6060
#define MAX_SURFACES 3
6161
#define MAX_PLANES 6

drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ static void dmub_abm_set_backlight(struct dc_context *dc,
653653
cmd.abm_set_backlight.header.sub_type = DMUB_CMD__ABM_SET_BACKLIGHT;
654654
cmd.abm_set_backlight.abm_set_backlight_data.frame_ramp = backlight_level_params->frame_ramp;
655655
cmd.abm_set_backlight.abm_set_backlight_data.backlight_user_level = backlight_level_params->backlight_pwm_u16_16;
656-
cmd.abm_set_backlight.abm_set_backlight_data.backlight_control_type = backlight_level_params->control_type;
656+
cmd.abm_set_backlight.abm_set_backlight_data.backlight_control_type =
657+
(enum dmub_backlight_control_type) backlight_level_params->control_type;
657658
cmd.abm_set_backlight.abm_set_backlight_data.min_luminance = backlight_level_params->min_luminance;
658659
cmd.abm_set_backlight.abm_set_backlight_data.max_luminance = backlight_level_params->max_luminance;
659660
cmd.abm_set_backlight.abm_set_backlight_data.min_backlight_pwm = backlight_level_params->min_backlight_pwm;

drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4426,6 +4426,24 @@ struct dmub_rb_cmd_abm_set_pipe {
44264426
struct dmub_cmd_abm_set_pipe_data abm_set_pipe_data;
44274427
};
44284428

4429+
/**
4430+
* Type of backlight control method to be used by ABM module
4431+
*/
4432+
enum dmub_backlight_control_type {
4433+
/**
4434+
* PWM Backlight control
4435+
*/
4436+
DMU_BACKLIGHT_CONTROL_PWM = 0,
4437+
/**
4438+
* VESA Aux-based backlight control
4439+
*/
4440+
DMU_BACKLIGHT_CONTROL_VESA_AUX = 1,
4441+
/**
4442+
* AMD DPCD Aux-based backlight control
4443+
*/
4444+
DMU_BACKLIGHT_CONTROL_AMD_AUX = 2,
4445+
};
4446+
44294447
/**
44304448
* Data passed from driver to FW in a DMUB_CMD__ABM_SET_BACKLIGHT command.
44314449
*/
@@ -4452,18 +4470,23 @@ struct dmub_cmd_abm_set_backlight_data {
44524470
*/
44534471
uint8_t panel_mask;
44544472

4473+
/**
4474+
* AUX HW Instance.
4475+
*/
4476+
uint8_t aux_inst;
4477+
4478+
/**
4479+
* Explicit padding to 4 byte boundary.
4480+
*/
4481+
uint8_t pad[1];
4482+
44554483
/**
44564484
* Backlight control type.
44574485
* Value 0 is PWM backlight control.
44584486
* Value 1 is VAUX backlight control.
44594487
* Value 2 is AMD DPCD AUX backlight control.
44604488
*/
4461-
uint8_t backlight_control_type;
4462-
4463-
/**
4464-
* AUX HW instance.
4465-
*/
4466-
uint8_t aux_inst;
4489+
enum dmub_backlight_control_type backlight_control_type;
44674490

44684491
/**
44694492
* Minimum luminance in nits.

0 commit comments

Comments
 (0)