diff -ru linux-4.2.0/drivers/gpu/drm/nouveau/nouveau_gem.c linux-4.2.0-patched/drivers/gpu/drm/nouveau/nouveau_gem.c --- linux-4.2.0/drivers/gpu/drm/nouveau/nouveau_gem.c 2015-08-30 20:34:09.000000000 +0200 +++ linux-4.2.0-patched/drivers/gpu/drm/nouveau/nouveau_gem.c 2015-10-23 18:00:57.479495779 +0200 @@ -227,11 +227,12 @@ struct nouveau_bo *nvbo = nouveau_gem_object(gem); struct nvkm_vma *vma; - if (nvbo->bo.mem.mem_type == TTM_PL_TT) + if (is_power_of_2(nvbo->valid_domains)) + rep->domain = nvbo->valid_domains; + else if (nvbo->bo.mem.mem_type == TTM_PL_TT) rep->domain = NOUVEAU_GEM_DOMAIN_GART; else rep->domain = NOUVEAU_GEM_DOMAIN_VRAM; - rep->offset = nvbo->bo.offset; if (cli->vm) { vma = nouveau_bo_vma_find(nvbo, cli->vm);