[PATCH] SWDEV-311259 - dc: move FPU associated DCN302 code to DML

2021-12-23 Thread Jasdeep Dhillon
[Why & How] As part of the FPU isolation work documented in https://patchwork.freedesktop.org/series/93042/, isolate code that uses FPU in DCN302 to DML, where all FPU code should locate. Signed-off-by: Jasdeep Dhillon --- CMakeLists.txt | 1 + dc/dcn302/Makefile |

[PATCH 00/13] DC Patches Feb 7, 2022

2022-02-04 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we have: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Anthony Koo (1): drm/amd/display: [FW Promotion] Rele

[PATCH 01/13] drm/amd/display: Fix for variable may be used uninitialized error

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein [Why] Build failure due to ‘status’ may be used uninitialized [How] Initialize status to LINK_TRAINING_SUCCESS Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- 1 file changed

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

2022-02-04 Thread Jasdeep Dhillon
-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 1 file changed, 4 deletions(-) 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 e82aa0559bdf..9df66501a453 100

[PATCH 04/13] drm/amd/display: Basic support with device ID

2022-02-04 Thread Jasdeep Dhillon
From: Oliver Logush [why] To get the the cyan_skillfish check working Reviewed-by: Charlene Liu Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Oliver Logush --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- .../gpu/drm/amd/display/amdgpu_dm

[PATCH 03/13] drm/amd/display: limit unbounded requesting to 5k

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Unbounded requesting is unsupported on pipe split modes and this change prevents us running into such a situation with wide modes. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- drivers/gpu/drm/amd/display/dc/dcn31

[PATCH 05/13] drm/amd/display: remove static from optc31_set_drr

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein remove static from optc31_set_drr Reviewed-by: Nevenko Stupar Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.h | 2 ++ 2 files changed, 3 insertions

[PATCH 00/13] DC Patches Feburary 7, 2022

2022-02-04 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we have: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Anthony Koo (1): drm/amd/display: [FW Promotion] Rele

[PATCH 01/13] drm/amd/display: Fix for variable may be used uninitialized error

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein [Why] Build failure due to ‘status’ may be used uninitialized [How] Initialize status to LINK_TRAINING_SUCCESS Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- 1 file changed

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

2022-02-04 Thread Jasdeep Dhillon
-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 1 file changed, 4 deletions(-) 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 e82aa0559bdf..9df66501a453 100

[PATCH 04/13] drm/amd/display: Basic support with device ID

2022-02-04 Thread Jasdeep Dhillon
From: Oliver Logush [why] To get the the cyan_skillfish check working Reviewed-by: Charlene Liu Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Oliver Logush --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- .../gpu/drm/amd/display/amdgpu_dm

[PATCH 03/13] drm/amd/display: limit unbounded requesting to 5k

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Unbounded requesting is unsupported on pipe split modes and this change prevents us running into such a situation with wide modes. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- drivers/gpu/drm/amd/display/dc/dcn31

[PATCH 05/13] drm/amd/display: remove static from optc31_set_drr

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein remove static from optc31_set_drr Reviewed-by: Nevenko Stupar Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.h | 2 ++ 2 files changed, 3 insertions

[PATCH 00/14] DC Patchset, Feb 7 2022 v2

2022-02-04 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we have: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Anthony Koo (1): drm/amd/display: [FW Promotion] Rel

[PATCH 01/14] drm/amd/display: Fix for variable may be used uninitialized error

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein [Why] Build failure due to ‘status’ may be used uninitialized [How] Initialize status to LINK_TRAINING_SUCCESS Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- 1 file changed

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

2022-02-04 Thread Jasdeep Dhillon
-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 1 file changed, 4 deletions(-) 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 e82aa0559bdf..9df66501a453 100

[PATCH 04/14] drm/amd/display: Basic support with device ID

2022-02-04 Thread Jasdeep Dhillon
From: Oliver Logush [why] To get the the cyan_skillfish check working Reviewed-by: Charlene Liu Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Oliver Logush --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- .../gpu/drm/amd/display/amdgpu_dm

[PATCH 05/14] drm/amd/display: remove static from optc31_set_drr

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein remove static from optc31_set_drr Reviewed-by: Nevenko Stupar Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.h | 2 ++ 2 files changed, 3 insertions

[PATCH 03/14] drm/amd/display: limit unbounded requesting to 5k

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Unbounded requesting is unsupported on pipe split modes and this change prevents us running into such a situation with wide modes. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- drivers/gpu/drm/amd/display/dc/dcn31

[PATCH 07/14] drm/amd/display: fix yellow carp wm clamping

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Fix clamping to match register field size Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- .../drm/amd/display/dc/dcn31/dcn31_hubbub.c | 61 ++- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git

[PATCH 06/14] dc: do blocked MST topology discovery at resume from S3/S4

2022-02-04 Thread Jasdeep Dhillon
From: "Guo, Bing" Why: When resume from sleep or hiberation, blocked MST Topology discovery might need to be used. How: Added "DETECT_REASON_RESUMEFROMS3S4" to enum dc_detect_reason; use it to require blocked MST Topology discovery. Reviewed-by: Wenjing Liu Acked-by: Jas

[PATCH 10/14] drm/amd/display: Fix DP LT sequence on EQ fail

2022-02-04 Thread Jasdeep Dhillon
o max when dropping link rate due to EQ failure during link training. Reviewed-by: Aric Cyr Acked-by: Jasdeep Dhillon Signed-off-by: Ilya --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/dr

[PATCH 08/14] drm/amd/display: change fastboot timing validation

2022-02-04 Thread Jasdeep Dhillon
y Koo Acked-by: Jasdeep Dhillon Signed-off-by: Paul Hsieh --- drivers/gpu/drm/amd/display/dc/core/dc.c| 2 +- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/displ

[PATCH 09/14] drm/amd/display: keep eDP Vdd on when eDP stream is already enabled

2022-02-04 Thread Jasdeep Dhillon
From: Zhan Liu [Why] Even if can_apply_edp_fast_boot is set to 1 at boot, this flag will be cleared to 0 at S3 resume. [How] Keep eDP Vdd on when eDP stream is already enabled. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Zhan Liu --- .../display/dc/dce110

[PATCH 13/14] drm/amd/display: handle null link encoder

2022-02-04 Thread Jasdeep Dhillon
From: Martin Tsai [Why] The link encoder mapping could return a null one and causes system crash. [How] Let the mapping can get an available link encoder without endpoint identification check. Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Martin Tsai --- drivers/gpu/drm

[PATCH 12/14] drm/amd/display: 3.2.172

2022-02-04 Thread Jasdeep Dhillon
From: Aric Cyr This version brings along the following fixes: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Acked-by: Jasdeep Dhillon Signed-off-by: Aric Cyr --- drivers

[PATCH 11/14] drm/amd/display: [FW Promotion] Release 0.0.103.0

2022-02-04 Thread Jasdeep Dhillon
From: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Jasdeep Dhillon Signed-off-by: Anthony Koo --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd

[PATCH 14/14] SWDEV-321758 - dc: Code clean

2022-02-04 Thread Jasdeep Dhillon
From: Oliver Logush Signed-off-by: Oliver Logush --- drivers/gpu/drm/amd/display/include/dal_asic_id.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/amd/display/include/dal_asic_id.h index c25bc4d9cd4b..1

[PATCH 00/13] DC Patchset, Feb 7 2022 v3

2022-02-04 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we have: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Anthony Koo (1): drm/amd/display: [FW Promotion] Rele

[PATCH 04/13] drm/amd/display: remove static from optc31_set_drr

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein remove static from optc31_set_drr Reviewed-by: Nevenko Stupar Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.h | 2 ++ 2 files changed, 3 insertions

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

2022-02-04 Thread Jasdeep Dhillon
-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 1 file changed, 4 deletions(-) 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 e82aa0559bdf..9df66501a453 100

[PATCH 01/13] drm/amd/display: Fix for variable may be used uninitialized error

2022-02-04 Thread Jasdeep Dhillon
From: Eric Bernstein [Why] Build failure due to ‘status’ may be used uninitialized [How] Initialize status to LINK_TRAINING_SUCCESS Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Eric Bernstein --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- 1 file changed

[PATCH 05/13] dc: do blocked MST topology discovery at resume from S3/S4

2022-02-04 Thread Jasdeep Dhillon
From: "Guo, Bing" Why: When resume from sleep or hiberation, blocked MST Topology discovery might need to be used. How: Added "DETECT_REASON_RESUMEFROMS3S4" to enum dc_detect_reason; use it to require blocked MST Topology discovery. Reviewed-by: Wenjing Liu Acked-by: Jas

[PATCH 03/13] drm/amd/display: limit unbounded requesting to 5k

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Unbounded requesting is unsupported on pipe split modes and this change prevents us running into such a situation with wide modes. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- drivers/gpu/drm/amd/display/dc/dcn31

[PATCH 08/13] drm/amd/display: keep eDP Vdd on when eDP stream is already enabled

2022-02-04 Thread Jasdeep Dhillon
From: Zhan Liu [Why] Even if can_apply_edp_fast_boot is set to 1 at boot, this flag will be cleared to 0 at S3 resume. [How] Keep eDP Vdd on when eDP stream is already enabled. Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Zhan Liu --- .../display/dc/dce110

[PATCH 06/13] drm/amd/display: fix yellow carp wm clamping

2022-02-04 Thread Jasdeep Dhillon
From: Dmytro Laktyushkin Fix clamping to match register field size Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Dmytro Laktyushkin --- .../drm/amd/display/dc/dcn31/dcn31_hubbub.c | 61 ++- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git

[PATCH 09/13] drm/amd/display: Fix DP LT sequence on EQ fail

2022-02-04 Thread Jasdeep Dhillon
o max when dropping link rate due to EQ failure during link training. Reviewed-by: Aric Cyr Acked-by: Jasdeep Dhillon Signed-off-by: Ilya --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/dr

[PATCH 10/13] drm/amd/display: [FW Promotion] Release 0.0.103.0

2022-02-04 Thread Jasdeep Dhillon
From: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Jasdeep Dhillon Signed-off-by: Anthony Koo --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd

[PATCH 11/13] drm/amd/display: 3.2.172

2022-02-04 Thread Jasdeep Dhillon
From: Aric Cyr This version brings along the following fixes: -fix for build failure uninitalized error -Bug fix for DP2 using uncertified cable -limit unbounded request to 5k -fix DP LT sequence on EQ fail -Bug fixes for S3/S4 Acked-by: Jasdeep Dhillon Signed-off-by: Aric Cyr --- drivers

[PATCH 07/13] drm/amd/display: change fastboot timing validation

2022-02-04 Thread Jasdeep Dhillon
y Koo Acked-by: Jasdeep Dhillon Signed-off-by: Paul Hsieh --- drivers/gpu/drm/amd/display/dc/core/dc.c| 2 +- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/displ

[PATCH 12/13] drm/amd/display: handle null link encoder

2022-02-04 Thread Jasdeep Dhillon
From: Martin Tsai [Why] The link encoder mapping could return a null one and causes system crash. [How] Let the mapping can get an available link encoder without endpoint identification check. Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Martin Tsai --- drivers/gpu/drm

[PATCH 13/13] drm/amd/display: Basic support with device ID

2022-02-04 Thread Jasdeep Dhillon
From: Oliver Logush [why] To get the the cyan_skillfish check working Reviewed-by: Charlene Liu Reviewed-by: Charlene Liu Acked-by: Jasdeep Dhillon Signed-off-by: Oliver Logush --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +-- .../gpu/drm/amd/display/amdgpu_dm

[PATCH 0/1] Revert Patch from Feb 7 2022 Patchset

2022-02-07 Thread Jasdeep Dhillon
Reverting patch Jasdeep Dhillon (1): Revert "drm/amd/display: Basic support with device ID" .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 ++- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- .../gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- .../g

[PATCH 0/1] Revert Patch from Feb 7 2022 Patchset v2

2022-02-07 Thread Jasdeep Dhillon
Reverting patch Jasdeep Dhillon (1): Revert "drm/amd/display: Basic support with device ID" .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 ++- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- .../gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- .../g

[PATCH 1/1] Revert "drm/amd/display: Basic support with device ID"

2022-02-07 Thread Jasdeep Dhillon
This reverts commit 733a212f20dfa14fa20814f21526fb180f25fdd8. --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 ++- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- .../gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- .../gpu/drm/amd/display/include/dal_asic_id.h | 3

[PATCH 00/11] DC Patches Feburary 14, 2022

2022-02-11 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we highlight: -Fixes bugs for dsc mst hub -Enables Z9 denial interface by default -Fixes dmub outbox notification Anthony Koo (1): drm/amd/display: [FW Promotion] Release 0.0.104.0 Aric Cyr (1): drm/amd/display: 3.2.173 Ch

[PATCH 01/11] drm/amd/display: reset lane settings after each PHY repeater LT

2022-02-11 Thread Jasdeep Dhillon
: Jasdeep Dhillon Signed-off-by: Sung Joon Kim --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index

[PATCH 03/11] drm/amd/display: dsc mst re-compute pbn for changes on hub

2022-02-11 Thread Jasdeep Dhillon
dc->current_state and new request from atomic_chceck, it will provide info of displays connected to hub and do pbn re-compute. Reviewed-by: Roman Li Acked-by: Jasdeep Dhillon Signed-off-by: Hersen Wu --- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 53 --- 1 file chang

[PATCH 02/11] drm/amd/display: Fix for dmub outbox notification enable

2022-02-11 Thread Jasdeep Dhillon
ISR is registered. Also, restructured outbox enable code to call from dm layer and renamed APIs. Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Meenakshikumar Somasundaram --- drivers/gpu/drm/amd/display/dc/core/dc.c | 66 +-- drivers/gpu/drm/amd/display/dc

[PATCH 04/11] drm/amd/display: make sure pipe power gating reach requested hw state

2022-02-11 Thread Jasdeep Dhillon
registry key handling. Reviewed-by: Sung joon Kim Acked-by: Jasdeep Dhillon Signed-off-by: Charlene Liu --- .../drm/amd/display/dc/dcn31/dcn31_hwseq.c| 21 --- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c b

[PATCH 05/11] drm/amd/display: enable z9 denial interface by default

2022-02-11 Thread Jasdeep Dhillon
From: Eric Yang Reviewed-by: Nicholas Kazlauskas Acked-by: Jasdeep Dhillon Signed-off-by: Eric Yang --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c b/drivers

[PATCH 06/11] drm/amd/display: Add affected crtcs to atomic state for dsc mst unplug

2022-02-11 Thread Jasdeep Dhillon
DSC connectors") Reviewed-by: Hersen Wu Acked-by: Jasdeep Dhillon Signed-off-by: Roman Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/a

[PATCH 07/11] drm/amd/display: [FW Promotion] Release 0.0.104.0

2022-02-11 Thread Jasdeep Dhillon
From: Anthony Koo Acked-by: Jasdeep Dhillon Signed-off-by: Anthony Koo --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

[PATCH 08/11] drm/amd/display: 3.2.173

2022-02-11 Thread Jasdeep Dhillon
From: Aric Cyr This version brings along the following fixes: -Fixes bugs for dsc mst hub -Enables 29 denial itnerface by default -Fixes dmub outbox notificatoin Acked-by: Jasdeep Dhillon Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion

[PATCH 09/11] drm/amd/display: add dsc mst stream pbn log for debug

2022-02-11 Thread Jasdeep Dhillon
dc_core_enable_stream, dc_core_disable_stream, dc_stream_log Reviewed-by: Jerry Zuo Acked-by: Jasdeep Dhillon Signed-off-by: Hersen Wu --- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 15 ++ drivers/gpu/drm/amd/display/dc/core/dc_link.c | 20 +++ .../gpu/drm/amd/display/dc

[PATCH 10/11] drm/amd/display: Add dsc pre-validation in atomic check

2022-02-11 Thread Jasdeep Dhillon
ly leading to dsc engine hang. [How] During atomic_check pre-compute dsc params. Only set mode_changed if timing is changed. Reviewed-by: Hersen Wu Acked-by: Jasdeep Dhillon Signed-off-by: Roman Li --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +- .../gpu/drm/amd/display/amdgpu_dm/a

[PATCH 11/11] drm/amd/display: extend dcn201 support

2022-02-11 Thread Jasdeep Dhillon
From: Oliver Logush Signed-off-by: Oliver Logush --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- drivers/gpu/drm/amd/display/include/dal_asic_id.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/

[PATCH 00/31] DC Patches Sept 20, 2022

2022-09-21 Thread Jasdeep Dhillon
Subject: DC Patches MONTH DAY, YEAR This DC patchset brings improvements in multiple areas. In summary, we have: - LTTPR mode can be be dynamically changed - features able to use same interface to update cursor info - fixes for llvm compilation issues - Fixes DIO FIFO underflow

[PATCH 03/31] drm/amd/display: Fix various dynamic ODM transitions on DCN32

2022-09-21 Thread Jasdeep Dhillon
s to DCN32 pipe merge/split algorithm to support Dynamic ODM and MPO transitions. In summary, this commit fixes various transitions to support ODM->MPO and MPO->ODM. Reviewed-by: Martin Leung Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Dillon Varone --- drivers/gpu/drm/a

[PATCH 01/31] drm/amd/display: Refactor LTTPR mode selection

2022-09-21 Thread Jasdeep Dhillon
er DP changes included: -Only use fixed vs/pe link training sequence for 8b/10b encoding -Restrict fixed vs aux timeout workaround to Yellow Carp family Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Michael Strauss --- .../gpu/drm/amd/display/dc/core/dc_link_ddc.c | 19 ++ .../gp

[PATCH 02/31] drm/amd/display: Update DCN32 to use new SR latencies

2022-09-21 Thread Jasdeep Dhillon
From: Alvin Lee [Description] Update to new SR latencies for DCN32 Reviewed-by: Nevenko Stupar Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 04/31] drm/amd/display: Remove interface for periodic interrupt 1

2022-09-21 Thread Jasdeep Dhillon
From: Aric Cyr [why] Only a single VLINE interrupt is available so interface should not expose the second one which is used by DMU firmware. [how] Remove references to periodic_interrupt1 and VLINE1 from DC interfaces. Reviewed-by: Jaehyun Chung Acked-by: Jasdeep Dhillon Signed-off-by: Aric

[PATCH 07/31] drm/amd/display: Add explicit FIFO disable for DP blank

2022-09-21 Thread Jasdeep Dhillon
uence that will disable the DIG FIFO first. Reviewed-by: Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../display/dc/dcn314/dcn314_dio_stream_encoder.c| 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display

[PATCH 09/31] drm/amd/display: Change EDID fallback condition

2022-09-21 Thread Jasdeep Dhillon
: Martin Leung Acked-by: Jasdeep Dhillon Signed-off-by: Ilya Bakoulin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 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 d93393cc66c0

[PATCH 06/31] drm/amd/display: Wrap OTG disable workaround with FIFO control

2022-09-21 Thread Jasdeep Dhillon
after enabling the CRTC. Reviewed-by: Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c| 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/d

[PATCH 08/31] drm/amd/display: Do DIO FIFO enable after DP video stream enable

2022-09-21 Thread Jasdeep Dhillon
Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../display/dc/dcn314/dcn314_dio_stream_encoder.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c b/drivers/gpu/dr

[PATCH 05/31] drm/amd/display: Avoid avoid unnecessary pixel rate divider programming

2022-09-21 Thread Jasdeep Dhillon
From: Taimur Hassan [Why] Programming pixel rate divider when FIFO is enabled can cause FIFO error. [How] Skip divider programming when divider values are the same to prevent FIFO error. Reviewed-by: Nicholas Kazlauskas Acked-by: Jasdeep Dhillon Signed-off-by: Taimur Hassan --- .../drm/amd

[PATCH 10/31] drm/amd/display: skip phantom pipes when checking for pending flip

2022-09-21 Thread Jasdeep Dhillon
From: Aurabindo Pillai [Why&How] Phantom pipes are not programmed fully to hardware and hence we should not expect a flip completion. Reviewed-by: Alvin Lee Acked-by: Jasdeep Dhillon Signed-off-by: Aurabindo Pillai --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file change

[PATCH 01/31] drm/amd/display: Refactor LTTPR mode selection

2022-09-21 Thread Jasdeep Dhillon
er DP changes included: -Only use fixed vs/pe link training sequence for 8b/10b encoding -Restrict fixed vs aux timeout workaround to Yellow Carp family Reviewed-by: Wenjing Liu Acked-by: Jasdeep Dhillon Signed-off-by: Michael Strauss --- .../gpu/drm/amd/display/dc/core/dc_link_ddc.c | 19 ++ .../gp

[PATCH 00/31] DC Patches Sept 26, 2022

2022-09-21 Thread Jasdeep Dhillon
This DC patchset brings improvements in multiple areas. In summary, we have: - LTTPR mode can be be dynamically changed - features able to use same interface to update cursor info - fixes for llvm compilation issues - Fixes DIO FIFO underflow and other FIFO errors - Partially

[PATCH 04/31] drm/amd/display: Remove interface for periodic interrupt 1

2022-09-21 Thread Jasdeep Dhillon
From: Aric Cyr [why] Only a single VLINE interrupt is available so interface should not expose the second one which is used by DMU firmware. [how] Remove references to periodic_interrupt1 and VLINE1 from DC interfaces. Reviewed-by: Jaehyun Chung Acked-by: Jasdeep Dhillon Signed-off-by: Aric

[PATCH 05/31] drm/amd/display: Avoid avoid unnecessary pixel rate divider programming

2022-09-21 Thread Jasdeep Dhillon
From: Taimur Hassan [Why] Programming pixel rate divider when FIFO is enabled can cause FIFO error. [How] Skip divider programming when divider values are the same to prevent FIFO error. Reviewed-by: Nicholas Kazlauskas Acked-by: Jasdeep Dhillon Signed-off-by: Taimur Hassan --- .../drm/amd

[PATCH 03/31] drm/amd/display: Fix various dynamic ODM transitions on DCN32

2022-09-21 Thread Jasdeep Dhillon
s to DCN32 pipe merge/split algorithm to support Dynamic ODM and MPO transitions. In summary, this commit fixes various transitions to support ODM->MPO and MPO->ODM. Reviewed-by: Martin Leung Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Dillon Varone --- drivers/gpu/drm/a

[PATCH 06/31] drm/amd/display: Wrap OTG disable workaround with FIFO control

2022-09-21 Thread Jasdeep Dhillon
after enabling the CRTC. Reviewed-by: Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c| 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/d

[PATCH 11/31] drm/amd/display: fix a divide by zero error

2022-09-21 Thread Jasdeep Dhillon
From: Aurabindo Pillai [Why&How] Incorrect variable was being checked for zero condition. Reviewed-by: Alvin Lee Acked-by: Jasdeep Dhillon Signed-off-by: Aurabindo Pillai --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 08/31] drm/amd/display: Do DIO FIFO enable after DP video stream enable

2022-09-21 Thread Jasdeep Dhillon
Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../display/dc/dcn314/dcn314_dio_stream_encoder.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c b/drivers/gpu/dr

[PATCH 10/31] drm/amd/display: skip phantom pipes when checking for pending flip

2022-09-21 Thread Jasdeep Dhillon
From: Aurabindo Pillai [Why&How] Phantom pipes are not programmed fully to hardware and hence we should not expect a flip completion. Reviewed-by: Alvin Lee Acked-by: Jasdeep Dhillon Signed-off-by: Aurabindo Pillai --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file change

[PATCH 02/31] drm/amd/display: Update DCN32 to use new SR latencies

2022-09-21 Thread Jasdeep Dhillon
From: Alvin Lee [Description] Update to new SR latencies for DCN32 Reviewed-by: Nevenko Stupar Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 09/31] drm/amd/display: Change EDID fallback condition

2022-09-21 Thread Jasdeep Dhillon
: Martin Leung Acked-by: Jasdeep Dhillon Signed-off-by: Ilya Bakoulin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 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 d93393cc66c0

[PATCH 28/31] drm/amd/display: Reduce number of arguments of dml314's CalculateFlipSchedule()

2022-09-21 Thread Jasdeep Dhillon
From: Nathan Chancellor Most of the arguments are identical between the two call sites and they can be accessed through the 'struct vba_vars_st' pointer. This reduces the total amount of stack space that dml314_ModeSupportAndSystemConfigurationFull() uses by 112 bytes with LLVM 16 (1976 -> 1864),

[PATCH 18/31] drm/amd/display: Fix CAB allocation calculation

2022-09-21 Thread Jasdeep Dhillon
From: Alvin Lee [Description] Accidentally added when should have subtracted in calculation Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 21/31] Add ABM control to panel_config struct.

2022-09-21 Thread Jasdeep Dhillon
From: Ian Chen Reviewed-by: Josip Pavic Acked-by: Jasdeep Dhillon Signed-off-by: Ian Chen --- drivers/gpu/drm/amd/display/dc/dc_link.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h index

[PATCH 25/31] drm/amd/display: Remove assert for odm transition case

2022-09-21 Thread Jasdeep Dhillon
From: Eric Bernstein Remove assert that will hit during odm transition case, since this is a valid case. Signed-off-by: Eric Bernstein Reviewed-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hubbub.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff -

[PATCH 16/31] drm/amd/display: Fix typo in get_pixel_rate_div

2022-09-21 Thread Jasdeep Dhillon
From: Taimur Hassan [Why & How] Some FIFO errors still occur due to reading wrong pixel rate divider. Fix typo to prevent FIFO error. Reviewed-by: Nicholas Kazlauskas Acked-by: Jasdeep Dhillon Signed-off-by: Taimur Hassan --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c | 2 +

[PATCH 15/31] drm/amd/display: add debug keys for override bios settings.

2022-09-21 Thread Jasdeep Dhillon
From: Charlene Liu [why] adding debug keys used for compliance test. Reviewed-by: Chris Park Acked-by: Jasdeep Dhillon Signed-off-by: Charlene Liu --- .../drm/amd/display/dc/bios/bios_parser2.c| 21 --- drivers/gpu/drm/amd/display/dc/dc.h | 3 +++ 2 files

[PATCH 07/31] drm/amd/display: Add explicit FIFO disable for DP blank

2022-09-21 Thread Jasdeep Dhillon
uence that will disable the DIG FIFO first. Reviewed-by: Syed Hassan Acked-by: Jasdeep Dhillon Signed-off-by: Nicholas Kazlauskas --- .../display/dc/dcn314/dcn314_dio_stream_encoder.c| 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display

[PATCH 27/31] drm/amd/display: Reduce number of arguments of dml314's CalculateWatermarksAndDRAMSpeedChangeSupport()

2022-09-21 Thread Jasdeep Dhillon
From: Nathan Chancellor Most of the arguments are identical between the two call sites and they can be accessed through the 'struct vba_vars_st' pointer. This reduces the total amount of stack space that dml314_ModeSupportAndSystemConfigurationFull() uses by 240 bytes with LLVM 16 (2216 -> 1976),

[PATCH 13/31] drm/amd/display: add missing null check

2022-09-21 Thread Jasdeep Dhillon
From: Wenjing Liu [why] There is a coding error for a missing null check for stream pointer when iterating through pipe_ctx. Reviewed-by: Martin Leung Acked-by: Jasdeep Dhillon Signed-off-by: Wenjing Liu --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 1 file changed, 1

[PATCH 24/31] drm/amd/display: Cursor Info Update refactor

2022-09-21 Thread Jasdeep Dhillon
From: Max Tseng Dc: cursor info update: phase 1: [Why] Different feature might need to update cursor info, but With different approaches. To unify this diversity problem, all features should use The same interface to update cursor. Reviewed-by: Reza Amini Acked-by: Jasdeep Dhillon Signed

[PATCH 12/31] drm/amd/display: Update MALL SS NumWays calculation

2022-09-21 Thread Jasdeep Dhillon
From: Alvin Lee [Description] Update MALL SS NumWays calculation according to programming guide. Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/dc.h | 1 + .../drm/amd/display/dc/dcn32/dcn32_hwseq.c| 206

[PATCH 19/31] drm/amd/display: fill in clock values when DPM is not enabled

2022-09-21 Thread Jasdeep Dhillon
them with default clock limits so that BB table can be built. Add dpm_enabled flag to check when DPM is not enabled and to trigger helper function. Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Samson Tam --- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 14 +++ .../drm/amd

[PATCH 17/31] drm/amd/display: Disable MALL when TMZ surface

2022-09-21 Thread Jasdeep Dhillon
From: Alvin Lee [Description] - Don't use MALL buffering of any kind when the surface is TMZ - Workaround for a HW bug Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Alvin Lee --- drivers/gpu/drm/amd/display/dc/core/dc.c | 8 ++-- drivers/gpu/drm/amd/displ

[PATCH 22/31] drm/amd/display: Avoid unnecessary pixel rate divider programming

2022-09-21 Thread Jasdeep Dhillon
From: Taimur Hassan [Why] Programming pixel rate divider when FIFO is enabled can cause FIFO error. [How] Skip divider programming when divider values are the same to prevent FIFO error. Reviewed-by: Alvin Lee Acked-by: Jasdeep Dhillon Signed-off-by: Taimur Hassan --- .../gpu/drm/amd

[PATCH 26/31] drm/amd/display: 3.2.205

2022-09-21 Thread Jasdeep Dhillon
- Partially valid EDIDs handled properly - Phatom pipes are skipped when checking pending flip - Fixed audio on audio on display after unplugging Acked-by: Jasdeep Dhillon Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 23/31] Add debug option for exiting idle optimizations on cursor updates

2022-09-21 Thread Jasdeep Dhillon
From: Brandon Syu [Description] - Have option to exit idle opt on cursor updates for debug and optimizations purposes Reviewed-by: Aric Cyr Acked-by: Jasdeep Dhillon Signed-off-by: Brandon Syu --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 3 ++- drivers/gpu/drm/amd/display/dc

[PATCH 30/31] drm/amd/display: refactor CalculateWriteBackDelay to use vba_vars_st ptr

2022-09-21 Thread Jasdeep Dhillon
From: Tom Rix Mimimize the function signature by passing a pointer and an index instead of passing several elements of the pointer. The dml2x,dml3x families uses the same algorithm. Remove the duplicates. Use dml20_ and dml30_ prefix to distinguish the two variants. Signed-off-by: Tom Rix ---

[PATCH 14/31] drm/amd/display: Fix audio on display after unplugging another

2022-09-21 Thread Jasdeep Dhillon
tput stuck once pipe reallocate. [how] skip audio setup for pipelines which audio stream has been enabled Reviewed-by: Martin Leung Acked-by: Jasdeep Dhillon Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH 29/31] drm/amd/display: remove redundant CalculateTWait's

2022-09-21 Thread Jasdeep Dhillon
From: Tom Rix There are several copies of CalculateTwait. Reduce to one instance and change local variable name to match common usage. Signed-off-by: Tom Rix Reviewed-by: Maíra Canal --- .../dc/dml/dcn20/display_mode_vba_20.c| 16 +++--- .../dc/dml/dcn20/display_mode_vba_20v2.

[PATCH 20/31] drm/amd/display: polling vid stream status in hpo dp blank

2022-09-21 Thread Jasdeep Dhillon
From: Wenjing Liu [why] vid stream control is double bufferred, if we don't wait for video stream enable set to 0, we may get temporary image corruption showing on the stream when setting PIXEL_TO_SYMBOL_FIFO_ENABLE to 0. Reviewed-by: Ariel Bernstein Acked-by: Jasdeep Dhillon Signed-o

[PATCH 31/31] drm/amd/display: remove redundant CalculateRemoteSurfaceFlipDelay's

2022-09-21 Thread Jasdeep Dhillon
From: Tom Rix There are several copies of CalculateRemoteSurfaceFlipDelay. Reduce to one instance. Signed-off-by: Tom Rix Reviewed-by: Maíra Canal --- .../dc/dml/dcn20/display_mode_vba_20.c| 4 +- .../dc/dml/dcn20/display_mode_vba_20v2.c | 40 +-- .../dc/dml/dcn2

  1   2   >