/linux/drivers/gpu/drm/i915/gvt/ |
H A D | display.c | 46 static int get_edp_pipe(struct intel_vgpu *vgpu) in get_edp_pipe() 66 static int edp_pipe_is_enabled(struct intel_vgpu *vgpu) in edp_pipe_is_enabled() 78 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe) in pipe_is_enabled() 178 static void emulate_monitor_status_change(struct intel_vgpu *vgpu) in emulate_monitor_status_change() 519 static void clean_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num) in clean_virtual_dp_monitor() 533 struct intel_vgpu *vgpu; in vblank_timer_fn() local 545 static int setup_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num, in setup_virtual_dp_monitor() 598 void vgpu_update_vblank_emulation(struct intel_vgpu *vgpu, bool turnon) in vgpu_update_vblank_emulation() 629 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe) in emulate_vblank_on_pipe() 658 void intel_vgpu_emulate_vblank(struct intel_vgpu *vgpu) in intel_vgpu_emulate_vblank() [all …]
|
H A D | cfg_space.c | 69 static void vgpu_pci_cfg_mem_write(struct intel_vgpu *vgpu, unsigned int off, in vgpu_pci_cfg_mem_write() 117 int intel_vgpu_emulate_cfg_read(struct intel_vgpu *vgpu, unsigned int offset, in intel_vgpu_emulate_cfg_read() 133 static void map_aperture(struct intel_vgpu *vgpu, bool map) in map_aperture() 139 static void trap_gttmmio(struct intel_vgpu *vgpu, bool trap) in trap_gttmmio() 145 static int emulate_pci_command_write(struct intel_vgpu *vgpu, in emulate_pci_command_write() 167 static int emulate_pci_rom_bar_write(struct intel_vgpu *vgpu, in emulate_pci_rom_bar_write() 181 static void emulate_pci_bar_write(struct intel_vgpu *vgpu, unsigned int offset, in emulate_pci_bar_write() 256 int intel_vgpu_emulate_cfg_write(struct intel_vgpu *vgpu, unsigned int offset, in intel_vgpu_emulate_cfg_write() 319 void intel_vgpu_init_cfg_space(struct intel_vgpu *vgpu, in intel_vgpu_init_cfg_space() 332 vgpu_cfg_space(vgpu)[PCI_CLASS_DEVICE] = in intel_vgpu_init_cfg_space() local [all …]
|
H A D | handlers.c | 93 static void read_vreg(struct intel_vgpu *vgpu, unsigned int offset, in read_vreg() 99 static void write_vreg(struct intel_vgpu *vgpu, unsigned int offset, in write_vreg() 179 void enter_failsafe_mode(struct intel_vgpu *vgpu, int reason) in enter_failsafe_mode() 198 static int sanitize_fence_mmio_access(struct intel_vgpu *vgpu, in sanitize_fence_mmio_access() 221 static int gamw_echo_dev_rw_ia_write(struct intel_vgpu *vgpu, in gamw_echo_dev_rw_ia_write() 246 static int fence_mmio_read(struct intel_vgpu *vgpu, unsigned int off, in fence_mmio_read() 259 static int fence_mmio_write(struct intel_vgpu *vgpu, unsigned int off, in fence_mmio_write() 283 static int mul_force_wake_write(struct intel_vgpu *vgpu, in mul_force_wake_write() 317 static int gdrst_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gdrst_mmio_write() 366 static int gmbus_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, in gmbus_mmio_read() [all …]
|
H A D | kvmgt.c | 97 struct intel_vgpu *vgpu; member 128 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page() 136 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page() 177 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page() 200 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page() 209 static struct gvt_dma *__gvt_cache_find_dma_addr(struct intel_vgpu *vgpu, in __gvt_cache_find_dma_addr() 228 static struct gvt_dma *__gvt_cache_find_gfn(struct intel_vgpu *vgpu, gfn_t gfn) in __gvt_cache_find_gfn() 246 static int __gvt_cache_add(struct intel_vgpu *vgpu, gfn_t gfn, in __gvt_cache_add() 295 static void __gvt_cache_remove_entry(struct intel_vgpu *vgpu, in __gvt_cache_remove_entry() 304 static void gvt_cache_destroy(struct intel_vgpu *vgpu) in gvt_cache_destroy() [all …]
|
H A D | aperture_gm.c | 42 static int alloc_gm(struct intel_vgpu *vgpu, bool high_gm) in alloc_gm() 80 static int alloc_vgpu_gm(struct intel_vgpu *vgpu) in alloc_vgpu_gm() 108 static void free_vgpu_gm(struct intel_vgpu *vgpu) in free_vgpu_gm() 129 void intel_vgpu_write_fence(struct intel_vgpu *vgpu, in intel_vgpu_write_fence() 158 static void _clear_vgpu_fence(struct intel_vgpu *vgpu) in _clear_vgpu_fence() 166 static void free_vgpu_fence(struct intel_vgpu *vgpu) in free_vgpu_fence() 191 static int alloc_vgpu_fence(struct intel_vgpu *vgpu) in alloc_vgpu_fence() 233 static void free_resource(struct intel_vgpu *vgpu) in free_resource() 242 static int alloc_resource(struct intel_vgpu *vgpu, in alloc_resource() 307 void intel_vgpu_free_resource(struct intel_vgpu *vgpu) in intel_vgpu_free_resource() [all …]
|
H A D | execlist.c | 93 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_status() local 128 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_csb_update() local 184 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_ctx_schedule_out() local 257 struct intel_vgpu *vgpu = execlist->vgpu; in get_next_execlist_slot() local 282 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_schedule_in() local 372 struct intel_vgpu *vgpu = workload->vgpu; in prepare_execlist_workload() local 394 struct intel_vgpu *vgpu = workload->vgpu; in complete_execlist_workload() local 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 …]
|
H A D | sched_policy.c | 37 static bool vgpu_has_pending_workload(struct intel_vgpu *vgpu) in vgpu_has_pending_workload() 55 struct intel_vgpu *vgpu; member 75 static void vgpu_update_timeslice(struct intel_vgpu *vgpu, ktime_t cur_time) in vgpu_update_timeslice() 179 struct intel_vgpu *vgpu = NULL; in find_busy_vgpu() local 216 struct intel_vgpu *vgpu = NULL; in tbs_sched_func() local 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() 406 int intel_vgpu_init_sched_policy(struct intel_vgpu *vgpu) in intel_vgpu_init_sched_policy() [all …]
|
H A D | edid.c | 52 static unsigned char edid_get_byte(struct intel_vgpu *vgpu) in edid_get_byte() 129 static void reset_gmbus_controller(struct intel_vgpu *vgpu) in reset_gmbus_controller() 138 static int gmbus0_mmio_write(struct intel_vgpu *vgpu, in gmbus0_mmio_write() 178 static int gmbus1_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus1_mmio_write() 279 static int gmbus3_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus3_mmio_write() 288 static int gmbus3_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, in gmbus3_mmio_read() 341 static int gmbus2_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, in gmbus2_mmio_read() 352 static int gmbus2_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, in gmbus2_mmio_write() 376 int intel_gvt_i2c_handle_gmbus_read(struct intel_vgpu *vgpu, in intel_gvt_i2c_handle_gmbus_read() 406 int intel_gvt_i2c_handle_gmbus_write(struct intel_vgpu *vgpu, in intel_gvt_i2c_handle_gmbus_write() [all …]
|
H A D | page_track.c | 35 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()
|
H A D | scheduler.c | 129 struct intel_vgpu *vgpu = workload->vgpu; in populate_shadow_context() local 267 static void save_ring_hw_state(struct intel_vgpu *vgpu, in save_ring_hw_state() 363 struct intel_vgpu *vgpu = workload->vgpu; in copy_workload_to_ring_buffer() local 461 struct intel_vgpu *vgpu = workload->vgpu; in intel_gvt_workload_req_alloc() local 488 struct intel_vgpu *vgpu = workload->vgpu; in intel_gvt_scan_and_shadow_workload() local 686 struct intel_vgpu *vgpu = workload->vgpu; in intel_vgpu_shadow_mm_pin() local 739 struct intel_vgpu *vgpu = workload->vgpu; in prepare_workload() local 801 struct intel_vgpu *vgpu = workload->vgpu; in dispatch_workload() local 906 static void update_guest_pdps(struct intel_vgpu *vgpu, in update_guest_pdps() 939 struct intel_vgpu *vgpu = workload->vgpu; in update_guest_context() local [all …]
|
H A D | dmabuf.c | 49 struct intel_vgpu *vgpu; in vgpu_gem_get_pages() local 120 struct intel_vgpu *vgpu = obj->vgpu; in vgpu_gem_put_pages() local 136 struct intel_vgpu *vgpu = obj->vgpu; in dmabuf_gem_object_free() local 176 struct intel_vgpu *vgpu = obj->vgpu; in vgpu_gem_release() local 255 struct intel_vgpu *vgpu, in vgpu_get_plane_info() 341 pick_dmabuf_by_info(struct intel_vgpu *vgpu, in pick_dmabuf_by_info() 371 pick_dmabuf_by_num(struct intel_vgpu *vgpu, u32 id) in pick_dmabuf_by_num() 403 int intel_vgpu_query_plane(struct intel_vgpu *vgpu, void *args) in intel_vgpu_query_plane() 501 int intel_vgpu_get_dmabuf(struct intel_vgpu *vgpu, unsigned int dmabuf_id) in intel_vgpu_get_dmabuf() 572 void intel_vgpu_dmabuf_cleanup(struct intel_vgpu *vgpu) in intel_vgpu_dmabuf_cleanup()
|
H A D | debugfs.c | 29 struct intel_vgpu *vgpu; member 86 struct intel_vgpu *vgpu = s->private; in vgpu_mmio_diff_show() local 129 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_get() local 144 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_set() local 156 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_status_get() local 174 void intel_gvt_debugfs_add_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_add_vgpu() 193 void intel_gvt_debugfs_remove_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_remove_vgpu()
|
H A D | gvt.h | 112 #define vgpu_cfg_space(vgpu) ((vgpu)->cfg_space.virtual_cfg_space) argument 125 #define vgpu_opregion(vgpu) (&(vgpu->opregion)) argument 422 #define vgpu_aperture_offset(vgpu) ((vgpu)->gm.low_gm_node.start) argument 423 #define vgpu_hidden_offset(vgpu) ((vgpu)->gm.high_gm_node.start) argument 424 #define vgpu_aperture_sz(vgpu) ((vgpu)->gm.aperture_sz) argument 425 #define vgpu_hidden_sz(vgpu) ((vgpu)->gm.hidden_sz) argument 427 #define vgpu_aperture_pa_base(vgpu) \ argument 430 #define vgpu_ggtt_gm_sz(vgpu) ((vgpu)->gm.aperture_sz + (vgpu)->gm.hidden_sz) argument 432 #define vgpu_aperture_pa_end(vgpu) \ argument 435 #define vgpu_aperture_gmadr_base(vgpu) (vgpu_aperture_offset(vgpu)) argument [all …]
|
H A D | interrupt.c | 194 int intel_vgpu_reg_imr_handler(struct intel_vgpu *vgpu, in intel_vgpu_reg_imr_handler() 224 int intel_vgpu_reg_master_irq_handler(struct intel_vgpu *vgpu, in intel_vgpu_reg_master_irq_handler() 263 int intel_vgpu_reg_ier_handler(struct intel_vgpu *vgpu, in intel_vgpu_reg_ier_handler() 302 int intel_vgpu_reg_iir_handler(struct intel_vgpu *vgpu, unsigned int reg, in intel_vgpu_reg_iir_handler() 340 static void update_upstream_irq(struct intel_vgpu *vgpu, in update_upstream_irq() 424 static void inject_virtual_interrupt(struct intel_vgpu *vgpu) in inject_virtual_interrupt() 459 enum intel_gvt_event_type event, struct intel_vgpu *vgpu) in propagate_event() 482 enum intel_gvt_event_type event, struct intel_vgpu *vgpu) in handle_default_event_virt() 522 static void gen8_check_pending_irq(struct intel_vgpu *vgpu) in gen8_check_pending_irq() 676 void intel_vgpu_trigger_virtual_event(struct intel_vgpu *vgpu, in intel_vgpu_trigger_virtual_event()
|
H A D | fb_decoder.c | 153 static u32 intel_vgpu_get_stride(struct intel_vgpu *vgpu, int pipe, in intel_vgpu_get_stride() 189 static int get_active_pipe(struct intel_vgpu *vgpu) in get_active_pipe() 209 int intel_vgpu_decode_primary_plane(struct intel_vgpu *vgpu, in intel_vgpu_decode_primary_plane() 339 int intel_vgpu_decode_cursor_plane(struct intel_vgpu *vgpu, in intel_vgpu_decode_cursor_plane() 418 int intel_vgpu_decode_sprite_plane(struct intel_vgpu *vgpu, in intel_vgpu_decode_sprite_plane()
|
H A D | mmio_context.c | 209 restore_context_mmio_for_inhibit(struct intel_vgpu *vgpu, in restore_context_mmio_for_inhibit() 253 restore_render_mocs_control_for_inhibit(struct intel_vgpu *vgpu, in restore_render_mocs_control_for_inhibit() 280 restore_render_mocs_l3cc_for_inhibit(struct intel_vgpu *vgpu, in restore_render_mocs_l3cc_for_inhibit() 311 int intel_vgpu_restore_inhibit_context(struct intel_vgpu *vgpu, in intel_vgpu_restore_inhibit_context() 361 static void handle_tlb_pending_event(struct intel_vgpu *vgpu, in handle_tlb_pending_event()
|
H A D | cmd_parser.c | 480 struct intel_vgpu *vgpu; member 862 struct intel_vgpu *vgpu = s->vgpu; in cmd_pdp_mmio_update_handler() local 896 struct intel_vgpu *vgpu = s->vgpu; in cmd_reg_handler() local 1336 struct intel_vgpu *vgpu = s->vgpu; in skl_decode_mi_display_flip() local 1423 struct intel_vgpu *vgpu = s->vgpu; in gen8_update_plane_mmio_from_mi_display_flip() local 1477 struct intel_vgpu *vgpu = s->vgpu; in cmd_handler_mi_display_flip() local 1539 struct intel_vgpu *vgpu = s->vgpu; in get_gma_bb_from_cmd() local 1560 struct intel_vgpu *vgpu = s->vgpu; in cmd_address_audit() local 1638 struct intel_vgpu *vgpu = s->vgpu; in unexpected_cmd() local 1763 static int copy_gma_to_hva(struct intel_vgpu *vgpu, struct intel_vgpu_mm *mm, in copy_gma_to_hva() [all …]
|
H A D | display.h | 47 #define intel_vgpu_port(vgpu, port) \ argument 50 #define intel_vgpu_has_monitor_on_port(vgpu, port) \ argument 54 #define intel_vgpu_port_is_dp(vgpu, port) \ argument
|
H A D | opregion.c | 220 int intel_vgpu_init_opregion(struct intel_vgpu *vgpu) in intel_vgpu_init_opregion() 267 int intel_vgpu_opregion_base_write_handler(struct intel_vgpu *vgpu, u32 gpa) in intel_vgpu_opregion_base_write_handler() 284 void intel_vgpu_clean_opregion(struct intel_vgpu *vgpu) in intel_vgpu_clean_opregion() 413 int intel_vgpu_emulate_opregion_request(struct intel_vgpu *vgpu, u32 swsci) in intel_vgpu_emulate_opregion_request()
|
H A D | scheduler.h | 86 struct intel_vgpu *vgpu; member 134 #define workload_q_head(vgpu, e) \ argument
|
H A D | dmabuf.h | 55 struct intel_vgpu *vgpu; member
|
H A D | gtt.h | 151 struct intel_vgpu *vgpu; member 243 struct intel_vgpu *vgpu; member
|
H A D | execlist.h | 173 struct intel_vgpu *vgpu; member
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_drv.h | 207 struct i915_virtual_gpu vgpu; member
|