<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Jas,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Please add drm/amd/display prefix to the patch title<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
--</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jay<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dhillon, Jasdeep <Jasdeep.Dhillon@amd.com><br>
<b>Sent:</b> Wednesday, September 21, 2022 8:18 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Wentland, Harry <Harry.Wentland@amd.com>; Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Lakha, Bhawanpreet <Bhawanpreet.Lakha@amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Zhuo, Qingqing (Lillian)
<Qingqing.Zhuo@amd.com>; Li, Roman <Roman.Li@amd.com>; Lin, Wayne <Wayne.Lin@amd.com>; Wang, Chao-kai (Stylon) <Stylon.Wang@amd.com>; Chiu, Solomon <Solomon.Chiu@amd.com>; Kotarac, Pavle <Pavle.Kotarac@amd.com>; Gutierrez, Agustin <Agustin.Gutierrez@amd.com>;
Syu, Brandon <Brandon.Syu@amd.com>; Cyr, Aric <Aric.Cyr@amd.com>; Dhillon, Jasdeep <Jasdeep.Dhillon@amd.com><br>
<b>Subject:</b> [PATCH 23/31] Add debug option for exiting idle optimizations on cursor updates</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Brandon Syu <Brandon.Syu@amd.com><br>
<br>
[Description]<br>
- Have option to exit idle opt on cursor updates<br>
for debug and optimizations purposes<br>
<br>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com><br>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com><br>
Signed-off-by: Brandon Syu<Brandon.Syu@amd.com><br>
---<br>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 3 ++-<br>
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 1 +<br>
drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c | 3 ++-<br>
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 1 +<br>
4 files changed, 6 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
index f6f3878c99b8..3a3b2ac791c7 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
@@ -724,7 +724,8 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
.dwb_fi_phase = -1, // -1 = disable,<br>
.dmub_command_table = true,<br>
.disable_psr = false,<br>
- .use_max_lb = true<br>
+ .use_max_lb = true,<br>
+ .exit_idle_opt_for_cursor_updates = true<br>
};<br>
<br>
static const struct dc_debug_options debug_defaults_diags = {<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
index 0c2b15a0f3a7..559e563d5bc1 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
@@ -700,6 +700,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
.dwb_fi_phase = -1, // -1 = disable<br>
.dmub_command_table = true,<br>
.use_max_lb = false,<br>
+ .exit_idle_opt_for_cursor_updates = true<br>
};<br>
<br>
static const struct dc_debug_options debug_defaults_diags = {<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
index 4fab537e822f..b925b6ddde5a 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
@@ -93,7 +93,8 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
.underflow_assert_delay_us = 0xFFFFFFFF,<br>
.dwb_fi_phase = -1, // -1 = disable,<br>
.dmub_command_table = true,<br>
- .use_max_lb = true<br>
+ .use_max_lb = true,<br>
+ .exit_idle_opt_for_cursor_updates = true<br>
};<br>
<br>
static const struct dc_debug_options debug_defaults_diags = {<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
index d97076648acb..527d5c902878 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
@@ -77,6 +77,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
.underflow_assert_delay_us = 0xFFFFFFFF,<br>
.dwb_fi_phase = -1, // -1 = disable,<br>
.dmub_command_table = true,<br>
+ .exit_idle_opt_for_cursor_updates = true,<br>
.disable_idle_power_optimizations = false,<br>
};<br>
<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>