mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/xe/pf: Move SR-IOV GT debugfs files to new tree
Instead of expanding GT debugfs directories with large number of SR-IOV files, as those are replicated per each SR-IOV function, move them to our new debugfs tree, organized by the function. But to avoid breaking IGT tests that use current layout, provide symlinks which could be removed once transition period is over, or we can we can leave them for convenience. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250928140029.198847-5-michal.wajdeczko@intel.com
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
#include <linux/debugfs.h>
|
||||
#include <drm/drm_debugfs.h>
|
||||
|
||||
#include "xe_device.h"
|
||||
#include "xe_device_types.h"
|
||||
#include "xe_gt_sriov_pf_debugfs.h"
|
||||
#include "xe_tile_sriov_pf_debugfs.h"
|
||||
#include "xe_sriov.h"
|
||||
|
||||
@@ -51,6 +53,15 @@ static unsigned int extract_vfid(struct dentry *d)
|
||||
return pp == extract_xe(d) ? PFID : (uintptr_t)pp;
|
||||
}
|
||||
|
||||
static void pf_populate_tile(struct xe_tile *tile, struct dentry *dent, unsigned int vfid)
|
||||
{
|
||||
struct xe_gt *gt;
|
||||
unsigned int id;
|
||||
|
||||
for_each_gt_on_tile(gt, tile, id)
|
||||
xe_gt_sriov_pf_debugfs_populate(gt, dent, vfid);
|
||||
}
|
||||
|
||||
/**
|
||||
* xe_tile_sriov_pf_debugfs_populate() - Populate SR-IOV debugfs tree with tile files.
|
||||
* @tile: the &xe_tile to register
|
||||
@@ -95,4 +106,6 @@ void xe_tile_sriov_pf_debugfs_populate(struct xe_tile *tile, struct dentry *pare
|
||||
xe_tile_assert(tile, extract_tile(dent) == tile);
|
||||
xe_tile_assert(tile, extract_vfid(dent) == vfid);
|
||||
xe_tile_assert(tile, extract_xe(dent) == xe);
|
||||
|
||||
pf_populate_tile(tile, dent, vfid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user