freebsd kernel with SKQ
Go to file
avg c81dcb14ca Local APIC: add support for extended LVT entries found in AMD processors
The extended LVT entries can be used to configure interrupt delivery
for various events that are internal to a processor and can use this
feature.

All current processors that support the feature have four of such entries.
The entries are all masked upon the processor reset, but it's possible
that firmware may use some of them.

BIOS and Kernel Developer's Guides for some processor models do not assign
any particular names to the extended LVTs, while other BKDGs provide names
and suggested usage for them.
However, there is no fixed mapping between the LVTs and the processor
events in any processor model that supports the feature.  Any entry can be
assigned to any event.  The assignment is done by programming an offset
of an entry into configuration bits corresponding to an event.

This change does not expose the flexibility that the feature offers.
The change adds just a single method to configure a hardcoded extended LVT
entry to deliver APIC_CMC_INT.  The method is designed to be used with
Machine Check Error Thresholding mechanism on supported processor models.

For references please see BKDGs for families 10h - 16h and specifically
descriptions of APIC30, APIC400, APIC[530:500] registers.
For a description of the Error Thresholding mechanism see, for example,
BKDG for family 10h, section 2.12.1.6.
http://developer.amd.com/resources/developer-guides-manuals/

Thanks to jhb and kib for their suggestions.

Reviewed by:	kib
Discussed with:	jhb
MFC after:	5 weeks
Relnotes:	maybe
Differential Revision: https://reviews.freebsd.org/D9612
2017-02-28 18:48:12 +00:00
bin Use uintmax_t to print st_nlink. 2017-02-16 06:32:39 +00:00
cddl Fix memory leaks in error cases in libdtrace. 2017-02-23 17:56:24 +00:00
contrib Add sem_clockwait_np() 2017-02-23 19:36:38 +00:00
crypto Avoid picking up MIT Kerberos from ports (if installed). 2017-02-26 19:00:55 +00:00
etc Remove SVR4 (System V Release 4) binary compatibility support. 2017-02-28 05:14:42 +00:00
gnu Use SRCTOP/OBJTOP and simplify output using :H instead of "../" for directory 2017-02-11 20:12:54 +00:00
include Guard sem_clockwait_np() declaration with __BSD_VISIBLE 2017-02-24 14:37:55 +00:00
kerberos5 Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS 2017-01-02 19:03:01 +00:00
lib Properly indent a default: label and avoid crashing when running 2017-02-28 18:10:03 +00:00
libexec Fully handle the special encoding of GOT[1] on mips64. 2017-02-23 00:02:49 +00:00
release Fix the hardware.html build. 2017-02-16 22:29:37 +00:00
rescue Conditionally compile certain programs into rescue(8) if requested 2017-02-25 03:23:11 +00:00
sbin Add sysctl to control auto resize of the GEOM metadata. 2017-02-27 17:54:01 +00:00
secure Remove bdes(1) 2017-02-06 08:27:19 +00:00
share Implement sbuf_prf(), which takes an sbuf and outputs it 2017-02-28 18:25:06 +00:00
sys Local APIC: add support for extended LVT entries found in AMD processors 2017-02-28 18:48:12 +00:00
targets Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
tests Actually fix buildworlds other than i386/amd64/sparc64 after r313992 2017-02-23 04:26:17 +00:00
tools Fill MK_LIBTHR as far as lib/libthr is concerned 2017-02-25 03:44:51 +00:00
usr.bin dc(1): Merge minor changes from OpenBSD. 2017-02-26 22:17:06 +00:00
usr.sbin Remove SVR4 (System V Release 4) binary compatibility support. 2017-02-28 05:14:42 +00:00
.arcconfig callsign isn't required anymore 2016-09-29 06:19:45 +00:00
.arclint
COPYRIGHT Bump copyright year. 2016-12-31 12:41:42 +00:00
LOCKS
MAINTAINERS Remove myself from kern_timeout.c yeah! 2016-07-27 20:37:32 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc1 Document why cat is a bootstrap tool. 2017-02-21 18:49:30 +00:00
Makefile.libcompat Use cross-NM (XNM) in compat32 build 2017-01-27 03:43:18 +00:00
ObsoleteFiles.inc Remove SVR4 (System V Release 4) binary compatibility support. 2017-02-28 05:14:42 +00:00
README
UPDATING add UPDATING entry for r314048, re-work of .zfs code 2017-02-21 17:54:38 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html