diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2023-09-19 17:56:27 -0400 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2023-09-19 18:22:18 -0400 |
commit | 633716501c94cc45e504a1f14fcef717f1ac5e9b (patch) | |
tree | ee18bc60a62b74e146c3efeb8083f0ce6014baa6 /drivers/gpu/drm/nouveau/nouveau_encoder.h | |
parent | 757033808c95b0ee66b87803af6d0bf7fdaee3e6 (diff) | |
download | linux-stable-633716501c94cc45e504a1f14fcef717f1ac5e9b.tar.gz linux-stable-633716501c94cc45e504a1f14fcef717f1ac5e9b.tar.bz2 linux-stable-633716501c94cc45e504a1f14fcef717f1ac5e9b.zip |
drm/nouveau/disp: add dp train method
- passes DPCD information from DRM to NVKM
- removes NVKM's own sink caps handling
- link still trained from supervisor, more patches to come
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Danilo Krummrich <me@dakr.org>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230919220442.202488-33-lyude@redhat.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_encoder.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_encoder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_encoder.h b/drivers/gpu/drm/nouveau/nouveau_encoder.h index ed31db58176c..333042fc493f 100644 --- a/drivers/gpu/drm/nouveau/nouveau_encoder.h +++ b/drivers/gpu/drm/nouveau/nouveau_encoder.h @@ -89,6 +89,12 @@ struct nouveau_encoder { int link_nr; int link_bw; + struct { + bool mst; + u8 nr; + u32 bw; + } lt; + /* Protects DP state that needs to be accessed outside * connector reprobing contexts */ @@ -155,6 +161,7 @@ enum nouveau_dp_status { }; int nouveau_dp_detect(struct nouveau_connector *, struct nouveau_encoder *); +bool nouveau_dp_train(struct nouveau_encoder *, bool mst, u32 khz, u8 bpc); void nouveau_dp_power_down(struct nouveau_encoder *); bool nouveau_dp_link_check(struct nouveau_connector *); void nouveau_dp_irq(struct work_struct *); |