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 9DEAB606A31C for ; Wed, 18 Nov 2026 13:59:02 +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=EWvWtPeR Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67FC210E4DE; Wed, 18 Nov 2026 13:58:57 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 217E510E4DE for ; Wed, 18 Nov 2026 13:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795010332; x=1826546332; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8SBYWkulnUjSsrIxGVEQD0o+BPamyEXjeii76EoE9RY=; b=EWvWtPeRdOzxGOrtGgfp3taX00mFyDRDbRydO/yButGj5JoMnsQM8dsh RwG8d8wrR9Pw8QkvWA3yOind69iGdIjZXoBaUMVZISawe00j/gxwDLL5K ZYoLZ//GaHX9d17ODUaHGyuGfFM3F4MIr4rbsed8zc5ty03Lx6+etqp70 QdwcxIq72La4UNhPAnpOZlmFMwaFSneiMHIW3ezLAGFqq8laQsJsQKlG1 rztS7ydw6SdCSSH2C/pZ5SvWz5wcLIi+UKwPX0+XQpcLOIhs8m3vdrEcR gd5GATloEo+fcKC9JuaRRNw3tm4UCZviN7lY4RAKhc63xbiIOOCUNEAZU w==; X-CSE-ConnectionGUID: P86SrD5MRhCKCoDRnWf4FQ== X-CSE-MsgGUID: WBYTDVVIR8usx5sgIpwXmw== X-IronPort-AV: E=McAfee;i="6800,10657,11969"; a="3719476" X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="3719476" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2026 05:58:51 -0800 X-CSE-ConnectionGUID: m81GcxdvRNejV9N+Fyr2Ww== X-CSE-MsgGUID: 6apFg0zeTGK+gsyY+ZiwgA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="10091368" Received: from gfx-coremm-kmd15.iind.intel.com ([10.223.55.8]) by orviesa007.jf.intel.com with ESMTP; 18 Nov 2026 05:58:49 -0800 From: Nareshkumar Gollakoti To: intel-xe@lists.freedesktop.org Cc: badal.nilawar@intel.com, sk.anirban@intel.com, Nareshkumar Gollakoti Subject: [PATCH v2 0/3] drm/xe: Expose CRI memory capability limits via sysfs Date: Wed, 18 Nov 2026 19:25:32 +0530 Message-ID: <20261118135536.293953-1-naresh.kumar.g@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=-18.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,MENTIONS_GIT_HOSTING,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 series adds read-only sysfs attributes for CRI devices to expose the maximum supported memory frequency and memory bandwidth. These attributes allow userspace to discover platform memory capability limits. They are needed by compute runtime software, including NEO [1], for capability discovery on CRI. The existing tile memory sysfs support currently focuses on frequency- related handling. Since it is now being extended to cover broader memory configuration information, rename the component/files from "freq" to "config" to better reflect their scope. The new attributes provide a stable userspace interface for discovering platform memory capability limits. The series consists of: 1. Add PCODE MEMORY_CONFIG mailbox definitions and subcommands 2. Rename xe_vram_freq to xe_vram_config 3. Expose maximum memory frequency and bandwidth through sysfs for CRI Reference:[1] https://github.com/intel-innersource/drivers.gpu.compute.runtime/pull/57544 v2:(Sashiko/Badal) RB'd as per [2] [2]https://patchwork.freedesktop.org/patch/770315/?series=178849&rev=1 1. Fixed CFI violation by updating attribute types and callback signatures 2. Added a check for xe->info.skip_pcode in memory_groups() to prevent exposing these attributes on Virtual Functions, where PCODE access is disabled. 3. Changed kernel version in documentation from 7.4 to 7.5 Himal Prasad Ghimiray (3): drm/xe/pcode: Add MEMORY_CONFIG mailbox definitions drm/xe: Rename xe_vram_freq to xe_vram_config drm/xe: Expose CRI maximum memory frequency and bandwidth in sysfs .../ABI/testing/sysfs-driver-intel-xe-gpu | 26 ++- drivers/gpu/drm/xe/Makefile | 2 +- drivers/gpu/drm/xe/xe_pcode_api.h | 4 + drivers/gpu/drm/xe/xe_tile_sysfs.c | 4 +- drivers/gpu/drm/xe/xe_vram_config.c | 217 ++++++++++++++++++ drivers/gpu/drm/xe/xe_vram_config.h | 13 ++ drivers/gpu/drm/xe/xe_vram_freq.c | 123 ---------- drivers/gpu/drm/xe/xe_vram_freq.h | 13 -- 8 files changed, 262 insertions(+), 140 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_vram_config.c create mode 100644 drivers/gpu/drm/xe/xe_vram_config.h delete mode 100644 drivers/gpu/drm/xe/xe_vram_freq.c delete mode 100644 drivers/gpu/drm/xe/xe_vram_freq.h -- 2.43.0