diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-02-18 08:14:19 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-02-25 13:15:43 +1000 |
commit | 95664e66fad964c3dd7945d6edfb1d0931844664 (patch) | |
tree | c9cd7c14e92ab4102fb631c10f35c215826c8458 /drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h | |
parent | drm/nouveau: platform: Fix deferred probe (diff) | |
download | linux-dev-95664e66fad964c3dd7945d6edfb1d0931844664.tar.xz linux-dev-95664e66fad964c3dd7945d6edfb1d0931844664.zip |
drm/nouveau/disp/dp: ensure sink is powered up before attempting link training
This can happen under some annoying circumstances, and is a quick fix
until more substantial changes can be made.
Fixed eDP mode changes on (at least) the Lenovo P50.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h index 9596290329c7..6e10c5e0ef11 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h @@ -71,5 +71,11 @@ #define DPCD_LS0C_LANE1_POST_CURSOR2 0x0c #define DPCD_LS0C_LANE0_POST_CURSOR2 0x03 +/* DPCD Sink Control */ +#define DPCD_SC00 0x00600 +#define DPCD_SC00_SET_POWER 0x03 +#define DPCD_SC00_SET_POWER_D0 0x01 +#define DPCD_SC00_SET_POWER_D3 0x03 + void nvkm_dp_train(struct work_struct *); #endif |