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

Configure Feed

Select the types of activity you want to include in your feed.

at v6.16 76 lines 3.7 kB view raw
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2023-2024 Intel Corporation 4 */ 5 6#ifndef _XE_GT_SRIOV_PF_CONFIG_H_ 7#define _XE_GT_SRIOV_PF_CONFIG_H_ 8 9#include <linux/types.h> 10 11enum xe_guc_klv_threshold_index; 12struct drm_printer; 13struct xe_gt; 14 15u64 xe_gt_sriov_pf_config_get_ggtt(struct xe_gt *gt, unsigned int vfid); 16int xe_gt_sriov_pf_config_set_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size); 17int xe_gt_sriov_pf_config_set_fair_ggtt(struct xe_gt *gt, 18 unsigned int vfid, unsigned int num_vfs); 19int xe_gt_sriov_pf_config_bulk_set_ggtt(struct xe_gt *gt, 20 unsigned int vfid, unsigned int num_vfs, u64 size); 21 22u32 xe_gt_sriov_pf_config_get_ctxs(struct xe_gt *gt, unsigned int vfid); 23int xe_gt_sriov_pf_config_set_ctxs(struct xe_gt *gt, unsigned int vfid, u32 num_ctxs); 24int xe_gt_sriov_pf_config_set_fair_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 25int xe_gt_sriov_pf_config_bulk_set_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 26 u32 num_ctxs); 27 28u32 xe_gt_sriov_pf_config_get_dbs(struct xe_gt *gt, unsigned int vfid); 29int xe_gt_sriov_pf_config_set_dbs(struct xe_gt *gt, unsigned int vfid, u32 num_dbs); 30int xe_gt_sriov_pf_config_set_fair_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 31int xe_gt_sriov_pf_config_bulk_set_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 32 u32 num_dbs); 33 34u64 xe_gt_sriov_pf_config_get_lmem(struct xe_gt *gt, unsigned int vfid); 35int xe_gt_sriov_pf_config_set_lmem(struct xe_gt *gt, unsigned int vfid, u64 size); 36int xe_gt_sriov_pf_config_set_fair_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 37int xe_gt_sriov_pf_config_bulk_set_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 38 u64 size); 39 40u32 xe_gt_sriov_pf_config_get_exec_quantum(struct xe_gt *gt, unsigned int vfid); 41int xe_gt_sriov_pf_config_set_exec_quantum(struct xe_gt *gt, unsigned int vfid, u32 exec_quantum); 42 43u32 xe_gt_sriov_pf_config_get_preempt_timeout(struct xe_gt *gt, unsigned int vfid); 44int xe_gt_sriov_pf_config_set_preempt_timeout(struct xe_gt *gt, unsigned int vfid, 45 u32 preempt_timeout); 46 47u32 xe_gt_sriov_pf_config_get_sched_priority(struct xe_gt *gt, unsigned int vfid); 48int xe_gt_sriov_pf_config_set_sched_priority(struct xe_gt *gt, unsigned int vfid, u32 priority); 49 50u32 xe_gt_sriov_pf_config_get_threshold(struct xe_gt *gt, unsigned int vfid, 51 enum xe_guc_klv_threshold_index index); 52int xe_gt_sriov_pf_config_set_threshold(struct xe_gt *gt, unsigned int vfid, 53 enum xe_guc_klv_threshold_index index, u32 value); 54 55int xe_gt_sriov_pf_config_set_fair(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 56int xe_gt_sriov_pf_config_sanitize(struct xe_gt *gt, unsigned int vfid, long timeout); 57int xe_gt_sriov_pf_config_release(struct xe_gt *gt, unsigned int vfid, bool force); 58int xe_gt_sriov_pf_config_push(struct xe_gt *gt, unsigned int vfid, bool refresh); 59 60ssize_t xe_gt_sriov_pf_config_save(struct xe_gt *gt, unsigned int vfid, void *buf, size_t size); 61int xe_gt_sriov_pf_config_restore(struct xe_gt *gt, unsigned int vfid, 62 const void *buf, size_t size); 63 64bool xe_gt_sriov_pf_config_is_empty(struct xe_gt *gt, unsigned int vfid); 65 66int xe_gt_sriov_pf_config_init(struct xe_gt *gt); 67void xe_gt_sriov_pf_config_restart(struct xe_gt *gt); 68 69int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p); 70int xe_gt_sriov_pf_config_print_ctxs(struct xe_gt *gt, struct drm_printer *p); 71int xe_gt_sriov_pf_config_print_dbs(struct xe_gt *gt, struct drm_printer *p); 72int xe_gt_sriov_pf_config_print_lmem(struct xe_gt *gt, struct drm_printer *p); 73 74int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p); 75 76#endif