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 34929606A322 for ; Fri, 4 Dec 2026 15:35:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hpve2XQh Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF15410E89E; Fri, 4 Dec 2026 15:34:59 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id E749810E89E for ; Fri, 4 Dec 2026 15:34:53 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 8254C4541F; Fri, 4 Dec 2026 15:34:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56BE81F000C2; Fri, 4 Dec 2026 15:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796398493; bh=LqLUXIb2lOMmcP5iMGK8oLMiN76Yny2Yr5wYReBQQFg=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Hpve2XQhaH3RABAMoAvbp3WMK35av7/ivT3Zhjvixb9dqbG4DoUfMG5wjCjVmVGxZ pWJWy6qUhIZQIvOI6gxu9EuViWjj97CPD0sz/siXwrjGfkWnrWgNtTC9vjdUTapKdS 4Mpe/7BBPHM/94+KJQYL0v4u7KTXVYLOs3NzgCqqn1YItLixat40j0yoNinTBEkpds fNjUz7BuWxlWKSgxGtJC1zgARmdwrNSwDVj7DSSWJiuE8G0p8d56JyG0C7Blyrfnws SJPBr36RTD+4CCeH3s04zJkiyRChjti4TGjE3zNE4EmUhAhYF9f52h57dL+EOvRFlh bnzuhCKgYExsA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture To: "Satyanarayana K V P" , intel-xe@lists.freedesktop.org In-Reply-To: <20261204144712.3520695-16-satyanarayana.k.v.p@intel.com> References: <20261204144712.3520695-13-satyanarayana.k.v.p@intel.com> <20261204144712.3520695-16-satyanarayana.k.v.p@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:34:53 +0000 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: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-11.2 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 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 X-Archived-By: Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Low] drm/xe/guc: VF provisioning KLVs 0x0600/0x0601 misclassified as SELF_CFG - [Low] drm/xe/guc: SR-IOV actions 0x5511-0x5514 placed in legacy guc_actions_abi.h - [Low] drm/xe: new GuC log/capture KLVs missing from xe_guc_klv_key_to_string() -- commit ace21c007b77c5e7ec1166d46f5f5a0fc932e85c Author: Satyanarayana K V P drm/xe/guc: Add KLV definitions for GuC log and debug state capture This commit adds GuC ABI definitions for VF access to GuC logs and debug state capture buffers, including four new GuC actions and several Global Config and Self Config KLVs. > diff --git a/drivers/gpu/drm/xe/abi/guc_actions_abi.h b/drivers/gpu/drm/x= e/abi/guc_actions_abi.h > index 520b771906cdd..053af1efa74e9 100644 > --- a/drivers/gpu/drm/xe/abi/guc_actions_abi.h > +++ b/drivers/gpu/drm/xe/abi/guc_actions_abi.h > @@ -149,6 +149,10 @@ enum xe_guc_action { > XE_GUC_ACTION_SET_DEVICE_ENGINE_ACTIVITY_BUFFER =3D 0x550C, > XE_GUC_ACTION_SET_FUNCTION_ENGINE_ACTIVITY_BUFFER =3D 0x550D, > XE_GUC_ACTION_OPT_IN_FEATURE_KLV =3D 0x550E, > + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS =3D 0x5511, > + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS_MMIO =3D 0x5512, > + XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY =3D 0x5513, > + XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE =3D 0x5514, [Severity: Low] Should these four SR-IOV actions live in drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h instead of the legacy enum xe_guc_action? All other 0x55xx SR-IOV actions (such as GUC_ACTION_VF2GUC_RESFIX_START) are defined there with GUC_ACTION_* macros and HXG message layout documentation. Placing these in guc_actions_abi.h splits the SR-IOV action space across two headers and leaves their HXG wire formats undocumented. Also, the commit subject mentions only KLV definitions and omits these four new GuC actions. > diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/a= bi/guc_klvs_abi.h > index d6fa69f154b3f..87f7f04cf4097 100644 > --- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h > +++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h [ ... ] > @@ -70,11 +86,29 @@ > #define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_KEY 0x3003u > #define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_LEN 1u > =20 > +#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_KEY 0x3004u > +#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_LEN 1u > + > +#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_KEY 0x3005u > +#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_LEN 1u [Severity: Low] Should xe_guc_klv_key_to_string() in xe_guc_klv_helpers.c also be updated for the new Global Config KLVs (0x3004, 0x3005) and the PF provisioning KLVs (0x0600, 0x0601)? Once commit "drm/xe/pf: Enable VF Guc log and debug state capture" wires 0x0600 and 0x0601 into pf_push_vf_cfg_klvs(), xe_guc_klv_print() will log them as (unknown) on errors and when CONFIG_DRM_XE_DEBUG_SRIOV is enabled, unlike every other KLV pushed through pf_push_vf_buf_klvs(). The two Global Config KLVs are likewise unmapped alongside their sibling Global Config entries. > + > /** > * DOC: GuC Self Config KLVs > * > * `GuC KLV`_ keys available for use with HOST2GUC_SELF_CFG_. > * > + * _`GUC_KLV_SELF_CONFIG_DEBUG_STATE_CAPTURE_ENABLE` : 0x0600 > + * This KLV is configured only by PF to enable debug state capture for a > + * specific VF during provisioning. When set, debug state capture is ena= bled > + * for this VF and when cleared, debug state capture is disabled by defa= ult. > + * This KLV is independent of GUC_KLV_OPT_IN_FEATURE_GUC_LOG_ENABLE and > + * does not enable or disable GuC log access. > + * > + * _`GUC_KLV_SELF_CONFIG_GUC_LOG_ENABLE` : 0x0601 > + * This KLV is configured only by PF to enable GuC log access for a spec= ific > + * VF during provisioning. When set, GuC log access is enabled for this = VF > + * and when cleared, GuC log access is disabled by default. [ ... ] > +#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_KEY 0x0600u > +#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_LEN 1u > + > +#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_KEY 0x0601u > +#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_LEN 1u [Severity: Low] Should keys 0x0600 and 0x0601 be defined under DOC: GuC VF Configuration KLVs with a GUC_KLV_VF_CFG_ prefix rather than under GuC Self Config KLVs? GUC_ACTION_HOST2GUC_SELF_CFG carries no VFID and can only configure the calling function itself. As the comments state, these two keys are configured only by the PF for a specific VF during provisioning and are sent via GUC_ACTION_PF2GUC_UPDATE_VF_CFG (pf_push_vf_cfg_klvs() -> guc_action_update_vf_cfg()). In addition, the DOC anchors use GUC_KLV_SELF_CONFIG_* while the macros use GUC_KLV_SELF_CFG_*. The comment for 0x0600 also references GUC_KLV_OPT_IN_FEATURE_GUC_LOG_ENABLE, which does not exist in the tree and appears to mean the 0x0601 GuC log enable KLV below it. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204144712.3520= 695-13-satyanarayana.k.v.p@intel.com?part=3D3