diff options
| author | Nirmoy Das <[email protected]> | 2021-03-19 18:54:31 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:38:47 +0000 |
| commit | 15e16daa35ba15424969cccb1b0aad2b8810e761 (patch) | |
| tree | 6eebdf138e4bee8fd5097d666a73b850b38140a0 /drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | |
| parent | drm/amdgpu/display: restore AUX_DPHY_TX_CONTROL for DCN2.x (diff) | |
| download | kernel-15e16daa35ba15424969cccb1b0aad2b8810e761.tar.gz kernel-15e16daa35ba15424969cccb1b0aad2b8810e761.zip | |
drm/amdgpu: fix amdgpu_res_first()
Fix size comparison in the resource cursor.
Signed-off-by: Nirmoy Das <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h index b49a61d07d60..40f2adf305bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h @@ -64,7 +64,7 @@ static inline void amdgpu_res_first(struct ttm_resource *res, BUG_ON(start + size > res->num_pages << PAGE_SHIFT); node = res->mm_node; - while (start > node->size << PAGE_SHIFT) + while (start >= node->size << PAGE_SHIFT) start -= node++->size << PAGE_SHIFT; cur->start = (node->start << PAGE_SHIFT) + start; |
