drm/amd/display: Improve warning log for get OPP for OTG master
If some part of the driver tries to call resource_get_opp_heads_for_otg_master in a non-OTG master context, DC will trigger a dmesg warning since this situation indicates that some configuration associated with ODM slices might be wrong. This commit adds an extra log to describe why the warning was triggered to make the debugging more straightforward. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>pull/914/head
parent
26ec3cca7b
commit
85fa228745
|
|
@ -1917,9 +1917,15 @@ int resource_get_opp_heads_for_otg_master(const struct pipe_ctx *otg_master,
|
|||
struct pipe_ctx *opp_heads[MAX_PIPES])
|
||||
{
|
||||
struct pipe_ctx *opp_head = &res_ctx->pipe_ctx[otg_master->pipe_idx];
|
||||
struct dc *dc = otg_master->stream->ctx->dc;
|
||||
int i = 0;
|
||||
|
||||
DC_LOGGER_INIT(dc->ctx->logger);
|
||||
|
||||
if (!resource_is_pipe_type(otg_master, OTG_MASTER)) {
|
||||
DC_LOG_WARNING("%s called from a non OTG master, something "
|
||||
"is wrong in the pipe configuration",
|
||||
__func__);
|
||||
ASSERT(0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue