Commit Graph

268541 Commits

Author SHA1 Message Date
jmcneill
4ed488bfc3 Finish the job 2019-06-22 19:47:27 +00:00
jmcneill
0514b24577 Use bus_dmatag_subregion to get a 32-bit tag 2019-06-22 19:35:40 +00:00
jakllsch
088c49a92b Restore previous range of aa_dmat.
Should fix ahcisata_acpi on OverDrive 1000, which has no DRAM below 4GiB.
2019-06-22 17:57:10 +00:00
pgoyette
ca4502da41 Set WARNS=3 - signed-vs-unsigned integer compare 2019-06-22 17:57:01 +00:00
pgoyette
ec5b4915f3 Add the if_media_80 source file to the module. The module's initialization
code was already updated.
2019-06-22 17:37:45 +00:00
hannken
8d122c4997 Bring back two lines deleted by accident. From Kamil Rytarowski. 2019-06-22 14:40:33 +00:00
hannken
aa8b5122a1 Update tools/compat/configure for new path of "rpc/types.h".
Remove intermediate patch from rpcgen/Makefile.

Patch from Nick Hudson, errors from me.
2019-06-22 13:42:53 +00:00
maxv
d894e04d60 Revamp the TPM driver
* Fix several bugs, and clean up.
 * Drop the "legacy" interface, it relied on an undocumented global
   variable that was never initialized. It likely had never been tested
   either, so good riddance.
 * Add support for TPM 2.0 chips via ACPI. For these we use the TIS1.2
   interface, same as TPM 1.2.
 * Provide an ioctl to fetch TPM information from the driver.

Tested on a Lenovo desktop with ACPI-TPM2.0, an HP laptop ACPI-TPM2.0, a
Dell laptop with ISA-TPM1.2.
2019-06-22 12:57:40 +00:00
sevan
5aa91c9ffd EAV, IRDP 2019-06-22 12:45:55 +00:00
sevan
c7d5ed9eaf WRR 2019-06-22 12:45:28 +00:00
maxv
0e3f83ef93 Dump TPM2. 2019-06-22 12:39:40 +00:00
mrg
e914d846e5 wrap axen_iff() with axen_iff_locked().
add a missing lock exit in error path.
2019-06-22 10:58:39 +00:00
mrg
7c1f464615 mark this driver MPSAFE for usb tasks and pipes, if(4), and callouts.
remove remaining redundant spl calls.
2019-06-22 09:53:56 +00:00
hannken
1a12b22735 Sync with upstream r315983.
FreeBSD splits "zfs_context.h" into:
  "lib/libzpool/common/sys/zfs_context.h" for user space
  "uts/common/fs/zfs/sys/zfs_context.h" for kernel space

Do the same here, move and sync "sys/sys/zfs_context.h" to
"dist/lib/libzpool/common/sys/zfs_context.h" and
"dist/uts/common/fs/zfs/sys/zfs_context.h".

Change "Makefile.zfs" to search includes from "dist/lib"
before "dist/uts" so we get the right include file.

Adapt "usr.sbin/fstyp/Makefile" to get the right include file.
2019-06-22 09:48:39 +00:00
mrg
ed56fb496f re-apply rev 1.44 with a minor bug fix in axen_tick_task().
it introduced a problem when there wasn't a reasonaly constant
stream of incoming packets, and i had a 'nttcp' running against
my test machine constantly, avoiding the bug.
2019-06-22 08:09:08 +00:00
isaki
8931eb3bca Add missing SETBELL() for WSKBDIO_COMPLEXBELL.
wskbd_bell_data structure has value fields and operation bitmask field.
"xset b * * 0" doesn't touch period field (and doesn't initialized it)
and doesn't set DOPERIOD flag (this means that period field should not
be used).  SETBELL() handles this situation appropliately.
This happened during copying wsbell.c from wskbd.c.
Fix PR xsrc/54245.
2019-06-22 08:03:01 +00:00
skrll
aa74d5736f Rename watchdog -> bcmpmwdog and sdhost to bcmsdhost 2019-06-22 07:58:55 +00:00
mrg
d1e6396a98 revert the previous.
i'm fairly postive i tested it, as i tested enabing mpsafe version
on top of this successfully.  however, something happened mid-ssh
with a kernel with mpsafe and my session hung, and since then i've
been unable to boot kernels with the previous revision applied.
2019-06-22 07:17:13 +00:00
maxv
f788e64db5 Fix buffer overflow. Triggerable by plugging a specially-crafted USB key
in the machine (the kernel automatically tries to parse its GPT header).
The check could maybe be appeased to allow bigger sizes, but we've never
done that, so I'm leaving it as-is.
2019-06-22 06:45:46 +00:00
mrg
44e76680c9 s/Static/static/ 2019-06-22 04:45:04 +00:00
mrg
2ec2d544e1 move the software-only parts of cdce(4) out of if_cdcereg.h.
(if_cdcereg.h probably can go entirely.  it's almost empty,
but at least these definitions have some relationship with
the hardware bits.)
2019-06-22 04:35:46 +00:00
sevan
9a98dd643a BFD COA CST DS DSCP IST MAB MCLAG TDR 2019-06-21 22:04:26 +00:00
christos
72ea5dba1a refactor disk ioctl stuff to make it smaller. 2019-06-21 21:54:39 +00:00
kamil
e81678c69d Sync (c) note in GDB:sh-nbsd-tdep.c with upstream
This file is now GPLv3+, not GPLv2+.
2019-06-21 19:20:18 +00:00
martin
c1762e2d7a Use the raw partition for installboot, not the root partition. 2019-06-21 16:57:12 +00:00
pgoyette
df08af8af4 Replicate change in .en as requested by martin@ 2019-06-21 15:59:14 +00:00
pgoyette
a4ce0c87c9 Typo - distinguish has a 'g' not a 'q' 2019-06-21 15:53:16 +00:00
pgoyette
149c8d8910 Typos, grammar. 2019-06-21 15:52:05 +00:00
kamil
da062e4b24 Restore ability to create regular files with mknod(2)
This behavior is requested in ATF tests.
2019-06-21 14:58:32 +00:00
kamil
8ce1514e5e Instruct tools/rpcgen about new path for rpc headers
Fixes build on Gentoo.
2019-06-21 14:56:39 +00:00
mrg
c2c0fad7d4 fix issues seen with transfers being reused before they are finished
being used.

adapt locking to the modern world.  some what inspired by if_smsc.c:
- add locks for softc, rx and tx
- add safe detach support
- safe detach vs mii lock requires 2 methods to lock the MII lock,
- check axen_dying and new axen_stopping more often
- consolidate checks to reduce the number of error paths that need
  to release a resource
- move axen_watchdog() out of if_timer into the tick task to
  prepare for MPSAFEification

TODO:
- remove spl usage
- enable mpsafe

special thanks to skrll and mlelstv for clearing up various
confusion and providing examples.
2019-06-21 14:19:46 +00:00
hannken
9c87a63a8c Disable assertion: illumos 7793 ztest fails assertion in dmu_tx_willuse_space 2019-06-21 10:59:50 +00:00
isaki
b9ac8c833e Use hztoms() instead of incorrect calculation.
This makes spkr work on HZ=1024 like alpha.
2019-06-21 09:34:30 +00:00
maya
874624a318 Update to working instructions.
thx mrg for the build_install suggestion.
2019-06-21 07:05:02 +00:00
kamil
bd08c835ff Revert previous
There is fallout in gdb that will be investigated before relanding this.
2019-06-21 04:28:12 +00:00
kamil
14d51c2ac0 Enhance reliability of ptrace(2) in a debuggee with multiple LWPs
Stop competing between threads which one emits event signal quicker and
overwriting the signal from another thread.

This fixes missed in action signals.

NetBSD truss can now report reliably all TRAP_SCE/SCX/etc events without
reports of missed ones.

This was one of the reasons why debuggee with multiple threads misbehaved
under a debugger.
2019-06-21 04:02:57 +00:00
jnemeth
e003a26f4c Add a third argument to the "cfn" function that is an argument to
gpt_change_ent().  The purpose of the third argument is to specify
whether the entry to be changed is a primary GPT entry or a secondary
GPT entry.  It is assumed that a secondary GPT entry will always
follow a corresponding primary entry.

This is in preparation for an upcoming change that will require it.
2019-06-21 02:14:59 +00:00
nonaka
7ab6c1dfd5 PR/54147: Increase BOOTINFO_MAXSIZE to 16Kib.
Some systems require a larger bootinfo size for memory descriptors.
2019-06-21 02:08:55 +00:00
kamil
21a72dea25 Eliminate PS_NOTIFYSTOP remnants from the kernel
This flag used to be useful in /proc (BSD4.4-style) debugging semantics.
Traced child events were notified without signaling the parent.

This property was removed in NetBSD-8.0 and had no users.

This change simplifies the signal code, removing dead branches.

NFCI
2019-06-21 01:03:51 +00:00
martin
35a9731f3d Avoid creating a (tiny) swap partition by default on overall too small
disks.
2019-06-20 19:26:41 +00:00
martin
c063bdda5f Avoid architecture specific ifdefs in main code, move to MD macros. 2019-06-20 18:32:32 +00:00
maxv
61683f02cb Add KASLR support in UEFI. 2019-06-20 17:33:30 +00:00
christos
5db0dcccf9 Add error checking for previous memory allocation failure. 2019-06-20 17:12:37 +00:00
christos
cd3ba776bd PR/54314: Frank Kardel: LOCKDEBUG: Mutex error: assert_sleepable,70:
spin lock held when loading NPF
2019-06-20 17:08:52 +00:00
martin
671c5ec58b Disklabel partitions may start at the beginning of the disk (or the
NetBSD partition).
2019-06-20 16:57:25 +00:00
christos
9847dbabc8 remove format warning. 2019-06-20 15:59:40 +00:00
christos
b43b048451 use proper format strings in replace(). 2019-06-20 15:58:59 +00:00
christos
59ed32779d add more printflikes() (rin) and remove unused function.
cVS: ----------------------------------------------------------------------
2019-06-20 15:56:41 +00:00
christos
71eaa79905 mount is an array and can't be NULL (rin) 2019-06-20 15:52:07 +00:00
christos
c9f05d422a devdev is an array, remove NULL check (rin) 2019-06-20 15:49:20 +00:00