Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/i915/gvt/
Dgvt.h150 int (*init)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
151 void (*clean)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
152 void (*reset)(struct intel_vgpu *vgpu, intel_engine_mask_t engine_mask);
179 struct intel_vgpu { struct
223 static inline void *intel_vgpu_vdev(struct intel_vgpu *vgpu) in intel_vgpu_vdev() argument
322 struct intel_vgpu *idle_vgpu;
442 int intel_vgpu_alloc_resource(struct intel_vgpu *vgpu,
444 void intel_vgpu_reset_resource(struct intel_vgpu *vgpu);
445 void intel_vgpu_free_resource(struct intel_vgpu *vgpu);
446 void intel_vgpu_write_fence(struct intel_vgpu *vgpu,
[all …]
Dmpt.h82 static inline int intel_gvt_hypervisor_attach_vgpu(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_attach_vgpu()
98 static inline void intel_gvt_hypervisor_detach_vgpu(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_detach_vgpu()
118 static inline int intel_gvt_hypervisor_inject_msi(struct intel_vgpu *vgpu) in intel_gvt_hypervisor_inject_msi()
165 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_enable_page_track()
179 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_disable_page_track()
194 static inline int intel_gvt_hypervisor_read_gpa(struct intel_vgpu *vgpu, in intel_gvt_hypervisor_read_gpa()
210 static inline int intel_gvt_hypervisor_write_gpa(struct intel_vgpu *vgpu, in intel_gvt_hypervisor_write_gpa()
225 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_gfn_to_mfn()
241 struct intel_vgpu *vgpu, unsigned long gfn, unsigned long size, in intel_gvt_hypervisor_dma_map_guest_page()
254 struct intel_vgpu *vgpu, dma_addr_t dma_addr) in intel_gvt_hypervisor_dma_unmap_guest_page()
[all …]
Dgtt.h45 struct intel_vgpu;
63 struct intel_vgpu *vgpu);
69 struct intel_vgpu *vgpu);
153 struct intel_vgpu *vgpu;
184 struct intel_vgpu_mm *intel_vgpu_create_ppgtt_mm(struct intel_vgpu *vgpu,
221 int intel_vgpu_init_gtt(struct intel_vgpu *vgpu);
222 void intel_vgpu_clean_gtt(struct intel_vgpu *vgpu);
223 void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old);
224 void intel_vgpu_invalidate_ppgtt(struct intel_vgpu *vgpu);
229 struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,
[all …]
Dmmio.h42 struct intel_vgpu;
59 typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *,
86 int intel_vgpu_init_mmio(struct intel_vgpu *vgpu);
87 void intel_vgpu_reset_mmio(struct intel_vgpu *vgpu, bool dmlr);
88 void intel_vgpu_clean_mmio(struct intel_vgpu *vgpu);
90 int intel_vgpu_gpa_to_mmio_offset(struct intel_vgpu *vgpu, u64 gpa);
92 int intel_vgpu_emulate_mmio_read(struct intel_vgpu *vgpu, u64 pa,
94 int intel_vgpu_emulate_mmio_write(struct intel_vgpu *vgpu, u64 pa,
97 int intel_vgpu_default_mmio_read(struct intel_vgpu *vgpu, unsigned int offset,
99 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.h45 struct intel_vgpu *current_vgpu;
46 struct intel_vgpu *next_vgpu;
52 struct intel_vgpu *engine_owner[I915_NUM_ENGINES];
86 struct intel_vgpu *vgpu;
145 void intel_gvt_wait_vgpu_idle(struct intel_vgpu *vgpu);
147 int intel_vgpu_setup_submission(struct intel_vgpu *vgpu);
149 void intel_vgpu_reset_submission(struct intel_vgpu *vgpu,
152 void intel_vgpu_clean_submission(struct intel_vgpu *vgpu);
154 int intel_vgpu_select_submission_ops(struct intel_vgpu *vgpu,
162 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,
Dinterrupt.h143 struct intel_vgpu;
146 enum intel_gvt_event_type event, struct intel_vgpu *vgpu);
150 void (*check_pending_irq)(struct intel_vgpu *vgpu);
216 void intel_vgpu_trigger_virtual_event(struct intel_vgpu *vgpu,
219 int intel_vgpu_reg_iir_handler(struct intel_vgpu *vgpu, unsigned int reg,
221 int intel_vgpu_reg_ier_handler(struct intel_vgpu *vgpu,
223 int intel_vgpu_reg_master_irq_handler(struct intel_vgpu *vgpu,
225 int intel_vgpu_reg_imr_handler(struct intel_vgpu *vgpu,
Dkvmgt.c66 size_t (*rw)(struct intel_vgpu *vgpu, char *buf,
68 void (*release)(struct intel_vgpu *vgpu,
94 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()
249 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page()
269 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page()
319 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page()
342 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page()
[all …]
Ddisplay.h42 struct intel_vgpu;
215 void intel_vgpu_emulate_vblank(struct intel_vgpu *vgpu);
216 void vgpu_update_vblank_emulation(struct intel_vgpu *vgpu, bool turnon);
218 int intel_vgpu_init_display(struct intel_vgpu *vgpu, u64 resolution);
219 void intel_vgpu_reset_display(struct intel_vgpu *vgpu);
220 void intel_vgpu_clean_display(struct intel_vgpu *vgpu);
222 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe);
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()
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 …]
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,
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()
320 struct intel_vgpu *intel_gvt_create_idle_vgpu(struct intel_gvt *gvt) in intel_gvt_create_idle_vgpu()
322 struct intel_vgpu *vgpu; in intel_gvt_create_idle_vgpu()
357 void intel_gvt_destroy_idle_vgpu(struct intel_vgpu *vgpu) in intel_gvt_destroy_idle_vgpu()
366 static struct intel_vgpu *__intel_gvt_create_vgpu(struct intel_gvt *gvt, in __intel_gvt_create_vgpu()
370 struct intel_vgpu *vgpu; in __intel_gvt_create_vgpu()
[all …]
Dmmio_context.h49 struct intel_vgpu;
59 void intel_gvt_switch_mmio(struct intel_vgpu *pre,
60 struct intel_vgpu *next,
67 int intel_vgpu_restore_inhibit_context(struct intel_vgpu *vgpu,
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()
738 static int detach_oos_page(struct intel_vgpu *vgpu,
763 static void ppgtt_free_all_spt(struct intel_vgpu *vgpu) in ppgtt_free_all_spt()
804 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()
437 void intel_vgpu_reset_cfg_space(struct intel_vgpu *vgpu) in intel_vgpu_reset_cfg_space()
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 …]
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 …]
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()
508 static void clean_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num) in clean_virtual_dp_monitor()
522 struct intel_vgpu *vgpu; in vblank_timer_fn()
525 vgpu = container_of(vblank_timer, struct intel_vgpu, vblank_timer); in vblank_timer_fn()
534 static int setup_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num, in setup_virtual_dp_monitor()
587 void vgpu_update_vblank_emulation(struct intel_vgpu *vgpu, bool turnon) in vgpu_update_vblank_emulation()
618 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe) in emulate_vblank_on_pipe()
[all …]
Dmmio.c47 int intel_vgpu_gpa_to_mmio_offset(struct intel_vgpu *vgpu, u64 gpa) in intel_vgpu_gpa_to_mmio_offset()
60 static void failsafe_emulate_mmio_rw(struct intel_vgpu *vgpu, u64 pa, in failsafe_emulate_mmio_rw()
102 int intel_vgpu_emulate_mmio_read(struct intel_vgpu *vgpu, u64 pa, in intel_vgpu_emulate_mmio_read()
177 int intel_vgpu_emulate_mmio_write(struct intel_vgpu *vgpu, u64 pa, in intel_vgpu_emulate_mmio_write()
240 void intel_vgpu_reset_mmio(struct intel_vgpu *vgpu, bool dmlr) in intel_vgpu_reset_mmio()
307 int intel_vgpu_init_mmio(struct intel_vgpu *vgpu) in intel_vgpu_init_mmio()
325 void intel_vgpu_clean_mmio(struct intel_vgpu *vgpu) in intel_vgpu_clean_mmio()

12