[PATCH] drm/mst: check connector state before dereference

2023-09-19 Thread Fangzhi Zuo
08 CR3: 000102f96000 CR4: 003506e0 Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2314#note_2080187 Suggested-by: John Lindgren Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 12 1 file changed, 8 insertions(+), 4 deleti

[PATCH] drm/dp: Avoid Reading DPCD_REV Before Native Aux Read

2022-08-31 Thread Fangzhi Zuo
non link training regsiter DPCD_REV get read during UHBR link training. It violates DP2 compliance. Cc: Ville Syrjala Cc: Lyude Paul Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/display/drm_dp_helper.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v3] drm/dp: Add Additional DP2 Headers

2021-09-27 Thread Fangzhi Zuo
Include FEC, DSC, Link Training related headers. Change since v2 - Align with the spec for DP_DSC_SUPPORT_AND_DSC_DECODER_COUNT Signed-off-by: Fangzhi Zuo --- This patch is based on top of the other DP2.0 work in "drm/dp: add LTTPR DP 2.0 DPCD addresses" --- include/drm/drm_dp_hel

[PATCH v2] drm/dp: Add Additional DP2 Headers

2021-09-27 Thread Fangzhi Zuo
Include FEC, DSC, Link Training related headers. Signed-off-by: Fangzhi Zuo --- This patch is based on top of the other DP2.0 work in "drm/dp: add LTTPR DP 2.0 DPCD addresses" --- include/drm/drm_dp_helper.h | 20 1 file changed, 20 insertions(+) diff --git a/i

[PATCH 2/2] drm/amdgpu: Example Usage in AMDGPU

2021-08-27 Thread Fangzhi Zuo
1. Decide MST Link Encoding Cap 2. Update MST First Link Slot Information Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +++- .../drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c| 10 ++ .../drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h

[PATCH 1/2] drm: Update MST First Link Slot Information Based on Encoding Format

2021-08-27 Thread Fangzhi Zuo
starts from the first slot, with a total of 64 slots available. Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/drm_dp_mst_topology.c | 27 --- include/drm/drm_dp_mst_helper.h | 9 + 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[PATCH 0/2] Update 128b/132b MST Slot Information

2021-08-27 Thread Fangzhi Zuo
128b/132b MST start slot information is not the same as 8b/10b. Update based on encoding format after link detection or topology change. Fangzhi Zuo (2): drm: Update MST First Link Slot Information Based on Encoding Format drm/amdgpu: Example Usage in AMDGPU .../gpu/drm/amd/display

[PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-03-25 Thread Fangzhi Zuo
starts from the first slot, with a total of 64 slots available. Update the slot information after link detect. Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/drm_dp_mst_topology.c | 48 ++- include/drm/drm_dp_mst_helper.h | 8 + 2 files changed, 47 insertions

[PATCH V7] drm: Add support for DP 1.4 Compliance edid corruption test

2020-02-11 Thread Jerry (Fangzhi) Zuo
for CI.CHECKPATCH Change since v3 - Fix a minor typo. Change since v2 - Rewrite checksum computation routine to avoid duplicated code. - Rename to avoid confusion. Change since v1 - Have separate routine for returning real CRC. Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Harry Wentland Reviewed

[PATCH V6] drm: Add support for DP 1.4 Compliance edid corruption test

2020-02-05 Thread Jerry (Fangzhi) Zuo
. Change since v2 - Rewrite checksum computation routine to avoid duplicated code. - Rename to avoid confusion. Change since v1 - Have separate routine for returning real CRC. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 51 + drivers

[PATCH V5] drm: Add support for DP 1.4 Compliance edid corruption test

2020-01-31 Thread Jerry (Fangzhi) Zuo
checksum computation routine to avoid duplicated code. - Rename to avoid confusion. Change since v1 - Have separate routine for returning real CRC. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 35 + drivers/gpu/drm/drm_edid.c | 23

[PATCH V4] drm: Add support for DP 1.4 Compliance edid corruption test

2019-12-09 Thread Jerry (Fangzhi) Zuo
confusion. Change since v1 - Have separate routine for returning real CRC. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 35 + drivers/gpu/drm/drm_edid.c | 23 ++ include/drm/drm_connector.h | 6

[PATCH v4] drm: Add support for DP 1.4 Compliance edid corruption test

2019-12-04 Thread Jerry (Fangzhi) Zuo
separate routine for returning real CRC. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 35 +++ drivers/gpu/drm/drm_edid.c | 23 +++ include/drm/drm_connector.h | 6 ++ include/drm/drm_dp_helper.h | 3

[RESEND 0/2] Changes for DP 1.4 Compliance test 4.2.2.6

2019-12-02 Thread Jerry (Fangzhi) Zuo
] Resend this patchset to intel gfx CI. Jerry (Fangzhi) Zuo (2): drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6 drm/amd/display: Hook up drm interface for DP 1.4 edid corruption test .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 + drivers/gpu

[RESEND 1/2] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-12-02 Thread Jerry (Fangzhi) Zuo
code. Rename to avoid confusion -v4: Fix a minor typo. Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Harry Wentland --- drivers/gpu/drm/drm_dp_helper.c | 36 drivers/gpu/drm/drm_edid.c | 18 +++--- include/drm/drm_connector.h

[RESEND 2/2] drm/amd/display: Hook up drm interface for DP 1.4 edid corruption test

2019-12-02 Thread Jerry (Fangzhi) Zuo
-v3: Rename to avoid confusion Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Harry Wentland --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 +- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH v4] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-11-05 Thread Jerry (Fangzhi) Zuo
code. Rename to avoid confusion -v4: Fix a minor typo. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 36 drivers/gpu/drm/drm_edid.c | 18 +++--- include/drm/drm_connector.h | 7 +++ include/drm

[PATCH v2] drm/amd/display: Hook up drm interface for DP 1.4 edid corruption test

2019-11-04 Thread Jerry (Fangzhi) Zuo
-v3: Rename to avoid confusion Signed-off-by: Jerry (Fangzhi) Zuo --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 +- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd

[PATCH v3] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-11-04 Thread Jerry (Fangzhi) Zuo
code. Rename to avoid confusion Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 36 drivers/gpu/drm/drm_edid.c | 18 +++--- include/drm/drm_connector.h | 7 +++ include/drm/drm_dp_helper.h | 3

[PATCH v2 1/2] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-11-01 Thread Jerry (Fangzhi) Zuo
DP 1.4 edid corruption test requires source DUT to write calculated CRC, not the corrupted CRC from reference sink. Return the calculated CRC back, and initiate the required sequence. -v2: Have separate routine for returning real CRC Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm

[PATCH 2/2] drm/amd/display: Hook up drm interface for DP 1.4 edid corruption test

2019-10-30 Thread Jerry (Fangzhi) Zuo
Signed-off-by: Jerry (Fangzhi) Zuo --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 +- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH 1/2] drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6

2019-10-30 Thread Jerry (Fangzhi) Zuo
DP 1.4 edid corruption test requires source DUT to write calculated CRC, not the corrupted CRC from reference sink. Return the calculated CRC back, and initiate the required sequence. Signed-off-by: Jerry (Fangzhi) Zuo --- drivers/gpu/drm/drm_dp_helper.c | 36

[PATCH 0/2] Changes for DP 1.4 Compliance test 4.2.2.6

2019-10-30 Thread Jerry (Fangzhi) Zuo
(Fangzhi) Zuo (2): drm: Add support for DP 1.4 Compliance edid corruption test 4.2.2.6 drm/amd/display: Hook up drm interface for DP 1.4 edid corruption test .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 + drivers/gpu/drm/drm_dp_helper.c| 36