User ptr horror show

2014-06-30 Thread David Herrmann
Hi On Mon, Jun 30, 2014 at 9:04 PM, Jerome Glisse wrote: > On Mon, Jun 30, 2014 at 08:47:31PM +0200, David Herrmann wrote: >> Additionally to what AIO and Direct-IO do, intel userptr adds the >> range_start callback to release pinned pages whenever the pages are >> unmapped. However, anyone who t

User ptr horror show

2014-06-30 Thread David Herrmann
Hi On Mon, Jun 30, 2014 at 8:21 PM, Jerome Glisse wrote: > So in light of the radeon patch to add user ptr, i took a look at > intel code and it is time to put an end to this non sense. It > violate so many mm assumptions that it just not a doable options. > > So Intel code only register a range_

User ptr horror show

2014-06-30 Thread Jerome Glisse
On Mon, Jun 30, 2014 at 09:25:10PM +0200, David Herrmann wrote: > Hi > > On Mon, Jun 30, 2014 at 9:04 PM, Jerome Glisse wrote: > > On Mon, Jun 30, 2014 at 08:47:31PM +0200, David Herrmann wrote: > >> Additionally to what AIO and Direct-IO do, intel userptr adds the > >> range_start callback to re

User ptr horror show

2014-06-30 Thread Jerome Glisse
On Mon, Jun 30, 2014 at 08:47:31PM +0200, David Herrmann wrote: > Hi > > On Mon, Jun 30, 2014 at 8:21 PM, Jerome Glisse wrote: > > So in light of the radeon patch to add user ptr, i took a look at > > intel code and it is time to put an end to this non sense. It > > violate so many mm assumptions

User ptr horror show

2014-06-30 Thread Jerome Glisse
So in light of the radeon patch to add user ptr, i took a look at intel code and it is time to put an end to this non sense. It violate so many mm assumptions that it just not a doable options. So Intel code only register a range_start callback that means that any gup or other i915 activities that