Re: [PATCH] drm/radeon: fix missing bo reservation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 21, 2014 at 4:26 PM, Dieter Nützel <Dieter@xxxxxxxxxxxxx> wrote:
> Alex,
>
> shouldn't you send a pull request, that this land in 3.14-rc4?
> Just in case...

I'll send a pull request next week along with any other patches I've
accumulated since the last pull.  I usually try and send a -fixes pull
once a week assuming there are fixes that need to go in.

Alex

>
> Thanks,
>   Dieter
>
> Am 20.02.2014 18:47, schrieb Christian König:
>>
>> From: Christian König <christian.koenig@xxxxxxx>
>>
>> Otherwise we might get a crash here.
>>
>> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
>> Cc: stable@xxxxxxxxxxxxxxx
>> ---
>>  drivers/gpu/drm/radeon/radeon_kms.c | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_kms.c
>> b/drivers/gpu/drm/radeon/radeon_kms.c
>> index 114d167..2aecd6d 100644
>> --- a/drivers/gpu/drm/radeon/radeon_kms.c
>> +++ b/drivers/gpu/drm/radeon/radeon_kms.c
>> @@ -537,6 +537,10 @@ int radeon_driver_open_kms(struct drm_device
>> *dev, struct drm_file *file_priv)
>>
>>                 radeon_vm_init(rdev, &fpriv->vm);
>>
>> +               r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false);
>> +               if (r)
>> +                       return r;
>> +
>>                 /* map the ib pool buffer read only into
>>                  * virtual address space */
>>                 bo_va = radeon_vm_bo_add(rdev, &fpriv->vm,
>> @@ -544,6 +548,8 @@ int radeon_driver_open_kms(struct drm_device *dev,
>> struct drm_file *file_priv)
>>                 r = radeon_vm_bo_set_addr(rdev, bo_va,
>> RADEON_VA_IB_OFFSET,
>>                                           RADEON_VM_PAGE_READABLE |
>>                                           RADEON_VM_PAGE_SNOOPED);
>> +
>> +               radeon_bo_unreserve(rdev->ring_tmp_bo.bo);
>>                 if (r) {
>>                         radeon_vm_fini(rdev, &fpriv->vm);
>>                         kfree(fpriv);
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux