<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Pranay,</div>
<div id="appendonsend"></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Samala, Pranay <pranay.samala@intel.com><br>
<b>Sent:</b> Tuesday, December 3, 2024 3:11 PM<br>
<b>To:</b> Reddy Guddati, Santhosh <santhosh.reddy.guddati@intel.com>; igt-dev@lists.freedesktop.org <igt-dev@lists.freedesktop.org><br>
<b>Cc:</b> B S, Karthik <karthik.b.s@intel.com>; Reddy Guddati, Santhosh <santhosh.reddy.guddati@intel.com><br>
<b>Subject:</b> RE: [PATCH i-g-t v1 1/1] tests/kms_invalid_mode: Add ultrajoiner support to adjust_mode_clock_too_high</span>
<div> </div>
</div>
<div class="elementToProof" style="font-size: 11pt;">Hi Santosh,<br>
<br>
No need of cover-letter for one patch series</div>
<div class="elementToProof" style="font-size: 11pt;"><br>
</div>
<div class="elementToProof" style="font-size: 11pt;">Thank you, I understand that for a single patch, a cover letter seems to be not necessary. I included it here assuming new patches would be added. I will consider removing the cover letter for future patch
series.<br>
<br>
> -----Original Message-----<br>
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Santhosh<br>
> Reddy Guddati<br>
> Sent: Tuesday, December 3, 2024 12:14 PM<br>
> To: igt-dev@lists.freedesktop.org<br>
> Cc: B S, Karthik <karthik.b.s@intel.com>; Reddy Guddati, Santhosh<br>
> <santhosh.reddy.guddati@intel.com><br>
> Subject: [PATCH i-g-t v1 1/1] tests/kms_invalid_mode: Add ultrajoiner support to<br>
> adjust_mode_clock_too_high<br>
><br>
> Check ultrajoiner support on the output and adjust `max_dotclock` accordingly.<br>
><br>
> Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com><br>
> ---<br>
> tests/kms_invalid_mode.c | 29 +++++++++++++++++++++++++++++<br>
> 1 file changed, 29 insertions(+)<br>
><br>
> diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c index<br>
> 4fd644594..5f13efddb 100644<br>
> --- a/tests/kms_invalid_mode.c<br>
> +++ b/tests/kms_invalid_mode.c<br>
> @@ -34,6 +34,7 @@<br>
> */<br>
><br>
> #include "igt.h"<br>
> +#include "xe/xe_query.h"<br>
> #include <limits.h><br>
> #include <stdbool.h><br>
><br>
> @@ -99,6 +100,28 @@ can_bigjoiner(data_t *data)<br>
> return false;<br>
> }<br>
><br>
> +static bool<br>
> +can_ultrajoiner(data_t *data)<br>
> +{<br>
> + bool ultra_joiner_supported = false;<br>
> + bool is_dgfx;<br>
> + int display_ver;<br>
> +<br>
> + is_dgfx = is_xe_device(data->drm_fd) ? xe_has_vram(data->drm_fd) :<br>
> + gem_has_lmem(data->drm_fd);<br>
> + display_ver = intel_display_ver(intel_get_drm_devid(data->drm_fd));<br>
> +<br>
> + if ((is_dgfx && display_ver == 14) || (display_ver > 14))<br>
<br>
No need of parentheses around 'display_ver > 14'<br>
> + ultra_joiner_supported = true;<br>
> +<br>
> + if (ultra_joiner_supported) {<br>
> + igt_debug("Platform supports ultrajoiner\n");<br>
> + return true;<br>
> + }<br>
> +<br>
> + return false;<br>
> +}<br>
> +<br>
> static bool<br>
> adjust_mode_clock_too_high(data_t *data, drmModeModeInfoPtr mode) { @@<br>
> -128,6 +151,12 @@ adjust_mode_clock_too_high(data_t *data,<br>
> drmModeModeInfoPtr mode)<br>
> max_dotclock *= 2;<br>
> }<br>
><br>
> + if (can_ultrajoiner(data)) {<br>
> + igt_info("Platform supports ultrajoiner with %s\n",<br>
> + data->output->name);<br>
<br>
Alignment should match open parenthesis<br>
<br>
Regards,<br>
Pranay Samala<br>
> + max_dotclock *= 4;<br>
> + }<br>
> +<br>
> mode->clock = max_dotclock + 1;<br>
><br>
> return true;<br>
> --<br>
> 2.34.1<br>
<br>
</div>
</body>
</html>