Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-26 Thread Alexandre Courbot
On Fri, Nov 27, 2020 at 7:42 AM Stanimir Varbanov wrote: > > > > On 11/26/20 8:28 AM, Alexandre Courbot wrote: > > On Wed, Nov 25, 2020 at 10:01 PM Stanimir Varbanov > > wrote: > >> > >> > >> > >> On 11/25/20 5:46 AM, Alexandre Courbot wrote: > >>> On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbano

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-26 Thread Stanimir Varbanov
On 11/26/20 8:28 AM, Alexandre Courbot wrote: > On Wed, Nov 25, 2020 at 10:01 PM Stanimir Varbanov > wrote: >> >> >> >> On 11/25/20 5:46 AM, Alexandre Courbot wrote: >>> On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov >>> wrote: Currently we rely on firmware to return error when we

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-25 Thread Alexandre Courbot
On Wed, Nov 25, 2020 at 10:01 PM Stanimir Varbanov wrote: > > > > On 11/25/20 5:46 AM, Alexandre Courbot wrote: > > On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov > > wrote: > >> > >> Currently we rely on firmware to return error when we reach the maximum > >> supported number of sessions. But

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-25 Thread Stanimir Varbanov
On 11/25/20 5:46 AM, Alexandre Courbot wrote: > On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov > wrote: >> >> Currently we rely on firmware to return error when we reach the maximum >> supported number of sessions. But this errors are happened at reqbuf >> time which is a bit later. The more

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-24 Thread Alexandre Courbot
On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov wrote: > > Currently we rely on firmware to return error when we reach the maximum > supported number of sessions. But this errors are happened at reqbuf > time which is a bit later. The more reasonable way looks like is to > return the error on dr

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-22 Thread Fritz Koenig
On Sun, Nov 22, 2020 at 6:48 AM Stanimir Varbanov wrote: > > > > On 11/21/20 3:14 AM, Fritz Koenig wrote: > > On Thu, Nov 19, 2020 at 4:12 PM Stanimir Varbanov > > wrote: > >> > >> Currently we rely on firmware to return error when we reach the maximum > >> supported number of sessions. But this

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-22 Thread Stanimir Varbanov
On 11/21/20 3:14 AM, Fritz Koenig wrote: > On Thu, Nov 19, 2020 at 4:12 PM Stanimir Varbanov > wrote: >> >> Currently we rely on firmware to return error when we reach the maximum >> supported number of sessions. But this errors are happened at reqbuf >> time which is a bit later. The more reas

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-20 Thread Fritz Koenig
On Thu, Nov 19, 2020 at 4:12 PM Stanimir Varbanov wrote: > > Currently we rely on firmware to return error when we reach the maximum > supported number of sessions. But this errors are happened at reqbuf > time which is a bit later. The more reasonable way looks like is to > return the error on dr

[PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-19 Thread Stanimir Varbanov
Currently we rely on firmware to return error when we reach the maximum supported number of sessions. But this errors are happened at reqbuf time which is a bit later. The more reasonable way looks like is to return the error on driver open. To achieve that modify hfi_session_create to return erro