From: "Sharma, Swati2" <swati2.sharma@intel.com>
To: Kunal Joshi <kunal1.joshi@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
Karthik B S <karthik.b.s@intel.com>
Subject: Re: [PATCH i-g-t 2/2] tests/chamelium/kms_chamelium_color: print output name in assert
Date: Tue, 22 Apr 2025 13:06:33 +0530 [thread overview]
Message-ID: <6752da5f-316e-4e4e-bd57-c62e69f21b83@intel.com> (raw)
In-Reply-To: <20250415063742.3026718-3-kunal1.joshi@intel.com>
Hi Kunal
Patch LGTM
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
On 15-04-2025 12:07 pm, Kunal Joshi wrote:
> Print output name in assert
>
> v2: print output name for better log readability (Swati)
>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> Cc: Karthik B S <karthik.b.s@intel.com>
> Cc: Swati Sharma <swati2.sharma@intel.com>
> Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
> ---
> lib/igt_chamelium.c | 62 --------------------------
> lib/igt_chamelium.h | 64 ++++++++++++++++++++++++---
> lib/intel_compute.c | 2 +
> tests/chamelium/kms_chamelium_color.c | 2 +-
> 4 files changed, 61 insertions(+), 69 deletions(-)
>
> diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
> index a96e36b5b..87ac1a1ca 100644
> --- a/lib/igt_chamelium.c
> +++ b/lib/igt_chamelium.c
> @@ -24,28 +24,7 @@
> * Lyude Paul <lyude@redhat.com>
> */
>
> -#include "config.h"
> -
> -#include <stdbool.h>
> -#include <string.h>
> -#include <errno.h>
> -#include <math.h>
> -#include <xmlrpc-c/base.h>
> -#include <xmlrpc-c/client.h>
> -#include <pthread.h>
> -#include <glib.h>
> -#include <pixman.h>
> -#include <cairo.h>
> -
> #include "igt_chamelium.h"
> -#include "igt_core.h"
> -#include "igt_aux.h"
> -#include "igt_edid.h"
> -#include "igt_frame.h"
> -#include "igt_list.h"
> -#include "igt_kms.h"
> -#include "igt_pipe_crc.h"
> -#include "igt_rc.h"
>
> /**
> * SECTION:igt_chamelium
> @@ -90,47 +69,6 @@
> * Especially with modern, more complex hardware where we may have LSPcons and
> * USB controllers in the way.
> */
> -#define CHAMELIUM_HOTPLUG_DETECTION_DELAY 10
> -
> -struct chamelium_port {
> - unsigned int type;
> - int id;
> - int connector_id;
> - char *name;
> - bool adapter_allowed;
> - char *connector_path;
> - bool is_mapped;
> -};
> -
> -struct chamelium_frame_dump {
> - unsigned char *bgr;
> - size_t size;
> - int width;
> - int height;
> - struct chamelium_port *port;
> -};
> -
> -struct chamelium_fb_crc_async_data {
> - cairo_surface_t *fb_surface;
> -
> - pthread_t thread_id;
> - igt_crc_t *ret;
> -};
> -
> -struct chamelium {
> - xmlrpc_env env;
> - xmlrpc_client *client;
> - char *url;
> -
> - /* Indicates the last port to have been used for capturing video */
> - struct chamelium_port *capturing_port;
> -
> - int drm_fd;
> -
> - struct igt_list_head edids;
> - struct chamelium_port ports[CHAMELIUM_MAX_PORTS];
> - int port_count;
> -};
>
> bool igt_chamelium_allow_fsm_handling = true;
>
> diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h
> index 8882e13fb..b2b97434f 100644
> --- a/lib/igt_chamelium.h
> +++ b/lib/igt_chamelium.h
> @@ -28,23 +28,35 @@
>
> #include "config.h"
>
> -#include <stdbool.h>
> +#include <cairo.h>
> +#include <errno.h>
> +#include <glib.h>
> +#include <math.h>
> +#include <pixman.h>
> +#include <pthread.h>
> #include <stddef.h>
> +#include <stdbool.h>
> +#include <string.h>
> #include <xf86drmMode.h>
> +#include <xmlrpc-c/base.h>
> +#include <xmlrpc-c/client.h>
>
> +#include "igt_aux.h"
> +#include "igt_core.h"
> #include "igt_debugfs.h"
> +#include "igt_edid.h"
> +#include "igt_frame.h"
> #include "igt_kms.h"
> #include "igt_list.h"
> +#include "igt_pipe_crc.h"
> +#include "igt_rc.h"
> +
> +#define CHAMELIUM_HOTPLUG_DETECTION_DELAY 10
>
> struct igt_fb;
> struct edid;
> typedef struct _igt_crc igt_crc_t;
>
> -struct chamelium;
> -struct chamelium_port;
> -struct chamelium_frame_dump;
> -struct chamelium_fb_crc_async_data;
> -
> /**
> * chamelium_check:
> * @CHAMELIUM_CHECK_ANALOG: Fuzzy checking method for analog interfaces
> @@ -107,6 +119,46 @@ extern bool igt_chamelium_allow_fsm_handling;
>
> #define CHAMELIUM_HOTPLUG_TIMEOUT 20 /* seconds */
>
> +struct chamelium_port {
> + unsigned int type;
> + int id;
> + int connector_id;
> + char *name;
> + bool adapter_allowed;
> + char *connector_path;
> + bool is_mapped;
> +};
> +
> +struct chamelium_frame_dump {
> + unsigned char *bgr;
> + size_t size;
> + int width;
> + int height;
> + struct chamelium_port *port;
> +};
> +
> +struct chamelium_fb_crc_async_data {
> + cairo_surface_t *fb_surface;
> +
> + pthread_t thread_id;
> + igt_crc_t *ret;
> +};
> +
> +struct chamelium {
> + xmlrpc_env env;
> + xmlrpc_client *client;
> + char *url;
> +
> + /* Indicates the last port to have been used for capturing video */
> + struct chamelium_port *capturing_port;
> +
> + int drm_fd;
> +
> + struct igt_list_head edids;
> + struct chamelium_port ports[CHAMELIUM_MAX_PORTS];
> + int port_count;
> +};
> +
> /**
> * chamelium_edid:
> * @chamelium: instance of the chamelium where the EDID will be applied
> diff --git a/lib/intel_compute.c b/lib/intel_compute.c
> index 825bfb110..827b72f54 100644
> --- a/lib/intel_compute.c
> +++ b/lib/intel_compute.c
> @@ -22,7 +22,9 @@
>
> #define PIPE_CONTROL 0x7a000004
> #define MEDIA_STATE_FLUSH 0x0
> +#ifndef MAX
> #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y))
> +#endif
> #define SIZE_DATA 64
> #define SIZE_BATCH 0x10000
> #define SIZE_BUFFER_INPUT MAX(sizeof(float) * SIZE_DATA, 0x10000)
> diff --git a/tests/chamelium/kms_chamelium_color.c b/tests/chamelium/kms_chamelium_color.c
> index bf6510969..88b3717d4 100644
> --- a/tests/chamelium/kms_chamelium_color.c
> +++ b/tests/chamelium/kms_chamelium_color.c
> @@ -758,7 +758,7 @@ igt_main
> igt_assert_f(chamelium_reprobe_connector(&data.display,
> data.chamelium,
> data.ports[i]) == DRM_MODE_CONNECTED,
> - "Output not connected\n");
> + "%s not connected\n", data.chamelium->ports[i].name);
> }
>
> kmstest_set_vt_graphics_mode();
next prev parent reply other threads:[~2025-04-22 7:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-15 6:37 [PATCH i-g-t 0/2] tests/chamelium/kms_chamelium_color: force connector reprobe after plugging ports Kunal Joshi
2025-04-15 6:37 ` [PATCH i-g-t 1/2] " Kunal Joshi
2025-04-22 5:41 ` Sharma, Swati2
2025-04-15 6:37 ` [PATCH i-g-t 2/2] tests/chamelium/kms_chamelium_color: print output name in assert Kunal Joshi
2025-04-22 7:36 ` Sharma, Swati2 [this message]
2025-04-24 17:18 ` Kamil Konieczny
2025-04-15 8:31 ` ✓ i915.CI.BAT: success for tests/chamelium/kms_chamelium_color: force connector reprobe after plugging ports Patchwork
2025-04-15 8:50 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-15 10:28 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-15 13:08 ` ✗ Xe.CI.Full: " 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=6752da5f-316e-4e4e-bd57-c62e69f21b83@intel.com \
--to=swati2.sharma@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
--cc=karthik.b.s@intel.com \
--cc=kunal1.joshi@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