summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Loop up to 3 seconds when waiting for a device to get ready. [1]marius2012-06-031-97/+262
| | | | | | | | | | | | | | | | | | | | | | | | | - Make the device description match the driver name. - Identify the chip variant based on the JEDEC and use that information to use the proper values for page count, offset and size instead of hardcoding a AT45DB642x with 2^N byte page support disabled. - Take advantage of bioq_takefirst(). - Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned in Atmel's DataFlash Application Note, as suggested by the previous comment may not work on all all devices and actually doesn't properly on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid out in a way allowing to easily add support for BIO_DELETE later on. - Add support for reads and writes not starting on a page boundary. - Verify the flash content after writing. - Let at45d_task() gracefully handle errors on SPI transfers and the device not becoming ready afterwards again. [1] - Use DEVMETHOD_END. [1] - Use NULL instead of 0 for pointers. [1] Additional testing by: Ian Lepore Submitted by: Ian Lepore [1] MFC after: 1 week
* - Prepend the device description with "AT91" to reflect its nature. [1]marius2012-06-032-72/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move DMA tag and map creature to at91_spi_activate() where the other resource allocation also lives. [1] - Flesh out at91_spi_deactivate(). [1] - Work around the "Software Reset must be Written Twice" erratum. - For now, run the bus at the slowest speed possible in order to work around data corruption on transit even seen with 9 MHz on ETHERNUT5 (15 MHz maximum) and AT45DB321D (20 MHz maximum). This also serves as a poor man's work-around for the "NPCSx rises if no data data is to be transmitted" erratum of RM9200. Being able to use the appropriate bus speed would require: 1) Adding a proper work-around for the RM9200 bug consisting of taking the chip select control away from the SPI peripheral and managing it directly as a GPIO line. 2) Taking the maximum frequencies supported by the actual board and the slave devices into account and basing the whole thing on the master clock instead of hardcoding a divisor as previously done. 3) Fixing the above mentioned data corruption. - KASSERT that TX/RX command and data sizes match on transfers. - Introduce a mutex ensuring that only one child device is running a SPI transfer at a time. [1] - Add preliminary, #ifdef'ed out support for setting the chip select. [1] - Use the RX instead of the TX commando size when setting up the RX side of a transfer. - For controllers having SPI_SR_TXEMPTY, i.e. !RM9200, also wait for the completion of the TX part of transfers before stopping the whole thing again. - Use DEVMETHOD_END. [1] - Use NULL instead of 0 for pointers. [1, partially] Additional testing by: Ian Lepore Submitted by: Ian Lepore [1] MFC after: 1 week
* Isolate the global pv list lock from data and other locks to prevent falsealc2012-06-022-2/+22
| | | | sharing within the cache.
* Honor sysctl for TTL.tuexen2012-06-021-3/+3
| | | | MFC after: 3 days
* Don't request data from the IPv6 layer, which is not used.tuexen2012-06-021-26/+3
| | | | MFC after: 3 days
* Add missing prototypes. While at it, sort them alphabetically.marius2012-06-022-14/+73
| | | | MFC after: 3 days
* Remove nitems() now that it lives in <sys/param.h> since r236486.marius2012-06-021-2/+0
|
* Take advantage of nitems().marius2012-06-022-7/+3
| | | | MFC after: 3 days
* Fix typo [1]. Use commas to separate flag printouts, in style withkib2012-06-022-2/+2
| | | | | | | other parts of function. Submitted by: bf [1] MFC after: 1 week
* Add nitems(), a macro for determining the number of elements in amarius2012-06-021-0/+1
| | | | | | | statically-allocated array. Obtained from: OpenBSD (in principle) MFC after: 3 days
* Update the print mask for decoding b_flags. Add print masks forkib2012-06-022-3/+9
| | | | | | b_vflags and b_xflags_t and print them as well. MFC after: 1 week
* Use plain store for atomic_store_rel on x86, instead of implicitlykib2012-06-022-76/+76
| | | | | | | | | locked xchg instruction. IA32 memory model guarantees that store has release semantic, since stores cannot pass loads or stores. Reviewed by: bde, jhb Tested by: pho MFC after: 2 weeks
* Remove an unused parameter.tuexen2012-06-023-8/+8
| | | | MFC after: 3 days
* Install libcxxrt's C++ ABI and unwind headers. This is done in libc++'sdim2012-06-021-0/+7
| | | | | | | Makefile, so these headers go into the same destination directory as libc++'s own headers, currently /usr/include/c++/v1. MFC after: 3 days
* mdoc: minor Bl improvements.joel2012-06-0210-14/+22
|
* Tabify libcxxrt and libc++'s Makefiles.dim2012-06-022-154/+154
| | | | MFC after: 3 days
* Remove invalid remark about pipes.ed2012-06-021-2/+2
| | | | | | | | | The stat structures returned on pipes seems to contain all the information required by POSIX. Especially the wording "and thus to a pipe" makes little sense, because it seems to imply a certain relationship between sockets and pipes that simply isn't there. MFC after: 2 weeks
* Add appropriate checks for ic_bsschan being set to IEEE80211_CHAN_ANYC inhselasky2012-06-023-7/+32
| | | | | | | some of the USB WLAN drivers. This fixes a panic when using monitor mode. MFC after: 1 week Submitted by: PseudoCylon
* mdoc: minor Bl improvements.joel2012-06-027-33/+42
|
* Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.mav2012-06-024-142/+208
| | | | | | | This allows to control it with `camcontrol negotiate adaX -T (en|dis)able` on the fly, same as for SCSI devices. Sponsored by: iXsystems, Inc.
* Document the limitations of the -delete primaryeadler2012-06-021-1/+4
| | | | | | | | PR: bin/166554 Submitted by: Richard Kettlewell <rjk@greenend.org.uk> Discussed with: jilles Approved by: bcr MFC after: 3 days
* Clean up and complete the incomplete deferred enable code.mjacob2012-06-015-69/+160
| | | | | | | | | | | | Make the default role NONE if target mode is selected. This allows ctl(8) to switch to/from target mode via knob settings. If we default to role 'none', this causes a reset of the 24XX f/w which then causes initiators to wake up and notice when we come online. Reviewed by: kdm MFC after: 2 weeks Sponsored by: Spectralogic
* Print FC PortID as a hex number. This makes it easy tomjacob2012-06-011-3/+3
| | | | | | | | | | | | figure out domain, etc.. Zero ATIO and INOTify allocations. It makes for much less guesswork when looking at the structure and seeing 'deadc0de' present. Reviewed by: kdm MFC after: 2 weeks Sponsored by: Spectralogic
* Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.jkim2012-06-015-15/+13
|
* Centralize the specification of the krb5 build tools.obrien2012-06-0114-19/+11
|
* mdoc: terminate quoted string and remove unneeded paragraph macro.joel2012-06-011-2/+1
|
* Tidy up code clutter in SMP case a bit. No functional change.jkim2012-06-012-20/+12
|
* Doh! Bump the date as I touched it!sbruno2012-06-011-1/+1
| | | | | Noted by: gjb@ MFC after: 3 days
* Revert r236380eadler2012-06-011-15/+0
| | | | | | PR: kern/166780 Requested by: many Approved by: cperciva (implicit)
* Add a new -e flag to pciconf(8)'s list mode to display PCI error details.jhb2012-06-016-11/+254
| | | | | | | | Currently this dumps the status of any error bits in the PCI status register and PCI-express device status register. It also lists any errors indicated by version 1 of PCI-express Advanced Error Reporting (AER). MFC after: 1 week
* Call AcpiSetFirmwareWakingVector() with interrupt disabled for consistency.jkim2012-06-012-4/+4
|
* Add notes and information for exposed tuneables in bce(4).sbruno2012-06-011-3/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add source of documentation for this driver. Thanks to Warren Block for the suggestions for readability. Note that strict_rx_mtu in inverted in stable/7/8/9 and is named loose_rx_mtu. Ensure that this is converted over when MFC'd hw.bce.rx_ticks hw.bce.rx_ticks_int hw.bce.rx_quick_cons_trip hw.bce.rx_quick_cons_trip_int hw.bce.tx_ticks hw.bce.tx_ticks_int hw.bce.tx_quick_cons_trip hw.bce.tx_quick_cons_trip_int hw.bce.strict_rx_mtu hw.bce.hdr_split hw.bce.tx_pages hw.bce.rx_pages hw.bce.tso_enable hw.bce.verbose Reviewed by: Warren Block <wblock@wonkity.com> MFC after: 3 days
* Improve style(9) in the previous commit.jkim2012-06-013-8/+8
|
* Execute AcpiLeaveSleepStatePrep() for S1 and reduce code duplication.jkim2012-06-011-2/+2
| | | | MFC after: 3 days
* Improve support for detaching kernel drivers on a per interface basis.hselasky2012-06-012-4/+19
| | | | MFC after: 1 week
* Commit a portion of 233708 I missed earlier and don't include thejhb2012-06-011-3/+6
| | | | | definition of igb_start() and igb_start_locked() (nor set if_start in the ifnet) when igb(4) uses if_transmit.
* Remove unnecessary initializations. The BSS of boot2 is in factjhb2012-06-011-2/+2
| | | | | | zero'd when boot2 begins execution by the _start() routine in btxcsu.S. MFC after: 1 week
* Extend VERBOSE_SYSINIT to also print out the name of variables passedjhb2012-06-011-9/+28
| | | | | | | | to SYSINIT routines if they can be resolved via symbol look up in DDB. To avoid false positives, only honor a name if the symbol resolves exactly to the pointer value (no offset). MFC after: 1 week
* Call AcpiLeaveSleepStatePrep() in interrupt disabled contextiwasaki2012-06-015-96/+125
| | | | | | | | | | | | | | | | | | (described in ACPICA source code). - Move intr_disable() and intr_restore() from acpi_wakeup.c to acpi.c and call AcpiLeaveSleepStatePrep() in interrupt disabled context. - Add acpi_wakeup_machdep() to execute wakeup MD procedures and call it twice in interrupt disabled/enabled context (ia64 version is just dummy). - Rename wakeup_cpus variable in acpi_sleep_machdep() to suspcpus in order to be shared by acpi_sleep_machdep() and acpi_wakeup_machdep(). - Move identity mapping related code to acpi_install_wakeup_handler() (i386 version) for preparation of x86/acpica/acpi_wakeup.c (MFC candidate). Reviewed by: jkim@ MFC after: 2 days
* Style(9) improvements: remove unnecessary parenthesis, improve orderghelmer2012-06-011-50/+52
| | | | | | | of local variable declarations, remove bogus casts, and resolve long lines. Reviewed by: bde
* Make TCP LRO work properly with VIMAGE kernels rather than just panicing.bz2012-06-011-0/+11
| | | | | | | There's no VIMAGE context set there yet as this is before if_ethersubr.c. MFC after: 3 days X-MFC with: r235981
* Use AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ statusmav2012-06-013-6/+37
| | | | change. Now that allows switching between PIO and DMA modes on the fly.
* Add myself as a new committer.jase2012-06-011-0/+1
| | | | Approved by: flo, culot (mentors)
* Small cleanups. No functional change.tuexen2012-06-012-4/+0
| | | | MFC after: 3 days
* Make devd build with libc++.dim2012-06-011-1/+1
| | | | MFC after: 3 days
* Fix dangling else in libc++'s __bit_reference header. This has alsodim2012-06-011-0/+4
| | | | | | been sent upstream. MFC after: 3 days
* Pull in r155978 from upstream llvm trunk:dim2012-06-011-1/+1
| | | | | | | | Fix unintentional use of operator bool. This enables llvm's bugpoint tool to build with libc++. MFC after: 3 days
* Add a missing #include, required for IEEE80211_DEBUG.adrian2012-06-011-0/+2
|
* Add sysctl to query amount of swap space freeeadler2012-06-011-0/+15
| | | | | | | PR: kern/166780 Submitted by: Radim Kolar <hsn@sendmail.cz> Approved by: cperciva MFC after: 1 week
* Adding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as ↵eadler2012-06-014-0/+6
| | | | | | | | | | | | modules. PR: kern/166239 Submitted by: Pavel Timofeev <timp87@gmail.com> Discussed on: -stable, -scsi Reviewed by: scottl No objection from: mjacob Approved by: cperciva MFC after: 3 days
OpenPOWER on IntegriCloud