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 B199D606A31A for ; Mon, 30 Nov 2026 21:51:10 +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=IwuE4tn6 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7925C10E71A; Mon, 30 Nov 2026 21:51:05 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9102710F27E for ; Mon, 30 Nov 2026 21:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796075459; x=1827611459; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hhzpcggk4XBujKlb6TMLkERo41blspY/SDJpwtPXnxE=; b=IwuE4tn6AU2keHN251qV+gSb9bNE8+Kj8O/uKXfkp9xsi8qda8udpTmk bVnwqZ2tjKxf5fCyxWTzCn4sXYccnH89/Jpf9np9NUSI35yTEdluqnTYl Hs8g/6wvm5IRy5BCi821oRMm03No+JKSlsgHJjMaBglZC3+ZbJ/L5sVHp m6/DwpwgcFhQa7ehmybAcefgwJlffEVt7MMHxC088zrz17ELprZ7AIK4K YtHxnyheD55NJg9DUPB2UIg9Iiys7wc6t+ZcSuq+POJRM5YN9H+ltqTWp Y2+rkQKlzqfyIMUq5aUG8AG9PFG+BfV6uqzcHxabCqBxKeGI9wtgbG4Em w==; X-CSE-ConnectionGUID: mYOTaaueTOKmzgAoy5SEUA== X-CSE-MsgGUID: Fz5WcxvORCijFUHKRMU0Mw== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4928732" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4928732" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 13:50:51 -0800 X-CSE-ConnectionGUID: EMF0Oi3WT5+QB5gqnh2nbQ== X-CSE-MsgGUID: brotJvUSQ5Kd9VHpARgOzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="13540983" Received: from dut4599nvls.fm.intel.com ([10.80.95.137]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 13:50:13 -0800 From: Stuart Summers To: Cc: rodrigo.vivi@intel.com, riana.tauro@intel.com, anoop.c.vijay@intel.com, intel-xe@lists.freedesktop.org, Stuart Summers Subject: [PATCH 0/2] Refactor to prepare for CRI media workaround Date: Mon, 30 Nov 2026 21:50:10 +0000 Message-ID: <20261130215010.199139-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 This is a continuation of the original series posted in [1]. These patches are in preparation for the larger series [2]. The first patch moves from a dynamic allocation of some of the sysctrl buffers to static allocation to avoid re-allocation in the resume path. The second patch moves the workaround initialization a little earlier in the driver for an easier hook here. All of this was developed in collaboration with Claude Opus. v2: Dropped the third patch from the original series for now - if this turns out to be needed I'll repost with better justification. Also removed the spurious comment in the code Rodrigo called out. [1]: https://patchwork.freedesktop.org/series/177792/ [2]: https://patchwork.freedesktop.org/series/179173/ Stuart Summers (2): drm/xe/sysctrl: Use preallocated mailbox staging buffers drm/xe: Process device OOB workarounds during early info init drivers/gpu/drm/xe/xe_device.c | 3 -- drivers/gpu/drm/xe/xe_pci.c | 9 ++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 56 +++++++++---------------- drivers/gpu/drm/xe/xe_sysctrl_types.h | 11 +++++ 4 files changed, 40 insertions(+), 39 deletions(-) -- 2.43.0