summaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* cxgbe(4): Provide information about traffic classes in the sysctl mib.Navdeep Parhar2016-06-071-1/+122
| | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=301540
* INTRNG: As follow up of r301451, implement mapping and configurationMichal Meloun2016-06-072-9/+41
| | | | | | | | | | of gpio pin interrupts by new way. Note: This removes last consumer of intr_ddata machinery and we remove it in separate commit. Notes: svn path=/head/; revision=301539
* net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash propertiesSepherosa Ziehau2016-06-078-17/+18
| | | | | | | | | Reviewed by: hps, erj, tuexen Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6688 Notes: svn path=/head/; revision=301538
* cxgbe(4): Track the state of the hardware traffic schedulers in theNavdeep Parhar2016-06-072-0/+30
| | | | | | | | | | driver. This works as long as everyone uses set_sched_class_params to program them. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=301535
* cxgbe(4): Break up set_sched_class. Validate the channel number andNavdeep Parhar2016-06-061-128/+108
| | | | | | | | | | min/max rates against their actual limits (which are chip and port specific) instead of hardcoded constants. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=301531
* cxgbe(4): Create a reusable struct type for scheduling class parameters.Navdeep Parhar2016-06-061-13/+15
| | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=301520
* Defer the creation of ACPI thermal kthreads to a startup sysinit.John Baldwin2016-06-061-35/+44
| | | | | | | | | The SYSINIT runs at SI_SUB_KICK_SCHEDULER after the scheduler is fully initialized and timers are working. This fixes booting in the EARLY_AP_STARTUP case. Notes: svn path=/head/; revision=301518
* xen-netfront: fix initializationRoger Pau Monné2016-06-061-5/+18
| | | | | | | | | | | | | | | | | A couple of mostly cosmetic fixes for the final initialization of netfront: - Switch to "connected" state before starting to kick the rings. - Correctly use "rxq" in the initialization loop (previously rxq was not updated in the loop, and netfront would kick np->rxq[N] several times). - Declare and define xn_connect as static, it's not used outside of this file. Reviewed by: Wei Liu <wei.liu2@citrix.com> Sponsored by: Citrix Systems R&D Differential revision: https://reviews.freebsd.org/D6657 Notes: svn path=/head/; revision=301512
* Remove erroneous lock assertionsStanislav Galabov2016-06-061-2/+0
| | | | | | | | | | | In mediatek etherswitch support, functions mtkswitch_reg_write32_mt7621 and mtkswitch_reg_read32_mt7621 are called without locks held, so lock assertions fail. Remove the lock assertions. Sponsored by: Smartcom - Bulgaria AD Notes: svn path=/head/; revision=301497
* sfxge(4): update TX vFIFO ULL tag location to avoid merge conflictAndrew Rybchenko2016-06-061-2/+2
| | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=301495
* sfxge(4): pick an RSS bucket for the packet enqueued and select TXQ accordinglyAndrew Rybchenko2016-06-061-0/+18
| | | | | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6723 Notes: svn path=/head/; revision=301494
* sfxge(4): set up the indirection table using the kernel-driven RSS bucket idsAndrew Rybchenko2016-06-061-0/+5
| | | | | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6722 Notes: svn path=/head/; revision=301493
* sfxge(4): bind interrupts to CPUs in accordance with bucket to CPU mapAndrew Rybchenko2016-06-061-0/+11
| | | | | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6721 Notes: svn path=/head/; revision=301492
* sfxge(4): restrict the maximum number of RSS channels by the number of RSS ↵Andrew Rybchenko2016-06-061-0/+22
| | | | | | | | | | | | | | | buckets This is done because one has no point to have more channels since they will be unused. Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6720 Notes: svn path=/head/; revision=301491
* sfxge(4): get RSS key to be programmed into NIC from the kernelAndrew Rybchenko2016-06-061-0/+13
| | | | | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6719 Notes: svn path=/head/; revision=301490
* hyperv/vmbus: Constify channel messageSepherosa Ziehau2016-06-063-38/+44
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6708 Notes: svn path=/head/; revision=301488
* hyperv/vmbus: Factor out channel message processingSepherosa Ziehau2016-06-064-32/+38
| | | | | | | | | | | This paves the way for further cleanup. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6707 Notes: svn path=/head/; revision=301487
* [bwn] don't use a 1MB CCK RTS frame for 11a OFDM transmissions.Adrian Chadd2016-06-061-4/+5
| | | | Notes: svn path=/head/; revision=301485
* hyperv/vmbus: Define type for channel messages.Sepherosa Ziehau2016-06-063-4/+10
| | | | | | | | | | | And fix message processing; only channel messages are supported. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6706 Notes: svn path=/head/; revision=301484
* hyperv: Move machine dependent bits into machine dependent files.Sepherosa Ziehau2016-06-064-31/+140
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6701 Notes: svn path=/head/; revision=301483
* Cleanup COMPAT_FREEBSD32 support.Bryan Drewery2016-06-052-14/+6
| | | | | | | | | | | | | | | | | This is a NOP. The COMPAT_IA32 was renamed in r205014 to COMPAT_FREEBSD32 and COMPAT_ARCH32 does not seem to have existed. Also remove some leftovers from the sysent rework in r301404. Include freebsd32_util.h for the freebsd32_sysent prototype. X-MFC-With: r301404 Reported by: kib MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301460
* INTRNG - change the way how an interrupt mapping data are providedSvatopluk Kraus2016-06-059-0/+155
| | | | | | | | | | | to the framework in OFW (FDT) case. This is a follow-up to r301451. Differential Revision: https://reviews.freebsd.org/D6634 Notes: svn path=/head/; revision=301453
* Report negotiated MaxBurstLength and FirstBurstLength in "iscsictl -v"Edward Tomasz Napierala2016-06-052-1/+4
| | | | | | | | | and "ctladm islist -v" outputs. MFC after: 1 month Notes: svn path=/head/; revision=301437
* [bwn] Add missing firmware release calls.Adrian Chadd2016-06-051-0/+3
| | | | | | | | | | This trips me up whenever I'm fooling around with partially supported NICs that fail to fully attach or initialise - the firmware gets loaded and references, but something fails - and the firmware references aren't cleaned up. Notes: svn path=/head/; revision=301435
* [bwn] Enable PHY-LP 5GHz support for the one NIC I have tested it on so far.Adrian Chadd2016-06-051-11/+15
| | | | | | | | | | | | | | | | | | After perusing the PHY-LP code (don't ask why; honest) I discovered that it /has/ 5GHz support - but it's not ever used. I found one NIC - a BCM4312 w/ pci id 0x4315 - which advertised dual-band PHY-LP support. Turns out it works. Whilst here, move up the support bit logging code so I can use it to debug this. Tested: * BCM4312 (pci id 0x4315); 5GHz STA operation Notes: svn path=/head/; revision=301434
* [bwn] complain usefully if a PHY-N PHY is detected with no support is ↵Adrian Chadd2016-06-051-0/+3
| | | | | | | | | | compiled in. Log something other than "error 6" if the attach fails because the GPL PHY-N code isn't included. Notes: svn path=/head/; revision=301433
* sfxge(4): allow firmware to auto-configure event queues on MedfordAndrew Rybchenko2016-06-053-13/+158
| | | | | | | | | | | | | | | | | | | On Medford, licenses are required to enable RX and event cut through and to disable RX batching. To avoid the need for the driver to make decisions based on the licensing state, the MC_CMD_INIT_EVQ has been extended to allow us to leave the decision to the firmware. If the adapter is licensed for low-latency use, the firmware will choose the optimal settings for latency, otherwise it will use the best settings for throughput. For Huntington we still need to choose the settings ourselves. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6717 Notes: svn path=/head/; revision=301427
* [acpi] graphics drivers want access to acpi lid handleAdrian Chadd2016-06-051-1/+3
| | | | | | | | | | the graphics drivers can benefit from access to the lid handle for querying and getting notifications Submitted by: kmacy Differential Revision: https://reviews.freebsd.org/D6643 Notes: svn path=/head/; revision=301418
* Fix build after r301404.Bryan Drewery2016-06-041-0/+4
| | | | | | | | X-MFC-With: r301404 MFC after: 1 week Notes: svn path=/head/; revision=301414
* bhnd(4): support IPX OTP NVRAM/SPROM data sourceLandon J. Fuller2016-06-0410-103/+159
| | | | | | | | | | | | | | | | | | | Add support for fetching SPROM data from OTP on chipsets with an IPX OTP controller (including the BCM43225). This integrates the NVRAM data source into the chipc_caps capability structure, and adds a sprom_offset field that can be used with OTP to locate the SPROM image data (found within the general use region, H/W subregion). This also removes one of two duplicate parse error messages reported by both the bhnd_sprom driver and the underlying SPROM parsing API. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6729 Notes: svn path=/head/; revision=301411
* Switch mips/sentry5 to bhnd(4), and unify with mips/broadcomLandon J. Fuller2016-06-0412-1978/+238
| | | | | | | | | | | | | | | | | | | | | | | | Now that bhnd(4) provides feature parity with the previous siba/mips implementation, we can switch sentry5 over and begin lifting common support code out for use across bhnd(4) embedded targets. Changes: - Fixed enumeration of siba(4) per-core address maps, required for discovery of memory mapped chipc flash region on siba(4) devices. - Simplified bhnd kernel configuration (dropped 'bhndbus' option). - Replaced files.broadcom's direct file references with their corresponding standard kernel options. - Lifted out common bcma/siba nexus support, inheriting from the new generic bhnd_nexus driver. - Dropped now-unused sentry5 siba code. - Re-integrated BCM into the universe build now that it actually compiles. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6712 Notes: svn path=/head/; revision=301410
* bhnd(4): Add support for chipc-attached flashLandon J. Fuller2016-06-047-3/+785
| | | | | | | | | | | | This adds support for serial (via SPI) and parallel (via CFI) flash as found on BCM47xx/BCM53xx SoCs. Submitted by: Michael Zhilin <mizhka@gmail.com> Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6250 Notes: svn path=/head/; revision=301409
* Fix several MIPS/BCM-blocking bugs in bhnd(4) chipcLandon J. Fuller2016-06-046-26/+115
| | | | | | | | | | | | | | | | | | - Correct IRQ lines for UART (to fix IRQ lookup in future) - Check device unit in resource assignment during chipc_add_child - If chipc hint->size is RM_MAX_END, resource end should be same as window end - Clear reference from resource list entry to resource in case of resource release - Add CHIPC_GET_CAPS implementation - Correct chipc flash constants (to be unshifted) - Default implementation of get_attach_type should iterate over device tree - Add default implementation for BHND_CHIPC_GET_CAPS usable by chipc grandchildren Submitted by: Michael Zhilin <mizhka@gmail.com> Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6584 Notes: svn path=/head/; revision=301408
* Support all architectures by just using sysent.Bryan Drewery2016-06-041-46/+33
| | | | | | | | | | | | PowerPC64 has two different ABIs, neither of which is elf64_freebsd_sysvec. Using sysent and freebsd32_sysent achieves the same effect. X-MFC-With: r301130 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301404
* sfxge(4): always be ready to receive batched eventsAndrew Rybchenko2016-06-042-4/+6
| | | | | | | | | | | | | | | | | | | When the low-latency firmware variant is running, it is reported as not being capable of batching RX events, but it can still do so if the FORCE_EV_MERGING flag is set on an RXQ. Therefore we need to handle batched RX events even if the capability isn't set. If this bug is fixed in the firmware such that the capability is set even when running the low-latency firmware variant, it will almost always be reported so I don't think we lose much by removing the check. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6705 Notes: svn path=/head/; revision=301309
* sfxge(4): add helper to compute timer quantumAndrew Rybchenko2016-06-043-31/+55
| | | | | | | | | | | | | | | This also adjusts the timer values used to match the Linux net driver implementation: a) non-zero time intervals should result in at least one quantum b) timer load/reload values are only zero biased for Falcon/Siena Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6704 Notes: svn path=/head/; revision=301308
* [ath] remove now unused parameters.Adrian Chadd2016-06-041-4/+0
| | | | | | | | These will move to being part of the driver btcoex stuff I'm working on, since the HAL doesn't know what to do with them. Notes: svn path=/head/; revision=301307
* [ath_hal] add placeholders for AUDIO stomp for Kite/Kiwi.Adrian Chadd2016-06-041-0/+4
| | | | | | | It just stomps all; which is enough for some testing. Notes: svn path=/head/; revision=301304
* [ath_hal] add BTCOEX_STOMP_AUDIO; delete unused methods.Adrian Chadd2016-06-041-2/+1
| | | | Notes: svn path=/head/; revision=301303
* [run] fix TSF locking in RX radiotap.Adrian Chadd2016-06-041-0/+2
| | | | | | | Submitted by: Imre Vadasz <imre@vdsz.com> Notes: svn path=/head/; revision=301302
* ioat(4): Always log capabilities on attachConrad Meyer2016-06-041-1/+1
| | | | | | | | | | | Different, relatively recent Intel Xeon hardware support radically different features. E.g., BDX support CRC32 while BDX-DE does not. Reviewed by: rpokala (spiritually) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301300
* ioat(4): Export the number of available channelsConrad Meyer2016-06-042-0/+9
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301297
* ioat(4): Make channel indices unsignedConrad Meyer2016-06-042-3/+3
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301296
* When negotiating NTB_SB01BASE_LOCKUP workaround, don't try to limit theAlexander Motin2016-06-041-42/+15
| | | | | | | | | | | | | | | BAR size to 1MB. According to Xeon v3 specifications and my tests, that size register is write-once and so not writeable after BIOS written it. Instead of that, make the code work with BAR of any sufficient size, properly calculating offset within its base. It also simplifies the code. Discussed with: cem MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=301293
* When negotiating MSIX parameters, give other head time to see ourAlexander Motin2016-06-041-3/+10
| | | | | | | | | | | | NTB_MSIX_RECEIVED status, before making upper layers overwrite it. This is not completely perfect, but now it works better then before. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=301292
* Use proper interface for FDT parsing and memory mapping in CESAZbigniew Bodek2016-06-032-12/+13
| | | | | | | | | | | | | Improvements after r301220. Bus space methods are not called so simple pmap_mapdev will suffice. Use OF_getencprop to get buffer with already converted endianess. Pointed out by: ian Submitted by: Michal Stanek <mst@semihalf.com> Obtained from: Semihalf Notes: svn path=/head/; revision=301282
* nxge(4): Remove useless self-assignment.Pedro F. Giffuni2016-06-031-1/+0
| | | | | | | | | | Apparently the original implementation brought a self-assignment to work around some bogus lint issue that is not relevant anymore. CID: 1347070 Notes: svn path=/head/; revision=301276
* xen-blkback: fix error path on failed attachRoger Pau Monné2016-06-031-4/+5
| | | | | | | | | | | | | | | | | | The current error path in case of failure during attach/initialization is not correct and leaves blkback in a stuck state. This is due to blkback waiting for blkfront to switch to state XenbusStateClosed, but if blkfront never attached (because the guest is not even started) it cannot possibly make it to that state. Instead just wait for the frontend to be in a state different than XenbusStateConnected in order to proceed with the shutdown. Also, it is wrong to call xbb_detach directly because it destroys the lock which can still be used by xbb_frontend_changed. Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=301269
* blkback: add support for hotplug scriptsRoger Pau Monné2016-06-031-56/+104
| | | | | | | | | | | | | | | | | | | | Hotplug scripts are needed in order to use fancy disk configurations in xl, like iSCSI disks. The job of hotplug scripts is to locally attach the disk and present it to blkback as a block device or a regular file. This change introduces a new xenstore node in the blkback hierarchy, called "physical-device-path". This is a straigh replacement for the "params" node, which was used before. Hotplug scripts will need to read the "params" node, perform whatever actions are necessary and then write the "physical-device-path" node. The hotplug script is also in charge of detaching the disk once the domain has been shutdown. Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=301268
* sfxge(4): support EVQ timer workaround via MCDIAndrew Rybchenko2016-06-034-26/+127
| | | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/6675 Notes: svn path=/head/; revision=301237