Skip to content

Commit 83faaf0

Browse files
TinaZhangZWzhenyw
authored andcommitted
drm/i915/gvt: Stop initializing pvinfo through reading mmio
The region of pvinfo is reserved for communication between a VMM and the GPU driver executing on a virtual machine. HW doesn't have any backing mmio store support for the pvinfo region, thus accessing to this range through MMIO read/write from host side is forbidden which is regarded as unclaimed register access. This patch leaves pvinfo range be initialized with zero. Signed-off-by: Tina Zhang <[email protected]> Reviewed-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
1 parent d9dace9 commit 83faaf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/gvt/handlers.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,6 +3420,10 @@ int intel_gvt_for_each_tracked_mmio(struct intel_gvt *gvt,
34203420
}
34213421

34223422
for (i = 0; i < gvt->mmio.num_mmio_block; i++, block++) {
3423+
/* pvinfo data doesn't come from hw mmio */
3424+
if (i915_mmio_reg_offset(block->offset) == VGT_PVINFO_PAGE)
3425+
continue;
3426+
34233427
for (j = 0; j < block->size; j += 4) {
34243428
ret = handler(gvt,
34253429
i915_mmio_reg_offset(block->offset) + j,

0 commit comments

Comments
 (0)