diff options
author | Changbin Du <changbin.du@intel.com> | 2017-06-06 10:56:13 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-06-08 08:59:20 +0300 |
commit | fbfd76c3746a322a9f33f77b66f85d4f68cabe4a (patch) | |
tree | 8d23172e719cf060e9d5c78c1f7a848d3ce03f35 /drivers/gpu/drm/i915/gvt/gvt.h | |
parent | 5c6d4c676d0ccba2dcd97e47e1f10321da423e7d (diff) | |
download | linux-fbfd76c3746a322a9f33f77b66f85d4f68cabe4a.tar.xz |
drm/i915/gvt: Add helper for tuning MMIO hash table
We count all the tracked virtual MMIO registers, which can help us to
tune the MMIO hash table.
v2: Move num_tracked_mmio into gvt structure.
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gvt.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gvt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index b9a277c726cb..ffb9ebbbcf5a 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -215,6 +215,7 @@ struct intel_gvt_mmio { #define F_UNALIGN (1 << 6) DECLARE_HASHTABLE(mmio_info_table, INTEL_GVT_MMIO_HASH_BITS); + unsigned int num_tracked_mmio; }; struct intel_gvt_firmware { |