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 1CB49CD6E61 for ; Mon, 1 Jun 2026 20:10:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C3FC410E924; Mon, 1 Jun 2026 20:10:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="gn30rPC7"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D81C10E922 for ; Mon, 1 Jun 2026 20:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780344621; x=1811880621; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PM/WkYkAYNKqhg3RwPUkBZDOY+V0KaF/gCeRILnTElc=; b=gn30rPC7f2cB7f1PIKClFOaSEysH1L7o5L2Erlk8LABuJUxYuhIojGIz FXVzqOWkIDA1nUqBoPHDuo0COzfoBUOuswo4jIN6b2VEX5ip7D4/oxomk w9fxLYRL7Kl5bVd0MEOG7iByG1lEvV4vCSECb3ANZXlSXF6t0TX4LLaKx hS3wn1GEQJ8dz5xJiLXnQwIbK/jg3I7+u+yxYpkk6d2dMYL44xxm72XzF bmOV1qwalozR1PyYpncejkqNKeua+wKxHqZkGqdGBBE4BKvVF+vapevVZ J7M1NwAmg0lWrONvYd7PxQOAoUuaCdggo0QVorMgZwbKLMCAyzNHdILmM g==; X-CSE-ConnectionGUID: EhlzyoU6S7ytpMuNdNtALg== X-CSE-MsgGUID: JbXLClTxQm+jUK1ADc9BBg== X-IronPort-AV: E=McAfee;i="6800,10657,11804"; a="98680839" X-IronPort-AV: E=Sophos;i="6.24,181,1774335600"; d="scan'208";a="98680839" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2026 13:10:21 -0700 X-CSE-ConnectionGUID: 5rpx8XuGTUi8hcMWSsCmlg== X-CSE-MsgGUID: tfZTkqXCSFafwdYJykgd9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,181,1774335600"; d="scan'208";a="242852269" Received: from vmonti-desk.jf.intel.com ([10.88.27.136]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2026 13:10:21 -0700 From: Violet Monti To: intel-xe@lists.freedesktop.org Cc: Violet Monti Subject: [PATCH v6 0/4] drm/xe/rtp: WA table context testing Date: Mon, 1 Jun 2026 13:09:46 -0700 Message-ID: <20260601200947.2032784-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 v6: - Removed sentinels that persisted after changes - Link to v5: https://lore.kernel.org/intel-xe/20260528163531.834721-6-violet.monti@intel.com/ 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 | 103 +++++++----------- 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(+), 159 deletions(-) create mode 100644 drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c -- 2.43.0