Commit Graph

276204 Commits

Author SHA1 Message Date
jmcneill
f0c35b7170 Add acpiacad, acpibat, acpifan, acpitz 2020-04-25 22:08:04 +00:00
jmcneill
47afb6f215 Enable HW FIFO 2020-04-25 21:34:26 +00:00
jmcneill
2ba18c119a plcom_common_putc: do not wait for FIFO to train after writing data 2020-04-25 21:34:08 +00:00
jdolecek
f64904db72 parse indirect_op using appropriate 32/64-bit access types, this fixes
the BLKIF_OP_INDIRECT handling for 32-bit DomU running against 64-bit Dom0,
problem reported and fix tested by Manuel

make sure to use the provided indirect_op when reporting back errors
2020-04-25 20:05:25 +00:00
joerg
db8d9d67e0 Fix misindentations in the flex skeleton triggered by dtrace's dt_lex.l.
Upstream committed as a631f5da8d4fd60fbde7b06bcf43bc9a155c27d5
2020-04-25 18:56:26 +00:00
christos
3b58d8437a - Percent on the rhs is special only if the lhs has one too.
- If the rhs does not have percent, but the lhs has, the result is the rhs
This behavior matches gmake
2020-04-25 18:20:57 +00:00
thorpej
8b5b320edf Take the ASSERT_SLEEPABLE() out of threadpool_cancel_job() and add a
comment explaining why we can't make that assertion there.
2020-04-25 17:43:23 +00:00
bouyer
1d1fb2e8a8 Disable -g, which got enabled by mistake in the bouyer-xenpvh merge 2020-04-25 16:10:06 +00:00
bouyer
224cc4e632 Add /usr/include/xen/intrdefs.h to sets
Add xen to KLINKFILES for amd64/i386
2020-04-25 15:46:59 +00:00
bouyer
70195d9f2a Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor
2020-04-25 15:42:14 +00:00
bouyer
c24c993fe4 Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor
2020-04-25 15:26:16 +00:00
wiz
9f6b6bc85a Use more markup. 2020-04-25 13:51:04 +00:00
simonb
e1f3f60978 Add uxrcom. 2020-04-25 12:41:57 +00:00
simonb
04bba0a051 Fix gcc uninitialised variable warning. 2020-04-25 12:39:15 +00:00
kre
9d0d79c629 Update to tzdata2020a (new zone file America/Nuuk)
XXX pullup -8 -9
2020-04-25 12:18:47 +00:00
kre
afbe6d22b6 Merge tzdata2020a 2020-04-25 12:17:17 +00:00
kre
441723b301 Import tzdata2020a from ftp://ftp.iana.org/tz/releases/tzdata2020a.tar.gz
Summary of changes in tzdata2020a (2020-04-23 16:03:47 -0700):

    Morocco resumes summer time on 2020-05-31, not 2020-05-24.
    Canada's Yukon advanced to -07 year-round on 2020-03-08 (summer time
      will not end this year)..
    America/Nuuk renamed from America/Godthab (both names now exist).
2020-04-25 12:16:58 +00:00
jdolecek
3d852e372d use m_defrag() instead of local code now that it returns single mbuf 2020-04-25 11:33:28 +00:00
simonb
d8e1fd5fbe Whitespace nit. 2020-04-25 11:12:39 +00:00
simonb
48c051401b Document the default values for options in a way that hopefully makes
much more sense.
2020-04-25 11:11:33 +00:00
jdolecek
f7c7ba6fd9 in m_defrag() must copy data elsewhere before adding cluster, the
data part of mbuf gets reused and hence overwritten by extbuf
2020-04-25 11:03:04 +00:00
simonb
1051ded1d9 Document the "database" configuration option. 2020-04-25 10:56:53 +00:00
jmcneill
691963c205 Add missing receive error status bit definitions, from Robert Sprowson in
PR# kern/55199
2020-04-25 10:21:41 +00:00
simonb
e51f2a44d4 Little clean up: use getopts and don't use ``. Suggested by kre@. 2020-04-25 10:06:42 +00:00
skrll
50809d872c Fix KASSERT that has been incorrect since revision 1.85 from 10 years
ago.
2020-04-25 08:02:39 +00:00
mlelstv
cab938f37c we use kcondvars, we need to include the header 2020-04-25 07:23:21 +00:00
maxv
26cfc3f122 Switch to the new PTE naming. The old naming is now unused, remove it. 2020-04-25 05:17:16 +00:00
thorpej
e9bf4cf256 Rather than creating a kthread-per-channel, use a threadpool and a
threadpool-job-per-channel for the in-thread-context work that needs
to be done (which is rare).

On one of my test systems, this results in the total number of LWPs
after multi-user boot dropping from 116 to 78.
2020-04-25 00:07:27 +00:00
ad
e2a03ec54a On attach figure out how long a single read of the counter register takes
and use that for the adjustment in hpet_delay().
2020-04-24 23:29:17 +00:00
jdolecek
ce1c510bb2 add KASSERT() that the while data buffer in a mbuf or the mbuf
cluster fits within the same page

pools actually never return items whose memory cross page boundary for item
sizes smaller than PAGE_SIZE
2020-04-24 22:50:55 +00:00
ad
6dfea3c27b BUS_SPACE_MAP_PREFETCHABLE yields a write combining region on x86 and that's
not what I intended.. BUS_SPACE_MAP_CACHEABLE is enough.
2020-04-24 22:31:35 +00:00
ad
6e5d662f34 On attach figure out how long a single read of the counter register takes
and use that for the adjustment in hpet_delay().
2020-04-24 22:25:07 +00:00
jdolecek
7c9767af94 change m_defrag() to coalesce the chain to single mbuf if it's short enough
and first mbuf doesn't use external storage

most fragmented packets end up with first short mbuf containing
frame + protocol header only, and second mbuf containing the data;
m_defrag() previously always returned chain of at least two mbufs,
now it should actually return all data in single mbuf for typical
mbuf chain with length < MCLBYTES
2020-04-24 22:07:12 +00:00
ad
18391da5bf ubc_alloc_direct(): for a write make sure pages are always marked dirty
because there's no managed mapping.
2020-04-24 19:47:03 +00:00
christos
31b040f40e new openssl 2020-04-24 19:38:10 +00:00
christos
cd7cff00f7 merge conflicts 2020-04-24 19:37:09 +00:00
christos
a7640a27fb Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
*) Fixed segmentation fault in SSL_check_chain()
     Server or client applications that call the SSL_check_chain() function
     during or after a TLS 1.3 handshake may crash due to a NULL pointer
     dereference as a result of incorrect handling of the
     "signature_algorithms_cert" TLS extension. The crash occurs if an invalid
     or unrecognised signature algorithm is received from the peer. This could
     be exploited by a malicious peer in a Denial of Service attack.
     (CVE-2020-1967)
     [Benjamin Kaduk]

  *) Added AES consttime code for no-asm configurations
     an optional constant time support for AES was added
     when building openssl for no-asm.
     Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
     Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
     At this time this feature is by default disabled.
     It will be enabled by default in 3.0.
     [Bernd Edlinger]
2020-04-24 19:34:15 +00:00
jakllsch
f39ac10042 Fill in .pr_usrreqs for SOCK_SEQPACKET and SOCK_STREAM variants of SCTP too.
This should allow these socket types of SCTP to operate on IPv6 family
sockets, as .pr_usrreqs must not be NULL for socreate() to succeed.
2020-04-24 17:36:55 +00:00
maxv
3eb99b2ae3 Give the ldt a fixed size of one page (512 slots), and drop the variable-
sized mechanism that was too complex.

This fixes a race between USER_LDT and SVS: during context switches, the
way SVS installs the new ldt relies on the ldt pointer AND the ldt size,
but both cannot be accessed atomically at the same time.
2020-04-24 16:27:27 +00:00
kre
0bcbd6c97f ATF runs shell script tests with "sh -e" (WHY???)
Compensate for that by adding an explicit test to a command so
-e will not kill the shell when the command (expectedly) fails.

Previously this was saved by /bin/sh disabling -e in command subs.
2020-04-24 14:29:19 +00:00
jdolecek
642bc4c72b bump date 2020-04-24 13:54:56 +00:00
jdolecek
09a2b15c05 actually MBUFTRACE does splvm(), kpreempt_disable()/enable() and percpu,
this has non-slight overhead - amend documentation to stop claiming
the overhead is slight

adresses PR port-xen/50290
2020-04-24 13:47:50 +00:00
thorpej
fde1f7df0e lwp0.l_lid needs to be 0. 2020-04-24 13:34:47 +00:00
rhialto
95d28f6283 For usb keyboards with encoding *.swapctrlcaps, keep KS_Cmd1 on the same
key as KS_Control_L. This brings them in line with wskbdmap_mfii.c.
2020-04-24 13:29:46 +00:00
jmcneill
6f0a553f62 mcx: sync with OpenBSD sys/dev/pci/if_mcx.c r1.44
1.44:
Fix typo which could lead into a double free

1.43:
Commands that create objects return a 24 bit object ID, so mask off the
high 8 bits of the value we extract, in case the firmware leaves junk there.
Hrvoje Popovski has seen this with newer firmware on a ConnectX 5 card,
which now works properly.

1.42:
Increase the completion queue size to prevent overflow.  Under reasonably
unlikely circumstances - lots of single-fragment packets being sent, a
significant number of packets being received, while the interrupt handler
was unable to process the completion queue - the completion queue could
overflow, which would result in the interface locking up.

1.41:
Check if we've reached the end of the current mailbox before writing past
the end of it, rather than after.  Now we can actually allocate queues
big enough to need multiple mailboxes.

1.40:
Don't call mcx_intr() from mcx_cmdq_poll(); this was a leftover from early
development that I forgot about, but turns out to be a potential race with
the actual interrupt handler.

1.39:
fix previous: use the correct offset for sq/rq creation, and don't
reset the mbox counter to 0 after calculating it.

1.38:
Add a helper function for writing physical addresses for queues into
command queue mailboxes, and use this for all queue setup commands.
Previously we just assumed the addresses would fit in the first mailbox,
which is currently true but may not be for much longer.

1.37:
(skipped)

1.36:
The event queue consumer counter also needs to be unsigned like the others.

1.35:
try to make if_baudrate look plausible.
this updates the eth proto capability map so it records the baudrate
against the different link types and their media, and then reads
it when the link state changes.

1.34:
(skipped)
2020-04-24 12:58:42 +00:00
macallan
640cb85d9e add sudden motion sensor 'driver'. 2020-04-24 12:40:25 +00:00
macallan
b8f219c746 a very preliminary driver for the acclerometer found in later *Books
register definitions from OpenBSD
2020-04-24 12:38:31 +00:00
kamil
bac29421d5 Reduce assumptions about LWP numbers 2020-04-24 12:17:45 +00:00
msaitoh
9debaee445 - AMD CPUID Fn8000_000a %edx bit 20 is "SPEC_CTRL".
- Add some bit definitions of AMD's CPUID Fn8000_001f Encrypted Memory
  features.
2020-04-24 09:49:05 +00:00
mrg
d37326b41b fetch properties in attach rather than every re-init.
this avoids a rwlock while spinlock held problem likely introduced
with MII locking rework, as fetching a property takes an rwlock,
and prior to the rework, only kernel lock would have been held.


ok skrll@.
2020-04-24 09:29:26 +00:00