aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove local variables missed in r321842.Mark Johnston2017-08-011-4/+0
| | | | | | | X-MFC with: r321842 Notes: svn path=/head/; revision=321843
* Let lockstat use ksyms(4)'s mmap interface.Mark Johnston2017-08-011-24/+0
| | | | | | | | | The workaround described in the deleted comment is no longer needed. MFC after: 1 week Notes: svn path=/head/; revision=321842
* Add a driver for the Intersil ISL12xx family of i2c RTC chips.Ian Lepore2017-08-014-0/+363
| | | | | | | | Supports ISL1209, ISL1218, ISL1219, ISL1220, ISL1221 (just basic RTC functionality, not all the other fancy stuff the chips can do). Notes: svn path=/head/; revision=321841
* The blist_meta_* routines that process a subtree take arguments 'radix' andAlan Cox2017-08-012-59/+77
| | | | | | | | | | | | | | | | | | | | | 'skip', which denote, respectively, the largest number of blocks that can be managed by a subtree of that height, and one less than the number of nodes in a subtree of that height. This change removes the 'skip' argument from those functions because 'skip' can be trivially computed from 'radius'. This change also redefines 'skip' so that it denotes the number of nodes in the subtree, and so changes loop upper bound tests from '<= skip' to '< skip' to account for the change. The 'skip' field is also removed from the blist struct. The self-test program is changed so that the print command includes the cursor value in the output. Submitted by: Doug Moore <dougm@rice.edu> MFC after: 1 week Notes: svn path=/head/; revision=321840
* Implement proper Linux /dev/fd and /proc/self/fd behavior by addingDmitry Chagin2017-08-017-7/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux specific things to the native fdescfs file system. Unlike FreeBSD, the Linux fdescfs is a directory containing a symbolic links to the actual files, which the process has open. A readlink(2) call on this file returns a full path in case of regular file or a string in a special format (type:[inode], anon_inode:<file-type>, etc..). As well as in a FreeBSD, opening the file in the Linux fdescfs directory is equivalent to duplicating the corresponding file descriptor. Here we have mutually exclusive requirements: - in case of readlink(2) call fdescfs lookup() method should return VLNK vnode otherwise our kern_readlink() fail with EINVAL error; - in the other calls fdescfs lookup() method should return non VLNK vnode. For what new vnode v_flag VV_READLINK was added, which is set if fdescfs has beed mounted with linrdlnk option an modified kern_readlinkat() to properly handle it. For now For Linux ABI compatibility mount fdescfs volume with linrdlnk option: mount -t fdescfs -o linrdlnk null /compat/linux/dev/fd Reviewed by: kib@ MFC after: 1 week Relnotes: yes Notes: svn path=/head/; revision=321839
* sys/net8021: Add missing braces in setcurchan().Pedro F. Giffuni2017-08-012-2/+3
| | | | | | | | Obtained from: DragonFlyBSD (git c69e37d6) MFC after: 3 days Notes: svn path=/head/; revision=321838
* hyperv/hn: Add comment about ether_ifattach event subscription.Sepherosa Ziehau2017-08-011-0/+6
| | | | | | | | | MFC after: 3 days Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11710 Notes: svn path=/head/; revision=321837
* hyperv/hn: Renaming and minor cleanupSepherosa Ziehau2017-08-012-48/+55
| | | | | | | | | | | This prepares for the upcoming transparent VF support. MFC after: 3 days Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11708 Notes: svn path=/head/; revision=321836
* Add myself to FreeBSD calendarJason A. Harmening2017-08-011-0/+1
| | | | | | | Requested by: mckusick Notes: svn path=/head/; revision=321835
* Bring my aging self to calendar.freebsd.Pedro F. Giffuni2017-08-011-0/+1
| | | | | | | Requested by: mckusick Notes: svn path=/head/; revision=321834
* Build iicbus/{ds1307,ds3231,nxprtc} as modules.Ian Lepore2017-07-314-0/+24
| | | | Notes: svn path=/head/; revision=321828
* Restructure the SUBDIR list as 1-per-line and alphabetize, so it will beIan Lepore2017-07-311-2/+12
| | | | | | | easier to add new things (and see what changed) in the future. Notes: svn path=/head/; revision=321826
* Allow changing the test PORT at compile-time.Bryan Drewery2017-07-311-0/+2
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=321824
* Bugfixes and enhancements...Ian Lepore2017-07-312-49/+102
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=321823
* No need to call getnanotime() now that the waiting is done by the centralIan Lepore2017-07-311-10/+13
| | | | | | | | | 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. Notes: svn path=/head/; revision=321821
* Add myself to the calendar.freebsdTobias C. Berner2017-07-311-0/+1
| | | | | | | Reported by: mckusick Notes: svn path=/head/; revision=321818
* Add myself to the calendar.freebsdPawel Pekala2017-07-311-0/+1
| | | | | | | Reported by: mckusick Notes: svn path=/head/; revision=321817
* Avoid reading a snapshot block when it is already in the cache.Kirk McKusick2017-07-311-1/+1
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321816
* Add myself to the calendar.Mateusz Guzik2017-07-311-0/+1
| | | | | | | Prodded by: invisible peer pressure Notes: svn path=/head/; revision=321814
* Update pci_vendors to 2017.07.27Baptiste Daroussin2017-07-311-5/+24
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=321812
* Update mandoc to 1.14.2Baptiste Daroussin2017-07-3185-1966/+3789
|\ | | | | | | Notes: svn path=/head/; revision=321810
| * Import mandoc 1.14.2vendor/mandoc/1.14.2Baptiste Daroussin2017-07-3183-1965/+3780
| | | | | | | | | | Notes: svn path=/vendor/mdocml/dist/; revision=321807 svn path=/vendor/mdocml/1.14.2/; revision=321808; tag=vendor/mandoc/1.14.2
* | Remove redundant include directories which expand to a noop,Cy Schubert2017-07-311-2/+1
| | | | | | | | | | | | | | | | | | | | | | "-I/lib/krb5 -I -I". Reviewed by: ngie@, markm@ MFC after: 1 month Differential Revision: D11769 Notes: svn path=/head/; revision=321806
* | Batch v_wire_count decrements in vm_hold_free_pages().Mark Johnston2017-07-311-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321805
* | Add myself to the calendar.Matt Joras2017-07-311-0/+1
| | | | | | | | | | | | | | | | | | Reported by: mckusick Approved by: rstone (mentor) Differential Revision: https://reviews.freebsd.org/D11797 Notes: svn path=/head/; revision=321804
* | Don't trace running threads that have interrupts disabled.Mark Johnston2017-07-311-3/+4
| | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321803
* | Add myself to calendar.freebsdEric Joyner2017-07-311-0/+1
| | | | | | | | | | | | | | Reported by: mckusick Notes: svn path=/head/; revision=321802
* | Add myself to calendar.Dru Lavigne2017-07-311-0/+1
| | | | | | | | Notes: svn path=/head/; revision=321801
* | [wlanwds] allow for a DWDS AP VAP to be not be the first VAP on a NIC.Adrian Chadd2017-07-311-7/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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! Notes: svn path=/head/; revision=321800
* | Fix a logic bug in the split PCI interrupt code that slipped throughScott Long2017-07-312-2/+4
| | | | | | | | | | | | | | Reported by: Harry Schmalzbauer Notes: svn path=/head/; revision=321799
* | Restore a few rather important lines of code that got fumbled in r321746.Ian Lepore2017-07-311-0/+4
| | | | | | | | Notes: svn path=/head/; revision=321798
* | Add an entry to the freebsd calendar for myself.Scott Long2017-07-311-0/+1
| | | | | | | | | | | | | | Reported by: kirk Notes: svn path=/head/; revision=321797
* | Add myself to the birthday calendar.Jamie Gritton2017-07-311-0/+1
| | | | | | | | | | | | | | Reminded by: mckusick Notes: svn path=/head/; revision=321796
* | Check the clock-halted flag every time the clock is read, not just onceIan Lepore2017-07-311-0/+4
| | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=321795
* | Improve FHA locality control for NFS read/write requests.Alexander Motin2017-07-313-29/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=321794
* | spellcheck jhale's calendar entryAlan Somers2017-07-311-1/+1
| | | | | | | | Notes: svn path=/head/; revision=321793
* | Add a detach() method.Ian Lepore2017-07-311-2/+11
| | | | | | | | Notes: svn path=/head/; revision=321792
* | Switch from using iic_transfer() to iicdev_readfrom/writeto(), mostly soIan Lepore2017-07-311-49/+41
| | | | | | | | | | | | | | | | that transfers will be done with proper ownership of the bus. No behavioral changes. Also add a detach() method. Notes: svn path=/head/; revision=321791
* | Don't request CTLTYPE_OPAQUE if we can't print them.Andrew Gallatin2017-07-311-18/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321790
* | Add myself.Yoshihiro Takahashi2017-07-311-0/+1
| | | | | | | | | | | | | | Reminded by: mckusick Notes: svn path=/head/; revision=321789
* | Add myself to the calendarAlan Somers2017-07-311-0/+1
| | | | | | | | | | | | | | Reported by: mckusick Notes: svn path=/head/; revision=321788
* | Add myself to the calendarMartin Matuska2017-07-311-0/+1
| | | | | | | | | | | | | | Reminded by: mckusick Notes: svn path=/head/; revision=321787
* | Add my birthday to the FreeBSD calendarRavi Pokala2017-07-311-0/+1
| | | | | | | | | | | | | | Requested by: mckusick Notes: svn path=/head/; revision=321786
* | Add myself to the calendarJustin Hibbits2017-07-311-0/+1
| | | | | | | | | | | | | | Reminded by: mckusick Notes: svn path=/head/; revision=321785
* | add myself to calendar.freebsdWen Heping2017-07-311-0/+1
| | | | | | | | Notes: svn path=/head/; revision=321784
* | add myself to calendar.freebsdNikolai Lifanov2017-07-311-0/+1
| | | | | | | | Notes: svn path=/head/; revision=321783
* | Remove some dead statistics related code and a structure field from theHans Petter Selasky2017-07-315-67/+0
| | | | | | | | | | | | | | | | | | | | | | mlx4en driver which is used by its Linux counterpart, but not under FreeBSD. Sponsored by: Mellanox Technologies MFC after: 1 week Notes: svn path=/head/; revision=321782
* | Make sure on-stack buffer is properly aligned.Hans Petter Selasky2017-07-311-1/+1
| | | | | | | | | | | | | | | | Sponsored by: Mellanox Technologies MFC after: 1 week Notes: svn path=/head/; revision=321780
* | Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hookAndrey V. Elsukov2017-07-315-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321779
* | Add myself to calendarStanislav Galabov2017-07-311-0/+1
| | | | | | | | | | | | | | Reminded by: mckusick Notes: svn path=/head/; revision=321776