OSDN Git Service

drm/nouveau/disp/dp: generate supported link rates table at detect time
authorBen Skeggs <bskeggs@redhat.com>
Tue, 23 Nov 2021 08:17:52 +0000 (18:17 +1000)
committerKarol Herbst <kherbst@redhat.com>
Thu, 16 Dec 2021 17:46:10 +0000 (18:46 +0100)
commitb96a1d8c5189452d80551f2c38ef50c533c19669
treedc8b22add1ac2b14730fce158f02abaa282af672
parentbe5b6985fbbe6ba9580351b3c9168c84e51bee5c
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
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h