login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
29
Re: [PATCH] x86_32: trim memory by updating e820 v3
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Gabriel C <nix.or.die@...>
To: Yinghai Lu <yhlu.kernel@...>
Cc: Mika Fischer <mika.fischer@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, H. Peter Anvin <hpa@...>, LKML <linux-kernel@...>, Jesse Barnes <jesse.barnes@...>, <balajirrao@...>, Andi Kleen <andi@...>, Thomas Gleixner <tglx@...>
Subject:
Re: [PATCH] x86_32: trim memory by updating e820 v3
Date: Monday, April 28, 2008 - 9:05 pm
Yinghai Lu wrote:
quoted text
> On Mon, Apr 28, 2008 at 3:56 PM, Gabriel C <nix.or.die@googlemail.com> wrote: >> Yinghai Lu wrote: >> > On Mon, Apr 28, 2008 at 2:19 PM, Gabriel C <nix.or.die@googlemail.com> wrote: >> >> Gabriel C wrote: >> >> > Gabriel C wrote: >> >> >> Yinghai Lu wrote: >> >> >>> On Mon, Apr 28, 2008 at 7:24 AM, Gabriel C <nix.or.die@googlemail.com> wrote: >> >> >>>> Mika Fischer wrote: >> >> >>>> > Hi Ingo, >> >> >>>> > >> >> >>>> > I'm having the same problem. >> >> >>>> > >> >> >>>> > Ingo Molnar schrieb: >> >> >>>> >> excellent. So just to make sure: this box never had proper graphics >> >> >>>> >> under Linux (under no previous kernel), due to the way the BIOS has set >> >> >>>> >> up the MTRR's, right? >> >> >>>> > >> >> >>>> > Well, not quite. X still works fine, but since the video memory is >> >> >>>> > overlapped by two of the existing MTRRs, X cannot add a write-combining >> >> >>>> > range for the video memory. That makes X rather slow especially if you >> >> >>>> > use DRI for Compiz etc. >> >> >>>> >> >> >>>> Well you are lucky then :) >> >> >>>> >> >> >>>> Yeah X 'worked' but it worked as slow as with vesa video driver here. >> >> >>> [ 0.000000] rangeX: 0000000000000000 - 00000000d0000000 >> >> >>> [ 0.000000] Setting variable MTRR 0, base: 0MB, range: 2048MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 1, base: 2048MB, range: 1024MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 2, base: 3072MB, range: 256MB, type WB >> >> >>> [ 0.000000] range0: 00000000cf800000 - 00000000cf800000 >> >> >>> [ 0.000000] range: 00000000cf800000 - 00000000d0000000 >> >> >>> [ 0.000000] Setting variable MTRR 3, base: 3320MB, range: 8MB, type WB >> >> >>> [ 0.000000] range0: 0000000100000000 - 0000000120000000 >> >> >>> [ 0.000000] Setting variable MTRR 4, base: 4096MB, range: 512MB, type WB >> >> >>> [ 0.000000] range: 0000000120000000 - 0000000130000000 >> >> >>> [ 0.000000] Setting variable MTRR 5, base: 4608MB, range: 256MB, type WB >> >> >>> [ 0.000000] hole: 000000012c000000 - 0000000130000000 >> >> >>> [ 0.000000] Setting variable MTRR 6, base: 4800MB, range: 64MB, type UC >> >> >>> >> >> >>> so your X server need two entries for WB? >> >> >>> >> >> >>> can you send out /proc/mtrr with booting with disable_mtrr_cleanup? >> >> >> I can just not right now , cannot reboot the box yet. In about 1h or so , maybe less. >> >> > >> >> > Here the output with v3 which is disabled by default: >> >> > >> >> > --($:~)-- cat /proc/mtrr >> >> > reg00: base=0xd0000000 (3328MB), size= 256MB: uncachable, count=1 >> >> > reg01: base=0xe0000000 (3584MB), size= 512MB: uncachable, count=1 >> >> > reg02: base=0x00000000 ( 0MB), size=4096MB: write-back, count=1 >> >> > reg03: base=0x100000000 (4096MB), size= 512MB: write-back, count=1 >> >> > reg04: base=0x120000000 (4608MB), size= 128MB: write-back, count=1 >> >> > reg05: base=0x128000000 (4736MB), size= 64MB: write-back, count=1 >> >> > reg06: base=0xcf600000 (3318MB), size= 2MB: uncachable, count=1 >> >> > >> >> > dmesg is saying now : >> >> > >> >> > [ 22.764595] mtrr: type mismatch for d0000000,10000000 old: write-back new: write-combining >> >> > >> >> > >> >> > My card settings in BIOS ( that was default ) are the following : >> >> > >> >> > DVMT Mode -> DVMT Mode ( possible setting DVMT Mode or Fixed Mode ) >> >> > DVMT / Memory -> 256MB ( possible settings 128/256 MB or Maximum DVMT ) >> >> > >> >> > Initiate Graphics Adapter -> PEG/PCI ( possible settings IGD , PCI/IGD , PCI/PEG , PEG/IGD ) >> >> > Internal Graphics Mode Select -> Enabled,8MB ( possible settings Enabled,8MB , Enabled,1MB maybe Disabled I forgot to look) >> >> > PEG Port -> Auto ( possible settings Auto , Disabled ) >> >> > PEG Port Force x1 -> Disabled ( possible settings Enabled , Disabled ) >> >> > >> >> > Of course these settings are only possible when the card is not disabled :) >> >> > >> >> > I'm gonna try v4 now and enable it. Please let me know if you need more infos. >> >> >> >> Hmm v4 doesn't work anymore here ( I've tested with all possible settings in BIOS ). >> >> It takes 6 minutes to boot to : >> >> >> > >> > so you card is using 256M and 8M? 0xd0000000-0xe0000000, where is >> > another 8M address. >> >> Looks like this , yes. Is using the 256MB Memory and the 8MB for Graphics Mode Select. >> >> I'm not really sure why the 8MB are needed , BIOS book doesn't tell me. >> I could try to disable and see what I get =) >> >> >> >> > >> > mtrr by BIOS is very interesting: >> > before >> >> > reg02: base=0x00000000 ( 0MB), size=4096MB: write-back, count=1 >> >> > reg06: base=0xcf600000 (3318MB), size= 2MB: uncachable, count=1 >> >> > reg00: base=0xd0000000 (3328MB), size= 256MB: uncachable, count=1 >> >> > reg01: base=0xe0000000 (3584MB), size= 512MB: uncachable, count=1 >> >> > reg03: base=0x100000000 (4096MB), size= 512MB: write-back, count=1 >> >> > reg04: base=0x120000000 (4608MB), size= 128MB: write-back, count=1 >> >> > reg05: base=0x128000000 (4736MB), size= 64MB: write-back, count=1 >> > >> > >> > after 256M chunk size got >> >> >>> [ 0.000000] Setting variable MTRR 0, base: 0MB, range: 2048MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 1, base: 2048MB, range: 1024MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 2, base: 3072MB, range: 256MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 3, base: 3320MB, range: 8MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 4, base: 4096MB, range: 512MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 5, base: 4608MB, range: 256MB, type WB >> >> >>> [ 0.000000] Setting variable MTRR 6, base: 4800MB, range: 64MB, type UC >> > >> > so the convering is right..., need to spare another entry for your card. >> > >> > or we can dumping the >> >> >>> [ 0.000000] Setting variable MTRR 3, base: 3320MB, range: 8MB, type WB >> > for extra entra... >> > >> > but the mtrr trimming code need to be updated instead of only using highest_pfn >> > >> > YH >> > > > please try to test patch with mtrr_chunk_size= 2g; 1g, 512m, 128m. etc. > only for test: i comment out the fill_var_state..
There are the dmesg's , down to 2m and without chunk_size :
http://frugalware.org/~crazy/mtrr/mtrr/
quoted text
> > YH >
Gabriel --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] x86_32: trim memory by updating e820 v2
, Yinghai Lu
, (Mon Jan 21, 2:56 am)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Ingo Molnar
, (Tue Jan 22, 12:51 pm)
[PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Tue Jan 22, 8:23 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Andrew Morton
, (Sat Apr 26, 6:56 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 2:50 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Mon Apr 28, 4:38 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 5:09 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Mon Apr 28, 5:44 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 5:58 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Sat Apr 26, 9:22 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Sun Apr 27, 4:29 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Sat Apr 26, 8:57 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Sun Apr 27, 4:21 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Sat Apr 26, 8:56 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 2:44 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 5:18 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 5:34 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 5:54 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Ingo Molnar
, (Mon Apr 28, 9:53 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Jesse Barnes
, (Mon Apr 28, 12:09 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Ingo Molnar
, (Tue Apr 29, 6:37 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Jesse Barnes
, (Tue Apr 29, 11:52 am)
[patch] PCI: export resource_wc in pci sysfs
, Ingo Molnar
, (Tue Apr 29, 6:03 pm)
Re: [patch] PCI: export resource_wc in pci sysfs
, Andrew Morton
, (Tue Apr 29, 6:24 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Andrew Morton
, (Tue Apr 29, 8:40 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Mon Apr 28, 12:31 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Jesse Barnes
, (Mon Apr 28, 12:55 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 10:15 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Mon Apr 28, 10:11 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 10:24 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 3:08 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 3:46 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 3:06 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 3:38 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 4:45 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 5:19 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 6:03 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 6:56 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 7:23 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 9:05 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 10:41 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Ingo Molnar
, (Tue Apr 29, 6:34 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Tue Apr 29, 6:42 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Gabriel C
, (Mon Apr 28, 6:03 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Mika Fischer
, (Mon Apr 28, 6:07 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 3:03 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Sat Apr 26, 9:05 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Eric W. Biederman
, (Mon Apr 28, 2:07 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Ingo Molnar
, (Tue Apr 29, 6:31 am)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Eric W. Biederman
, (Tue Apr 29, 1:29 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Tue Apr 29, 2:40 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Eric W. Biederman
, (Tue Apr 29, 3:19 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Tue Apr 29, 3:44 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Eric W. Biederman
, (Tue Apr 29, 4:02 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v3
, Yinghai Lu
, (Mon Apr 28, 7:16 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Jesse Barnes
, (Mon Jan 21, 12:30 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Justin Piszcz
, (Mon Jan 21, 3:14 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Yinghai Lu
, (Mon Jan 21, 4:09 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Justin Piszcz
, (Mon Jan 21, 5:37 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Yinghai Lu
, (Tue Jan 22, 11:50 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Justin Piszcz
, (Fri Jan 25, 8:01 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Ingo Molnar
, (Mon Jan 28, 11:09 am)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Justin Piszcz
, (Mon Jan 28, 2:07 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Yinghai Lu
, (Fri Jan 25, 8:16 pm)
Re: [PATCH] x86_32: trim memory by updating e820 v2
, Justin Piszcz
, (Fri Jan 25, 8:37 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
open-graphics
open-graphics-announce-kt
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
David Newall
Re: Slow DOWN, please!!!
Renato S. Yamane
Error -71 on device descriptor read/all
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
Shawn O. Pearce
libgit2 - a true git library
Martin Langhoff
Re: pack operation is thrashing my server
Aubrey Li
git proxy issue
Pierre Habouzit
git send-email improvements
netbsd-tech-kern
:
Elad Efrat
Integrating securelevel and kauth(9)
Hubert Feyrer
Compressed vnd handling tested successfully
Matt Thomas
Interrupt, interrupt threads, continuations, and kernel lwps
Michael
Re: yamt-km branch
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
Will Maier
cron doesn't run commands in /etc/crontab?
askthelist
Packets Per Second Limit?
Harald Dunkel
Packet Filter: how to keep device names on hardware failure?
Latest forum posts
Question on swap as ramdisk partition
2 hours ago
Linux kernel
Netfilter kernel module
13 hours ago
Linux kernel
serial driver xmit problem
16 hours ago
Linux kernel
Why Windows is better than Linux
16 hours ago
Linux general
How can I see my kernel messages in vt12?
22 hours ago
Linux kernel
Grub
1 day ago
Linux general
vmalloc_fault handling in x86_64
1 day ago
Linux kernel
epoll_wait()ing on epoll FD
1 day ago
Linux kernel
Framebuffer in x86_64 causes problems to multiseat
2 days ago
Linux kernel
Difference between 2.4 and 2.6 regarding thread creation
2 days ago
Linux general
Show all forums...
Recent Tags
more tags
Colocation donated by:
Who's online
There are currently
1 user
and
1247 guests
online.
Online users
Mr_Z
Syndicate
speck-geostationary