Bug 9854 - gx50: enable VID_PLL before trying to set its M/N/P values
Summary: gx50: enable VID_PLL before trying to set its M/N/P values
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/mga (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 09:18 UTC by Tilman Sauerbeck
Modified: 2007-03-18 04:04 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch (687 bytes, patch)
2007-03-04 22:58 UTC, Tilman Sauerbeck
no flags Details | Splinter Review

Description Tilman Sauerbeck 2007-02-02 09:18:30 UTC
This applies to g450/g550 only (AFAIK):

We currently set the M/N/P values for the video PLL before the video pll is actually powered up. This doesn't work, because VID_PLL_STAT will always say the PLL isn't locked if it's not powered up. Of course this doesn't work.

So the fix is to _first_ power up the video pll, and then setting its M/N/P values.

Symptoms:
"signal out of range" weirdness for CRTC2.
Comment 1 Tilman Sauerbeck 2007-02-02 23:48:02 UTC
Note to self: this one probably only applies to g550, since dual-head is working with the current code on g450 (with two vga outputs). Maybe verify that g450 uses the video pll, too.
Comment 2 Daniel Stone 2007-02-27 01:36:08 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 mephinet 2007-03-01 12:17:50 UTC
Hi,
what I am experiencing with my MGA G550 is that even though both screens get initalized to a correct refresh rate of 60 Hz:

(**) MGA(0): *Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz
(**) MGA(1): *Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz

the screen that is not connected to the DVI receives a 66Hz/71KHz signal instead, which it (being an LCD) cannot cope with.

Is this related to the incorrect setup of the PLL?
I'm running version 7.1.1 with the mga driver (no binary drivers).
Thanks!
Comment 4 Tilman Sauerbeck 2007-03-04 22:57:00 UTC
mephinet,
this bug isn't about wrong setup of the VID_PLL values in general ;)
Please file a separate bug for your problem. I'm not sure if it's due to the video PLL though.
Comment 5 Tilman Sauerbeck 2007-03-04 22:58:24 UTC
Created attachment 8977 [details] [review]
Patch

This patch fixes the problem on my G550 dual-dvi. It's pretty damn ugly, and we can fix it in a nicer way in the randr-1.2 branch eventually, so don't commit this please.
Comment 6 Tilman Sauerbeck 2007-03-18 04:04:07 UTC
Fixed in the randr-1.2 branch.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.