Re: [PATCH] gpu: host1x: Refactor/fix channel allocation code

2017-05-18 Thread Mikko Perttunen
On 18.05.2017 14:42, Dmitry Osipenko wrote: On 20.03.2017 21:44, Mikko Perttunen wrote: ... struct host1x_channel *host1x_channel_request(struct device *dev) { struct host1x *host = dev_get_drvdata(dev->parent); + struct host1x_channel_list *chlist = &host->channel_list;

Re: [PATCH] gpu: host1x: Refactor/fix channel allocation code

2017-05-18 Thread Dmitry Osipenko
On 18.05.2017 14:55, Mikko Perttunen wrote: > On 18.05.2017 14:42, Dmitry Osipenko wrote: >> On 20.03.2017 21:44, Mikko Perttunen wrote: >>> ... >>> struct host1x_channel *host1x_channel_request(struct device *dev) >>> { >>> struct host1x *host = dev_get_drvdata(dev->parent); >>> +struct

Re: [PATCH] gpu: host1x: Refactor/fix channel allocation code

2017-05-18 Thread Dmitry Osipenko
On 20.03.2017 21:44, Mikko Perttunen wrote: > This is largely a rewrite of the Host1x channel allocation > code in channel.c, bringing several changes: > > - The previous code could deadlock due to an interaction > between the 'reflock' mutex and CDMA timeout handling. > This gets rid of the m

[PATCH] gpu: host1x: Refactor/fix channel allocation code

2017-03-20 Thread Mikko Perttunen
This is largely a rewrite of the Host1x channel allocation code in channel.c, bringing several changes: - The previous code could deadlock due to an interaction between the 'reflock' mutex and CDMA timeout handling. This gets rid of the mutex. - In the future, per-user channel allocation will