回复: 回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-20 Thread Pan, Xinhui
; amd-...@lists.freedesktop.org 抄送: Deucher, Alexander; dan...@ffwll.ch; Koenig, Christian; dri-devel@lists.freedesktop.org 主题: Re: 回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin > swapout function create one swap storage which is filled with zero. And

Re: 回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-20 Thread Pan, Xinhui
I just sent out patch below yesterday. swapping unpopulated bo is useless indeed. [RFC PATCH 2/2] drm/ttm: skip swapout when ttm has no backend page.

Re: 回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-20 Thread Christian König
人: Kuehling, Felix; amd-...@lists.freedesktop.org 抄送: Deucher, Alexander; Koenig, Christian; dri-devel@lists.freedesktop.org; dan...@ffwll.ch 主题: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin yes, we really dont swapout SG BOs. The problems is that before we validat

Re: 回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-20 Thread Christian König
, Felix; amd-...@lists.freedesktop.org 抄送: Deucher, Alexander; Koenig, Christian; dri-devel@lists.freedesktop.org; dan...@ffwll.ch 主题: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin yes, we really dont swapout SG BOs. The problems is that before we validate a userptr BO, we create th

回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-19 Thread Pan, Xinhui
König; Pan, Xinhui; amd-...@lists.freedesktop.org 抄送: Deucher, Alexander; dan...@ffwll.ch; Koenig, Christian; dri-devel@lists.freedesktop.org 主题: Re: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin Looks like we're creating the userptr BO as ttm_bo_type_device. I

回复: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin

2021-05-19 Thread Pan, Xinhui
抄送: Deucher, Alexander; dan...@ffwll.ch; Koenig, Christian; dri-devel@lists.freedesktop.org 主题: Re: 回复: [RFC PATCH 1/2] drm/amdgpu: Fix memory corruption due to swapout and swapin I'm scratching my head how that is even possible. See when a BO is created in the system domain it is just an em