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 1016EFEA80C for ; Wed, 25 Mar 2026 06:03:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7B3310E77C; Wed, 25 Mar 2026 06:03:57 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="PymL/+D3"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id AC3BE10E77C for ; Wed, 25 Mar 2026 06:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1774418631; x=1805954631; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RVUbYb6JkNhdu2OYwMG0ByajvbROJl9DM//8tlwNN/g=; b=PymL/+D3dU5trek/Z6H9ROE3XWGg16saVlr5lbmYTzYzxiehcspmBMxK ShR3MtlD4dviJyzh0P3Iicm2zhJY1HBZGvH8dB8AftPDZUiBoUd9uA9Yi SDRM4SiEflgkSFVj1QFQp86WZc+4E0Z4CA9VGnI1PpNPeh34EagTpHaKo PCOEDKiGIOCJOVnCsGte6lDRVS7wNn+B2XgrttdV/4/0Btw4XJRct4EFN XHoFjXJ1Gc7jW0RazNegbR/YrC/SM3L6eTIIQjmop3eWwga8OxD49ttHd 6NdhxEPvyUxOGtzohLjrA5Lha6n1avLz+ic7t5GUFGlDQphSk9VjY4nan g==; X-CSE-ConnectionGUID: 4gT2xXjiR9+YB81inNm3JA== X-CSE-MsgGUID: /UG2/NvpTLeAtTHSMlIDZg== X-IronPort-AV: E=McAfee;i="6800,10657,11739"; a="86925840" X-IronPort-AV: E=Sophos;i="6.23,139,1770624000"; d="scan'208";a="86925840" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2026 23:03:50 -0700 X-CSE-ConnectionGUID: UX4c2hxBTp+h1OZpeg6PZA== X-CSE-MsgGUID: XBAGelR7QXupV5dwLoNIfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,139,1770624000"; d="scan'208";a="228649299" Received: from dut6245dg2frd.fm.intel.com ([10.80.54.109]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2026 23:03:50 -0700 From: Sobin Thomas To: igt-dev@lists.freedesktop.org Cc: thomas.hellstrom@intel.com, nishit.sharma@intel.com, Sobin Thomas Subject: [PATCH v7 i-g-t 0/3] tests/intel/xe_vm: Add support for overcommit tests Date: Wed, 25 Mar 2026 06:03:32 +0000 Message-ID: <20260325060339.2499618-1-sobin.thomas@intel.com> X-Mailer: git-send-email 2.52.0 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: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Current tests focus on VM creation and basic mode selection, but do not cover overcommit scenarios. This change adds tests to verify overcommit behavior across different VM modes. Non-fault mode tests: - vram-lr-defer: DEFER_BACKING rejects overcommit at bind time - vram-lr-external-nodefer: Long-running mode with an external BO and no deferred backing - vram-no-lr: Non-long-running mode Fault mode tests: - vram-lr-fault: Fault handling allows graceful overcommit via page faults - vram-lr-fault-no-overcommit: Verifies NO_VM_OVERCOMMIT blocks same-VM BO eviction during VM_BIND, while still allowing eviction during page-fault OOM handling These tests validate that VMs respond correctly to memory pressure based on their configuration—by rejecting at bind time, failing during execution, or handling overcommit gracefully via page faults. Currently, overcommit behavior is tested for VRAM only. -------------------------------------- Link (historical context): https://patchwork.freedesktop.org/series/161557/ Sobin Thomas (3): drm-uapi/xe: sync with kernel header lib/xe: Add failable variant of xe_vm_bind_lr_sync tests/intel/xe_vm: Add support for overcommit tests include/drm-uapi/xe_drm.h | 22 +- lib/xe/xe_ioctl.c | 36 ++++ lib/xe/xe_ioctl.h | 2 + tests/intel/xe_vm.c | 417 +++++++++++++++++++++++++++++++++++++- 4 files changed, 465 insertions(+), 12 deletions(-) -- 2.43.0