DCN memory width errors

2018-02-26 Thread tom
assert succeeds if I take one of the DIMMs out. I'm also still suffering from the issue of having a mirrored left/right screen over HDMI. The mirroring starts as soon as I load amdgpu and is visible even in the console before loading X. Any ideas for t

gmc9 vram width

2018-02-26 Thread tom
dev->gmc.vram_width) { /* hbm memory channel size */ chansize = 128; but on APUs the chansize should be 64 right? With one DIMM installed it prints out 128 as the width and with 2 dimms (in dual channel config) it prints 256 bits. Right

[PATCH 00/22] DC Patches Mar 25 2024

2024-03-19 Thread Tom Chung
This DC patchset brings improvements in multiple areas. In summary, we have: - Fix some bound and NULL check - Fix nonseamless transition from ODM + MPO to ODM + subvp - Allow Z8 when stutter threshold is not met - Remove plane and stream pointers from dc scratch - Remove read/write to external re

[PATCH 01/22] drm/amd/display: Allow idle opts for no flip case on PSR panel

2024-03-19 Thread Tom Chung
rom being executed. To handle this case we will allow entry to idle opt from driver side even when a PSR panel is connected under the following scenarios: 1. Only a single PSR panel is connected 2. PSR panel is not flipping Reviewed-by: Samson Tam Acked-by: Tom Chung Signed-off-by:

[PATCH 03/22] drm/amd/display: Send DTBCLK disable message on first commit

2024-03-19 Thread Tom Chung
at disable message is sent during first commit. Fixes: 27750e176a4f ("drm/amd/display: Allow DTBCLK disable for DCN35") Reviewed-by: Charlene Liu Acked-by: Tom Chung Signed-off-by: Taimur Hassan --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 5 + 1 file changed, 5

[PATCH 02/22] drm/amd/display: Consolidate HPO enable/disable and restrict only to state transitions.

2024-03-19 Thread Tom Chung
abled) that returns true if any HPO displays are present in a context. We compare the current and previous dc ctx to check whether HPO is transitioning from on to off or vice versa, and adjust the HPO state accordingly. Reviewed-by: Wenjing Liu Reviewed-by: Chris Park Acked-by: Tom Chung Signed-o

[PATCH 04/22] drm/amd/display: Remove read/write to external register

2024-03-19 Thread Tom Chung
From: Sung Joon Kim [why&how] We need to remove the reference to these registers to prevent any usage in the future. Reviewed-by: Nicholas Kazlauskas Acked-by: Tom Chung Signed-off-by: Sung Joon Kim --- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 38 --- .../amd/dis

[PATCH 05/22] drm/amd/display: Expand DML2 callbacks

2024-03-19 Thread Tom Chung
From: Dillon Varone [Why&How] These additional callbacks to DC will be required for the DML2 wrapper. Also consolidate common callbacks for projects to a single location for maintenance. Reviewed-by: Chaitanya Dhere Acked-by: Tom Chung Signed-off-by: Dillon Varone --- .../gpu/drm

[PATCH 06/22] drm/amd/display: Refactor DML2 interfaces

2024-03-19 Thread Tom Chung
From: Dillon Varone [Why&How} Some interfaces needed changes to support future architectures. Reviewed-by: Chaitanya Dhere Acked-by: Tom Chung Signed-off-by: Dillon Varone --- .../gpu/drm/amd/display/dc/core/dc_state.c| 14 +-- .../gpu/drm/amd/display/dc/core/dc_surface.c

[PATCH 08/22] drm/amd/display: fix a dereference of a NULL pointer

2024-03-19 Thread Tom Chung
From: Wenjing Liu [why&how] In some platform out_transfer_func may not be popualted. We need to check for null before dereferencing it. Fixes: 4b939f625e9b ("drm/amd/display: Generalize new minimal transition path") Reviewed-by: Alvin Lee Acked-by: Tom Chung Signed-off-b

[PATCH 07/22] drm/amd/display: Added missing null checks

2024-03-19 Thread Tom Chung
From: Sohaib Nadeem [why&how] Add the missing null check before dereference for dc_stream_status* Fixes: 06653fc22752 ("drm/amd/display: Implement update_planes_and_stream_v3 sequence") Reviewed-by: Josip Pavic Acked-by: Tom Chung Signed-off-by: Sohaib Nadeem --- drive

[PATCH 09/22] drm/amd/display: fix nonseamless transition from ODM + MPO to ODM + subvp

2024-03-19 Thread Tom Chung
slice1 | | |DPP3OPP3| | || [how] Try to acquire free pipes used as secondary DPP pipes from current state before try to acquire any free pipes for new OTG master pipe. Reviewed-by: Alvin Lee Acked-by: Tom Chung Signed-off-by: Wenjing Liu

[PATCH 11/22] drm/amd/display: Remove MPC rate control logic from DCN30 and above

2024-03-19 Thread Tom Chung
: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by: George Shen --- .../gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c | 54 +++ .../gpu/drm/amd/display/dc/dcn30/dcn30_mpc.h | 14 ++--- .../gpu/drm/amd/display/dc

[PATCH 10/22] drm/amd/display: build scaling params when a new plane is appended

2024-03-19 Thread Tom Chung
ne Acked-by: Tom Chung Signed-off-by: Wenjing Liu --- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 - drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 10 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/dr

[PATCH 12/22] drm/amd/display: Fix bounds check for dcn35 DcfClocks

2024-03-19 Thread Tom Chung
x-out-of-bounds in dcn35_clkmgr") Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Sun peng Li Acked-by: Tom Chung Signed-off-by: Roman Li --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 13/22] drm/amd/display: Add new IPS config mode

2024-03-19 Thread Tom Chung
From: Nicholas Kazlauskas [Why] We don't have a way to specify IPS2 for display off but RCG only for static screen and local video playback. [How] Add a new setting that allows RCG only when displays are active but IPS2 when all displays are off. Reviewed-by: Ovidiu Bunea Acked-by: Tom

[PATCH 14/22] drm/amd/display: Allow Z8 when stutter threshold is not met

2024-03-19 Thread Tom Chung
From: Bhawanpreet Lakha [Why&How] Some panels don't meet the stutter threshold (4k etc), this leads to power regressions. Allow z8 for panels that don't meet the threshold but support PSR/replay Reviewed-by: Nicholas Kazlauskas Acked-by: Tom Chung Signed-off-by: Bha

[PATCH 15/22] drm/amd/display: Allow Z8 when stutter threshold is not met for dcn35

2024-03-19 Thread Tom Chung
From: Bhawanpreet Lakha [Why&How] Some panels don't meet the stutter threshold (4k etc), this leads to power regressions. Allow z8 for panels that don't meet the threshold but support PSR/replay Reviewed-by: Nicholas Kazlauskas Acked-by: Tom Chung Signed-off-by: Bha

[PATCH 16/22] drm/amd/display: Increase clock table size

2024-03-19 Thread Tom Chung
From: Sung Joon Kim [why&how] To prevent out of bounds error, we need to increase the clock table size. Reviewed-by: Xi Liu Acked-by: Tom Chung Signed-off-by: Sung Joon Kim --- .../amd/display/dc/dml2/dml2_translation_helper.c | 14 +- 1 file changed, 5 insertions(+

[PATCH 17/22] drm/amd/display: Increase number of hpo dp link encoders

2024-03-19 Thread Tom Chung
From: Sridevi Arvindekar [Why] Number of hpo dp2 link encoders is increased. Instances are changed. [How] Increased size in resource pool, init for each instance Reviewed-by: Alvin Lee Acked-by: Tom Chung Signed-off-by: Sridevi Arvindekar --- drivers/gpu/drm/amd/display/dc/inc/hw

[PATCH 18/22] drm/amd/display: Remove plane and stream pointers from dc scratch

2024-03-19 Thread Tom Chung
From: Alvin Lee [Why&How] Remove several plane and stream pointers from dc for code refactoring. Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by: Alvin Lee --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 18 ++--- .../amd/display/amdgpu_dm/amdgpu_dm_color.c

[PATCH 19/22] drm/amd/display: Modify DHCUB waterwark structures and functions

2024-03-19 Thread Tom Chung
From: Dillon Varone [WHY&HOW] Converting the watermark set structure to a union and modifying some interfaces to accommodate future usage. Reviewed-by: Chaitanya Dhere Acked-by: Tom Chung Signed-off-by: Dillon Varone --- .../gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c

[PATCH 20/22] drm/amd/display: [FW Promotion] Release 0.0.210.0

2024-03-19 Thread Tom Chung
From: Anthony Koo - Add Display PHY FSM command interface for automated testing Acked-by: Tom Chung Signed-off-by: Anthony Koo --- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH 21/22] drm/amd/display: Skip pipe if the pipe idx not set properly

2024-03-19 Thread Tom Chung
From: Muhammad Ahmed [why] Driver crashes when pipe idx not set properly [how] Add code to skip the pipe that idx not set properly Reviewed-by: Charlene Liu Acked-by: Tom Chung Signed-off-by: Muhammad Ahmed --- drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c | 5 + 1 file changed, 5

[PATCH 22/22] drm/amd/display: 3.2.278

2024-03-19 Thread Tom Chung
number of hpo dp link encoders - Increase clock table size - Add new IPS config mode - Build scaling params when a new plane is appended - Refactor DML2 interfaces - Allow idle opts for no flip case on PSR panel Acked-by: Tom Chung Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h

[PATCH 00/24] DC Patches Aug 12 2024

2024-08-07 Thread Tom Chung
- Fix some cursor issue - Fix print format specifiers in DC_LOG_IPS - Fix minor coding errors in dml21 phase 5 - Improve FAM control for DCN401 - Add null pointer checks for some code - Refactor 3DLUT for non-DMA - Optimize vstartup position for AS-SDP - Update to using new dccg callbacks - Enable

[PATCH 01/24] drm/amd/display: fix minor coding errors where dml21 phase 5 uses wrong variables

2024-08-07 Thread Tom Chung
From: Wenjing Liu [why & how] There is a coding error which causes incorrect variables to be assigned in DML21 phase 5. Reviewed-by: Austin Zheng Signed-off-by: Wenjing Liu Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml_top.c | 4 ++-- 1 file change

[PATCH 02/24] drm/amd/display: apply vmin optimization even if it doesn't reach vmin level

2024-08-07 Thread Tom Chung
even if dispclk can't reach Vmin. Reviewed-by: Austin Zheng Signed-off-by: Wenjing Liu Signed-off-by: Tom Chung --- .../dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c | 14 +- .../display/dc/dml2/dml21/src/dml2_top/dml_top.c | 13 +++-- 2 files changed, 20 insert

[PATCH 03/24] drm/amd/display: 3DLUT non-DMA refactor

2024-08-07 Thread Tom Chung
d-off-by: Tom Chung --- .../amd/display/dc/hwss/dcn32/dcn32_init.c| 1 - .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 46 --- .../amd/display/dc/hwss/dcn401/dcn401_init.c | 2 +- 3 files changed, 21 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/displ

[PATCH 06/24] drm/amd/display: Update to using new dccg callbacks

2024-08-07 Thread Tom Chung
From: Hansen Dsouza [Why and how] Update to using new dccg callbacks Reviewed-by: Chris Park Signed-off-by: Hansen Dsouza Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 04/24] drm/amd/display: Check null pointers before using dc->clk_mgr

2024-08-07 Thread Tom Chung
es to "dcn35_apply_idle_power_optimizations".) This fixes 1 FORWARD_NULL issue reported by Coverity. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Hung Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) dif

[PATCH 05/24] drm/amd/display: Unlock Pipes Based On DET Allocation

2024-08-07 Thread Tom Chung
pipes. Reviewed-by: Alvin Lee Signed-off-by: Austin Zheng Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/core/dc_resource.c | 28 ++ .../display/dc/hubbub/dcn401/dcn401_hubbub.c | 23 + .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 91 +++ .../amd/display/dc

[PATCH 07/24] drm/amd/display: Add more logging for MALL static screen

2024-08-07 Thread Tom Chung
From: Aurabindo Pillai [why & how] print additional info for MALL related calculations and DMCUB messaging to aid debugging. Reviewed-by: Rodrigo Siqueira Signed-off-by: Aurabindo Pillai Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c

[PATCH 08/24] drm/amd/display: guard otg disable w/a for test

2024-08-07 Thread Tom Chung
From: Muhammad Ahmed [why & how] HW removed this w/a, but we will still keep it to avoid regression. but return in test mode. Reviewed-by: Charlene Liu Signed-off-by: Muhammad Ahmed Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 3 +++ 1

[PATCH 09/24] drm/amd/display: Check null pointer before try to access it

2024-08-07 Thread Tom Chung
From: Rodrigo Siqueira [why & how] Change the order of the pipe_ctx->plane_state check to ensure that plane_state is not null before accessing it. Reviewed-by: Alex Hung Signed-off-by: Rodrigo Siqueira Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c

[PATCH 10/24] drm/amd/display: Check null pointer before try to access it

2024-08-07 Thread Tom Chung
From: Wayne Lin [why & how] Make sure plane_state is not null before calling a function that dereferences it. Besides, remove redundant codes. Reviewed-by: Alex Hung Signed-off-by: Wayne Lin Signed-off-by: Tom Chung --- .../amd/display/dc/hwss/dcn20/dcn20_hwseq.c

[PATCH 11/24] drm/amd/display: Fix print format specifiers in DC_LOG_IPS

2024-08-07 Thread Tom Chung
From: Roman Li [Why] %d specifier is used for printing unsigned values. It can result in negative values in logs for unsigned variables. [How] Replace %d with %u for unsigned. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Roman Li Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display

[PATCH 12/24] drm/amd/display: Optimize vstartup position for AS-SDP

2024-08-07 Thread Tom Chung
Signed-off-by: Robin Chen Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c index

[PATCH 13/24] drm/amd/display: Reduce redundant minimal transitions due to SubVP

2024-08-07 Thread Tom Chung
k the transition as seamless. Reviewed-by: Alvin Lee Signed-off-by: Dillon Varone Signed-off-by: Tom Chung --- .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 25 ++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq

[PATCH 14/24] drm/amd/display: Disable DCN401 UCLK P-State support on full updates

2024-08-07 Thread Tom Chung
f-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c index b604c8886ef4..ac0a21ac

[PATCH 15/24] drm/amd/display: Perform outstanding programming on full updates

2024-08-07 Thread Tom Chung
perform any strictly required outstanding programming. Reviewed-by: Alvin Lee Signed-off-by: Dillon Varone Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/core/dc.c | 121 + .../drm/amd/display/dc/core/dc_hw_sequencer.c | 123 ++ .../amd/display/dc

[PATCH 16/24] drm/amd/display: Set max VTotal cap for dcn401

2024-08-07 Thread Tom Chung
From: Dillon Varone [WHY&HOW] Set max VTotal cap for dcn401 because VTotal register is only 16 bits wide on dcn401. Reviewed-by: Chris Park Signed-off-by: Dillon Varone Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c | 1 + 1 file change

[PATCH 18/24] drm/amd/display: Enable otg synchronization logic for DCN321

2024-08-07 Thread Tom Chung
in dcn321. Fixes: 5f0c74915815 ("drm/amd/display: Fix for otg synchronization logic") Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Alvin Lee Signed-off-by: Loan Chen Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource

[PATCH 17/24] drm/amd/display: remove redundant msg to pmfw at boot/resume

2024-08-07 Thread Tom Chung
From: Charlene Liu [why & how] this is to remove redundant msg to pmfw at boot/resume since bios already power up dcn. Reviewed-by: Chris Park Signed-off-by: Charlene Liu Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 7 +-- 1 file change

[PATCH 19/24] drm/amd/display: Remove unused field

2024-08-07 Thread Tom Chung
From: Rodrigo Siqueira [why & how] Remove force_backlight_start_level since it is never used. Acked-by: Wayne Lin Signed-off-by: Rodrigo Siqueira Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/dc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/dis

[PATCH 20/24] drm/amd/display: Improve FAM control for DCN401

2024-08-07 Thread Tom Chung
rm/amd/display: Add driver support for future FAMS versions") Acked-by: Wayne Lin Signed-off-by: Rodrigo Siqueira Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH 22/24] drm/amd/display: Adjust cursor position

2024-08-07 Thread Tom Chung
patch. Fixes: 9d84c7ef8a87 ("drm/amd/display: Correct cursor position on horizontal mirror") Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Acked-by: Wayne Lin Signed-off-by: Rodrigo Siqueira Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn1

[PATCH 21/24] drm/amd/display: fix cursor offset on rotation 180

2024-08-07 Thread Tom Chung
nk: https://gitlab.freedesktop.org/drm/amd/-/issues/2247 Reviewed-by: Harry Wentland Fixes: 9d84c7ef8a87 ("drm/amd/display: Correct cursor position on horizontal mirror") Signed-off-by: Melissa Wen Signed-off-by: Hamza Mahfooz Signed-off-by: Alex Deucher Signed-off-by: Tom Chung Cc: sta...@vger.kernel.o

[PATCH 23/24] drm/amd/display: Remove unnecessary call to REG_SEQ_SUBMIT|WAIT_DONE

2024-08-07 Thread Tom Chung
From: Rodrigo Siqueira [why & how] Remove unnecessary call to REG_SEQ_SUBMIT and REG_SEQ_WAIT_DONE, since those macros are not necessary anymore at the dpp1 set degamma. Those are part of an old implementation. Acked-by: Wayne Lin Signed-off-by: Rodrigo Siqueira Signed-off-by: Tom C

[PATCH 24/24] drm/amd/display: Promote DAL to 3.2.296

2024-08-07 Thread Tom Chung
position for AS-SDP - Update to using new dccg callbacks - Enable otg synchronization logic for DCN321 - Disable DCN401 UCLK P-State support on full updates Acked-by: Wayne Lin Signed-off-by: Martin Leung Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1

[PATCH 00/45] DC Patches May 06 2024

2024-05-01 Thread Tom Chung
to have a custom pwm frequency Tom Chung (2): drm/amd/display: Add Replay capability and state in debugfs drm/amd/display: remove panel replay initialization for DCN316 Wenjing Liu (1): drm/amd/display: reset DSC clock in post unlock update Xi Liu (1): drm/amd/display: add support for force O

[PATCH 01/45] drm/amd/display: Fix invalid Copyright notice

2024-05-01 Thread Tom Chung
From: Leo Ma [Why && How] Copyright notice failed in the Palamida scan and make changes to align with our guidelines. Acked-by: Tom Chung Signed-off-by: Leo Ma --- drivers/gpu/drm/amd/display/Kconfig | 2 ++ .../drm/amd/display/dc/clk_m

[PATCH 02/45] drm/amd/display: add support for force ODM override

2024-05-01 Thread Tom Chung
From: Xi Liu [Why and how] Current 420 ODM combine will override debug settings. Add support if debug settings is set for 420 ODM combine. Reviewed-by: Nicholas Kazlauskas Acked-by: Tom Chung Signed-off-by: Xi Liu --- drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c | 2 +- 1 file

[PATCH 03/45] drm/amd/display: Refactor DCCG into component folder

2024-05-01 Thread Tom Chung
From: Revalla Hari Krishna [why] cleaning up the code refactor requires dccg to be in its own component. [how] move all files under newly created dccg folder and fixing the makefiles. Reviewed-by: Martin Leung Acked-by: Tom Chung Signed-off-by: Revalla Hari Krishna --- drivers/gpu/drm/amd

[PATCH 04/45] drm/amd/display: Add Replay capability and state in debugfs

2024-05-01 Thread Tom Chung
f driver doesn't support Replay "Driver support: yes\n" - if driver supports Replay sudo cat /sys/kernel/debug/dri/0/eDP-1/replay_state It will return current panel replay state Reviewed-by: Sun peng Li Acked-by: Tom Chung Signed-off-by: Tom Chung --- .../amd/display/amdgpu_dm

[PATCH 06/45] drm/amd/display: Providing a mechanism to have a custom pwm frequency

2024-05-01 Thread Tom Chung
Vanzylldejong Acked-by: Tom Chung Signed-off-by: Sreeja Golui --- drivers/gpu/drm/amd/display/dc/dc.h| 1 + .../drm/amd/display/dc/dcn31/dcn31_panel_cntl.c| 14 ++ .../drm/amd/display/dc/dcn31/dcn31_panel_cntl.h| 3 +++ 3 files changed, 18 insertions

[PATCH 05/45] drm/amd/display: remove panel replay initialization for DCN316

2024-05-01 Thread Tom Chung
[Why & How] Remove the panel replay initialization for DCN316. Because currently DCN316 does not support the panel replay feature. Reviewed-by: Wayne Lin Acked-by: Tom Chung Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - 1 file changed, 1 dele

[PATCH 07/45] drm/amd/display: Refactor input mode programming for DIG FIFO

2024-05-01 Thread Tom Chung
From: Dillon Varone [WHY] Input mode for the DIG FIFO should be programmed as part of stream encoder setup. [HOW] Pre-calculate the pixels per cycle as part of the pixel clock params, and program as part of stream encoder setup. Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by

[PATCH 08/45] drm/amd/display: Skip accessing array for unknown eng_id

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY] ENGINE_ID_UNKNOWN (-1) is not a valid eng_id and not a valid array index. [HOW] Check whether eng_id is unknown to avoid access array with negative array index. This fixes 4 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off

[PATCH 09/45] drm/amd/display: Ensure array index tg_inst won't be -1

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] tg_inst will be a negative if timing_generator_count equals 0, which should be checked before used. This fixes 2 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/dc/

[PATCH 10/45] drm/amd/display: Check gpio_id before used as array index

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] GPIO_ID_UNKNOWN (-1) is not a valid value for array index and therefore should be checked in advance. This fixes 5 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/displa

[PATCH 11/45] drm/amd/display: Add NULL pointer and OVERRUN check within amdgpu_dm irq register

2024-05-01 Thread Tom Chung
Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 169 +- 1 file changed, 128 insertions(+), 41 deletions(-) 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

[PATCH 12/45] drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity reports OVERRUN warning. Should abort amdgpu_dm initialize. [How] Return failure to amdgpu_dm_init. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 - 1 file changed, 4

[PATCH 13/45] drm/amd/display: Enable urgent latency adjustments for DCN35

2024-05-01 Thread Tom Chung
. Reviewed-by: Nicholas Kazlauskas Acked-by: Tom Chung Signed-off-by: Nicholas Susanto --- drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c b/drivers/gpu/drm/amd

[PATCH 15/45] drm/amd/display: Fix DSC-re-computing

2024-05-01 Thread Tom Chung
n MST case. [Limitations] This change only affects MST DSC devices that follow specifications additional changes are required to check for old MST DSC devices such as ones which do not check for Virtual DPCD registers. Reviewed-by: Swapnil Patel Reviewed-by: Hersen Wu Acked-by: Tom Chung Signed-off-b

[PATCH 16/45] drm/amd/display: Fix incorrect size calculation for loop

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY] fe_clk_en has size of 5 but sizeof(fe_clk_en) has byte size 20 which is lager than the array size. [HOW] Divide byte size 20 by its element size. This fixes 2 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung

[PATCH 14/45] drm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity report OVERRUN warning. There are only max_links elements within dc->links. link count could up to AMDGPU_DM_MAX_DISPLAY_INDEX 31. [How] Make sure link count less than max_links. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen

[PATCH 17/45] drm/amd/display: Clean-up recout calculation for visual confirm

2024-05-01 Thread Tom Chung
From: Samson Tam [Why & How] Split into a separate adjust and calculate call so we can let the caller adjust recout Reviewed-by: Jun Lei Acked-by: Tom Chung Signed-off-by: Samson Tam --- .../gpu/drm/amd/display/dc/core/dc_resource.c | 23 +-- 1 file changed, 16 insert

[PATCH 18/45] drm/amd/display: Check index for aux_rd_interval before using

2024-05-01 Thread Tom Chung
From: Alex Hung aux_rd_interval has size of 7 and should be checked. This fixes 3 OVERRUN and 1 INTEGER_OVERFLOW issues reported by Coverity. Reviewed-by: Rodrigo Siqueira Acked-by: Tom Chung Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/dc/link/protocols/link_dp_training.c | 4

[PATCH 19/45] drm/amd/display: Add missing NULL pointer check within dpcd_extend_address_range

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why & How] ASSERT if return NULL from kcalloc. Reviewed-by: Alex Hung Reviewed-by: Rodrigo Siqueira Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

[PATCH 20/45] drm/amd/display: Add array index check for hdcp ddc access

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity reports OVERRUN warning. Do not check if array index valid. [How] Check msg_id valid and valid array index. Reviewed-by: Alex Hung Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../drm/amd/display/modules/hdcp/hdcp_ddc.c | 28 --- 1 file

[PATCH 21/45] drm/amd/display: Refactor HUBP into component folder.

2024-05-01 Thread Tom Chung
From: Bhuvana Chandra Pinninti [why] cleaning up the code refactor requires hubp to be in its own component. [how] move all files under newly created hubp folder and fixing the makefiles. Reviewed-by: Martin Leung Acked-by: Tom Chung Signed-off-by: Bhuvana Chandra Pinninti --- drivers/gpu

[PATCH 22/45] drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] num_valid_sets needs to be checked to avoid a negative index when accessing reader_wm_sets[num_valid_sets - 1]. This fixes an OVERRUN issue reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm

[PATCH 23/45] drm/amd/display: Skip updating link encoder for unknown eng_id

2024-05-01 Thread Tom Chung
From: Alex Hung This prevents accessing to negative index of link_encoders array. This fixes an OVERRUN issue reported by Coverity. Reviewed-by: Rodrigo Siqueira Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/dc/link/link_factory.c | 2 +- 1 file changed, 1

[PATCH 24/45] drm/amd/display: Check msg_id before processing transcation

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] HDCP_MESSAGE_ID_INVALID (-1) is not a valid msg_id nor is it a valid array index, and it needs checking before used. This fixes 4 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu

[PATCH 25/45] drm/amd/display: Release state memory if amdgpu_dm_create_color_properties fail

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity reports RESOURCE_LEAK warning. State memory is not released if dm_create_color_properties fail. [How] Call kfree(state) before return. Reviewed-by: Alex Hung Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd

[PATCH 27/45] drm/amd/display: Reset input mode for DIG on encoder reset

2024-05-01 Thread Tom Chung
From: Dillon Varone [WHY & HOW] Make enable and disable sequences symmetric. Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by: Dillon Varone --- drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 28/45] drm/amd/display: Fix idle optimization checks for multi-display and dual eDP

2024-05-01 Thread Tom Chung
pport. Cc: Mario Limonciello Cc: Alex Deucher Cc: sta...@vger.kernel.org Reviewed-by: Charlene Liu Acked-by: Tom Chung Signed-off-by: Nicholas Kazlauskas --- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 33 +++ 1 file changed, 27 insertions(+), 6 deletions(-) diff --

[PATCH 26/45] drm/amd/display: Check link_index before accessing dc->links[]

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] dc->links[] has max size of MAX_LINKS and NULL is return when trying to access with out-of-bound index. This fixes 3 OVERRUN and 1 RESOURCE_LEAK issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- driv

[PATCH 29/45] drm/amd/display: MST DSC check for older devices

2024-05-01 Thread Tom Chung
y: Swapnil Patel Acked-by: Tom Chung Signed-off-by: Agustin Gutierrez --- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c| 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display

[PATCH 30/45] drm/amd/display: Add otg_master NULL check within resource_log_pipe_topology_update

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity reports NULL_RETURN warning. [How] Add otg_master NULL check. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 31/45] drm/amd/display: Fix Coverity INTERGER_OVERFLOW within construct_integrated_info

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] For substrcation, coverity reports integer overflow warning message when variable type is uint32_t. [How] Change varaible type to int32_t. Reviewed-by: Alex Hung Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd/display

[PATCH 32/45] Revert "drm/amd/display: Only program P-State force if pipe config changed"

2024-05-01 Thread Tom Chung
From: Alvin Lee This reverts commit 2147d93a90cc ("drm/amd/display: Only program P-State force if pipe config changed") Which causes regression. Reviewed-by: Samson Tam Acked-by: Tom Chung Signed-off-by: Alvin Lee --- .../amd/display/dc/hwss/dcn32/dcn32_hwseq

[PATCH 33/45] drm/amd/display: reset DSC clock in post unlock update

2024-05-01 Thread Tom Chung
disconnection and all mpccs are disconnected before reset DSC clock. Reviewed-by: Samson Tam Acked-by: Tom Chung Signed-off-by: Wenjing Liu --- .../drm/amd/display/dc/dcn401/dcn401_dccg.c | 31 +++-- .../drm/amd/display/dc/dsc/dcn20/dcn20_dsc.c | 18 +++-- .../drm/amd/display/dc/dsc/dcn20

[PATCH 34/45] drm/amd/display: Fix Coverity INTEGER_OVERFLOW within dal_gpio_service_create

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] For subtraction, coverity reports integer overflow warning message when variable type is uint32_t. [How] Change variable type to int32_t. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c

[PATCH 35/45] drm/amd/display: Add NULL pointer check for kzalloc

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why & How] Check return pointer of kzalloc before using it. Reviewed-by: Alex Hung Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c| 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 36/45] drm/amd/display: Fix wrong array size dummy_boolean of dml2_core_calcs_mode_support_locals

2024-05-01 Thread Tom Chung
lai Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h b/drivers/gpu/drm/amd/displ

[PATCH 37/45] drm/amd/display: Release clck_src memory if clk_src_construct fails

2024-05-01 Thread Tom Chung
From: Hersen Wu [Why] Coverity reports RESOURCE_LEAK for some implemenations of clock_source_create. Do not release memory of clk_src if contructor fails. [How] Free clk_src if contructor fails. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../gpu/drm/amd

[PATCH 38/45] drm/amd/display: Limit clock assignments by size of clk tables

2024-05-01 Thread Tom Chung
From: Alex Hung [WHAT & HOW] Check clk table's array size to avoid out-of-bound memory accesses. This fixes two OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_

[PATCH 39/45] drm/amd/display: Spinlock before reading event

2024-05-01 Thread Tom Chung
From: Alex Hung [WHY & HOW] A read of acrtc_attach->base.state->event was not locked so moving it inside the spinlock. This fixes a LOCK_EVASION issue reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display

[PATCH 40/45] drm/amd/display: Limit array index according to architecture

2024-05-01 Thread Tom Chung
: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c b/drivers/gpu/drm/amd/display/

[PATCH 42/45] drm/amd/display: Avoid overflow dc_clk_table->entries by limit to MAX_NUM_DPM_LVL

2024-05-01 Thread Tom Chung
-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- .../dc/dml2/dml21/dml21_translation_helper.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c b/drivers/gpu/drm/

[PATCH 41/45] drm/amd/display: Fix Coverity INTEGER_OVERFLOW within decide_fallback_link_setting_max_bw_policy

2024-05-01 Thread Tom Chung
cess array, Coverity suspects index invalid. [How] Change varaible type to uint32_t. Reviewed-by: Alex Hung Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Hersen Wu --- .../gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 44/45] drm/amd/display: [FW Promotion] Release 0.0.216.0

2024-05-01 Thread Tom Chung
ABM HW caps since not all ASICs have the same number of cure segments and bins Acked-by: Tom Chung Signed-off-by: Anthony Koo --- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 139 ++ 1 file changed, 139 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dmub/inc

[PATCH 43/45] drm/amd/display: Skip plane when not found by stream id

2024-05-01 Thread Tom Chung
From: Alex Hung [Why & How] dml_stream_idx will be -1 when it is not found. Check and skip in such a case as -1 is not a valid array index. This fixes a NEGATIVE_RETURNS issue reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Tom Chung Signed-off-by: Alex Hung --- drivers/gpu

[PATCH 45/45] drm/amd/display: 3.2.284

2024-05-01 Thread Tom Chung
component folder - Refactor input mode programming for DIG FIFO - Reset DSC clock in post unlock update - Clean-up recout calculation for visual confirm - Enable urgent latency adjustments for DCN35 Acked-by: Tom Chung Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file

[PATCH 0/7] DC Patches Nov 20 2023

2023-11-21 Thread Tom Chung
This DC patchset brings improvements in multiple areas. In summary, we have: - Add DSC granular throughput adjustment - Allow DTBCLK disable for DCN35 - Update Fixed VS/PE Retimer Sequence - Block dcn315 dynamic crb allocation when unintended - Update dcn315 lpddr pstate latency Cc: Daniel Wheele

[PATCH 1/7] drm/amd/display: update dcn315 lpddr pstate latency

2023-11-21 Thread Tom Chung
From: Dmytro Laktyushkin [WHY/HOW] Increase the pstate latency to improve ac/dc transition Reviewed-by: Charlene Liu Acked-by: Tom Chung Signed-off-by: Dmytro Laktyushkin --- .../drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c| 8 1 file changed, 4 insertions(+), 4 deletions

[PATCH 2/7] drm/amd/display: block dcn315 dynamic crb allocation when unintended

2023-11-21 Thread Tom Chung
From: Dmytro Laktyushkin [WHY/HOW] Limit the dynamic crb to dual stream configs that include eDP Reviewed-by: Charlene Liu Acked-by: Tom Chung Signed-off-by: Dmytro Laktyushkin --- .../drm/amd/display/dc/resource/dcn315/dcn315_resource.c| 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 3/7] drm/amd/display: Update Fixed VS/PE Retimer Sequence

2023-11-21 Thread Tom Chung
From: Michael Strauss [WHY/HOW] Add a new AUX sequence provided by vendor to improve interop with specific display configurations. Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by: Michael Strauss --- .../protocols/link_dp_training_fixed_vs_pe_retimer.c | 10 ++ 1 file

  1   2   3   4   5   6   7   8   9   10   >