linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala@sci.fi>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: Petr Vandrovec <petr@vandrovec.name>, jsimmons@infradead.org
Subject: Re: [PATCH] matroxfb: another attempt to rectify jitter (G450/G550)
Date: Thu, 1 Feb 2007 00:25:00 +0200	[thread overview]
Message-ID: <20070131222500.GA16283@sci.fi> (raw)
In-Reply-To: <45C110F3.10202@us.ibm.com>

On Wed, Jan 31, 2007 at 03:58:11PM -0600, Paul A. Clarke wrote:
> Ville Syrjälä wrote:
> > On Tue, Jan 30, 2007 at 02:22:37PM -0600, Paul A. Clarke wrote:
> > snip...
> >> +				/* DVI PLL preferred for frequencies up to panellink max, standard PLL
> >> otherwise */
> >> +				if (fout >= MINFO->max_pixel_clock_panellink) tmp = 0;
> >> +				else tmp =
> >> +					M1064_XDVICLKCTRL_DVIDATAPATHSEL |
> >> +					M1064_XDVICLKCTRL_C1DVICLKSEL |
> >> +					M1064_XDVICLKCTRL_C1DVICLKEN |
> > 
> > Shouldn't this check which CRTC is driving the DVI?
> 
> If I read the code correctly, I don't see any way this code gets invoked for CRTC2.  __g450_setclk() is only called by 
> matroxfb_g450_setclk(), which is in turn called in 8 places:
> - 2 with pll == M_VIDEO_PLL (a different case in the enclosing switch)
> - 1 with pll == M_SYSTEM_PLL (a different case in the enclosing switch)
> - 3 which if (m->crtc != MATROXFB_SRC_CRTC1) then pll == M_VIDEO_PLL
> - 2 with M_PIXEL_PLL_A and M_PIXEL_PLL_B (once each) at init time to set legacy VGA clocks with both CRTCs disabled

I see. It seems to always use VIDPLL with CRTC2. So if DVICLK is to be 
used with CRTC2 it apparently needs to be added in the VIDPLL case. 
Hmmm. I wonder if the code even supports CRTC2+DVI because the CRTC2 
code seems to leave the C2PIXCLK selection to PCICLK if CRTC2 drives DVI 
only. Did you try to map CRTC2 to DVI?

Unfortunately I don't have a TFT so I can't actually test this stuff. 
Probably time to get one... :)

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2007-01-31 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23  0:17 [PATCH] matroxfb: another attempt to rectify jitter (G450/G550) Paul A. Clarke
     [not found] ` <45BC58E9.9020306@vandrovec.name>
2007-01-30 20:22   ` Paul A. Clarke
2007-01-31 11:54     ` Ville Syrjälä
2007-01-31 21:58       ` Paul A. Clarke
2007-01-31 22:25         ` Ville Syrjälä [this message]
2007-02-15 20:47           ` Paul A. Clarke
2007-02-16 17:29             ` Ville Syrjälä
2007-02-17  6:34               ` Petr Vandrovec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070131222500.GA16283@sci.fi \
    --to=syrjala@sci.fi \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=petr@vandrovec.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).