* [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
@ 2018-06-04 10:59 Christian König
[not found] ` <20180604105952.72796-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Christian König @ 2018-06-04 10:59 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
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.
Signed-off-by: Christian König <christian.koenig@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
1 file changed, 2 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..dec8a793d38d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -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);
--
2.14.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
[not found] ` <20180604105952.72796-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
@ 2018-06-04 11:02 ` Michel Dänzer
[not found] ` <96ad02c2-4792-a12e-3002-385f30140971-otUistvHUpPR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Michel Dänzer @ 2018-06-04 11:02 UTC (permalink / raw)
To: Christian König; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 2018-06-04 12:59 PM, Christian König wrote:
> 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.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
Does this need to go to stable?
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
[not found] ` <96ad02c2-4792-a12e-3002-385f30140971-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2018-06-05 8:45 ` Christian König
[not found] ` <c9988a0c-9166-fb64-87d5-d848995e3e6d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Christian König @ 2018-06-05 8:45 UTC (permalink / raw)
To: Michel Dänzer, Zhang, Jerry; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Am 04.06.2018 um 13:02 schrieb Michel Dänzer:
> On 2018-06-04 12:59 PM, Christian König wrote:
>> 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.
>>
>> Signed-off-by: Christian König <christian.koenig@amd.com>
> 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: stable@vger.kernel.org" tag to it.
Thanks,
Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
[not found] ` <c9988a0c-9166-fb64-87d5-d848995e3e6d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2018-06-05 8:47 ` Zhang, Jerry (Junwei)
[not found] ` <5B164E24.6080004-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Zhang, Jerry (Junwei) @ 2018-06-05 8:47 UTC (permalink / raw)
To: christian.koenig-5C7GfCeVMHo, Michel Dänzer
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 06/05/2018 04:45 PM, Christian König wrote:
> Am 04.06.2018 um 13:02 schrieb Michel Dänzer:
>> On 2018-06-04 12:59 PM, Christian König wrote:
>>> 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.
>>>
>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>> 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: stable@vger.kernel.org" tag to it.
Sorry, it was landed in drm-next.
How can I save that?
Jerry
>
> Thanks,
> Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
[not found] ` <5B164E24.6080004-5C7GfCeVMHo@public.gmane.org>
@ 2018-06-05 8:54 ` Christian König
[not found] ` <5c0183aa-115b-f9c9-4159-5aaaa9a871c2-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Christian König @ 2018-06-05 8:54 UTC (permalink / raw)
To: Zhang, Jerry (Junwei), Michel Dänzer, Alex Deucher
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Am 05.06.2018 um 10:47 schrieb Zhang, Jerry (Junwei):
> On 06/05/2018 04:45 PM, Christian König wrote:
>> Am 04.06.2018 um 13:02 schrieb Michel Dänzer:
>>> On 2018-06-04 12:59 PM, Christian König wrote:
>>>> 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.
>>>>
>>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>> 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: stable@vger.kernel.org" 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.
>
> Jerry
>
>>
>> Thanks,
>> Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM
[not found] ` <5c0183aa-115b-f9c9-4159-5aaaa9a871c2-5C7GfCeVMHo@public.gmane.org>
@ 2018-06-05 9:01 ` Zhang, Jerry (Junwei)
0 siblings, 0 replies; 6+ messages in thread
From: Zhang, Jerry (Junwei) @ 2018-06-05 9:01 UTC (permalink / raw)
To: Christian König, Michel Dänzer, Alex Deucher
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 06/05/2018 04:54 PM, Christian König wrote:
> Am 05.06.2018 um 10:47 schrieb Zhang, Jerry (Junwei):
>> On 06/05/2018 04:45 PM, Christian König wrote:
>>> Am 04.06.2018 um 13:02 schrieb Michel Dänzer:
>>>> On 2018-06-04 12:59 PM, Christian König wrote:
>>>>> 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.
>>>>>
>>>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>>> 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: stable@vger.kernel.org" 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.
OK, I prefer to revert and repush, avoiding to increase more todo items for Alex
going upstream.
Jerry
>
> Christian.
>
>>
>> Jerry
>>
>>>
>>> Thanks,
>>> Christian.
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-05 9:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-04 10:59 [PATCH] drm/amdgpu: fix clear_all and replace handling in the VM Christian König
[not found] ` <20180604105952.72796-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-06-04 11:02 ` Michel Dänzer
[not found] ` <96ad02c2-4792-a12e-3002-385f30140971-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-06-05 8:45 ` Christian König
[not found] ` <c9988a0c-9166-fb64-87d5-d848995e3e6d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-06-05 8:47 ` Zhang, Jerry (Junwei)
[not found] ` <5B164E24.6080004-5C7GfCeVMHo@public.gmane.org>
2018-06-05 8:54 ` Christian König
[not found] ` <5c0183aa-115b-f9c9-4159-5aaaa9a871c2-5C7GfCeVMHo@public.gmane.org>
2018-06-05 9:01 ` Zhang, Jerry (Junwei)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.