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 428C3CD5BD5 for ; Thu, 28 May 2026 16:38:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F1E7A10F486; Thu, 28 May 2026 16:38:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kz+yJwBA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 499E410F460 for ; Thu, 28 May 2026 16:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779986293; x=1811522293; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XrsxtZMF6AxDGGwsyETL1XX30NM0Tkc3DHLTrVnYc8o=; b=kz+yJwBAigBoVRVAXPz+49GFVu9UGBKi15IeGEZWDzpW4EZTLc5BshaM 46LKBzwnEuGoKwcv/w07jbwUrsRW6W/U1YHmYQ1GDE0DB+LDkoWzEVUcS lvlbzSDlFTFKCrRBAHadcKgvdpp37aydFtKwx0YvGPujllRd4JLE/bk3J HDMH5rKMC0ieAPjzSB8onplX4E3k/qE4KKTib2oHHDmU6odBNCh6hlUIV Aky/7pdDw7aleN/gzmcIxJ16AZUKwoQoWlJhJ/nQmbM2XzrJjlPH3GA/S pxelFgnENpelR/QxEmmTPTQtR/wfTiRzbFodxv942zFMdwgHcTbmKRYS8 w==; X-CSE-ConnectionGUID: jf0lO4KyT+2YXwWHowLUXw== X-CSE-MsgGUID: Yulvaw5ITnWJpFwZ/fA/lQ== X-IronPort-AV: E=McAfee;i="6800,10657,11800"; a="84721983" X-IronPort-AV: E=Sophos;i="6.24,173,1774335600"; d="scan'208";a="84721983" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2026 09:38:13 -0700 X-CSE-ConnectionGUID: GFSUnbYFRdeBjbLw5ZdQkg== X-CSE-MsgGUID: Lnx2Dyf2RVKqkMdhnZyUog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,173,1774335600"; d="scan'208";a="244418642" Received: from vmonti-desk.jf.intel.com ([10.88.27.136]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2026 09:38:12 -0700 From: Violet Monti To: intel-xe@lists.freedesktop.org Cc: Violet Monti Subject: [PATCH v5 0/4] drm/xe/rtp: WA table context testing Date: Thu, 28 May 2026 09:35:31 -0700 Message-ID: <20260528163531.834721-6-violet.monti@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This series adds testing for existing WA lists within drm/xe/xe_wa.c, which previously were allowed to match rules for contexts that were not valid at their initialization time. These tests function by parsing each target RTP table, checking for invalid contexts rules determined by an enumeration of match types, and raises an expectation fail if an improper match is found Signed-off-by: Violet Monti --- Changes in v5: - Removed code accidentally added with conflict resolution - Removed unnecessary headers - Link to v4: https://lore.kernel.org/intel-xe/20260526173056.967215-6-violet.monti@intel.com/ Changes in v4: - Fix conflicts with main branch - Link to v3: https://lore.kernel.org/intel-xe/20260522185609.2252126-6-violet.monti@intel.com/ Changes in v3: - Removed unnecessary keywords - Added gt_tunings[] to test cases - Reworked tests to more easily identify an error - Link to v2: https://lore.kernel.org/intel-xe/20260519193216.546048-6-violet.monti@intel.com/ Changes in v2: - Cleaned up and refined code logic as per review suggestions. - Link to v1: https://lore.kernel.org/intel-xe/20260513212129.691628-6-violet.monti@intel.com/ --- Gustavo Sousa (1): drm/xe/rtp: Add struct types for RTP tables Violet Monti (3): drm/xe/rtp: Ensure gt_was doesn't evaluate rules with engine types drm/xe/rtp: Ensure oob_was does not evaluate engine type rules drm/xe/rtp: Ensure device_oob_was only evaluates correct rules drivers/gpu/drm/xe/tests/Makefile | 1 + drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c | 91 ++++++++++++++++ drivers/gpu/drm/xe/tests/xe_rtp_test.c | 101 +++++++----------- drivers/gpu/drm/xe/xe_hw_engine.c | 14 ++- drivers/gpu/drm/xe/xe_reg_whitelist.c | 7 +- drivers/gpu/drm/xe/xe_rtp.c | 31 +++--- drivers/gpu/drm/xe/xe_rtp.h | 16 ++- drivers/gpu/drm/xe/xe_rtp_types.h | 10 ++ drivers/gpu/drm/xe/xe_tuning.c | 46 ++++---- drivers/gpu/drm/xe/xe_tuning.h | 6 ++ drivers/gpu/drm/xe/xe_wa.c | 92 ++++++++-------- drivers/gpu/drm/xe/xe_wa.h | 7 ++ 12 files changed, 265 insertions(+), 157 deletions(-) create mode 100644 drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c -- 2.43.0