Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/pf: Allow to control scheduling priority using debugfs

Add 'sched_priority' attribute that will represents the scheduling
prority of the VF or PF. Values {0,1,2} correspond to priorities
{LOW,NORMAL,HIGH} respectively.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lukasz Laguna <lukasz.laguna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241106151301.2079-5-michal.wajdeczko@intel.com

+5
+5
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
··· 164 164 * │   │   ├── contexts_spare 165 165 * │   │   ├── exec_quantum_ms 166 166 * │   │   ├── preempt_timeout_us 167 + * │   │   ├── sched_priority 167 168 * │   ├── vf1 168 169 * │   │   ├── ggtt_quota 169 170 * │   │   ├── lmem_quota ··· 172 171 * │   │   ├── contexts_quota 173 172 * │   │   ├── exec_quantum_ms 174 173 * │   │   ├── preempt_timeout_us 174 + * │   │   ├── sched_priority 175 175 */ 176 176 177 177 #define DEFINE_SRIOV_GT_CONFIG_DEBUGFS_ATTRIBUTE(CONFIG, TYPE, FORMAT) \ ··· 211 209 DEFINE_SRIOV_GT_CONFIG_DEBUGFS_ATTRIBUTE(dbs, u32, "%llu\n"); 212 210 DEFINE_SRIOV_GT_CONFIG_DEBUGFS_ATTRIBUTE(exec_quantum, u32, "%llu\n"); 213 211 DEFINE_SRIOV_GT_CONFIG_DEBUGFS_ATTRIBUTE(preempt_timeout, u32, "%llu\n"); 212 + DEFINE_SRIOV_GT_CONFIG_DEBUGFS_ATTRIBUTE(sched_priority, u32, "%llu\n"); 214 213 215 214 /* 216 215 * /sys/kernel/debug/dri/0/ ··· 298 295 &exec_quantum_fops); 299 296 debugfs_create_file_unsafe("preempt_timeout_us", 0644, parent, parent, 300 297 &preempt_timeout_fops); 298 + debugfs_create_file_unsafe("sched_priority", 0644, parent, parent, 299 + &sched_priority_fops); 301 300 302 301 /* register all threshold attributes */ 303 302 #define register_threshold_attribute(TAG, NAME, ...) \