Re: [PATCH 1/5] drm/amd/display: fix soft-fp vs hard-fp on DCN 3.1 family for powerpc

2022-07-21 Thread Rodrigo Siqueira Jordao
, + int pipe_cnt); + void dcn31_update_soc_for_wm_a(struct dc *dc, struct dc_state *context); void dcn31_calculate_wm_and_dlg_fp( Reviewed-by: Rodrigo Siqueira

[PATCH 22/31] drm/amd/display: Move phanton stream to FPU code

2022-07-16 Thread Rodrigo Siqueira
This commit moves phanton FPU stream to dcn32_fpu file. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 89 +-- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 84

[PATCH 05/31] drm/amd/display: fix trigger_hotplug to support mst case

2022-07-16 Thread Rodrigo Siqueira
From: Wayne Lin [Why & How] Correct few problems below to have debugfs trigger_hotplug entry supports mst case * Adjust the place for acquiring the hpd_lock. We'll also access dc_link when simulate unplug * When detect the connector is a mst root, call reset_cur_dp_mst_topology() to

[PATCH 11/31] drm/amd/display: Fix hard hang if DSC is disabled

2022-07-16 Thread Rodrigo Siqueira
by moving the calculation after the DSC check. Signed-off-by: Rodrigo Siqueira --- .../dc/dml/dcn32/display_mode_vba_util_32.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c b

[PATCH 16/31] drm/amd/display: Update Cursor Attribute MALL cache

2022-07-16 Thread Rodrigo Siqueira
From: Chris Park [Why] Cursor size can update without MALL cache update. Update the register on cursor attribute as well. [How] Update cursor MALL cache on cursor attribute update. Reviewed-by: Alvin Lee Acked-by: Alan Liu Signed-off-by: Chris Park ---

[PATCH 10/31] drm/amd/display: remove number of DSC slices override in DML

2022-07-16 Thread Rodrigo Siqueira
From: Wenjing Liu [why] Number of DSC slices is an input to DML with high dependency on display specific capability. This isn't something DML can decide on its own. DML has to use the original number of DSC slices input to DML during validation without modification. Otherwise the computed DSC

[PATCH 13/31] drm/amd/display: Update de-tile override to anticipate pipe splitting

2022-07-16 Thread Rodrigo Siqueira
From: Taimur Hassan [Why] For certain MPO configurations, DML will split a pipe after DET buffer has already been allocated by driver, resulting in allocation of more DET segments than the configurable return buffer has, causing underflow. [How] Determine during DET override calculation whether

[PATCH 14/31] drm/amd/display: Disable GPUVM in IP resource configuration

2022-07-16 Thread Rodrigo Siqueira
From: Vladimir Stempen [Why] VM enabled in IP configuration causes UCLK not reaching DPM0. The expectation for VM enable should be that KMD will indicate to DAL when VM is enabled, then DAL will set the bit accordingly [How] Set gpuvm_enable to zero in DCN3_20 and DCN3_21 resource.

[PATCH 03/31] drm/amd/display: Update in dml

2022-07-16 Thread Rodrigo Siqueira
From: Alvin Lee Update DML to configure drr_display in vba struct. Reviewed-by: Dmytro Laktyushkin Acked-by: Alan Liu Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h | 1 + drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 1 + 2 files

[PATCH 26/31] drm/amd/display: Move ntuple to insert entry

2022-07-16 Thread Rodrigo Siqueira
Move get_optimal_ntuple to the FPU code and call it inside insert_entry_into_table_sorted. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 28 --- .../drm/amd/display/dc/dml/dcn32

[PATCH 19/31] drm/amd/display: Move populate phaton function to dml

2022-07-16 Thread Rodrigo Siqueira
The function dcn32_helper_populate_phantom_dlg_params uses FPU operations. For this reason, this commit moves this function to the dcn32_fpu file, and we ensure that we only invoke it under the kernel_fpu protection. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo

[PATCH 12/31] drm/amd/display: Don't set dram clock change requirement for SubVP

2022-07-16 Thread Rodrigo Siqueira
From: Alvin Lee [Description] In general cases we want to keep the dram clock change requirement (we prefer configs that support MCLK switch). Only override to false for SubVP. Acked-by: Alan Liu Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 10

[PATCH 07/31] drm/amd/display: Add tags for indicating mst progress status

2022-07-16 Thread Rodrigo Siqueira
From: Wayne Lin [Why & How] In order to leverage igt tool to maintain mst feature, expose new debugfs entry "mst_progress_status". In our dm flow, record down the result of each phase of mst and user can examine the mst result by checking whether each phase get completed successfully.

[PATCH 18/31] drm/amd/display: Drop FPU flags from dcn32_clk_mgr

2022-07-16 Thread Rodrigo Siqueira
moving code from one part to another. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/dc/clk_mgr/Makefile | 25 .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 81 + drivers/gpu/drm/amd/display/dc/dml/Makefile

[PATCH 31/31] drm/amd/display: 3.2.195

2022-07-16 Thread Rodrigo Siqueira
From: Aric Cyr This version brings along following fixes: - Isolate FPU operation for DCN32/321 under the DML folder - Create a specific file for CRTC and plane based on amdgpu_dm - Fix DSC issues - Update DML logic Acked-by: Alan Liu Signed-off-by: Aric Cyr ---

[PATCH 00/31] DC Patches July 15, 2022

2022-07-16 Thread Rodrigo Siqueira
DML logic for unbounded req handling Rodrigo Siqueira (16): drm/amd/display: Create a file dedicated to planes drm/amd/display: Create a file dedicated for CRTC drm/amd/display: Fix hard hang if DSC is disabled drm/amd/display: Drop FPU flags from dcn32_clk_mgr drm/amd/display: Move

[PATCH 06/31] drm/amd/display: Add is_mst_connector debugfs entry

2022-07-16 Thread Rodrigo Siqueira
From: Wayne Lin [Why & How] Add "is_mst_connector" debugfs entry to help distinguish whether a connector is in a mst topology or not. Access it with the following command: cat /sys/kernel/debug/dri/0/DP-X/is_mst_connector Result: - "root" stands for the root connector of the topology -

[PATCH 24/31] drm/amd/display: Move wm and dlg calculation to FPU code

2022-07-16 Thread Rodrigo Siqueira
Move dcn32_calculate_wm_and_dlg from dcn32 resources to the FPU code. Additionally, this commit adds an interface to it. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 196 +- .../drm

[PATCH 30/31] drm/amd/display: Drop FPU code from dcn321 resource

2022-07-16 Thread Rodrigo Siqueira
This commit fully move the missing FPU operations from dcn321 resource to dcn321 fpu. It also remove those FPU flags from the Makefile. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/dc/dcn321/Makefile| 25 - .../amd

[PATCH 23/31] drm/amd/display: Move SubVP functions to dcn32_fpu

2022-07-16 Thread Rodrigo Siqueira
functions. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 597 +- .../drm/amd/display/dc/dcn32/dcn32_resource.h | 2 + .../display/dc/dcn32/dcn32_resource_helpers.c | 11 + .../drm/amd

[PATCH 27/31] drm/amd/display: Move bounding box to FPU folder

2022-07-16 Thread Rodrigo Siqueira
The final part of the DCN32 code that uses FPU is the bounding box code, and this commit move it to dcn32_fpu. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 460 + .../drm/amd/display

[PATCH 29/31] drm/amd/display: Create dcn321_fpu file

2022-07-16 Thread Rodrigo Siqueira
The file dcn321_resource has a lot of FPU operations that should be inside the dml folder. This commit introduces the dcn321_fpu file and moves some of the FPU operation functions to this new file. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira

[PATCH 20/31] drm/amd/display: Move predict pipe to dml fpu folder

2022-07-16 Thread Rodrigo Siqueira
The function dcn32_predict_pipe_split uses FPU operations. This commit moves this function to the dcn32_fpu file, and we ensure that we only invoke it under the kernel_fpu protection. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd

[PATCH 09/31] drm/amd/display: Create a file dedicated for CRTC

2022-07-16 Thread Rodrigo Siqueira
. This change does not change anything inside the functions; the only exception is converting some static functions to a global function. Reviewed-by: Harry Wentland Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/amdgpu_dm/Makefile| 1 + .../gpu/drm/amd

[PATCH 17/31] drm/amd/display: Update DML logic for unbounded req handling

2022-07-16 Thread Rodrigo Siqueira
according to unbounded req enablement output from DML, as opposed to DML input. Second, port in DML update which disables unbounded req in some scenarios to fix an issue with poor stutter performance Signed-off-by: Jun Lei Reviewed-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32

[PATCH 02/31] drm/amd/display: Remove unused variable

2022-07-16 Thread Rodrigo Siqueira
From: Jun Lei Remove an unused variable "remove_disconnect_edp" which was a workaround bit. Acked-by: Alan Liu Signed-off-by: Jun Lei --- drivers/gpu/drm/amd/display/dc/dc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h

[PATCH 15/31] drm/amd/display: Loop through all pipes for DET allocation

2022-07-16 Thread Rodrigo Siqueira
From: Taimur Hassan [Why & How] There are cases where the pipes populated are not all at the top of the pipes list under context. Loop through all pipes for DET allocation instead of just the number of populated ones, even if some unpopulated pipes are iterated through unnecessarily.

[PATCH 28/31] drm/amd/display: Drop FPU flags from dcn32 Makefile

2022-07-16 Thread Rodrigo Siqueira
This is the final commit from the FPU isolation for DCN32 and for this reason we can finally remove flags related to FPU. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/dcn32/Makefile | 28 --- 1 file

[PATCH 04/31] drm/amd/display: Expose function reset_cur_dp_mst_topology

2022-07-16 Thread Rodrigo Siqueira
From: Wayne Lin [Why & How] Need to leverage this function out of dc_link.c. Change it to public. Reviewed-by: Hersen Wu Acked-by: Alan Liu Signed-off-by: Wayne Lin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- drivers/gpu/drm/amd/display/dc/dc_link.h | 3 +++ 2 files

[PATCH 25/31] drm/amd/display: Move dlg params calculation

2022-07-16 Thread Rodrigo Siqueira
Move dlg params calculation to the FPU folder and make it static. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 485 + .../drm/amd/display/dc/dcn32/dcn32_resource.h | 6 - .../drm

[PATCH 08/31] drm/amd/display: Create a file dedicated to planes

2022-07-16 Thread Rodrigo Siqueira
. This change does not change anything inside the functions; the only exception is converting some static functions to a global function. Reviewed-by: Harry Wentland Acked-by: Alan Liu Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/amdgpu_dm/Makefile|7 +- .../gpu/drm/amd

[PATCH 01/31] drm/amd/display: Support vertical interrupt 0 for all dcn ASIC

2022-07-16 Thread Rodrigo Siqueira
From: Wayne Lin [Why] When CONFIG_DRM_AMD_SECURE_DISPLAY is enabled, it will try to register vertical interrupt 0 for specific task. Currently, only dcn10 have defined relevant info for vertical interrupt 0. If we enable CONFIG_DRM_AMD_SECURE_DISPLAY for other dcn ASIC, will get

[PATCH 21/31] drm/amd/display: Move insert entry table to the FPU code

2022-07-16 Thread Rodrigo Siqueira
The insert_entry_into_table_sorted function uses FPU operation and calls other static functions support. This commit moves the insert entry function with all the required struct and static functions to the FPU file. Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo

Re: [PATCH] drm/amd/display: Add a proper DMI match for Precision devices

2022-07-12 Thread Rodrigo Siqueira Jordao
On 12/07/2022 12:02, Limonciello, Mario wrote: On 7/12/2022 10:59, Rodrigo Siqueira wrote: We had an MST fix for some DELL devices that got merged, but we missed other products. This commit adds the other missing Precision devices. Cc: Mario Limonciello Cc: Jerry Zuo Cc: Qian Fu Cc: Alex

[PATCH] drm/amd/display: Add a proper DMI match for Precision devices

2022-07-12 Thread Rodrigo Siqueira
Error") Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index e203d75834de..96a0be850

[PATCH v2] drm/amd/display: Ignore First MST Sideband Message Return Error

2022-07-11 Thread Rodrigo Siqueira
From: Fangzhi Zuo [why] The first MST sideband message returns AUX_RET_ERROR_HPD_DISCON on a certain Intel platform. Aux transaction is considered a failure if HPD unexpectedly pulled low. The actual aux transaction success in such case, hence do not return an error. Several Dell Intel-based

[PATCH] drm/amd/display: Ignore First MST Sideband Message Return Error

2022-07-11 Thread Rodrigo Siqueira
From: Fangzhi Zuo [why] The first MST sideband message returns AUX_RET_ERROR_HPD_DISCON on a certain Intel platform. Aux transaction is considered a failure if HPD unexpectedly pulled low. The actual aux transaction success in such case, hence do not return an error. Several Dell Intel-based

Re: [PATCH] drm/amd/display: fix unnecessary pipe split playing NV12 1080p MPO video

2022-07-11 Thread Rodrigo Siqueira
MaximumMPCCombine = 0; + } else { + MaximumMPCCombine = 1; } } } LGTM, Reviewed-by: Rodrigo Siqueira

Re: [PATCH 1/2] drm/amd/display: Add visualconfirm module parameter

2022-07-07 Thread Rodrigo Siqueira Jordao
"DMUB interface failed to initialize: status=%d\n", r); Series LGTM, Reviewed-by: Rodrigo Siqueira

[PATCH] drm/amd/display: Add missing header

2022-07-06 Thread Rodrigo Siqueira
Kernel test robot reported this GCC error: warning: no previous prototype for 'dc_reset_state' [-Wmissing-prototypes] 2720 | void dc_reset_state(struct dc *dc, struct dc_state *context) This commit adds the missing prototype. Reported-by: kernel test robot Signed-off-by: Rodrigo Siqueira

Re: [PATCH] drm/amd/display: Add missing hard-float compile flags for PPC64 builds

2022-06-30 Thread Rodrigo Siqueira Jordao
On 2022-06-18 19:27, Guenter Roeck wrote: ppc:allmodconfig builds fail with the following error. powerpc64-linux-ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o uses hard float,

Re: [PATCH] drm/amdgpu/display: add missing FP_START/END checks dcn32_clk_mgr.c

2022-06-30 Thread Rodrigo Siqueira Jordao
ms); + DC_FP_END(); } static bool dcn32_are_clock_states_equal(struct dc_clocks *a, Hi Alex, Reviewed-by: Rodrigo Siqueira Btw, I already start to work on the FPU isolation for DCN32/321. Thanks Siqueira

[PATCH 40/40] drm/amd/display: 3.2.192

2022-06-30 Thread Rodrigo Siqueira
-by: Rodrigo Siqueira Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index a9c59669dd1d..02bbc90a2c80 100644 --- a/drivers/gpu/drm/amd/display/dc

[PATCH 36/40] drm/amd/display: OVT Update on InfoFrame and Mode Management

2022-06-30 Thread Rodrigo Siqueira
From: Chris Park [Why] Integrate OVT timing from DM to DC logic to update info frame and mode management to report the resolution to the OS. [How] Reflect RID and Frame Rate to AVI InfoFrame Version 5. Define new Timing Standard for OVT timing. Reviewed-by: Charlene Liu Acked-by: Alan Liu

[PATCH 39/40] drm/amd/display: Maintain old audio programming sequence

2022-06-30 Thread Rodrigo Siqueira
From: Alvin Lee [Description] Program audio DTO before wall dto for audio Reviewed-by: Martin Leung Acked-by: Qingqing Zhuo Signed-off-by: Alvin Lee --- .../gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 35/40] drm/amd/display: Initialize lt_settings on instantiation

2022-06-30 Thread Rodrigo Siqueira
From: Michael Strauss [WHY] lt_settings' pointers remain uninitialized but nonzero if display fails to light up with no DPCD/EDID info populated, leading to a hang on access Reviewed-by: Nicholas Kazlauskas Acked-by: Alan Liu Signed-off-by: Michael Strauss ---

[PATCH 37/40] drm/amd/display: enable PCON SST support for newer ASICs

2022-06-30 Thread Rodrigo Siqueira
From: Hamza Mahfooz Generic PCON SST support already exists and works for newer ASICs. So, enable it by default. Acked-by: Rodrigo Siqueira Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c

[PATCH 38/40] drm/amd/display: rename hdmi_frl_pcon_support

2022-06-30 Thread Rodrigo Siqueira
From: Hamza Mahfooz hdmi_frl_pcon_support has been the source of confusion. So, rename it to dp_hdmi21_pcon_support. Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c| 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +-

[PATCH 30/40] drm/amd/display: Disable TBT3 DSC work around by default.

2022-06-30 Thread Rodrigo Siqueira
From: Jimmy Kizito [Why] Some TBT3 docks have DPOAs which report USB4 capability and are expected to support USB4 DPOA features such as FEC/DSC. [How] By default, do not override FEC/DSC capabilities reported by TBT3 docks. Reviewed-by: Meenakshikumar Somasundaram Acked-by: Rodrigo Siqueira

[PATCH 19/40] drm/amd/display: Don't set dram clock change requirement for SubVP

2022-06-30 Thread Rodrigo Siqueira
From: Alvin Lee [Description] In general cases we want to keep the dram clock change requirement (we prefer configs that support MCLK switch). Only override to false for SubVP. Reviewed-by: Jun Lei Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dml

[PATCH 24/40] drm/amd/display: Guard against NULL link encoder in log hw state

2022-06-30 Thread Rodrigo Siqueira
From: Nicholas Kazlauskas [Why & How] Check lenc is not NULL since dynamic link encoder assignment could end up assigning a NULL link encoder. Reviewed-by: Michael Strauss Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/d

[PATCH 28/40] drm/amd/display: Remove configuration option for dpia hpd delay

2022-06-30 Thread Rodrigo Siqueira
From: Meenakshikumar Somasundaram [Why] DC debug option to configure dpia hpd processing delay is not required. [How] Remove dc debug option for dpia hpd delay and also added log for querying dpia hpd state. Reviewed-by: Mustapha Ghaddar Reviewed-by: Jun Lei Acked-by: Rodrigo Siqueira

[PATCH 21/40] drm/amd/display: Program ACP related register

2022-06-30 Thread Rodrigo Siqueira
From: Alan Liu - Setup the shift and mask of HDMI_ACP_SEND register - Program the register in hdmi stream encoder - Also update ACP register in azalia configuration Reviewed-by: Harry Wentland Acked-by: Rodrigo Siqueira Signed-off-by: Alan Liu --- drivers/gpu/drm/amd/display/dc/dce

[PATCH 32/40] drm/amd/display: Fix null timing generator resource

2022-06-30 Thread Rodrigo Siqueira
From: Eric Bernstein [Why] For some customer blending transition cases, the available pipe for second stream is a pipe index that is greater than the number of timing generators, which can cause a problem in acquire_first_free_pipe since it assumes same index for pipe and timing generator [How]

[PATCH 25/40] drm/amd/display: Fix dmub soft hang for PSR 1

2022-06-30 Thread Rodrigo Siqueira
Jayamohanan Pillai Acked-by: Rodrigo Siqueira Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH 31/40] drm/amd/display: Add flag to modify MST delay

2022-06-30 Thread Rodrigo Siqueira
From: Duncan Ma [Why] Some panels may require more MST delay on discovery [How] Add panel patch and debug mst delay flag Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Duncan Ma --- drivers/gpu/drm/amd/display/dc/dc.h | 3 ++- drivers/gpu/drm/amd/display/dc

[PATCH 27/40] drm/amd/display: Indicate stream change on ODM change

2022-06-30 Thread Rodrigo Siqueira
for ODM. [How] Set ODM flag in stream and commit stream when change in ODM has been detected due to policy change. Reviewed-by: Samson Tam Acked-by: Rodrigo Siqueira Signed-off-by: Chris Park --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ drivers/gpu/drm/amd/display/dc/dc_stream.h

[PATCH 34/40] drm/amd/display: Fix uninitialized variable.

2022-06-30 Thread Rodrigo Siqueira
From: Jimmy Kizito [Why] Uninitialized variable causes diag compilation build failure. [How] - Ensure that variable in question is always initialized before being used. - The variable in question is the USB4 DP training pattern. In case an unsupported training pattern has been requested, update

[PATCH 20/40] drm/amd/display: add an option to skip wait for HPD when powering on eDP panel

2022-06-30 Thread Rodrigo Siqueira
From: Evgenii Krasnikov [HOW/WHY] Add an option to skip edp_wait_for_hpd_ready when necessary Reviewed-by: Jayendran Ramani Acked-by: Rodrigo Siqueira Signed-off-by: Evgenii Krasnikov --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 +++-- drivers/gpu/drm/amd/display/dc/inc

[PATCH 29/40] drm/amd/display: Fix refresh rate issue on Club 3D

2022-06-30 Thread Rodrigo Siqueira
ut bw check") Reviewed-by: Hersen Wu Acked-by: Rodrigo Siqueira Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/a

[PATCH 26/40] drm/amd/display: disable otg toggle w/a on boot

2022-06-30 Thread Rodrigo Siqueira
From: Dmytro Laktyushkin This w/a has a bad interaction with seamless boot toggling an active stream. Most panels recover, however some fail leading to display corruption. Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Dmytro Laktyushkin --- .../gpu/drm/amd/display/dc

[PATCH 22/40] drm/amd/display: Guard against ddc_pin being NULL for AUX

2022-06-30 Thread Rodrigo Siqueira
engine acquire. Reviewed-by: Michael Strauss Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c b/drivers/gpu/drm/amd/display/dc/dce

[PATCH 33/40] drm/amd/display: Move all linux includes into OS types

2022-06-30 Thread Rodrigo Siqueira
From: Harry Wentland Move all linux includes into OS types. Acked-by: Alan Liu Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/basics/vector.c | 2 -- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 2 -- drivers/gpu/drm/amd/display/dc/core/dc.c

[PATCH 18/40] drm/amd/display: Extend soc BB capabilitiy

2022-06-30 Thread Rodrigo Siqueira
From: Jun Lei [why] Some parts are consuming dangerously close to maximum number of states supported when updating the BB (i.e. 8). [how] Change maximum stages from 9 to 20. Acked-by: Rodrigo Siqueira Signed-off-by: Jun Lei --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 508

[PATCH 15/40] drm/amd/display: disable timing sync b/w odm halves

2022-06-30 Thread Rodrigo Siqueira
From: Dmytro Laktyushkin Fix for a bug where we would try to timing sync 2 odm halves. Acked-by: Rodrigo Siqueira Signed-off-by: Dmytro Laktyushkin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display

[PATCH 16/40] drm/amd/display: guard for virtual calling destroy_link_encoders

2022-06-30 Thread Rodrigo Siqueira
From: Martin Leung [Why]: On power down, virtual dal may try to delete link_encoders by referencing uninitialized res_pool. [How]: Added guard against empty res_pool. Acked-by: Rodrigo Siqueira Signed-off-by: Martin Leung --- drivers/gpu/drm/amd/display/dc/core/dc.c | 10 -- 1 file

[PATCH 23/40] drm/amd/display: Remove incorrect ASSERT check for link_enc

2022-06-30 Thread Rodrigo Siqueira
the ASSERTION. We already guard against NULL link_enc. Reviewed-by: Michael Strauss Acked-by: Rodrigo Siqueira Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc

[PATCH 14/40] drm/amd/display: Add minimal pipe split transition state

2022-06-30 Thread Rodrigo Siqueira
-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc.c | 277 + drivers/gpu/drm/amd/display/dc/dc_stream.h | 18 ++ 2 files changed, 295 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index

[PATCH 17/40] drm/amd/display: Maintain consistent mode of operation during encoder assignment

2022-06-30 Thread Rodrigo Siqueira
the mode of operation of the link encoder assignment module. - Add additional checks for encoder assignment defects. - Explicitly reset the mode of operation if application of state to hardware ends prematurely. Acked-by: Rodrigo Siqueira Signed-off-by: Jimmy Kizito --- drivers/gpu/drm/amd/display/dc

[PATCH 11/40] drm/amd/display: Add basic infrastructure for enabling FAMS

2022-06-30 Thread Rodrigo Siqueira
We want to enable Firmware Assisted Memory (FAMS) Switching, but first, we need to add the required code infrastructure in DC before allowing it in amdgpu_dm. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc.c | 8 + drivers/gpu/drm/amd/display/dc/dc.h

[PATCH 09/40] drm/amd/display: Update gpuvm_max_page_table_levels IP param

2022-06-30 Thread Rodrigo Siqueira
From: Eric Bernstein After some experimental tests, we noticed that we need to set gpuvm_max_page_table_levels to '4' to meet the hardware requirements. Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 2 +-

[PATCH 13/40] drm/amd/display: Add SubVP control lock

2022-06-30 Thread Rodrigo Siqueira
Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/core/dc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index db02f071c949..05c2e178ca99 100644 --- a/drivers

[PATCH 08/40] drm/amd/display: Switch to correct DTO on HDMI

2022-06-30 Thread Rodrigo Siqueira
From: Chris Park [Why] For Pixel Rate control, when on HDMI, HDMI DTO should be selected instead of DP DTO. [How] Pass HDMI parameter for HDMI stream, and select correct DTO. Signed-off-by: Chris Park --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 2 ++

[PATCH 10/40] drm/amd/display: Make OPTC3 function accessible to other DCN

2022-06-30 Thread Rodrigo Siqueira
From: Alvin Lee [Why] Newer DCN should use optc3 [How] Declare optc3 vmin/vmax function in header. Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dc.h | 1 + drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 5 +

[PATCH 07/40] drm/amd/display: Change DET policy for MPO cases

2022-06-30 Thread Rodrigo Siqueira
From: Alvin Lee For MPO we want to allocate less than maximum DET for MPO pipes because we need enogh buffer to move DET back to toher pipes when removing an MPO plane. Also update regular DET allocation to use DET override (DCN32 has an internal policy which driver does not want to use)

[PATCH 12/40] drm/amd/display: Fix stream->link_enc unassigned during stream removal

2022-06-30 Thread Rodrigo Siqueira
From: Nicholas Kazlauskas [Why] Found when running igt@kms_atomic. Userspace attempts to do a TEST_COMMIT when 0 streams which calls dc_remove_stream_from_ctx. This in turn calls link_enc_unassign which ends up modifying stream->link = NULL directly, causing the global link_enc to be removed

[PATCH 03/40] drm/amd/display: Prepare for new interfaces

2022-06-30 Thread Rodrigo Siqueira
From: Martin Leung [WHY]: Lut pipeline will be hooked up differently in some asics need to add new interfaces and missing registers. [HOW]: Add missing registers and hook up programming from DPP for pre-blend lut. Acked-by: Rodrigo Siqueira Signed-off-by: Martin Leung --- .../gpu/drm/amd

[PATCH 04/40] drm/amd/display: Add function to set pixels per cycle

2022-06-30 Thread Rodrigo Siqueira
From: Eric Bernstein Add function to set pixels per cycle in DIG stream encoder Acked-by: Rodrigo Siqueira Signed-off-by: Eric Bernstein --- .../amd/display/dc/dcn10/dcn10_stream_encoder.h | 1 + .../gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 5 ++--- .../display/dc/dcn32

[PATCH 06/40] drm/amd/display: Use two pixel per container for k1/k2 div

2022-06-30 Thread Rodrigo Siqueira
Currently, we check if pixel_encoding is equal to PIXEL_ENCODING_YCBCR422 to get the k1/k2 div parameters. This commit changes this logic slightly by checking if two pixels per container are used. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 8

[PATCH 05/40] drm/amd/display: Apply ODM 2:1 policy for single display configuration

2022-06-30 Thread Rodrigo Siqueira
PIXEL_RATE_DIVK2 - DP_PIXEL_PER_CYCLE_PROCESSING_MODE - DIG_FIFO_OUTPUT_PIXEL_MODE - DP_VID_N_MUL Acked-by: Rodrigo Siqueira Signed-off-by: Samson Tam --- drivers/gpu/drm/amd/display/dc/dc.h | 2 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 7 +++ .../dc/dcn32/dcn32_dio_stream_encoder.c

[PATCH 01/40] drm/amd/display: Add missing registers for ACP

2022-06-30 Thread Rodrigo Siqueira
We are missing some ACP registers/mask value for some specific ASICs. This commit includes it to those ASICs that support it. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_0_sh_mask.h | 2 ++ drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_1_sh_mask.h | 2

[PATCH 00/40] DC Patches Jun 30, 2022

2022-06-30 Thread Rodrigo Siqueira
nst ddc_pin being NULL for AUX drm/amd/display: Remove incorrect ASSERT check for link_enc drm/amd/display: Guard against NULL link encoder in log hw state Rodrigo Siqueira (6): drm/amd/display: Add missing registers for ACP drm/amd/display: Use two pixel per container for k1/k2 div drm/

[PATCH 2/4] drm/amd/display: Fix __floatunsidf undefined for 32 bit compilation

2022-06-30 Thread Rodrigo Siqueira
chitecture. This issue can be fixed by changing the value type. Cc: Aurabindo Pillai Cc: Harry Wentland Cc: Alex Deucher Cc: Randy Dunlap Fixes: 9b79abf79c414 ("drm/amd/display: add CLKMGR changes for DCN32/321") Reported-by: Stephen Rothwell Signed-off-by: Rodrigo Siqueira ---

[PATCH 4/4] drm/amd/display: Fix __nedf2 undefined for 32 bit compilation

2022-06-30 Thread Rodrigo Siqueira
y Wentland Cc: Alex Deucher Cc: Randy Dunlap Fixes: 9b79abf79c414 ("drm/amd/display: add CLKMGR changes for DCN32/321") Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --g

[PATCH 3/4] drm/amd/display: Fix __muldf3 undefined for 32 bit compilation

2022-06-30 Thread Rodrigo Siqueira
Randy Dunlap Fixes: 9b79abf79c414 ("drm/amd/display: add CLKMGR changes for DCN32/321") Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/cl

[PATCH 0/4] Fix compilation issues when using i386

2022-06-30 Thread Rodrigo Siqueira
you still see compilation issues, please, report: - GCC version - Config file - Branch Thanks Siqueira Rodrigo Siqueira (4): drm/amd/display: Fix __umoddi3 undefined for 32 bit compilation drm/amd/display: Fix __floatunsidf undefined for 32 bit compilation drm/amd/display: Fix __muldf3 un

[PATCH 1/4] drm/amd/display: Fix __umoddi3 undefined for 32 bit compilation

2022-06-30 Thread Rodrigo Siqueira
Cc: Randy Dunlap Fixes: 9b0e0d433f74 ("drm/amd/display: Add dependant changes for DCN32/321") Reported-by: Stephen Rothwell Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH] drm/amdgpu/display: reduce stack size in dml32_ModeSupportAndSystemConfigurationFull()

2022-06-28 Thread Rodrigo Siqueira Jordao
c: Stephen Rothwell Cc: Aurabindo Pillai Cc: Rodrigo Siqueira Jordao Signed-off-by: Alex Deucher --- .../dc/dml/dcn32/display_mode_vba_32.c| 77 --- .../drm/amd/display/dc/dml/display_mode_vba.h | 3 +- 2 files changed, 36 insertions(+), 44 deletions(-) diff --git a/d

Re: [RFC 0/3] drm/amd/display: Introduce KUnit to Display Mode Library

2022-06-22 Thread Rodrigo Siqueira Jordao
Hi, First of all, thanks a lot for exploring the introduction of kunit inside amdgpu. See my inline comments On 2022-06-18 05:08, David Gow wrote: On Sat, Jun 18, 2022 at 4:24 AM Maíra Canal wrote: On 6/17/22 04:55, David Gow wrote: On Fri, Jun 17, 2022 at 6:41 AM Maíra Canal wrote:

Re: [PATCH 16/31] drm/amd/display: refactor function transmitter_to_phy_id

2022-06-20 Thread Rodrigo Siqueira Jordao
On 2022-06-17 15:51, Nathan Chancellor wrote: Hi Rodrigo, On Fri, Jun 17, 2022 at 03:34:57PM -0400, Rodrigo Siqueira wrote: From: Nicholas Choi [Why & How] Since we only need transmitter value in function transmitter_to_phy_id(). Replace argument struct dc_link with enum transmi

[PATCH 29/31] drm/amd/display: Update hook dcn32_funcs

2022-06-17 Thread Rodrigo Siqueira
In DCN32 clk hook functions, we are using the wrong reference for get_dp_ref_clk_frequency and missing the get_dtb_ref_clk_frequency reference. This commit adds those references. Reviewed-by: Aurabindo Pillai Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32

[PATCH 30/31] drm/amd/display: Drop duplicate define

2022-06-17 Thread Rodrigo Siqueira
We already have DALSMC_MSG_TransferTableDram2Smu in the file dalsmc.h; for this reason, we don't need this definition in the smu msg file. Reviewed-by: Aurabindo Pillai Signed-off-by: Rodrigo Siqueira --- .../drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr_smu_msg.c| 2 -- 1 file changed, 2

[PATCH 24/31] drm/amd/display: Update DPPCLK programming sequence

2022-06-17 Thread Rodrigo Siqueira
DPP DTO to match exactly with the exact DPP refclk). Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 25 ++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32

[PATCH 28/31] drm/amd/display: Implement a pme workaround function

2022-06-17 Thread Rodrigo Siqueira
system behaviour. There is a clash with FCLK message due to inconsitent PMFW headers. [How] Implement a new BacoAudio function to workaround the problem of inconsistent PMFW headers in order to avoid BacoAudio message clasing with FCLK Enable message. Acked-by: Rodrigo Siqueira Signed-off

[PATCH 25/31] drm/amd/display: Fix divide-by-zero in DPPCLK and DISPCLK calculation

2022-06-17 Thread Rodrigo Siqueira
with a check to make sure clocks are not zero. Acked-by: Rodrigo Siqueira Signed-off-by: George Shen --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32

[PATCH 27/31] drm/amd/display: Get VCO frequency from registers

2022-06-17 Thread Rodrigo Siqueira
Add support to get VCO frequency from registers. Signed-off-by: Rodrigo Siqueira --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 94 ++- .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 3 + 2 files changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH 26/31] drm/amd/display: Update SW state correctly for FCLK

2022-06-17 Thread Rodrigo Siqueira
From: Alvin Lee FCLK not supported for DCN321, but still need to update the software state accordingly to prevent unneeded full updates in driver Acked-by: Rodrigo Siqueira Signed-off-by: Alvin Lee --- .../gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c| 6 +++--- 1 file changed, 3

[PATCH 20/31] drm/amd/display: Remove unused vendor specific w/a

2022-06-17 Thread Rodrigo Siqueira
From: George Shen [Why & How] Old vendor specific w/a are no longer needed and unused. Clean up codebase by removing them. Reviewed-by: Wenjing Liu Acked-by: Alan Liu Signed-off-by: George Shen --- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 133 +-

[PATCH 31/31] drm/amd/display: 3.2.191

2022-06-17 Thread Rodrigo Siqueira
From: Aric Cyr This DC patchset brings improvements in multiple areas. In summary, we highlight: - Remove unnecessary code; - Small fixes (compilation warnings, typos, etc); - Improvements in the DPMS code; - Fix eDP issues - Improvements in the MST code Acked-by: Rodrigo Siqueira Signed-off

[PATCH 16/31] drm/amd/display: refactor function transmitter_to_phy_id

2022-06-17 Thread Rodrigo Siqueira
From: Nicholas Choi [Why & How] Since we only need transmitter value in function transmitter_to_phy_id(). Replace argument struct dc_link with enum transmitter. Reviewed-by: Chao-kai Wang Acked-by: Alan Liu Reviewed-by: Nicholas Kazlauskas Signed-off-by: Nathan Chancellor Signed-off-by:

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