From: jsg Date: Tue, 19 Sep 2023 12:36:35 +0000 (+0000) Subject: drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2cfd81d89e2cefe7fe155c0eb62a2aa387a81315;p=openbsd drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt() From Sean Christopherson bd9bd085c6816885dedcd690de22d088975e6df2 in linux-6.1.y/6.1.54 a90c367e5af63880008e21dd199dac839e0e9e0f in mainline linux --- diff --git a/sys/dev/pci/drm/i915/gvt/gtt.c b/sys/dev/pci/drm/i915/gvt/gtt.c index 0bc3fe7fca8..536417f203d 100644 --- a/sys/dev/pci/drm/i915/gvt/gtt.c +++ b/sys/dev/pci/drm/i915/gvt/gtt.c @@ -2887,24 +2887,6 @@ void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old) ggtt_invalidate(gvt->gt); } -/** - * intel_vgpu_reset_gtt - reset the all GTT related status - * @vgpu: a vGPU - * - * This function is called from vfio core to reset reset all - * GTT related status, including GGTT, PPGTT, scratch page. - * - */ -void intel_vgpu_reset_gtt(struct intel_vgpu *vgpu) -{ - /* Shadow pages are only created when there is no page - * table tracking data, so remove page tracking data after - * removing the shadow pages. - */ - intel_vgpu_destroy_all_ppgtt_mm(vgpu); - intel_vgpu_reset_ggtt(vgpu, true); -} - /** * intel_gvt_restore_ggtt - restore all vGPU's ggtt entries * @gvt: intel gvt device diff --git a/sys/dev/pci/drm/i915/gvt/gtt.h b/sys/dev/pci/drm/i915/gvt/gtt.h index 6dc4b00aa5b..2b9b0f6cdcd 100644 --- a/sys/dev/pci/drm/i915/gvt/gtt.h +++ b/sys/dev/pci/drm/i915/gvt/gtt.h @@ -224,7 +224,6 @@ void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old); void intel_vgpu_invalidate_ppgtt(struct intel_vgpu *vgpu); int intel_gvt_init_gtt(struct intel_gvt *gvt); -void intel_vgpu_reset_gtt(struct intel_vgpu *vgpu); void intel_gvt_clean_gtt(struct intel_gvt *gvt); struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,