drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 27 Nov 2017 23:29:54 +0000 (07:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:26:38 +0000 (11:26 +0100)
commit6c0d3d1d5908f5cd5c838c99663238cac201953b
treeb3a96443a13e318b8489e53364547b65d1359894
parent7042c2b9a19e74972f5783ab3b7ef98ebdee293f
drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition

commit b721b65af4eb46df6a1d9e34b14003225e403565 upstream.

For ADDR_4K_MASK, bit[45..12] should be 1, all other bits
should be 0. The current definition wrongly set bit[46] as 1
also. This path fixes this.

v2: Add commit message, fixes and cc stable.(Zhenyu)

Fixes: 2707e4446688("drm/i915/gvt: vGPU graphics memory virtualization")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gvt/gtt.c