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 AB78CC47DD9 for ; Mon, 22 Jan 2024 02:45:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41F3610E317; Mon, 22 Jan 2024 02:45:20 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8921F10E315 for ; Mon, 22 Jan 2024 02:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705891519; x=1737427519; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=82sQTgkO/Z0HKKU8bG1RRjowCE6uak4MbaO22t6QYIM=; b=O1ruJGWLu7u+wVrc+IF+yuCN0zCiwMqd63+vEe76IDJQGdN+6Nz43FSM JSW3Au/YLLRrQx4r75LUmeD+lBe+dJaH6Co1U94h1LbEmHS5j9EUKnikH +AM0tjKW39iXDfVZS+atn8VolJyNxXRq43TOpg2z0PEfuv1uwHiYNe4y/ 53fxOWPkzsLu0XU2qKQH982JHyFqwyGUYOk6Ck0qPWx/UFRHT1kAvlZrm IrkCE1LTFWmuyH6d7WIq/W0Sf//8G0ytJ8/lKZySyIO15l2RvNa8Vo+gq qGnxcVyOdTlFkxVMPsXbkBbfYhLVPq0UZElWh/IoiVN46e3W1DRmDmMxZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="22570000" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="22570000" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 18:45:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="819533111" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="819533111" Received: from bommu-optiplex-5060.iind.intel.com ([10.145.169.63]) by orsmga001.jf.intel.com with ESMTP; 21 Jan 2024 18:45:12 -0800 From: Bommu Krishnaiah To: igt-dev@lists.freedesktop.org Subject: [PATCH v4 1/3] tests/xe_waitfence: remove invalid_engine subtest from xe_waitfence Date: Mon, 22 Jan 2024 08:15:41 +0530 Message-Id: <20240122024543.456795-2-krishnaiah.bommu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240122024543.456795-1-krishnaiah.bommu@intel.com> References: <20240122024543.456795-1-krishnaiah.bommu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: , Cc: Bommu Krishnaiah , Rodrigo Vivi Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" engine and instance members are removed from drm_xe_wait_user_fence, hence invalid_engine subtest is invalid and removing it. kernel implementation: https://patchwork.freedesktop.org/series/127365/ Signed-off-by: Bommu Krishnaiah Cc: Rodrigo Vivi --- tests/intel/xe_waitfence.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/tests/intel/xe_waitfence.c b/tests/intel/xe_waitfence.c index 7ba20764c..dfdb97fb5 100644 --- a/tests/intel/xe_waitfence.c +++ b/tests/intel/xe_waitfence.c @@ -151,9 +151,6 @@ waitfence(int fd, enum waittype wt) * SUBTEST: invalid-ops * Description: Check query with invalid ops returns expected error code * - * SUBTEST: invalid-engine - * Description: Check query with invalid engine info returns expected error code - * * SUBTEST: exec_queue-reset-wait * Description: Don’t wait till timeout on user fence when exec_queue reset is detected and return return proper error */ @@ -206,30 +203,6 @@ invalid_ops(int fd) do_ioctl_err(fd, DRM_IOCTL_XE_WAIT_USER_FENCE, &wait, EINVAL); } -static void -invalid_engine(int fd) -{ - uint32_t bo; - - struct drm_xe_wait_user_fence wait = { - .addr = to_user_pointer(&wait_fence), - .op = DRM_XE_UFENCE_WAIT_OP_EQ, - .flags = 0, - .value = 1, - .mask = DRM_XE_UFENCE_WAIT_MASK_U64, - .timeout = -1, - .exec_queue_id = 0, - }; - - uint32_t vm = xe_vm_create(fd, 0, 0); - - bo = xe_bo_create(fd, vm, 0x40000, vram_if_possible(fd, 0), 0); - - do_bind(fd, vm, bo, 0, 0x200000, 0x40000, 1); - - do_ioctl_err(fd, DRM_IOCTL_XE_WAIT_USER_FENCE, &wait, EFAULT); -} - static void exec_queue_reset_wait(int fd) { @@ -329,9 +302,6 @@ igt_main igt_subtest("invalid-ops") invalid_ops(fd); - igt_subtest("invalid-engine") - invalid_engine(fd); - igt_subtest("exec_queue-reset-wait") exec_queue_reset_wait(fd); -- 2.25.1