This patch series refactors amdgpu.h by moving several structures and their
associated helpers into dedicated or existing header files. This improves
code organization and makes the structure easier to parse.
v2:
- Moved amdgpu_device_wb_get()/free() into new amdgpu_wb.c file and
amdgpu_device_set_uid()/get_uid() into new amdgpu_uid.c file
(addressing v1 review feedback)
- Removed v1 patches 8, 10, and 11 (addressing v1 review feedback)
- Moved the includes of headers amdgpu_uid.h, amdgpu_init_level.h
and amdgpu_video_codecs.h out of amdgpu.h into files where they are
actually used (addressing v1 review feedback)
Notes:
Moving the includes out of amdgpu.h into where they are actually used
caused the commits to go into different subsystems like /pm.
Dropping patches 9, 10, and 11 is advised if this isn't desirable.
Shahyan Soltani (11):
drm/amdgpu: move struct amdgpu_sa from amdgpu.h into its own header
file
drm/amdgpu: move struct amdgpu_wb and helpers into separate files
drm/amdgpu: move struct amdgpu_uid and helpers into separate files
drm/amdgpu: move struct amdgpu_video_codecs and helpers into header
file
drm/amdgpu: move struct amdgpu_mqd and helpers into header file
drm/amdgpu: move struct amdgpu_init_level and helpers into header file
drm/amdgpu: move amdgpu_acpi helpers into new header
drm/amdgpu: move amdgpu_allowed_register_entry into
amdgpu_reg_access.h
drm/amdgpu: include amdgpu_uid.h only where needed
drm/amdgpu: include amdgpu_init_level.h only where needed
drm/amdgpu: include amdgpu_video_codecs.h only where needed
drivers/gpu/drm/amd/amdgpu/Makefile | 3 +-
drivers/gpu/drm/amd/amdgpu/aldebaran.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 343 +-----------------
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.h | 151 ++++++++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 97 +----
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 +
.../gpu/drm/amd/amdgpu/amdgpu_init_level.h | 51 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_mqd.h | 75 ++++
.../gpu/drm/amd/amdgpu/amdgpu_reg_access.h | 8 +
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.h | 61 ++++
drivers/gpu/drm/amd/amdgpu/amdgpu_uid.c | 75 ++++
drivers/gpu/drm/amd/amdgpu/amdgpu_uid.h | 50 +++
.../gpu/drm/amd/amdgpu/amdgpu_video_codecs.h | 47 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_wb.c | 69 ++++
drivers/gpu/drm/amd/amdgpu/amdgpu_wb.h | 100 +++++
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 1 +
drivers/gpu/drm/amd/amdgpu/cik.c | 1 +
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 +
drivers/gpu/drm/amd/amdgpu/nv.c | 1 +
drivers/gpu/drm/amd/amdgpu/si.c | 1 +
drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c | 1 +
drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.c | 1 +
drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +
drivers/gpu/drm/amd/amdgpu/soc21.c | 1 +
drivers/gpu/drm/amd/amdgpu/soc24.c | 1 +
drivers/gpu/drm/amd/amdgpu/soc_v1_0.c | 1 +
drivers/gpu/drm/amd/amdgpu/vi.c | 1 +
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 1 +
.../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 1 +
.../drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 1 +
.../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 1 +
.../drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 1 +
35 files changed, 721 insertions(+), 432 deletions(-)
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_init_level.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_mqd.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_uid.c
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_uid.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_video_codecs.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_wb.c
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_wb.h
--
2.54.0