Re: [PATCH v2 2/2] drm/amdgpu: clear freed mappings immediately when BO may be freed

2017-03-23 Thread Zhang, Jerry (Junwei)
On 03/24/2017 11:42 AM, Zhang, Jerry (Junwei) wrote: On 03/24/2017 03:27 AM, Nicolai Hähnle wrote: From: Nicolai Hähnle Also, add the fence of the clear operations to the BO to ensure that the underlying memory can only be re-used after all PTEs pointing to it have

Re: [PATCH v2 2/2] drm/amdgpu: clear freed mappings immediately when BO may be freed

2017-03-23 Thread Zhang, Jerry (Junwei)
On 03/24/2017 03:27 AM, Nicolai Hähnle wrote: From: Nicolai Hähnle Also, add the fence of the clear operations to the BO to ensure that the underlying memory can only be re-used after all PTEs pointing to it have been cleared. This avoids the following sequence of

Re: [PATCH v2 2/2] drm/amdgpu: clear freed mappings immediately when BO may be freed

2017-03-23 Thread zhoucm1
On 2017年03月24日 03:27, Nicolai Hähnle wrote: From: Nicolai Hähnle Also, add the fence of the clear operations to the BO to ensure that the underlying memory can only be re-used after all PTEs pointing to it have been cleared. This avoids the following sequence of

[PATCH v2 2/2] drm/amdgpu: clear freed mappings immediately when BO may be freed

2017-03-23 Thread Nicolai Hähnle
From: Nicolai Hähnle Also, add the fence of the clear operations to the BO to ensure that the underlying memory can only be re-used after all PTEs pointing to it have been cleared. This avoids the following sequence of events that could be triggered by user space: 1.