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 73865606A322 for ; Thu, 3 Dec 2026 23:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=dTSbQdni Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3867810EA5F; Thu, 3 Dec 2026 23:36:13 +0000 (UTC) X-Greylist: delayed 426 seconds by postgrey-1.36 at gabe; Thu, 03 Dec 2026 23:36:07 UTC Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 100FF10E54A for ; Thu, 3 Dec 2026 23:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796340967; x=1827876967; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=l5SFYFQaB9uzKiwb1EfnO/QwdjhIvrOsIe1o9J6G5zk=; b=dTSbQdniV1CUtn7riJsCLDFrX0nM3wy0H3VpsEYAnkDjlWmIHU1s51Fy 6Rj6e+/96Zs2vTubqAc3BJrJq6o9WE1JKKxFIUk7mcSQDhtxYSk4VteWQ 2x3YTr6e29bmsvV/d+GhC6hnKIS9N1Od2qkYUOrTeh1OiozfjRSxegHKf QRuqOaMcdBWByzp3zF9GNaHmgju9qexVEG5MOxL4WbeI7XJpkXkXHHoQp iuxJNEobazAoiAL4ymIxHkiOh6+PTLHjUDkX6IQfoxHxpzZ3A7zPISoPz bJw1RJ1i8AjaJUvtlnjsfLzaWTPGI9FnJTFgdsdXqgxVkUrsFl9EQo1Ay g==; X-CSE-ConnectionGUID: e4becam2QtOq8vIAG7b6Lg== X-CSE-MsgGUID: 2a3Fao2+TNeN4+eSPz5JMg== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="69214" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="69214" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa114.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 15:29:01 -0800 X-CSE-ConnectionGUID: TfbR0WxHRR6Dme1ncPFxfA== X-CSE-MsgGUID: JUTcmugNQXyzgoU5s3KlOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13722830" 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 15:29:00 -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 23:28:58 +0000 Message-ID: <20261203232859.321380-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. v2: Addressed the review feedback from Rodrigo and Sashiko. I decided to go with an upleveled macro for the architecture physical limit. Using the GMD ID instead of the media_gt structure to determine media presence now. Moved a few of the logs from xe_info to xe_dbg. I had them mistakenly as info for debugging, but no need to spam here. I didn't remove the module parameter for now. I know there is still some ongoing discussion there. I'd like to conclude on that before making any changes. Retested all the basic cases here on a 52-bit system that was previously hitting the issue and it isn't reproducible. 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 | 85 ++++++++- drivers/gpu/drm/xe/xe_pm.c | 7 +- drivers/gpu/drm/xe/xe_sysctrl.c | 164 ++++++++++++++++++ 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, 332 insertions(+), 6 deletions(-) -- 2.43.0