Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: mouse event trigger to boost RR when idle

[WHY+HOW]
Add trigger event to boost refresh rate on mouse movement.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Muaaz Nisar <muanisar@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Muaaz Nisar and committed by
Alex Deucher
ba448f9e 5b8cfb0c

+13
+13
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
··· 515 515 } 516 516 } 517 517 518 + /* apply manual trigger */ 519 + int i; 520 + 521 + for (i = 0; i < dc->res_pool->pipe_count; i++) { 522 + struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; 523 + 524 + /* trigger event on first pipe with current stream */ 525 + if (stream == pipe_ctx->stream) { 526 + pipe_ctx->stream_res.tg->funcs->program_manual_trigger(pipe_ctx->stream_res.tg); 527 + break; 528 + } 529 + } 530 + 518 531 return true; 519 532 } 520 533