Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-18 Thread Christian König
Am 10.11.20 um 18:11 schrieb Daniel Vetter: On Tue, Nov 10, 2020 at 4:48 PM Ville Syrjälä wrote: On Tue, Nov 10, 2020 at 03:24:32PM +1000, Dave Airlie wrote: On Tue, 10 Nov 2020 at 07:27, Ville Syrjälä wrote: On Mon, Nov 09, 2020 at 09:48:04PM +0100, Christian König wrote: Am 09.11.20 um

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-10 Thread Daniel Vetter
On Tue, Nov 10, 2020 at 4:48 PM Ville Syrjälä wrote: > > On Tue, Nov 10, 2020 at 03:24:32PM +1000, Dave Airlie wrote: > > On Tue, 10 Nov 2020 at 07:27, Ville Syrjälä > > wrote: > > > > > > On Mon, Nov 09, 2020 at 09:48:04PM +0100, Christian König wrote: > > > > Am 09.11.20 um 17:43 schrieb Ville

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-10 Thread Ville Syrjälä
On Tue, Nov 10, 2020 at 03:24:32PM +1000, Dave Airlie wrote: > On Tue, 10 Nov 2020 at 07:27, Ville Syrjälä > wrote: > > > > On Mon, Nov 09, 2020 at 09:48:04PM +0100, Christian König wrote: > > > Am 09.11.20 um 17:43 schrieb Ville Syrjälä: > > > > On Mon, Nov 09, 2020 at 05:20:17PM +0100,

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-10 Thread Daniel Vetter
On Mon, Nov 09, 2020 at 10:54:29AM +1000, Dave Airlie wrote: > From: Dave Airlie > > Currently drivers get called to move a buffer, but if they have to > move it temporarily through another space (SYSTEM->VRAM via TT) > then they can end up with a lot of ttm->driver->ttm call stacks, > if the

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Dave Airlie
On Tue, 10 Nov 2020 at 07:27, Ville Syrjälä wrote: > > On Mon, Nov 09, 2020 at 09:48:04PM +0100, Christian König wrote: > > Am 09.11.20 um 17:43 schrieb Ville Syrjälä: > > > On Mon, Nov 09, 2020 at 05:20:17PM +0100, Christian König wrote: > > >> Am 09.11.20 um 17:18 schrieb Ville Syrjälä: > > >>>

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Ville Syrjälä
On Mon, Nov 09, 2020 at 09:48:04PM +0100, Christian König wrote: > Am 09.11.20 um 17:43 schrieb Ville Syrjälä: > > On Mon, Nov 09, 2020 at 05:20:17PM +0100, Christian König wrote: > >> Am 09.11.20 um 17:18 schrieb Ville Syrjälä: > >>> On Mon, Nov 09, 2020 at 04:57:29PM +0100, Christian König

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Christian König
Am 09.11.20 um 17:43 schrieb Ville Syrjälä: On Mon, Nov 09, 2020 at 05:20:17PM +0100, Christian König wrote: Am 09.11.20 um 17:18 schrieb Ville Syrjälä: On Mon, Nov 09, 2020 at 04:57:29PM +0100, Christian König wrote: Am 09.11.20 um 16:16 schrieb Ville Syrjälä: On Wed, Nov 11, 2020 at

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Ville Syrjälä
On Mon, Nov 09, 2020 at 05:20:17PM +0100, Christian König wrote: > Am 09.11.20 um 17:18 schrieb Ville Syrjälä: > > On Mon, Nov 09, 2020 at 04:57:29PM +0100, Christian König wrote: > >> Am 09.11.20 um 16:16 schrieb Ville Syrjälä: > >>> On Wed, Nov 11, 2020 at 06:13:02PM +0100, Christian König

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Christian König
Am 09.11.20 um 17:18 schrieb Ville Syrjälä: On Mon, Nov 09, 2020 at 04:57:29PM +0100, Christian König wrote: Am 09.11.20 um 16:16 schrieb Ville Syrjälä: On Wed, Nov 11, 2020 at 06:13:02PM +0100, Christian König wrote: Am 09.11.20 um 01:54 schrieb Dave Airlie: @@ -1432,15 +1479,18 @@ int

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Ville Syrjälä
On Mon, Nov 09, 2020 at 04:57:29PM +0100, Christian König wrote: > Am 09.11.20 um 16:16 schrieb Ville Syrjälä: > > On Wed, Nov 11, 2020 at 06:13:02PM +0100, Christian König wrote: > >> Am 09.11.20 um 01:54 schrieb Dave Airlie: > >>> @@ -1432,15 +1479,18 @@ int ttm_bo_swapout(struct

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Christian König
Am 09.11.20 um 16:16 schrieb Ville Syrjälä: On Wed, Nov 11, 2020 at 06:13:02PM +0100, Christian König wrote: Am 09.11.20 um 01:54 schrieb Dave Airlie: @@ -1432,15 +1479,18 @@ int ttm_bo_swapout(struct ttm_operation_ctx *ctx) if (bo->mem.mem_type != TTM_PL_SYSTEM) {

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Ville Syrjälä
On Wed, Nov 11, 2020 at 06:13:02PM +0100, Christian König wrote: > Am 09.11.20 um 01:54 schrieb Dave Airlie: > > @@ -1432,15 +1479,18 @@ int ttm_bo_swapout(struct ttm_operation_ctx *ctx) > > if (bo->mem.mem_type != TTM_PL_SYSTEM) { > > struct ttm_operation_ctx ctx = { false, false

Re: [PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-09 Thread Christian König
Am 09.11.20 um 01:54 schrieb Dave Airlie: From: Dave Airlie Currently drivers get called to move a buffer, but if they have to move it temporarily through another space (SYSTEM->VRAM via TT) then they can end up with a lot of ttm->driver->ttm call stacks, if the temprorary space moves requires

[PATCH 1/4] drm/ttm: add multihop infrastrucutre (v2)

2020-11-08 Thread Dave Airlie
From: Dave Airlie Currently drivers get called to move a buffer, but if they have to move it temporarily through another space (SYSTEM->VRAM via TT) then they can end up with a lot of ttm->driver->ttm call stacks, if the temprorary space moves requires eviction. Instead of letting the driver do