Commit Graph

225037 Commits

Author SHA1 Message Date
Ian Lepore
55b0d8a05a Build iicbus/{ds1307,ds3231,nxprtc} as modules. 2017-07-31 22:32:11 +00:00
Ian Lepore
c28ccaf0f2 Restructure the SUBDIR list as 1-per-line and alphabetize, so it will be
easier to add new things (and see what changed) in the future.
2017-07-31 22:26:30 +00:00
Bryan Drewery
63ab7bb3c8 Allow changing the test PORT at compile-time.
Sponsored by:	Dell EMC Isilon
2017-07-31 22:00:27 +00:00
Ian Lepore
012e41a7a8 Bugfixes and enhancements...
Don't enable the oscillator when it is found to be stopped at init time,
just let the first setting of valid time start it.  But still report a dead
battery if it's stopped at init time.

Don't force the chip into 24hr mode, just cope with whatever mode it is
already in.

Schedule the clock_settime() callbacks to align the RTC clock to top of
second when setting it.
2017-07-31 22:00:00 +00:00
Ian Lepore
13fd9ff767 No need to call getnanotime() now that the waiting is done by the central
subr_rtc code, switch from CLOCKF_SETTIME_NO_TS to CLOCKF_SETTIME_NO_ADJ
so that we get fed a timestamp, but it's not adjusted to compensate for
inaccuracy in setting time.
2017-07-31 21:53:00 +00:00
Tobias C. Berner
03515a5191 Add myself to the calendar.freebsd
Reported by:    mckusick
2017-07-31 21:08:31 +00:00
Pawel Pekala
60aea5e323 Add myself to the calendar.freebsd
Reported by:	mckusick
2017-07-31 20:54:23 +00:00
Kirk McKusick
33bbdde01f Avoid reading a snapshot block when it is already in the cache.
Update the use of the B_CACHE flag (since the May 1999 commit
that made it the correct test here).

Reported by: Andreas Longwitz <longwitz@incore.de>
Reviewed by: kib
Tested by: Peter Holm
MFC after: 1 week
2017-07-31 20:41:45 +00:00
Mateusz Guzik
a398d3d182 Add myself to the calendar.
Prodded by:	invisible peer pressure
2017-07-31 20:15:11 +00:00
Baptiste Daroussin
282aa9d648 Update pci_vendors to 2017.07.27
MFC after:	2 days
2017-07-31 19:51:36 +00:00
Baptiste Daroussin
5543d382a7 Update mandoc to 1.14.2 2017-07-31 19:34:38 +00:00
Baptiste Daroussin
75b6c55cb0 Import mandoc 1.14.2 2017-07-31 19:17:54 +00:00
Cy Schubert
01da25af6b Remove redundant include directories which expand to a noop,
"-I/lib/krb5 -I -I".

Reviewed by:	ngie@, markm@
MFC after:	1 month
Differential Revision:	D11769
2017-07-31 19:07:45 +00:00
Mark Johnston
6c7ebc242b Batch v_wire_count decrements in vm_hold_free_pages().
Atomic updates to v_wire_count are a significant source of contention, so
combine multiple updates into one in this easy case. Also remove an old
printf that gets executed if the page is shared-busied, which is a case
that will lead to a panic anyway.

Reviewed by:	alc, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D11791
2017-07-31 18:48:58 +00:00
Matt Joras
3a122598ce Add myself to the calendar.
Reported by:	mckusick
Approved by:	rstone (mentor)
Differential Revision:	https://reviews.freebsd.org/D11797
2017-07-31 18:10:10 +00:00
Mark Johnston
17b5949a31 Don't trace running threads that have interrupts disabled.
In this case we shouldn't assume that the thread has a valid frame pointer.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D11787
2017-07-31 17:57:54 +00:00
Eric Joyner
e996c94ed7 Add myself to calendar.freebsd
Reported by:	mckusick
2017-07-31 17:57:44 +00:00
Dru Lavigne
4a1f1e2bd3 Add myself to calendar. 2017-07-31 17:49:47 +00:00
Adrian Chadd
495842b117 [wlanwds] allow for a DWDS AP VAP to be not be the first VAP on a NIC.
The wlanwds code was just creating a clone VAP without specifying the MAC
address to use for said clone VAP.  This meant that if an interface
was cloned from an AP interface that wasn't the first created VAP
(which shares the same MAC as the parent physical interface by default)
then the cloned interface would have the wrong MAC and traffic wouldn't work.

Besides chip bugs (ha!) this isn't a requirement.

So, teach wlanwds to:

* look up the link layer address for a given interface (which really should
  be a library interface, and will likely quickly become one);
* use this when creating a cloned interface for a DWDS peer;
* (net80211 already has the infrastructure to do this, it just needed to be
  used);
* add some extra logging to see what MAC addresses, parent interfaces, etc
  are being created.

Whilst here, add a reminder that I should extend this to include monitoring
a specific VAP for DWDS updates rather than just the parent interface.

This is the first step in allowing for multiple DWDS hops, which is a
pre-requisite for adrian's house having wifi in the single upstairs room.

Tested:

* AR9380, DWDS AP + AP mode - with DWDS AP being the second VAP created
  with a different MAC address;
* AR9331 (Carambola2), AP + DWDS STA;
* passing traffic

TODO:

* fix 802.11s so this DWDS stuff is no longer required!
2017-07-31 17:33:57 +00:00
Scott Long
2068b2aa88 Fix a logic bug in the split PCI interrupt code that slipped through
Reported by:	Harry Schmalzbauer
2017-07-31 16:55:56 +00:00
Ian Lepore
def6c0c3ee Restore a few rather important lines of code that got fumbled in r321746. 2017-07-31 16:46:16 +00:00
Scott Long
e8df690ae4 Add an entry to the freebsd calendar for myself.
Reported by:	kirk
2017-07-31 15:50:58 +00:00
Jamie Gritton
53ffb44de4 Add myself to the birthday calendar.
Reminded by:	mckusick
2017-07-31 15:29:44 +00:00
Ian Lepore
bf9c1267f3 Check the clock-halted flag every time the clock is read, not just once
at startup.  The flag stays set until the clock is loaded with good time,
so we need to keep saying the time is invalid until that happens.
2017-07-31 15:24:40 +00:00
Alexander Motin
e9c9826673 Improve FHA locality control for NFS read/write requests.
This change adds two new tunables, allowing to control serialization for
read and write NFS requests separately.  It does not change the default
behavior since there are too many factors to consider, but gives additional
space for further experiments and tuning.

The main motivation for this change is very low write speed in case of ZFS
with sync=always or when NFS clients requests sychronous operation, when
every separate request has to be written/flushed to ZIL, and requests are
processed one at a time.  Setting vfs.nfsd.fha.write=0 in that case allows
to increase ZIL throughput by several times by coalescing writes and cache
flushes.  There is a worry that doing it may increase data fragmentation
on disks, but I suppose it should not happen for pool with SLOG.

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
2017-07-31 15:23:19 +00:00
Alan Somers
86ee4cb0d6 spellcheck jhale's calendar entry 2017-07-31 15:21:26 +00:00
Ian Lepore
ccf32b9887 Add a detach() method. 2017-07-31 14:58:01 +00:00
Ian Lepore
cf24e991a6 Switch from using iic_transfer() to iicdev_readfrom/writeto(), mostly so
that transfers will be done with proper ownership of the bus. No
behavioral changes.  Also add a detach() method.
2017-07-31 14:57:02 +00:00
Andrew Gallatin
a18f34fe77 Don't request CTLTYPE_OPAQUE if we can't print them.
The intent is to skip expensive opaque sysctls like tcp_pcblist unless
they are explicitly requested. Sysctl nodes like this don't show up in
sysctl -a, but they do generate output that winds up being dropped,
unless the user specifically requested  binary/hex output or opaques.

This reduces the runtime of sysctl in many circumstances on a loaded
system.  It also reduces the likelihood that simply gathering
diagnostics on a sick machine (stuck lock, etc) via sysctl -a might
push it over the edge into a total lockup.

Reviewed by:	jtl
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D11461
2017-07-31 14:56:35 +00:00
Yoshihiro Takahashi
17764ab692 Add myself.
Reminded by:	mckusick
2017-07-31 14:53:03 +00:00
Alan Somers
20c4ac1eaf Add myself to the calendar
Reported by:	mckusick
2017-07-31 14:50:42 +00:00
Martin Matuska
0232d57132 Add myself to the calendar
Reminded by:	mckusick
2017-07-31 14:49:44 +00:00
Ravi Pokala
0096681c08 Add my birthday to the FreeBSD calendar
Requested by:	mckusick
2017-07-31 14:42:38 +00:00
Justin Hibbits
08a74c9de1 Add myself to the calendar
Reminded by:	mckusick
2017-07-31 14:16:35 +00:00
Wen Heping
e578390f9a add myself to calendar.freebsd 2017-07-31 13:32:35 +00:00
Nikolai Lifanov
47f4e09b37 add myself to calendar.freebsd 2017-07-31 13:08:47 +00:00
Hans Petter Selasky
3f38293d29 Remove some dead statistics related code and a structure field from the
mlx4en driver which is used by its Linux counterpart, but not under
FreeBSD.

Sponsored by:	Mellanox Technologies
MFC after:	1 week
2017-07-31 12:09:24 +00:00
Hans Petter Selasky
f40410e868 Make sure on-stack buffer is properly aligned.
Sponsored by:	Mellanox Technologies
MFC after:	1 week
2017-07-31 12:03:45 +00:00
Andrey V. Elsukov
1a01e0e7ac Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook
from enc_hhook().

This should solve the problem when pf is used with if_enc(4) interface,
and outbound packet with existing PCB checked by pf, and this leads to
deadlock due to pf does its own PCB lookup and tries to take rlock when
wlock is already held.

Now we pass PCB pointer if it is known to the pfil hook, this helps to
avoid extra PCB lookup and thus rlock acquiring is not needed.
For inbound packets it is safe to pass NULL, because we do not held any
PCB locks yet.

PR:		220217
MFC after:	3 weeks
Sponsored by:	Yandex LLC
2017-07-31 11:04:35 +00:00
Stanislav Galabov
1336f0f4ae Add myself to calendar
Reminded by: mckusick
2017-07-31 09:46:48 +00:00
Eugene Grosbein
580fb05144 Add myself.
Reminded by:    mckusick
Approved by:	vsevolod (mentor)
2017-07-31 09:18:53 +00:00
Hans Petter Selasky
0991f0af6d Remove cycle_t type from the LinuxKPI similar to Linux upstream.
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2017-07-31 09:17:54 +00:00
Hans Petter Selasky
b0259ad374 Fix broken usage of the mlx4_read_clock() function:
- return value has too small width
 - cycle_t is unsigned and cannot be less than zero

Sponsored by:	Mellanox Technologies
MFC after:	1 week
2017-07-31 09:15:15 +00:00
Kristof Provost
401b97316c Add myself to calendar
Reminded by:  mckusick
2017-07-31 09:13:18 +00:00
Nick Hibma
0e7703df97 Add my birthday entry to the calendar file. 2017-07-31 08:16:12 +00:00
Romain Tartière
96762f93cb Add myself
Reminded by:	mckusick
2017-07-31 08:11:58 +00:00
Toomas Soome
2dec6fd7be Add myself to calendar
Reminded by:  mckusick
2017-07-31 08:11:05 +00:00
Ruslan Bukin
b5e02bc3c0 Add my birthday. 2017-07-31 08:10:02 +00:00
Emmanuel Vadot
bdf7f6d026 Add myself to calendar
Reminded by:  mckusick
2017-07-31 07:58:29 +00:00
Sepherosa Ziehau
86f832caeb calendar: Add myself.
Reminded by: mckusick
2017-07-31 07:48:08 +00:00