]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: support the port num info based on the capability flag
authorShiwu Zhang <shiwu.zhang@amd.com>
Thu, 21 Sep 2023 12:05:12 +0000 (20:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:28 +0000 (15:11 -0400)
commit723fac64d05d7005929babbeb41dd09fb45f6f35
tree3a485a3af8c70a535dbe58e9ce1b6b85cd287b36
parente8a5ded36b4c68db4e0d4066ae2d420116715105
drm/amdgpu: support the port num info based on the capability flag

XGMI TA will set the capability flag to indicate whether the port_num
info is supported or not. KGD checks the flag and accordingly picks up
the right buffer format and send the right command to TA to retrieve
the info.

v2: simplify the code by reusing the same statement (lijo)

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@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
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h