aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen headers from 4.2 to 4.6Roger Pau Monné2015-10-0674-2497/+4062
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull the latest headers for Xen which allow us to add support for ARM and use new features in FreeBSD. This is a verbatim copy of the xen/include/public so every headers which don't exits anymore in the Xen repositories have been dropped. Note the interface version hasn't been bumped, it will be done in a follow-up. Although, it requires fix in the code to get it compiled: - sys/xen/xen_intr.h: evtchn_port_t is already defined in the headers so drop it. - {amd64,i386}/include/intr_machdep.h: NR_EVENT_CHANNELS now depends on xen/interface/event_channel.h, so include it. - {amd64,i386}/{amd64,i386}/support.S: It's not neccessary to include machine/intr_machdep.h. This is also fixing build compilation with the new headers. - dev/xen/blkfront/blkfront.c: The typedef for blkif_request_segmenthas been dropped. So directly use struct blkif_request_segment Finally, modify xen/interface/xen-compat.h to throw a preprocessing error if __XEN_INTERFACE_VERSION__ is not set. This is allow us to catch any file where xen/xen-os.h is not correctly included. Submitted by: Julien Grall <julien.grall@citrix.com> Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D3805 Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=288917
* Remove debugging variable from r143761.Gleb Smirnoff2015-10-061-3/+0
| | | | Notes: svn path=/head/; revision=288916
* Add a comment specifying how we implement rfc3042.Hiren Panchasara2015-10-061-0/+10
| | | | | | | | | Differential Revision: D3746 MFC after: 1 week Sponsored by: Limelight Networks Notes: svn path=/head/; revision=288914
* Exploit r288122 to address a cosmetic issue. Pages belonging to eitherAlan Cox2015-10-061-1/+1
| | | | | | | | | | | | | | the kernel or kmem object can't be paged out. Since they can't be paged out, they are never enqueued in a paging queue. Nonetheless, passing PQ_INACTIVE to vm_page_unwire() in kmem_unback() creates the appearance that these pages are being enqueued in the inactive queue. As of r288122, we can avoid giving this false impression by passing PQ_NONE. Submitted by: kmacy Differential Revision: https://reviews.freebsd.org/D1674 Notes: svn path=/head/; revision=288912
* On some interfaces, ipfilter drops UDP packets with zero checkum.Cy Schubert2015-10-061-0/+16
| | | | | | | | | | | | This commit fixes that. PR: 166372 Submitted by: mk@neon1.net Reviewed by: Darren Reed <darrenr@reed.wattle.id.au> MFC after: 1 week Notes: svn path=/head/; revision=288910
* Save the link register in savectx().Justin Hibbits2015-10-062-0/+4
| | | | | | | Pointed out by: jhb Notes: svn path=/head/; revision=288909
* Include additional info in ptrace(2) KTR traces:John Baldwin2015-10-051-18/+23
| | | | | | | | | | | - The new PC value and signal passed to PT_CONTINUE, PT_DETACH, PT_SYSCALL, and PT_TO_SC[EX]. - The system call code returned via PT_LWPINFO. MFC after: 1 week Notes: svn path=/head/; revision=288902
* Mark swap_pager_putpages static at its definition. It was alreadyWarner Losh2015-10-051-3/+1
| | | | | | | | | | static at its declaration. Remove needless swapdev_strategy forward declaration. MFC After: 3 days Notes: svn path=/head/; revision=288901
* Attach interrupt controller device before other devices.Ruslan Bukin2015-10-051-1/+2
| | | | | | | Sponsored by: University of Cambridge Notes: svn path=/head/; revision=288824
* Fix printf-like formats for KASSERT.Mark Murray2015-10-051-1/+1
| | | | | | | | Submitted by: jenkins Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=288780
* It appears that under some circumstances, like virtualisiation, theMark Murray2015-10-051-1/+10
| | | | | | | | | | | | | | | | | | 'rdrand' instruction may occasionally not return random numbers, in spite of looping attempts to do so. The reusult is a KASSERT/panic. Reluctantly accept this state-of-affairs, but make a noise about it. if this 'noise' spams the console, it may be time to discontinue using that source. This is written in a general way to account for /any/ source that might not supply random numbers when required. Submitted by: jkh (report and slightly different fix) Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=288703
* Remove the unnecessary cast.Kevin Lo2015-10-051-2/+1
| | | | Notes: svn path=/head/; revision=288689
* Set correct argemdio addr, comment out arge1 as its not physicallySean Bruno2015-10-042-13/+11
| | | | | | | | connected to anything. Move a couple of devices out of the kernel and into modules. Notes: svn path=/head/; revision=288672
* When trying to execute from a misaligned address raise a SIGBUS with theAndrew Turner2015-10-041-0/+5
| | | | | | | | | | invalid address alignment code. Obtained from: EuroBSDCon Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=288671
* Invoke lle_event for new entry iff it has lladdr set.Alexander V. Chernikov2015-10-041-2/+4
| | | | Notes: svn path=/head/; revision=288670
* Replace M_NOWAIT with M_WAITOK for consistency with other wireless drivers.Kevin Lo2015-10-041-4/+1
| | | | Notes: svn path=/head/; revision=288667
* Fix max TX power settings for RT5390/RT5392.Kevin Lo2015-10-042-3/+2
| | | | | | | While here remove wrong definition of RT2860_USB_PHY_MAN_RST. Notes: svn path=/head/; revision=288666
* When asserting IL bit in exception syndrome register, print the rawKonstantin Belousov2015-10-041-1/+1
| | | | | | | | | | register value. Reviewed by: andrew Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288665
* Simplify if (lladdr) condition in nd6_cache_lladdr():Alexander V. Chernikov2015-10-041-8/+5
| | | | | | | | | | | | | For case (7) (new entry) nothing has to be done except lle_event. Invoke this event directly from "create new lle" code block. For case (4) (existing entry, same mac) useless mac update was performed, along with LLENTRY_RESOLVED lle_event. There was no sense in doing that, since nothing really had changed. Simply avoid this condition instead. Given that, condition was simplified to (3),(5) states which can be merged with previous block. Notes: svn path=/head/; revision=288664
* Add missing stack unwind information to several assembly functions onRobert Watson2015-10-043-2/+7
| | | | | | | | | | | | | | | | | ARMv6/7: - Define _SAVE() macro to allow unwind data to be conditionally defined for ARM assembly code in the kernel. - Use _SAVE() to provide unwind information for bcopy_page(), and two (of many) instances of copyin() and copyout(). Reviewed by: andrew, imp MFC after: 3 days Sponsored by: University of Cambridge Notes: svn path=/head/; revision=288662
* Eliminate nd6_llinfo_settimer(). All consumers were converted toAlexander V. Chernikov2015-10-042-13/+2
| | | | | | | | | use nd6_llinfo_settimer_locked() in r216022. Make nd6_llinfo_settimer_locked() static: last external consumer was converted in r288124. Notes: svn path=/head/; revision=288658
* Add __noinline attribute to several functions to ease dtrace instrumentationAlexander V. Chernikov2015-10-041-10/+22
| | | | Notes: svn path=/head/; revision=288657
* Remove per complete the fec aggregation protocol.Marcelo Araujo2015-10-042-11/+0
| | | | | | | | | | | | | | | The remove began with revision r271733. NOTE: This patch must never be merge to 10-Stable Reviewed by: glebius Approved by: bapt (mentor) Relnotes: Yes Sponsored by: EuroBSDCon Sweden. Differential Revision: D3786 Notes: svn path=/head/; revision=288654
* drm2: a few minor fixes after r280183Adrian Chadd2015-10-048-24/+19
| | | | | | | | | | | | | | | | | * Remove obsolete drm_agp_*_memory() prototypes. * Fix comment in drm_fops.c (outisde -> outside). * Fix some formatting issues in drm_stub.c (spaces -> tabs). * Add missing case statement (gen == 3) in intel_gpu_reset(). * Restore pci_enable_busmaster() call in the init path (fixes gpu hang on i945GM). * Replace M_WAITOK with M_NOWAIT when the return value of malloc is checked (may be incorrect). Submitted by: <s3erios@gmail.com> Reviewed by: dumbbell Approved by: dumbbell Differential Revision: https://reviews.freebsd.org/D3413 Notes: svn path=/head/; revision=288653
* Fix condition for nd6_llinfo_getholdsrc() introduced in r287484.Alexander V. Chernikov2015-10-041-2/+3
| | | | | | | | | | | | | Effectively it always returned NULL so SAS was always performed and sometimes the result might have been different. Fix state machine change accidentally introduced in r287985: state (4) inside nd6_cache_lladdr() (existing entry got nd message with the same lladdress) started to cause lle state transition to STALE instead of no-action. Notes: svn path=/head/; revision=288652
* Fix run(4) mbuf queue flushing / freeing.Adrian Chadd2015-10-041-1/+20
| | | | | | | | Ensure things are freed during interface stop, or start may end up never being able to transmit a full queue. Notes: svn path=/head/; revision=288649
* Random zyd(4) fixes to bring TX handling in line with rsu, etcAdrian Chadd2015-10-041-2/+20
| | | | | | | | | | | | | * don't free buffers in the TX routine, only in transmit/raw_xmit * free nodes + references * .. and free those nodes/references /before/ net80211 detach Tested: * STA mode: zyd0: HMAC ZD1211B, FW 47.25, RF AL2230 S0, PA0 LED 0 BE0 NP1 Gain1 F0 Notes: svn path=/head/; revision=288648
* Fix to make compile on gcc-4.2.1 (eg mips, sparc64.)Adrian Chadd2015-10-041-20/+20
| | | | Notes: svn path=/head/; revision=288647
* Fix to compile using gcc-4.2 (eg mips, sparc64.)Adrian Chadd2015-10-041-22/+22
| | | | Notes: svn path=/head/; revision=288646
* net80211: reduce code duplication in the ieee80211_ioctl_setwmeparam() + fix ↵Adrian Chadd2015-10-031-35/+17
| | | | | | | | | | comments. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3701 Notes: svn path=/head/; revision=288643
* rum(4): add WME support.Adrian Chadd2015-10-033-15/+103
| | | | | | | | | | | | | Tested: * WUSB54GC, HOSTAP and STA modes. * Me: rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3700 Notes: svn path=/head/; revision=288642
* run(4): fix WME support (untested).Adrian Chadd2015-10-031-21/+22
| | | | | | | | | | | | | | Now run(4) fetches parameters from ic->ic_wme.wme_params array, which is never initialized (and can be safely removed). This patch replaces &ic->ic_wme.wme_params with &ic->ic_wme.wme_chanParams.cap_wmeParams (contains parameters for local station; used by other drivers with WME support). Tested: * me: STA: run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 38:83:45:11:78:ae Notes: svn path=/head/; revision=288641
* Revert r288628 and instead fix a discrepancy between the posix_fadvise(2)Mark Johnston2015-10-031-2/+3
| | | | | | | | | | man page and POSIX: posix_fadvise(2) returns an error number on failure. Reported by: jilles MFC after: 1 week Notes: svn path=/head/; revision=288640
* rum(4): fix stats interpretation in rum_ratectl_task()Adrian Chadd2015-10-031-15/+20
| | | | | | | | | | | | Testing: * WUSB54GC, STA mode Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3690 Notes: svn path=/head/; revision=288639
* rum(4): set short/long retry limitsAdrian Chadd2015-10-033-1/+25
| | | | | | | | | | | | | | | Now device will use retry limit, which is set via 'ifconfig <interface> maxretry <number>'. Tested: * Tested on WUSB54GC, STA mode. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3689 Notes: svn path=/head/; revision=288638
* rum(4): fix sequence number generation.Adrian Chadd2015-10-031-9/+26
| | | | | | | | | | | * drop erroneous RT2573_TX_MORE_FRAG flag; * provide RT2573_TX_HWSEQ where needed. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3672 Notes: svn path=/head/; revision=288637
* net80211: drop ieee80211_beacon_offsets parameter from ↵Adrian Chadd2015-10-0312-37/+29
| | | | | | | | | | ieee80211_beacon_alloc() and ieee80211_beacon_update() Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3659 Notes: svn path=/head/; revision=288636
* net80211: drop redundant 3rd parameter from iv_key_set().Adrian Chadd2015-10-039-29/+28
| | | | | | | | | | | | The MAC can be fetched from the key struct. I added the ndis updates to make it compile. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3657 Notes: svn path=/head/; revision=288635
* rum(4): drop unused 'node id' parameter.Adrian Chadd2015-10-032-26/+21
| | | | | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3655 Notes: svn path=/head/; revision=288634
* rum(4): add support for hardware encryption (WEP, TKIP and CCMP).Adrian Chadd2015-10-033-29/+451
| | | | | | | | | | | | | | | | | | | | This diff includes: * Transmitter Addresses, Keys and TKIP MIC addition to the Security Key Table. * Proper SEC Control Registers initialization and maintenance. * Additional flags and values in TX descriptor, which are required for encryption support. * Error checking in RX path. Tested: * Tested on WUSB54GC, STA (WEP, TKIP, CCMP), HOSTAP (CCMP) and IBSS (CCMP, WPA-None) modes. * rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode (CCMP+TKIP) Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3640 Notes: svn path=/head/; revision=288633
* rum(4): implement iv_update_beacon call (fixes client power save support).Adrian Chadd2015-10-031-0/+54
| | | | | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3632 Notes: svn path=/head/; revision=288632
* rum(4): attach rum_update_slot to ic_updateslot.Adrian Chadd2015-10-031-3/+13
| | | | | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3631 Notes: svn path=/head/; revision=288631
* The return value of posix_fadvise(2) is just an error status, soMark Johnston2015-10-031-3/+2
| | | | | | | | | | sys_posix_fadvise() should simply return the errno (or 0) to syscallenter() rather than setting a return value. MFC after: 1 week Notes: svn path=/head/; revision=288628
* Reduce the scope of a variable to the only file where it is used.Alan Cox2015-10-033-2/+2
| | | | Notes: svn path=/head/; revision=288627
* rum(4): split rum_prepare_beacon() into 'alloc' and 'set' stagesAdrian Chadd2015-10-033-24/+44
| | | | | | | | | | | Note: I manually had to merge this; I merged in the "put beacon_offsets into vap" commit before this. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3628 Notes: svn path=/head/; revision=288623
* rum(4): add support for AHDEMO mode.Adrian Chadd2015-10-031-2/+7
| | | | | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3627 Notes: svn path=/head/; revision=288622
* rum(4): simplify rum_set_bssid(), rum_set_macaddr() and rum_update_promisc()Adrian Chadd2015-10-032-18/+11
| | | | | | | | | | | | Tested: * rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3626 Notes: svn path=/head/; revision=288621
* rum(4): do not corrupt MAC addressAdrian Chadd2015-10-032-3/+5
| | | | | | | | | | | Don't override the NIC MAC address with an overridden MAC address for a VAP. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3625 Notes: svn path=/head/; revision=288619
* rum(4): add error handling for rum_enable_tsf_sync() and rum_prepare_beacon()Adrian Chadd2015-10-031-22/+42
| | | | | | | | | | | | | | Tested: * rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode Note: haven't tested AP mode yet; will do once the rest of the AP mode / power save commits are in. Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3624 Notes: svn path=/head/; revision=288618
* Perform a single batched update to the object's paging-in-progress countAlan Cox2015-10-031-4/+2
| | | | | | | rather than updating it for each page. Notes: svn path=/head/; revision=288617