Jump to content

intel integrated graphics card


coverup
 Share

Recommended Posts

I got my Intel integrated graphics card (865G chipset) working with mandrake 10.1, thanks to ianw1984. Yet there are some minor glitches such as an X warning on start

Failed to set up write-combining range (0xf0000000,0x8000000)

According to google, this apparently indicates that there is not enough memory available. I think the card has 32MB RAM, so there should be plenty of memory for it to use. I am curious how can I tell the card to use more memory.

 

Thanks

Edited by coverup
Link to comment
Share on other sites

Hmmm... I know that this can be configured in the Bios most of the times where you set the ram usage from auto-management to specific numbers. Take a look at your Bios. ;)

Link to comment
Share on other sites

Hmmm... I know that this can be configured in the Bios most of the times where you set the ram usage from auto-management to specific numbers. Take a look at your Bios. ;)

Are you saying that actual memory allocation is done in BIOS? I remeber having a BIOS setting of 8 Mb for something related to video - that's the setting "google" recommends. I can't check right now, the box is in my office. Will try to set it to a higher value...

Link to comment
Share on other sites

I only know that my current workstation allowed me to choose between 0 and 128 MB in Bios or use auto-allocate.

My BIOS allowed me to allocate max 32MB for video. There is also some "aperture" setting of 64MB, which I left unchanged. I also added the option "VideoRam 32768" to the device section in xorg.conf. The result is confusing... The warning message did not disappear. The glxgears performance dropped from nearly 600 FPS to just under 500 FPS, and the motion of the gears looks like a flicker. On the other hand, tuxracer is much smoother and more responsive. I think KDE starts up a fraction of minute faster, but I can be wrong... Is there some reliable way to measure the video performance?

Edited by coverup
Link to comment
Share on other sites

I'd be interested in that too. I only get 580fps with mine, would be nice to get it higher :P

 

Mine's a Toshiba laptop, not sure theres a bios option for me to edit, but I'll have a look. I think I've noticed the little message when you run X, but never worried to sort it since it mostly all works fine.

Link to comment
Share on other sites

I'd be interested in that too.  I only get 580fps with mine, would be nice to get it higher :P

 

Mine's a Toshiba laptop, not sure theres a bios option for me to edit, but I'll have a look.  I think I've noticed the little message when you run X, but never worried to sort it since it mostly all works fine.

Apparently, the message indicates a problem with allocating overlapping shared memory for a VESA framebuffer, and is specific to 2.6 kernels. It's all above my head, I just refer to the post which tells how to fix it: http://www.rage3d.com/board/showthread.php...41&page=1&pp=30

Be warned, they discuss ATI cards and vesafb, so much of their suggestions could be irrelevant. Do not consider my post as an advice, I only describe what I have done.

 

First, I used lspci -v to check how much video memory was available.

00:02.0 VGA compatible controller: Intel Corp. 82865G Integrated Graphics Device (rev 02) (prog-if 00 [VGA])
       Subsystem: IBM: Unknown device 0285
       Flags: bus master, fast devsel, latency 0, IRQ 16
       Memory at f0000000 (32-bit, prefetchable) [size=128M]
       Memory at e8000000 (32-bit, non-prefetchable) [size=512K]
       I/O ports at 1800 [size=8]
       Capabilities: [d0] Power Management version 1

Okay I have 128MB to use. Note that the address f0000000 is the same as that appears in the warning message. Noe let's check /proc/mtrr

cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
reg01: base=0x3f780000 (1015MB), size= 512KB: uncachable, count=1
reg02: base=0x3f800000 (1016MB), size=   8MB: uncachable, count=1
reg03: base=0xf0000000 (3840MB), size= 1MB: write-combining, count=1

Allocation at 0xf0000000 is not even close to 128Mb. Following the instructions in that post, I exited X to the console, and did this as root:

echo "disable=3" >| /proc/mtrr
echo "base=0xf0000000 size=0x8000000 type=write-combining" >| /proc/mtrr

The figures in the second line should match those which appeared in the warning message, you may need to change those accordingly. Check /proc/mtrr again

cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
reg01: base=0x3f780000 (1015MB), size= 512KB: uncachable, count=1
reg02: base=0x3f800000 (1016MB), size=   8MB: uncachable, count=1
reg03: base=0xf0000000 (3840MB), size= 128MB: write-combining, count=3

After I had done that, glrxgears showed 761FPS instead of 580FPS. It's far from a 2.5 times improvement in performance (which somebody claimed in one of the post I saw), but better than nothing. And by the way, that warning message has disappeared.

 

The rest was easy, I just added the two magic lines to /etc/rc.local, so the memory allocation is now done at boot time.

Edited by coverup
Link to comment
Share on other sites

OK, had a go on my machine, and this is what I got. My machine is running and Intel 82852/82855 GM/GME controller.

 

The lspci -v reports the following:

 

00:02.0 VGA compatible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 01) (prog-if 00 [VGA])
       Subsystem: Toshiba America Info Systems: Unknown device 0002
       Flags: bus master, fast devsel, latency 0, IRQ 10
       Memory at d8000000 (32-bit, prefetchable) [size=128M]
       Memory at d0000000 (32-bit, non-prefetchable) [size=512K]
       I/O ports at eff8 [size=8]
       Capabilities: [d0] Power Management version 1

00:02.1 Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 01)
       Subsystem: Toshiba America Info Systems: Unknown device 0002
       Flags: fast devsel
       Memory at 40000000 (32-bit, prefetchable) [size=128M]
       Memory at 3f000000 (32-bit, non-prefetchable) [size=512K]
       Capabilities: [d0] Power Management version 1

 

It clearly shows 128MB for my card, although there are two entries, because I also have the ability to use an external monitor, which I presume the other entry is for that (or dual screen capability, which I don't use anyhow).

 

The error in xorg.0.log showed the d8000000 had the problem of memory, so edited accordingly, which is shown below:

 

reg00: base=0xfeda0000 (4077MB), size= 128KB: write-back, count=1
reg01: base=0x3f000000 (1008MB), size=  16MB: uncachable, count=1
reg02: base=0xfff00000 (4095MB), size=   1MB: uncachable, count=1
reg03: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
reg04: base=0xd8000000 (3456MB), size= 128MB: write-combining, count=4

 

I changed the code you originally posted, so that I added the following to rc.local:

 

#Added to increase video memory for Intel 82852
echo "disable=4" >| /proc/mtrr
echo "base=0xd8000000 size=0x8000000 type=write-combining" >| /proc/mtrr

 

Yours originally stated the disable=3, so I changed this, since my entry for the video appeared in reg04. I presume this correct, since it shows as altered after I rebooted.

 

However, I still seem to only get 580fps and nothing more. Was there anything else I would look to be doing to get it to increase, or was this all you had done to get it all working?

Link to comment
Share on other sites

One more thing which I just dicovered.... Don't know if it's useful.... From console, if you have the line

reg04: base=0xd8000000 (3456MB), size= xxxMB: write-combining, count=4

then apparently, you need to do

echo "disable=4" >| /proc/mtrr

4 times (count=4), to clear register 04.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...