Home
last modified time | relevance | path

Searched refs:intel_vgpu (Results 1 – 25 of 35) sorted by relevance

12

/drivers/gpu/drm/i915/gvt/
Dgvt.h145 int (*init)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
146 void (*clean)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
147 void (*reset)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
174 struct intel_vgpu { struct
217 static inline void *intel_vgpu_vdev(struct intel_vgpu *vgpu) in intel_vgpu_vdev() argument
314 struct intel_vgpu *idle_vgpu;
427 int intel_vgpu_alloc_resource(struct intel_vgpu *vgpu,
429 void intel_vgpu_reset_resource(struct intel_vgpu *vgpu);
430 void intel_vgpu_free_resource(struct intel_vgpu *vgpu);
431 void intel_vgpu_write_fence(struct intel_vgpu *vgpu,
[all …]
Dmpt.h80 static inline int intel_gvt_hypervisor_attach_vgpu(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_attach_vgpu()
96 static inline void intel_gvt_hypervisor_detach_vgpu(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_detach_vgpu()
116 static inline int intel_gvt_hypervisor_inject_msi(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_inject_msi()
163 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_enable_page_track()
177 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_disable_page_track()
192 static inline int intel_gvt_hypervisor_read_gpa(struct intel_vgpu *vgpu, in intel_gvt_hypervisor_read_gpa()
208 static inline int intel_gvt_hypervisor_write_gpa(struct intel_vgpu *vgpu, in intel_gvt_hypervisor_write_gpa()
223 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_gfn_to_mfn()
239 struct intel_vgpu *vgpu, unsigned long gfn, unsigned long size, in intel_gvt_hypervisor_dma_map_guest_page()
252 struct intel_vgpu *vgpu, dma_addr_t dma_addr) in intel_gvt_hypervisor_dma_unmap_guest_page()
[all …]
Dgtt.h54 struct intel_vgpu *vgpu);
60 struct intel_vgpu *vgpu);
144 struct intel_vgpu *vgpu;
175 struct intel_vgpu_mm *intel_vgpu_create_ppgtt_mm(struct intel_vgpu *vgpu,
212 int intel_vgpu_init_gtt(struct intel_vgpu *vgpu);
213 void intel_vgpu_clean_gtt(struct intel_vgpu *vgpu);
214 void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old);
215 void intel_vgpu_invalidate_ppgtt(struct intel_vgpu *vgpu);
220 struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,
237 struct intel_vgpu *vgpu;
[all …]
Dmmio.h42 struct intel_vgpu;
59 typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *,
83 int intel_vgpu_init_mmio(struct intel_vgpu *vgpu);
84 void intel_vgpu_reset_mmio(struct intel_vgpu *vgpu, bool dmlr);
85 void intel_vgpu_clean_mmio(struct intel_vgpu *vgpu);
87 int intel_vgpu_gpa_to_mmio_offset(struct intel_vgpu *vgpu, u64 gpa);
89 int intel_vgpu_emulate_mmio_read(struct intel_vgpu *vgpu, u64 pa,
91 int intel_vgpu_emulate_mmio_write(struct intel_vgpu *vgpu, u64 pa,
94 int intel_vgpu_default_mmio_read(struct intel_vgpu *vgpu, unsigned int offset,
96 int intel_vgpu_default_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
[all …]
Dsched_policy.h38 struct intel_vgpu;
43 int (*init_vgpu)(struct intel_vgpu *vgpu);
44 void (*clean_vgpu)(struct intel_vgpu *vgpu);
45 void (*start_schedule)(struct intel_vgpu *vgpu);
46 void (*stop_schedule)(struct intel_vgpu *vgpu);
55 int intel_vgpu_init_sched_policy(struct intel_vgpu *vgpu);
57 void intel_vgpu_clean_sched_policy(struct intel_vgpu *vgpu);
59 void intel_vgpu_start_schedule(struct intel_vgpu *vgpu);
61 void intel_vgpu_stop_schedule(struct intel_vgpu *vgpu);
Dscheduler.h40 struct intel_vgpu *current_vgpu;
41 struct intel_vgpu *next_vgpu;
47 struct intel_vgpu *engine_owner[I915_NUM_ENGINES];
81 struct intel_vgpu *vgpu;
140 void intel_gvt_wait_vgpu_idle(struct intel_vgpu *vgpu);
142 int intel_vgpu_setup_submission(struct intel_vgpu *vgpu);
144 void intel_vgpu_reset_submission(struct intel_vgpu *vgpu,
147 void intel_vgpu_clean_submission(struct intel_vgpu *vgpu);
149 int intel_vgpu_select_submission_ops(struct intel_vgpu *vgpu,
157 intel_vgpu_create_workload(struct intel_vgpu *vgpu,
[all …]
Dpage_track.h30 struct intel_vgpu;
45 struct intel_vgpu *vgpu, unsigned long gfn);
47 int intel_vgpu_register_page_track(struct intel_vgpu *vgpu,
50 void intel_vgpu_unregister_page_track(struct intel_vgpu *vgpu,
53 int intel_vgpu_enable_page_track(struct intel_vgpu *vgpu, unsigned long gfn);
54 int intel_vgpu_disable_page_track(struct intel_vgpu *vgpu, unsigned long gfn);
56 int intel_vgpu_page_track_handler(struct intel_vgpu *vgpu, u64 gpa,
Dkvmgt.c66 size_t (*rw)(struct intel_vgpu *vgpu, char *buf,
68 void (*release)(struct intel_vgpu *vgpu,
93 struct intel_vgpu *vgpu;
102 struct intel_vgpu *vgpu;
112 struct intel_vgpu *vgpu;
137 static inline struct kvmgt_vdev *kvmgt_vdev(struct intel_vgpu *vgpu) in kvmgt_vdev()
151 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page()
171 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page()
221 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page()
244 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page()
[all …]
Dinterrupt.h140 struct intel_vgpu;
143 enum intel_gvt_event_type event, struct intel_vgpu *vgpu);
147 void (*check_pending_irq)(struct intel_vgpu *vgpu);
220 void intel_vgpu_trigger_virtual_event(struct intel_vgpu *vgpu,
223 int intel_vgpu_reg_iir_handler(struct intel_vgpu *vgpu, unsigned int reg,
225 int intel_vgpu_reg_ier_handler(struct intel_vgpu *vgpu,
227 int intel_vgpu_reg_master_irq_handler(struct intel_vgpu *vgpu,
229 int intel_vgpu_reg_imr_handler(struct intel_vgpu *vgpu,
Ddebugfs.c29 struct intel_vgpu *vgpu;
86 struct intel_vgpu *vgpu = s->private; in vgpu_mmio_diff_show()
129 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_get()
144 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_set()
158 void intel_gvt_debugfs_add_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_add_vgpu()
176 void intel_gvt_debugfs_remove_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_remove_vgpu()
Dedid.h40 struct intel_vgpu;
141 void intel_vgpu_init_i2c_edid(struct intel_vgpu *vgpu);
143 int intel_gvt_i2c_handle_gmbus_read(struct intel_vgpu *vgpu,
146 int intel_gvt_i2c_handle_gmbus_write(struct intel_vgpu *vgpu,
149 void intel_gvt_i2c_handle_aux_ch_write(struct intel_vgpu *vgpu,
Dsched_policy.c37 static bool vgpu_has_pending_workload(struct intel_vgpu *vgpu) in vgpu_has_pending_workload()
55 struct intel_vgpu *vgpu;
75 static void vgpu_update_timeslice(struct intel_vgpu *vgpu, ktime_t cur_time) in vgpu_update_timeslice()
176 static struct intel_vgpu *find_busy_vgpu(struct gvt_sched_data *sched_data) in find_busy_vgpu()
179 struct intel_vgpu *vgpu = NULL; in find_busy_vgpu()
216 struct intel_vgpu *vgpu = NULL; in tbs_sched_func()
311 static int tbs_sched_init_vgpu(struct intel_vgpu *vgpu) in tbs_sched_init_vgpu()
328 static void tbs_sched_clean_vgpu(struct intel_vgpu *vgpu) in tbs_sched_clean_vgpu()
341 static void tbs_sched_start_schedule(struct intel_vgpu *vgpu) in tbs_sched_start_schedule()
363 static void tbs_sched_stop_schedule(struct intel_vgpu *vgpu) in tbs_sched_stop_schedule()
[all …]
Dpage_track.c35 struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_find_page_track()
50 int intel_vgpu_register_page_track(struct intel_vgpu *vgpu, unsigned long gfn, in intel_vgpu_register_page_track()
82 void intel_vgpu_unregister_page_track(struct intel_vgpu *vgpu, in intel_vgpu_unregister_page_track()
103 int intel_vgpu_enable_page_track(struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_enable_page_track()
130 int intel_vgpu_disable_page_track(struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_disable_page_track()
159 int intel_vgpu_page_track_handler(struct intel_vgpu *vgpu, u64 gpa, in intel_vgpu_page_track_handler()
Daperture_gm.c41 static int alloc_gm(struct intel_vgpu *vgpu, bool high_gm) in alloc_gm()
79 static int alloc_vgpu_gm(struct intel_vgpu *vgpu) in alloc_vgpu_gm()
107 static void free_vgpu_gm(struct intel_vgpu *vgpu) in free_vgpu_gm()
128 void intel_vgpu_write_fence(struct intel_vgpu *vgpu, in intel_vgpu_write_fence()
157 static void _clear_vgpu_fence(struct intel_vgpu *vgpu) in _clear_vgpu_fence()
165 static void free_vgpu_fence(struct intel_vgpu *vgpu) in free_vgpu_fence()
190 static int alloc_vgpu_fence(struct intel_vgpu *vgpu) in alloc_vgpu_fence()
232 static void free_resource(struct intel_vgpu *vgpu) in free_resource()
241 static int alloc_resource(struct intel_vgpu *vgpu, in alloc_resource()
306 void intel_vgpu_free_resource(struct intel_vgpu *vgpu) in intel_vgpu_free_resource()
[all …]
Dvgpu.c38 void populate_pvinfo_page(struct intel_vgpu *vgpu) in populate_pvinfo_page()
214 void intel_gvt_activate_vgpu(struct intel_vgpu *vgpu) in intel_gvt_activate_vgpu()
229 void intel_gvt_deactivate_vgpu(struct intel_vgpu *vgpu) in intel_gvt_deactivate_vgpu()
255 void intel_gvt_release_vgpu(struct intel_vgpu *vgpu) in intel_gvt_release_vgpu()
273 void intel_gvt_destroy_vgpu(struct intel_vgpu *vgpu) in intel_gvt_destroy_vgpu()
322 struct intel_vgpu *intel_gvt_create_idle_vgpu(struct intel_gvt *gvt) in intel_gvt_create_idle_vgpu()
324 struct intel_vgpu *vgpu; in intel_gvt_create_idle_vgpu()
359 void intel_gvt_destroy_idle_vgpu(struct intel_vgpu *vgpu) in intel_gvt_destroy_idle_vgpu()
368 static struct intel_vgpu *__intel_gvt_create_vgpu(struct intel_gvt *gvt, in __intel_gvt_create_vgpu()
372 struct intel_vgpu *vgpu; in __intel_gvt_create_vgpu()
[all …]
Dedid.c49 static unsigned char edid_get_byte(struct intel_vgpu *vgpu) in edid_get_byte()
126 static void reset_gmbus_controller(struct intel_vgpu *vgpu) in reset_gmbus_controller()
135 static int gmbus0_mmio_write(struct intel_vgpu *vgpu, in gmbus0_mmio_write()
175 static int gmbus1_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus1_mmio_write()
276 static int gmbus3_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus3_mmio_write()
285 static int gmbus3_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, in gmbus3_mmio_read()
338 static int gmbus2_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, in gmbus2_mmio_read()
349 static int gmbus2_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus2_mmio_write()
373 int intel_gvt_i2c_handle_gmbus_read(struct intel_vgpu *vgpu, in intel_gvt_i2c_handle_gmbus_read()
403 int intel_gvt_i2c_handle_gmbus_write(struct intel_vgpu *vgpu, in intel_gvt_i2c_handle_gmbus_write()
[all …]
Ddmabuf.h55 struct intel_vgpu *vgpu;
63 int intel_vgpu_query_plane(struct intel_vgpu *vgpu, void *args);
64 int intel_vgpu_get_dmabuf(struct intel_vgpu *vgpu, unsigned int dmabuf_id);
65 void intel_vgpu_dmabuf_cleanup(struct intel_vgpu *vgpu);
Dgtt.c54 bool intel_gvt_ggtt_validate_range(struct intel_vgpu *vgpu, u64 addr, u32 size) in intel_gvt_ggtt_validate_range()
72 int intel_gvt_ggtt_gmadr_g2h(struct intel_vgpu *vgpu, u64 g_addr, u64 *h_addr) in intel_gvt_ggtt_gmadr_g2h()
90 int intel_gvt_ggtt_gmadr_h2g(struct intel_vgpu *vgpu, u64 h_addr, u64 *g_addr) in intel_gvt_ggtt_gmadr_h2g()
107 int intel_gvt_ggtt_index_g2h(struct intel_vgpu *vgpu, unsigned long g_index, in intel_gvt_ggtt_index_g2h()
122 int intel_gvt_ggtt_h2g_index(struct intel_vgpu *vgpu, unsigned long h_index, in intel_gvt_ggtt_h2g_index()
306 struct intel_vgpu *vgpu) in gtt_get_entry64()
331 struct intel_vgpu *vgpu) in gtt_set_entry64()
744 static int detach_oos_page(struct intel_vgpu *vgpu,
769 static void ppgtt_free_all_spt(struct intel_vgpu *vgpu) in ppgtt_free_all_spt()
810 struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_find_spt_by_gfn()
[all …]
Dcfg_space.c68 static void vgpu_pci_cfg_mem_write(struct intel_vgpu *vgpu, unsigned int off, in vgpu_pci_cfg_mem_write()
116 int intel_vgpu_emulate_cfg_read(struct intel_vgpu *vgpu, unsigned int offset, in intel_vgpu_emulate_cfg_read()
132 static int map_aperture(struct intel_vgpu *vgpu, bool map) in map_aperture()
162 static int trap_gttmmio(struct intel_vgpu *vgpu, bool trap) in trap_gttmmio()
188 static int emulate_pci_command_write(struct intel_vgpu *vgpu, in emulate_pci_command_write()
219 static int emulate_pci_rom_bar_write(struct intel_vgpu *vgpu, in emulate_pci_rom_bar_write()
233 static int emulate_pci_bar_write(struct intel_vgpu *vgpu, unsigned int offset, in emulate_pci_bar_write()
310 int intel_vgpu_emulate_cfg_write(struct intel_vgpu *vgpu, unsigned int offset, in intel_vgpu_emulate_cfg_write()
373 void intel_vgpu_init_cfg_space(struct intel_vgpu *vgpu, in intel_vgpu_init_cfg_space()
436 void intel_vgpu_reset_cfg_space(struct intel_vgpu *vgpu) in intel_vgpu_reset_cfg_space()
Ddisplay.h41 struct intel_vgpu;
208 int intel_vgpu_init_display(struct intel_vgpu *vgpu, u64 resolution);
209 void intel_vgpu_reset_display(struct intel_vgpu *vgpu);
210 void intel_vgpu_clean_display(struct intel_vgpu *vgpu);
212 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe);
Dexeclist.c93 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_status()
128 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_csb_update()
184 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_ctx_schedule_out()
257 struct intel_vgpu *vgpu = execlist->vgpu; in get_next_execlist_slot()
282 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_schedule_in()
372 struct intel_vgpu *vgpu = workload->vgpu; in prepare_execlist_workload()
394 struct intel_vgpu *vgpu = workload->vgpu; in complete_execlist_workload()
430 static int submit_context(struct intel_vgpu *vgpu, in submit_context()
456 int intel_vgpu_submit_execlist(struct intel_vgpu *vgpu, in intel_vgpu_submit_execlist()
500 static void init_vgpu_execlist(struct intel_vgpu *vgpu, in init_vgpu_execlist()
[all …]
Dexeclist.h173 struct intel_vgpu *vgpu;
178 void intel_vgpu_clean_execlist(struct intel_vgpu *vgpu);
180 int intel_vgpu_init_execlist(struct intel_vgpu *vgpu);
182 int intel_vgpu_submit_execlist(struct intel_vgpu *vgpu,
185 void intel_vgpu_reset_execlist(struct intel_vgpu *vgpu,
Ddisplay.c38 static int get_edp_pipe(struct intel_vgpu *vgpu) in get_edp_pipe()
58 static int edp_pipe_is_enabled(struct intel_vgpu *vgpu) in edp_pipe_is_enabled()
70 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe) in pipe_is_enabled()
170 static void emulate_monitor_status_change(struct intel_vgpu *vgpu) in emulate_monitor_status_change()
507 static void clean_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num) in clean_virtual_dp_monitor()
518 static int setup_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num, in setup_virtual_dp_monitor()
564 struct intel_vgpu *vgpu; in intel_gvt_check_vblank_emulation()
590 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe) in emulate_vblank_on_pipe()
619 static void emulate_vblank(struct intel_vgpu *vgpu) in emulate_vblank()
638 struct intel_vgpu *vgpu; in intel_gvt_emulate_vblank()
[all …]
Ddmabuf.c39 static int vgpu_pin_dma_address(struct intel_vgpu *vgpu, in vgpu_pin_dma_address()
51 static void vgpu_unpin_dma_address(struct intel_vgpu *vgpu, in vgpu_unpin_dma_address()
61 struct intel_vgpu *vgpu; in vgpu_gem_get_pages()
129 struct intel_vgpu *vgpu = obj->vgpu; in vgpu_gem_put_pages()
145 struct intel_vgpu *vgpu = obj->vgpu; in dmabuf_gem_object_free()
186 struct intel_vgpu *vgpu = obj->vgpu; in vgpu_gem_release()
265 struct intel_vgpu *vgpu, in vgpu_get_plane_info()
351 pick_dmabuf_by_info(struct intel_vgpu *vgpu, in pick_dmabuf_by_info()
383 pick_dmabuf_by_num(struct intel_vgpu *vgpu, u32 id) in pick_dmabuf_by_num()
419 int intel_vgpu_query_plane(struct intel_vgpu *vgpu, void *args) in intel_vgpu_query_plane()
[all …]
Dmmio_context.h47 void intel_gvt_switch_mmio(struct intel_vgpu *pre,
48 struct intel_vgpu *next,
55 int intel_vgpu_restore_inhibit_context(struct intel_vgpu *vgpu,

12