The NetBSD Project

CVS log for src/sys/arch/x86/x86/mtrr_i686.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 22 18:59:41 2012 UTC (12 months, 4 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver, HEAD
Changes since 1.26: +7 -5 lines
Diff to previous 1.26 (colored)

i686_mtrr_init_first: handle the case when there are no variable-size MTRR
registers available (i686_mtrr_vcnt == 0).

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 20 22:23:24 2012 UTC (13 months ago) by rmind
Branch: MAIN
Changes since 1.25: +28 -31 lines
Diff to previous 1.25 (colored)

- Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
  kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.

- Support up to 256 CPUs on amd64 architecture by default.

Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 15 09:38:21 2011 UTC (17 months ago) by abs
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.24: +20 -4 lines
Diff to previous 1.24 (colored)

Increase MTRR_I686_NVAR_MAX from 8 to 16. Avoids
"FIXME: more than 8 MTRRs (10)" message on booting Thinkpad W520 and
similar. While here replace a magic number with MTRR_I686_NVAR_MAX * 2

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 18 17:44:15 2011 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.23: +12 -4 lines
Diff to previous 1.23 (colored)

- fix an off-by-one that disallowed adjacent mappings with conflicting
  types from being created
- only allow MTRR_TYPE_WC mappings if the processor supports it

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 12 23:52:38 2011 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.22: +15 -4 lines
Diff to previous 1.22 (colored)

Handle overlapping variable-range MTRRs following the rules defined in
section 11.11.4.1 "MTRR Precendes" of the Intel(R) 64 and IA-32
Architectures Software Developer's Manual, Volume 3A.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jul 8 09:42:08 2010 UTC (2 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

use __arraycount

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 17 06:38:19 2010 UTC (2 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

when complaining we don't support this many MTRR's, say how many there are.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 21 03:11:01 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.19: +2 -3 lines
Diff to previous 1.19 (colored)

Use lwp_getpcb() on x86 MD code, clean from struct user usage.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 13 10:27:10 2008 UTC (4 years, 7 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5, jym-xensuspend
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored)

Print actual maximum amount of MTRRs configured

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 1 15:27:34 2008 UTC (4 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.17: +31 -13 lines
Diff to previous 1.17 (colored)

hack around PR#38480:

- rename MTRR_I686_NVAR to MTRR_I686_NVAR_MAX, still set to 8
- store mtrr VCNT value into i686_mtrr_vcnt.  if it is less than 8,
  zero out the relevant parts of mtrr_raw[].msraddr
- replace all usage of MTRR_I686_NVAR with either i686_mtrr_vcnt or
  with MTRR_I686_NVAR_MAX as appropriate
- in i686_mtrr_reload() and mtrr_init_first() don't use mtrr_raw[]
  addresses of 0

still needs a bunch of reworking to handle VCNT > 8 case.

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 12 14:41:07 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

- Make cpu_number() return MI index, otherwise the pmap cannot work on
  systems with lapic IDs > X86_MAXPROCS.
- Kill cpu_info[] array and use MI cpu_lookup_byindex().

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:40 2008 UTC (5 years ago) by martin
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 16 16:06:52 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-pf42-X, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

- use aprint_*_dev and device_xname
- use POSIX integer types

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 4 18:38:32 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

sys/lock.h isn't needed here.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 28 16:28:44 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Use the new atomic ops.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 19 21:34:56 2007 UTC (5 years, 7 months ago) by pavel
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.11: +10 -4 lines
Diff to previous 1.11 (colored)

The control registers (notably CR3 and CR4) are 64-bit on amd64 (see
"AMD64 Architecture Programmer's Manual"). Declare the variables
holding them as vaddr_t, otherwise the upper bits are lost.

(CR0 is actually 64-bit too, but the upper bits are unused, so I am
not changing it now.)

Should fix the reboot caused by X11. From Arto Huusko in
PR port-amd64/37043.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 17 19:58:17 2007 UTC (5 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Sep 26 19:48:43 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

x86 changes for pcc and LKMs.

- Replace most inline assembly with proper functions. As a side effect
  this reduces the size of amd64 GENERIC by about 120kB, and i386 by a
  smaller amount. Nearly all of the inlines did something slow, or something
  that does not need to be fast.
- Make curcpu() and curlwp functions proper, unless __GNUC__ && _KERNEL.
  In that case make them inlines. Makes curlwp LKM and preemption safe.
- Make bus_space and bus_dma more LKM friendly.
- Share a few more files between the ports.
- Other minor changes.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 20 18:05:25 2007 UTC (6 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-idlelwp-base8, thorpej-atomic-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, thorpej-atomic, ppcoea-renovation, matt-armv6, jmcneill-pm
Changes since 1.8: +7 -5 lines
Diff to previous 1.8 (colored)

Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test

Revision 1.8 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:39 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, vmlocking, reinoud-bufcleanup, netbsd-4, mjf-ufs-trans
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

__unused removal on arguments; approved by core.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:44 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 2 07:16:41 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.5: +30 -30 lines
Diff to previous 1.5 (colored)

Add missing initializers

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 27 21:25:21 2006 UTC (7 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

Add a comment saying why p can't be NULL here. Coverity ID 764.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:47 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

merge ktrace-lwp.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 1 17:00:50 2003 UTC (9 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-timespec, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

avoid strong words; use 'screw' instead

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 3 22:23:22 2003 UTC (10 years, 2 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored)

Use unsigned long long to print msr values.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 26 21:26:12 2003 UTC (10 years, 2 months ago) by fvdl
Branch: MAIN

Move some files out of i386 into x86, so that they can be shared with
other ports.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>