This commit adds the pixel_clock field to the display config struct so that power management (DPM) can use it. We currently don't have a proper bandwidth calculation on old GPUs with DCE 6-10 because dce_calcs only supports DCE 11+. So the power management (DPM) on these GPUs may need to make ad-hoc decisions for display based on the pixel clock. Also rename sym_clock to pixel_clock in dm_pp_single_disp_config to avoid confusion with other code where the sym_clock refers to the DisplayPort symbol clock.
Showing the changes to drivers/gpu/drm/amd/include/dm_pp_interface.h (1 of 4 files). Show all
Unified · Split
| @@ -65,6 +65,7 @@ struct single_display_configuration { · 64 unmodified lines | ||
| 65 | 65 | uint32_t view_resolution_cy; |
| 66 | 66 | enum amd_pp_display_config_type displayconfigtype; |
| 67 | 67 | uint32_t vertical_refresh; /* for active display */ |
| 68 | + uint32_t pixel_clock; /* Pixel clock in KHz (for HDMI only: normalized) */ | |
| 68 | 69 | }; |
| 69 | 70 | |
| 70 | 71 | #define MAX_NUM_DISPLAY 32 |