]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 28 Nov 2017 09:24:30 +0000 (17:24 +0800)
commit839322ceb6568bdc15587498bfe60894dc688801
tree33da86c6907903ad60744426ec7e66a94c143b87
parent9f67ab6fde711ccf59e3074b10e7bfe8d6a10d39
drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition

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: 417e47df0f06("drm/i915/gvt: vGPU graphics memory virtualization")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c