Re: [PATCH 3/5] drm/ttm: drop bo->num_pages.

2020-10-20 Thread Christian König
Am 20.10.20 um 00:22 schrieb Dave Airlie: From: Dave Airlie This is stored in the mem field, everywhere that a new mem is created, the bo->mem is either copied or this field is copied explicitly. In generally yes, but I would like to have a bo->size field instead. See we have a bunch of

Re: [PATCH 3/5] drm/ttm: drop bo->num_pages.

2020-10-19 Thread Dave Airlie
On Tue, 20 Oct 2020 at 08:23, Dave Airlie wrote: > > From: Dave Airlie > > This is stored in the mem field, everywhere that a new mem is > created, the bo->mem is either copied or this field is copied > explicitly. This has a problem with the pipeline gutting path, since it memset (bo->mem to

[PATCH 3/5] drm/ttm: drop bo->num_pages.

2020-10-19 Thread Dave Airlie
From: Dave Airlie This is stored in the mem field, everywhere that a new mem is created, the bo->mem is either copied or this field is copied explicitly. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +-