diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-01-11 19:21:18 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-01-16 11:22:40 +0200 |
commit | 2619861c470d47241864992f7d9c34a93546b01f (patch) | |
tree | 4cd14c08c9ef942bc3b014b965ea00a1e52720db | |
parent | 9eb4826f2856870a72432e896aab7d920cb410e1 (diff) | |
download | linux-2619861c470d47241864992f7d9c34a93546b01f.tar.gz linux-2619861c470d47241864992f7d9c34a93546b01f.tar.bz2 linux-2619861c470d47241864992f7d9c34a93546b01f.zip |
drm/i915/gvt: use local INTEL_GVT_OPREGION_SIZE
All of gvt uses INTEL_GVT_OPREGION_SIZE for opregion size. Follow suit
here.
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8ae6e10fc0929934a14547a973312e82a4d7f7d1.1704992868.git.jani.nikula@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/gvt/kvmgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index faf21be724c3..4f74d867fe1a 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -574,7 +574,7 @@ int intel_gvt_set_opregion(struct intel_vgpu *vgpu) ret = intel_vgpu_register_reg(vgpu, PCI_VENDOR_ID_INTEL | VFIO_REGION_TYPE_PCI_VENDOR_TYPE, VFIO_REGION_SUBTYPE_INTEL_IGD_OPREGION, - &intel_vgpu_regops_opregion, OPREGION_SIZE, + &intel_vgpu_regops_opregion, INTEL_GVT_OPREGION_SIZE, VFIO_REGION_INFO_FLAG_READ, base); return ret; |