mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
drm/amd/display: prepare dml 2.1 for new asic
[Why&How] prepare dml 2.1 for new asic Acked-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
0bfcb56e8b
commit
44343e8b25
@@ -211,7 +211,7 @@ struct dc_state *dc_state_create(struct dc *dc, struct dc_state_create_params *p
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!dml2_create(dc, &dc->dml2_dc_power_options, &state->bw_ctx.dml2_dc_power_source)) {
|
||||
if (dc->caps.dcmode_power_limits_present && !dml2_create(dc, &dc->dml2_dc_power_options, &state->bw_ctx.dml2_dc_power_source)) {
|
||||
dc_state_release(state);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@ struct dml2_instance;
|
||||
|
||||
enum dml2_project_id {
|
||||
dml2_project_invalid = 0,
|
||||
dml2_project_dcn4x_stage1 = 1,
|
||||
dml2_project_dcn4x_stage2 = 2,
|
||||
dml2_project_dcn4x_stage2_auto_drr_svp = 3,
|
||||
dml2_project_dcn4x_stage1,
|
||||
dml2_project_dcn4x_stage2,
|
||||
dml2_project_dcn4x_stage2_auto_drr_svp,
|
||||
};
|
||||
|
||||
enum dml2_pstate_change_support {
|
||||
|
||||
@@ -45,6 +45,7 @@ enum dce_version resource_parse_asic_id(
|
||||
struct resource_caps {
|
||||
int num_timing_generator;
|
||||
int num_opp;
|
||||
int num_dpp;
|
||||
int num_video_plane;
|
||||
int num_audio;
|
||||
int num_stream_encoder;
|
||||
|
||||
Reference in New Issue
Block a user