From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86EC6C83F09 for ; Thu, 10 Jul 2025 04:48:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3436610E1A4; Thu, 10 Jul 2025 04:48:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="aKo2gyCs"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8EB4210E164 for ; Thu, 10 Jul 2025 04:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1752122911; x=1783658911; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A7EDjYAe26FMqS4/fD6Bli8nt0uikjJ3LfNaMQrH5qY=; b=aKo2gyCs4rK2bvZn3LrKpBOAXAU3qrkXlMxPpdohvkb9vnU2Oq1xLCMX IwAeuURiWXyK3IRMtD8PnN/QLXhojVN8SUz8wKgQp/8APT335K7nARWO3 yroCtakKwKg7em2L/5/YpIJtzyHJKBIOrmy+zmt0MlgxUbTsgnZ1Ld4L+ n8CN6uO+wByg9M/uDdm5Wz8Z1m8C1Ie1K4qi2CuFCtag4g8CCiOBp0fPp pg89ICKDv216/R9sG6yFXP0lB9l8RHF8Iy6qypn/EU9N9sl1TUKNJYo8n 2NAnr7mniUvyNK6j6TFQRf28tIeb2rcgMNT5MpfBdzq6KlHKoKME/Yr1K Q==; X-CSE-ConnectionGUID: m9M5HqkXQgSnxDejJ7yenA== X-CSE-MsgGUID: WP9q9Q/NSzOX07iro3FAaQ== X-IronPort-AV: E=McAfee;i="6800,10657,11489"; a="54540141" X-IronPort-AV: E=Sophos;i="6.16,299,1744095600"; d="scan'208";a="54540141" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2025 21:48:31 -0700 X-CSE-ConnectionGUID: MfGorqCAQveBksUx6h4C9A== X-CSE-MsgGUID: D9ccsiHsRnmieXhZwXYBcw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,299,1744095600"; d="scan'208";a="156446512" Received: from dut6245dg2frd.fm.intel.com ([10.80.55.42]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2025 21:48:31 -0700 From: Sobin Thomas To: igt-dev@lists.freedesktop.org Cc: zbigniew.kempczynski@intel.com, Sobin Thomas Subject: [PATCH v2 i-g-t 1/1] tests/intel/xe_copy : Add check for memset and memcpy tests. Date: Thu, 10 Jul 2025 04:48:09 +0000 Message-Id: <20250710044809.1739631-2-sobin.thomas@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250710044809.1739631-1-sobin.thomas@intel.com> References: <20250710044809.1739631-1-sobin.thomas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Added checks for platforms with graphics_ver < 20 (e.g., PVC) in xe_memcpy (page copy) and memset tests (e.g., xe-memset-linear) using extended parameters. Signed-off-by: Sobin Thomas --- tests/intel/xe_copy_basic.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/intel/xe_copy_basic.c b/tests/intel/xe_copy_basic.c index 5a050b82c..2996a496b 100644 --- a/tests/intel/xe_copy_basic.c +++ b/tests/intel/xe_copy_basic.c @@ -261,6 +261,7 @@ const char *help_str = igt_main_args("b", NULL, help_str, opt_handler, NULL) { int fd; + uint16_t dev_id; struct igt_collection *set, *regions; uint32_t region; struct rect linear[] = { { 0, 0xfd, 1, MODE_BYTE }, @@ -274,6 +275,7 @@ igt_main_args("b", NULL, help_str, opt_handler, NULL) igt_fixture { fd = drm_open_driver(DRIVER_XE); + dev_id = intel_get_drm_devid(fd); xe_device_get(fd); set = xe_get_memory_region_set(fd, DRM_XE_MEM_REGION_CLASS_SYSMEM, @@ -293,6 +295,7 @@ igt_main_args("b", NULL, help_str, opt_handler, NULL) for (int i = 0; i < ARRAY_SIZE(page); i++) { igt_subtest_f("mem-page-copy-%u", page[i].width) { igt_require(blt_has_mem_copy(fd)); + igt_require(intel_get_device_info(dev_id)->graphics_ver >= 20); for_each_variation_r(regions, 1, set) { region = igt_collection_get_value(regions, 0); copy_test(fd, &page[i], MEM_COPY, region); @@ -312,6 +315,13 @@ igt_main_args("b", NULL, help_str, opt_handler, NULL) for (int i = 0; i < ARRAY_SIZE(linear); i++) { igt_subtest_f("mem-set-linear-0x%x", linear[i].width) { + /* Skip mem-set-linear test for values greater than + * 0x3FFFF. As hardware with graphics_ver<20 support + * till 0x3FFFF. + */ + if ((linear[i].width > 0x3ffff) && + (intel_get_device_info(dev_id)->graphics_ver < 20)) + igt_skip("Skipping: width exceeds 18-bit limit on gfx_ver < 20."); igt_require(blt_has_mem_set(fd)); for_each_variation_r(regions, 1, set) { region = igt_collection_get_value(regions, 0); -- 2.34.1