Commit Graph

275669 Commits

Author SHA1 Message Date
ad
5e0de1ec0e Rename radix_tree_node_clean_p() to radix_tree_node_sum() and have it return
the computed sum.  Use to replace any_children_tagmask().  Simpler & faster.
2020-04-10 21:56:41 +00:00
gutteridge
c8a27b6c18 audioplay.1: generalize a reference to web browsers 2020-04-10 21:33:27 +00:00
jdolecek
1fdedfbf0b gnttab_get_status_frames frame_list is array if uint64_t values, not u_long
like gnttab_setup_table, fix to use uint64_t

fixes compilation on i386 with XEN3PAE_DOM[0U], pointed out by kre@
2020-04-10 21:03:20 +00:00
jdolecek
5a64191052 remove commented out __XEN_INTERFACE_VERSION__ option, it comes via std.xen 2020-04-10 20:56:56 +00:00
jdolecek
f802b05404 use ETHER_ADDR_LEN on one more place 2020-04-10 19:08:10 +00:00
christos
79cd6eb656 regen 2020-04-10 18:32:11 +00:00
christos
73ec163364 Fix all the random __SHIFTOUT casts by introducing an intermediate macho,
and then deleting and fixing the rest.
2020-04-10 18:32:00 +00:00
christos
df41b55bad Fix typo 2020-04-10 18:23:22 +00:00
tsutsui
edf49f7cd3 Update a link to "CLOCK-Pro" paper. 2020-04-10 18:17:56 +00:00
jdolecek
537501ecfc convert to bus_dma(9), remove now not necessary XENPVHVM redefines 2020-04-10 18:03:06 +00:00
ad
960b41883d uvmspace_exec(): set VM_MAP_DYING for the duration, so pmap_update() is not
called until the pmap has been totally cleared out after pmap_remove_all(),
or it can confuse some pmap implementations.
2020-04-10 17:26:46 +00:00
ad
83f44bb607 Remove buffer reference counting, now that it's safe to destroy b_busy after
waking any waiters.
2020-04-10 17:18:04 +00:00
ad
e0bb7e8edd - Make this needed sequence always work for condvars, by not touching the CV
again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.
2020-04-10 17:16:21 +00:00
tsutsui
4c1178c516 Drop the entry for Yasushi Yamasaki, per recent ad clause removal. 2020-04-10 17:02:33 +00:00
ad
dd8f0c8fbf Cosmetic changes 2020-04-10 16:55:40 +00:00
jdolecek
010da6cff2 add and pass dma tag to PV drivers attached to xenbus, so thay can
use bus_dmamap_load_mbuf() et.al.

due to XENPV override, _BUS_BUS_TO_PHYS() dmamap segment ds_addr
gets filled with ma, so value can be directly used for e.g. grant calls
2020-04-10 14:54:33 +00:00
bouyer
d2f1dd152b Revert, wrong branch 2020-04-10 14:35:26 +00:00
bouyer
6caa1aba41 Skip cx8_spllower patch if we're running on any form of Xen PV,
we can't handle PV interrupts with a single atomic op here.
Enable x86_patch() for Xen too.
2020-04-10 14:34:27 +00:00
plunky
7ea6ef2b6d trim extraneous return statement 2020-04-10 14:32:50 +00:00
jdolecek
abc0648b04 g/c unused xenwatch_mutex extern, and streq() 2020-04-10 12:38:40 +00:00
jdolecek
30207ba542 update comment for DIOCGCACHE (no DKCACHE_READ) 2020-04-10 11:41:04 +00:00
jdolecek
5806327a2a add support for DIOCGSTRATEGY and DIOCGCACHE
only allow DIOCCACHESYNC if open for writing, same as everything supporting
DIOCCACHESYNC
2020-04-10 10:53:02 +00:00
jdolecek
3be80bd65b allow DIOCSSTRATEGY, there is no particular reason why it should be
restricted for xbd(4)
2020-04-10 10:32:18 +00:00
jdolecek
4eccdf2d5d implement DIOCGCACHE - assume if CACHE_FLUSH is supported, write cache
is enabled

convert the sc_cache_flush flag to a feature bit field, and recognize
also barrier and persistent features; print the recognized features
on boot, and remove the warning on DIOCCACHESYNC
2020-04-10 10:30:10 +00:00
jdolecek
0bebe0a628 add KASSERT() for owned grant_lock in xengnt_get_entry() 2020-04-10 08:35:52 +00:00
jdolecek
e1b03486a1 update to __XEN_INTERFACE_VERSION__ 0x0003020a aka Xen 3.2.10
this brings grant memory v2 support:
- status separated from flags - revoking access needs just memory barrier,
  no need for expensive cmpxchg16 any more
- sub-page hypervisor copy-only grants, to be used by xennet(4)
- 64-bit frame, i.e. support for DomU RAM >16TB

the grant table is now always allocated on boot to maximum size, it's now
never grown in runtime; switch back to regular kmem_alloc()/kmem_free()

code now requires v2 support, no compatibility for grant version 1 retained -
Xen v2 support predates all currently supported Xen versions

also interface for baloon changed slightly, code updated
2020-04-09 19:26:37 +00:00
christos
af687f515a PR/55149: Kouichi Hashikawa: Get morefrag before we strip it out from off 2020-04-09 18:20:40 +00:00
skrll
42ccb07655 Fix aarch64 binutils tools build 2020-04-09 16:12:28 +00:00
bouyer
389408d50d xengnt_more_entries() can be called from interrupt context so use
kmem_intr_alloc()/free() here
2020-04-09 15:54:41 +00:00
roy
f1ba7e789f Fix dhcpcd $DEST_DIR support 2020-04-09 15:24:31 +00:00
christos
9655c24691 Refresh the superblock in memory if changing a mounted partition. 2020-04-09 14:44:38 +00:00
jdolecek
3325821ea3 move xen/conf/std.xen to i386/conf/std.xen, it's i386-specific
split off __XEN_INTERFACE_VERSION__ to new xen/conf/std.xenversion
and use from both i386/conf/std.xen and amd64/conf/stf.xen, so that
there is single place for the definition
2020-04-09 14:39:10 +00:00
skrll
d9ca2f45d1 Fix TEMPLATE_NAME for new binutils 2020-04-09 11:10:07 +00:00
jdolecek
5d1f201d5a remove check for matching ethernet address on Tx - the higher levels do this
check anyway, and the check did not handle VLANs
2020-04-09 10:57:02 +00:00
jmcneill
d462fb8d3f Stop walking MADT / GTDT subtables if we hit a header with length 0 2020-04-09 10:46:19 +00:00
skrll
4aca4be1c8 Make a comment less MIPS specific 2020-04-09 08:55:45 +00:00
jdolecek
d13990138f adjust the condition for reusing checksum context, wm_tx_offload() can
be used even for multiqueue case

enable only when the chip supports exactly one queue (same as FreeBSD) -
anything multiqueue-capable later than 82574 should work, but I don't
have the hw to test
2020-04-09 06:55:51 +00:00
skrll
6c8cdb0f7f Wrap a REALLY long line 2020-04-09 06:49:37 +00:00
skrll
d7fdb55003 Fix UVMHIST build 2020-04-09 06:47:50 +00:00
christos
e7f6bcb612 flip the comparison again 2020-04-09 02:07:01 +00:00
christos
b241bd1476 use __arraycount, and fix comparison 2020-04-09 01:55:58 +00:00
christos
343f4126b1 Add EX2 for Vortex86 SoCs (Andrius V) 2020-04-09 01:49:26 +00:00
jdolecek
0b4aefec80 add a warning in checksum offload that hardware TCP segmentation might be
slow

on I219 I observe about 35% transmit performance drop when tso4 enabled
2020-04-08 23:01:51 +00:00
jdolecek
740ee3f26c wm_tx_offload() and wm_nq_tx_offload() actually always return 0, make them
return void and remove the check for their return value
2020-04-08 21:57:24 +00:00
jdolecek
e9c41d1b81 fixup field names in previous 2020-04-08 21:56:01 +00:00
jdolecek
a1d10a8d03 actually writing always the checksum offload context descriptor
makes the hw do extra processing, avoid doing that if possible -
on my computer with I219 this results in about 2% speedup in Tx performance

change adoped from FreeBSD

XXX should be also done for multiqueue case, but I don't have hw to test it
2020-04-08 21:51:42 +00:00
pgoyette
1352bf2652 Revert previous change to use SYSCTL_SETUP since it breaks on macppc.
For some reason, the crypto module fails to link, and this results in
opencrypto sysctl failures.

Should resolve PR kern/55154
2020-04-08 15:27:18 +00:00
skrll
c5635b4d6c Simplify #ifdefs 2020-04-08 10:57:16 +00:00
skrll
1d725ebb5c Provide UVMHIST_CALLARGS 2020-04-08 07:56:34 +00:00
wiz
15604ae0df Pull in https://gcc.gnu.org/g:3d947f1f27188e3a61ba7f42399b1c348469fe13
middle-end/94479 - fix gimplification of address

    When gimplifying an address operand we may expose an indirect
    ref via DECL_VALUE_EXPR for example.  This is dealt with in the
    code already but it fails to consider that INDIRECT_REFs get
    gimplified to MEM_REFs.

    Fixed which makes the ICE observed on x86_64-netbsd go away.

    2020-04-07  Richard Biener  <rguenther@suse.de>

            PR middle-end/94479
            * gimplify.c (gimplify_addr_expr): Also consider generated
            MEM_REFs.

            * gcc.dg/torture/pr94479.c: New testcase.

Fixes -fstack-check ICE when building devel/git-base.
2020-04-08 06:49:28 +00:00