Loading
drm/amdkfd: pause autosuspend when creating pdd
stable inclusion from stable-v6.6.69 commit 60b57dc761d3a82666c6b84baeb20756b83cf5ca category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBNEPJ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=60b57dc761d3a82666c6b84baeb20756b83cf5ca -------------------------------- [ Upstream commit 438b39ac74e2a9dc0a5c9d653b7d8066877e86b1 ] When using MES creating a pdd will require talking to the GPU to setup the relevant context. The code here forgot to wake up the GPU in case it was in suspend, this causes KVM to EFAULT for passthrough GPU for example. This issue can be masked if the GPU was woken up by other things (e.g. opening the KMS node) first and have not yet gone to sleep. v4: do the allocation of proc_ctx_bo in a lazy fashion when the first queue is created in a process (Felix) Signed-off-by:Jesse Zhang <jesse.zhang@amd.com> Reviewed-by:
Yunxiang Li <Yunxiang.Li@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>