From: Jurriaan <thunder7@xs4all.nl>
To: Martin Sieper <msi@ngi-box.de>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Computer with 1GB and radeonfb
Date: Sat, 31 May 2003 07:42:13 +0200 [thread overview]
Message-ID: <20030531054213.GA7494@middle.of.nowhere> (raw)
In-Reply-To: <elmo105432563416005480015305@arbeitspferd>
From: Martin Sieper <msi@ngi-box.de>
Date: Fri, May 30, 2003 at 10:13:54PM +0200
> Hello developers,
>
> I have a P4 computer with 1GB of RAM and a Radeon 9100 and I'm
> using linux 2.4.20.
>
> I had try the vesafb but it's failed. OK I've found a
> patch for big memory on this list and now vasafb works fine.
>
> The radeonfb doesn't work. OK I've found these patch
> radeonfb-041103-2.4.20.diff also on this list but the
> radeonfb doesn't work:
>
> May 30 13:22:22 arbeitspferd kernel: radeonfb_pci_register BEGIN
> May 30 13:22:22 arbeitspferd kernel: radeonfb: ref_clk=2700, ref_div=12, xclk=20000 from BIOS
> May 30 13:22:22 arbeitspferd kernel: radeonfb: probed DDR SGRAM 131072k videoram
> May 30 13:22:22 arbeitspferd kernel: BIOS 4 scratch = 2000002
> May 30 13:22:22 arbeitspferd kernel: FP_GEN_CNTL: 0, FP2_GEN_CNTL: 8
> May 30 13:22:22 arbeitspferd kernel: TMDS_TRANSMITTER_CNTL: 10000082, TMDS_CNTL: 1000000, LVDS_GEN_CNTL: 0
> May 30 13:22:22 arbeitspferd kernel: DAC_CNTL: ff604002, DAC_CNTL2: 0, CRTC_GEN_CNTL: 2000200
> May 30 13:22:22 arbeitspferd kernel: radeonfb: cannot map FB
>
> I think it's also a big memory problem like the vesafb.
> I'm not a kernel hacker, can someone help me please?
>
There were two patches floating around - one to limit the amount of
reserved memory, and one to increase the amount of kernel memory you can
reserve.
The first one probably only affects the vesafb-driver. You could adapt
it to the radeonfb-driver, just search for the correct lines in the
radeonfb source and change them like the patch changes them.
There's nothing like booting a kernel whose sources you've changed
yourself to make you feel the power of open source :-)
The second one should also work with the radeonfb driver. It looks
something like this:
====================================================================
This means with "mem=512M", you will probably have about 500M of
vmalloc space, which is more than enough to ioremap the framebuffer.
With the full 1 GB of memory, you might think that there would be no
vmalloc space available at all. However, <asm/page.h> defines a
constant VMALLOC_RESERVE (which by default is 128 MB), and the kernel
makes sure that there is at least this much vmalloc space available.
However, by the time you load the module, at least some of this space
has been consumed, so the ioremap fails. (If nothing else uses
vmalloc space, just loading a module will call vmalloc() to get space
for the module to be loaded into!)
One not very good way for you to proceed would be to change the
definition of VMALLOC_RESERVE from (128 << 20) to something like (256
<< 20), which should leave the driver room to ioremap the framebuffer.
This is a little ugly. However, I don't see why a framebuffer driver
would need to ioremap _all_ of a video card's memory -- so a better
solution would be to fix the driver to only ioremap what it needs to.
=====================================================================
HTH,
Jurriaan
--
REAL LIFE MANAGEMENT 'DILBERT QUOTATIONS':
4: This project is so important, we can't let things that are more
important interfere with it. (Advertising/Marketing manager, United
Parcel Service)
Debian (Unstable) GNU/Linux 2.5.70 4112 bogomips load av: 0.38 0.13 0.11
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
next prev parent reply other threads:[~2003-05-31 5:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 20:13 Computer with 1GB and radeonfb Martin Sieper
2003-05-31 5:42 ` Jurriaan [this message]
2003-06-05 12:06 ` Martin Sieper
2003-06-05 19:04 ` Jurriaan
2003-06-10 10:56 ` Martin Sieper
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=20030531054213.GA7494@middle.of.nowhere \
--to=thunder7@xs4all.nl \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=msi@ngi-box.de \
/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).