Home
last modified time | relevance | path

Searched refs:pp_smu (Results 1 – 25 of 26) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/
Ddm_pp_smu.h48 struct pp_smu { struct
97 struct pp_smu pp_smu; member
103 void (*set_display_count)(struct pp_smu *pp, int count);
112 void (*set_wm_ranges)(struct pp_smu *pp,
118 void (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int mhz);
124 void (*set_min_deep_sleep_dcfclk)(struct pp_smu *pp, int mhz);
129 void (*set_hard_min_fclk_by_freq)(struct pp_smu *pp, int mhz);
134 void (*set_hard_min_socclk_by_freq)(struct pp_smu *pp, int mhz);
137 void (*set_pme_wa_enable)(struct pp_smu *pp);
168 struct pp_smu pp_smu; member
[all …]
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr.c198 struct pp_smu_funcs_rv *pp_smu = NULL; in rv1_update_clocks() local
205 ASSERT(clk_mgr->pp_smu); in rv1_update_clocks()
210 pp_smu = &clk_mgr->pp_smu->rv_funcs; in rv1_update_clocks()
223 if (pp_smu->set_display_count) in rv1_update_clocks()
224 pp_smu->set_display_count(&pp_smu->pp_smu, display_count); in rv1_update_clocks()
264 if (pp_smu->set_hard_min_fclk_by_freq && in rv1_update_clocks()
265 pp_smu->set_hard_min_dcfclk_by_freq && in rv1_update_clocks()
266 pp_smu->set_min_deep_sleep_dcfclk) { in rv1_update_clocks()
267 pp_smu->set_hard_min_fclk_by_freq(&pp_smu->pp_smu, khz_to_mhz_ceil(new_clocks->fclk_khz)); in rv1_update_clocks()
268 pp_smu->set_hard_min_dcfclk_by_freq(&pp_smu->pp_smu, khz_to_mhz_ceil(new_clocks->dcfclk_khz)); in rv1_update_clocks()
[all …]
Drv2_clk_mgr.c37 …gr_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr, struct pp_smu_funcs *pp_smu) in rv2_clk_mgr_construct() argument
40 rv1_clk_mgr_construct(ctx, clk_mgr, pp_smu); in rv2_clk_mgr_construct()
Drv2_clk_mgr.h29 …r_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr, struct pp_smu_funcs *pp_smu);
Drv1_clk_mgr.h29 …r_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr, struct pp_smu_funcs *pp_smu);
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c214 struct pp_smu_funcs_nv *pp_smu = NULL; in dcn2_update_clocks() local
238 if (dc->res_pool->pp_smu) in dcn2_update_clocks()
239 pp_smu = &dc->res_pool->pp_smu->nv_funcs; in dcn2_update_clocks()
245 if (pp_smu && pp_smu->set_display_count) in dcn2_update_clocks()
246 pp_smu->set_display_count(&pp_smu->pp_smu, display_count); in dcn2_update_clocks()
255 if (pp_smu && pp_smu->set_hard_min_dcfclk_by_freq) in dcn2_update_clocks()
256pp_smu->set_hard_min_dcfclk_by_freq(&pp_smu->pp_smu, khz_to_mhz_ceil(clk_mgr_base->clks.dcfclk_khz… in dcn2_update_clocks()
262 if (pp_smu && pp_smu->set_min_deep_sleep_dcfclk) in dcn2_update_clocks()
263pp_smu->set_min_deep_sleep_dcfclk(&pp_smu->pp_smu, khz_to_mhz_ceil(clk_mgr_base->clks.dcfclk_deep_… in dcn2_update_clocks()
268 if (pp_smu && pp_smu->set_hard_min_socclk_by_freq) in dcn2_update_clocks()
[all …]
Ddcn20_clk_mgr.h43 struct pp_smu_funcs *pp_smu,
/drivers/gpu/drm/amd/display/dc/clk_mgr/
Dclk_mgr.c135 struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pp_smu, struct dccg … in dc_clk_mgr_create() argument
221 rn_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
226 rn_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
230 rv2_clk_mgr_construct(ctx, clk_mgr, pp_smu); in dc_clk_mgr_create()
235 rv1_clk_mgr_construct(ctx, clk_mgr, pp_smu); in dc_clk_mgr_create()
248 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
252 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
256 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
259 dcn20_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
270 vg_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create()
[all …]
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_pp_smu.c492 static void pp_rv_set_wm_ranges(struct pp_smu *pp, in pp_rv_set_wm_ranges()
544 static void pp_rv_set_pme_wa_enable(struct pp_smu *pp) in pp_rv_set_pme_wa_enable()
555 static void pp_rv_set_active_display_count(struct pp_smu *pp, int count) in pp_rv_set_active_display_count()
568 static void pp_rv_set_min_deep_sleep_dcfclk(struct pp_smu *pp, int clock) in pp_rv_set_min_deep_sleep_dcfclk()
581 static void pp_rv_set_hard_min_dcefclk_by_freq(struct pp_smu *pp, int clock) in pp_rv_set_hard_min_dcefclk_by_freq()
594 static void pp_rv_set_hard_min_fclk_by_freq(struct pp_smu *pp, int mhz) in pp_rv_set_hard_min_fclk_by_freq()
607 static enum pp_smu_status pp_nv_set_wm_ranges(struct pp_smu *pp, in pp_nv_set_wm_ranges()
621 static enum pp_smu_status pp_nv_set_display_count(struct pp_smu *pp, int count) in pp_nv_set_display_count()
639 pp_nv_set_min_deep_sleep_dcfclk(struct pp_smu *pp, int mhz) in pp_nv_set_min_deep_sleep_dcfclk()
657 struct pp_smu *pp, int mhz) in pp_nv_set_hard_min_dcefclk_by_freq()
[all …]
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c520 struct pp_smu_funcs *pp_smu = clk_mgr->pp_smu; in rn_notify_wm_ranges() local
526 if (pp_smu && pp_smu->rn_funcs.set_wm_ranges) in rn_notify_wm_ranges()
527 pp_smu->rn_funcs.set_wm_ranges(&pp_smu->rn_funcs.pp_smu, &clk_mgr_base->ranges); in rn_notify_wm_ranges()
930 struct pp_smu_funcs *pp_smu, in rn_clk_mgr_construct() argument
945 clk_mgr->pp_smu = pp_smu; in rn_clk_mgr_construct()
1006 if (pp_smu && pp_smu->rn_funcs.get_dpm_clock_table) { in rn_clk_mgr_construct()
1007 status = pp_smu->rn_funcs.get_dpm_clock_table(&pp_smu->rn_funcs.pp_smu, &clock_table); in rn_clk_mgr_construct()
Drn_clk_mgr.h38 struct pp_smu_funcs *pp_smu,
/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_resource.c706 static void dcn21_pp_smu_destroy(struct pp_smu_funcs **pp_smu);
1029 if (pool->base.pp_smu != NULL) in dcn21_resource_destruct()
1030 dcn21_pp_smu_destroy(&pool->base.pp_smu); in dcn21_resource_destruct()
1654 struct pp_smu_funcs *pp_smu = kzalloc(sizeof(*pp_smu), GFP_KERNEL); in dcn21_pp_smu_create() local
1656 if (!pp_smu) in dcn21_pp_smu_create()
1657 return pp_smu; in dcn21_pp_smu_create()
1659 dm_pp_get_funcs(ctx, pp_smu); in dcn21_pp_smu_create()
1661 if (pp_smu->ctx.ver != PP_SMU_VER_RN) in dcn21_pp_smu_create()
1662 pp_smu = memset(pp_smu, 0, sizeof(struct pp_smu_funcs)); in dcn21_pp_smu_create()
1665 return pp_smu; in dcn21_pp_smu_create()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_resource.c1430 static void dcn20_pp_smu_destroy(struct pp_smu_funcs **pp_smu);
1565 if (pool->base.pp_smu != NULL) in dcn20_resource_destruct()
1566 dcn20_pp_smu_destroy(&pool->base.pp_smu); in dcn20_resource_destruct()
3422 struct pp_smu_funcs *pp_smu = kzalloc(sizeof(*pp_smu), GFP_ATOMIC); in dcn20_pp_smu_create() local
3424 if (!pp_smu) in dcn20_pp_smu_create()
3425 return pp_smu; in dcn20_pp_smu_create()
3427 dm_pp_get_funcs(ctx, pp_smu); in dcn20_pp_smu_create()
3429 if (pp_smu->ctx.ver != PP_SMU_VER_NV) in dcn20_pp_smu_create()
3430 pp_smu = memset(pp_smu, 0, sizeof(struct pp_smu_funcs)); in dcn20_pp_smu_create()
3432 return pp_smu; in dcn20_pp_smu_create()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c956 struct pp_smu_funcs *pp_smu = kzalloc(sizeof(*pp_smu), GFP_KERNEL); in dcn10_pp_smu_create() local
958 if (!pp_smu) in dcn10_pp_smu_create()
959 return pp_smu; in dcn10_pp_smu_create()
961 dm_pp_get_funcs(ctx, pp_smu); in dcn10_pp_smu_create()
962 return pp_smu; in dcn10_pp_smu_create()
1047 kfree(pool->base.pp_smu); in dcn10_resource_destruct()
1540 pool->base.pp_smu = dcn10_pp_smu_create(ctx); in dcn10_resource_construct()
1546 if (pool->base.pp_smu != NULL in dcn10_resource_construct()
1547 && pool->base.pp_smu->rv_funcs.set_pme_wa_enable != NULL) in dcn10_resource_construct()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr.h33 struct pp_smu_funcs *pp_smu,
Ddcn30_clk_mgr.c534 struct pp_smu_funcs *pp_smu, in dcn3_clk_mgr_construct() argument
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
Ddcn31_clk_mgr.h44 struct pp_smu_funcs *pp_smu,
Ddcn31_clk_mgr.c632 struct pp_smu_funcs *pp_smu, in dcn31_clk_mgr_construct() argument
640 clk_mgr->base.pp_smu = pp_smu; in dcn31_clk_mgr_construct()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
Dvg_clk_mgr.h44 struct pp_smu_funcs *pp_smu,
Dvg_clk_mgr.c732 struct pp_smu_funcs *pp_smu, in vg_clk_mgr_construct() argument
740 clk_mgr->base.pp_smu = pp_smu; in vg_clk_mgr_construct()
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dclk_mgr.h287 struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pp_smu, struct dccg …
Dclk_mgr_internal.h217 struct pp_smu_funcs *pp_smu; member
/drivers/gpu/drm/amd/display/dc/dcn301/
Ddcn301_resource.c1532 struct pp_smu_funcs *pp_smu, in set_wm_ranges() argument
1572 pp_smu->nv_funcs.set_wm_ranges(&pp_smu->nv_funcs.pp_smu, &ranges); in set_wm_ranges()
1877 if (!dc->debug.disable_pplib_wm_range && pool->base.pp_smu->nv_funcs.set_wm_ranges) in dcn301_resource_construct()
1878 set_wm_ranges(pool->base.pp_smu, &dcn3_01_soc); in dcn301_resource_construct()
/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h220 struct pp_smu_funcs *pp_smu; member
/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calcs.c1553 if (dc->res_pool->pp_smu) in dcn_bw_notify_pplib_of_wm_ranges()
1554 pp = &dc->res_pool->pp_smu->rv_funcs; in dcn_bw_notify_pplib_of_wm_ranges()
1608 pp->set_wm_ranges(&pp->pp_smu, &ranges); in dcn_bw_notify_pplib_of_wm_ranges()

12