drm/amd/pm: setup the framework to support Wifi RFI mitigation feature
authorEvan Quan <quanliangl@hotmail.com>
Mon, 11 Dec 2023 10:06:27 +0000 (18:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 20:23:50 +0000 (15:23 -0500)
commitb8b39de646274366d17a3614fdaf65fa0716ab32
tree507dcd700b2dfbde819804e89bb1738904e038ab
parent296b29ce8acb5dbb3ca1937f1b537b3f6be0460a
drm/amd/pm: setup the framework to support Wifi RFI mitigation feature

With WBRF feature supported, as a driver responding to the frequencies,
amdgpu driver is able to do shadow pstate switching to mitigate possible
interference(between its (G-)DDR memory clocks and local radio module
frequency bands used by Wifi 6/6e/7).

--
v1->v2:
  - update the prompt for feature support(Lijo)
v8->v9:
  - update parameter document for smu_wbrf_event_handler(Simon)
v9->v10:
v10->v11:
 - correct the logics for wbrf range sorting(Lijo)
v13:
 - Fix the format issue (IIpo Jarvinen)

Signed-off-by: Evan Quan <quanliangl@hotmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h