Re: [PATCH v2 3/3] drm/panthor: Enable fdinfo for memory stats

2024-05-16 Thread Adrián Larumbe
On 24.04.2024 18:34, Liviu Dudau wrote: > Hello, > > On Tue, Apr 23, 2024 at 10:32:36PM +0100, Adrián Larumbe wrote: > > When vm-binding an already-created BO, the entirety of its virtual size is > > then backed by system memory, so its RSS is always the same as its virtual > > size. > > How is t

Re: [PATCH v2 3/3] drm/panthor: Enable fdinfo for memory stats

2024-04-24 Thread Liviu Dudau
Hello, On Tue, Apr 23, 2024 at 10:32:36PM +0100, Adrián Larumbe wrote: > When vm-binding an already-created BO, the entirety of its virtual size is > then backed by system memory, so its RSS is always the same as its virtual > size. How is that relevant to this patch? Or to put it differently: ho

[PATCH v2 3/3] drm/panthor: Enable fdinfo for memory stats

2024-04-23 Thread Adrián Larumbe
When vm-binding an already-created BO, the entirety of its virtual size is then backed by system memory, so its RSS is always the same as its virtual size. Also, we consider a PRIME imported BO to be resident if its matching dma_buf has an open attachment, which means its backing storage had alrea