From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 704E4606A6B1 for ; Thu, 3 Dec 2026 19:09:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PcnxbwGD Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 368EC112AF3; Thu, 3 Dec 2026 19:09:36 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id D9DDD10EB46 for ; Thu, 3 Dec 2026 19:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796324969; x=1827860969; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=scvFj8ZesgxaDGVeCidfvXFcL80PL/Ft/djfvlhQt4k=; b=PcnxbwGDMMiRP32vJFN1zMwS1J3O5+dDUoRdbGYInjJ3qWQpkLFKOBgq N1LGOpGlsWIFDOjGJUfflnQYDb89q6wQg6VfUaUyfSLsYQFzY+MfrA53Z WLNWfKQyS2AmO7P9WCbjqXYE7jE9muAf6O3pypAq19q5EbCmMBnZd+rph zhv2oOq/OTI4u2zKx2vCjRZekK0wuSa7LAQJExYGoMg+zvWXSvVeYgbK9 f9FIJ4QxX6sncuw2bxVam4J5EUkw3EVQArkFg8Hp8IJ+vf9D9UWMBljOU qa+cWEqrjYPdYytijJfgAwJ/GeLEjvCQCM4HjYMRzk7fAMSmRuTPCtjlc A==; X-CSE-ConnectionGUID: aZU0JfMFSt+8NbZCQmHlLQ== X-CSE-MsgGUID: kw5xcH5VTVylvlOBqH22DA== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5184763" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5184763" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 11:09:28 -0800 X-CSE-ConnectionGUID: WGwvHP0YTGei2VueEv7/bQ== X-CSE-MsgGUID: OMBpuwDiS5yqPRbPGroyQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="15649557" Received: from dut4459arlhx.fm.intel.com ([10.105.8.155]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 11:09:28 -0800 From: Stuart Summers To: Cc: intel-xe@lists.freedesktop.org, thomas.hellstrom@linux.intel.com, rodrigo.vivi@intel.com, alan.previn.teres.alexis@intel.com, fei.yang@intel.com, anoop.c.vijay@intel.com, riana.tauro@intel.com, matthew.d.roper@intel.com, Stuart Summers Subject: [PATCH 0/2] Work around 52-bit limitation in CRI media Date: Thu, 3 Dec 2026 19:09:25 +0000 Message-ID: <20261203190926.249488-4-stuart.summers@intel.com> X-Mailer: git-send-email 2.43.0 X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Individual commits have the detail of the workaround. Essentially we are now disabling media by default to give a more consistent user experience for CRI given that media can only be used in specific configurations. To enable, there is certain criteria that must be met, but essentially this means host addresses above 46 bits must be translated down to within 46 bits before being sent into the media IP. If the KMD cannot guarantee this, media is disabled. I had submitted a version of this series already which had some extra preliminiary patches (which have now been merged) and some patches I was using for debug. For some reason patchworks isn't working for me. This series just takes the most critical patches for the workaround. The for-debug patches from that other series I'll submit and review separately. I tested this on a Xeon based CRI that was seeing the original issue and confirmed this is no longer present with the workaround and the appropriate changes in the IFWI. Stuart Summers (2): drm/xe: Add enable_media module parameter drm/xe: Work around media 52-bit limitation on CRI drivers/gpu/drm/xe/xe_configfs.c | 3 + drivers/gpu/drm/xe/xe_defaults.h | 1 + drivers/gpu/drm/xe/xe_device.c | 24 +++ drivers/gpu/drm/xe/xe_device.h | 1 + drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 + drivers/gpu/drm/xe/xe_module.c | 7 + drivers/gpu/drm/xe/xe_module.h | 1 + drivers/gpu/drm/xe/xe_pci.c | 71 +++++++- drivers/gpu/drm/xe/xe_pm.c | 4 + drivers/gpu/drm/xe/xe_sysctrl.c | 166 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 34 ++++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 6 + 14 files changed, 320 insertions(+), 3 deletions(-) -- 2.43.0