summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [asmc] Add support for MacBookPro5,1adrian2016-05-032-0/+34
| | | | | | Tested by: Johannes Lundberg <johannes@brilliantservice.co.jp> PR: kern/209179 Submitted by: Thomas Brierley <tomxor@gmail.com>
* ioat(4): Implement CRC and MOVECRC APIscem2016-05-033-4/+281
| | | | | | And document them in ioat.4. Sponsored by: EMC / Isilon Storage Division
* ioat(4): Add CRC descriptor structurecem2016-05-031-7/+81
| | | | | | | | | | | | | | Add CRC/MOVECRC operations, as well as the TEST and STORE variants. With these operations, a CRC32C can be computed over one or more descriptors' source data. When the STORE operation is encountered, the accumulated CRC32C is emitted to memory. A TEST operations triggers an IOAT channel error if the accumulated CRC32C does not match one in memory. These operations are not exposed through any API yet. Sponsored by: EMC / Isilon Storage Division
* ioat(4): Limit descriptor allocation to low 40 bitscem2016-05-031-1/+4
| | | | | | | | The IOAT engine can only address the low 40 bits (1 TB) of physmem via the 'next descriptor' pointer. Restrict acceptable range given to bus_dma_tag_create to match. Sponsored by: EMC / Isilon Storage Division
* sys/sys: missed in r298981.pfg2016-05-031-1/+1
| | | | | | | I am sure I've missed others as well, but at least it should be more readable now. No functional change.
* Remove the most useful INET || INET6 check leftover from whenever,bz2016-05-031-3/+0
| | | | | | | doing nothing. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Correct wording.kib2016-05-031-1/+1
| | | | | Submitted by: David A. Bright MFC after: 2 weeks
* Add some device IDs from Intel Sunrise Point chipsets.mav2016-05-034-0/+15
| | | | MFC after: 2 weeks
* Add EVFILT_VNODE open, read and close notifications.kib2016-05-035-8/+79
| | | | | | | While there, order EVFILT_VNODE notes descriptions alphabetically. Based on submission, and tested by: Vladimir Kondratyev <wulf@cicgroup.ru> MFC after: 2 weeks
* sys/sys: minor spelling fixes.pfg2016-05-0322-27/+27
| | | | | | While the changes are minor, these headers are very visible. MFC after: 2 weeks
* dev/iscsi: minor spelling fixes.pfg2016-05-031-2/+2
| | | | | | No functional change. Reviewed by: trasz
* Fix a memory leak in the devctl notify code.scottl2016-05-031-0/+1
| | | | | Submitted by: markj MFC after: asap
* Revert r298955 for the cxgbe firmware.pfg2016-05-033-6/+6
| | | | | | These files have checksums that are none of my business. Requested by: np
* tcp/lro: Refactor the active list operation.sephe2016-05-031-8/+22
| | | | | | | | Ease more work concerning active list, e.g. hash table etc. Reviewed by: gallatin, rrs (earlier version) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6137
* xen/i386: enable the platform hypercall for i386royger2016-05-031-2/+2
| | | | | | | Not sure why the platform hypercall was disabled on i386, just enable it in order to fix compilation of the PV timer on i386. Sponsored by: Citrix Systems R&D
* kern: Add phashinit_flags(), which allows malloc(M_NOWAIT)sephe2016-05-033-9/+46
| | | | | | | | | | It will be used for the upcoming LRO hash table initialization. And probably will be useful in other cases, when M_WAITOK can't be used. Reviewed by: jhb, kib Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6138
* sys/dev: minor spelling fixes.pfg2016-05-03364-650/+650
| | | | Most affect comments, very few have user-visible effects.
* [bwn] update bwn_dummy_transmission().adrian2016-05-031-4/+21
| | | | | | This is based on the b43 code. It'll be used by the upcoming 11n phy. Obtained from: Linux b43 (concept)
* [bwn] add PHY types for later PHYs.adrian2016-05-031-0/+6
| | | | Obtained from: Linux b43
* [bwn] migrate bwn_dummy_transmission() back to main, as it'll be used by ↵adrian2016-05-033-67/+68
| | | | | | other PHYs. The Linux b43 driver uses this in other PHYs besides the g PHY.
* Revert bus_get_cpus() for now.jhb2016-05-0318-290/+35
| | | | | I really thought I had run this through the tinderbox before committing, but many places need <sys/types.h> -> <sys/param.h> for <sys/bus.h> now.
* Fix an off by one error when remapping MSI-X vectors.jhb2016-05-031-2/+2
| | | | | | | | | | pci_remap_msix() can be used to alter the mapping of allocated MSI-X vectors to the MSI-X table. The code had an off by one error when adding the IRQ resources after performing a remap. This was fatal for any vectors in the table that used the "last" valid IRQ as those vectors were assigned a garbage IRQ value. MFC after: 3 days
* Change a rounding operation that had missing braces into a roundup2()peter2016-05-031-7/+4
| | | | | | | | macro. Adjust the buffer clipping code to work as expected. This prevented a number of machines in the FreeBSD.org cluster from booting due to "ZFS: i/o error - all block copies unavailable" after an unclean shutdown.
* [bwn] break out the 'g' phy code into a separate source file.adrian2016-05-028-3662/+3820
| | | | | | | | | | * Break out the 'g' phy code; * Break out the debugging bits into a separate source file, since some debugging prints are done in the phy code; * Make some more chip methods in if_bwn.c public. This brings the size of if_bwn.c down to 6,805 lines which is now approaching managable.
* [bhnd] fix more module dependencies.adrian2016-05-023-4/+5
| | | | | Submitted by: Landon Fuller <landonf@landonf.org> Differential Revision: https://reviews.freebsd.org/D6180
* bsdinstall: fix static address assignment for protected wireless networks.avos2016-05-021-1/+1
| | | | | | | Filter out IFCONFIG_PREFIX variable (which may contain WPA keyword) from ifconfig parameters. PR: 169199
* Undo a spell fix introduced in r298942, which breaks compilation.tuexen2016-05-021-1/+1
|
* [bwn] break out the LP PHY code into a separate file.adrian2016-05-026-3648/+3825
| | | | | | | | | This (and eventually migrating the other PHY code out) is in preparation for adding the 11n PHY. No, the 11ac PHY (for the BCM4260 softmac part) isn't yet open source, so we can't grow that. Yet. This trims ~3,700 lines of code from if_bwn.c, bringing it down to a slightly less crazy sounding 10,446 lines of code.
* [bhnd] add module dependencies.adrian2016-05-025-2/+7
| | | | | Submitted by: Landon Fuller <landonf@landonf.org> Differential Revision: https://reviews.freebsd.org/D6179
* netinet/sctp*: minor spelling fixes in comments.pfg2016-05-0212-46/+46
| | | | | | No functional change. Reviewed by: tuexen
* net80211: fix MAC address change via SIOCSIFLLADDR ioctl.avos2016-05-021-1/+11
| | | | | | | Recheck MAC address on SIOCSIFFLAGS; as a result, 'ifconfig wlan0 ether <addr>' can be used after interface startup. PR: 208933
* sys/vm: minor spelling fixes in comments.pfg2016-05-029-16/+16
| | | | No functional change.
* dev/ath: minor spelling fixes in comments.pfg2016-05-0226-43/+43
| | | | | | No functional change. Reviewed by: adrian
* Enhance the ddb examine (x) command.pfg2016-05-021-10/+13
| | | | | | | | | | | | | | | | | * Change x/a to work similar to gdb. The content of the memory is treated as an address, printed symbolically and the address is advanced. This way you can x/a <stack_address> and then just hit return a bunch of times to locate useful data on the stack. * Add x/p. The content of the memory is treated as an address and printed as hex. This is based on the similar commit from DragonFlyBSD without the cosmetic changes. Relnotes: yes Obtained from: DragonflyBSD (Matthew Dillon) Reference: 0624d20e86affcd708609cbf9014207537537a72
* [asmc] add support for more models and restore keyboard backlight after resume.adrian2016-05-022-6/+85
| | | | | | | | | | | | | | | | This patch adds support for restoring backlight after resume and adds models Macbook3,1 MacbookAir5,1 MacbookAir5,2 It also incorporates fixes for bug #175260, bug #203610 and bug #203512 so those can be closed if this patch is applied. PR: kern/209156 PR: kern/175260 PR: kern/203610 PR: kern/203512 Submitted by: Johannes Lundberg <johannes@brilliantservice.co.jp>
* iwm: fix parameters for iwm_add_channel_band()avos2016-05-021-3/+2
| | | | | | | It accepts <first index, max index + 1>, not <first index, number of entries>. Reported by: adrian
* [bhnd] add missing bus interface SRC bits, required after the last source ↵adrian2016-05-025-5/+6
| | | | import.
* xen/control: improve suspend/resumeroyger2016-05-021-2/+12
| | | | | | | | | | | | Implement several small improvements to the suspend/resume Xen sequence: - Call the power_suspend_early event before stopping all processes. - Stop all processes. This was done implicitly previously by putting all the CPUs in a known IPI handler. - Warm up the timecounter. - Re-initialize the time of day register. Sponsored by: Citrix Systems R&D
* Add a new bus method to fetch device-specific CPU sets.jhb2016-05-0218-35/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bus_get_cpus() returns a specified set of CPUs for a device. It accepts an enum for the second parameter that indicates the type of cpuset to request. Currently two valus are supported: - LOCAL_CPUS (on x86 this returns all the CPUs in the package closest to the device when DEVICE_NUMA is enabled) - INTR_CPUS (like LOCAL_CPUS but only returns 1 SMT thread for each core) For systems that do not support NUMA (or if it is not enabled in the kernel config), LOCAL_CPUS fails with EINVAL. INTR_CPUS is mapped to 'all_cpus' by default. The idea is that INTR_CPUS should always return a valid set. Device drivers which want to use per-CPU interrupts should start using INTR_CPUS instead of simply assigning interrupts to all available CPUs. In the future we may wish to add tunables to control the policy of INTR_CPUS (e.g. should it be local-only or global, should it ignore SMT threads or not). The x86 nexus driver exposes the internal set of interrupt CPUs from the the x86 interrupt code via INTR_CPUS. The ACPI bus driver and PCI bridge drivers use _PXM to return a suitable LOCAL_CPUS set when _PXM exists and DEVICE_NUMA is enabled. They also and the global INTR_CPUS set from the nexus driver with the per-domain set from _PXM to generate a local INTR_CPUS set for child devices. Reviewed by: wblock (manpage) Differential Revision: https://reviews.freebsd.org/D5519
* dev/usb: minor spelling fixes in comments.pfg2016-05-0228-52/+52
| | | | | | No functional change. Reviewed by: hselasky
* etc: minor spelling fixes.pfg2016-05-0214-43/+43
| | | | | | Mostly comments but also some user-visible strings. MFC after: 2 weeks
* xen/time: fix PV clock resolutionroyger2016-05-021-4/+1
| | | | | | | | | | | | The current resolution of the Xen PV clock is too high, which causes an adjustment of 5s to be applied to it. Reduce the resolution to be the same as the RTC plus one, so it's always selected as the best source when available on x86. Also don't reset the clock on resume, it's pointless and discards any previous adjustments. Sponsoted by: Citrix Systems R&D
* xen/time: allow Dom0 to set the host timeroyger2016-05-021-1/+25
| | | | | | | | | Dom0 should be able to set the host time. This is implemented by first writing to the RTC (as would be done on bare metal), and then using the XENPF_settime64 hypercall in order to force Xen to update the wallclock shared page of all domains. Sponsored by: Citrix Systems R&D
* atrtc: export function to set RTCroyger2016-05-022-21/+29
| | | | | | | | | | | This is going to be used by the Xen clock on Dom0 in order to set the RTC of the host. The current logic in atrtc_settime is moved to atrtc_set and the unused device_t parameter is removed from the atrtc_set function call so it can be safely used by other callers. Sponsored by: Citrix Systems R&D Reviewed by: kib, jhb Differential revision: https://reviews.freebsd.org/D6067
* xen/timer: remove the timer setup looproyger2016-05-021-18/+3
| | | | | | | | | | With the removal of the usage of the VCPU_SSHOTTMR_future flag, now all errors from xentimer_vcpu_start_timer should be considered fatal, and the loop is no longer needed since in case of setting the timer in the past we will get an event interrupt right away (instead of returning ETIME). Sponsored by: Citrix Systems R&D MFC after : 2 weeks
* xen/x86: don't lose event interruptsroyger2016-05-021-1/+2
| | | | | | | | | | | | | | | | | On slow platforms with unreliable TSC, such as QEMU emulated machines, it is possible for the FreeBSD kernel to request the next event in the past. In that case, in the current implementation of xentimer_vcpu_start_timer, we simply return -ETIME. To be precise Xen returns -ETIME and we pass it on. As a consequence we need to loop around to function to make sure that the timer is properly set. Instead it is better to always ask the hypervisor for a timer event, even if the timeout is past. To do that, remove the VCPU_SSHOTTMR_future flag. Submitted by: Stefano Stabellini <sstabellini@kernel.org> Reviewed by: royger MFC after: 2 weeks
* iwn: do not buffer frames for non-passive channels (it's not needed).avos2016-05-021-2/+4
|
* fgetc returns an int not a char.bz2016-05-021-2/+1
| | | | | Found by: powerpc builds failing due to comparing with EOF raised: "comparison is always false due to limited range of data type"
* dev/random: minor spelling fixes in comments.pfg2016-05-022-4/+4
| | | | | | | No functional change. Reviewed by: markm Approved by: so
* Issue NOTE_EXTEND when a directory entry is added to or removed fromkib2016-05-022-2/+9
| | | | | | | | the monitored directory as the result of rename(2) operation. The renames staying in the directory are not reported. Submitted by: Vladimir Kondratyev <wulf@cicgroup.ru> MFC after: 2 weeks
OpenPOWER on IntegriCloud