All of lore.kernel.org
 help / color / mirror / Atom feed
From: Louis Chauvet <louis.chauvet@bootlin.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	igt-dev@lists.freedesktop.org,
	Petri Latvala <adrinael@adrinael.net>,
	Arkadiusz Hiler <arek@hiler.eu>,
	Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
	Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
	Ashutosh Dixit <ashutosh.dixit@intel.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	nicolejadeyee@google.com, seanpaul@google.com,
	jeremie.dautheribes@bootlin.com, markyacoub@google.com
Subject: Re: [PATCH i-g-t v2 3/5] lib/monitor_edids: Add helper to print all available EDID names
Date: Fri, 8 Nov 2024 23:38:26 +0100	[thread overview]
Message-ID: <Zy6S4jMsXR4IYwc4@fedora> (raw)
In-Reply-To: <20241031190415.53o5xi5hgluyorjw@kamilkon-desk.igk.intel.com>

On 31/10/24 - 20:04, Kamil Konieczny wrote:
> Hi Louis,
> On 2024-10-22 at 14:53:12 +0200, Louis Chauvet wrote:
> > During the chamelium v3 configuration, it may be required to know the list
> > of supported EDID names, so add an helper to print them.
> > 
> > Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
> > ---
> >  lib/monitor_edids/monitor_edids_helper.c | 10 ++++++++++
> >  lib/monitor_edids/monitor_edids_helper.h |  2 ++
> >  2 files changed, 12 insertions(+)
> > 
> > diff --git a/lib/monitor_edids/monitor_edids_helper.c b/lib/monitor_edids/monitor_edids_helper.c
> > index 0f92ced64d06..ca2f5006eada 100644
> > --- a/lib/monitor_edids/monitor_edids_helper.c
> > +++ b/lib/monitor_edids/monitor_edids_helper.c
> > @@ -170,3 +170,13 @@ struct edid *get_edid_by_name(char *name)
> >  	}
> >  	return NULL;
> >  }
> > +
> 
> Add description.
> 
> > +void list_edid_names(enum igt_log_level level)
> > +{
> > +	for (int i = 0; i < ARRAY_SIZE(ALL_EDIDS); i++) {
> > +		for (int j = 0; j < ALL_EDIDS[i].list_size; j++) {
> > +			igt_log(IGT_LOG_DOMAIN, level, " - \"%s\"\n",
> > +				ALL_EDIDS[i].edid_list[j].name);
> > +		}
> > +	}
> > +}
> > diff --git a/lib/monitor_edids/monitor_edids_helper.h b/lib/monitor_edids/monitor_edids_helper.h
> > index cd0e5a7b2645..50b08530826a 100644
> > --- a/lib/monitor_edids/monitor_edids_helper.h
> > +++ b/lib/monitor_edids/monitor_edids_helper.h
> > @@ -15,6 +15,7 @@
> >  #include <stddef.h>
> >  #include <stdbool.h>
> >  
> > +#include "igt_core.h"
> 
> And now it returns... Why not make this a first patch?

Because I did some cleanup on the first patch to avoid useless dependency, 
but now I need igt_log_level and igt_log... You are right, I will not 
remove it on the first patch.

> >  #include "igt_chamelium.h"
> >  
> >  /* Max Length can be increased as needed, when new EDIDs are added. */
> > @@ -35,5 +36,6 @@ void free_chamelium_edid_from_monitor_edid(struct chamelium_edid *edid);
> >  struct edid *edid_from_monitor_edid(const monitor_edid *monitor_edid);
> >  struct monitor_edid *get_edids_for_connector_type(uint32_t type, size_t *count, bool four_k);
> >  struct edid *get_edid_by_name(char *name);
> > +void list_edid_names(enum igt_log_level level);
> >  
> >  #endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ */
> > \ No newline at end of file
> 
> Add newline.
> 
> Regards,
> Kamil
> > 
> > -- 
> > 2.46.2
> > 

  reply	other threads:[~2024-11-08 22:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-22 12:53 [PATCH i-g-t v2 0/5] lib/igt_kms: Helpers for monitor edid managment Louis Chauvet
2024-10-22 12:53 ` [PATCH i-g-t v2 1/5] lib/monitor_edids: Add helper functions for using monitor_edid objects Louis Chauvet
2024-10-31 18:53   ` Kamil Konieczny
2024-11-08 22:38     ` Louis Chauvet
2024-10-22 12:53 ` [PATCH i-g-t v2 2/5] lib/monitor_edids: Add helper to get an EDID by its name Louis Chauvet
2024-10-31 18:58   ` Kamil Konieczny
2024-11-08 22:38     ` Louis Chauvet
2024-10-22 12:53 ` [PATCH i-g-t v2 3/5] lib/monitor_edids: Add helper to print all available EDID names Louis Chauvet
2024-10-31 19:04   ` Kamil Konieczny
2024-11-08 22:38     ` Louis Chauvet [this message]
2024-10-22 12:53 ` [PATCH i-g-t v2 4/5] lib/monitor_edids: Fix missing names in some monitor EDID Louis Chauvet
2024-10-31 19:00   ` Kamil Konieczny
2024-10-22 12:53 ` [PATCH i-g-t v2 5/5] lib/monitor_edids: Add new EDID for HDMI 4k Louis Chauvet
2024-10-31 19:01   ` Kamil Konieczny
2024-10-22 17:44 ` ✓ Fi.CI.BAT: success for lib/igt_kms: Helpers for monitor edid managment (rev2) Patchwork
2024-10-22 18:16 ` ✓ CI.xeBAT: " Patchwork
2024-10-22 22:10 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-22 23:54 ` ✗ 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=Zy6S4jMsXR4IYwc4@fedora \
    --to=louis.chauvet@bootlin.com \
    --cc=adrinael@adrinael.net \
    --cc=arek@hiler.eu \
    --cc=ashutosh.dixit@intel.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeremie.dautheribes@bootlin.com \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=markyacoub@google.com \
    --cc=nicolejadeyee@google.com \
    --cc=seanpaul@google.com \
    --cc=thomas.petazzoni@bootlin.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.