Re: [PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-15 Thread Christian König
Am 15.05.19 um 10:45 schrieb Daniel Vetter: On Wed, May 15, 2019 at 10:38:28AM +0200, Daniel Vetter wrote: On Tue, May 14, 2019 at 02:31:18PM +0200, Christian König wrote: From: Chunming Zhou heavy gpu job could occupy memory long time, which lead other user fail to get memory. basically

Re: [PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-15 Thread Christian König
Am 15.05.19 um 11:27 schrieb Christian König: Am 15.05.19 um 10:45 schrieb Daniel Vetter: On Wed, May 15, 2019 at 10:38:28AM +0200, Daniel Vetter wrote: On Tue, May 14, 2019 at 02:31:18PM +0200, Christian König wrote: From: Chunming Zhou heavy gpu job could occupy memory long time, which

Re: [PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-15 Thread Christian König
Am 15.05.19 um 10:45 schrieb Daniel Vetter: On Wed, May 15, 2019 at 10:38:28AM +0200, Daniel Vetter wrote: On Tue, May 14, 2019 at 02:31:18PM +0200, Christian König wrote: From: Chunming Zhou heavy gpu job could occupy memory long time, which lead other user fail to get memory. basically

Re: [PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-15 Thread Daniel Vetter
On Wed, May 15, 2019 at 10:38:28AM +0200, Daniel Vetter wrote: > On Tue, May 14, 2019 at 02:31:18PM +0200, Christian König wrote: > > From: Chunming Zhou > > > > heavy gpu job could occupy memory long time, which lead other user fail to > > get memory. > > > > basically pick up Christian idea:

Re: [PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-15 Thread Daniel Vetter
On Tue, May 14, 2019 at 02:31:18PM +0200, Christian König wrote: > From: Chunming Zhou > > heavy gpu job could occupy memory long time, which lead other user fail to > get memory. > > basically pick up Christian idea: > > 1. Reserve the BO in DC using a ww_mutex ticket (trivial). > 2. If we

[PATCH 02/11] drm/ttm: fix busy memory to fail other user v8

2019-05-14 Thread Christian König
From: Chunming Zhou heavy gpu job could occupy memory long time, which lead other user fail to get memory. basically pick up Christian idea: 1. Reserve the BO in DC using a ww_mutex ticket (trivial). 2. If we then run into this EBUSY condition in TTM check if the BO we need memory for (or