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 B0CD0D2D8F7 for ; Tue, 27 Jan 2026 10:53:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E10310E53E; Tue, 27 Jan 2026 10:53:57 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="H5cizGNm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id DECB110E05D for ; Tue, 27 Jan 2026 10:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769511236; x=1801047236; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7y4R6b0JsePYqNFinOT3hjBdYd2fRfFn+8IgcSsa8ww=; b=H5cizGNmcby+kLHZyTTBJqhMcwGT02Ex8U5BkAjE5lYUWXuWB1B3TgNS G9lDPFwLDAN59kU08ucdJkNB+kgS/A1rWp6F7s+6cggdTYlMemUL1ogO+ QetV5cLrB4iPmkfwkVMA625qoe8j8hnC0SDsX9sHSiFVxX1qzqEAmSvCm 3Xwky75IeyDhd1FjZTvEnrOdmfVVB1WppVyhV41q2b5P1ZfZSDwzgvxr+ GMUyx4ofrRdbx3yAOnbxMqdW2gnTh913AybPcc3AmKjPpVa0UkVUCaIHq e1PBcJakFNhGOPnjbGJKCPVxiMLqB9OSXOJ8Pdn9PuoZxyQ5UBY6m5zhp A==; X-CSE-ConnectionGUID: HWeYp0EYRLCG+vc5C5byaA== X-CSE-MsgGUID: se6p3so6QSKLqixY8pshLQ== X-IronPort-AV: E=McAfee;i="6800,10657,11683"; a="70606713" X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="70606713" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2026 02:53:56 -0800 X-CSE-ConnectionGUID: zV7KTE4ITs2hFTqz8cSJbA== X-CSE-MsgGUID: NNqObjfhTpaKIQtAaqrGXg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="207965511" Received: from anoopcvi-vm.gar.corp.intel.com ([10.109.80.88]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2026 02:53:51 -0800 From: "Anoop, Vijay" To: intel-xe@lists.freedesktop.org Cc: umesh.nerlige.ramappa@intel.com, badal.nilawar@intel.com, rodrigo.vivi@intel.com, aravind.iddamsetty@intel.com, riana.tauro@intel.com, anshuman.gupta@intel.com, matthew.d.roper@intel.com, michael.j.ruhl@intel.com, paul.e.luse@intel.com, mohamed.mansoor.v@intel.com, kam.nasim@intel.com, anoop.c.vijay@intel.com Subject: [PATCH v5 0/6] drm/xe/sysctrl: Add system controller component for Xe3p dGPU platforms Date: Tue, 27 Jan 2026 02:53:44 -0800 Message-ID: <20260127105347.2651751-8-anoop.c.vijay@intel.com> X-Mailer: git-send-email 2.43.0 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" From: Anoop Vijay This patch series introduces System Controller (sysctrl) component for Intel Xe3p dGPU platforms. This component provides the foundational infrastructure for communication with the System Controller firmware using MKHI protocol over a mailbox interface. Key features introduced: - Detection and initialization of System Controller interface on Xe3p dGPU platforms - Mailbox communication with System Controller firmware - Fragmented message transfer for large command payloads This implementation establishes the base for future System Controller feature enablement and firmware command handling. --- v2: (Umesh) - Fix commit message to 75 chars per line - Address CI.Hooks and checkpatch warnings - Add sc_to_xe() helper for cleaner conversions - Alphabetical order for headers - Simplify write/read frame logic using memcpy - Drop redundant frame length checks - Use xe_mmio_rmw32() for register updates - Align FIELD_PREP macros - Improve error handling and timeout messages - Handle phase_bit revert on write-frame failure - Update rdata_len on partial receive before return - Remove unnecessary headers v3: (Matt, Riana, Umesh) - Split patch into logical series - Rename SC_* macros to SYSCTRL_* for consistency - Move MKHI_* defines to .c file - Pass xe directly to helpers - Place devm_add_action_or_reset() after set_sysctrl_region() - Add kernel-doc for xe_sysctrl_mailbox_init() - Add short documentation for System Controller in xe_sysctrl.c - Avoid hardcoded sizes - Move structs to _types.h v4: (Matt, Mike) - Code style improvements - Add domain-specific MMIO accessor - Change phase_bit to bool type - Add input validation and buffer overflow protection v5: (Umesh, Riana) - Reset phase bit to 0 on error conditions - Refactor mailbox receive path - Updated xe_err messages for consistency --- Anoop Vijay (6): drm/xe/sysctrl: Add System Controller register definitions drm/xe/sysctrl: Add System Controller types and structures drm/xe/sysctrl: Add System Controller mailbox implementation drm/xe/sysctrl: Add System Controller initialization drm/xe/sysctrl: Integrate System Controller into device drm/xe/sysctrl: Enable System Controller for Xe3p drivers/gpu/drm/xe/Makefile | 2 + drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h | 44 ++ drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 6 + drivers/gpu/drm/xe/xe_pci.c | 2 + drivers/gpu/drm/xe/xe_pci_types.h | 1 + drivers/gpu/drm/xe/xe_sysctrl.c | 80 ++++ drivers/gpu/drm/xe/xe_sysctrl.h | 13 + drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 390 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 35 ++ drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 36 ++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 33 ++ 12 files changed, 647 insertions(+) create mode 100644 drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.c create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_types.h -- 2.43.0