]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
Merge tag 'drm-intel-next-queued-2020-11-27' of git://anongit.freedesktop.org/drm...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_cs.c
index 12598a4b5c788f5473d08aad318e1aa1a0b35508..8d2878e950dab1ec06810ac479f2bd5cfb52dc5d 100644 (file)
@@ -326,7 +326,7 @@ static void amdgpu_cs_get_threshold_for_moves(struct amdgpu_device *adev,
        increment_us = time_us - adev->mm_stats.last_update_us;
        adev->mm_stats.last_update_us = time_us;
        adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us,
-                                      us_upper_bound);
+                                     us_upper_bound);
 
        /* This prevents the short period of low performance when the VRAM
         * usage is low and the driver is in debt or doesn't have enough
@@ -404,13 +404,12 @@ static int amdgpu_cs_bo_validate(struct amdgpu_cs_parser *p,
        struct ttm_operation_ctx ctx = {
                .interruptible = true,
                .no_wait_gpu = false,
-               .resv = bo->tbo.base.resv,
-               .flags = 0
+               .resv = bo->tbo.base.resv
        };
        uint32_t domain;
        int r;
 
-       if (bo->pin_count)
+       if (bo->tbo.pin_count)
                return 0;
 
        /* Don't move this buffer if we have depleted our allowance
@@ -1461,7 +1460,7 @@ int amdgpu_cs_fence_to_handle_ioctl(struct drm_device *dev, void *data,
                dma_fence_put(fence);
                if (r)
                        return r;
-               r = drm_syncobj_get_fd(syncobj, (int*)&info->out.handle);
+               r = drm_syncobj_get_fd(syncobj, (int *)&info->out.handle);
                drm_syncobj_put(syncobj);
                return r;
 
This page took 0.035608 seconds and 4 git commands to generate.