]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: init the base GEM fields for internal BOs
authorChristian König <christian.koenig@amd.com>
Wed, 9 Jun 2021 17:25:56 +0000 (19:25 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Jul 2021 06:10:18 +0000 (08:10 +0200)
commit7e06760c6a332c2ea2499ec11f1ac7ae846d846b
tree2039ffecc2ad8461b5d12b24e3312f9ef0c4167d
parent0b44a92ec4858f17d9b31782a1307b7d2e59a85b
drm/nouveau: init the base GEM fields for internal BOs

TTMs buffer objects are based on GEM objects for quite a while
and rely on initializing those fields before initializing the TTM BO.

Nouveau now doesn't init the GEM object for internally allocated BOs,
so make sure that we at least initialize some necessary fields.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210609172902.1937-1-christian.koenig@amd.com
drivers/gpu/drm/nouveau/nouveau_bo.c