summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r315774:ngie2017-03-301-1/+1
| | | | | | mount.conf(8): fix a .Xr call Add the missing section number for devfs(5)
* MFC r315796:ngie2017-03-301-1/+1
| | | | | | bus_alloc_resource(9): fix mandoc markup Add missing comma after `.Nm bus_alloc_resource_any` in NAME section.
* MFC r314372:ngie2017-03-301-1/+1
| | | | | | | | | | | | | Use "build" instead of "all" when building ports modules "all" in ports currently means "stage the ports", which requires root today, and brings to light other potential issues, like ENAMETOOLONG with staged directories (bug 161481, etc). This fixes buildkernel for me when run as a non-root user, assuming all of the prerequisites have been installed beforehand and are up-to-date. Discussed with: swills (IRC)
* MFC r315734:ngie2017-03-301-5/+5
| | | | style(9): sort #includes
* MFC r306733sevan2017-03-301-1/+13
| | | | | | | | Add history section to fsck(8) PR: 212472 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r266586sevan2017-03-301-1/+13
| | | | | | | | If called without -T or -t, fsck attempts to detect the file system type. If this fails, fsck will fail with "unknown file system type" message. PR: 188214
* MFC r306616sevan2017-03-301-1/+3
| | | | | | | | setkey appeared in FreeBSD 4.0 PR: 212551 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8105
* MFC r306617sevan2017-03-301-4/+6
| | | | | | | | | | shutdown appeared as a standalone utility in 4.1BSD. http://mail-index.netbsd.org/source-changes-d/2016/09/13/msg008686.html http://mail-index.netbsd.org/source-changes-d/2016/09/14/msg008691.html PR: 212552 Approved by: bcr (mentor) Obtained from: NetBSD Differential Revision: https://reviews.freebsd.org/D8105
* MFC r306715sevan2017-03-301-1/+6
| | | | | | | | | | Add history section for dd(1) First version of UNIX to include dd found using TUHS http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/dd.c PR: 211777 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r285645sevan2017-03-301-0/+1
| | | | Mention the dd-like recoverdisk(1) to help folks find this great BSD command.
* MFC r270831sevan2017-03-301-1/+1
| | | | | | Update the date for last example. Sponsored by: Netflix
* MFC r270771sevan2017-03-301-0/+5
| | | | Add canonical population of a disk / thumb drive from an image example.
* MFC r309192sevan2017-03-301-1/+1
| | | | | | | | | | | Fix null dereference when running out of nodes during rename. PR: 212370 Submitted by: Sascha Wildner <swildner AT gmail> Reviewed by: bcr (mentor) Approved by: bapt Obtained from: NetBSD Differential Revision: https://reviews.freebsd.org/D8643
* MFC r312692sevan2017-03-301-1/+2
| | | | | | | | | Improve wording when describing -mmin. PR: 215922 Submitted by: danielsh AT apache DOT org Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D9313
* MFC r281759sevan2017-03-301-1/+1
| | | | | | find.1: Add missing whitespace: Obtained from: Dragonfly (dee38d02d51cc8316f82b0263158d2546f2398bc)
* MFC r309552sevan2017-03-301-1/+21
| | | | | | | | | | | Fix error in the example section Adjust formatting highlighted by igor. PR: 214683 Submitted by: Anindya Mukherjee <anindya49 AT hotmail DOT com> Reviewed by: jilles Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8591
* MFC r316022,r316023:jamie2017-03-301-2/+2
| | | | | | | Fix hexadecimal escape codes in jail.conf(5). PR: 218154 Submitted by: Masahiro Konishi <mkonishi@sea.plala.or.jp>
* MFC 312684sevan2017-03-301-8/+122
| | | | | | | | | Extend manual to cover more commands and options. PR: 203406 Submitted by: Fehmi Noyan Isi (fnoyanisi AT yahoo DOT com) Approved by: wblock (mentor) Differential Revision: https://reviews.freebsd.org/D8691
* MFC 315964sevan2017-03-301-4/+4
| | | | | | | | | | ftp.microsoft.com is dead and the document was not archived, point to the full protocol spec document instead. Fix spelling mistake flagged by igor. Rephrase bad sentence flagged by igor. Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D10111
* Fix build broken by different size of lun_id_t.mav2017-03-292-5/+5
|
* Fix -Wformat issue with r316140, which broke i386/GENERICngie2017-03-291-1/+1
| | | | | | | | | Since r316140 was a direct commit to ^/stable/10, this too is a direct commit to ^/stable/10. Reported by: Jenkins (FreeBSD-stable-10-i386-build job) Tested with: amd64, i386 Sponsored by: Dell EMC Isilon
* MFC r315545: Remove hackish code delaying ATIOs to unknown virtual port.mav2017-03-294-53/+28
| | | | | Since we support RQSTYPE_RPT_ID_ACQ, that functionality is only useful in loop mode, which probably doesn't worth having this hack in 2017.
* MFC r315536: Move <= 23xx PDB workaround to generic code.mav2017-03-292-18/+29
| | | | It is chip-specific and has nothing to do with platform.
* MFC r315534: Remove some dead stuff.mav2017-03-291-16/+5
|
* MFC r315533: Move 24xx RQSTYPE_NOTIFY handling to generic code.mav2017-03-293-181/+156
| | | | This code has nothing to do with specific platform.
* MFC r315507: Reorganize RQSTYPE_NOTIFY handling for chips <= 23xx.mav2017-03-292-191/+87
| | | | | | There were two copies of the code: one in generic code was half-broken, and another in platform code was never called. Leave only one in generic code and working.
* MFC r315489: Move RQSTYPE_ABTS_RCVD parsing into generic code.mav2017-03-292-57/+51
|
* MFC r315488: Extend nt_lun to full 8 byte.mav2017-03-293-11/+11
|
* MFC r315485: Remove dead remnants of SPI target.mav2017-03-294-82/+0
|
* MFC r315482: Use isp_target_put_entry() in places where it can be.mav2017-03-292-64/+35
| | | | This unifies the code and removes some duplication.
* MFC r315478: Do some notify acks cleanup.mav2017-03-292-79/+74
| | | | ISPASYNC_TARGET_NOTIFY_ACK makes no sense without argument.
* MFC r315327: Remove not very useful ATIO/INOT stats.mav2017-03-292-14/+9
| | | | While there polish respective debug logging.
* MFC r315307: Refactor interrupt handling.mav2017-03-295-355/+198
| | | | | | | | | | Instead of single isp_intr() function doing all possible magic, introduce four different functions to handle mailbox operation completions, async events, response and ATIO queues. The goal is to isolate different code paths to make code more readable, and to make easier support for multiple interrupt vectors. Even oldest hardware in many cases can identify what code path it should run on interrupt. Contemporary hardware can assign them to different interrupt vectors.
* MFC r315303: Fix panic when SIM dereferenced before allocation.mav2017-03-291-24/+25
|
* MFC r315298: Fix ancient bug from r84597, which broke 23xx after r315234.mav2017-03-291-1/+1
|
* xen/netfront: release resources on removalroyger2017-03-291-0/+45
| | | | | | | | | | | | | | Current netfront code doesn't release the resources (grants and mbufs) on removal. Add a new helper that releases the resources, so FreeBSD doesn't run out of grants or memory when performing heavy hotplug/unplug of Xen PV nic devices. This is a direct commit to stable/10 because the code in newer branches has been completely refactored and no longer has this issue. Reviewed by: royger Submitted by: Ouyangzhaowei <ouyangzhaowei@huawei.com> Differential review: https://reviews.freebsd.org/D10088
* MFC r315711: Fix printing bits above first eight.mav2017-03-291-4/+4
|
* MFC r315738:ngie2017-03-291-0/+4
| | | | | | | | | Document some more 10GbE+ network drivers in loader.conf - if_cxgbe - if_ixl - if_ixlv - sfxge
* MFC r315699:ngie2017-03-291-1/+2
| | | | | | | | | Print out name of non-dynamic sysctl in sysctl_remove_oid_locked This will provide a slightly better smoking gun than just stating "can't remove non-dynamic nodes!" when calling sysctl_ctx_free(9) and sysctl_remove_{name,oid}(9) with a non-dynamic (likely static) sysctl.
* MFC r315201, r315920, r315921, r315922, r316008, and r316062.np2017-03-293-108/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | r315201: cxgbe(4): Fix an always-true assertion (reported by PVS-Studio). sys/dev/cxgbe/t4_main.c: PVS-Studio: Expression is Always True (CWE-571) (3) r315920: cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure. r315921: cxgbe/iw_cxgbe: alloc_ep expects a gfp_t, and it's always ok to sleep during alloc_ep. r315922: cxgbe/iw_cxgbe: allocations that use GFP_KERNEL (which is M_WAITOK on FreeBSD) cannot fail. r316008: cxgbe/iw_cxgbe: Remove unused code. r316062: cxgbe/iw_cxgbe: Defer the handling of error CQEs and RDMA_TERMINATE to the thread that deals with socket state changes. This eliminates various bad races with the ithread.
* MFC r311103 (ian):cy2017-03-291-16/+36
| | | | | | | | | | | | | | | | | | | | | | | | Update ntp.conf to use the ntpd pool feature. Our previous ntp.conf file configured 3 servers from freebsd.pool.ntp.org using 3 separate 'server' config lines. That is now replaced with a single 'pool' line which causes ntpd to add multiple servers from the pool. More than just making the config smaller, the pool feature in ntpd has one major advantage over configuring 3 separate servers from a pool: if a server that was added using a 'pool' statement provides bad time (initially or at some later date), ntpd automatically discards it and configures a new different server from the pool without needing to be restarted. These changes also add a 'tos' line to control how many pool servers get added, a 'restrict source' line that is required to allow ntpd to add new peers from the pool, and it deletes a 'restrict 127.127.1.0' line that does nothing and should never have been there (127.127.1.0 is not a valid IP address, it's a refclock identifier). Reviewed by: cy MFC requested by: ache Differential Revision: https://reviews.freebsd.org/D9011
* MFC r315242: Fix late and noauto with geli swapamdmi32017-03-281-0/+4
| | | | | | | | | | | | | | | | | | With the following in /etc/fstab: /dev/gpt/swap.eli none swap sw,late 0 0 swap will not be enabled, with `swapon -aL' complaining: swapon: Invalid option: late This happens because swap_on_geli_args() which parses geli arguments out of all mount options does not expect late or noauto among them. Fix this by explicitly allowing these arguments. Reviewed by: jilles Approved by: jilles Differential Revision: D9835
* MFC r315279: Remove some dead/broken code paths around async handlingmav2017-03-284-50/+25
|
* MFC r315273: Remove tangled isp_mbox_continue() mechanism.mav2017-03-284-270/+61
| | | | | | | It was implemented to reduce context switches when uploading firmware to card's RAM. But this mechanism is not used last 10 years since all mbox operations are now polled, and it was never used for cards produced in last 15 years. Newer cards can use DMA to upload firmware.
* MFC r315236: Remove dangerous and questionable isp_mboxcmd_qnw() call.mav2017-03-281-17/+4
|
* MFC r315234: Improvements around attach, reset and detach.mav2017-03-288-391/+314
| | | | | | | This change fixes DMA resource leak on driver unload. Also it removes DMA resources allocation for hardcoded number of requests before fetching the real number from firmware. Also it prepares ground for more flexible IRQs allocation according to firmware capabilities.
* MFC r299849 (by trasz):mav2017-03-282-22/+0
| | | | Remove NULL checks after M_WAITOK allocations from isp(4).
* MFC r313436,r313437,r313438,r314587,r315687:ngie2017-03-282-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r313436: Clarify #includes for hexdump(3) vs sbuf_hexdump(9) hexdump(3) only requires libutil.h, whereas sbuf_hexdump(9) requires sys/types.h (for ssize_t) and sys/sbuf.h r313437: Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describes sbuf_hexdump(9)'s behavior r313438: Clean up trailing and leading whitespace for variables to make it consistent with the rest of the file and style.Makefile(9) a bit more r314587: Correct MLINKS for sbuf_hexdump(9) sbuf_hexdump(9) should be linked to sbuf(9), not hexdump(3). Another review will be posted to deduplicate the sbuf_hexdump reference in in hexdump(3) or at the very least make the information less duplicative. r315687: Document sbuf_hexdump(9) in just sbuf(9) - Remove duplicate references to sbuf_hexdump(9) from hexdump(3). sbuf_hexdump(9) already pointed back to hexdump(3) for implementation details. - Refer to sbuf_hexdump(9) instead of sbuf(9) for completeness
* MFC r315686,r315688:ngie2017-03-282-2/+16
| | | | | | | | | | | | | | | | | | | | | | r315686: kvm_geterr: handle `kd` == NULL in a deterministic/graceful manner Return a NUL string instead of just working by accident with kvm_geterr(3) when MALLOC_PRODUCTION is disabled (I didn't confirm the MALLOC_PRODUCTION being enabled path). Document the new explicit return behavior for kvm_geterr(3), as well as the previous implicit behavior, i.e., the buffer attached to returned via kvm_geterr(3) would be empty if a previous error hadn't been stored in `kd`. r315688: kvm_write: fix -Wcast-qual warning in pointer arithmetic argument Cast buf to `const char *` when doing arithmetic operation to match `cp`'s type [1].
* MFC r315647:ngie2017-03-282-2/+25
| | | | | | | | | Handle kd == NULL gracefully with kvm_close(3) Don't segfault in kvm_close(3) if provided a NULL pointer. Instead, return -1 and set errno to EINVAL. Document this new behavior explicitly.
OpenPOWER on IntegriCloud