drm: Add support for DP 1.4 Compliance edid corruption test
Unlike DP 1.2 edid corruption test, DP 1.4 requires to calculate real CRC value of the last edid data block, and write it back. Current edid CRC calculates routine adds the last CRC byte, and check if non-zero. This behavior is not accurate; actually, we need to return the actual CRC value when corruption is detected. This commit changes this issue by returning the calculated CRC, and initiate the required sequence. Change since v7 - Fix for CI.CHECKPATCH Change since v6 - Add return check Change since v5 - Obtain real CRC value before dumping bad edid Change since v4 - Fix 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 <Jerry.Zuo@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200211160832.24259-1-Jerry.Zuo@amd.com
This commit is contained in:

committed by
Rodrigo Siqueira

parent
48e678076e
commit
e11f5bd822
@@ -1357,6 +1357,12 @@ struct drm_connector {
|
||||
* rev1.1 4.2.2.6
|
||||
*/
|
||||
bool edid_corrupt;
|
||||
/**
|
||||
* @real_edid_checksum: real edid checksum for corrupted edid block.
|
||||
* Required in Displayport 1.4 compliance testing
|
||||
* rev1.1 4.2.2.6
|
||||
*/
|
||||
u8 real_edid_checksum;
|
||||
|
||||
/** @debugfs_entry: debugfs directory for this connector */
|
||||
struct dentry *debugfs_entry;
|
||||
|
Reference in New Issue
Block a user