summaryrefslogtreecommitdiffstats
path: root/sys/dev
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
* 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
* 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
* Clean up and complete the incomplete deferred enable code.mjacob2012-06-014-68/+159
| | | | | | | | | | | | 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
* Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.jkim2012-06-013-11/+11
|
* 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.
* Call AcpiLeaveSleepStatePrep() in interrupt disabled contextiwasaki2012-06-012-4/+14
| | | | | | | | | | | | | | | | | | (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
* Add a missing #include, required for IEEE80211_DEBUG.adrian2012-06-011-0/+2
|
* 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
* Fix warning generated by clang;eadler2012-06-011-1/+1
| | | | | | | | | | warning: equality comparison with extraneous parentheses [-Wparentheses-equality] Reported by: arundel Reviewed by: gnn Approved by: cperciva MFC after: 3 days
* Remove unnecessary device_printfs.yongari2012-05-311-8/+0
| | | | Pointed out by: marius
* Try to finally get the point in time at which bge_add_sysctls() is calledmarius2012-05-301-3/+3
| | | | | | | | right; it needs to be called before bge_can_use_msi() but in turn requires bge_flags to be properly set. Submitted by: yongari MFC after: 3 days
* Cosmetic nit. If a configured volume has no label, don't emit an emptysbruno2012-05-301-4/+11
| | | | | | | string for the name during probe. Simply indicate that it has no label. Submitted by: bhaga@ MFC after: 3 days
* Add support for Sun 1040 PCI Quad Serialeadler2012-05-301-0/+6
| | | | | | | PR: kern/163450 Submitted by: Anonymous Hardware Hacker <silicium@harmony-p.ath.cx> Approved by: cperciva MFC after: 1 week
* Add device ids for the Winbond 83627DHG-P chip and set the registers tornoland2012-05-291-0/+8
| | | | | | | trigger the keyboard reset line on timeout. Reviewed by: bz MFC after: 1 week
* Fix a typo in wbwd so that CRF5 is actually written to the data registerrnoland2012-05-291-1/+1
| | | | | | | rather than the index register. Reviewed by: bz MFC after: 3 days
* Add quirk for Marvell based AHCI controller.hselasky2012-05-291-0/+1
| | | | | MFC after: 3 days Suggested by: mav @
* Reorder resume procedures.iwasaki2012-05-291-2/+2
| | | | | | | | | | DEVICE_RESUME() should be done before AcpiLeaveSleepState() because PCI config space evaluation can be occurred during control method executions. This should fix one of the hang up problems on resuming. MFC after: 3 days
* Fix the problem acpi_sleep_force() hang.iwasaki2012-05-291-3/+17
| | | | | | | Suspending from callout cause the freeze in DEVICE_SUSPEND(). Suspend from acpi_task thread in stead. MFC after: 3 days
* Update mxge(4) firmware to the latest version available fromgallatin2012-05-294-34836/+34187
| | | | | | | Myricom (1.4.55). MFC after: 3 days Sponored by: Myricom, Inc.
* A small simplification to i915_gem_pager_fault().alc2012-05-281-1/+1
| | | | Reviewed by: kib
* Make legacy ATA to not call device_add_child() with unit number butmav2012-05-281-1/+1
| | | | | | without driver name. This fixed legacy ATA breakage by r235978. MFC after: 1 week
* Disable end of buffer fixup by default. New DDX does not need this, andkib2012-05-281-1/+1
| | | | | | | | | since batch_len is unused by Linux driver, it seems that it is sometimes gets passed wrong. This causes command buffer corruption and GPU hung. Old GEMified DDX drivers that needs this workaround are not supported. MFC after: 1 month
* Fix calculation of the execution buffer end in the mapped pageskib2012-05-281-3/+3
| | | | | | when it is spilled into the next page. MFC after: 1 month
* - Fix some typos in mmc_acquire_bus() and mmc_send_csd().marius2012-05-271-10/+104
| | | | | | | | | | | - Fix some math errors in mmc_decode_csd_sd(). - Fix incorrect arguments to mmc_send_app_op_cond() in mmc_go_discovery(). - Add reporting of CSD for debug purposes. - Add detection (and skipping) of password-locked cards. - Add setting of block length on card if necessary. Submitted by: Patrick Kelsey MFC after: 3 days
* Import EHCI attachment driver for Freescale integrated controller.raj2012-05-261-0/+423
| | | | | Obtained from: Freescale, Semihalf. Written by: Michal Dubiel
* Make the VIA workaround application somewhat more consistent with themarius2012-05-261-1/+2
| | | | ATI one.
* Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.marius2012-05-261-2/+2
| | | | MFC after: 3 days
* Make the VIA workaround actually do its intended job.marius2012-05-261-1/+1
| | | | MFC after: 3 days
* Remove extraneous empty lines.marius2012-05-261-32/+0
| | | | MFC after: 3 day
* - When creating the DMA tag for user data, don't ask for more segmentsmarius2012-05-262-39/+29
| | | | | | | | | | | | | | than required for handling MAXPHYS and report the resulting maximum I/O size to CAM instead of implicitly limiting it to DFLTPHYS. - Move the variables of sym_action2() out of nested scope as required by style(9) and remove extraneous curly braces. - Replace a magic value for PCIR_COMMAND with the appropriate macro. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. Tested with a HBA donated by wilko. MFC after: 3 days
* Add the AR9280 workarounds for PCIe suspend/resume.adrian2012-05-261-2/+52
| | | | | | | | | | | These aren't strictly needed at the moment as we're not doing APSM and forcing the NIC in and out of network sleep. But, they don't hurt. Tested: * AR9280 (mini-PCIe) Obtained from: Qualcomm Atheros, Linux ath9k
* Avoid using hard-coded numbers here.adrian2012-05-261-1/+1
|
* Remove an unneeded field from ath_buf.adrian2012-05-261-1/+0
|
* Add some AR5416/AR5418 WAR's for power-on and suspend/resume:adrian2012-05-251-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Now that ah_configPCIE is called for both power on and suspend/resume, make sure the right bit(s) are cleared and set when suspending and resuming. Specifically: + force disable/enable the PCIe PHY upon suspend/resume; + reprogram the PCIe WAR register when resuming and upon power-on. * Add a recipe which powers down any PCIe PHY hardware inside the AR5416 (which is the PCI variant) to save on power. I have (currently) no way to test exactly how much power is saved, if any. Tested on: * AR5416 cardbus - although unfortunately pccard/cbb/cardbus currently detaches the NIC upon suspend, I don't think it's a proper test case. * AR5418 PCIe attached to expresscard - since we're not doing PCIe APSM, it's also not likely a full/good test case. In both instances I went through a handful of suspend/resume cycles and ensured that the STA vap reassociated correctly. TODO: * Setup a laptop to simply sit in a suspend/resume loop, making sure that the NIC always correctly comes back; * Start doing suspend/resume tests with actual traffic going on in the background, as I bet this process is all quite racy at the present; * Test adhoc/hostap mode, just to be completely sure it's working correctly; * See if I can jury rig an external power source to an AR5416 to test out whether ah_disablePCIE() works. Obtained from: Qualcomm Atheros
* * According to the reference code, AR_WA_D3_L1_DISBABLE is bit 14.adrian2012-05-251-1/+5
| | | | | | | * Add some other WAR bits (very usefully described too) in preparation for porting over some suspend/resume fixes from ath9k/Atheros. Obtained from: Qualcomm Atheros
* More Cicada/Vitesse PHY ids.raj2012-05-252-1/+10
| | | | Obtained from: Semihalf
* oops - ath_hal_disablepcie is actually destined for another purpose,adrian2012-05-2511-25/+40
| | | | | | | not to disable the PCIe PHY in prepration for reset. Extend the enablepci method to have a "poweroff" flag, which if equal to true means the hardware is about to go to sleep.
* MFp4 bz_ipv6_fast:bz2012-05-251-29/+67
| | | | | | | | | | | | Add TSO6 and LRO/IPv6 support. Fix the module Makefile to at least properly inlcude opt_inet6.h and allow builds without INET or INET6. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-6/+10
| | | | | | | | | | | | Allow LRO to work on IPv6 as well. Fix the module Makefile to at least properly inlcude opt_inet6.h and allow builds without INET or INET6. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Prepare for improved (read: pcie) suspend/resume support.adrian2012-05-256-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Flesh out the pcie disable method for 11n chips, as they were defaulting to the AR5212 (empty) PCIe disable method. * Add accessor macros for the HAL PCIe enable/disable calls. * Call disable on ath_suspend() * Call enable on ath_resume() NOTE: * This has nothing to do with the NIC sleep/run state - the NIC still will stay in network-run state rather than supporting network-sleep state. This is preparation work for supporting correct suspend/resume WARs for the 11n PCIe NICs. TODO: * It may be feasible at this point to keep the chip powered down during initial probe/attach and only power it up upon the first configure/reset pass. This however would require correct (for values of "correct") tracking of the NIC power configuration state from the driver and that just isn't attempted at the moment. Tested: * AR9280 on my Lenovo T60, but with no suspend/resume pass (yet).
* Merge ACPICA 20120518.jkim2012-05-241-0/+14
|
* MFp4 bz_ipv6_fast:bz2012-05-242-0/+2
| | | | | | | | | | | | | | | | | | | | | | Significantly update tcp_lro for mostly two things: 1) introduce basic support for IPv6 without extension headers. 2) try hard to also get the incremental checksum updates right, especially also in the IPv4 case for the IP and TCP header. Move variables around for better locality, factor things out into functions, allow checksum updates to be compiled out, ... Leave a few comments on further things to look at in the future, though that is not the full list. Update drivers with appropriate #includes as needed for IPv6 data type in LRO. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Recognize version 3.1 of the SEC crypto engine.raj2012-05-242-0/+5
|
* Preset (clear) the ranges we're supposed to fill from the FDT. If amarcel2012-05-241-0/+8
| | | | | particular range (either I/O memory or I/O port) is not defined in the FDT, we're not handing uninitialized structures back to our caller.
* Fix the following clang warning in drm2:dim2012-05-241-1/+1
| | | | | | | | | | | | sys/dev/drm2/i915/intel_display.c:8861:3: error: expression result unused [-Werror,-Wunused-value] _intel_wait_for(dev, ^~~~~~~~~~~~~~~~~~~~ @/dev/drm2/i915/intel_drv.h:55:2: note: expanded from macro '_intel_wait_for' ret; \ ^~~ Reviewed by: kib MFC after: 1 week
OpenPOWER on IntegriCloud