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 8F7E6CCFA04 for ; Tue, 4 Nov 2025 14:41:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C782510E615; Tue, 4 Nov 2025 14:41:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mXMSiBq+"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8152310E615 for ; Tue, 4 Nov 2025 14:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762267312; x=1793803312; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=+t1C7ezukYbPfZvw6e7PV6qlaEr/8ZZYZwnBQqivaR0=; b=mXMSiBq+dA+qEpGn2tWCAhM1+ncev5yjgBXoLJi8AYlmGWtP2tyiqcpi J/XifpbzIa1r9jrDiR9fQhPCLRsBIYn4MgAsI9v/rdr3yCtm9PQhTU9M9 gKQYKHXedqRBuWvevHDocVXH7slY2tspE3P/NHhzoApN8rv2ikbioeGUg a6Ls/zzdquCQV4aVBnB8tQtFyZAFkVD9l0rWYwNxTrEb0Izzmb4QIepQv ccOvP3DAezLq9yVJhDvMUmPQMd3lBRIBaUdXyIwVFpIPf5VIrp95WTkUS PkXxyKc4QpzszTMEq2J7Y/O0cUB1HCFIJ2EGw7drj2lSb855mKSQQPCWo w==; X-CSE-ConnectionGUID: xC11F7yoSIK7xXkD96yjXg== X-CSE-MsgGUID: zJ0ZxzdUT+6HMNGgwqblBw== X-IronPort-AV: E=McAfee;i="6800,10657,11602"; a="68221248" X-IronPort-AV: E=Sophos;i="6.19,279,1754982000"; d="scan'208";a="68221248" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2025 06:41:52 -0800 X-CSE-ConnectionGUID: 79AKKLnBQhG/G2xguEMt5A== X-CSE-MsgGUID: jSsE1ZolRiyAq96oK1PnPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,279,1754982000"; d="scan'208";a="191479725" Received: from dut7069bmgfrd.fm.intel.com (HELO DUT7069BMGFRD..) ([10.1.40.72]) by fmviesa005.fm.intel.com with ESMTP; 04 Nov 2025 06:41:52 -0800 From: nishit.sharma@intel.com To: igt-dev@lists.freedesktop.org, nishit.sharma@intel.com Subject: [PATCH i-g-t v1 0/7] Madvise feature in Multi-GPU Date: Tue, 4 Nov 2025 14:41:43 +0000 Message-ID: <20251104144151.674557-1-nishit.sharma@intel.com> X-Mailer: git-send-email 2.48.1 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" From: Nishit Sharma This patch series adds comprehensive SVM multi-GPU IGT test coverage for madvise and prefetch functionality. The following tests are introduced in tests/intel/xe_multi-gpusvm.c:- 1. Cross-GPU Memory Access Test: Allocates a shared SVM buffer, writes data from one GPU, and verifies correct access from another GPU and the CPU. 2. Atomic Operations Test: Performs atomic increment operation on a shared SVM buffer from both GPUs and the CPU, verifying correctness and ordering. 3. Coherency Test: Validates memory coherency by writing data from one GPU and reading from another GPU and the CPU without explicit synchronization. 4. Performance Test: Measures latency and bandwidth for buffer access from each GPU and the CPU comparing local versus remote access in SVM. 5. Fault Handling Test: Intentionally triggers page faults by accessing non prefetch SVM regions from both GPUs verifying that faults are detected and resolved correctly. 6. Simultaneous Access Test: Launches compute or copy workloads on both GPUs accessing the same SVM buffer using synchronization primitives to coordinate access and verify data integrity. 7. Conflicting Madvise Test: Applies conflicting madvise operations across GPUs, ensuring the driver detects and reports conflicts or errors when preferred locations differ. Nishit Sharma (7): tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU cross-GPU memory access test tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU atomic operations tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU coherency test tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU performance test tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU fault handling test tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU simultaneous access test tests/intel/xe_multi-gpusvm.c: Add SVM multi-GPU conflicting madvise test lib/xe/xe_ioctl.c | 40 + lib/xe/xe_ioctl.h | 5 + tags | 263672 +++++++++++++++++++++++++++++++ tests/intel/xe_multi_gpusvm.c | 1379 + tests/intel/xe_multisvm.c | 41 +- tests/meson.build | 1 + 6 files changed, 265100 insertions(+), 38 deletions(-) create mode 100644 tags create mode 100644 tests/intel/xe_multi_gpusvm.c -- 2.48.1