Skip to contentSkip to conversation

drm/amdgpu: fix clear_all and replace handling in the VM

PATCH In review Christian König 4 participants 6 messages Jun 4, 2018 – Jun 5, 2018 5 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix clear_all and replace handling in the VM

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -2
index ccba88cc8c54..dec8a793d38d 100644
@@ -2123,7 +2123,7 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
 			before->last = saddr - 1;
 			before->offset = tmp->offset;
 			before->flags = tmp->flags;
-			list_add(&before->list, &tmp->list);
+			list_add(&before->list, &tmp->bo_va->invalids);
 		}
 
 		/* Remember mapping split at the end */
@@ -2133,7 +2133,7 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
 			after->offset = tmp->offset;
 			after->offset += after->start - tmp->start;
 			after->flags = tmp->flags;
-			list_add(&after->list, &tmp->list);
+			list_add(&after->list, &tmp->bo_va->invalids);
 		}
 
 		list_del(&tmp->list);
Signature · 6 lines
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180604105952.72796-1-christian.koenig-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 4 lines · Christian König

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

Does this need to go to stable?

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 96ad02c2-4792-a12e-3002-385f30140971-otUistvHUpPR7s880joybQ@public.gmane.org

#4 lore raw

Am 04.06.2018 um 13:02 schrieb Michel Dänzer:

Quoted 6 lines · Christian König
Quoted 4 lines

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

Does this need to go to stable?

Yes, good point. Jerry if you haven't already committed your follow up patch then please add a "CC: [email protected]" tag to it.

Thanks,
Christian.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): c9988a0c-9166-fb64-87d5-d848995e3e6d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#6 lore raw
Quoted 10 lines · Christian König

Am 04.06.2018 um 13:02 schrieb Michel Dänzer:

Quoted 6 lines · Christian König
Quoted 4 lines

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

Does this need to go to stable?

Yes, good point. Jerry if you haven't already committed your follow up patch then please add a "CC: [email protected]" tag to it.

Sorry, it was landed in drm-next.
How can I save that?

Jerry

Quoted 3 lines

Thanks,
Christian.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Am 05.06.2018 um 10:47 schrieb Zhang, Jerry (Junwei):

Quoted 6 lines · Christian König
Quoted 5 lines

Am 04.06.2018 um 13:02 schrieb Michel Dänzer:

Quoted 4 lines · Christian König
Quoted 3 lines

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 1 line

Does this need to go to stable?

Yes, good point. Jerry if you haven't already committed your follow up patch then please add a "CC: [email protected]" tag to it.

Sorry, it was landed in drm-next.
How can I save that?

In this case Alex needs to add it when he prepares the patch for pushing it out as fix.

Only alternative is that you revert an repush the patch.

Christian.

Quoted 6 lines

Jerry

Quoted 3 lines

Thanks,
Christian.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 5c0183aa-115b-f9c9-4159-5aaaa9a871c2-5C7GfCeVMHo@public.gmane.org

#10 lore raw
Quoted 13 lines · Christian König

Am 05.06.2018 um 10:47 schrieb Zhang, Jerry (Junwei):

Quoted 12 lines · Christian König
Quoted 10 lines

Am 04.06.2018 um 13:02 schrieb Michel Dänzer:

Quoted 6 lines · Christian König
Quoted 4 lines

We need to put the lose ends on the invalid list because it is possible that we need to split up huge pages for them.

Does this need to go to stable?

Yes, good point. Jerry if you haven't already committed your follow up patch then please add a "CC: [email protected]" tag to it.

Quoted 7 lines
Quoted 2 lines

Sorry, it was landed in drm-next.
How can I save that?

In this case Alex needs to add it when he prepares the patch for pushing it out as fix.

Only alternative is that you revert an repush the patch.

OK, I prefer to revert and repush, avoiding to increase more todo items for Alex going upstream.

Jerry

Quoted 10 lines

Christian.

Quoted 6 lines

Jerry

Quoted 3 lines

Thanks,
Christian.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx