diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 12:46:35 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2022-11-09 01:43:10 +0100 |
commit | 8bb30c882334c0fdbec9b604f09d2e9120b509ab (patch) | |
tree | 467441811efe8c1185e771639667f8e0f304782c /drivers/gpu/drm/nouveau/nvif | |
parent | drm/nouveau/kms: pass event mask to hpd handler (diff) | |
download | linux-8bb30c882334c0fdbec9b604f09d2e9120b509ab.tar.xz linux-8bb30c882334c0fdbec9b604f09d2e9120b509ab.zip |
drm/nouveau/disp: add method to trigger DP link retrain
This moves control of link retraining in response to HPD IRQ to the
KMS driver's HPD IRQ handler.
NVKM still handles checking link status for the moment, this can be
moved to the KMS driver when it takes explicit control of link rate
selection.
v2:
- skip source config on retrain (fixes some retrain failures)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvif')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvif/outp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvif/outp.c b/drivers/gpu/drm/nouveau/nvif/outp.c index 9bd9cc21a039..56b7c703b137 100644 --- a/drivers/gpu/drm/nouveau/nvif/outp.c +++ b/drivers/gpu/drm/nouveau/nvif/outp.c @@ -26,6 +26,14 @@ #include <nvif/class.h> int +nvif_outp_dp_retrain(struct nvif_outp *outp) +{ + int ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_RETRAIN, NULL, 0); + NVIF_ERRON(ret, &outp->object, "[DP_RETRAIN]"); + return ret; +} + +int nvif_outp_dp_aux_pwr(struct nvif_outp *outp, bool enable) { struct nvif_outp_dp_aux_pwr_v0 args; |