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 6D98E606A320 for ; Fri, 20 Nov 2026 05:47:27 +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=EDlQb5ZX Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3718910FD52; Fri, 20 Nov 2026 05:47:22 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 100E410E047 for ; Fri, 20 Nov 2026 05:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795153636; x=1826689636; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+/QfDCCvbOOQP6tVZJ7zmItbNS/F/bngseVzKS+FRho=; b=EDlQb5ZXWEFr+bn3DoAyFgwmf9UpldAw1vbsrhVuqBhXJI0r55/nRFks qTZG30oUXPthB7FBbqhMKiJmjtLB+oKsYGbcaVY4ndwxLWz5gtDYo45HK mFRZc2YwR9GIa7yzfvfZOxcFGdZjQKKVpKkHLed7XDOM6jfJaT8402FxV sKNIMLcp29eHWSoxz5Ux0ECCJAKZb6TO0vEzREipz9VfahGJZiZRG+SCc TSxieCHuJJWAxiw2r3I+2ZDr7qYMACtRDucNczo4xn4qNStTGUaV96xsm 305BpMfbfQkBLCy4uQXkI2ApTrj+9IDMa88lyLwM2WNEYNlgTNjuhEXIE w==; X-CSE-ConnectionGUID: CK9H+SDTQ6OKxO/+JmJUxA== X-CSE-MsgGUID: rGbpbe+8SWCkcby0WYZROg== X-IronPort-AV: E=McAfee;i="6800,10657,11971"; a="4018521" X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="4018521" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 21:47:15 -0800 X-CSE-ConnectionGUID: LbmR9XHGRB+82kgiIhjV6g== X-CSE-MsgGUID: MMp0PeLlQ+6RodJU+b0O0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="10617114" Received: from dut4463arlhx.fm.intel.com ([10.105.10.189]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 21:47:15 -0800 From: Stuart Summers To: Cc: rodrigo.vivi@intel.com, riana.tauro@intel.com, anoop.c.vijay@intel.com, matthew.d.roper@intel.com, fei.yang@intel.com, intel-xe@lists.freedesktop.org, Stuart Summers Subject: [PATCH 00/16] Work around media 52-bit limitation on CRI Date: Fri, 20 Nov 2026 05:47:11 +0000 Message-ID: <20261120054712.377573-18-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 Note this is somewhat of an RFC right now to get early feedback. I'm planning a follow up to clean some of this up shortly. This is a combination of two series I have on the list now, [1] and [2]. I've already gotten some feedback from Rodrigo and Sashiko on both of these I'm planning to incorporate. Apologies those updates didn't make it in to this series yet. I'm also planning on reviewing at least [1] separately since this likely needs more discussion anyway and isn't strictly related/required to the current series. The main two patches I'm interested in getting feedback in the meantime are: drm/xe: Add enable_media module parameter drm/xe: Work around media 52-bit limitation on CRI The latter is the crux of the workaround here. The first sets up the module parameter which will be used to disable media by default. The reason to include a module parameter here is we have some customers who are planning many CRI devices on a single host. The request from those customers is to have a way to configure all of the cards on that host at one time rather than having to loop through each device separately (i.e. module parameter instead of configfs). We do already have a configfs that allows media to be disabled (gt_types_allowed = 'primary'), but this is both meant for developer debug, not production configuration, and it requires that per-device configuration. The workaround details are provided in that last patch in the series so I won't duplicate all of that here, but at a high level, media is now disabled by default and in order to maintain performance for compute when media is enabled on a system that supports 52-bit addressing, PCIe level address translation is supported, but an internal configuration of address translation for the media GAM is disabled. Again, the details of how this is done are in that last patch. Again, I'm not planning on merging these as-is, but just to clarify, [1] is attempting to separate the primary and media GT. This is mostly for debug but also used to refactor for that last patch. Likely in the repost I'll just drop this for now and review it completely separately, skipping this refactor unless it's deemed particularly interesting. [2] is adding a few fixes and refactors in preparation for the actual workaround so I'll be keeping these in the repost. Two of the three patches there have been reviewed (with some feedback) already. The third I'm planning to drop after feedback from Rodrigo. [1] https://patchwork.freedesktop.org/series/178247/ [2] https://patchwork.freedesktop.org/series/177792/ Stuart Summers (16): drm/xe/sysctrl: Use preallocated mailbox staging buffers drm/xe: Process device OOB workarounds during early info init drm/xe/sysctrl: Restore the SoC remapper on every runtime resume drm/xe: Add enable_media module parameter drm/xe: Detect each GMD_ID IP in a loop drm/xe: Tolerate a missing graphics IP in xe_info_init() drm/xe: Verify IP presence against GU_CNTL drm/xe: Guard per-tile primary GT accesses drm/xe: Stop assuming the root tile has a primary GT drm/xe: Do not claim flat CCS without a graphics IP drm/xe: Run page table updates on the media GT when there is no primary drm/xe: Document that gt_types_allowed=media now probes drm/xe: Fall back to CPU copies when the tile cannot blit drm/xe: Require a fully visible VRAM BAR without a primary GT drm/xe: Allow probe without a primary GT drm/xe: Work around media 52-bit limitation on CRI drivers/gpu/drm/xe/regs/xe_regs.h | 2 + drivers/gpu/drm/xe/xe_bo.c | 43 +++- drivers/gpu/drm/xe/xe_configfs.c | 10 +- drivers/gpu/drm/xe/xe_defaults.h | 1 + drivers/gpu/drm/xe/xe_device.c | 27 +- drivers/gpu/drm/xe/xe_device.h | 17 ++ drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 + drivers/gpu/drm/xe/xe_exec_queue.c | 5 +- drivers/gpu/drm/xe/xe_gt.c | 11 +- drivers/gpu/drm/xe/xe_memirq.c | 3 +- drivers/gpu/drm/xe/xe_migrate.c | 45 +++- drivers/gpu/drm/xe/xe_migrate.h | 2 + drivers/gpu/drm/xe/xe_module.c | 7 + drivers/gpu/drm/xe/xe_module.h | 1 + drivers/gpu/drm/xe/xe_oa.c | 24 +- drivers/gpu/drm/xe/xe_pagefault.c | 4 +- drivers/gpu/drm/xe/xe_pci.c | 241 ++++++++++++++---- drivers/gpu/drm/xe/xe_pm.c | 13 +- drivers/gpu/drm/xe/xe_query.c | 3 +- drivers/gpu/drm/xe/xe_sysctrl.c | 191 +++++++++++++- drivers/gpu/drm/xe/xe_sysctrl.h | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 56 ++-- drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 34 +++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 17 ++ drivers/gpu/drm/xe/xe_tile.h | 32 +++ drivers/gpu/drm/xe/xe_tlb_inval.c | 20 +- drivers/gpu/drm/xe/xe_vm.c | 2 +- drivers/gpu/drm/xe/xe_vram.c | 15 ++ 29 files changed, 678 insertions(+), 153 deletions(-) -- 2.43.0