diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-02-17 22:14:19 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-02-25 03:15:43 (GMT) |
commit | 95664e66fad964c3dd7945d6edfb1d0931844664 (patch) | |
tree | c9cd7c14e92ab4102fb631c10f35c215826c8458 /drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h | |
parent | 870571a5698b2e9d0f4d2e5c6245967b582aab45 (diff) | |
download | linux-95664e66fad964c3dd7945d6edfb1d0931844664.tar.xz |
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 'drivers/gpu/drm/nouveau/nvkm/engine/disp/dport.h')
-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 9596290..6e10c5e 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 |