diff options
| author | Imre Deak <[email protected]> | 2021-10-18 12:41:53 +0300 |
|---|---|---|
| committer | Imre Deak <[email protected]> | 2021-10-20 12:20:27 +0300 |
| commit | caae4fb537d8437b9290d8a1010adfaf174b29e6 (patch) | |
| tree | e55e9b3ea23e7d31e803e451f94f8c22f210d4c7 /scripts | |
| parent | bedcaddadd22da82fc2590569ff81a31045176b1 (diff) | |
drm/i915/dp: Sanitize sink rate DPCD register values
If the DPCD sink rate values read from the sink are invalid, the
driver will sanitize this in intel_dp_set_common_rates(), by setting a
default 162000 link rate in common rates and printing a WARN().
WARN()s should only be triggered by bugs in the code and not by external
factors like the above (an invalid DPCD injected maliciously or read from a
buggy monitor). So fixup the invalid DPCD sink rate values already and print
an error in this case (since it's still a user visible problem).
Cc: Ville Syrjälä <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Acked-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions