Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cpucontrol(8) [freebsd man page]

CPUCONTROL(8)						    BSD System Manager's Manual 					     CPUCONTROL(8)

NAME
cpucontrol -- control utility for the cpuctl(4) device SYNOPSIS
cpucontrol [-vh] -m msr device cpucontrol [-vh] -m msr=value device cpucontrol [-vh] -m msr&=mask device cpucontrol [-vh] -m msr|=mask device cpucontrol [-vh] -i level device cpucontrol [-vh] -i level,level_type device cpucontrol [-vh] [-d datadir] -u device DESCRIPTION
The cpucontrol utility can be used to read and write arbitrary machine-specific CPU registers via the cpuctl(4) special device. It can also be used to apply CPU firmware updates. The following options are available: -d datadir Where to look for microcode images. The option can be specified multiple times. -m msr[=value] Show value of the specified MSR. MSR register number should be given as a hexadecimal number. -m msr=value Store the value in the specified MSR register. The value argument can be prefixed with ~ operator. In this case the inverted value of argument will be stored in the register. -m msr&=mask Store the result of bitwise AND operation between mask and the current MSR value in the MSR register. The mask argument can be pre- fixed with ~ operator. In this case the inverted value of mask will be used. -m msr|=mask Store the result of bitwise OR operation between mask and the current MSR value in the MSR register. The mask argument can be pre- fixed with ~ operator. In this case the inverted value of mask will be used. -i level Retrieve CPUID info. Level should be given as a hex number. -i level,level_type Retrieve CPUID info. Level and level_type should be given as hex numbers. -u Apply CPU firmware updates. The cpucontrol utility will walk through the configured data directories and apply all firmware updates available for this CPU. -v Increase the verbosity level. -h Show help message. EXIT STATUS
The cpucontrol utility exits 0 on success, and >0 if an error occurs. EXAMPLES
The command ``cpucontrol -m 0x10 /dev/cpuctl0'' will read the contents of TSC MSR from CPU 0. To set the CPU 0 TSC MSR register value to 0x1 issue ``cpucontrol -m 0x10=0x1 /dev/cpuctl0''. The following command will clear the second bit of TSC register: ``cpucontrol -m 0x10&=~0x02 /dev/cpuctl0''. The following command will set the forth and second bit of TSC register: ``cpucontrol -m 0x10|=0x0a /dev/cpuctl0''. The command ``cpucontrol -i 0x1 /dev/cpuctl1'' will retrieve the CPUID level 0x1 from CPU 1. To perform firmware updates on CPU 0 from images located at /usr/local/share/cpuctl/ use the following command: ``cpucontrol -d /usr/local/share/cpuctl/ -u /dev/cpuctl0'' SEE ALSO
cpuctl(4) HISTORY
The cpucontrol utility first appeared in FreeBSD 7.2. AUTHORS
The cpucontrol utility and this manual page was written by Stanislav Sedov <stas@FreeBSD.org>. BUGS
Yes, probably, report if any. BSD
June 30, 2009 BSD

Check Out this Related Man Page

x86info(1)						      General Commands Manual							x86info(1)

NAME
x86info -- display x86 CPU diagnostics SYNOPSIS
x86info [-a] [-c] [-f] [fB-F] [-m] [-mhz] [-r] [?] [--all] [--cache] [--flags] [--verbose] [--msr] [--mhz] [--registers] [--help] DESCRIPTION
This manual page documents x86info, a program which displays a range of information about the CPUs present in an x86 system. In order to make full use of this program you need to have the CPU ID and MSR device drivers in your kernel with accessible device files /dev/cpu/<n>/cpuid and /dev/cpu/<n>/msr. OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. ? --help Show summary of options. -a --all Show all information. Equivalent to -c -f -m -r -mhz. -c --cache Show TLB, cache sizes and cache associativity. -f --flags Show CPU feature flags. -m --msr Dump model specific registers. This feature is currently only supported on a few different processors. Future versions will include parsing of bits in MSRs for all processors. -mhz --mhz Estimate current clock rate. -mp --mptable Dump MP table showing CPUs BIOS knows about. -r --registers Show register values from all possible cpuid calls. -s --show-machine-check Show machine check exception information. -v --verbose Show verbose descriptions. AUTHOR
x86info was written by Dave Jones <davej@redhat.com>. This manual page was written by Mark Brown <broonie@debian.org> for the Debian GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License version 2. x86info(1)
Man Page