-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/amd/display: cleaning up smu_if to add future flexibility
This commit cleans up code that uses old variables and adds some SMU interfaces for future flexibility. Signed-off-by: Martin Leung <Martin.Leung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
- Loading branch information
Martin Leung
authored and
Alex Deucher
committed
Jun 3, 2022
1 parent
214d72f
commit 80fb7a4
Showing
4 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_smu13_driver_if.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// This is a stripped-down version of the smu13_driver_if.h file for the relevant DAL interfaces. | ||
|
||
#define SMU13_DRIVER_IF_VERSION 0x18 | ||
|
||
//Only Clks that have DPM descriptors are listed here | ||
typedef enum { | ||
PPCLK_GFXCLK = 0, | ||
PPCLK_SOCCLK, | ||
PPCLK_UCLK, | ||
PPCLK_FCLK, | ||
PPCLK_DCLK_0, | ||
PPCLK_VCLK_0, | ||
PPCLK_DCLK_1, | ||
PPCLK_VCLK_1, | ||
PPCLK_DISPCLK, | ||
PPCLK_DPPCLK, | ||
PPCLK_DPREFCLK, | ||
PPCLK_DCFCLK, | ||
PPCLK_DTBCLK, | ||
PPCLK_COUNT, | ||
} PPCLK_e; | ||
|
||
typedef struct { | ||
uint8_t WmSetting; | ||
uint8_t Flags; | ||
uint8_t Padding[2]; | ||
|
||
} WatermarkRowGeneric_t; | ||
|
||
#define NUM_WM_RANGES 4 | ||
|
||
typedef enum { | ||
WATERMARKS_CLOCK_RANGE = 0, | ||
WATERMARKS_DUMMY_PSTATE, | ||
WATERMARKS_MALL, | ||
WATERMARKS_COUNT, | ||
} WATERMARKS_FLAGS_e; | ||
|
||
typedef struct { | ||
// Watermarks | ||
WatermarkRowGeneric_t WatermarkRow[NUM_WM_RANGES]; | ||
} Watermarks_t; | ||
|
||
typedef struct { | ||
Watermarks_t Watermarks; | ||
uint32_t Spare[16]; | ||
|
||
uint32_t MmHubPadding[8]; // SMU internal use | ||
} WatermarksExternal_t; | ||
|
||
// Table types | ||
#define TABLE_PMFW_PPTABLE 0 | ||
#define TABLE_COMBO_PPTABLE 1 | ||
#define TABLE_WATERMARKS 2 | ||
#define TABLE_AVFS_PSM_DEBUG 3 | ||
#define TABLE_PMSTATUSLOG 4 | ||
#define TABLE_SMU_METRICS 5 | ||
#define TABLE_DRIVER_SMU_CONFIG 6 | ||
#define TABLE_ACTIVITY_MONITOR_COEFF 7 | ||
#define TABLE_OVERDRIVE 8 | ||
#define TABLE_I2C_COMMANDS 9 | ||
#define TABLE_DRIVER_INFO 10 | ||
#define TABLE_COUNT 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters