]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: add read arg support to smu_cmn_update_table
authorYang Wang <kevinyang.wang@amd.com>
Fri, 3 Apr 2026 03:30:22 +0000 (23:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 18:52:47 +0000 (14:52 -0400)
commit79d47bc4c73080aeac971bfc0e687b0cdefbabde
tree79234c0c680f4d1d17adfc84e3399f663b57a4d8
parent25fd8095a868cfbeb9ef3118131d2ba1f7057846
drm/amd/pm: add read arg support to smu_cmn_update_table

Extend the smu_cmn_update_table function to support reading a 32-bit return
argument from the SMU firmware during table transfer operations.

- Rename the original function to smu_cmn_update_table_read_arg
- Add a uint32_t *read_arg output parameter to capture firmware response
- Pass the read_arg pointer to the SMU message command
- Keep full backward compatibility using a macro wrapper for the old API

This allows the driver to retrieve status codes, results, or configuration
feedback from the SMU firmware after table data transfer.

No functional changes for existing users of the original smu_cmn_update_table()
API.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h