OSDN Git Service

ttm: add prime sharing support to TTM (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 2 Apr 2012 10:46:06 +0000 (11:46 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 09:46:27 +0000 (10:46 +0100)
commit129b78bfca591e736e56a294f0e357d73d938f7e
treeb5754d4b12346b67077ac3b2239c04bda37bf6a0
parent96503f592fd729f296f5870a57be0417eeffc92a
ttm: add prime sharing support to TTM (v2)

This adds the ability for ttm common code to take an SG table
and use it as the backing for a slave TTM object.

The drivers can then populate their GTT tables using the SG object.

v2: make sure to setup VM for sg bos as well.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h