Re: [PATCH] [RFC/HACK] drm/ttm: avoid multihop moves in drivers.

2020-10-20 Thread Dave Airlie
On Tue, 20 Oct 2020 at 18:31, Christian König wrote: > > Yes, please! That approach looks even better than what I had in mind. > > A few comments below: > > Am 20.10.20 um 06:16 schrieb Dave Airlie: > > From: Dave Airlie > > > > [SNIP] > > + /* don't go from system->vram in one hop, > > +

Re: [PATCH] [RFC/HACK] drm/ttm: avoid multihop moves in drivers.

2020-10-20 Thread Christian König
Yes, please! That approach looks even better than what I had in mind. A few comments below: Am 20.10.20 um 06:16 schrieb Dave Airlie: From: Dave Airlie [SNIP] + /* don't go from system->vram in one hop, + report this back to the caller tell it + where to bounce this

[PATCH] [RFC/HACK] drm/ttm: avoid multihop moves in drivers.

2020-10-19 Thread Dave Airlie
From: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 128 +++- drivers/gpu/drm/nouveau/nouveau_bo.c| 106 ++-- drivers/gpu/drm/radeon/radeon_ttm.c | 110 ++-- drivers/gpu/drm/ttm/ttm_bo.c| 44 +++- 4 files