aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-06-14 21:32:23 -0400
committerDave Airlie <airlied@redhat.com>2018-06-14 21:32:29 -0400
commitdaf0678c2036c918f01e4aa6035629d2debc2f30 (patch)
tree8a6ddd16c351bdf69487e5ca396333447796da8c /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parent33ce21d6a2491ef9adb8dc395e3f5bbbfcdc95b5 (diff)
parent5c16f36f6f003b4415237acca59384a074cd8030 (diff)
Merge branch 'drm-next-4.18' of git://people.freedesktop.org/~agd5f/linux into drm-next
Fixes for 4.18. Highlights: - Fixes for gfxoff on Raven - Remove an ATPX quirk now that the root cause is fixed - Runtime PM fixes - Vega20 register header update - Wattman fixes - Misc bug fixes Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180614141428.2909-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index ccba88cc8c54..b0eb2f537392 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2123,7 +2123,8 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
2123 before->last = saddr - 1; 2123 before->last = saddr - 1;
2124 before->offset = tmp->offset; 2124 before->offset = tmp->offset;
2125 before->flags = tmp->flags; 2125 before->flags = tmp->flags;
2126 list_add(&before->list, &tmp->list); 2126 before->bo_va = tmp->bo_va;
2127 list_add(&before->list, &tmp->bo_va->invalids);
2127 } 2128 }
2128 2129
2129 /* Remember mapping split at the end */ 2130 /* Remember mapping split at the end */
@@ -2133,7 +2134,8 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
2133 after->offset = tmp->offset; 2134 after->offset = tmp->offset;
2134 after->offset += after->start - tmp->start; 2135 after->offset += after->start - tmp->start;
2135 after->flags = tmp->flags; 2136 after->flags = tmp->flags;
2136 list_add(&after->list, &tmp->list); 2137 after->bo_va = tmp->bo_va;
2138 list_add(&after->list, &tmp->bo_va->invalids);
2137 } 2139 }
2138 2140
2139 list_del(&tmp->list); 2141 list_del(&tmp->list);