]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/nouveau: factor out r535_gsp_msgq_recv_one_elem()
authorZhi Wang <zhiw@nvidia.com>
Fri, 24 Jan 2025 18:29:56 +0000 (10:29 -0800)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 24 Jan 2025 23:55:10 +0000 (00:55 +0100)
commit3c48ecb38a736bf457233dc6869e305aee6d52f9
tree8c169dd1dc3520263349901ecba46dd315116cb6
parentc965e3598b4ee7863d64dd13a54258753f7b447f
drm/nouveau: factor out r535_gsp_msgq_recv_one_elem()

Prepare for supporting receive the large GSP RPC message.

Factor out r535_gsp_msgq_recv_one_elem(). Fold its params into a data
structure of params. Move the allocation of the GSP RPC message to its
caller. Refine the variable names in the re-factor.

No functional change is intended.

Signed-off-by: Zhi Wang <zhiw@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250124182958.2040494-14-zhiw@nvidia.com
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c