drm/amdgpu: prepare the output buffer for GET_PEER_LINKS command
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 20 Sep 2023 10:36:55 +0000 (18:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:28 +0000 (15:11 -0400)
commite8a5ded36b4c68db4e0d4066ae2d420116715105
tree2ec9b177db5b38ca9dfa6d79676ee3b2643987d8
parentd9443ac4f9ea97f9eaebf2569d3fd044da4c9c98
drm/amdgpu: prepare the output buffer for GET_PEER_LINKS command

Per the xgmi ta implementation, KGD needs to fill in node_ids
in concern into the shared command output buffer rather than the
command input buffer.

Input buffer is not used for GET_PEER_LINKS command execution.

In this way, xgmi ta can reuse the node info in the output buffer
just filled in and populate the same buffer with link info directly.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c