Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Manszewski, Christoph" <christoph.manszewski@intel.com>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 1/4] Revert "tests/xe_eudebug: Validate exec queue placements"
Date: Fri, 7 Feb 2025 13:54:00 +0100	[thread overview]
Message-ID: <b96a5570-8f85-444d-b37d-6ed5319e5f67@intel.com> (raw)
In-Reply-To: <20250207114935.1996323-2-mika.kuoppala@linux.intel.com>

Hi Mika,

On 7.02.2025 12:49, Mika Kuoppala wrote:
> Exec queue placements support was dropped as unused.
> 
> This reverts commit 05659c7f2840938c4977668143e6c60a46ca509d.
> 
> Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

Reviewed-by: Christoph Manszewski <christoph.manszewski@intel.com>

Thanks,
Christoph
> ---
>   tests/intel/xe_eudebug.c | 129 ++-------------------------------------
>   1 file changed, 4 insertions(+), 125 deletions(-)
> 
> diff --git a/tests/intel/xe_eudebug.c b/tests/intel/xe_eudebug.c
> index da53aa881..76870805c 100644
> --- a/tests/intel/xe_eudebug.c
> +++ b/tests/intel/xe_eudebug.c
> @@ -20,7 +20,6 @@
>   #include <sys/prctl.h>
>   
>   #include "igt.h"
> -#include "igt_sysfs.h"
>   #include "intel_pat.h"
>   #include "lib/igt_syncobj.h"
>   #include "xe/xe_eudebug.h"
> @@ -62,10 +61,9 @@ static void test_sysfs_toggle(int fd)
>   #define VM_METADATA			(1 << 5)
>   #define VM_BIND_METADATA		(1 << 6)
>   #define VM_BIND_OP_MAP_USERPTR		(1 << 7)
> -#define EXEC_QUEUES_PLACEMENTS		(1 << 8)
> -#define VM_BIND_DELAY_UFENCE_ACK	(1 << 9)
> -#define VM_BIND_UFENCE_RECONNECT	(1 << 10)
> -#define VM_BIND_UFENCE_SIGINT_CLIENT	(1 << 11)
> +#define VM_BIND_DELAY_UFENCE_ACK	(1 << 8)
> +#define VM_BIND_UFENCE_RECONNECT	(1 << 9)
> +#define VM_BIND_UFENCE_SIGINT_CLIENT	(1 << 10)
>   #define TEST_DISCOVERY			(1 << 31)
>   
>   #define PAGE_SIZE SZ_4K
> @@ -426,80 +424,6 @@ static void vm_bind_client(int fd, struct xe_eudebug_client *c)
>   	xe_eudebug_client_vm_destroy(c, fd, vm);
>   }
>   
> -static void placements_client(int fd, struct xe_eudebug_client *c)
> -{
> -	struct drm_xe_ext_set_property eq_ext = {
> -		.base.name = DRM_XE_EXEC_QUEUE_EXTENSION_SET_PROPERTY,
> -		.property = DRM_XE_EXEC_QUEUE_SET_PROPERTY_EUDEBUG,
> -		.value = DRM_XE_EXEC_QUEUE_EUDEBUG_FLAG_ENABLE,
> -	};
> -	struct drm_xe_exec_queue_create create = {
> -		.extensions = to_user_pointer(&eq_ext),
> -	};
> -	struct drm_xe_engine_class_instance *eci;
> -	bool at_least_4_ccs = false;
> -	uint32_t vm;
> -	int i, gt;
> -
> -	xe_for_each_gt(fd, gt) {
> -		int count = 0;
> -
> -		xe_for_each_engine(fd, eci)
> -			if (eci->engine_class == DRM_XE_ENGINE_CLASS_COMPUTE &&
> -			    eci->gt_id == gt)
> -				count++;
> -
> -		if (count < 4)
> -			continue;
> -
> -		at_least_4_ccs = true;
> -
> -		vm = xe_eudebug_client_vm_create(c, fd, DRM_XE_VM_CREATE_FLAG_LR_MODE, 0);
> -
> -		eci = calloc(count * count - 2, sizeof(*eci));
> -
> -		for (i = 0; i < count * count - 2; i++) {
> -			eci[i].engine_class = DRM_XE_ENGINE_CLASS_COMPUTE;
> -			eci[i].gt_id = gt;
> -		}
> -
> -		for (i = 0; i < count; i++)
> -			eci[i].engine_instance = i;
> -
> -		create.instances = to_user_pointer(eci);
> -		create.vm_id = vm;
> -		create.width = 1;
> -		create.num_placements = count;
> -		xe_eudebug_client_exec_queue_create(c, fd, &create);
> -		xe_eudebug_client_exec_queue_destroy(c, fd, &create);
> -
> -		create.width = count;
> -		create.num_placements = 1;
> -		xe_eudebug_client_exec_queue_create(c, fd, &create);
> -		xe_eudebug_client_exec_queue_destroy(c, fd, &create);
> -
> -		/* every other instance (logical_mask ~ 1010, 0101) */
> -		create.width = 2;
> -		create.num_placements = count/2;
> -		xe_eudebug_client_exec_queue_create(c, fd, &create);
> -		xe_eudebug_client_exec_queue_destroy(c, fd, &create);
> -
> -		/* logically contigous placement (logical_mask ~ 1100, 0110, 0011) */
> -		for (i = 0; i < count * count - 2; i++)
> -			eci[i].engine_instance = i / 2 + i % 2;
> -
> -		create.width = 2;
> -		create.num_placements = count - 1;
> -		xe_eudebug_client_exec_queue_create(c, fd, &create);
> -		xe_eudebug_client_exec_queue_destroy(c, fd, &create);
> -
> -		xe_eudebug_client_vm_destroy(c, fd, vm);
> -		free(eci);
> -	}
> -
> -	igt_require(at_least_4_ccs);
> -}
> -
>   static void run_basic_client(struct xe_eudebug_client *c)
>   {
>   	int fd, i;
> @@ -550,9 +474,6 @@ static void run_basic_client(struct xe_eudebug_client *c)
>   		xe_eudebug_client_vm_destroy(c, fd, vm);
>   	}
>   
> -	if (c->flags & EXEC_QUEUES_PLACEMENTS)
> -		placements_client(fd, c);
> -
>   	if (c->flags & VM_BIND || c->flags & VM_BIND_METADATA)
>   		basic_vm_bind_client(fd, c);
>   
> @@ -991,11 +912,6 @@ static void test_read_event(int fd)
>    *	Attach the debugger to a process that performs bind, bind array, rebind,
>    *	partial unbind, unbind and unbind all operations.
>    *
> - * SUBTEST: exec-queue-placements
> - * Description:
> - *	Create compute exec_queues with various placements and compare them against
> - *	event sent to the debugger.
> - *
>    * SUBTEST: multigpu-basic-client
>    * Description:
>    *	Attach the debugger to process which opens and closes xe drm client on all Xe devices.
> @@ -2794,40 +2710,14 @@ static void test_basic_exec_queues_enable(int fd)
>   	xe_vm_destroy(fd, vm_non_lr);
>   }
>   
> -static void ccs_mode_all_engines(int num_gt)
> -{
> -	int fd, gt, gt_fd, num_slices, ccs_mode;
> -	int num_gts_with_ccs_mode = 0;
> -
> -	for (gt = 0; gt < num_gt; gt++) {
> -		fd = drm_open_driver(DRIVER_XE);
> -		gt_fd = xe_sysfs_gt_open(fd, gt);
> -		close(fd);
> -
> -		if (igt_sysfs_scanf(gt_fd, "num_cslices", "%u", &num_slices) <= 0)
> -			continue;
> -
> -		num_gts_with_ccs_mode++;
> -
> -		igt_assert(igt_sysfs_printf(gt_fd, "ccs_mode", "%u", num_slices) > 0);
> -		igt_assert(igt_sysfs_scanf(gt_fd, "ccs_mode", "%u", &ccs_mode) > 0);
> -		igt_assert(num_slices == ccs_mode);
> -		close(gt_fd);
> -	}
> -
> -	errno = 0;
> -	igt_require(num_gts_with_ccs_mode > 0);
> -}
> -
>   igt_main
>   {
>   	bool was_enabled;
>   	bool *multigpu_was_enabled;
> -	int fd, gpu_count, gt_count;
> +	int fd, gpu_count;
>   
>   	igt_fixture {
>   		fd = drm_open_driver(DRIVER_XE);
> -		gt_count = xe_number_gt(fd);
>   		was_enabled = xe_eudebug_enable(fd, true);
>   	}
>   
> @@ -2936,17 +2826,6 @@ igt_main
>   	igt_subtest("discovery-empty-clients")
>   		test_empty_discovery(fd, DISCOVERY_DESTROY_RESOURCES, 16);
>   
> -	igt_subtest_group {
> -		igt_fixture {
> -			drm_close_driver(fd);
> -			ccs_mode_all_engines(gt_count);
> -			fd = drm_open_driver(DRIVER_XE);
> -		}
> -
> -		igt_subtest("exec-queue-placements")
> -			test_basic_sessions(fd, EXEC_QUEUES_PLACEMENTS, 1, true);
> -	}
> -
>   	igt_fixture {
>   		xe_eudebug_enable(fd, was_enabled);
>   		drm_close_driver(fd);

  reply	other threads:[~2025-02-07 12:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-07 11:49 [PATCH i-g-t 0/4] eudebug: drop support for exec queue placements Mika Kuoppala
2025-02-07 11:49 ` [PATCH i-g-t 1/4] Revert "tests/xe_eudebug: Validate exec queue placements" Mika Kuoppala
2025-02-07 12:54   ` Manszewski, Christoph [this message]
2025-02-07 11:49 ` [PATCH i-g-t 2/4] Revert "lib/xe_eudebug: Add support for exec queue placements events" Mika Kuoppala
2025-02-07 12:58   ` Manszewski, Christoph
2025-02-07 11:49 ` [PATCH i-g-t 3/4] Revert "drm-uapi-experimental/xe_drm_eudebug: Sync after exec_queue placement event addition" Mika Kuoppala
2025-02-07 12:58   ` Manszewski, Christoph
2025-02-07 11:49 ` [PATCH i-g-t 4/4] lib/eudebug: Adjust to upstream uapi rebase Mika Kuoppala
2025-02-07 12:59   ` Manszewski, Christoph
2025-02-07 19:47 ` ✗ Fi.CI.BAT: failure for eudebug: drop support for exec queue placements 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=b96a5570-8f85-444d-b37d-6ed5319e5f67@intel.com \
    --to=christoph.manszewski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mika.kuoppala@linux.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