summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dc.h
diff options
context:
space:
mode:
authorSung Joon Kim <sungjoon.kim@amd.com>2024-06-03 10:57:24 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-06-14 16:18:55 -0400
commit0057b36ac2be0f573048acda52e641e0502a9ff3 (patch)
tree51963c1d82927e44135294ff3ba2862ec1f51637 /drivers/gpu/drm/amd/display/dc/dc.h
parenta157dcc521dcb8eb0acb50d66d1b0fc5efcea789 (diff)
downloadlinux-0057b36ac2be0f573048acda52e641e0502a9ff3.tar.gz
linux-0057b36ac2be0f573048acda52e641e0502a9ff3.tar.bz2
linux-0057b36ac2be0f573048acda52e641e0502a9ff3.zip
drm/amd/display: Send message to notify the DPIA host router bandwidth
[why] Tell the system about the current host router bandwidth to be used to measure and calculate the right voltage to be used. [how] Send SMU message of each DPIA host router bandwidth. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Sung Joon Kim <sungjoon.kim@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index b9c67bac7beb..fa4e6b09409e 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -62,6 +62,7 @@ struct dmub_notification;
#define MAX_STREAMS 6
#define MIN_VIEWPORT_SIZE 12
#define MAX_NUM_EDP 2
+#define MAX_HOST_ROUTERS_NUM 2
/* Display Core Interfaces */
struct dc_versions {
@@ -594,6 +595,7 @@ struct dc_clocks {
bool prev_p_state_change_support;
bool fclk_prev_p_state_change_support;
int num_ways;
+ int host_router_bw_kbps[MAX_HOST_ROUTERS_NUM];
/*
* @fw_based_mclk_switching
@@ -1045,6 +1047,7 @@ struct dc_debug_options {
unsigned int force_easf;
unsigned int force_sharpness;
unsigned int force_lls;
+ bool notify_dpia_hr_bw;
};