Skip to content

Commit

Permalink
drm/nv50/pm: wait for all fifo-connected engines to idle before reclo…
Browse files Browse the repository at this point in the history
…cking

Signed-off-by: Martin Peres <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Mar 13, 2012
1 parent 496a73b commit c57ebf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/nouveau/nv50_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ nv50_pm_clocks_set(struct drm_device *dev, void *data)
nv_mask(dev, 0x002504, 0x00000001, 0x00000001);
if (!nv_wait(dev, 0x002504, 0x00000010, 0x00000010))
goto resume;
if (!nv_wait(dev, 0x00251c, 0x0000003f, 0x0000003f))
goto resume;

/* program memory clock, if necessary - must come before engine clock
* reprogramming due to how we construct the hwsq scripts in pre()
Expand Down

0 comments on commit c57ebf5

Please sign in to comment.