Commit Graph

43 Commits

Author SHA1 Message Date
cegger 14bab12404 check for svm feature flags if cpuid function 0x8000000a is available. 2010-02-23 08:46:33 +00:00
mrg f23127ca0a don't call most/all Core2's "(Merom)". 2010-02-16 00:13:14 +00:00
jmcneill 204f5f079e - add newer VIA C7 core and VIA Nano.
- when printing an unknown VIA CPU, default to 'Unknown IDT/VIA' instead of 'C3'
2009-10-02 13:54:01 +00:00
pgoyette 0bade9429b Add a few more processor extended models for Intel Family 6 2009-05-14 20:16:10 +00:00
pgoyette 1463b8efaf 1. Extend CPU probe of Intel processors to handle extended-models. This
allows us to properly identify new Intel 45nm processors, Core i7,
   Atom, and the 45nm Xeon MP.

2. Properly decode several new Intel cache descriptors, as listed in the
   most recent (March 2009) edition of Intel's Application Note 485.

3. Convert decode of the various features masks to use the newly added
   snprintb_m(3) routine.

Addresses my PR bin/41289
Addresses my PR bin/41290
2009-05-13 22:25:51 +00:00
lukem 74f7394a13 Allow WARNS=4 after Christos' fix sys/cdefs.h 2009-04-23 01:37:55 +00:00
lukem 6c17577005 Fix -Wsign-compare issue 2009-04-23 01:36:56 +00:00
christos 33c521093c WARNS=4 2009-04-22 18:10:38 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
ad 4d8f47ae2f 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.
2009-04-19 14:11:36 +00:00
tsutsui 38357705f9 Increase size of buffer for humanize_number(3) to print cache sizes
so that it can return 128KB, 256KB and 512KB properly instead of
truncated 0MB or rounded 1MB.

Problem reported by nisimura@ on port-amd64 and port-i386.
2009-03-16 12:25:40 +00:00
yamt 538489ba39 print some SVM info if available. 2009-03-12 09:10:15 +00:00
ad 47afbfb94e cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
2009-01-28 22:37:09 +00:00
christos 2cd3d9d4aa Remove 3rd buggy copy of this function and use snprintb(3) instead.
No need to allocate MAXPATHLEN buffers anymore.
2008-12-16 22:44:50 +00:00
cegger 1754024de3 redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.
2008-11-19 20:56:08 +00:00
rmind cdaedad50c cpu_identify: check ID against number of processors.
Fix for PR/39955.
2008-11-19 11:05:40 +00:00
christos bdb5cd51ab fix so that we can compile with PIC 2008-10-19 15:22:17 +00:00
ad c1482a51a0 Cosmetic change to previous. 2008-10-15 08:22:06 +00:00
ad 889ba1e151 Don't map cpu index to hardware id. 2008-10-15 08:08:30 +00:00
cegger 9250503c06 do correct octal counting and use CPUID_APM_FLAGS in cpuctl 2008-10-14 15:49:04 +00:00
cegger 68e6aa3a03 print features4: cpuid fn80000001 %ecx on AMD CPUs. 2008-10-13 21:11:46 +00:00
cegger 26997ceaa5 Add cpuid 0x80000001 %ecx features flags. Rename CPUID_MASK4 to CPUID_INTEL_MASK4 for consistency with new CPUID_AMD_MASK4 2008-10-13 19:14:53 +00:00
pgoyette 22720d94e4 1. For non-Intel vendors, don't overload cpuflags with the extended
flags from CPUID 80000001_EDX.  Instead, keep the extended flags
   separate, in ci_feature3_flags (Intel processors already kept a
   separate ci_feature3_flag value).

2. Decode/display ci_feature3_flag in a vendor-specific manner, since
   the definitions are vendor-specific.

OK cegger@
2008-08-24 20:27:34 +00:00
wiz f244e7522e Bump date for previous. Drop trailing whitespace. Improve formatting. 2008-06-22 14:50:40 +00:00
ad 44eb18fda8 Add a dumb, mostly Solaris-compatible psrset command. It's missing some
options. Without it there's no easy way to test or use processor sets.
2008-06-22 13:53:59 +00:00
rmind 481ae1556f - 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.
2008-06-16 01:41:20 +00:00
rmind 1ce83e28f1 Sync with the latest cpuset changes. 2008-06-16 00:33:24 +00:00
christos b7748ce1d5 change HUMAN_NUMBER back to 5 2008-05-31 12:48:41 +00:00
christos c2a7e74ac0 remove stray ` 2008-05-30 21:53:21 +00:00
christos 6cb1513d20 - fix an amd cache entry.
- merge tables
- support phenom
from Paul Goyette
2008-05-30 18:49:03 +00:00
christos ab8d9f698c de-duplicated cacheinfo.h 2008-05-30 14:41:57 +00:00
ad 11a6779a98 Print AMD power management features. 2008-05-21 01:12:12 +00:00
tsutsui 9ac86cd165 Sync intel_cpuid_cache_info with src/sys/arch/x86/x86/identcpu.c. 2008-05-17 13:20:27 +00:00
chris f703bee5ef Fix two sizeof(__arraycount()) to not use sizeof when looking up the size
of the array.

This fixes a crash when run on amd phenom under amd64.

Issue reported and inital patch by Paul Goyette.
2008-05-15 23:31:56 +00:00
ad fb00930331 Clarify output of 'id' column. 2008-05-12 14:16:04 +00:00
ad 8038b5d5a5 Report: family, model, extfamily, extmodel 2008-05-10 15:01:05 +00:00
skrll 65d8db46d0 Make this compile. 2008-05-06 09:10:25 +00:00
ad 51e7ff401b 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.
2008-05-05 17:54:14 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
martin 23e1f3f5d4 Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).
2008-03-25 15:06:02 +00:00
tnn 0214c0c459 improve usage() 2008-01-09 00:01:33 +00:00
ad 18af8ee9bd Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
2007-08-04 11:02:56 +00:00