OSDN Git Service

drm/amd/pp: add new function point in hwmgr.
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 9 Oct 2017 04:21:30 +0000 (12:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:26:51 +0000 (15:26 -0400)
used for notify SMU the allocated buffer address.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

index 126b44d..004a40e 100644 (file)
@@ -363,6 +363,12 @@ struct pp_hwmgr_func {
        int (*set_active_display_count)(struct pp_hwmgr *hwmgr, uint32_t count);
        int (*set_deep_sleep_dcefclk)(struct pp_hwmgr *hwmgr, uint32_t clock);
        int (*start_thermal_controller)(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *range);
+       int (*notify_cac_buffer_info)(struct pp_hwmgr *hwmgr,
+                                       uint32_t virtual_addr_low,
+                                       uint32_t virtual_addr_hi,
+                                       uint32_t mc_addr_low,
+                                       uint32_t mc_addr_hi,
+                                       uint32_t size);
 };
 
 struct pp_table_func {