From mboxrd@z Thu Jan 1 00:00:00 1970 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 40D2BCA0ED1 for ; Mon, 18 Aug 2025 17:38:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0221010E4B5; Mon, 18 Aug 2025 17:38:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="IVUB28OG"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 007BC10E4B4 for ; Mon, 18 Aug 2025 17:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755538704; x=1787074704; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=F9dsPrzrV1LjzM5uV8M63nIOVGSWBK4muirUcCn+rkE=; b=IVUB28OGHDzdN+pZs1PXq6jrvFUWIoAJET0fSIODe/17eo17KFF13DpU 9cY0IDV6DfqeFkvvFKZdMzYwsh7g0GPbhzGJP77w3AkE0WWOxexQNwqkl 6cURih5sinDOvI2T2hQmQ0SHnbCbkrIllrxZx63r7zkNqgj/hiRP4HpiG Fixx/dcbluNL4SKtxvMq63Rz30N6pgMRfuspSwIV2Q8a+n+5ZbaPx/hGY uuf6+C1SdcpokkPQAZAl3LJ2L8gTR4Rewo/ZORscfdhwkVtHNmCdLp99J gEsAs3d4R2vDIBEBIg4M3lhFjdydGIo/MatWv15O6H500BrT5Xzoa2PH8 w==; X-CSE-ConnectionGUID: zCcSUrumT62NECThkHuFdw== X-CSE-MsgGUID: oq0fJ3C9QSSRQhwSmbx+sw== X-IronPort-AV: E=McAfee;i="6800,10657,11526"; a="57918646" X-IronPort-AV: E=Sophos;i="6.17,300,1747724400"; d="scan'208";a="57918646" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2025 10:38:23 -0700 X-CSE-ConnectionGUID: 7Uo7U9iVSQqiQo1yQ9YXPg== X-CSE-MsgGUID: NiYddK7mRzeYxFvdvDkyPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,300,1747724400"; d="scan'208";a="172838857" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2025 10:38:23 -0700 From: Lucas De Marchi To: intel-xe@lists.freedesktop.org Cc: Lucas De Marchi , prashanth.kumar@intel.com, dnyaneshwar.bhadane@intel.com, Matt Roper , Daniele Ceraolo Spurio , John Harrison , Vinay Belgaumkar , Brian Welty , Badal Nilawar , Riana Tauro , Michal Wajdeczko Subject: [PATCH v4 00/13] drm/xe: Add psmi support Date: Mon, 18 Aug 2025 10:37:25 -0700 Message-ID: <20250818-psmi-v4-0-a330783ce1c0@intel.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Change-ID: 20250618-psmi-9f270bf67895 X-Mailer: b4 0.15-dev-b03c7 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" Add PSMI support to aid debugging. More information about PSMI is in the first and second patches. Expose the toggle to enable it via configfs, which allows to debug just one of the possible cards attached. The buffer allocation request is done via debugfs. In order to apply WAs conditionally to using PSMI, a new RTP match is also added. The rest of the patches are improvements to our configfs integration that I've been collecting while reviewing other semi-related patches. Signed-off-by: Lucas De Marchi --- Changes in v4: - Rebase and handle feedback from reviews as noted in individual patches - One open is if the reserved buffer needs to be cleared - Link to v3: https://lore.kernel.org/r/20250808-psmi-v3-0-a111e9f1e4b7@intel.com Changes in v3: - Rebase and refactor on multiple configfs changes - Add patches to log to dmesg when non-default configfs value is found - Block runtime changes of configfs attributes as they don't have any effect - Improve documentation - Link to v2: https://lore.kernel.org/r/20250723-psmi-v2-0-84a04b5a3c04@intel.com Changes in v2: - configfs - some refactors as noted on individual patches - Link to v1: https://lore.kernel.org/r/20250716-psmi-v1-0-674c13d7028e@intel.com --- Badal Nilawar (1): drm/xe/psmi: Add Wa_14020001231 Lucas De Marchi (11): drm/xe/psmi: Add GuC flag to enable PSMI drm/xe/psmi: Add debugfs interface for PSMI drm/xe/rtp: Add match for psmi drm/xe/configfs: Simplify kernel doc drm/xe/configfs: Allow to enable PSMI drm/xe/configfs: Use guard() for dev->lock drm/xe/configfs: Block runtime attribute changes drm/xe/configfs: Use tree-like output in documentation drm/xe/configfs: Improve documentation steps drm/xe/configfs: Minor fixes to documentation drm/xe/configfs: Dump custom settings when binding Vinay Belgaumkar (1): drm/xe/psmi: Add Wa_16023683509 drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 1 + drivers/gpu/drm/xe/xe_configfs.c | 211 +++++++++++++++++++---- drivers/gpu/drm/xe/xe_configfs.h | 4 + drivers/gpu/drm/xe/xe_debugfs.c | 3 + drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 8 + drivers/gpu/drm/xe/xe_guc.c | 10 +- drivers/gpu/drm/xe/xe_guc_ads.c | 4 + drivers/gpu/drm/xe/xe_guc_fwif.h | 2 + drivers/gpu/drm/xe/xe_pci.c | 3 + drivers/gpu/drm/xe/xe_psmi.c | 306 ++++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_psmi.h | 14 ++ drivers/gpu/drm/xe/xe_rtp.c | 7 + drivers/gpu/drm/xe/xe_rtp.h | 3 + drivers/gpu/drm/xe/xe_wa_oob.rules | 6 + 16 files changed, 555 insertions(+), 33 deletions(-) base-commit: edead24a80ae92312f75626eb92f2771ec5a7697 change-id: 20250618-psmi-9f270bf67895 Lucas De Marchi