]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix the driver for large dma addresses
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2014 19:19:53 +0000 (20:19 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 17 Jan 2014 06:44:15 +0000 (07:44 +0100)
commit421929d65b0bb3e1f2cbc0f3cf411901055f04ba
tree409c7f6324db1d11ce4583588689f33b5524b168
parent3683a2f6b46473ae3ab3bf6dfec1f836d38bba7e
drm/vmwgfx: Fix the driver for large dma addresses

With dma compliance / IOMMU support added to the driver in kernel 3.13,
the dma addresses can exceed 44 bits, which is what we support in
32-bit mode and with GMR1.
So in 32-bit mode and optionally in 64-bit mode, restrict the dma
addresses to 44 bits, and strip the old GMR1 code.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c