]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: make TT creation purely optional v3
authorChristian König <christian.koenig@amd.com>
Wed, 24 Jun 2020 13:15:20 +0000 (15:15 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 29 Jun 2020 15:54:13 +0000 (17:54 +0200)
commitb22f1a7e185b01e73f3c23c79af835d8a3898ee4
tree4b097fe90e0a0773ec01a06f67e2c75f539bd683
parent7e2d5c1c3b89eef6e72f49995d7e82a852a15827
drm/ttm: make TT creation purely optional v3

We only need the page array when the BO is about to be accessed.

So not only populate, but also create it on demand.

v2: move NULL check into ttm_tt_create()
v3: fix the occurrence in ttm_bo_kmap_ttm as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://patchwork.freedesktop.org/patch/373182/
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
drivers/gpu/drm/ttm/ttm_tt.c