All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suresh Kumar <sureshkumar.pp@gmail.com>
To: intel-gfx@lists.freedesktop.org
Subject: vesafb, intel_drv and gm45
Date: Wed, 16 Mar 2011 12:04:36 +0530	[thread overview]
Message-ID: <4d805a2a.ce3c2b0a.7d2f.16df@mx.google.com> (raw)
In-Reply-To: mailman.10.1300256962.7851.intel-gfx@lists.freedesktop.org

[Continuing from IRC]
Hello all,

I have GM45 mobile chipset (PCI_CHIP_GM45_GM/0x2A42). And running Xorg
1.6.5, Intel driver 2.7.0 and kernel 2.6.29.

I need to use vesafb (bootsplash depends on it), and for some (legacy
code) reasons I can't immediately migrate the system to newer kernel
(or start using plymouth+KMS (KMS requires newer kernel?)).

The issue is, with vesafb built in and booting kernel with
"vga=0x317", X starts slow (by about 7 seconds) and then there after
every "xrandr -q" takes about 3+ seconds (without vesafb it takes
about ~ 100 ms). I notice that most of the time it spends is in
getting EDID information over I2C read/write (there are too many
I2CUDelay() calls). Starting X with "vesa_drv" works fine (presumably
it goes over VBE).

One hypothesis was "vesafb" makes some (BIOS) calls at start which
puts GM45 chipset under some condition which intel_drv is not able to
handle. To verify that I took up "intel-gpu-tools" and used it dump
registers and compare them with and without vesafb. Indeed there was
some difference (http://pastebin.com/gv9GXKAc) - VGACNTRL was enabled,
"display B" was enabled etc. Now before starting X, I used
"intel_reg_write" to restore them back to "ideal" condition (i.e., ==
register values without vesafb boot) and cross verified those values
as well. But the issue still persists.  (though one strange thing I
notice is when I reset back those registers, the screen gets garbled,
especially when I manipulate VGACNTRL, Probably vesafb is still
holding onto it?)

Now that was a bummer, any other pointer to possible problematic areas
where I can look into would be nice.

Thanks,
Suresh

           reply	other threads:[~2011-03-16  6:35 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.10.1300256962.7851.intel-gfx@lists.freedesktop.org>]

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=4d805a2a.ce3c2b0a.7d2f.16df@mx.google.com \
    --to=sureshkumar.pp@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.