summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Shut down RX before TX - in theory, this should make the chip less likelyadrian2014-08-232-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | to get upset. The Qualcomm Atheros reference design code goes through significant hacks to shut down RX before TX. It doesn't even try do do it in the driver - it actually makes the DMA stop routines in the HAL shut down RX before shutting down TX. So, to make this work for chips that aren't the AR9380 and later, do it in the driver. Shuffle the TX stop/drain HAL calls to be called *after* the RX stop HAL call. Tested: * AR5413 (STA) * AR5212 (STA) * AR5416 (STA) * AR9380 (STA) * AR9331 (AP) * AR9341 (AP) TODO: * test ar92xx series NIC and the AR5210/AR5211, in case there's something even odder about those.
* For CPUs which do hardware cache line unaliasing, use direct map tokib2014-08-231-0/+3
| | | | | | | | access sfbufs. Suggested and reviewed by: alc Tested by: Michael Moll <kvedulv@kvedulv.de> Sponsored by: The FreeBSD Foundation
* Whitespace/style changes merged from projects/ipfw.melifaro2014-08-233-10/+14
|
* Merge buffer-printing changes from from projects/ipfw as preparationmelifaro2014-08-235-365/+532
| | | | | | for branch merge. Requested by: luigi
* Restore pre-r239157 handling of sched_yield(), when thread time slice wasmav2014-08-232-2/+4
| | | | | | | | | aborted, allowing other threads to run. Without this change thread is just rescheduled again, that was illustrated by provided test tool. PR: 192926 Submitted by: eric@vangyzen.net MFC after: 2 weeks
* Also export UNAME_r to fix arm builds.gjb2014-08-231-0/+4
| | | | | | MFC after: 3 days X-MFC-with: r270417 Sponsored by: The FreeBSD Foundation
* Fix arm build breakage when building stable/10 ongjb2014-08-231-0/+4
| | | | | | | head/. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* In r260015, I renamed several identifiers to avoid -Wsystem-headerdim2014-08-231-1/+1
| | | | | | | | | | | warnings. In r261283, I imported libc++ 3.4 release, but this contained one identifier that had not been renamed yet, leading to a compilation error when using -std=c++1y. Fix the compilation error by correctly renaming the identifier. Reported by: rcarter@pinyon.org PR: base/192139 MFC after: 3 days
* ofwfb: Implement vd_bitblt_text_tdumbbell2014-08-231-9/+64
| | | | MFC after: 1 week
* creator_fb: Implement vd_bitblt_text_tdumbbell2014-08-231-8/+62
| | | | MFC after: 1 week
* vt_fb: Implement vd_bitblt_text_t for vt_fb and derivativesdumbbell2014-08-235-26/+79
| | | | MFC after: 1 week
* Add "nobrowse" option. Previously automountd(8) always behaved as iftrasz2014-08-234-11/+71
| | | | | | | | it was set, now it's conditional. PR: 192862 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Don't fail on executable maps that return no entries. This turns uselesstrasz2014-08-231-1/+7
| | | | | | | error message into useful one. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* vt(4): Fix cursor handling in vt_flush()dumbbell2014-08-233-56/+98
| | | | | | | | | | | | | | | There were situations where the cursor was not erased/redrawn or its position was marked as dirty even though it's not displayed. The code is now more straightforward. At the same, add a function to determine if the cursor covers a given area. This is used by backends to know if they need to draw the cursor. This new function should be paired with a new state in struct vt_device, called vd_mshown, which indicates if the cursor should be displayed. This again simplifies vd_bitblt_text_t callback's API. MFC after: 1 week
* Autofs softc needs to be global anyway, so don't pass it as a localtrasz2014-08-234-73/+77
| | | | | | | | variable, and don't store in autofs_mount. Also rename it from 'sc' to 'autofs_softc', since it's global and extern. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add comment explaining one of the quirks in autofs.trasz2014-08-231-0/+8
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add support for /etc/rc.conf.d/<service> subdirectories. This isdes2014-08-232-1/+11
| | | | | | | | particularly useful for services such as "network" (netif) where each interface can now have its own separate configuration file. Add /etc/rc.conf.d to the mtree file so it is always present. MFC after: 3 days
* Setting rc_debug explicitly in /etc/defaults/rc.conf defeats its purpose.des2014-08-231-1/+1
| | | | MFC after: 3 days
* vt(4): Fix a crash in vt_mark_mouse_position_as_dirty() when in textmodedumbbell2014-08-231-8/+25
| | | | | | | | | | | | | In textmode, no font is loaded, thus the page fault in vt_mark_mouse_position_as_dirty() when it wants the font width/height. For now, create a fake area for the textmode. This needs to be modified if vt_vga gains mouse support in textmode. While here, fix a build failure when SC_NO_CUTPASTE is defined: vt_mark_mouse_position_as_dirty() must not be included in this case. MFC after: 1 week
* vt_vga: Give only the character part of term_char_t to vga_get_cp437()dumbbell2014-08-231-1/+1
| | | | | | | | This fixes a bug where vga_get_cp437() was called with an invalid argument. The screen was then filled with '?' instead of the actual character. MFC after: 1 week
* Relax one of the conditions for mapping a page on the fast path.alc2014-08-231-2/+3
| | | | | | Reviewed by: kib X-MFC with: r270011 Sponsored by: EMC / Isilon Storage Division
* Update hptnr(4) driver to version 1.0.1 supplied by the vendor.delphij2014-08-236-22255/+22409
| | | | | | | | | | | | | | | v1.0.1 2014-8-19 * Do not retry the command and reset the disk when failed to enable or disable spin up feature. * Fix up a bug that disk failed to probe if driver failed to access the 10th LBA. * Fix a bug that request timeout but it has been completed in certain cases. * Support smartmontool for R750. Many thanks to HighPoint for continued support of FreeBSD! MFC after: 3 days
* Instead of using timestamp in the AVL, use the memory address whendelphij2014-08-224-27/+36
| | | | | | | | | comparing. Illumos issue: 5095 panic when adding a duplicate dbuf to dn_dbufs MFC after: 3 days
* MFV r270197:delphij2014-08-228-129/+55
| | | | | | | | Illumos issue: 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from <macros.h> MFC after: 2 weeks
* Make DTrace stuff compile with C99 standard.delphij2014-08-227-2/+13
|
* Suppress warnings when retrieving protocol stats from interfaces thatmarkj2014-08-221-6/+6
| | | | | | | don't support IPv6 (e.g. pflog(4)). Reviewed by: hrs MFC after: 2 weeks
* Add some missing checks for unsupported interfaces (e.g. pflog(4)) whenmarkj2014-08-223-20/+41
| | | | | | | | | | handling ioctls. While here, remove duplicated checks for a NULL ifp in in6_control(): this check is already done near the beginning of the function. PR: 189117 Reviewed by: hrs MFC after: 2 weeks
* Restore historical behavior of in_control, which, when no matching addressdelphij2014-08-221-4/+11
| | | | | | | | | | | is found, the first usable address is returned for legacy ioctls like SIOCGIFBRDADDR, SIOCGIFDSTADDR, SIOCGIFNETMASK and SIOCGIFADDR. While there also fix a subtle issue that a caller from a jail asking for INADDR_ANY may get the first IP of the host that do not belong to the jail. Submitted by: glebius Differential Revision: https://reviews.freebsd.org/D667
* Update to the Intel Base driver for the Intel XL710 Ethernet Controller Familyjfv2014-08-2230-3393/+7533
| | | | | | | | | | | | | | | - It was decided to change the driver name to if_ixl for FreeBSD - This release adds the VF Driver to the tree, it can be built into the kernel or as the if_ixlv module - The VF driver is independent for the first time, this will be desireable when full SRIOV capability is added to the OS. - Thanks to my new coworker Eric Joyner for his superb work in both the core and vf driver code. Enjoy everyone! Submitted by: jack.vogel@intel.com and eric.joyner@intel.com MFC after: 3 days (hoping to make 10.1)
* In do_lock_pi(), do not override error from umtxq_sleep_pi() whenkib2014-08-221-2/+4
| | | | | | | | | | doing suspend check. This restores the pre-r251684 behaviour, to retry once after the signal is detected. PR: kern/192918 Submitted by: Elliott Rabe, Dell Inc., Eric van Gyzen <eric@vangyzen.net> Obtained from: Dell Inc. MFC after: 1 week
* vt(4): Remove "FIXME" about multiple locking of vt_buf in vt_flush()dumbbell2014-08-221-7/+2
| | | | | | | | | After some testing, it appears that acquiring the lock once and keeping it longer is slower than taking it multiple times. While here, fix a typo in another comment. MFC after: 1 week
* vt(4): Use the actual size of the mouse when marking its position as dirtydumbbell2014-08-223-39/+30
| | | | | | This fixes a bug where part of the cursor was not erased. MFC after: 1 week
* vt_vga: Remove a "FIXME" comment; the issue was solved in r270338dumbbell2014-08-221-10/+1
| | | | MFC after: 1 week
* vt(4): Don't run vt_set_border() and vt_flush() concurrentlydumbbell2014-08-221-37/+36
| | | | | | | In the case of vt_vga, the two concurrent calls were writing to the same VGA registers, causing incorrect refresh of the screen. MFC after: 1 week
* xen: fix incorrectly accounted freeroyger2014-08-221-3/+3
| | | | | | | | | | | Fix some frees incorrectly assigned to M_XENBUS when the memory is allocated with M_XENSTORE. Sponsored by: Citrix Systems R&D MFC after: 1 week dev/xen/blkback/blkback.c: - Fix incorrect frees.
* vt(4): The offset to center the text area is per-window nowdumbbell2014-08-223-22/+22
| | | | | | | | The previous global offset, based on the last loaded font, had no meaning for other windows. This caused a shifted text area, often partly out-of-screen. MFC after: 1 week
* netback: remove dead coderoyger2014-08-221-37/+0
| | | | | | Remove the xen_net_read_mac function since it's not used anymore. Sponsored by: Citrix Systems R&D
* vt(4): Give the window to vd_bitblt_text_t callbackdumbbell2014-08-223-16/+26
| | | | | | | ... instead of both the buffer and the font. Again, this simplifies the API. MFC after: 1 week
* netback: fixes for netbackroyger2014-08-221-3/+17
| | | | | | | | | | | | | | | This patch contains the following fixes for netback: - Only unbind the evtchn if it has been bound. - Set xnb->bridge to NULL after free to prevent double-freeing it. - Set the MAC address for the host-facing interface to a dummy value. Sponsored by: Citrix Systems R&D dev/xen/netback/netback.c: - Prevent trying to unbind if the evtchn has not been bounded. - Prevent double-freeing xnb->bridge. - Set the MAC address of the host-facing interface to a dummy value, so it can work when the interface is added to a bridge.
* pci: add a new pci_child_added newbus method.royger2014-08-224-0/+20
| | | | | | | | | | | | | | | | | This is needed so when running under Xen the calls to pci_child_added can be intercepted and a custom Xen method can be used to register those devices with Xen. This should not include any functional change, since the Xen implementation will be added in a following patch and the native implementation is a noop. Sponsored by: Citrix Systems R&D Reviewed by: jhb dev/pci/pci.c: dev/pci/pci_if.m: dev/pci/pci_private.h: dev/pci/pcivar.h: - Add the pci_child_added newbus method.
* vt(4): Store cursor bitmap & colors in struct vt_devicedumbbell2014-08-223-74/+56
| | | | | | | This removes the need to specify them to each call to vd_bitblt_text_t and, therefore, simplifies the API. MFC after: 1 week
* vt(4): Mark new mouse position as dirty only when it's actually displayeddumbbell2014-08-221-3/+5
| | | | MFC after: 1 week
* We should never enter the PROBE_SETAN phase if we're not ATAPI, sinceimp2014-08-221-10/+5
| | | | | | | that's ATAPI specific. Instead, skip to PROBE_SET_MULTI instead for non ATAPI protocols. The prior code incorrectly terminated the probe with a break, rather than arranging for probedone to get called. This caused panics or worse on some systems.
* Fix a recursive lock acquisition in vi_reset_dev().tychon2014-08-221-2/+6
| | | | Reviewed by: grehan
* vt_vga: Clip the draw area to never draw offscreendumbbell2014-08-221-0/+13
| | | | | | | | | This fixes a bug when two windows use different fonts, but a longer-term solution is required. The dirty area should be stored as pixels, not character cells, because such coordinates don't have the same meaning in all windows, when using different fonts. MFC after: 1 week
* vt(4): Add new vd_bitblt_text_t callback, and implement it for vt_vgadumbbell2014-08-223-178/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Compared to the deprecated vd_bitbltchr_t callback, vd_bitblt_text_t receives: o the whole text buffer o the dirty area o the mouse cursor (map, position, colors) This allows the backend to perform optimization on how to draw things. The goal is to remove vd_bitbltchr_t and vd_putchar_t, once all driver are converted (only vt_vga is included in this commit). In vt_vga, this allows to draw the text and the cursor in one pass, without ever reading from video memory (because it has all the context). The main benefit is the speed improvement: no more slideshow during boot! Other bugs fixed in vt_vga are: o left-most characters are drawn properly (the left-most pixels were missing with bold characters and some wide letters such as 'm') o no more black square around the cursor o no cursor flickering when the text is scrolling There are still many problems to fix: the known issues are marked with "FIXME" inside the code. MFC after: 1 week
* Ensure that sigaction flags for signal, which disposition is reset tokib2014-08-221-33/+44
| | | | | | | | | | | | | | | | | | | | ignored or default, are not leaking. Apparently, there exists code which relies on SA_SIGINFO not reported for SIG_DFL or SIG_IGN. In kern_sigaction, ignore flags when resetting. Encapsulate the flag and disposition testing into helper sigact_flag_test(). On exec, and when delivering signal with SA_RESETHAND flag set, signals are reset automatically. Use new helper sigdflt(), which removes duplicated code and corrects all flag bits for the signal. For proc0, set sigintr bit for all ignored signals. Ignored signals are consumed in tdsendsignal() and not delivered to the victim thread at all. Reported and tested by: royger Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Check the validity of struct sigaction sa_flags value, reject unknownkib2014-08-221-0/+4
| | | | | | | flags. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Fix a panic which occurs in a VIMAGE-enabled kernel after r270158, andhrs2014-08-221-5/+35
| | | | | | | separate socket_hhook_register() part and put it into VNET_SYS{,UN}INIT() handler. Discussed with: marcel
* Fix powerpc build:delphij2014-08-221-0/+1
| | | | | | Chase r270227 and compile lockstat with C99 standard. Suggested by: bde
OpenPOWER on IntegriCloud