diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2021-11-23 18:17:52 +1000 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2021-12-16 18:46:10 +0100 |
commit | b96a1d8c5189452d80551f2c38ef50c533c19669 (patch) | |
tree | dc8b22add1ac2b14730fce158f02abaa282af672 /drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h | |
parent | be5b6985fbbe6ba9580351b3c9168c84e51bee5c (diff) |
drm/nouveau/disp/dp: generate supported link rates table at detect time
Replaces the static list used during link training with a table built
dynamically from the union of source and sink capabilities.
Preparation for adding support for HBR3, LTTPR and eDP 1.4 link rates.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/17
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h index 9ce91f79ca35..8a8d0da58277 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h @@ -20,6 +20,12 @@ struct nvkm_dp { bool present; u8 dpcd[16]; + struct { + u32 rate; + } rate[3]; + int rates; + int links; + struct mutex mutex; struct { atomic_t done; |