linux_dsm_epyc7002/drivers/gpu/drm/i915/gvt
Michel Thierry 8466169ab9 drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs regs array
The mocs reg array is defined locally but then we iterate over its
elements using I915_NUM_ENGINES. There is no 'hard' connection between
I915_NUM_ENGINES and the regs array and there will be problems if either
of them increases.

Use the size of the mocs reg array instead to safely iterate over it.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Weinan Li <weinan.z.li@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-02-01 07:31:07 -08:00
..
aperture_gm.c drm/i915: Add interface to reserve fence registers for vGPU 2017-09-04 16:34:59 +01:00
cfg_space.c drm/i915/gvt: Emulate PCI expansion ROM base address register 2017-12-06 11:24:37 +08:00
cmd_parser.c Linux 4.15-rc8 2018-01-18 09:32:15 +10:00
cmd_parser.h drm/i915/gvt: Factor out scan and shadow from workload dispatch 2017-08-10 10:26:06 +08:00
debug.h drm/i915/gvt: Make gvt_vgpu_err use pr_err 2017-11-16 11:48:34 +08:00
debugfs.c drm/i915/gvt: Add new debugfs tool mmio_diff 2017-11-16 11:48:32 +08:00
display.c drm/i915/gvt: cleanup usage for typed mmio reg vs. offset 2017-12-22 16:33:03 +08:00
display.h drm/i915/gvt: Add framebuffer decoder support 2017-12-04 11:24:33 +08:00
dmabuf.c drm/i915/gvt: Refine dmabuf_obj cleanup process 2017-12-08 16:20:12 +08:00
dmabuf.h drm/i915/gvt: Dmabuf support for GVT-g 2017-12-04 11:24:33 +08:00
edid.c drm/i915/gvt: cleanup usage for typed mmio reg vs. offset 2017-12-22 16:33:03 +08:00
edid.h drm/i915/gvt: Fix static checker warning on intel_gvt_i2c_handle_aux_ch_write() 2016-11-14 18:06:44 +08:00
execlist.c drm/i915/gvt: Convert macro queue_workload to a function 2017-12-04 11:24:34 +08:00
execlist.h drm/i915/gvt: Make elsp_dwords in the right order 2017-11-16 11:46:07 +08:00
fb_decoder.c drm/i915/gvt: cleanup usage for typed mmio reg vs. offset 2017-12-22 16:33:03 +08:00
fb_decoder.h drm/i915/gvt: Add framebuffer decoder support 2017-12-04 11:24:33 +08:00
firmware.c drm/i915/gvt: Add mmio iterator intel_gvt_for_each_tracked_mmio() 2017-11-16 11:48:32 +08:00
gtt.c drm/i915/gvt: validate gfn before set shadow page entry 2018-02-01 07:30:45 -08:00
gtt.h drm/i915/gvt: move write protect handler out of mmio emulation function 2017-12-22 16:33:50 +08:00
gvt.c drm/i915/gvt: move write protect handler out of mmio emulation function 2017-12-22 16:33:50 +08:00
gvt.h drm/i915/gvt: move write protect handler out of mmio emulation function 2017-12-22 16:33:50 +08:00
handlers.c drm/i915/gvt: add PLANE_KEYMAX regs to mmio track list 2018-02-01 07:30:31 -08:00
hypercall.h drm/i915/gvt: validate gfn before set shadow page entry 2018-02-01 07:30:45 -08:00
interrupt.c drm/i915/gvt: Change flood gvt dmesg into trace 2017-06-08 13:59:16 +08:00
interrupt.h drm/i915/gvt: vGPU command scanner 2016-10-14 18:15:25 +08:00
kvmgt.c drm/i915/gvt: validate gfn before set shadow page entry 2018-02-01 07:30:45 -08:00
Makefile Merge tag 'gvt-next-2017-12-14' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2017-12-14 10:57:41 -08:00
mmio_context.c drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs regs array 2018-02-01 07:31:07 -08:00
mmio_context.h drm/i915/gvt: Rename file render.{c, h} to mmio_context.{c, h} 2017-12-08 16:18:32 +08:00
mmio.c drm/i915/gvt: move write protect handler out of mmio emulation function 2017-12-22 16:33:50 +08:00
mmio.h drm/i915/gvt: cleanup usage for typed mmio reg vs. offset 2017-12-22 16:33:03 +08:00
mpt.h drm/i915/gvt: validate gfn before set shadow page entry 2018-02-01 07:30:45 -08:00
opregion.c drm/i915/gvt: Add opregion support 2017-12-04 11:24:32 +08:00
reg.h drm/i915/gvt: Use I915_GTT_PAGE_SIZE 2017-11-16 11:48:22 +08:00
sched_policy.c drm/i915/gvt: Kick scheduler when new workload queued 2017-12-04 11:24:35 +08:00
sched_policy.h drm/i915/gvt: Kick scheduler when new workload queued 2017-12-04 11:24:35 +08:00
scheduler.c Merge airlied/drm-next into drm-intel-next-queued 2017-12-08 10:15:30 -08:00
scheduler.h drm/i915/gvt: Convert macro queue_workload to a function 2017-12-04 11:24:34 +08:00
trace_points.c drm/i915/gvt: trace stub 2016-10-14 18:12:11 +08:00
trace.h drm/i915/gvt: refine trace_render_mmio 2017-12-18 16:30:03 +08:00
vgpu.c drm/i915/gvt: cleanup usage for typed mmio reg vs. offset 2017-12-22 16:33:03 +08:00