Skip to content

Commit

Permalink
drm/i915/gvt: Tuning the size of MMIO hash lookup table to 2048
Browse files Browse the repository at this point in the history
On Skylake platform, The traced virtual mmio registers are up to 2039.
So tuning the hash table size to improve lookup performance.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
  • Loading branch information
Changbin Du authored and Zhenyu Wang committed Jun 8, 2017
1 parent fbfd76c commit 178cd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gvt/gvt.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct intel_gvt_fence {
unsigned long vgpu_allocated_fence_num;
};

#define INTEL_GVT_MMIO_HASH_BITS 9
#define INTEL_GVT_MMIO_HASH_BITS 11

struct intel_gvt_mmio {
u8 *mmio_attribute;
Expand Down

0 comments on commit 178cd16

Please sign in to comment.