diff options
author | Lyude Paul <lyude@redhat.com> | 2020-08-26 21:24:50 +0300 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2020-09-01 02:10:08 +0300 |
commit | 409d38139b42f2c3d3e6012a060c498fbb5067fc (patch) | |
tree | 4615474d822b86bbd413b5ef108a31a047007c23 /drivers/gpu/drm/nouveau/nouveau_encoder.h | |
parent | 3d3721ccb18a3dcec874c44120e2df7ec1c1db99 (diff) | |
download | linux-409d38139b42f2c3d3e6012a060c498fbb5067fc.tar.xz |
drm/nouveau/kms/nv50-: Use downstream DP clock limits for mode validation
This adds support for querying the maximum clock rate of a downstream
port on a DisplayPort connection. Generally, downstream ports refer to
active dongles which can have their own pixel clock limits.
Note as well, we also start marking the connector as disconnected if we
can't read the DPCD, since we wouldn't be able to do anything without
DPCD access anyway.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200826182456.322681-15-lyude@redhat.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_encoder.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_encoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_encoder.h b/drivers/gpu/drm/nouveau/nouveau_encoder.h index eef4643f5f98..c1924a4529a7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_encoder.h +++ b/drivers/gpu/drm/nouveau/nouveau_encoder.h @@ -72,6 +72,7 @@ struct nouveau_encoder { struct mutex hpd_irq_lock; u8 dpcd[DP_RECEIVER_CAP_SIZE]; + u8 downstream_ports[DP_MAX_DOWNSTREAM_PORTS]; struct drm_dp_desc desc; } dp; }; |