[PATCH 03/10] drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

2024-01-04 Thread Rodrigo Siqueira
OTG master. Also move the disconnection to before the OTG master disable, since the register is double buffered. Reviewed-by: Dillon Varone Acked-by: Rodrigo Siqueira Signed-off-by: George Shen --- .../amd/display/dc/optc/dcn32/dcn32_optc.c| 19 +-- .../amd/display/dc/optc

[PATCH 01/10] drm/amd/display: allow z8/z10 from driver

2024-01-04 Thread Rodrigo Siqueira
From: Charlene Liu Copy StutterPeriod from DML2 into DML1 StutterPeriod parameter. Reviewed-by: Muhammad Ahmed Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Charlene Liu --- drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 00/10] DC Patches Jan 04, 2024

2024-01-04 Thread Rodrigo Siqueira
This DC patchset brings improvements in multiple areas. In summary, we have: - Improve z8/z10 support - Revert some of the VRR optimization - Improve usb4 when using MST Thanks Siqueira Cc: Daniel Wheeler Aric Cyr (1): drm/amd/display: 3.2.266 Charlene Liu (2): drm/amd/display: allow

Re: [PATCH v2] drm/amd/display: Adjust kdoc for 'dcn35_hw_block_power_down' & 'dcn35_hw_block_power_up'

2023-12-21 Thread Rodrigo Siqueira Jordao
Cc: Muhammad Ahmed Cc: Hamza Mahfooz Cc: Rodrigo Siqueira Cc: Aurabindo Pillai Cc: Alex Deucher Cc: Srinath Rao Signed-off-by: Srinivasan Shanmugam --- v2: - Added explaination for power down & power up sequence (Rodrigo) - Removed documenting return void. (Rodrigo) .../amd/dis

Re: [PATCH] drm/amd/display: Adjust kdoc for 'dcn35_hw_block_power_down' & 'dcn35_hw_block_power_up'

2023-12-21 Thread Rodrigo Siqueira Jordao
Cc: Muhammad Ahmed Cc: Hamza Mahfooz Cc: Rodrigo Siqueira Cc: Aurabindo Pillai Cc: Alex Deucher Cc: Srinath Rao Signed-off-by: Srinivasan Shanmugam --- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 66 +++ 1 file changed, 39 insertions(+), 27 deletions(-) diff --git

Re: [PATCH v2] drm/amd/display: Address function parameter 'context' not described in 'dc_state_rem_all_planes_for_stream' & 'populate_subvp_cmd_drr_info'

2023-12-21 Thread Rodrigo Siqueira Jordao
Cc: Hamza Mahfooz Cc: Aurabindo Pillai Cc: Rodrigo Siqueira Cc: Alex Deucher Cc: Srinath Rao Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/display/dc/core/dc_state.c | 2 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 ++- 2 files changed, 3 insertions(+), 2

Re: [PATCH] drm/amd/display: Disable IPS by default

2023-12-20 Thread Rodrigo Siqueira Jordao
Enable DWB for tested platforms only */ if (amdgpu_ip_version(adev, DCE_HWIP, 0) >= IP_VERSION(3, 0, 0)) init_data.num_virtual_links = 1; Reviewed-by: Rodrigo Siqueira

[PATCH 20/20] drm/amd/display: Add some functions for Panel Replay

2023-12-20 Thread Rodrigo Siqueira
From: Tom Chung [WHY] Prepare for enabling the Panel Replay feature [HOW] - Add some Panel Replay setting functions in DC - Add the Panel Replay resource in dcn35_resource.c - Add debug masks for Panel Replay Acked-by: Rodrigo Siqueira Reviewed-by: Leo Li Signed-off-by: Tom Chung

[PATCH 19/20] drm/amd/display: Fixing stream allocation regression

2023-12-20 Thread Rodrigo Siqueira
with detile buffer allocation, which dissallow subvp from being used Reviewed-by: Dillon Varone Reviewed-by: Martin Leung Acked-by: Rodrigo Siqueira Signed-off-by: Relja Vojvodic --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 18/20] drm/amd/display: Verify disallow bits were cleared for idle

2023-12-20 Thread Rodrigo Siqueira
the expected worst case scenario. Reviewed-by: Hansen Dsouza Reviewed-by: Ovidiu Bunea Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 17/20] drm/amd/display: Fix Mismatch between pipe and stream

2023-12-20 Thread Rodrigo Siqueira
From: Gabe Teeger [Why] Failing mode validation during dc_commit, leading to blackscreen with an 8k DP2 display during mode change. [What] Fix mixmatch between pipe and stream, which prevented us from recognizing the link as DP2. Reviewed-by: Dmytro Laktyushkin Acked-by: Rodrigo Siqueira

[PATCH 16/20] drm/amd/display: Refactor INIT into component folder

2023-12-20 Thread Rodrigo Siqueira
From: Revalla [why] Move all init files to hwss folder. [how] moved the dcnxx_init.c and .h files into inside the hwss and cleared the linkage errors. Reviewed-by: Martin Leung Acked-by: Rodrigo Siqueira Signed-off-by: Revalla --- drivers/gpu/drm/amd/display/dc/Makefile | 2

[PATCH 14/20] drm/amd/display: Add dpia display mode validation logic

2023-12-20 Thread Rodrigo Siqueira
and lane count and update reported link capability. - To calculate the bandwidth required for streams of dpia links per host router and validate against the allocated bandwidth for the host router. Reviewed-by: PeiChen Huang Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off

[PATCH 13/20] drm/amd/display: Switch DMCUB notify idle command to NO_WAIT

2023-12-20 Thread Rodrigo Siqueira
-by: Sung joon Kim Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index

[PATCH 15/20] drm/amd/display: For FPO and SubVP/DRR configs program vmin/max sel

2023-12-20 Thread Rodrigo Siqueira
From: Alvin Lee For FPO and SubVP/DRR cases we need to ensure to program OTG_V_TOTAL_MIN/MAX_SEL, otherwise stretching the vblank in FPO / SubVP / DRR cases will not have any effect and we could hit underflow / corruption. Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Alvin

[PATCH 12/20] drm/amd/display: Wait forever for DMCUB to wake up

2023-12-20 Thread Rodrigo Siqueira
be hardlocked. Reviewed-by: Sung joon Kim Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers

[PATCH 11/20] drm/amd/display: Always exit DMCUB idle when called

2023-12-20 Thread Rodrigo Siqueira
From: Nicholas Kazlauskas [Why] dc->idle_optimizations_allowed may be desynced with the hardware state. [How] Make sure we always exit out when dc_dmub_srv_exit_low_power_state is called by removing the check. Reviewed-by: Sung joon Kim Acked-by: Rodrigo Siqueira Signed-off-by: Nicho

[PATCH 09/20] drm/amd/display: Assign stream status for FPO + Vactive cases

2023-12-20 Thread Rodrigo Siqueira
Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32

[PATCH 08/20] drm/amd/display: pbn_div need be updated for hotplug event

2023-12-20 Thread Rodrigo Siqueira
From: Wayne Lin link_rate sometime will be changed when DP MST connector hotplug, so pbn_div also need be updated; otherwise, it will mismatch with link_rate, causes no output in external monitor. Cc: sta...@vger.kernel.org Reviewed-by: Jerry Zuo Acked-by: Rodrigo Siqueira Signed-off-by: Wade

[PATCH 10/20] drm/amd/display: Add log end specifier

2023-12-20 Thread Rodrigo Siqueira
Lee Acked-by: Rodrigo Siqueira Signed-off-by: Relja Vojvodic --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk

[PATCH 06/20] drm/amd/display: Fix minor issues in BW Allocation Phase2

2023-12-20 Thread Rodrigo Siqueira
dex(). - Updated link_dp_dpia_allocate_usb4_bandwidth_for_stream() and set_usb4_req_bw_req() to always issue request bw. Reviewed-by: PeiChen Huang Acked-by: Rodrigo Siqueira Signed-off-by: Meenakshikumar Somasundaram --- .../dc/link/protocols/link_dp_dpia_bw.c | 221 -- .../dc/l

[PATCH 07/20] drm/amd/display: Correctly restore user_level

2023-12-20 Thread Rodrigo Siqueira
user setting in ABM config initialization. Reviewed-by: Anthony Koo Acked-by: Rodrigo Siqueira Signed-off-by: Camille Cho --- drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 4 ++-- drivers/gpu/drm/amd/display/dc

[PATCH 02/20] drm/amd/display: Don't allow FPO if no planes

2023-12-20 Thread Rodrigo Siqueira
-State assertion), so block FPO if there's no plane for the FPO pipe. Acked-by: Rodrigo Siqueira Reviewed-by: Samson Tam Reviewed-by: Chaitanya Dhere Signed-off-by: Alvin Lee --- .../display/dc/dcn32/dcn32_resource_helpers.c | 18 +++--- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c

[PATCH 05/20] drm/amd/display: Add null pointer guards where needed

2023-12-20 Thread Rodrigo Siqueira
-by: Sung Lee Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Josip Pavic --- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 ++- 3 files changed, 10

[PATCH 04/20] drm/amd/display: Add HDMI capacity computations using fixed31_32

2023-12-20 Thread Rodrigo Siqueira
From: "Leo (Hanghong) Ma" [Why] Certain HDMI modes failed at dml cap check for uncompressed video but they can still be supported for compressed video. [How] Add HDMI capacity computations using fixed31_32 in dc side. Reviewed-by: Chris Park Acked-by: Rodrigo Siqueira Signed-o

[PATCH 03/20] drm/amd/display: Add more mechanisms for tests

2023-12-20 Thread Rodrigo Siqueira
. Ensured that the p_state type is kept updated by looping through the pipes within commit_planes_for_stream. Acked-by: Rodrigo Siqueira Reviewed-by: Alvin Lee Signed-off-by: Relja Vojvodic --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 90 - drivers/gpu/drm/amd/display/dc/core/dc.c

[PATCH 01/20] drm/amd/display: Fix subvp+drr logic errors

2023-12-20 Thread Rodrigo Siqueira
From: Alvin Lee [Why] There is some logic error where the wrong variable was used to check for OTG_MASTER and DPP_PIPE. [How] Add booleans to confirm that the expected pipes were found before validating schedulability. Acked-by: Rodrigo Siqueira Reviewed-by: Samson Tam Reviewed-by: Chaitanya

[PATCH 00/20] DC Patches December 20, 2023

2023-12-20 Thread Rodrigo Siqueira
Here we are at the end of the year, the last set of patches for DC. This DC patch set brings improvements in multiple areas. In summary, we highlight: * Address SubVP issues * Update DMUB * Improve mechanisms for test Thanks Siqueira Cc: Daniel Wheeler Alvin Lee (4): drm/amd/display: Fix

Re: [PATCH v3 3/9] drm/amd/display: read gamut remap matrix in fixed-point 31.32 format

2023-12-06 Thread Rodrigo Siqueira Jordao
put_format; uint32_t dgam_lut_mode; uint32_t rgam_lut_mode; + // gamut_remap data for dcn10_get_cm_states() uint32_t gamut_remap_mode; uint32_t gamut_remap_c11_c12; uint32_t gamut_remap_c13_c14; @@ -148,6 +149,8 @@ struct dcn_dpp_state { uint32_t gamut_remap_c23_c24; uint32_t gamut_remap_c31_c32; uint32_t gamut_remap_c33_c34; + // gamut_remap data for dcn*_log_color_state() + struct dpp_grph_csc_adjustment gamut_remap; }; struct CM_bias_params { Reviewed-by: Rodrigo Siqueira

Re: [PATCH v3 1/9] drm/amd/display: decouple color state from hw state log

2023-12-06 Thread Rodrigo Siqueira Jordao
DTN_INFO_BEGIN(); + + dcn10_log_hubbub_state(dc, log_ctx); + + dcn10_log_hubp_states(dc, log_ctx); + + dcn10_log_color_state(dc, log_ctx); DTN_INFO("OTG: v_bs v_be v_ss v_se vpol vmax vmin vmax_sel vmin_sel h_bs h_be h_ss h_se hpol htot vtot underflow blank_en\n"); Reviewed-by: Rodrigo Siqueira

[PATCH 45/47] drm/amd/display: Adjust code style

2023-12-01 Thread Rodrigo Siqueira
This simple commit adjusts part of the code style in some of the dc bios files. Reviewed-by: Aurabindo Pillai Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/bios/bios_parser2.c| 63 +-- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/drivers/gpu

[PATCH 47/47] drm/amd/display: 3.2.263

2023-12-01 Thread Rodrigo Siqueira
From: Aric Cyr This version brings along following fixes: * Enable writeback. * Add multiple fixes for DML2 and DCN35. * Introduce small code style adjustments. Acked-by: Rodrigo Siqueira Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion

[PATCH 35/47] drm/amd/display: Hande writeback request from userspace

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] Handle writeback requests and fill in the required information for DWB programming and setup. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 3 + .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 159

[PATCH 46/47] drm/amd/display: Update code comment to be more accurate

2023-12-01 Thread Rodrigo Siqueira
Reviewed-by: Aurabindo Pillai Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 102d00a9a24f..9d3925603979

[PATCH 43/47] drm/amd/display: Disable DWB frame capture to emulate oneshot

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHY] drm_writeback requires to capture exact one frame in each writeback call. [HOW] frame_capture is disabled after each writeback is completed. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 +-

[PATCH 34/47] drm/amd/display: Create fake sink and stream for writeback connector

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHAT] Writeback connectors don't have a physical sink but DC still needs a sink to function. Create a fake sink and stream for writeback connectors Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung ---

[PATCH 42/47] drm/amd/display: Add new set_fc_enable to struct dwbc_funcs

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] Add a function to enable and disable DWB's frame captures. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/dc/dcn30/dcn30_dwb.c | 23 +++ .../gpu/drm/amd/display/dc/dcn30/dcn30_dwb.h | 2 ++

[PATCH 40/47] drm/amd/display: Add writeback enable field (wb_enabled)

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] Add a new field to keep track whether a crtc is previously writeback-enabled. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 2 files

[PATCH 36/47] drm/amd/display: Add writeback enable/disable in dc

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] The enable and disable writeback calls need to be included in the coressponding functions in dc_stream. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/dc/core/dc_stream.c | 33 +++

[PATCH 44/47] drm/amd/display: Fix array-index-out-of-bounds in dml2

2023-12-01 Thread Rodrigo Siqueira
From: Roman Li [Why] UBSAN errors observed in dmesg. array-index-out-of-bounds in dml2/display_mode_core.c [How] Fix the index. Acked-by: Rodrigo Siqueira Signed-off-by: Roman Li --- drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 33/47] drm/amd/display: Create amdgpu_dm_wb_connector

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHY] We need to track the dc_link and it would get confusing if re-using the amdgpu_dm_connector. [HOW] Creating new amdgpu_dm_wb_connector. Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

[PATCH 39/47] drm/amd/display: Fix writeback_info is not removed

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHY] Counter j was not updated to present the num of writeback_info when writeback pipes are removed. [HOW] update j (num of writeback info) under the correct condition. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/dc/core/dc_stream.c

[PATCH 41/47] drm/amd/display: Setup for mmhubbub3_warmup_mcif with big buffer

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHY] Hardware may require different warmup approaches - big buffer or individual buffers. [HOW] Setup warmup for big buffer when it is required by specific hardware. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |

[PATCH 38/47] drm/amd/display: Validate hw_points_num before using it

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] hw_points_num is 0 before ogam LUT is programmed; however, function "dwb3_program_ogam_pwl" assumes hw_points_num is always greater than 0, i.e. substracting it by 1 as an array index. [HOW] Check hw_points_num is not equal to 0 before using it. Reviewed-by: Harry

[PATCH 37/47] drm/amd/display: Fix writeback_info never got updated

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHY] wb_enabled field is set to false before it is used, and the following code will never be executed. [HOW] Setting wb_enable to false after all removal work is completed. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung ---

[PATCH 32/47] drm/amd/display: Check writeback connectors in create_validate_stream_for_sink

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHY & HOW] This is to replace 24a2efb3aa08 to check connector type to avoid unhandled null pointer for writeback connectors. Fixes: 310b5f1a3c9e ("drm/amd/display: Revert "drm/amd/display: Use drm_connector in create_validate_stream_for_sink"") Signed-off-by: Alex Hung

[PATCH 30/47] drm/amd/display: Return drm_connector from find_first_crtc_matching_connector

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHY] We will be dealing with two types of connector: amdgpu_dm_connector and drm_writeback_connector. [HOW] We want to find both and then cast to the appriopriate type afterwards. Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung ---

[PATCH 27/47] drm/amd/display: Create one virtual connector in DC

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHAT] Prepare a virtual connector for writeback. Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +-- .../gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c | 3 ++- 2

[PATCH 31/47] drm/amd/display: Use drm_connector in create_stream_for_sink

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHAT] We need to use this function for both amdgpu_dm_connectors and drm_writeback_connectors. Modify it to operate on a drm_connector as a common base. Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung ---

[PATCH 29/47] drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHY] Writeback connectors are based on a different object: drm_writeback_connector, and are therefore different from amdgpu_dm_connector. We need to be careful to ensure code designed for amdgpu_dm_connector doesn't inadvertently try to operate on a drm_writeback_connector.

[PATCH 28/47] drm/amd/display: Initialize writeback connector

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung [WHAT] Create a drm_writeback_connector when connector signal equals SIGNAL_TYPE_VIRTUAL. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/amdgpu_dm/Makefile| 3 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 +-

[PATCH 25/47] drm/amd/display: Avoid virtual stream encoder if not explicitly requested

2023-12-01 Thread Rodrigo Siqueira
From: Alex Hung Virtual stream encoder should not be a free match for thunderbolt or usbc, and thus should be avoided. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c | 5 - 1 file changed

[PATCH 20/47] drm/amd/display: Add monitor patch for specific eDP

2023-12-01 Thread Rodrigo Siqueira
caps(HDR,OLED...etc) Reviewed-by: Sun peng Li Acked-by: Rodrigo Siqueira Signed-off-by: Ivan Lipski --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu

[PATCH 26/47] drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC

2023-12-01 Thread Rodrigo Siqueira
From: Harry Wentland [WHY] Previously this only excluded build for a few amdgpu_dm binaries which makes no sense. [HOW] Wrap the entire Makefile in "ifneq ($(CONFIG_DRM_AMD_DC),)" Reviewed-by: Alex Hung Signed-off-by: Harry Wentland Signed-off-by: Alex Hung ---

[PATCH 22/47] drm/amd/display: Add dml2 copy functions

2023-12-01 Thread Rodrigo Siqueira
From: Dillon Varone Add function to handle deep copying dml2 context. Reviewed-by: Chaitanya Dhere Acked-by: Rodrigo Siqueira Signed-off-by: Dillon Varone --- drivers/gpu/drm/amd/display/dc/core/dc.c | 15 +++--- .../drm/amd/display/dc/dml2/dml2_wrapper.c| 29

[PATCH 23/47] drm/amd/display: Fix Replay Desync Error IRQ handler

2023-12-01 Thread Rodrigo Siqueira
From: Dennis Chan In previous case, Replay didn't identify the IRQ type, This commit fixes the issues for the interrupt. Reviewed-by: Robin Chen Acked-by: Rodrigo Siqueira Signed-off-by: Dennis Chan --- .../display/dc/link/protocols/link_dp_irq_handler.c | 12 ++-- 1 file changed

[PATCH 21/47] drm/amd/display: add MPC MCM 1D LUT clock gating programming

2023-12-01 Thread Rodrigo Siqueira
From: Yihan Zhu Missing clock gating programming blocks memory power on from boot up. Reviewed-by: Chris Park Acked-by: Rodrigo Siqueira Signed-off-by: Yihan Zhu --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 3 ++- drivers/gpu/drm/amd/display/dc/resource/dcn35

[PATCH 16/47] drm/amd/display: Pass debug watermarks through to DCN35 DML2

2023-12-01 Thread Rodrigo Siqueira
trauss Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c b/drivers/gpu/drm/amd/d

[PATCH 24/47] drm/amd/display: add support for DTO genarated dscclk

2023-12-01 Thread Rodrigo Siqueira
to use dynamically generated DSCCLK by DTO. So DSCCLK is programmable based on current pixel clock and dispclk. Reviewed-by: Chaitanya Dhere Acked-by: Rodrigo Siqueira Signed-off-by: Wenjing Liu --- .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 25 + drivers/gpu/drm/amd/display

[PATCH 18/47] drm/amd/display: keep domain24 power on if eDP not exist

2023-12-01 Thread Rodrigo Siqueira
From: Charlene Liu This is w/a: we need to keep domain 24 power up in driver side, and let dmubfw handle it for S0i3. For last display unplugged, if OTG in PG, no interrupt call back coming. Reviewed-by: Chris Park Acked-by: Rodrigo Siqueira Signed-off-by: Charlene Liu --- .../amd/display

[PATCH 17/47] drm/amd/display: Added delay to DPM log

2023-12-01 Thread Rodrigo Siqueira
From: Relja Vojvodic HW registers were being read to quickly, causing incorrect values to be logged after a clock frequency was changed Reviewed-by: Martin Leung Acked-by: Rodrigo Siqueira Signed-off-by: Relja Vojvodic --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 26

[PATCH 13/47] drm/amd/display: Skip DPIA-specific DP LL automation flag for non-DPIA links

2023-12-01 Thread Rodrigo Siqueira
to skip_fallback_on_link_loss for clarity. Reviewed-by: Meenakshikumar Somasundaram Reviewed-by: Wenjing Liu Acked-by: Rodrigo Siqueira Signed-off-by: George Shen --- drivers/gpu/drm/amd/display/dc/dc.h | 8 +++- .../amd/display/dc/link/protocols/link_dp_irq_handler.c | 6 -- .../amd

[PATCH 19/47] drm/amd/display: Fix disable_otg_wa logic

2023-12-01 Thread Rodrigo Siqueira
as there are cases when we don't disable OTG/FIFO but FIFO is enabled when it isn't supposed to be. [How] Removing the enable/disable FIFO entirely. Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Susanto --- .../gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 8

[PATCH 14/47] drm/amd/display: Update BIOS FW info table revision

2023-12-01 Thread Rodrigo Siqueira
From: Chris Park [Why] BIOS FW info version 3.5 is introduced to support new ASICs, but it's content is currently same as 3.4. [How] Include minor version 5 in parsing to enable support. Reviewed-by: Dillon Varone Acked-by: Rodrigo Siqueira Signed-off-by: Chris Park --- drivers/gpu/drm/amd

[PATCH 12/47] drm/amd/display: Fix null pointer

2023-12-01 Thread Rodrigo Siqueira
From: Johnson Chen Add guard for NULL pointer access Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Johnson Chen --- drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c

[PATCH 09/47] drm/amd/display: insert drv-pmfw log + rollback to new context

2023-12-01 Thread Rodrigo Siqueira
From: Charlene Liu Rollback to new context for active display: this was previous tested sequence. Avoid to do OTG master toggle is no active display at all, this w/a was for fifo err. Reviewed-by: Chris Park Acked-by: Rodrigo Siqueira Signed-off-by: Charlene Liu --- .../display/dc/clk_mgr

[PATCH 10/47] drm/amd/display: Fix MST PBN/X.Y value calculations

2023-12-01 Thread Rodrigo Siqueira
From: Ilya Bakoulin Changing PBN calculation to be more in line with spec. We don't need to inflate PBN_NATIVE value by the 1.006 margin, since that is already taken care of in the get_pbn_per_slot function. Reviewed-by: Wenjing Liu Acked-by: Rodrigo Siqueira Signed-off-by: Ilya Bakoulin

[PATCH 15/47] drm/amd/display: revert removing otg toggle w/a back when no active display

2023-12-01 Thread Rodrigo Siqueira
leave the OTG running but DIO/PHY off you can hit this in cases where you have multiple displays as well it syncs with the first active OTG, so if you had OTG[0] mapped and FIFO off you'd hit it even if OTG[1] was mapped and had FIFO Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Sign

[PATCH 11/47] drm/amd/display: Use channel_width = 2 for vram table 3.0

2023-12-01 Thread Rodrigo Siqueira
From: Alvin Lee VBIOS has suggested to use channel_width=2 for any ASIC that uses vram info 3.0. This is because channel_width in the vram table no longer represents the memory width Reviewed-by: Samson Tam Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display

[PATCH 08/47] drm/amd/display: Increase scratch buffer size

2023-12-01 Thread Rodrigo Siqueira
From: Josip Pavic [Why] Larger data blocks are expected to be transferred between driver and FW in the future. [How] Embiggen the scratch buffer to a cromulent size. Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Signed-off-by: Josip Pavic --- drivers/gpu/drm/amd/display/dmub

[PATCH 07/47] drm/amd/display: Change dither policy for 10bpc to round

2023-12-01 Thread Rodrigo Siqueira
-by: Rodrigo Siqueira Signed-off-by: Krunoslav Kovac --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index f3a9fdd2340d

[PATCH 05/47] drm/amd/display: Add missing dcn35 RCO registers

2023-12-01 Thread Rodrigo Siqueira
-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Daniel Miess --- .../gpu/drm/amd/display/dc/dcn20/dcn20_dccg.h | 32 ++ .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c | 62 ++- .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.h | 51 +++ 3 files changed, 143

[PATCH 06/47] drm/amd/display: Pass pwrseq inst for backlight and ABM

2023-12-01 Thread Rodrigo Siqueira
Acked-by: Rodrigo Siqueira Signed-off-by: Lewis Huang --- .../drm/amd/display/dc/bios/bios_parser2.c| 4 +- .../drm/amd/display/dc/bios/command_table2.c | 12 ++-- .../drm/amd/display/dc/bios/command_table2.h | 2 +- .../gpu/drm/amd/display/dc/dc_bios_types.h| 2 +- drivers/gpu/drm

[PATCH 04/47] drm/amd/display: Only enumerate top local sink as DP2 output

2023-12-01 Thread Rodrigo Siqueira
by treating only 1st remote sink in topology as an encoder. Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Signed-off-by: Michael Strauss --- drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml2

[PATCH 02/47] drm/amd/display: initialize all the dpm level's stutter latency

2023-12-01 Thread Rodrigo Siqueira
From: Charlene Liu Fix issue when override level bigger than default. Levels 5, 6, and 7 had zero stutter latency, this is because override level being initialized after stutter latency inits. Reviewed-by: Syed Hassan Reviewed-by: Allen Pan Acked-by: Rodrigo Siqueira Signed-off-by: Charlene

[PATCH 01/47] drm/amd/display: Optimize fast validation cases

2023-12-01 Thread Rodrigo Siqueira
From: Alvin Lee Optimize fast validation cases to only validate the highest voltage level. This works because during fast validation we only care if the mode can be supported or not (at any vlevel). Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- .../dc/dml

[PATCH 03/47] drm/amd/display: Add ODM check during pipe split/merge validation

2023-12-01 Thread Rodrigo Siqueira
the incorrect vlevel. [how] Added ODM check to apply the correct ODM policy before querying DML. Reviewed-by: Alvin Lee Acked-by: Rodrigo Siqueira Signed-off-by: Relja Vojvodic --- .../display/dc/dcn32/dcn32_resource_helpers.c | 26 +++ .../drm/amd/display/dc/dml/dcn32

[PATCH 00/47] DC Patches December 1, 2023

2023-12-01 Thread Rodrigo Siqueira
(2): drm/amd/display: Add ODM check during pipe split/merge validation drm/amd/display: Added delay to DPM log Rodrigo Siqueira (2): drm/amd/display: Adjust code style drm/amd/display: Update code comment to be more accurate Roman Li (1): drm/amd/display: Fix array-index-out-of-bounds

Re: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window

2023-10-30 Thread Rodrigo Siqueira Jordao
Hi Sagar, First of all, thanks for your patch. On 10/25/23 08:04, Sagar Vashnav wrote: Add kernel documentation for the dc_stream_forward_crc_window Signed-off-by: Sagar Vashnav --- drivers/gpu/drm/amd/display/dc/core/dc.c | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH 7/8] Documentation/gpu: Add an explanation about the DC weekly patches

2023-10-20 Thread Rodrigo Siqueira
Sharing code with other OSes is confusing and raises some questions. This patch introduces some explanation about our upstream process with the shared code. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- Documentation/gpu

[PATCH 5/8] Documentation/gpu: Add entry for OPP in the kernel doc

2023-10-20 Thread Rodrigo Siqueira
Introduce OPP as part of the kernel documentation. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu/display/dcn-blocks.rst | 12 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h | 16

[PATCH 8/8] Documentation/gpu: Introduce a simple contribution list for display code

2023-10-20 Thread Rodrigo Siqueira
This commit adds a contribution list for display under the kernel documentation with some first suggestions. It also drops an old TODO list from the display folder. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- .../amdgpu

[PATCH 4/8] Documentation/gpu: Add kernel doc entry for MPC

2023-10-20 Thread Rodrigo Siqueira
This commit adds a kernel-doc entry for the MPC block. Since it enabled the kernel-doc to parse some of the documentation in the mpc.h file, fixing some of the comments was required. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira

[PATCH 6/8] Documentation/gpu: Add entry for the DIO component

2023-10-20 Thread Rodrigo Siqueira
Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu/display/dcn-blocks.rst | 12 .../gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.h | 10 ++ 2 files changed, 22 insertions

[PATCH 1/8] Documentation/gpu: Add basic page for HUBP

2023-10-20 Thread Rodrigo Siqueira
Create the HUBP documentation page and add the doc references to extract the HUBP code documentation. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- .../gpu/amdgpu/display/dcn-blocks.rst | 18

[PATCH 3/8] Documentation/gpu: Add kernel doc entry for DPP

2023-10-20 Thread Rodrigo Siqueira
This commit introduces basic DPP information and the struct scan for code documentation. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- .../gpu/amdgpu/display/dcn-blocks.rst | 12 + drivers/gpu/drm/amd/display

[PATCH 0/8] Expand and improve AMDGPU documentation

2023-10-20 Thread Rodrigo Siqueira
with the display code. Thanks Siqueira Rodrigo Siqueira (8): Documentation/gpu: Add basic page for HUBP Documentation/gpu: Add simple doc page for DCHUBBUB Documentation/gpu: Add kernel doc entry for DPP Documentation/gpu: Add kernel doc entry for MPC Documentation/gpu: Add entry for OPP

[PATCH 2/8] Documentation/gpu: Add simple doc page for DCHUBBUB

2023-10-20 Thread Rodrigo Siqueira
Enable the documentation to extract code documentation from dchubbub.h file. Cc: Mario Limonciello Cc: Alex Deucher Cc: Harry Wentland Cc: Hamza Mahfooz Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu/display/dcn-blocks.rst | 12 drivers/gpu/drm/amd/display/dc/inc

Re: [PATCH v2 0/2] Fix issues caused by DML2 in ASICs older than DCN35

2023-10-20 Thread Rodrigo Siqueira Jordao
On 10/20/23 15:38, Harry Wentland wrote: On 2023-10-20 17:26, Rodrigo Siqueira wrote: The first commit of this series just sets the variable using_dml2 to false for all ASICs that do not require it. The second commit adds a fix to the DC sequence that calls a DML2 operation in ASICs

[PATCH v2 1/2] drm/amd/display: Set the DML2 attribute to false in all DCNs older than version 3.5

2023-10-20 Thread Rodrigo Siqueira
Cc: Roman Li Cc: Qingqing Zhuo Cc: Daniel Wheeler Cc: Alex Deucher Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c | 1

[PATCH v2 2/2] drm/amd/display: Fix DMUB errors introduced by DML2

2023-10-20 Thread Rodrigo Siqueira
version. Cc: Vitaly Prosyak Cc: Roman Li Cc: Qingqing Zhuo Cc: Daniel Wheeler Cc: Alex Deucher Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2") Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 + 1 file changed, 5 insertions(+), 4

[PATCH v2 0/2] Fix issues caused by DML2 in ASICs older than DCN35

2023-10-20 Thread Rodrigo Siqueira
: Alex Deucher Rodrigo Siqueira (2): drm/amd/display: Set the DML2 attribute to false in all DCNs older than version 3.5 drm/amd/display: Fix DMUB errors introduced by DML2 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 + drivers/gpu/drm/amd/display/dc/dcn10

[PATCH] drm/amd/display: Fix DMUB errors introduced by DML2

2023-10-20 Thread Rodrigo Siqueira
Deucher Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2") Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/g

Re: [PATCH 0/2] Reduce stack size for DML2

2023-10-17 Thread Rodrigo Siqueira Jordao
Hi Nathan, (+Hamza) First of all, thanks a lot for your feedback. You can see my comments inline. On 10/17/23 11:22, Nathan Chancellor wrote: Hi Rodrigo, On Mon, Oct 16, 2023 at 08:19:16AM -0600, Rodrigo Siqueira wrote: Stephen discovers a stack size issue when compiling the latest amdgpu

[PATCH 2/2] drm/amd/display: Fix stack size issue on DML2

2023-10-16 Thread Rodrigo Siqueira
This commit is the last part of the fix that reduces the stack size in the DML2 code. Cc: Stephen Rothwell Cc: Alex Deucher Cc: Roman Li Cc: Chaitanya Dhere Fixes: a2815ada8616 ("drm/amd/display: Introduce DML2") Signed-off-by: Rodrigo Siqueira --- .../amd/displ

[PATCH 0/2] Reduce stack size for DML2

2023-10-16 Thread Rodrigo Siqueira
Stephen discovers a stack size issue when compiling the latest amdgpu code with allmodconfig. This patchset addresses that issue by splitting a large function into two smaller parts. Thanks Siqueira Rodrigo Siqueira (2): drm/amd/display: Reduce stack size by splitting function drm/amd

[PATCH v3 08/16] drm/amd/display: Handle multiple streams sourcing same surface

2023-10-04 Thread Rodrigo Siqueira
From: Sung Joon Kim [why] There are cases where more than 1 stream can be mapped to the same surface. DML2.0 does not seem to handle these cases. [how] Make sure to account for the stream id when deriving the plane id. By doing this, each plane id will be unique based on the stream id.

[PATCH v3 16/16] drm/amd/display: add check in validate_only in dml2

2023-10-04 Thread Rodrigo Siqueira
From: Gabe Teeger [what] does_configuration_meet_sw_policies check was not done in the validate_only portion of dml2, so some unsupported modes were passing bw validation, only to fail the same check later in validate_and_build. now we add the check to validate_only. Also add line in

[PATCH v3 11/16] drm/amd/display: Move stereo timing check to helper

2023-10-04 Thread Rodrigo Siqueira
From: Taimur Hassan Rework dml2_map_dc_pipes to keep the logic clean. Reviewed-by: Chaitanya Dhere Acked-by: Qingqing Zhuo Signed-off-by: Qingqing Zhuo Signed-off-by: Taimur Hassan --- .../amd/display/dc/dml2/dml2_dc_resource_mgmt.c | 9 +

[PATCH v3 15/16] drm/amd/display: Port replay vblank logic to DML2

2023-10-04 Thread Rodrigo Siqueira
From: Daniel Miess Update DML2 with replay vblank logic found in DML1. Reviewed-by: Charlene Liu Acked-by: Qingqing Zhuo Signed-off-by: Daniel Miess Signed-off-by: Qingqing Zhuo --- .../amd/display/dc/dml2/display_mode_core.c | 25 --- 1 file changed, 22 insertions(+), 3

<    1   2   3   4   5   6   7   8   9   10   >