[Intel-gfx] [PATCH v4 2/4] drm/i915: Use the vma resource as argument for gtt binding / unbinding

Thomas Hellström thomas.hellstrom at linux.intel.com
Mon Jan 3 18:57:34 UTC 2022


Hi, Oak.

On 1/3/22 19:17, Zeng, Oak wrote:
>
> Regards,
> Oak
>
>> -----Original Message-----
>> From: Intel-gfx <intel-gfx-bounces at lists.freedesktop.org> On Behalf Of Thomas Hellström
>> Sent: January 3, 2022 7:00 AM
>> To: intel-gfx at lists.freedesktop.org; dri-devel at lists.freedesktop.org
>> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>; Auld, Matthew <matthew.auld at intel.com>
>> Subject: [Intel-gfx] [PATCH v4 2/4] drm/i915: Use the vma resource as argument for gtt binding / unbinding
>>
>> When introducing asynchronous unbinding, the vma itself may no longer
>> be alive when the actual binding or unbinding takes place.
> Can we take an extra reference counter of the vma to keep the vma alive, until the actual binding/unbinding takes place?

The point here is that that's not needed, and should be avoided. If the 
vma is no longer alive, that means nobody uses it anymore, but the GPU 
may still have work in the pipe that references the GPU virtual address.

/Thomas.




More information about the Intel-gfx mailing list