DC Patches May 25th, 2020
cover DC Patches May 25th, 2020
This DC patchset brings improvements in multiple areas. In summary, we have:
* Fixes on HDCP, eDP, etc.
* Enhancements on interrupt handling, code security and others.
---------------------------------------------------------------
Alvin Lee (2):
drm/amd/display: Disable PG on NV12
drm/amd/display: Don't compare same stream for synchronized vblank
Anthony Koo (2):
drm/amd/display: combine public interfaces into single header drm/amd/display: [FW Promotion] Release 1.0.12
Aric Cyr (5):
drm/amd/display: 3.2.86
drm/amd/display: Fix potential integer wraparound resulting in a hang drm/amd/display: Handle link loss interrupt better drm/amd/display: Guard against invalid array access drm/amd/display: 3.2.87
Bhawanpreet Lakha (1):
drm/amd/display: Fix incorrect HDCP caps for dongle
David Galiffi (1):
drm/amd/display: Increase Default Sizes of FW State and Trace Buffer
Dmytro Laktyushkin (1):
drm/amd/display: simplify dml log2 function
Eric Bernstein (1):
drm/amd/display: Allow Diagnostics test with eDP not connected
Hugo Hu (1):
drm/amd/display: enable plane if container of plane_status changed
Paul Hsieh (2):
drm/amd/display: link_status not align when power off encoder drm/amd/display: unit show garbage when do OPTC blank
.../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 8 +- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 26 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_link.h | 4 +- .../display/dc/dce110/dce110_hw_sequencer.c | 2 + .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 +- .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 21 +- .../drm/amd/display/dc/dcn20/dcn20_resource.c | 10 +- .../drm/amd/display/dc/dml/dml_inline_defs.h | 20 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 4 - .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 391 +++++++++++++++++- .../drm/amd/display/dmub/inc/dmub_cmd_dal.h | 91 ---- .../drm/amd/display/dmub/inc/dmub_cmd_vbios.h | 41 -- .../drm/amd/display/dmub/inc/dmub_fw_meta.h | 65 --- .../drm/amd/display/dmub/inc/dmub_gpint_cmd.h | 75 ---- .../gpu/drm/amd/display/dmub/inc/dmub_rb.h | 154 ------- .../gpu/drm/amd/display/dmub/inc/dmub_types.h | 78 ---- .../gpu/drm/amd/display/dmub/src/dmub_dcn20.h | 2 +- .../gpu/drm/amd/display/dmub/src/dmub_reg.h | 2 +- .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 6 +- .../amd/display/modules/power/power_helpers.c | 2 +- 23 files changed, 453 insertions(+), 568 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_dal.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_vbios.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_fw_meta.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_gpint_cmd.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_rb.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_types.h
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 1/16 drm/amd/display: 3.2.86
From: Aric Cyr <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc.h +1 -1
@@ -42,7 +42,7 @@#include "inc/hw/dmcu.h" #include "dml/display_mode_lib.h" -#define DC_VER "3.2.85" +#define DC_VER "3.2.86"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/16 drm/amd/display: link_status not align when power off encoder
In reply to Qingqing ZhuoFrom: Paul Hsieh <[email protected]>
[Why]
The link_status is incorrect cause driver power off eDP when backlight on. Some eDP panels may show garbage on screen.
[How]
Correct link_status when power off encoder
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -0
@@ -1443,6 +1443,8 @@ static void power_down_encoders(struct dc *dc) dc->links[i]->link_enc->funcs->disable_output ( dc->links[i]->link_enc, signal); + + dc->links[i]->link_status.link_active = false; } }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/16 drm/amd/display: Fix incorrect HDCP caps for dongle
In reply to Qingqing ZhuoFrom: Bhawanpreet Lakha <[email protected]>
[Why]
Previously we used link signal type to get the caps. We should use the sink signal type
[How]
Use sink signal type instead of link signal type
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 ++-- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 8 ++++---- drivers/gpu/drm/amd/display/dc/dc_link.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +2 -2
@@ -859,8 +859,8 @@ static int hdcp_sink_capability_show(struct seq_file *m, void *data)seq_printf (m,"%s:%d HDCP version: " , connector->name, connector->base.id); - hdcp_cap =dc_link_is_hdcp14 (aconnector->dc_link); - hdcp2_cap =dc_link_is_hdcp22 (aconnector->dc_link); + hdcp_cap =dc_link_is_hdcp14 (aconnector->dc_link, aconnector->dc_sink->sink_signal); + hdcp2_cap =dc_link_is_hdcp22 (aconnector->dc_link, aconnector->dc_sink->sink_signal);if (hdcp_cap)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +4 -4
@@ -521,11 +521,11 @@ static void link_disconnect_remap(struct dc_sink *prev_sink, struct dc_link *lin }#if defined(CONFIG_DRM_AMD_DC_HDCP ) -bool dc_link_is_hdcp14 (struct dc_link *link) +bool dc_link_is_hdcp14 (struct dc_link *link,enum signal_type signal) {bool ret = false; -switch (link->connector_signal) { +switch (signal) {case SIGNAL_TYPE_DISPLAY_PORT :case SIGNAL_TYPE_DISPLAY_PORT_MST : ret = link->hdcp_caps.bcaps.bits.HDCP_CAPABLE;
@@ -545,11 +545,11 @@ bool dc_link_is_hdcp14(struct dc_link *link)return ret; } -bool dc_link_is_hdcp22 (struct dc_link *link) +bool dc_link_is_hdcp22 (struct dc_link *link,enum signal_type signal) {bool ret = false; -switch (link->connector_signal) { +switch (signal) {case SIGNAL_TYPE_DISPLAY_PORT :case SIGNAL_TYPE_DISPLAY_PORT_MST : ret = (link->hdcp_caps.bcaps.bits.HDCP_CAPABLE &&
drivers/gpu/drm/amd/display/dc/dc_link.h +2 -2
@@ -312,8 +312,8 @@ bool dc_link_detect_sink(struct dc_link *link, enum dc_connection_type *type);*/ #ifdef CONFIG_DRM_AMD_DC_HDCP -bool dc_link_is_hdcp14 (struct dc_link *link); -bool dc_link_is_hdcp22 (struct dc_link *link); +bool dc_link_is_hdcp14 (struct dc_link *link,enum signal_type signal); +bool dc_link_is_hdcp22 (struct dc_link *link,enum signal_type signal);#endif void dc_link_set_drive_settings(struct dc *dc, struct link_training_settings *lt_settings,
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/16 drm/amd/display: simplify dml log2 function
In reply to Qingqing ZhuoFrom: Dmytro Laktyushkin <[email protected]>
Current implementation is slightly inaccurate and will often result in truncation/floor operation decrementing an exact integer output by 1.
Only rounded down output is ever expected, just extract the fp exponent for this to increase performance and avoid any truncation issues.
--- .../drm/amd/display/dc/dml/dml_inline_defs.h | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h +13 -7
@@ -86,9 +86,20 @@ static inline double dml_round(double a)return floor; } -static inline double dml_log2 (double x) +/* float +static inline int dml_log2(float x) { -return (double )dcn_bw_log (x,2 ); +unsigned int ix = *((unsigned int *)&x); + +return (int)((ix >> 23) & 0xff) - 127; +}*/ + +/* double */ +static inline int dml_log2 (double x) +{ +unsigned long long ix = *((unsigned long long *)&x); + +return (int )((ix >>52 ) &0x7ff ) -1023 ; }static inline double dml_pow (double a,int exp)
@@ -116,11 +127,6 @@ static inline double dml_floor_ex(double x, double granularity)return (double )dcn_bw_floor2 (x, granularity); } -static inline double dml_log (double x,double base) -{ -return (double )dcn_bw_log (x, base); -} -static inline unsigned int dml_round_to_multiple (unsigned int num,unsigned int multiple,unsigned char up)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/16 drm/amd/display: Fix potential integer wraparound resulting in a hang
In reply to Qingqing ZhuoFrom: Aric Cyr <[email protected]>
[Why]
If VUPDATE_END is before VUPDATE_START the delay calculated can become very large, causing a soft hang.
[How]
Take the absolute value of the difference between START and END.
--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +2 -0
@@ -1742,6 +1742,8 @@ static void delay_cursor_until_vupdate(struct dc *dc, struct pipe_ctx *pipe_ctx)return ;/* Stall out until the cursor update completes. */ +if (vupdate_end < vupdate_start) + vupdate_end += stream->timing.v_total; us_vupdate = (vupdate_end - vupdate_start +1 ) * us_per_line;udelay (us_to_vupdate + us_vupdate); }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/16 drm/amd/display: Handle link loss interrupt better
In reply to Qingqing ZhuoFrom: Aric Cyr <[email protected]>
[Why]
Link loss currently only retrains and re-enables the stream. This can cause issues for some sinks.
[How]
When link loss occurs, the link and stream(s) should be completely disabled and then reenabled.
--- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +9 -17
@@ -2849,7 +2849,6 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpdenum dc_status result;bool status = false;struct pipe_ctx *pipe_ctx; -struct dc_link_settings previous_link_settings;int i;if (out_link_loss)
@@ -2925,12 +2924,6 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpdsizeof (hpd_irq_dpcd_data), "Status: "); -for (i =0 ; i <MAX_PIPES ; i++) { - pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; -if (pipe_ctx && pipe_ctx->stream && pipe_ctx->stream->link == link) - link->dc->hwss.blank_stream (pipe_ctx); - } -for (i =0 ; i <MAX_PIPES ; i++) { pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i];if (pipe_ctx && pipe_ctx->stream && pipe_ctx->stream->link == link)
@@ -2940,20 +2933,19 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpdif (pipe_ctx ==NULL || pipe_ctx->stream ==NULL )return false; - previous_link_settings = link->cur_link_settings; -perform_link_training_with_retries (&previous_link_settings, - true,LINK_TRAINING_ATTEMPTS , - pipe_ctx, - pipe_ctx->stream->signal); - -if (pipe_ctx->stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST ) -dc_link_reallocate_mst_payload (link); +for (i =0 ; i <MAX_PIPES ; i++) { + pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; +if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off && + pipe_ctx->stream->link == link) +core_link_disable_stream (pipe_ctx); + }for (i =0 ; i <MAX_PIPES ; i++) { pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; -if (pipe_ctx && pipe_ctx->stream && pipe_ctx->stream->link == link) - link->dc->hwss.unblank_stream (pipe_ctx, &previous_link_settings); +if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off && + pipe_ctx->stream->link == link) +core_link_enable_stream (link->dc->current_state, pipe_ctx); } status = false;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/16 drm/amd/display: Increase Default Sizes of FW State and Trace Buffer
In reply to Qingqing ZhuoFrom: David Galiffi <[email protected]>
[WHY]
To facilitate DM removing the dependency between dc and the firmware binary.
[HOW]
Setting the default values to match VBIOS: 64 KB. These values are only used if meta is absent.
--- drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +2 -2
@@ -47,10 +47,10 @@#define DMUB_MAILBOX_SIZE (DMUB_RB_SIZE)/* Default state size if meta is absent. */ -#define DMUB_FW_STATE_SIZE (1024) +#define DMUB_FW_STATE_SIZE (64 * 1024)/* Default tracebuffer size if meta is absent. */ -#define DMUB_TRACE_BUFFER_SIZE (1024) +#define DMUB_TRACE_BUFFER_SIZE (64 * 1024)/* Default scratch mem size. */ #define DMUB_SCRATCH_MEM_SIZE (256)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/16 drm/amd/display: Disable PG on NV12
In reply to Qingqing ZhuoFrom: Alvin Lee <[email protected]>
[Why]
HW team request to disable PG on NV12 (fixing missed cases)
[How]
Disable dpp and hubp PG
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +5 -1
@@ -4053,8 +4053,12 @@ static bool dcn20_resource_construct(// to be consumed. We could have created dcn20_init_hw to get // the same effect by checking ASIC rev, but there was a // request at some point to not check ASIC rev on hw sequencer. -if (ASICREV_IS_NAVI12_P (dc->ctx->asic_id.hw_internal_rev)) +if (ASICREV_IS_NAVI12_P (dc->ctx->asic_id.hw_internal_rev)) { dc->hwseq->funcs.enable_power_gating_plane =NULL ; + dc->debug.disable_dpp_power_gate = true; + dc->debug.disable_hubp_power_gate = true; + } + dc->caps.max_planes = pool->base.pipe_count;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/16 drm/amd/display: Guard against invalid array access
In reply to Qingqing ZhuoFrom: Aric Cyr <[email protected]>
[Why]
There are scenarios where no OPP is assigned to an OTG so its value is 0xF which is outside the size of the OPP array causing a potential driver crash.
[How]
Change the assert to an early return to guard against access. If there's no OPP assigned already, then OTG will be blank anyways so no functionality should be lost.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +10 -2
@@ -291,12 +291,20 @@ void dcn20_init_blank(/* get the OPTC source */ tg->funcs->get_optc_source (tg, &num_opps, &opp_id_src0, &opp_id_src1); -ASSERT (opp_id_src0 < dc->res_pool->res_cap->num_opp); + +if (opp_id_src0 >= dc->res_pool->res_cap->num_opp) { +ASSERT (false); +return ; + } opp = dc->res_pool->opps[opp_id_src0];if (num_opps ==2 ) { otg_active_width = otg_active_width /2 ; -ASSERT (opp_id_src1 < dc->res_pool->res_cap->num_opp); + +if (opp_id_src1 >= dc->res_pool->res_cap->num_opp) { +ASSERT (false); +return ; + } bottom_opp = dc->res_pool->opps[opp_id_src1]; }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 10/16 drm/amd/display: unit show garbage when do OPTC blank
In reply to Qingqing ZhuoFrom: Paul Hsieh <[email protected]>
[Why]
Unit enter to S4, garbage show on screen when do OPTC blank.
[How]
Wait for vblank then do OPTC blank
--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +3 -1
@@ -2581,8 +2581,10 @@ void dcn10_blank_pixel_data( } }else if (blank) { dc->hwss.set_abm_immediate_disable (pipe_ctx); -if (stream_res->tg->funcs->set_blank) +if (stream_res->tg->funcs->set_blank) { + stream_res->tg->funcs->wait_for_state (stream_res->tg,CRTC_STATE_VBLANK ); stream_res->tg->funcs->set_blank (stream_res->tg, blank); + } } }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 11/16 drm/amd/display: Allow Diagnostics test with eDP not connected
In reply to Qingqing ZhuoFrom: Eric Bernstein <[email protected]>
[Why]
Diagnostics DIO test with eDP not connected is required to run
[How]
Allow Diagnostics test with eDP not connected to skip link detection but still execute DIO test
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +4 -3
@@ -186,9 +186,10 @@ static bool create_links(bool should_destory_link = false;if (link->connector_signal ==SIGNAL_TYPE_EDP ) { -if (dc->config.edp_not_connected) - should_destory_link = true; -else if (dc->debug.remove_disconnect_edp) { +if (dc->config.edp_not_connected) { +if (!IS_DIAG_DC (dc->ctx->dce_environment)) + should_destory_link = true; + }else {enum dc_connection_type type;dc_link_detect_sink (link, &type);if (type == dc_connection_none)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 12/16 drm/amd/display: combine public interfaces into single header
In reply to Qingqing ZhuoFrom: Anthony Koo <[email protected]>
[Why]
We want to better encapsulate all driver-fw dependencies into a single file.
[How]
Combine all the headers under inc folder into a single header
--- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 4 - .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 383 +++++++++++++++++- .../drm/amd/display/dmub/inc/dmub_cmd_dal.h | 91 ----- .../drm/amd/display/dmub/inc/dmub_cmd_vbios.h | 41 -- .../drm/amd/display/dmub/inc/dmub_fw_meta.h | 65 --- .../drm/amd/display/dmub/inc/dmub_gpint_cmd.h | 75 ---- .../gpu/drm/amd/display/dmub/inc/dmub_rb.h | 154 ------- .../gpu/drm/amd/display/dmub/inc/dmub_types.h | 78 ---- .../gpu/drm/amd/display/dmub/src/dmub_dcn20.h | 2 +- .../gpu/drm/amd/display/dmub/src/dmub_reg.h | 2 +- .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +- .../amd/display/modules/power/power_helpers.c | 2 +- 12 files changed, 374 insertions(+), 525 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_dal.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_vbios.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_fw_meta.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_gpint_cmd.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_rb.h delete mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_types.h
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +0 -4
@@ -64,11 +64,7 @@* other component within DAL. */ -#include "inc/dmub_types.h" #include "inc/dmub_cmd.h" -#include "inc/dmub_gpint_cmd.h" -#include "inc/dmub_cmd_dal.h" -#include "inc/dmub_rb.h" #if defined(__cplusplus)extern "C" {
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +370 -13
430 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_dal.h deleted +0 -91
91 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd_vbios.h deleted +0 -41
41 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_fw_meta.h deleted +0 -65
65 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_gpint_cmd.h deleted +0 -75
75 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_rb.h deleted +0 -154
154 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/inc/dmub_types.h deleted +0 -78
78 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.h +1 -1
@@ -26,7 +26,7 @@#ifndef _DMUB_DCN20_H_#define _DMUB_DCN20_H_ -#include "../inc/dmub_types.h" +#include "../inc/dmub_cmd.h" struct dmub_srv ;
drivers/gpu/drm/amd/display/dmub/src/dmub_reg.h +1 -1
@@ -26,7 +26,7 @@#ifndef _DMUB_REG_H_#define _DMUB_REG_H_ -#include "../inc/dmub_types.h" +#include "../inc/dmub_cmd.h" struct dmub_srv ;
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +1 -1
@@ -26,7 +26,7 @@#include "../dmub_srv.h" #include "dmub_dcn20.h" #include "dmub_dcn21.h" -#include "dmub_fw_meta.h" +#include "dmub_cmd.h" #include "os_types.h" /* * Note: the DMUB service is standalone. No additional headers should be
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +1 -1
@@ -27,7 +27,7 @@#include "dc/inc/hw/abm.h" #include "dc.h" #include "core_types.h" -#include "dmub_cmd_dal.h" +#include "dmub_cmd.h" #define DIV_ROUNDUP (a, b) (((a)+((b)/2))/(b))#define bswap16_based_on_endian (big_endian, value) \
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 13/16 drm/amd/display: enable plane if container of plane_status changed
In reply to Qingqing ZhuoFrom: Hugo Hu <[email protected]>
[why]
We hit an issue which driver reallocate a pipe from desktop bottom pipe to video bottom pipe. In this case, driver need to re-enable plane.
[how]
Enable plane if container of plane status changed.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +8 -1
@@ -1160,13 +1160,20 @@ void dcn20_pipe_control_lock(static void dcn20_detect_pipe_changes (struct pipe_ctx *old_pipe,struct pipe_ctx *new_pipe) { +bool plane_state_update = false; new_pipe->update_flags.raw =0 ;/* Exit on unchanged, unused pipe */ if (!old_pipe->plane_state && !new_pipe->plane_state)return ; + +/* Detect plane state update */ +if (old_pipe->plane_state && new_pipe->plane_state + && (old_pipe->plane_state != new_pipe->plane_state)) { + plane_state_update = true; + }/* Detect pipe enable/disable */ -if (!old_pipe->plane_state && new_pipe->plane_state) { +if ((!old_pipe->plane_state && new_pipe->plane_state) || plane_state_update) { new_pipe->update_flags.bits.enable =1 ; new_pipe->update_flags.bits.mpcc =1 ; new_pipe->update_flags.bits.dppclk =1 ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 14/16 drm/amd/display: [FW Promotion] Release 1.0.12
In reply to Qingqing ZhuoFrom: Anthony Koo <[email protected]>
[Header Changes]
- Combine all interface dependencies between driver and fw into a single header file
- Add FW Versioning to the dmub_cmd.h file
--- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +8 -0
@@ -34,6 +34,14 @@#include "atomfirmware.h" +/* Firmware versioning. */ +#ifdef DMUB_EXPOSE_VERSION +#define DMUB_FW_VERSION_GIT_HASH 0x718f63a96 +#define DMUB_FW_VERSION_MAJOR 1 +#define DMUB_FW_VERSION_MINOR 0 +#define DMUB_FW_VERSION_REVISION 12 +#define DMUB_FW_VERSION_UCODE ((DMUB_FW_VERSION_MAJOR << 24) | (DMUB_FW_VERSION_MINOR << 16) | DMUB_FW_VERSION_REVISION) +#endif //<DMUB_TYPES>================================================================== /* Basic type definitions. */
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 15/16 drm/amd/display: Don't compare same stream for synchronized vblank
In reply to Qingqing ZhuoFrom: Alvin Lee <[email protected]>
[Why]
When determining synchronzied vblank we don't need to compare the stream with itself
[How]
If comparing same stream, continue to next iteration
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +4 -0
@@ -2015,6 +2015,10 @@ int dcn20_populate_dml_pipes_from_context( pipe_cnt = i;continue ; } + +if (res_ctx->pipe_ctx[pipe_cnt].stream == res_ctx->pipe_ctx[i].stream) +continue ; +if (dc->debug.disable_timing_sync || !resource_are_streams_timing_synchronizable ( res_ctx->pipe_ctx[pipe_cnt].stream, res_ctx->pipe_ctx[i].stream)) {
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 16/16 drm/amd/display: 3.2.87
In reply to Qingqing ZhuoFrom: Aric Cyr <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc.h +1 -1
@@ -42,7 +42,7 @@#include "inc/hw/dmcu.h" #include "dml/display_mode_lib.h" -#define DC_VER "3.2.86" +#define DC_VER "3.2.87"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx