[PATCH 2/2] drm/ttm: make TT creation purely optional v3

2020-06-29 Thread Christian König
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 Reviewed-by: Michael J. Ruhl --- drivers/gpu/drm/ttm/t

RE: [PATCH 2/2] drm/ttm: make TT creation purely optional v2

2020-06-29 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Monday, June 29, 2020 8:22 AM >To: dri-devel@lists.freedesktop.org >Subject: [PATCH 2/2] drm/ttm: make TT creation purely optional v2 > >We only need the page array when the BO is about t

[PATCH 2/2] drm/ttm: make TT creation purely optional v2

2020-06-29 Thread Christian König
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() Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 37 --- drivers/gpu/drm/ttm/ttm_bo_ut

RE: [PATCH 2/2] drm/ttm: make TT creation purely optional

2020-06-26 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Christian König >Sent: Wednesday, June 24, 2020 9:36 AM >To: dri-devel@lists.freedesktop.org >Subject: [PATCH 2/2] drm/ttm: make TT creation purely optional > >We only need the page array when the BO is about t

[PATCH 2/2] drm/ttm: make TT creation purely optional

2020-06-24 Thread Christian König
We only need the page array when the BO is about to be accessed. So not only populate, but also create it on demand. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 26 -- drivers/gpu/drm/ttm/ttm_bo_util.c | 9 +++-- drivers/gpu/drm/ttm/ttm_bo