Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Sharma, Swati2" <swati2.sharma@intel.com>
To: "Samala, Pranay" <pranay.samala@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg
Date: Thu, 5 Dec 2024 14:36:23 +0530	[thread overview]
Message-ID: <7fc4b2d5-80b1-47ed-a3f1-5d4285758903@intel.com> (raw)
In-Reply-To: <PH7PR11MB60538096EC53283FA21CC752E7352@PH7PR11MB6053.namprd11.prod.outlook.com>

Hi Pranay,

On 02-12-2024 04:48 pm, Samala, Pranay wrote:
>> -----Original Message-----
>> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Swati
>> Sharma
>> Sent: Monday, December 2, 2024 2:21 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Sharma, Swati2 <swati2.sharma@intel.com>
>> Subject: [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg
>>
>> Convert `igt_debug` to `igt_info` to provide more context when skipping outputs
>> that doesn't fulfil dsc constraints.
>>
>> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
>> ---
>>   tests/intel/kms_dsc_helper.c | 14 +++++++-------
>>   1 file changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/tests/intel/kms_dsc_helper.c b/tests/intel/kms_dsc_helper.c index
>> 0de09b8e9..cea4304e4 100644
>> --- a/tests/intel/kms_dsc_helper.c
>> +++ b/tests/intel/kms_dsc_helper.c
>> @@ -69,14 +69,14 @@ bool is_dsc_supported_by_source(int drmfd)  bool
>> is_dsc_supported_by_sink(int drmfd, igt_output_t *output)  {
>>   	if (!igt_is_dsc_supported_by_sink(drmfd, output->name)) {
>> -		igt_debug("DSC not supported on connector %s\n",
>> +		igt_info("DSC not supported on connector %s\n",
>>   			  output->name);
> Alignment should match open parenthesis.

This has been before, didn't make any change. May be we can have cleanup 
patch later for fixing all alignments.

>>   		return false;
>>   	}
>>
>>   	if (!output_is_internal_panel(output) &&
>>   	    !igt_is_fec_supported(drmfd, output->name)) {
>> -		igt_debug("DSC cannot be enabled without FEC on %s\n",
>> +		igt_info("DSC cannot be enabled without FEC on %s\n",
>>   			  output->name);
> Same goes here.
>>   		return false;
>>   	}
>> @@ -91,7 +91,7 @@ bool check_gen11_dp_constraint(int drmfd, igt_output_t
>> *output, enum pipe pipe)
>>
>>   	if ((connector->connector_type ==
>> DRM_MODE_CONNECTOR_DisplayPort) &&
>>   	    (pipe == PIPE_A) && IS_GEN11(devid)) {
>> -		igt_debug("DSC not supported on pipe A on external DP in gen11
>> platforms\n");
>> +		igt_info("DSC not supported on pipe %s on %s in gen11
>> platforms\n",
>> +kmstest_pipe_name(pipe), output->name);
> line length is 123 columns, exceeding 100 columns.
>>   		return false;
>>   	}
>>
>> @@ -126,7 +126,7 @@ void force_dsc_output_format(int drmfd, igt_output_t
>> *output,  static bool is_dsc_output_format_supported_by_source(int disp_ver,
>> enum dsc_output_format output_format)  {
>>   	if (disp_ver < 14 && output_format == DSC_FORMAT_YCBCR420) {
>> -		igt_debug("Output format DSC YCBCR420 not supported on D13
>> and older platforms\n");
>> +		igt_info("Output format DSC YCBCR420 not supported on D13
>> and older
>> +platforms\n");
>>   		return false;
>>   	}
>>
>> @@ -140,7 +140,7 @@ bool is_dsc_output_format_supported(int drmfd, int
>> disp_ver, igt_output_t *outpu
>>   		return false;
>>
>>   	if (!igt_is_dsc_output_format_supported_by_sink(drmfd, output->name,
>> output_format)) {
>> -		igt_debug("DSC %s output format not supported on connector
>> %s\n",
>> +		igt_info("DSC %s output format not supported on connector
>> %s\n",
>>   			  kmstest_dsc_output_format_str(output_format),
> Alignment should match open parenthesis.
>
> Regards,
> Pranay Samala
>> output->name);
>>   		return false;
>>   	}
>> @@ -182,7 +182,7 @@ void restore_force_dsc_fractional_bpp_en(void)
>>   static bool is_dsc_fractional_bpp_supported_by_source(int disp_ver)  {
>>   	if (disp_ver < 14) {
>> -		igt_debug("DSC fractional bpp not supported on D13 and older
>> platforms\n");
>> +		igt_info("DSC fractional bpp not supported on D13 and older
>> +platforms\n");
>>   		return false;
>>   	}
>>
>> @@ -195,7 +195,7 @@ bool is_dsc_fractional_bpp_supported(int disp_ver, int
>> drmfd, igt_output_t *outp
>>   		return false;
>>
>>   	if (!igt_is_dsc_fractional_bpp_supported_by_sink(drmfd, output->name))
>> {
>> -		igt_debug("DSC fractional bpp not supported on connector
>> %s\n", output->name);
>> +		igt_info("DSC fractional bpp not supported on connector %s\n",
>> +output->name);
>>   		return false;
>>   	}
>>
>> --
>> 2.25.1

  reply	other threads:[~2024-12-05  9:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  8:51 [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg Swati Sharma
2024-12-02  8:51 ` [PATCH i-g-t 2/2] tests/intel/kms_dsc: Split max_bpc constraint Swati Sharma
2024-12-02 11:10   ` Samala, Pranay
2024-12-05  9:08     ` Sharma, Swati2
2024-12-02 11:18 ` [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg Samala, Pranay
2024-12-05  9:06   ` Sharma, Swati2 [this message]
2024-12-02 17:46 ` ✓ i915.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2024-12-02 18:37 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-02 20:11 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-02 21:24 ` ✗ i915.CI.Full: " Patchwork
2024-12-05 12:12 ` ✓ i915.CI.Full: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7fc4b2d5-80b1-47ed-a3f1-5d4285758903@intel.com \
    --to=swati2.sharma@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=pranay.samala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox