Commit Graph

268427 Commits

Author SHA1 Message Date
msaitoh a52a92b753 Sync with FreeBSD ix-3.3.8 part 2:
- Add missing XFI support into ixgbe_get_link_capabilities_X550em().
2019-06-27 06:00:11 +00:00
msaitoh bec7d0d607 Sync with FreeBSD ix-3.3.8 part 1. No functional change in this part:
- Move ixgbe_toggle_txdctl() to ixgbe_common.c and modify a bit.
   No functional change because this function is currently used for SR-IOV
   and it's not used in NetBSD.
 - Some modification to match the latest netmap API.
 - Modify ixgbe_hic_unlocked(). No functional change because neither
   IXGBE_HOST_INTERFACE_APPLY_UPDATE_CMD(0x38) nor
   IXGBE_HOST_INTERFACE_SHADOW_RAM_READ_CMD(0x31) are used.
 - Add ixgbe_clear_mbx(). No functional change because this function is not
   used yet.
 - Add some not-yet-used register definitions.
 - Whitespace fixes.
2019-06-27 05:55:40 +00:00
christos 4aec02649d This actually needs the netbsd32 stuff present since the struct for the
32 bit syscall has a netbsd32_voidp... This header is used also for
compat/common, so just revert (helped us to fix a bug though :-)
2019-06-27 02:44:54 +00:00
christos 11c2d40176 Include the right stuff so compat_netbsd32_50 compiles. 2019-06-27 02:36:27 +00:00
christos d3bd1955f1 Although this is correct, I will let maxv commit it. Still waiting. 2019-06-27 02:00:30 +00:00
christos a1f8bc5788 don't cast void * 2019-06-27 01:59:30 +00:00
christos 4900847b4b Always include the 32 bit structure and definitions on _LP64 regardless
of compat32 being on or off, because we want the headers to work when
compiling modular kernels. Of course the 32 bit structs do not make sense
on platforms that don't have 32 bit modes (alpha), but we don't have
a define for that and it does not hurt.
2019-06-27 01:58:49 +00:00
jmcneill 2a625338e2 Remove unused field 2019-06-26 23:10:42 +00:00
jmcneill b15818ba37 Change how we detect secure vs non-secure access.
Write 0xff to ICC_PMR_EL1 and read back how many bits are implemented,
then do the same with a GICD_IPRIORITYR<n> priority value field.

If the values differ, assume we have a shifted view of IPRIORITYR.
2019-06-26 23:00:09 +00:00
khorben b326a3f950 Fix typos
Some were found by OpenBSD.
2019-06-26 22:58:58 +00:00
blymn edb52aabb2 Enable beep test, return is correct. 2019-06-26 22:18:44 +00:00
christos e505c20dc2 make this compile again 2019-06-26 22:04:12 +00:00
maxv a7232de6b1 Remove useless debugging messages which achieved nothing but hiding bugs. 2019-06-26 20:28:59 +00:00
roy dd4eddae3e Note import of dhcpcd-7.2.3 2019-06-26 17:50:22 +00:00
roy 19bf281687 Sync 2019-06-26 17:47:47 +00:00
roy e33cd9bfdb Import dhcpcd-7.2.3 with the following changes:
*  BSD: Check RTM lengths incase of kernel issues
  *  DHCP6: Don't stop even when last router goes away
  *  DHCP6: Fix inform from RA
  *  hostname: Fix short hostname check
2019-06-26 17:46:08 +00:00
christos ca46a5af79 Conform to RFC 3128 by dropping TCP fragments with offset = 1.
In addition to dropping these fragments, add a DTrace probe to allow
for more detailed monitoring and diagnosis if required.
From FreeBSD r349399, reported vy Cy Schubert
2019-06-26 15:31:17 +00:00
christos 8d2b073222 Remove fd_local, it is not used, from FreeBSD r349401, reported by Cy Schubert 2019-06-26 15:26:57 +00:00
christos 706e0f551f Remove redundant off != 0 check, from FreeBSD r349400, reported by Cy Schubert 2019-06-26 15:21:52 +00:00
wiz cb2bfe58e7 Use Vt for variable types. New sentence, new line. Add a missing ')'.
Add/remove some articles or other missing words.
2019-06-26 13:31:48 +00:00
mgorny c2ad96ff63 Implement PT_GETXSTATE and PT_SETXSTATE
Introduce two new ptrace() requests: PT_GETXSTATE and PT_SETXSTATE,
that provide access to the extended (and extensible) set of FPU
registers on amd64 and i386.  At the moment, this covers AVX (YMM)
and AVX-512 (ZMM, opmask) registers.  It can be easily extended
to cover further register types without breaking backwards
compatibility.

PT_GETXSTATE issues the XSAVE instruction with all kernel-supported
extended components enabled.  The data is copied into 'struct xstate'
(which -- unlike the XSAVE area itself -- has stable format
and offsets).

PT_SETXSTATE issues the XRSTOR instruction to restore the register
values from user-provided 'struct xstate'.  The function replaces only
the specific XSAVE components that are listed in 'xs_rfbm' field,
making it possible to issue partial updates.

Both syscalls take a 'struct iovec' pointer rather than a direct
argument.  This requires the caller to explicitly specify the buffer
size.  As a result, existing code will continue to work correctly
when the structure is extended (performing partial reads/updates).
2019-06-26 12:30:12 +00:00
mgorny 17a629e45a Fetch XSAVE area component offsets and sizes when initializing x86 CPU
Introduce two new arrays, x86_xsave_offsets and x86_xsave_sizes,
and initialize them with XSAVE area component offsets and sizes queried
via CPUID.  This will be needed to implement getters and setters for
additional register types.

While at it, add XSAVE_* constants corresponding to specific XSAVE
components.
2019-06-26 12:29:00 +00:00
isaki 8d98281677 Fix return value. fo_poll expects revents, not errno. 2019-06-26 12:21:40 +00:00
isaki a5c532b1e1 Style fixes. No functional changes intended.
- Rename some functions for consistency.
- Rearrange some functions for readability.
- Unify to struct pad_softc.
2019-06-26 11:53:15 +00:00
hannken 544f1cdcc6 import new CDDL dtrace and ZFS code from FreeBSD svn r315983
Add files missing from the initial import.
2019-06-26 11:47:53 +00:00
knakahara 8c16c05b80 Fix updating "Multiple Message Enable" field for MSI multiple vectors. Pointed out by jmcneill@n.o, thanks.
I tested ahcisata for MSI single vector regression.
2019-06-26 10:20:06 +00:00
isaki 49f5ee4e9a Improve debug message and remove duplicated one. 2019-06-26 07:47:25 +00:00
martin 0ce0a2fa8f Bump ramdisk slightly (non MKREPRO builds with long paths fail otherwise) 2019-06-26 07:33:19 +00:00
isaki c5b3f4fee7 Improve audiobell (and interfaces with audio).
- Generate pseudo sine wave if possible.  It may improve timbre.
  If it cannot represent a sine wave, it falls back to a triangular
  wave or a rectangular wave.
- Volume adjustment.
- Calculate playback frequency based on mixer frequency.
  Now audiobellopen() initializes playback parameters other than
  sample_rate, and new audiobellsetrate() sets sample_rate.
2019-06-26 06:57:45 +00:00
pgoyette fa230c220f Similar to changes made for x86, allow for the boot-loader to auto-push
a list of modules for file-system support.  This allows, for example,
booting from an ext2fs file-system when the kernel has no built-in ufs
or ext2fs modules.

XXX Untested, as I have no sandpoint hardware.  I'd appreciate it if
XXX someone with hardware can build and test.
2019-06-26 00:54:04 +00:00
christos b68b72d797 whitespace around operators 2019-06-26 00:30:39 +00:00
jmcneill 8aa946ff63 Honour _CRS mem ranges and translation offsets instead of assuming 1:1
mappings. Tested on Overdrive 1000.
2019-06-25 22:23:39 +00:00
blymn 6e08cf3636 Fixed mvscanw test but leave disabled for the moment, the return for
mvscanw is incorrect in libcurses, we need a major lib version bump
to correct it.
2019-06-25 22:19:29 +00:00
christos 286517a8d8 Fail if getcwd fails. Pointed out by maxv@ 2019-06-25 21:32:58 +00:00
skrll 58220a54aa s/cpulwp/curlwp/ 2019-06-25 21:26:04 +00:00
joerg 85722e51b9 Do the fmtcheck for both message lookups to satisfy format string
literal checks.
2019-06-25 21:09:33 +00:00
wiz 79f6debed4 Fix word (direct -> directory) in comment. 2019-06-25 19:47:35 +00:00
christos 3879522092 add a comment explaining what this does. 2019-06-25 18:06:29 +00:00
maxv abb1684df1 Fix buffer overflow. It seems that some people need to go back to the
basics of C programming.

Reported-by: syzbot+8665827f389a9fac5cc9@syzkaller.appspotmail.com
2019-06-25 16:58:02 +00:00
rjs 8e33725173 Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
martin 787f237e5b Limit maximum owner name to appease gcc 2019-06-25 14:52:55 +00:00
isaki 4849d9f77b Put the lowered mixing volume back when all playback tracks are closed.
TODO: about long life descriptor.
2019-06-25 13:07:48 +00:00
msaitoh b801416bbd Simplify "LIST_HEAD();" to make the code more understandable.
No functional change.
2019-06-25 12:30:50 +00:00
mrg 316057bc1a move a .WAIT such that it helps all the target code below,
not just radeon.  should fix build issues reported:

AArch64BaseInfo.h:297:12: fatal error:
AArch64GenSystemOperands.inc: No such file or directory
2019-06-25 10:30:29 +00:00
martin ab653b0117 Assert that the label data is valid before invoking disklabel(8) 2019-06-25 07:14:45 +00:00
jnemeth a1a4749f8b note new gpt(8) uuid subcommand 2019-06-25 05:04:35 +00:00
jnemeth 7d442200ff Add an "uuid" command to generate a new UUID for a portion. The
primary intention is for use for after cloning disks to prevent
collisions.
2019-06-25 04:53:40 +00:00
jnemeth acc2b630b1 adjust gpt_uuid_generate() to accept gpt==NULL 2019-06-25 04:25:11 +00:00
jnemeth 46e7349176 Add gpt_change_hdr() similar to gpt_change_ent() for changing
arbitrary header fields.
2019-06-25 03:42:45 +00:00
pgoyette 410c8e26a9 Belated bump to account for splitting the ufs stuff out of the ffs
module, and making ext2fs and ffs depend on ufs.

Welcome to 8.99.48
2019-06-25 03:41:05 +00:00