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 65203C2BB9A for ; Mon, 17 Jun 2024 18:25:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 714E810E4B0; Mon, 17 Jun 2024 18:25:36 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="AERY5kbA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 328F310E49B for ; Mon, 17 Jun 2024 18:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718648735; x=1750184735; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5UKjF1zNPFoKbkNtQCWLjaHb7bbJYtsp8Uyqfz5vO3o=; b=AERY5kbApW2cgoEsXJcTZ1ufkupKOm7XjvlU6JknIALC8NedHnhXR4In xDZClQ9WoF+cNLqf9O3khFUSVniKH4CzVxyT//Jj06pABi+ZXJrcv5T8n z7Qw2bJnAHciEYUo6XK24BqwKv5r1TncOAAAXzMFenq3Es7gMUVpSbhA0 r8mT3o6GLiALO7yybbLPEP2Ur59DqOBvhOXW8HNah2+2kGi7TKSLaqSUg 7wBLYufYbSzkayt49pbhJxubUJqQaT+FinpwoKCmkeSSzUUPBLhsL0oMd a7ORYO2w4cKPWOlMkx03tmq5d1oFUFKzko9nG7xFP5jIhbNrdQh9QUf7G A==; X-CSE-ConnectionGUID: 4PS+nlMcRtmX8G+l3EwKiA== X-CSE-MsgGUID: DCiGpmMnT9aagjWlmnhNLA== X-IronPort-AV: E=McAfee;i="6700,10204,11106"; a="19276235" X-IronPort-AV: E=Sophos;i="6.08,245,1712646000"; d="scan'208";a="19276235" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2024 11:25:35 -0700 X-CSE-ConnectionGUID: 8XxnJummTXyfn7kEXZN+Fg== X-CSE-MsgGUID: yrMwLZcJReGLmYqFO4hsOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,245,1712646000"; d="scan'208";a="45642446" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2024 11:25:34 -0700 From: Lucas De Marchi To: Cc: Tejas Upadhyay , Matt Roper , Michal Wajdeczko , Lucas De Marchi Subject: [PATCH 5/5] drm/xe/xe2: Add proper check for media in Wa_14020756599 Date: Mon, 17 Jun 2024 11:25:18 -0700 Message-ID: <20240617182518.280975-6-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240617182518.280975-1-lucas.demarchi@intel.com> References: <20240617182518.280975-1-lucas.demarchi@intel.com> 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" A temporary fixup was made in commit 24d0d98af1c3 ("drm/xe/xe2lpm: Fixup Wa_14020756599") due to limitations in the RTP infra. Now that RTP has support for OR condition that change can be removed. RTP now also supports checking any GT, so use that instead of the more specific xe_rtp_match_when_media2000() used in that commit. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/xe/xe_wa.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_wa.c b/drivers/gpu/drm/xe/xe_wa.c index a2725a150441..0b6fbbebc41e 100644 --- a/drivers/gpu/drm/xe/xe_wa.c +++ b/drivers/gpu/drm/xe/xe_wa.c @@ -677,15 +677,9 @@ static const struct xe_rtp_entry_sr lrc_was[] = { ENGINE_CLASS(RENDER)), XE_RTP_ACTIONS(SET(CHICKEN_RASTER_2, TBIMR_FAST_CLIP)) }, - /* - * This WA is also needed on primary GT when the media version is 2000. - * Currently, media version 2000 is always paired with graphics version - * 2004, so just checking the latter is sufficient. In the future, media - * version 2000 can be used with some other graphics version where WA - * still needs to be implemented - */ { XE_RTP_NAME("14020756599"), - XE_RTP_RULES(GRAPHICS_VERSION(2004), ENGINE_CLASS(RENDER)), + XE_RTP_RULES(GRAPHICS_VERSION(2004), ENGINE_CLASS(RENDER), OR, + MEDIA_VERSION_ANY_GT(2000), ENGINE_CLASS(RENDER)), XE_RTP_ACTIONS(SET(WM_CHICKEN3, HIZ_PLANE_COMPRESSION_DIS)) }, { XE_RTP_NAME("14021490052"), -- 2.43.0