linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ian Romanick <idr@us.ibm.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: fb-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: matroxfb returning incorrect fix.smem_len?
Date: Thu, 01 Mar 2007 08:47:34 -0800	[thread overview]
Message-ID: <45E703A6.6080200@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0703011420461.766@pademelon.sonytel.be>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Geert Uytterhoeven wrote:
> On Wed, 28 Feb 2007, Ian Romanick wrote:
>> While doing some work on the pci-rework branch of X.org, I noticed
>> something strange.  matroxfb correctly detects that my card has 16MiB,
>> but fix.smem_len is only 8MiB.
>>
>> I looked around the matroxfb code and some of the other driver's code,
>> and I believe that matroxfb is incorrectly setting fix.smem_len.
>> Matroxfb sets fix.smem_len to (total_memory_size -
>> memory_used_by_current_mode).  Other drivers, such as nvidiafb do not do
>> this.
> 
> Did matroxfb detect a dual-head capable card?

I did some more digging on this yesterday.  It seems that ydstorg.bytes
is always zero, so what I originally thought was the problem is not the
problem.

Looking at the logs, it looks like it is detecting my card as dual-head,
but it's not.  The weird thing is that I added a printk in
matroxfb_update_fix to show what smem_len is begin set to.  Before I
start X, it prints 16MiB twice.  As soon as X starts, it prints 8MiB and
returns that value to the X server.

I'm not quite sure what to make of that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFF5wOlX1gOwKyEAw8RAv7bAJ9Jmxr+zWINCNCEP9s9HKgpr7/bGACcCg1j
PvYS3AtO0J7ssotSB/xgjO0=
=MXBE
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  reply	other threads:[~2007-03-01 16:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 19:20 matroxfb returning incorrect fix.smem_len? Ian Romanick
2007-03-01 13:21 ` Geert Uytterhoeven
2007-03-01 16:47   ` Ian Romanick [this message]
2007-03-01 16:58     ` Ville Syrjälä

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=45E703A6.6080200@us.ibm.com \
    --to=idr@us.ibm.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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).