All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rohith Iyer <quic_rohiiyer@quicinc.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org, quic_aravindh@quicinc.com
Subject: Re: [igt-dev] [PATCH i-g-t v1 1/3] lib/igt_kms: Add helper to parse mode string
Date: Fri, 29 Jul 2022 10:59:24 -0700	[thread overview]
Message-ID: <f90cb47e-09ab-57b9-decc-64e3470baa42@quicinc.com> (raw)
In-Reply-To: <Yt9/Aw7MCZKx7PkP@platvala-desk.ger.corp.intel.com>

Hi,
I have addressed these changes in the new patch set.

Thanks,
Rohith

On 7/25/2022 10:43 PM, Petri Latvala wrote:
> On Wed, Jul 13, 2022 at 03:22:33PM -0700, Rohith Iyer wrote:
>> Add helper method to parse a mode string from command line
> 
> 
> In this form the string doesn't have to be from command line at all
> call sites.
> 
> 
>> , and verify
>> correct number of arguments. This standardizes parsing mode strings.
>>
>> Signed-off-by: Rohith Iyer <quic_rohiiyer@quicinc.com>
>> ---
>>   lib/igt_kms.c | 26 ++++++++++++++++++++++++++
>>   lib/igt_kms.h |  1 +
>>   2 files changed, 27 insertions(+)
>>
>> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
>> index d8867f09..6df6658a 100644
>> --- a/lib/igt_kms.c
>> +++ b/lib/igt_kms.c
>> @@ -5739,3 +5739,29 @@ bool igt_check_bigjoiner_support(igt_display_t *display)
>>   
>>   	return true;
>>   }
>> +
>> +/**
>> + * igt_parse_mode_string:
>> + * @mode_string: a pointer to the optarg
> 
> With the above said, the parameter is just the modeline string.
> 
>> + * @mode: a pointer to a drm mode structure
>> + *
>> + * Parse mode string from command line and populate mode
>> + *
>> + * Format: <clock(MHz)>,<hdisp>,<hsync-start>,<hsync-end>,<htotal>,<vdisp>,<vsync-start>,
>> + * <vsync-end>,<vtotal>
>> + *
>> + * Returns: true if the correct number of arguments are entered, else false.
>> + */
>> +bool igt_parse_mode_string(char *mode_string, drmModeModeInfo *mode)
> 
> const char *mode_string
> 
> 

  reply	other threads:[~2022-07-29 17:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13 22:22 [igt-dev] [PATCH i-g-t v1 0/3] kms_writeback enhancements Rohith Iyer
2022-07-13 22:22 ` [igt-dev] [PATCH i-g-t v1 1/3] lib/igt_kms: Add helper to parse mode string Rohith Iyer
2022-07-26  5:43   ` Petri Latvala
2022-07-29 17:59     ` Rohith Iyer [this message]
2022-07-13 22:22 ` [igt-dev] [PATCH i-g-t v1 2/3] tests/testdisplay: Use igt_parse_mode_string for command line arguments Rohith Iyer
2022-07-26  5:52   ` Petri Latvala
2022-07-13 22:22 ` [igt-dev] [PATCH i-g-t v1 3/3] tests/kms_writeback: Enhance kms_writeback for custom modes Rohith Iyer
2022-07-28 10:12   ` Petri Latvala
2022-07-13 22:30 ` [igt-dev] ✗ GitLab.Pipeline: warning for kms_writeback enhancements Patchwork
2022-07-13 22:59 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-07-13 23:00 ` [igt-dev] ✗ GitLab.Pipeline: warning for kms_writeback enhancements (rev2) Patchwork
2022-07-13 23:29 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-07-13 23:30 ` [igt-dev] ✗ GitLab.Pipeline: warning for kms_writeback enhancements (rev3) Patchwork
2022-07-13 23:57 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-07-14  3:35 ` [igt-dev] ✗ Fi.CI.IGT: failure for kms_writeback enhancements Patchwork
2022-07-14  4:43 ` [igt-dev] ✗ Fi.CI.IGT: failure for kms_writeback enhancements (rev2) Patchwork
2022-07-14  5:40 ` [igt-dev] ✓ Fi.CI.IGT: success for kms_writeback enhancements (rev3) Patchwork
2022-07-15 22:13 ` [igt-dev] [PATCH i-g-t v1 0/3] kms_writeback enhancements Abhinav Kumar

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=f90cb47e-09ab-57b9-decc-64e3470baa42@quicinc.com \
    --to=quic_rohiiyer@quicinc.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    --cc=quic_aravindh@quicinc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.