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 866DFC71135 for ; Fri, 13 Jun 2025 10:23:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05A1E10E978; Fri, 13 Jun 2025 10:23:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="MmXl0hw6"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2043F10E96E; Fri, 13 Jun 2025 10:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749810202; x=1781346202; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nB19nAVD9m070plex/afW8EyMrKnT4TxGqyeUQfHucM=; b=MmXl0hw6ot7R/HDWMfN/azQt2T8Zi7UrZqC0hF5hPJui+mot111VvAO9 XzaBfnoUEWfsEoXQ7VMCAfhe87bfRVKKn1wx4RhFvs2XWLykgK/Okp/Np 1r2KB2Us0VmGywNWp3bMdaLIJxC/DxF9lGlf3qyjS9nZ7PRlMpNLF2dV0 In02VhkySkBOveP+UWNnYqeth6HxbdfmcgD0DHU1WIZknRrlBbW/g6NhV HIQGdHBTV7RIWgOyScWM7zVTUyCl4yAnE93pcuNWZX+NOkUqW+KkUBC7M mU/CJQpQ//lIgaPcsYLa6LI96nQ+5nzlAmly4sZbdBt1eJl2VA+tQHKnb A==; X-CSE-ConnectionGUID: 3lKlWqwRToOU0p1xiWMy3A== X-CSE-MsgGUID: ps4rkXKxTW+OT69PczhQaw== X-IronPort-AV: E=McAfee;i="6800,10657,11462"; a="62673638" X-IronPort-AV: E=Sophos;i="6.16,233,1744095600"; d="scan'208";a="62673638" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2025 03:23:22 -0700 X-CSE-ConnectionGUID: vMelOFoxRk6Uv0qmBDUIEg== X-CSE-MsgGUID: +8FYir4pSHmRMt1CqkU98Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,233,1744095600"; d="scan'208";a="152758945" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by orviesa004.jf.intel.com with ESMTP; 13 Jun 2025 03:23:20 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org, Matt Roper , Dnyaneshwar Bhadane Subject: [PATCH v6 3/9] drm/xe/xe3: Add support for media IP version 30.02 Date: Fri, 13 Jun 2025 15:52:50 +0530 Message-Id: <20250613102256.3508267-4-dnyaneshwar.bhadane@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250613102256.3508267-1-dnyaneshwar.bhadane@intel.com> References: <20250613102256.3508267-1-dnyaneshwar.bhadane@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Matt Roper Media version 30.02 should be treated the same as other Xe3 IP, but will have a slightly different set of workarounds. -v2: Extend the range in existing WA entry (Bala) -v3: Revert v2, Do not extend the range for the time being(Matt) Signed-off-by: Matt Roper Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/xe/xe_pci.c | 1 + drivers/gpu/drm/xe/xe_wa.c | 12 ++++++++++++ drivers/gpu/drm/xe/xe_wa_oob.rules | 2 ++ 3 files changed, 15 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 8bb698786334..5ff2169019ed 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -197,6 +197,7 @@ static const struct xe_ip media_ips[] = { { 1301, "Xe2_HPM", &media_xelpmp }, { 2000, "Xe2_LPM", &media_xelpmp }, { 3000, "Xe3_LPM", &media_xelpmp }, + { 3002, "Xe3_LPM", &media_xelpmp }, }; static const struct xe_device_desc tgl_desc = { diff --git a/drivers/gpu/drm/xe/xe_wa.c b/drivers/gpu/drm/xe/xe_wa.c index 6baf369fb330..f51218a7a580 100644 --- a/drivers/gpu/drm/xe/xe_wa.c +++ b/drivers/gpu/drm/xe/xe_wa.c @@ -285,6 +285,18 @@ static const struct xe_rtp_entry_sr gt_was[] = { XE_RTP_ACTIONS(SET(VDBOX_CGCTL3F10(0), IECPUNIT_CLKGATE_DIS)), XE_RTP_ENTRY_FLAG(FOREACH_ENGINE), }, + { XE_RTP_NAME("16021865536"), + XE_RTP_RULES(MEDIA_VERSION(3002), + ENGINE_CLASS(VIDEO_DECODE)), + XE_RTP_ACTIONS(SET(VDBOX_CGCTL3F10(0), IECPUNIT_CLKGATE_DIS)), + XE_RTP_ENTRY_FLAG(FOREACH_ENGINE), + }, + { XE_RTP_NAME("16021867713"), + XE_RTP_RULES(MEDIA_VERSION(3002), + ENGINE_CLASS(VIDEO_DECODE)), + XE_RTP_ACTIONS(SET(VDBOX_CGCTL3F1C(0), MFXPIPE_CLKGATE_DIS)), + XE_RTP_ENTRY_FLAG(FOREACH_ENGINE), + }, { XE_RTP_NAME("14021486841"), XE_RTP_RULES(MEDIA_VERSION(3000), MEDIA_STEP(A0, B0), ENGINE_CLASS(VIDEO_DECODE)), diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules index 9a691045831e..d67202c07bc9 100644 --- a/drivers/gpu/drm/xe/xe_wa_oob.rules +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules @@ -59,9 +59,11 @@ no_media_l3 MEDIA_VERSION(3000) GRAPHICS_VERSION(1260), GRAPHICS_STEP(A0, B0) 16023105232 GRAPHICS_VERSION_RANGE(2001, 3001) MEDIA_VERSION_RANGE(1301, 3000) + MEDIA_VERSION(3002) GRAPHICS_VERSION(3003) 16026508708 GRAPHICS_VERSION_RANGE(1200, 3001) MEDIA_VERSION_RANGE(1300, 3000) + MEDIA_VERSION(3002) GRAPHICS_VERSION(3003) # SoC workaround - currently applies to all platforms with the following -- 2.34.1