Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc26a2a2 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: export AMD_PP_EVENT_COMPLETE_INIT task to amdgpu.



This is needed to init the dynamic states without a display.  To be
used in the next commit.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5e031d9f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -402,7 +402,10 @@ int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_event event_id, void *input,

		data.requested_ui_label = power_state_convert(ps);
		ret = pem_handle_event(pp_handle->eventmgr, event_id, &data);
		break;
	}
	case AMD_PP_EVENT_COMPLETE_INIT:
		ret = pem_handle_event(pp_handle->eventmgr, event_id, &data);
		break;
	default:
		break;
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ const struct action_chain resume_action_chain = {
};

static const pem_event_action *complete_init_event[] = {
	unblock_adjust_power_state_tasks,
	adjust_power_state_tasks,
	enable_gfx_clock_gating_tasks,
	enable_gfx_voltage_island_power_gating_tasks,