The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7.4.3 / (download) - annotate - [select for diffs], Fri Dec 24 13:02:25 2021 UTC (17 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.7.4.2: +78 -3 lines
Diff to previous 1.7.4.2 (colored) next main 1.8 (colored)

Pull up the following (all via patch), requested by msaitoh in ticket #1721:

	usr.sbin/cpuctl/arch/i386.c			1.118-1.119, 1.121-1.122
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.6
	sys/arch/x86/x86/identcpu_subr.c		1.8-1.9
	sys/arch/x86/x86/identcpu.c			1.123
	sys/arch/x86/include/cacheinfo.h		1.30
	sys/arch/x86/include/cpu.h			1.132

- Fix a bug that some TLB related lines were not printed.
- Fix a bug that STLB is printed as DTLB.
- If a TLB is variable sized, print the max size instead of error message.
- Cosmetic changes to improve readability.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Fri Dec 24 12:58:14 2021 UTC (17 months, 1 week ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.7.2.2: +78 -3 lines
Diff to previous 1.7.2.2 (colored) next main 1.8 (colored)

Pull up the following (all via patch), requested by msaitoh in ticket #1396:

	usr.sbin/cpuctl/arch/i386.c			1.118-1.119, 1.121-1.122
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.6
	sys/arch/x86/x86/identcpu_subr.c		1.8-1.9
	sys/arch/x86/x86/identcpu.c			1.123
	sys/arch/x86/include/cacheinfo.h		1.30
	sys/arch/x86/include/cpu.h			1.132

- Fix a bug that some TLB related lines were not printed.
- Fix a bug that STLB is printed as DTLB.
- If a TLB is variable sized, print the max size instead of error message.
- Cosmetic changes to improve readability.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 7 13:04:18 2021 UTC (19 months, 3 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.8: +77 -2 lines
Diff to previous 1.8 (colored)

Move some common functions into x86/identcpu_subr.c. No functional change.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:41 2021 UTC (2 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 16 15:26:23 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

trailing whitespace

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Wed Aug 5 15:48:53 2020 UTC (2 years, 9 months ago) by martin
Branch: netbsd-8
Changes since 1.7.4.1: +145 -0 lines
Diff to previous 1.7.4.1 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1585:

	usr.sbin/cpuctl/Makefile			1.9
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.5
	usr.sbin/cpuctl/arch/i386.c			1.111-1.113 via patch
	usr.sbin/cpuctl/cpuctl.c			1.31
	usr.sbin/cpuctl/cpuctl.h			1.7
	sys/arch/x86/x86/identcpu_subr.c		1.1-1.7

- Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel
  processors.
- Add 0xa5 and 0xa6 for Comet Lake.
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
  ci_max_ext_cpuid to match x86/include/cpu.h. No functional change.
- Sort some entries.
- Add comment.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Fri Jul 10 11:20:29 2020 UTC (2 years, 10 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.7.2.1: +145 -0 lines
Diff to previous 1.7.2.1 (colored)

Pull up the following revisions (all via patch) requested by msaitoh in
ticket #995:

	usr.sbin/cpuctl/Makefile			1.9
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.5
	usr.sbin/cpuctl/arch/i386.c			1.111-1.113
	usr.sbin/cpuctl/cpuctl.c			1.31
	usr.sbin/cpuctl/cpuctl.h			1.7
	sys/arch/x86/x86/identcpu_subr.c		1.1-1.7

- Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel
  processors.
- Add 0xa5 and 0xa6 for Comet Lake.
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
  ci_max_ext_cpuid to match x86/include/cpu.h. No functional change.
- Sort some entries.
- Add comment.

Revision 1.7.4.1, Fri Jul 10 06:15:23 2020 UTC (2 years, 10 months ago) by martin
Branch: netbsd-8
Changes since 1.7: +0 -145 lines
FILE REMOVED

file identcpu_subr.c was added on branch netbsd-8 on 2020-08-05 15:48:53 +0000

Revision 1.7.2.1, Fri Jul 10 06:15:23 2020 UTC (2 years, 10 months ago) by martin
Branch: netbsd-9
Changes since 1.7: +0 -145 lines
FILE REMOVED

file identcpu_subr.c was added on branch netbsd-9 on 2020-07-10 11:20:29 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 10 06:15:23 2020 UTC (2 years, 10 months ago) by msaitoh
Branch: MAIN
Branch point for: thorpej-futex, netbsd-9, netbsd-8
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Add missing NetBSD RCS Id.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 9 05:07:13 2020 UTC (2 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Add braces.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 9 05:06:27 2020 UTC (2 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored)

Remove debug printf.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 12 06:32:05 2020 UTC (3 years ago) by msaitoh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Don't use TSC freq value from CPUID if calibration works.

 - When it's the first call of cpu_get_tsc_freq() the HPET is not initialized,
   so try to use CPUID to get TSC freq.
 - If it's the 2nd call, don't use CPUID. Instead, print the difference
   between the calibrated value and CPUID's value if the verbose mode is set.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:18 2020 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sat Apr 25 11:23:57 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.2.4.1: +146 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:12 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.2.2.1: +146 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.4.1, Tue Apr 21 07:08:12 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.2: +0 -146 lines
FILE REMOVED

file identcpu_subr.c was added on branch bouyer-xenpvh on 2020-04-25 11:23:57 +0000

Revision 1.2.2.1, Tue Apr 21 07:08:12 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.2: +0 -146 lines
FILE REMOVED

file identcpu_subr.c was added on branch phil-wifi on 2020-04-21 18:42:12 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 21 07:08:12 2020 UTC (3 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2
Branch point for: phil-wifi, bouyer-xenpvh
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

 Print "Hz".

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 21 02:56:37 2020 UTC (3 years, 1 month ago) by msaitoh
Branch: MAIN

Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel processors.

 - If the max CPUID leaf is >= 0x15, take TSC value from CPUID. Some processors
   can take TSC/core crystal clock ratio but core crystal clock frequency
   can't be taken. Intel SDM give us the values for some processors.
 - It also required to change lapic_per_second to make LAPIC timer correctly.
 - Add new file x86/x86/identcpu_subr.c to share common subroutines between
   kernel and userland. Some code in x86/x86/identcpu.c and cpuctl/arch/i386.c
   will be moved to this file in future.
 - Add comment to clarify.

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>