Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-22 Thread Christian König
*Sent:* Wednesday, September 13, 2023 10:29 PM *To:* Kuehling, Felix ; Christian König ; Pan, Xinhui ; amd-gfx@lists.freedesktop.org; Wentland, Harry *Cc:* Deucher, Alexander ; Fan, Shikang *Subject:* Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend [+Harry] Am 13.09.23

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-14 Thread Christian König
*Sent:* Wednesday, September 13, 2023 10:29 PM *To:* Kuehling, Felix ; Christian König ; Pan, Xinhui ; amd-gfx@lists.freedesktop.org; Wentland, Harry *Cc:* Deucher, Alexander ; Fan, Shikang *Subject:* Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend [+Harry] Am 13.09.23

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-14 Thread Felix Kuehling
; amd-gfx@lists.freedesktop.org; Wentland, Harry *Cc:* Deucher, Alexander ; Fan, Shikang *Subject:* RE: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend Chris, I can dump these busy BOs with their alloc/free stack later today. BTW, the two evictions and the kfd suspend

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-14 Thread Christian König
, September 14, 2023 8:02 AM *To:* Koenig, Christian ; Kuehling, Felix ; Christian König ; amd-gfx@lists.freedesktop.org; Wentland, Harry *Cc:* Deucher, Alexander ; Fan, Shikang *Subject:* RE: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend Chris, I can dump these busy BOs

RE: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-13 Thread Pan, Xinhui
, Christian Sent: Wednesday, September 13, 2023 10:29 PM To: Kuehling, Felix ; Christian König ; Pan, Xinhui ; amd-gfx@lists.freedesktop.org; Wentland, Harry Cc: Deucher, Alexander ; Fan, Shikang Subject: Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend [+Harry] Am

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-13 Thread Christian König
-gfx@lists.freedesktop.org *抄送:* Deucher, Alexander ; Koenig, Christian ; Fan, Shikang *主题:* Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend When amdgpu_device_suspend() is called processes should be frozen already. In other words KFD queues etc... should already be idle. So

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-13 Thread Felix Kuehling
an König *发送时间:* 2023年9月12日 17:01 *收件人:* Pan, Xinhui ; amd-gfx@lists.freedesktop.org *抄送:* Deucher, Alexander ; Koenig, Christian ; Fan, Shikang *主题:* Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend When amdgpu_device_suspend() is called processes should be frozen already

Re: 回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-13 Thread Christian König
enig, Christian ; Fan, Shikang *主题:* Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend When amdgpu_device_suspend() is called processes should be frozen already. In other words KFD queues etc... should already be idle. So when the eviction fails here we missed something previo

回复: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-12 Thread Pan, Xinhui
tTest.BasicTest pm-suspend thanks xinhui 发件人: Christian König 发送时间: 2023年9月12日 17:01 收件人: Pan, Xinhui ; amd-gfx@lists.freedesktop.org 抄送: Deucher, Alexander ; Koenig, Christian ; Fan, Shikang 主题: Re: [PATCH] drm/amdgpu: Ignore first evction failure du

Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-12 Thread Christian König
@lists.freedesktop.org Cc: Deucher, Alexander ; Koenig, Christian ; Fan, Shikang Subject: Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend Am 08.09.23 um 05:39 schrieb xinhui pan: Some BOs might be pinned. So the first eviction's failure will abort the suspend sequence. These pinned BOs

[PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-11 Thread xinhui pan
Some BOs might be in use or locked and then the first eviction's failure will abort the suspend sequence. We will try to unlock or stop any user accessing these BOs afterwards during suspend. So only the second eviction should succeed. Actaully the first eviction has evicted most BOs, so that

RE: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-11 Thread Pan, Xinhui
] drm/amdgpu: Ignore first evction failure during suspend Am 08.09.23 um 05:39 schrieb xinhui pan: > Some BOs might be pinned. So the first eviction's failure will abort > the suspend sequence. These pinned BOs will be unpined afterwards > during suspend. That doesn't make much sense sin

Re: [PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-08 Thread Christian König
Am 08.09.23 um 05:39 schrieb xinhui pan: Some BOs might be pinned. So the first eviction's failure will abort the suspend sequence. These pinned BOs will be unpined afterwards during suspend. That doesn't make much sense since pinned BOs don't cause eviction failure here. What exactly is

[PATCH] drm/amdgpu: Ignore first evction failure during suspend

2023-09-07 Thread xinhui pan
Some BOs might be pinned. So the first eviction's failure will abort the suspend sequence. These pinned BOs will be unpined afterwards during suspend. Actaully it has evicted most BOs, so that should stil work fine in sriov full access mode. Fixes: 47ea20762bb7 ("drm/amdgpu: Add an extra