CVS log for src/usr.sbin/cpuctl/cpuctl.c
Up to [cvs.NetBSD.org] / src / usr.sbin / cpuctl
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Sep 13 06:53:23 2023 UTC (15 months ago) by wiz
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4
lines
tabify
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Sep 12 20:43:38 2023 UTC (15 months ago) by wiz
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -3
lines
cpuctl: be more verbose about problems and diagnosing them
Revision 1.28.8.3: download - view: text, markup, annotated - select for diffs
Wed Aug 23 18:10:06 2023 UTC (15 months, 3 weeks ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.28.8.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.8.2: +3 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #1892):
usr.sbin/cpuctl/cpuctl.8: revision 1.21
usr.sbin/cpuctl/cpuctl.c: revision 1.33
Unless -v is given, ignore EEXIST errors from the IOC_CPU_UCODE_APPLY ioctl()
used to implement "cpuctl ucode N", which indicates that the microcode
to be loaded already exists in the CPU, and as such, isn't really a
very interesting "error".
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 23 18:08:44 2023 UTC (15 months, 3 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +3 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #1724):
usr.sbin/cpuctl/cpuctl.8: revision 1.21
usr.sbin/cpuctl/cpuctl.c: revision 1.33
Unless -v is given, ignore EEXIST errors from the IOC_CPU_UCODE_APPLY ioctl()
used to implement "cpuctl ucode N", which indicates that the microcode
to be loaded already exists in the CPU, and as such, isn't really a
very interesting "error".
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 23 18:06:49 2023 UTC (15 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #339):
usr.sbin/cpuctl/cpuctl.8: revision 1.21
usr.sbin/cpuctl/cpuctl.c: revision 1.33
Unless -v is given, ignore EEXIST errors from the IOC_CPU_UCODE_APPLY ioctl()
used to implement "cpuctl ucode N", which indicates that the microcode
to be loaded already exists in the CPU, and as such, isn't really a
very interesting "error".
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Mar 6 01:28:54 2023 UTC (21 months, 1 week ago) by kre
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
Unless -v is given, ignore EEXIST errors from the IOC_CPU_UCODE_APPLY ioctl()
used to implement "cpuctl ucode N", which indicates that the microcode
to be loaded already exists in the CPU, and as such, isn't really a
very interesting "error".
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Feb 1 10:45:02 2022 UTC (2 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +10 -7
lines
allow "cpuN" as well as "N" to specific a CPU.
update usage to include a change i made from 2015 to allow multiple
CPUs to be operated on at the same time for most commands.
Revision 1.28.8.2: download - view: text, markup, annotated - select for diffs
Wed Aug 5 15:48:53 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.28.8.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.8.1: +3 -2
lines
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.30.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 10 11:20:29 2020 UTC (4 years, 5 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -2
lines
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.29.4.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:47 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.1: +3 -2
lines
Sync with HEAD
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Apr 21 02:56:37 2020 UTC (4 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20200421,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -2
lines
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.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:29 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -4
lines
Sync with HEAD
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Sun May 12 09:21:12 2019 UTC (5 years, 7 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -4
lines
Pull up following revision(s) (requested by maxv in ticket #1260):
common/lib/libc/sys/cpuset.c: revision 1.21
usr.sbin/cpuctl/cpuctl.c: revision 1.30
Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.
On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.
Check the return value of cpuset_set(), to prevent future surprises.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat May 11 11:59:21 2019 UTC (5 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
is-mlppp-base,
is-mlppp
Branch point for: netbsd-9
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -4
lines
Check the return value of cpuset_set(), to prevent future surprises.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jan 16 08:23:18 2018 UTC (6 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat
Branch point for: phil-wifi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -4
lines
implement cpuctl identify for sparc and sparc64.
sparc:
- move enum vactype and struct cacheinfo into cpu.h
- move the cache flags from cpuinfo.flags into CACHEINFO.c_flags
(this allows the new cache_printf_backend() to see them.)
remove unused CPUFLG_CACHEIOMMUTABLES and CPUFLG_CACHEDVMA.
- align xmpsg to 64 bytes
- move cache_print() into cache_print.h so it can be shared with
cpuctl. it only depends upon a working printf().
- if found, store the CPU node's "name" into cpu_longname. this
changes the default output to show the local CPU not the
generic CPU family. eg:
cpu0 at mainbus0: mid 8: Ross,RT625 @ 90 MHz, on-chip FPU
vs the generic "RT620/625" previously shown.
- for each CPU export these things:
- name
- fpuname
- mid
- cloc
- freq
- psr impl and version
- mmu impl, version, and number of contexts
- cacheinfo structure (which changed for the first time ever
with this commit.)
sparc64:
- add a minimal "cacheinfo" structure to export the i/d/e-cache
size and linesize.
- store %ver, cpu node "name" and cacheinfo in cpu_info.
- set cpu_info ver, name and cacheinfo in cpu_attach(), and
export them via sysctl, as well as CPU ID and clock freq
cpuctl:
- add identifycpu_bind() that returns false on !x86 as their
identify routines do not need to run on a particular CPU to
obtain its information, and use it to avoid trying to set
affinity when not needed.
- add sparc and sparc64 cpu identify support using the newly
exported values.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Nov 16 03:34:50 2015 UTC (9 years ago) by mrg
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +59 -49
lines
allow most commands to specify more than one cpu. now you can online or
offline (or identify, or intr/nointr) a list of cpus all together.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Nov 16 02:04:32 2015 UTC (9 years ago) by mrg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -10
lines
convert getcpuid() to take char* not char**
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Nov 16 02:02:41 2015 UTC (9 years ago) by mrg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +13 -12
lines
use stdbool.h
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 16 08:30:50 2015 UTC (9 years, 10 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +20 -8
lines
Pull up following revision(s) (requested by msaitoh in ticket #1230):
usr.sbin/cpuctl/cpuctl.8: revisions 1.9-1.12
usr.sbin/cpuctl/cpuctl.c: revisions 1.22-1.23 and 1.25 via patch
usr.sbin/cpuctl/cpuctl.h: revision 1.5 via patch
usr.sbin/cpuctl/arch/cpuctl_i386.h: revisions 1.1-1.2
usr.sbin/cpuctl/arch/i386-asm.S: revisions 1.2-1.3
usr.sbin/cpuctl/arch/i386.c: revisions 1.34, 1.36-1.49, 1.51-1.63 via patch
usr.sbin/cpuctl/arch/x86_64-asm.S: revisions 1.3-1.4
Update cpuctl(8). Microcode and ARM related changes are not included:
- Change the i386 asm x86_identify() so it returns a value instead of
writing into global data. Fix a stack alignment fubar that would
cause a crash on a cirix 486. Refactor identify code to common setup
for normal identify and ucode identify - which was missing a
memset().
- The Intel and AMD docs (more or less) agree on how the cpuid
'extended family' and 'extended model' bits are used to create
larger values than the original 16bit value allowed for.
Calculate and save these values 'up-front' and use them throughout.
Untangle the (backwards) nested switch statement for amd 'model 15'
cpus.
- Use full model number to index name strings - a lot of 256 element
arrays don't matter in usespace.
- Add support for the xsave related data from cpuid 8.n.
Reorder the output so that the 'brand' string - which actually
identifies the cpu is output first.
- Only complain about binding if we have more than 1 cpu.
- Check cpuid leaf 4 for newer Intel CPU to know the cache information.
- Support prefetch size.
- Print the highest extended info level as the basic info level.
- Update URL of AMD's web page.
- Add code to detect hypervisor. The code was based from FreeBSD and
ported by Kengo Nakahara.
- Add verbose flag.
- Add newline if ci_tsc_freq is 0 to not to break the output.
- Update Intel's processor family names and models.
- Print some more bits.
- Add shared TLB
- Add prototypes.
- Add comments.
- Make some functions static.
- Sort functions.
- KNF.
Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Sun Dec 21 19:28:38 2014 UTC (9 years, 11 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #336):
usr.sbin/cpuctl/cpuctl.c: revision 1.25
Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Dec 16 04:07:40 2014 UTC (10 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Nov 20 12:49:13 2014 UTC (10 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3
lines
Fix manual and usage bug. The ucode command can take [cpuno] argument.
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:07 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.1: +18 -6
lines
Rebase to HEAD as of a few days ago.
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:02 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +19 -7
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Dec 23 12:35:33 2013 UTC (10 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +18 -6
lines
Add verbose flag.
On x86 cpu, cpuctl -v identify dumps the return values of the cpuid
functions. The max levels are taken from CPUID 0 and CPUID 8000_0000.
It's useful for the future CPU.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:42 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
resync with head
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 31 19:47:59 2013 UTC (11 years, 10 months ago) by matt
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
Only complain about binding if we have more than 1 cpu. :)
(we always have more than 0).
Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:31 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +29 -15
lines
sync with head
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Aug 29 17:13:22 2012 UTC (12 years, 3 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +29 -15
lines
Extend the CPU microcode update framework to support Intel x86 CPUs.
Contrary to the AMD implementation, it doesn't use xcalls to distribute
the update to all CPUs but relies on cpuctl(8) to bind itself to the
right CPU -- to keep it simple and avoid possible problems with
hyperthreading.
Also, it doesn't parse the vendor supplied file to pick the right
part for the present CPU model but relies on userland to prepare
files with specific filenames. I'll commit a pkg for this in a minute
(pkgsrc/sysutils/intel-microcode).
The ioctl interface changed; compatibility is provided (should be
limited to COMPAT_NETBSD6 as soon as this is available).
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:45 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +55 -13
lines
sync with head
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 13 16:05:16 2012 UTC (12 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: netbsd-6
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +55 -13
lines
Support CPU microcode loading via cpuctl(8).
Implemented and enabled via CPU_UCODE kernel config option
for x86 and Xen Dom0.
Tested on different AMD machines with different
CPU families.
ok wiz@ for the manpages
ok releng@
ok core@ via releng@
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Sep 27 11:24:21 2011 UTC (13 years, 2 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -4
lines
Define _PATH_CPUCTL.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Sep 26 06:51:57 2011 UTC (13 years, 2 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
Fix wrong err(3) message (no such thing as IOC_CPU_GETINFO).
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 11 14:54:49 2011 UTC (13 years, 3 months ago) by jdc
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Add a cs_hwid field to cpustate and use this to store the ci_cpuid (hardware
ID). Report this as the HwID in cpuctl.
OK jruoho@.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Aug 27 22:38:48 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +21 -22
lines
static + __dead
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:20 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +56 -8
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Apr 23 01:36:56 2009 UTC (15 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Fix -Wsign-compare issue
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Apr 19 14:11:38 2009 UTC (15 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +55 -7
lines
cpuctl:
- Add interrupt shielding (direct hardware interrupts away from the
specified CPUs). Not documented just yet but will be soon.
- Redo /dev/cpu time_t compat so no kernel changes are needed.
x86:
- Make intr_establish, intr_disestablish safe to use when !cold.
- Distribute hardware interrupts among the CPUs, instead of directing
everything to the boot CPU.
- Add MD code for interrupt sheilding. This works in most cases but there is
a bug where delivery is not accepted by an LAPIC after redistribution. It
also needs re-balancing to make things fair after interrupts are turned
back on for a CPU.
Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Fri Feb 6 01:10:26 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
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-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
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
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.2: +4 -4
lines
Pull up following revision(s) (requested by rmind in ticket #409):
usr.sbin/cpuctl/cpuctl.c: revision 1.13
cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jan 28 22:37:09 2009 UTC (15 years, 10 months ago) by ad
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4
lines
cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 22 16:33:27 2008 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC1
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +10 -8
lines
Pull up following revision(s) (requested by cegger in ticket #105):
usr.sbin/cpuctl/cpuctl.c: revision 1.12
redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 22 16:32:24 2008 UTC (16 years ago) by snj
Branches: netbsd-5
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -4
lines
Pull up following revision(s) (requested by cegger in ticket #105):
usr.sbin/cpuctl/cpuctl.c: revision 1.11
cpu_identify: check ID against number of processors.
Fix for PR/39955.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Nov 19 20:56:08 2008 UTC (16 years ago) by cegger
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -8
lines
redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Nov 19 11:05:40 2008 UTC (16 years ago) by rmind
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -4
lines
cpu_identify: check ID against number of processors.
Fix for PR/39955.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Oct 15 08:22:06 2008 UTC (16 years, 2 months ago) by ad
Branches: MAIN
CVS tags: netbsd-5-base,
matt-mips64-base2
Branch point for: netbsd-5
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5
lines
Cosmetic change to previous.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 15 08:08:30 2008 UTC (16 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -5
lines
Don't map cpu index to hardware id.
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:12 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +11 -9
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:22 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +8 -6
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jun 16 01:41:21 2008 UTC (16 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -8
lines
- Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.
API is expected to be stable now.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 16 00:33:24 2008 UTC (16 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -5
lines
Sync with the latest cpuset changes.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:14 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +73 -14
lines
sync with head.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon May 12 14:16:04 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
hpcarm-cleanup-nbase
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -5
lines
Clarify output of 'id' column.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 5 17:54:14 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +70 -4
lines
PR port-amd64/37461 x86 cpu dmesg output is noisy
Port identifycpu() to userspace. The kernel lies and reports on cpuN while
actually using the values from cpu0, but this attempts to bind itself to the
requested CPU if running as root. That doesn't work properly yet due to
kern/38588, but will do once that's fixed.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:15 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 25 15:06:02 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -10
lines
Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:50:06 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +6 -4
lines
sync with HEAD
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 00:01:33 2008 UTC (16 years, 11 months ago) by tnn
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -4
lines
improve usage()
Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Sat Aug 4 11:03:06 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.1: +188 -0
lines
Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
Revision 1.1.6.1
Sat Aug 4 11:03:05 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.1: +0 -188
lines
file cpuctl.c was added on branch matt-mips64 on 2007-08-04 11:03:06 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Aug 4 11:03:05 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: matt-mips64-base,
matt-armv6-prevmlocking,
matt-armv6-base,
cube-autoconf-base,
cube-autoconf
Branch point for: matt-mips64,
matt-armv6
Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
CVSweb <webmaster@jp.NetBSD.org>