[PATCH] drm/i915/gvt: Reduce rcs mocs switch latency
Du, Changbin
changbin.du at intel.com
Tue Oct 31 01:57:28 UTC 2017
On Sun, Oct 29, 2017 at 11:32:04PM -0700, Wang, Zhi A wrote:
> LGTM.
>
> BTW: You can also remove forcewake get/put in handle_tlb_pending_event(). It's not in the hot path but it looks ugly...
>
yes, they need clean up now.
> Thanks,
> Zhi.
>
> -----Original Message-----
> From: intel-gvt-dev [mailto:intel-gvt-dev-bounces at lists.freedesktop.org] On Behalf Of changbin.du at intel.com
> Sent: Monday, October 30, 2017 8:19 AM
> To: intel-gvt-dev at lists.freedesktop.org
> Cc: Du, Changbin <changbin.du at intel.com>
> Subject: [PATCH] drm/i915/gvt: Reduce rcs mocs switch latency
>
> From: Changbin Du <changbin.du at intel.com>
>
> Use I915_WRITE_FW instead of I915_WRITE to reduce overhead.
> The overall mmio switch latency lowers from ~600us to ~180us.
>
> Signed-off-by: Changbin Du <changbin.du at intel.com>
> ---
> drivers/gpu/drm/i915/gvt/render.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/render.c b/drivers/gpu/drm/i915/gvt/render.c
> index e16c355..0672178 100644
> --- a/drivers/gpu/drm/i915/gvt/render.c
> +++ b/drivers/gpu/drm/i915/gvt/render.c
> @@ -209,7 +209,7 @@ static void load_mocs(struct intel_vgpu *vgpu, int ring_id)
> offset.reg = regs[ring_id];
> for (i = 0; i < 64; i++) {
> gen9_render_mocs[ring_id][i] = I915_READ_FW(offset);
> - I915_WRITE(offset, vgpu_vreg(vgpu, offset));
> + I915_WRITE_FW(offset, vgpu_vreg(vgpu, offset));
> offset.reg += 4;
> }
>
> --
> 2.7.4
>
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev
--
Thanks,
Changbin Du
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171031/9a7b635b/attachment.sig>
More information about the intel-gvt-dev
mailing list