summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update to bmake-20130330sjg2013-04-0232-336/+778
|\
| * Tag bmake-20130330sjg2013-04-01184-0/+65366
| |
| * Import bmake-20130330sjg2013-04-0129-330/+771
| |
* | Do not declare that preloaded md(4) supports unmapped bio requests, itkib2013-04-021-1/+9
| | | | | | | | | | | | | | does not. Reported by: <mh@kernel32.de> Sponsored by: The FreeBSD Foundation
* | Fix sending virtual scatter/gather lists from the CTL CAM frontendken2013-04-021-1/+5
| | | | | | | | | | | | peripheral. Sponsored by: Spectra Logic
* | Don't directly dereference userland pointer; instead use kernel pointertrasz2013-04-021-4/+4
| | | | | | | | | | | | | | | | copied in from userspace. This fixes instant panic when creating CTL LUN on sparc64. Not a security problem, since the API is root-only. Reviewed by: ken Sponsored by: FreeBSD Foundation
* | Add support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().ken2013-04-021-4/+17
| | | | | | | | | | | | Declare CCB types in their respective switch blocks. Sponsored by: Spectra Logic
* | - Remove extra $FreeBSD$glebius2013-04-021-2/+3
| | | | | | | | | | | | - Touch options headers to make module buildable. Reviewed by: trasz
* | Remove obsolete references to sysinstall.eadler2013-04-022-15/+1
| | | | | | | | | | | | | | | | This change is not intended for MFC. PR: docs/177570 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> (partial) Approved by: bcr (mentor)
* | Fix comment formatting.trasz2013-04-021-4/+4
| |
* | Merge upstream patch to silence spurious "no such identity file" warnings.des2013-04-024-14/+29
| |
* | Silence printf format warnings.des2013-04-021-5/+10
| |
* | Remove unused code.trasz2013-04-021-30/+0
| | | | | | | | Reviewed by: ken
* | Fix dates in manual pages modified in 249009.trasz2013-04-022-2/+2
| |
* | Make it possible to build CTL as a module.trasz2013-04-0211-32/+255
| | | | | | | | | | Reviewed by: ken Sponsored by: FreeBSD Foundation
* | Fix panic in the error path caused by recursive acquisition of XPT topologytrasz2013-04-021-1/+1
| | | | | | | | | | | | lock. Reviewed by: ken
* | Do not check against uninitialized rc and comment out vendor codemm2013-04-021-2/+5
| | | | | | | | MFC after: 16 days
* | Mark a couple of places where I think the dmamap isn't being unmappedadrian2013-04-021-0/+2
| | | | | | | | | | | | | | | | | | before the TX path is being aborted. Right now it's in the TDMA code and I can live with that; but it really should get fixed. I'll do a more thorough audit of this code soon.
* | Some TX dmamap cleanups.adrian2013-04-021-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use BUS_DMA_ALLOCNOW for descriptor DMA maps; we never use bounce buffers for the descriptors themselves. * Add some XXX's to mark where the ath_buf has its mbuf ripped from underneath it without actually cleaning up the dmamap. I haven't audited those particular code paths to see if the DMA map is guaranteed to be setup there; I'll do that later. * Print out a warning if the descdma tidyup code is given some descriptors w/ maps to free. Ideally the owner will free the mbufs and unmap the descriptors before freeing the descriptor/ath_buf pairs, but right now that's not guaranteed to be done. Reviewed by: scottl (BUS_DMA_ALLOCNOW tag)
* | Add a missing unmap; if we're freeing this mbuf then we mustadrian2013-04-021-0/+1
| | | | | | | | really both sync/unmap the dmamap before freeing it.
* | Add VIMAGE to NOTES.kevlo2013-04-021-0/+4
| | | | | | | | Reviewed by: zec
* | Regen.mdf2013-04-0211-15/+15
| | | | | | | | MFC after: 1 week
* | Fix return type of extattr_set_* and fix rmextattr(8) utility.mdf2013-04-027-42/+49
| | | | | | | | | | | | | | | | | | extattr_set_{fd,file,link} is logically a write(2)-like operation and should return ssize_t, just like extattr_get_*. Also, the user-space utility was using an int for the return value of extattr_get_* and extattr_list_*, both of which return an ssize_t. MFC after: 1 week
* | Fix a typo.yongari2013-04-021-1/+1
| | | | | | | | | | | | Reported by: David Imhoff via brad@OpenBSD Tested by: hrs Reviewed by: davidch
* | Added ATA Pass-Through support to CAMsmh2013-04-022-1/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/cam/scsi/scsi_all.c: - Added scsi_ata_pass_16 method Which use ATA Pass-Through to send commands to the attached disk. sys/cam/scsi/scsi_all.h: - Added defines for all missing ATA Pass-Through commands values. - Added scsi_ata_pass_16 method. - Fixed a comment typo while I'm here Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* | Follow up to r247960 and rr247960 by also amending ctfmerge. For thedim2013-04-011-2/+5
| | | | | | | | | | | | | | | | | | | | only other case where STT_FILE symbols are used, in symit_next() in cddl/contrib/opensolaris/tools/ctf/cvt/input.c, save the basename of the symbol, instead of the full pathname. Reported by: avg Tested by: avg, jimharris MFC after: 1 week
* | Ensure that we only call the busdma unmap/flush routines once, whenadrian2013-04-013-22/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the buffer is being freed. * When buffers are cloned, the original mapping isn't copied but it wasn't freeing the mapping until later. To be safe, free the mapping when the buffer is cloned. * ath_freebuf() now no longer calls the busdma sync/unmap routines. * ath_tx_freebuf() now calls sync/unmap. * Call sync first, before calling unmap. Tested: * AR5416, STA mode
* | wordexp(): Remove wrong IFS usage.jilles2013-04-012-4/+20
| | | | | | | | | | | | | | | | | | | | | | Words in shell script are separated by spaces or tabs independent of the value of IFS. The value of IFS is only relevant for the result of substitutions. Therefore, there should be a space between 'wordexp' and the words to be expanded, not an IFS character. Paranoia might dictate that the shell ignore IFS from the environment (even though our sh currently uses it), so do not depend on it in the new test case.
* | Remove an un-needed comment.adrian2013-04-011-6/+0
| |
* | Use ATH_MAX_SCATTER rather than ATH_TXDESC.adrian2013-04-012-5/+5
| | | | | | | | | | ATH_MAX_SCATTER is used to size the ath_buf DMA segment array. We thus should use it when checking sizes of things.
* | Only unmap the RX mbuf DMA map if there's a buffer here.adrian2013-04-011-3/+5
| | | | | | | | | | | | The normal RX path (ath_rx_pkt()) will sync and unmap the buffer before passing it up the stack. We only need to do this if we're flushing the FIFO during reset/shutdown.
* | Dtrace: enablings on defunct providers prevent providers from unregisteringpfg2013-04-018-17/+546
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge change from illumos: 1368 enablings on defunct providers prevent providers from unregistering We try to address some underlying differences between the Solaris and FreeBSD implementations: dtrace_attach() / dtrace_detach() are currently unimplemented in FreeBSD but the new code from illumos makes use of taskq so some adaptations were made to dtrace_open() and dtrace_close() to handle them appropriately. Illumos Revision: r13430:8e6add739e38 Reference: https://www.illumos.org/issues/1368 Reviewed by: gnn Tested by: Fabian Keil Obtained from: Illumos MFC after: 3 weeks
* | | sh: Fix various compiler warnings.jilles2013-04-0111-32/+36
| | | | | | | | | | | | | | | | | | | | | It now passes WARNS=7 with clang on i386. GCC 4.2.1 does not understand setjmp() properly so will always trigger -Wuninitialized. I will not add the volatile keywords to suppress this.
* | | Format per etc/mtree/READMEemaste2013-04-011-91/+91
| | | | | | | | | | | | | | | - Spaces instead of tabs - Sort some i18n entries
* | | Add unmapped bio support to nvme(4) and nvd(4).jimharris2013-04-016-10/+119
| | | | | | | | | | | | Sponsored by: Intel
* | | Call dmu_snapshot_list_next() in zvol.c with dsl_pool_config lock heldmm2013-04-011-0/+2
| | | | | | | | | | | | | | | Submitted by: Andriy Gapon <avg@FreeBSD.org> MFC after: 17 days
* | | Silence warnings about redefined macros.des2013-04-011-0/+4
| | |
* | | Slightly tune locking to not call xpt_alloc_ccb() that is allowed to sleepmav2013-04-012-7/+4
| | | | | | | | | | | | while holding the SIM mutex.
* | | Mention that read_attributes, write_attributes, read_acl and write_acltrasz2013-04-011-1/+5
| | | | | | | | | | | | | | | | | | | | | are always permitted for the file owner. PR: kern/174948 MFC after: 1 week
* | | Fix ipfw rule validation partially broken by r248552.melifaro2013-04-011-4/+5
| | | | | | | | | | | | | | | Pointed by: avg MFC with: r248552
* | | Do not call the VOP_LOOKUP() for the doomed directory vnode. Thekib2013-04-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | vnode could be reclaimed while lock upgrade was performed. Sponsored by: The FreeBSD Foundation Reported and tested by: pho Diagnosed and reviewed by: rmacklem MFC after: 1 week
* | | Record the correct error in the trace.kib2013-04-011-1/+1
| | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | | Strip the unnneeded spaces, mostly at the end of lines.kib2013-04-011-46/+46
| | | | | | | | | | | | MFC after: 3 days
* | | Fix low-level uart drivers that set their fifo sizes in the softc too late.ian2013-04-0110-41/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | uart(4) allocates send and receiver buffers in attach() before it calls the low-level driver's attach routine. Many low-level drivers set the fifo sizes in their attach routine, which is too late. Other drivers set them in the probe() routine, so that they're available when uart(4) allocates buffers. This fixes the ones that were setting the values too late by moving the code to probe().
* | | Enable hardware flow control and high speed bulk data transfer in at91 uarts.ian2013-04-011-53/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to make rtc/cts flow control work... This does not turn on the builtin hardware flow control on the SoC's usart device, because that doesn't work on uart1 due to a chip erratum (they forgot to wire up pin PA21 to RTS0 internally). Instead it uses the hardware flow control logic where the tty layer calls the driver to assert and de-assert the flow control lines as needed. This prevents overruns at the tty layer (app doesn't read fast enough), but does nothing for overruns at the driver layer (interrupts not serviced fast enough). To work around the wiring problem with RTS0, the driver reassigns that pin as a GPIO and controls it manually. It only does so if given permission via hint.uart.1.use_rts0_workaround=1, to prevent accidentally driving the pin if uart1 is used without flow control (because something not related to serial IO could be wired to that pin). In addition to the RTS0 workaround, driver changes were needed in the area of reading the current set of DCE signals. A priming read is now done at attach() time, and the interrupt routine now sets SER_INT_SIGCHG when any of the DCE signals change. Without these changes, nothing could ever be transmitted, because the tty layer thought CTS was de-asserted (when in fact we had just never read the status register, and the hwsig variable was init'd to CTS de-asserted). Changes to support bulk high-speed (230kbps and higher) data reception... Allow the receive fifo size to be tuned with hint.uart.<dev>.fifo_bytes. For high speed receive, a fifo size of 1024 works well. The default is still 128 bytes if no hint is provided. Using a value larger than 384 requires a change in dev/uart/uart_core.c to size the intermediate buffer as MAX(384, 3*sc->sc_rxfifosize). Recalculate the receive timeout whenever the baud rate changes. At low baud rates (19.2kbps and below) the timeout is the number of bits in 2 characters. At higher speed it's calculated to be 500 microseconds worth of bits. The idea is to compromise between being responsive in interactive situations and not timing out prematurely during a brief pause in bulk data flow. The old fixed timeout of 1.5 characters was just 32 microseconds at 460kbps. At interrupt time, check for receiver holding register overrun status and set the corresponding status bit in the return value. When handling a buffer overrun, get a single buffer emptied and handed back to the hardware as quickly as possible, then deal with the second buffer. This at least minimizes data loss compared to the old logic that fully processed both buffers before restarting the hardware. Rewrite the logic for handling buffers after a receive timeout. The original author speculated in a comment that there may be a race with high speed data. There was, although it was rare. The code now handles all three possible scenarios on receive timeout: two empty buffers, one empty and one partial buffer, or one full and one partial buffer. Reviewed by: imp
* | | Accommodate uart devices with large FIFOs (or DMA buffers which amountian2013-03-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | to the same thing) by allocating the uart(4) rx buffer based on the device's rxfifosz rather than using a hard-coded size of 384 bytes. The historical 384 byte size is 3 times the largest hard-coded fifo size in the tree, so use that ratio as a guide and allocate the buffer as three times rxfifosz, but never smaller than the historical size.
* | | When running on armv6, set alignment checking to modulo-4 mode ratherian2013-03-311-0/+8
| | | | | | | | | | | | | | | than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte aligned
* | | When running on armv6, set alignment checking to modulo-4 mode ratherian2013-03-311-3/+9
| | | | | | | | | | | | | | | than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte aligned.
* | | Add a macro for checking for IPv4 link local addresses.tuexen2013-03-311-0/+4
| | | | | | | | | | | | MFC after: 1 week
* | | Rename do_pipe() to kern_pipe2() and declare it properly.jilles2013-03-313-10/+5
| | |
OpenPOWER on IntegriCloud