/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dmub_hw_lock_mgr.c | 31 void dmub_hw_lock_mgr_cmd(struct dc_dmub_srv *dmub_srv, in dmub_hw_lock_mgr_cmd() argument 50 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_hw_lock_mgr_cmd() 53 void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv, in dmub_hw_lock_mgr_inbox0_cmd() argument 59 dc_dmub_srv_clear_inbox0_ack(dmub_srv); in dmub_hw_lock_mgr_inbox0_cmd() 60 dc_dmub_srv_send_inbox0_cmd(dmub_srv, data); in dmub_hw_lock_mgr_inbox0_cmd() 61 dc_dmub_srv_wait_for_inbox0_ack(dmub_srv); in dmub_hw_lock_mgr_inbox0_cmd() 67 if (!link->ctx->dmub_srv) in should_use_dmub_lock()
|
H A D | dmub_hw_lock_mgr.h | 32 void dmub_hw_lock_mgr_cmd(struct dc_dmub_srv *dmub_srv, 37 void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv,
|
H A D | dmub_outbox.c | 39 void dmub_enable_outbox_notification(struct dc_dmub_srv *dmub_srv) in dmub_enable_outbox_notification() argument 51 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_enable_outbox_notification()
|
H A D | dmub_outbox.h | 31 void dmub_enable_outbox_notification(struct dc_dmub_srv *dmub_srv);
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stat.c | 55 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_notification() 85 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_dataout()
|
H A D | dc.c | 544 dc_stream_forward_dmub_crc_window(struct dc_dmub_srv *dmub_srv, in dc_stream_forward_dmub_crc_window() argument 564 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_NO_WAIT); in dc_stream_forward_dmub_crc_window() 582 struct dc_dmub_srv *dmub_srv; in dc_stream_forward_crc_window() local 602 dmub_srv = dc->ctx->dmub_srv; in dc_stream_forward_crc_window() 605 if (dmub_srv) in dc_stream_forward_crc_window() 606 dc_stream_forward_dmub_crc_window(dmub_srv, rect, &mux_mapping, is_stop); in dc_stream_forward_crc_window() 617 dc_stream_forward_dmub_multiple_crc_window(struct dc_dmub_srv *dmub_srv, in dc_stream_forward_dmub_multiple_crc_window() argument 641 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_NO_WAIT); in dc_stream_forward_dmub_multiple_crc_window() 648 struct dc_dmub_srv *dmub_srv; in dc_stream_forward_multiple_crc_window() local 667 dmub_srv = dc->ctx->dmub_srv; in dc_stream_forward_multiple_crc_window() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_dmub_srv.h | 32 struct dmub_srv; 49 struct dmub_srv *dmub; 93 void dc_dmub_srv_clear_inbox0_ack(struct dc_dmub_srv *dmub_srv); 94 void dc_dmub_srv_wait_for_inbox0_ack(struct dc_dmub_srv *dmub_srv); 95 void dc_dmub_srv_send_inbox0_cmd(struct dc_dmub_srv *dmub_srv, union dmub_inbox0_data_register data… 103 bool dc_dmub_check_min_version(struct dmub_srv *srv);
|
H A D | dc_dmub_srv.c | 45 struct dmub_srv *dmub) in dc_dmub_srv_construct() 51 struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub) in dc_dmub_srv_create() 66 void dc_dmub_srv_destroy(struct dc_dmub_srv **dmub_srv) in dc_dmub_srv_destroy() argument 68 if (*dmub_srv) { in dc_dmub_srv_destroy() 69 kfree(*dmub_srv); in dc_dmub_srv_destroy() 70 *dmub_srv = NULL; in dc_dmub_srv_destroy() 76 struct dmub_srv *dmub; in dc_dmub_srv_wait_for_pending() 100 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_clear_inbox0_ack() 113 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_for_inbox0_ack() 127 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_send_inbox0_cmd() [all …]
|
/linux/drivers/gpu/drm/amd/display/dmub/src/ |
H A D | dmub_reg.h | 31 struct dmub_srv; 114 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n, 117 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1, 120 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift,
|
H A D | dmub_dcn351.h | 9 struct dmub_srv; 11 void dmub_srv_dcn351_regs_init(struct dmub_srv *dmub, struct dc_context *ctx);
|
H A D | dmub_dcn30.h | 37 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub, 41 void dmub_dcn30_setup_windows(struct dmub_srv *dmub,
|
H A D | dmub_reg.c | 72 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1, in dmub_reg_update() 89 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n, in dmub_reg_set() 104 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift, in dmub_reg_get()
|
H A D | dmub_dcn30.c | 60 static void dmub_dcn30_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn30_get_fb_base_offset() 87 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub, in dmub_dcn30_backdoor_load() 122 void dmub_dcn30_setup_windows(struct dmub_srv *dmub, in dmub_dcn30_setup_windows()
|
H A D | dmub_dcn314.h | 33 bool dmub_dcn314_is_psrsu_supported(struct dmub_srv *dmub);
|
H A D | dmub_dcn314.c | 64 bool dmub_dcn314_is_psrsu_supported(struct dmub_srv *dmub) in dmub_dcn314_is_psrsu_supported()
|
H A D | dmub_dcn351.c | 16 void dmub_srv_dcn351_regs_init(struct dmub_srv *dmub, struct dc_context *ctx) in dmub_srv_dcn351_regs_init()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_replay.c | 97 if (!dc->ctx->dmub_srv || !dc->ctx->dmub_srv->dmub || in amdgpu_dm_set_replay_caps() 98 !dc->ctx->dmub_srv->dmub->feature_caps.replay_supported) in amdgpu_dm_set_replay_caps()
|
H A D | amdgpu_dm.c | 1206 struct dmub_srv *dmub_srv = adev->dm.dmub_srv; in dm_dmub_hw_init() local 1218 if (!dmub_srv) in dm_dmub_hw_init() 1234 if (dmub_srv->hw_funcs.init_reg_offsets) in dm_dmub_hw_init() 1235 dmub_srv->hw_funcs.init_reg_offsets(dmub_srv, ctx); in dm_dmub_hw_init() 1237 status = dmub_srv_has_hw_support(dmub_srv, &has_hw_support); in dm_dmub_hw_init() 1249 status = dmub_srv_hw_reset(dmub_srv); in dm_dmub_hw_init() 1340 status = dmub_srv_hw_init(dmub_srv, &hw_params); in dm_dmub_hw_init() 1347 status = dmub_srv_wait_for_auto_load(dmub_srv, 100000); in dm_dmub_hw_init() 1357 if (!adev->dm.dc->ctx->dmub_srv) in dm_dmub_hw_init() 1358 adev->dm.dc->ctx->dmub_srv = dc_dmub_srv_create(adev->dm.dc, dmub_srv); in dm_dmub_hw_init() [all …]
|
H A D | amdgpu_dm_debugfs.c | 918 if (adev->dm.dmub_srv) in dmub_tracebuffer_show() 919 fw_meta_info = &adev->dm.dmub_srv->meta_info; in dmub_tracebuffer_show() 1028 if (dc->ctx->dmub_srv && dc->ctx->dmub_srv->dmub) in replay_capability_show() 1030 (bool)dc->ctx->dmub_srv->dmub->feature_caps.replay_supported; in replay_capability_show() 2685 dc_dmub_srv = dc->ctx->dmub_srv; in ips_status_show() 3216 struct dmub_srv *srv = adev->dm.dc->ctx->dmub_srv->dmub; in dmub_trace_mask_set() 3260 struct dmub_srv *srv = adev->dm.dc->ctx->dmub_srv->dmub; in dmub_trace_mask_show()
|
/linux/drivers/gpu/drm/amd/display/dmub/ |
H A D | dmub_srv_stat.h | 38 enum dmub_status dmub_srv_stat_get_notification(struct dmub_srv *dmub,
|
/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_panel_cntl.c | 44 struct dc_dmub_srv *dc_dmub_srv = panel_cntl->ctx->dmub_srv; in dcn31_query_backlight_info() 71 struct dc_dmub_srv *dc_dmub_srv = panel_cntl->ctx->dmub_srv; in dcn31_panel_cntl_hw_init()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn31/ |
H A D | dcn31_hwseq.c | 276 dc_dmub_srv_query_caps_cmd(dc->ctx->dmub_srv); in dcn31_init_hw() 277 dc->caps.dmub_caps.psr = dc->ctx->dmub_srv->dmub->feature_caps.psr; in dcn31_init_hw() 278 dc->caps.dmub_caps.mclk_sw = dc->ctx->dmub_srv->dmub->feature_caps.fw_assisted_mclk_switch_ver; in dcn31_init_hw() 438 if (!dc_dmub_srv_is_restore_required(dc->ctx->dmub_srv)) in dcn31_z10_restore()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn35/ |
H A D | dcn35_hwseq.c | 267 if (dc->ctx->dmub_srv) { in dcn35_init_hw() 313 if (dc->ctx->dmub_srv) { in dcn35_init_hw() 314 dc_dmub_srv_query_caps_cmd(dc->ctx->dmub_srv); in dcn35_init_hw() 315 dc->caps.dmub_caps.psr = dc->ctx->dmub_srv->dmub->feature_caps.psr; in dcn35_init_hw() 316 dc->caps.dmub_caps.mclk_sw = dc->ctx->dmub_srv->dmub->feature_caps.fw_assisted_mclk_switch_ver; in dcn35_init_hw() 317 …dc->caps.dmub_caps.aux_backlight_support = dc->ctx->dmub_srv->dmub->feature_caps.abm_aux_backlight… in dcn35_init_hw()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
H A D | dcn401_hwseq.c | 346 if (dc->ctx->dmub_srv) { in dcn401_init_hw() 347 dc_dmub_srv_query_caps_cmd(dc->ctx->dmub_srv); in dcn401_init_hw() 348 dc->caps.dmub_caps.psr = dc->ctx->dmub_srv->dmub->feature_caps.psr; in dcn401_init_hw() 349 …dc->caps.dmub_caps.mclk_sw = dc->ctx->dmub_srv->dmub->feature_caps.fw_assisted_mclk_switch_ver > 0; in dcn401_init_hw() 350 dc->caps.dmub_caps.fams_ver = dc->ctx->dmub_srv->dmub->feature_caps.fw_assisted_mclk_switch_ver; in dcn401_init_hw() 1265 if (!dc->ctx->dmub_srv || !dc->current_state) in dcn401_apply_idle_power_optimizations() 1471 if (!dc->ctx || !dc->ctx->dmub_srv || !dc->debug.fams2_config.bits.enable) in dcn401_fams2_global_control_lock() 1478 dmub_hw_lock_mgr_inbox0_cmd(dc->ctx->dmub_srv, hw_lock_cmd); in dcn401_fams2_global_control_lock() 1493 dmub_hw_lock_mgr_inbox0_cmd(dc->ctx->dmub_srv, hw_lock_cmd); in dcn401_fams2_global_control_lock_fast() 1501 if (!dc->ctx || !dc->ctx->dmub_srv || !dc->debug.fams2_config.bits.enable) in dcn401_fams2_update_config()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
H A D | dcn30_hwseq.c | 824 dc_dmub_srv_query_caps_cmd(dc->ctx->dmub_srv); in dcn30_init_hw() 825 dc->caps.dmub_caps.psr = dc->ctx->dmub_srv->dmub->feature_caps.psr; in dcn30_init_hw() 826 dc->caps.dmub_caps.mclk_sw = dc->ctx->dmub_srv->dmub->feature_caps.fw_assisted_mclk_switch_ver; in dcn30_init_hw() 917 if (!dc->ctx->dmub_srv) in dcn30_apply_idle_power_optimizations()
|