drm/i915: pass dev_priv explicitly to PIPE_FLIPCOUNT_G4X
Avoid the implicit dev_priv local variable use, and pass dev_priv explicitly to the PIPE_FLIPCOUNT_G4X register macro. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/c53a6f5cd97976f43fbae442034074d2ea9aac42.1717514638.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
8edbb0ee17
commit
2501a0b68e
@ -1437,7 +1437,7 @@ static int gen8_update_plane_mmio_from_mi_display_flip(
|
||||
}
|
||||
|
||||
if (info->plane == PLANE_PRIMARY)
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(info->pipe))++;
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(dev_priv, info->pipe))++;
|
||||
|
||||
if (info->async_flip)
|
||||
intel_vgpu_trigger_virtual_event(vgpu, info->event);
|
||||
|
@ -1020,7 +1020,7 @@ static int pri_surf_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
|
||||
write_vreg(vgpu, offset, p_data, bytes);
|
||||
vgpu_vreg_t(vgpu, DSPSURFLIVE(dev_priv, pipe)) = vgpu_vreg(vgpu, offset);
|
||||
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(pipe))++;
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(dev_priv, pipe))++;
|
||||
|
||||
if (vgpu_vreg_t(vgpu, DSPCNTR(dev_priv, pipe)) & PLANE_CTL_ASYNC_FLIP)
|
||||
intel_vgpu_trigger_virtual_event(vgpu, event);
|
||||
@ -1062,7 +1062,7 @@ static int reg50080_mmio_write(struct intel_vgpu *vgpu,
|
||||
write_vreg(vgpu, offset, p_data, bytes);
|
||||
if (plane == PLANE_PRIMARY) {
|
||||
vgpu_vreg_t(vgpu, DSPSURFLIVE(dev_priv, pipe)) = vgpu_vreg(vgpu, offset);
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(pipe))++;
|
||||
vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(dev_priv, pipe))++;
|
||||
} else {
|
||||
vgpu_vreg_t(vgpu, SPRSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset);
|
||||
}
|
||||
|
@ -2177,7 +2177,7 @@
|
||||
#define _PIPEA_FRMCOUNT_G4X 0x70040
|
||||
#define _PIPEA_FLIPCOUNT_G4X 0x70044
|
||||
#define PIPE_FRMCOUNT_G4X(dev_priv, pipe) _MMIO_PIPE2(dev_priv, pipe, _PIPEA_FRMCOUNT_G4X)
|
||||
#define PIPE_FLIPCOUNT_G4X(pipe) _MMIO_PIPE2(dev_priv, pipe, _PIPEA_FLIPCOUNT_G4X)
|
||||
#define PIPE_FLIPCOUNT_G4X(dev_priv, pipe) _MMIO_PIPE2(dev_priv, pipe, _PIPEA_FLIPCOUNT_G4X)
|
||||
|
||||
/* CHV pipe B blender */
|
||||
#define _CHV_BLEND_A 0x60a00
|
||||
|
@ -138,10 +138,10 @@ static int iterate_generic_mmio(struct intel_gvt_mmio_table_iter *iter)
|
||||
MMIO_D(PIPESTAT(dev_priv, PIPE_B));
|
||||
MMIO_D(PIPESTAT(dev_priv, PIPE_C));
|
||||
MMIO_D(PIPESTAT(dev_priv, _PIPE_EDP));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(PIPE_A));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(PIPE_B));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(PIPE_C));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(_PIPE_EDP));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(dev_priv, PIPE_A));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(dev_priv, PIPE_B));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(dev_priv, PIPE_C));
|
||||
MMIO_D(PIPE_FLIPCOUNT_G4X(dev_priv, _PIPE_EDP));
|
||||
MMIO_D(PIPE_FRMCOUNT_G4X(dev_priv, PIPE_A));
|
||||
MMIO_D(PIPE_FRMCOUNT_G4X(dev_priv, PIPE_B));
|
||||
MMIO_D(PIPE_FRMCOUNT_G4X(dev_priv, PIPE_C));
|
||||
|
Loading…
Reference in New Issue
Block a user