Skip to content

Commit

Permalink
nouveau: Set special lane map for the right chipset
Browse files Browse the repository at this point in the history
The refactoring of the nv50 logic, introduced in 8663bc7, modified the
test for the special lane map used on some Apple computers with Nvidia
chipsets. The tested MBA3,1 would still boot, but resume from suspend
stopped working. This patch restores the old test, which fixes the problem.

Signed-off-by: Henrik Rydberg <[email protected]>
Acked-by: Ben Skeggs <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
rydberg authored and airlied committed Apr 19, 2012
1 parent a09d431 commit 273a50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv50_sor.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ nv50_sor_dp_lane_map(struct drm_device *dev, struct dcb_entry *dcb, u8 lane)
struct drm_nouveau_private *dev_priv = dev->dev_private;
static const u8 nvaf[] = { 24, 16, 8, 0 }; /* thanks, apple.. */
static const u8 nv50[] = { 16, 8, 0, 24 };
if (dev_priv->card_type == 0xaf)
if (dev_priv->chipset == 0xaf)
return nvaf[lane];
return nv50[lane];
}
Expand Down

0 comments on commit 273a50f

Please sign in to comment.