[PATCH] drm/amdgpu: allocate shared fence slot in VA IOCTL
Zhang, Jerry (Junwei)
Jerry.Zhang at amd.com
Tue Jun 12 06:03:00 UTC 2018
On 06/12/2018 10:25 AM, zhoucm1 wrote:
>
>
> On 2018年06月11日 21:23, Christian König wrote:
>> Per VM BOs share the reservation object with the PD and so need to
>> reserve a shared fence slot for the update.
>>
>> Signed-off-by: Christian König <christian.koenig at amd.com>
> Reviewed-by: Chunming Zhou <david1.zhou at amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang at amd.com>
>
>> ---
>> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> index 5fb156a01774..7f27cdb7afe2 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> @@ -612,7 +612,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
>> return -ENOENT;
>> abo = gem_to_amdgpu_bo(gobj);
>> tv.bo = &abo->tbo;
>> - tv.shared = false;
>> + tv.shared = !!(abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID);
>> list_add(&tv.head, &list);
>> } else {
>> gobj = NULL;
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list