public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bryan Mayland <bmayland@leoninedev.com>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init
Date: Fri, 05 Jan 2001 16:40:42 -0500	[thread overview]
Message-ID: <3A563F5A.9B50B2B3@leoninedev.com> (raw)
In-Reply-To: <3A55FAC9.9EB4C967@leoninedev.com> <E14Ea7x-00081J-00@the-village.bc.nu> <20010105183344.A2445@goldbach.in-berlin.de>

Gerd Knorr wrote:

> Well, vesafb really depends on what the vesa bios says...

    Exactly my problem.  In my laptop, I have a NeoMagic 2160 which does not have use
the last 64k of video for sound buffer like the NeoMagic 256es do yet it still
reports that the memory is not video memory.  Both XFree86 and SVGALib hard code the
amout of available video memory based on the PCI id of the neomagic device, which
tells me that there might not be a way to detect it properly.  What I'm suggesting is
that we "Avoid the probe!" (which is fun to say), and add a way for the user to
override the amount of memory detected by the VESA int 0x10 call.  There is only
about 10 lines of code requited to make the change, and it can't break anything if
you don't turn it on.

    I wish there was a way to detect that the code wrapped memory before the hardware
did, but that would be un-possible to probe (AFAIK).  You can detect that ywrap isn't
working properly by writing a magic number to offset 0, and attempt to read if from
offset [memsize], and see if you get the same value back.  This doesn't fix the
problem, it just assertains if it is working properly or not.

> That's why it has all may-have-problems features turned off by default:
> no ywrap, no mtrr.  At least it was this way last time I touched it.

    I was pretty suprised ywrap worked at all on my system.  The speed increased over
"redraw" is quite dramatic.

    So what do you say.  Can we use my patch to allow the user to override the VESA
detected memory size... or does anyone else have a better plan?

Bry

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-05 21:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-05 15:54 [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init Bryan Mayland
2001-01-05 16:05 ` Alan Cox
2001-01-05 16:31   ` Chris Kloiber
2001-01-05 21:16     ` Steven Walter
2001-01-06  1:12     ` David Wragg
2001-01-06  9:47     ` Gerd Knorr
2001-01-05 16:48   ` Bryan Mayland
2001-01-05 16:54     ` Alan Cox
2001-01-05 17:33       ` Gerd Knorr
2001-01-05 21:40         ` Bryan Mayland [this message]
2001-01-05 21:48           ` Alan Cox
2001-01-05 22:01             ` Bryan Mayland
2001-01-06  1:20   ` [PATCH] VESA framebuffer w/MTRR " David Wragg
2001-01-06 17:08     ` Bryan Mayland
2001-01-06 19:23       ` Alan Cox
2001-01-06 17:28     ` Framebuffer as a module Bryan Mayland
     [not found]       ` <002501c07819$21343900$fd1942c3@bluescreen>
2001-01-06 20:04         ` Bryan Mayland

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=3A563F5A.9B50B2B3@leoninedev.com \
    --to=bmayland@leoninedev.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=kraxel@bytesex.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox