mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00

We already have functions to configure VF resources and to print actual provisioning details. Expose this functionality in debugfs to allow experiment with different settings or inspect details in case of unexpected issues with the provisioning. As debugfs attributes are per-VF, we use parent d_inode->i_private to store VFID, similarly how we did for per-GT attributes. Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240423131244.2045-2-michal.wajdeczko@intel.com
19 lines
402 B
C
19 lines
402 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_SRIOV_PF_DEBUGFS_H_
|
|
#define _XE_GT_SRIOV_PF_DEBUGFS_H_
|
|
|
|
struct xe_gt;
|
|
struct dentry;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root);
|
|
#else
|
|
static inline void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root) { }
|
|
#endif
|
|
|
|
#endif
|