summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/gvt.h
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@intel.com>2017-06-06 15:56:13 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-06-08 13:59:20 +0800
commitfbfd76c3746a322a9f33f77b66f85d4f68cabe4a (patch)
tree8d23172e719cf060e9d5c78c1f7a848d3ce03f35 /drivers/gpu/drm/i915/gvt/gvt.h
parent5c6d4c676d0ccba2dcd97e47e1f10321da423e7d (diff)
downloadop-kernel-dev-fbfd76c3746a322a9f33f77b66f85d4f68cabe4a.zip
op-kernel-dev-fbfd76c3746a322a9f33f77b66f85d4f68cabe4a.tar.gz
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.h1
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 b9a277c..ffb9ebb 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 {
OpenPOWER on IntegriCloud