Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179914
b: refs/heads/master
c: 1622653
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Jan 25, 2010
1 parent 2534c50 commit 83a19f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0107bae01add219e1a146f2b412d64a7f1946028
refs/heads/master: 162265367a96d381f07066581d65e52627b08618
13 changes: 13 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nv50_sor.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,24 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode)
{
struct drm_device *dev = encoder->dev;
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
struct drm_encoder *enc;
uint32_t val;
int or = nv_encoder->or;

NV_DEBUG_KMS(dev, "or %d mode %d\n", or, mode);

nv_encoder->last_dpms = mode;
list_for_each_entry(enc, &dev->mode_config.encoder_list, head) {
struct nouveau_encoder *nvenc = nouveau_encoder(enc);

if (nvenc == nv_encoder ||
nvenc->dcb->or != nv_encoder->dcb->or)
continue;

if (nvenc->last_dpms == DRM_MODE_DPMS_ON)
return;
}

/* wait for it to be done */
if (!nv_wait(NV50_PDISPLAY_SOR_DPMS_CTRL(or),
NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING, 0)) {
Expand Down

0 comments on commit 83a19f7

Please sign in to comment.