freebsd kernel with SKQ
Go to file
Warner Losh e64f3dee49 Work around devices which return all zeros for reads of existing MSI-X
table VCTRL registers.

Unconditionally program the MSI-X vector control Mask field for MSI-X
table entries without regarud for Mask's previous value. Some devices
return all zeros on reads of the VCTRL registers, which would cause us
to skip disabling interrupts. This fixes the Samsung SM961/PM961 SSDs
which are return zero starting from offset 0x3084 within the memory
region specified by BAR0, even when they are active MSI-X vectors.

The Illumos kernel writes these unconditionally to 0 or 1. However,
section 6.8.2.9 of the PCI Local Bus 3.0 spec (dated Feb 3, 2004)
states for bits 31::01:
	After reset, the state of these bits must be 0. However, for
	potential future use, software must preserve the value of
	these reserved bits when modifying the value of other Vector
	Control bits. If software modifies the value of these reserved
	bits, the result is undefined."
so we always set or clear the Mask bit, but otherwise preserves the
old value.

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211713
Reviewed By: imp, jhb
Submitted by: Ka Ho Ng
MFC After: 1 week
Differential Revision: https://reviews.freebsd.org/D20873
2019-07-08 19:38:49 +00:00
bin Fix .depend files to work for build tools. 2019-06-15 17:08:13 +00:00
cddl DTrace: add a top level makefile to the new test suit 2019-06-09 22:45:07 +00:00
contrib Upgrade our copies of clang, llvm, lld, lldb, compiler-rt, libc++, 2019-07-06 18:02:29 +00:00
crypto Complete LOCAL_PEERCRED support. Cache pid of the remote process in the 2019-05-30 14:24:26 +00:00
etc Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
gnu powerpc: Transition to Secure-PLT, like most other OSs (Toolchain part) 2019-06-25 02:35:22 +00:00
include Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
kerberos5 Fix generation of krb5-config with LC_CTYPE=*.UTF-8 2019-07-01 11:47:45 +00:00
lib Document atomicity for read(2) and write(2). 2019-07-06 20:31:37 +00:00
libexec Fix build race when building rtld 2019-07-02 22:11:07 +00:00
release picobsd: also exclude .git where we exclude .svn today 2019-06-27 13:31:55 +00:00
rescue
sbin Add a new "untrusted" option to the mount command. Its purpose 2019-07-01 23:22:26 +00:00
secure Merge OpenSSL 1.1.1c. 2019-05-28 21:54:12 +00:00
share Consider *clean targets as non-build targets as well. 2019-07-04 14:51:44 +00:00
stand efihttp: mac and err can be used uninitialized 2019-07-02 20:32:35 +00:00
sys Work around devices which return all zeros for reads of existing MSI-X 2019-07-08 19:38:49 +00:00
targets Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
tests Skip sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy 2019-06-29 12:19:57 +00:00
tools Save the last callout function executed on each CPU 2019-07-03 19:22:44 +00:00
usr.bin Add implicit PROT_MAX() knob to proccontrol(1). 2019-07-02 19:12:02 +00:00
usr.sbin Eliminate spurious periodic.daily error message for rotating accounting log. 2019-07-07 17:15:45 +00:00
.arcconfig
.arclint
.cirrus.yml Update vendor/libarchive/dist to git d6d3799d6b309593f271c4c319dfba92efc95772 2019-06-27 13:37:34 +00:00
.clang-format Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore Vendor import of Unbound 1.9.2. 2019-06-30 15:01:11 +00:00
COPYRIGHT
LOCKS
MAINTAINERS Update/reformat maintainer entries that I am a part of 2019-04-29 18:48:43 +00:00
Makefile Vendor import bzip2 -- upgrade to version 1.0.7. 2019-06-28 01:54:07 +00:00
Makefile.inc1 Add head(1) to native-xtools so that it can be used in qemu-user jails 2019-06-20 13:24:58 +00:00
Makefile.libcompat Build lib32 libl. The library is built from usr.bin/lex/lib. It would be 2019-06-29 17:01:56 +00:00
Makefile.sys.inc
ObsoleteFiles.inc Fix path of lib32 libcasper. 2019-07-03 20:52:10 +00:00
README Vendor import of less v551. 2019-06-29 04:39:01 +00:00
README.md Vendor import of Unbound 1.9.2. 2019-06-30 15:01:11 +00:00
UPDATING Fixup UPDATING text for r349253 2019-06-21 00:33:45 +00:00

FreeBSD Source:

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

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

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), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

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.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

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:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html