From: "Ser, Simon" <simon.ser@intel.com>
To: "Navare, Manasi D" <manasi.d.navare@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"madhumitha.tp@gmail.com" <madhumitha.tp@gmail.com>,
"Latvala, Petri" <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v2 1/2] lib/igt_kms: added tile property parser
Date: Mon, 9 Sep 2019 10:41:33 +0000 [thread overview]
Message-ID: <112d2a176f3e0fd7b41af3276630cbf7849cd975.camel@intel.com> (raw)
In-Reply-To: <20190909034938.GA19854@intel.com>
On Sun, 2019-09-08 at 20:49 -0700, Manasi Navare wrote:
> Hi Simon,
>
> Is this good to get merged?
Yes!
> Regards
> Manasi
>
> On Tue, Aug 27, 2019 at 12:33:45AM -0700, Ser, Simon wrote:
> > On Fri, 2019-08-23 at 11:23 -0700, Madhumitha Tolakanahalli Pradeep wrote:
> > > The tile property parser parses the connector tile property obtained
> > > from connector's Display ID block and set per connector.
> > >
> > > v2: Minor style changes (Simon)
> > >
> > > Cc: Manasi Navare <manasi.d.navare@intel.com>
> > > Cc: Petri Latvala <petri.latvala@intel.com>
> > > Cc: Simon Ser <simon.ser@intel.com>
> > >
> > > Cc: <madhumitha.tp@gmail.com>
> > >
> > > Signed-off-by: Madhumitha Tolakanahalli Pradeep <madhumitha.tolakanahalli.pradeep@intel.com>
> >
> > This is still:
> >
> > Reviewed-by: Simon Ser <simon.ser@intel.com>
> >
> > > ---
> > > lib/igt_kms.c | 29 +++++++++++++++++++++++++++++
> > > lib/igt_kms.h | 11 +++++++++++
> > > 2 files changed, 40 insertions(+)
> > >
> > > diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> > > index 17a7d2b6..dc0f810d 100644
> > > --- a/lib/igt_kms.c
> > > +++ b/lib/igt_kms.c
> > > @@ -4515,3 +4515,32 @@ bool igt_display_has_format_mod(igt_display_t *display, uint32_t format,
> > >
> > > return false;
> > > }
> > > +
> > > +/**
> > > + * igt_parse_connector_tile_blob:
> > > + * @blob: pointer to the connector's tile properties
> > > + * @tile: pointer to tile structure that is populated by the function
> > > + *
> > > + * Parses the connector tile blob to extract the tile information.
> > > + * The blob information is exposed from drm/drm_connector.c in the kernel.
> > > + * The format of the tile property is defined in the kernel as char tile[256]
> > > + * that consists of 8 integers that are ':' separated.
> > > + *
> > > + */
> > > +
> > > +void igt_parse_connector_tile_blob(drmModePropertyBlobPtr blob,
> > > + igt_tile_info_t *tile)
> > > +{
> > > + char *blob_data = blob->data;
> > > +
> > > + igt_assert(blob);
> > > +
> > > + tile->tile_group_id = atoi(strtok(blob_data, ":"));
> > > + tile->tile_is_single_monitor = atoi(strtok(NULL, ":"));
> > > + tile->num_h_tile = atoi(strtok(NULL, ":"));
> > > + tile->num_v_tile = atoi(strtok(NULL, ":"));
> > > + tile->tile_h_loc = atoi(strtok(NULL, ":"));
> > > + tile->tile_v_loc = atoi(strtok(NULL, ":"));
> > > + tile->tile_h_size = atoi(strtok(NULL, ":"));
> > > + tile->tile_v_size = atoi(strtok(NULL, ":"));
> > > +}
> > > diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> > > index 56481fd1..aebb4d31 100644
> > > --- a/lib/igt_kms.h
> > > +++ b/lib/igt_kms.h
> > > @@ -390,6 +390,14 @@ struct igt_display {
> > > int format_mod_count;
> > > };
> > >
> > > +typedef struct {
> > > + int tile_group_id;
> > > + bool tile_is_single_monitor;
> > > + uint8_t num_h_tile, num_v_tile;
> > > + uint8_t tile_h_loc, tile_v_loc;
> > > + uint16_t tile_h_size, tile_v_size;
> > > +} igt_tile_info_t;
> > > +
> > > void igt_display_require(igt_display_t *display, int drm_fd);
> > > void igt_display_fini(igt_display_t *display);
> > > void igt_display_reset(igt_display_t *display);
> > > @@ -834,4 +842,7 @@ static inline bool igt_vblank_before(uint32_t a, uint32_t b)
> > > return igt_vblank_after(b, a);
> > > }
> > >
> > > +void igt_parse_connector_tile_blob(drmModePropertyBlobPtr blob,
> > > + igt_tile_info_t *tile);
> > > +
> > > #endif /* __IGT_KMS_H__ */
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-09-09 10:41 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-23 18:23 [igt-dev] [PATCH i-g-t v2 0/2] Added tile property parser library function and IGT test for DP tiled displays Madhumitha Tolakanahalli Pradeep
2019-08-23 18:23 ` [igt-dev] [PATCH i-g-t v2 1/2] lib/igt_kms: added tile property parser Madhumitha Tolakanahalli Pradeep
2019-08-27 7:33 ` Ser, Simon
2019-09-09 3:49 ` Manasi Navare
2019-09-09 10:41 ` Ser, Simon [this message]
2019-09-09 20:06 ` Manasi Navare
2019-08-23 18:23 ` [igt-dev] [PATCH i-g-t v2 2/2] igt/tests/kms_dp_tiled_display: kms test for display port tiled displays Madhumitha Tolakanahalli Pradeep
2019-08-27 10:49 ` Ser, Simon
2019-08-27 21:29 ` Manasi Navare
2019-08-28 22:35 ` Manasi Navare
2019-08-30 11:39 ` Ser, Simon
2019-09-12 0:47 ` Manasi Navare
2019-09-12 12:51 ` Ser, Simon
2019-09-12 23:23 ` Manasi Navare
2019-09-12 1:31 ` [igt-dev] [PATCH i-g-t v3] " Manasi Navare
2019-09-12 23:28 ` [igt-dev] [PATCH i-g-t v4] " Manasi Navare
2019-09-13 9:49 ` Petri Latvala
2019-09-13 18:16 ` Manasi Navare
2019-09-13 11:41 ` Ser, Simon
2019-09-13 23:48 ` [igt-dev] [PATCH i-g-t v5] " Manasi Navare
2019-09-16 19:17 ` Simon Ser
2019-09-16 19:29 ` Manasi Navare
2019-09-16 19:34 ` [igt-dev] [PATCH i-g-t v6] " Manasi Navare
2019-09-16 19:42 ` Manasi Navare
2019-08-23 20:01 ` [igt-dev] ✓ Fi.CI.BAT: success for Added tile property parser library function and IGT test for DP tiled displays (rev2) Patchwork
2019-08-24 22:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-09-12 4:43 ` [igt-dev] ✓ Fi.CI.BAT: success for Added tile property parser library function and IGT test for DP tiled displays (rev3) Patchwork
2019-09-12 7:35 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-09-13 0:07 ` [igt-dev] ✓ Fi.CI.BAT: success for Added tile property parser library function and IGT test for DP tiled displays (rev4) Patchwork
2019-09-13 17:21 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2019-09-14 0:14 ` [igt-dev] ✓ Fi.CI.BAT: success for Added tile property parser library function and IGT test for DP tiled displays (rev5) Patchwork
2019-09-15 10:28 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2019-09-16 19:59 ` [igt-dev] ✓ Fi.CI.BAT: success for Added tile property parser library function and IGT test for DP tiled displays (rev6) Patchwork
2019-09-17 3:06 ` [igt-dev] ✓ Fi.CI.IGT: " 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=112d2a176f3e0fd7b41af3276630cbf7849cd975.camel@intel.com \
--to=simon.ser@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=madhumitha.tp@gmail.com \
--cc=manasi.d.navare@intel.com \
--cc=petri.latvala@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