Commit Graph

263907 Commits

Author SHA1 Message Date
martin
f9e4cdb460 Retire lmcconfig here too. 2018-12-12 10:25:29 +00:00
skrll
ea54a09a90 Trailing whitespace 2018-12-12 09:55:34 +00:00
maxv
0c0c8940d2 Change the "FILES" section, in the end I don't want to commit toyvirt
and smallkern, there is little interest installing them by default,
rather they can be downloaded from www. It's better this way.

While here add NVMM(4) in "SEE ALSO".
2018-12-12 09:09:08 +00:00
msaitoh
23901b54b6 Add some code for suspend/resume:
- Rename wm_smbustopci() to wm_init_phy_workarounds_pchlan(). It will also
  called when resume.
- Call wm_phy_resetisblocked() after PHY reset in
  wm_init_phy_workarounds_pchlan() to wait for the PHY to quiesce to an
  accessible state.
- Add new wm_resume_workarounds_pchlan() function and use it in wm_resume().
  This workaround is only for PCH2 and newer.
- Don't call wm_disable_aspm() neither in wm_attach() nor in wm_resume()
  but in wm_reset().
- Do some initialization in wm_resume() when IFF_UP is NOT set.
- Don't continue when it failed to acquire semaphore in wm_ulp_disable().
- Add comment.
2018-12-12 08:49:33 +00:00
wiz
6113c007cd Sort sections. Remove superfluous El. Insert Xr. 2018-12-12 08:28:44 +00:00
maxv
25c7cc1913 Say that on x86 you also have to modload tprof_x86. 2018-12-12 08:28:19 +00:00
maxv
c94fc038b4 regen 2018-12-12 08:24:50 +00:00
maxv
1b723d2624 Add a NVMM(4) man page. 2018-12-12 08:20:53 +00:00
wiz
e21043d105 Fix reference to en(4) and remove reference to viapm(4), which does
not exist.
2018-12-12 08:12:18 +00:00
kre
6f3da39516 Add more subtests to the export and readonly built-in commands test cases.
In particular, add a readonly test to detect the bug that was just fixed...
(but there is more than that one added here).

Also, allow zsh to run more of these tests than it did, what is a builtin
command most places (including in POSIX) can be a reserved word in zsh!
2018-12-12 08:10:39 +00:00
maxv
fc2b2eb4af note kleak 2018-12-12 08:02:17 +00:00
kre
64c9a713d8 Fix a botch made in 1.70 (a bit over a week ago) where
var=foo; readonly var=new
now fails.

If var was already set, an attempt to make it readonly, and assign it
a new value at the same time, failed - the readonly flag was set too soon.

Pointed out by Martijn Dekker (thanks).

Also, while here, add a couple of comments.
2018-12-12 07:56:57 +00:00
maxv
02d7a902b5 Drop LMC-related entry from TODO.smpnet, and note removal of LMC. 2018-12-12 07:07:30 +00:00
maxv
7bc6869364 Retire the LMC driver, and its associated lmcconfig tool. LMC has been
mentioned repeatedly as a non-MP-safe driver that is hard to maintain,
and no one is taking care of it.

LMC was removed from OpenBSD three years ago, and from FreeBSD a few
months ago.
2018-12-12 07:04:05 +00:00
msaitoh
6b97a0ad63 Use DPSRCS for magic.h. OK'd by Christos. 2018-12-12 06:36:13 +00:00
maxv
1a87c65fae Remove references to "lmc" in the kernel configurations. 2018-12-12 06:29:36 +00:00
rin
e401b66b04 Document capability of TX/RX offload and environment variable
RUMP_SHMIF_CAPENABLE. Bump date.

part of PR kern/53562
2018-12-12 02:26:40 +00:00
rin
7f120f6563 Simplify logic in ip{,6}_output().
Now, we have M_CSUM_TSOv[46] bit in ifp->if_csum_flags_tx when
TSO[46] is enabled for the interface. So we can simply check
whether TSO[46] is required in a packet but missing in the
interface by (sw_csum & M_CSUM_TSOv[46]).

Note that this is a very rare case where TSO[46] is suddenly
turned off during a packet passing b/w TCP and IP.

part of PR kern/53562
OK msaitoh
2018-12-12 01:53:52 +00:00
rin
f7201ab71a Add TX/RX offload capabilities to shmif(4). They are emulated in
software by ether_sw_offload_[tr]x().

For rump kernels, if_capabilities for shmemif(4) can be specified
by environmental variable RUMP_SHMIF_CAPENABLE:

 setenv RUMP_SHMIF_CAPENABLE 0x7ff80 (all offload)
 setenv RUMP_SHMIF_CAPENABLE 0x6aa80 (all TX)
 setenv RUMP_SHMIF_CAPENABLE 0x15500 (all RX)

part of PR kern/53562
OK msaitoh
2018-12-12 01:51:32 +00:00
rin
73240bb1c3 PR kern/53562
Handle TX offload in software when a packet is sent via
bridge_output(). We can send it as is in the following
exceptional cases:

For unicast:

(1) When the destination interface is the same as source.

(2) When the destination supports all TX offload options
    specified in a packet.

For multicast/broadcast:

(3) When all the members of the bridge support the specified
    TX offload options.

For (3), add sc_csum_flags_tx flag to bridge softc, which is
logical AND b/w capabilities of TX offload options in member
interface (ifp->if_csum_flags_tx). The flag is updated when a
member is (i) added to or (ii) removed from a bridge, or (iii)
if_csum_flags_tx flag of a member interface is manipulated via
ifconfig(8).

Turn on M_CSUM_TSOv[46] bit in ifp->if_csum_flags_tx flag when
TSO[46] is enabled for that interface.

OK msaitoh thorpej
2018-12-12 01:46:47 +00:00
rin
1cfdd1e3e5 PR kern/53562
Add ether_sw_offload_[tr]x: handle TX/RX offload options in software.
Since this violates separation b/w L2 and L3/L4, new files are added
rather than having the routines in sys/net/if_ethersubr.c.

OK msaitoh thorpej
2018-12-12 01:40:20 +00:00
alnsn
a57097d054 Add missing RCSIDs. 2018-12-12 00:48:43 +00:00
jdolecek
680ea2ad4d in atabus_detach(), shutdown the channel thread only after all the
children successfully detach; this is especially important for
atapibus, which needs the thread to execute commands

fixes hang on poweroff with root on ATAPI cd(4), reported by Christoph Badura
2018-12-11 23:06:30 +00:00
sevan
0f1014292f Reword post mortem description. It tries to get the tree averages if it can. 2018-12-11 23:02:19 +00:00
martin
0173341c0a Remove stray ; to fix the build 2018-12-11 19:40:54 +00:00
alnsn
2b83cbec28 Don't exclude code from rump kernel build. 2018-12-11 19:38:42 +00:00
ryo
a04aa610b7 need to save/restore also x1. x1 is in-use as ipl. 2018-12-11 18:11:33 +00:00
maya
6ffb147286 revert previous, nouveau apparently works for some people. 2018-12-11 16:52:49 +00:00
martin
f8051546aa Avoid signed/unsigned comparision (if_mtu is uint64_t) 2018-12-11 16:45:49 +00:00
jakllsch
3f6d334ef9 restore error reporting in ucomparam() lost in 1.115 2018-12-11 14:49:27 +00:00
christos
957d655dc4 PR/53775: Havard Eidnes: bind(2) may inaccurately return EADDRNOTAVAIL,
it should return EADDRINUSE.
2018-12-11 14:38:45 +00:00
maya
16a0e603f3 comment out nouveau related lines in INSTALL kernels too 2018-12-11 14:04:15 +00:00
rin
4d35b57ee6 Determine the frame size as a function of MTU.
XXX Jumbo frame is not yet supported.
2018-12-11 13:35:02 +00:00
kre
e3847ee4a9 PR standards/42829
Implement parameter and arithmetic expansion of $ENV
before using it as the name of a file from which to
read startup commands for the shell.   This continues
to happen for all interactive shells, and non-interactive
shells for which the posix option is not set (-o posix).

On any actual error, or if an attempt is made to use
command substitution, then the value of ENV is used
unchanged as the file name.

The expansion complies with POSIX XCU 2.5.3, though that
only requires parameter expansion - arithmetic expansion
is an extension (but for us, it is much easier to do, than
not to do, and it allows some weird stuff, if you're so
inclined....)   Note that there is no ~ expansion (use $HOME).
2018-12-11 13:31:20 +00:00
maya
13e47dd35b disable nouveau. it hasn't been functional since the import of new drmkms
code.
2018-12-11 11:00:18 +00:00
rin
261205469f Stop assigning random MAC address when it cannot be obtained from H/W.
It was intended only for debugging.
2018-12-11 09:05:50 +00:00
rin
431a083b7d Support checksum offloading for mue(4) by Robert Swindells
and adjusted by myself.
2018-12-11 08:16:57 +00:00
thorpej
f5ab653ca0 Add a convenience function, com_init_regs_stride(), that shifts the register
offsets and size by the specified amount.  Use in front-ends as appropriate.
2018-12-11 06:34:00 +00:00
ryo
6391df1cdb fix build failure without options MULTIPROCESSOR 2018-12-11 05:46:14 +00:00
ozaki-r
24e4ff1961 tests: add missing $af 2018-12-11 03:47:51 +00:00
sevan
e67a3558e2 Clarify the difference to getloadavg(3). 2018-12-11 02:29:11 +00:00
jakllsch
2cfdb2f169 Remove UCHCOM_REG_BPS_MOD and UCHCOM_REG_BPS_PAD usage.
There is no clear indication doing these calculations and setting the
resulting register bits results in improved functionality.  Contrary
to hints in the code, short-term precision of the UART clock doesn't
appear to improve when these bits are adjusted.

Neither the vendor's Linux driver nor the mainline Linux driver
currently touch these bits.

Tested with CH341A and a logic analyzer.
2018-12-11 01:07:29 +00:00
jdolecek
73c4e96893 constify wapbl_ops 2018-12-10 21:19:33 +00:00
jdolecek
560071c2bd assert that WAPBL journal write lock is actually held when called with
PGO_JOURNALLOCKED or IO_JOURNALLOCKED

suggested by mrg@, thanks
2018-12-10 21:10:52 +00:00
jdolecek
53a8b6c8f7 add wo_wapbl_jlock_assert to wapbl_ops 2018-12-10 21:03:48 +00:00
jdolecek
bb9b067782 put back UFS_WAPBL_JUNLOCK_ASSERT(), the underlying rw_write_held() check
doesn't actually have a race since it checks if the rwlock is held by
current lwp
2018-12-10 20:48:34 +00:00
jdolecek
77adaba307 upon further reflection, rw_write_held() actually seems to be safe
for check that the write lock is not currently held by current lwp - current
lwp can't acquire the rwlock even when preempted
2018-12-10 20:12:36 +00:00
jdolecek
19787ecf98 make UFS_WAPBL_JLOCK_ASSERT() #ifdef DIAGNOSTIC, same as the underlying
function KASSERT(), so that it actually does something; fix code using
it to actually pass correct params, so that it compiles

remove UFS_WAPBL_JUNLOCK_ASSERT(), as that is inherently racy (it's
okay on those places if the rwlock is held by other lwp); depend
on the RW_ASSERT()/LOCKDEBUG inside rw_enter() to catch the case
with wapbl rwlock held by current lwp
2018-12-10 19:29:41 +00:00
jdolecek
5112b8e445 clarify how rw_{write,read,lock}_held() work; rw_write_held() actually
returns non-zero only if current lwp is the owner, the other two don't care
about owner; also warn that functions are not atomic, and thus should only
ever be used to assert that the lock is held
2018-12-10 19:21:56 +00:00
christos
3b7148fe8e need <sys/endian.h> (or arpa/inet.h) for ntohl() used in macros. 2018-12-10 16:28:52 +00:00