summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle single-byte reads from the bvmcons port (0x220) by returningjhb2014-04-081-0/+9
| | | | | | | | 0xff. Some guests may attempt to read from this port to identify psuedo-PNP ISA devices. (The ie(4) driver in FreeBSD/i386 is one example.) Reviewed by: grehan
* Quick mdoc/whitespace/spelling pass, this needs some more work.brueffer2014-04-081-20/+24
|
* Explicitly initialize 'vmname' to NULL.jhb2014-04-081-0/+1
| | | | Reviewed by: grehan
* Add support for SCSI UNMAP commands to CTL.mav2014-04-088-29/+702
| | | | | | | | | | | | | | | | | | | This patch adds support for three new SCSI commands: UNMAP, WRITE SAME(10) and WRITE SAME(16). WRITE SAME commands support both normal write mode and UNMAP flag. To properly report UNMAP capabilities this patch also adds support for reporting two new VPD pages: Block limits and Logical Block Provisioning. UNMAP support can be enabled per-LUN by adding "-o unmap=on" to `ctladm create` command line or "option unmap on" to lun sections of /etc/ctl.conf. At this moment UNMAP supported for ramdisks and device-backed block LUNs. It was tested to work great with ZFS ZVOLs. For file-backed LUNs UNMAP support is unfortunately missing due to absence of respective VFS KPI. Reviewed by: ken MFC after: 1 month Sponsored by: iXsystems, Inc
* Put proper ${} around variable expansion. This fixes the build on 9.2imp2014-04-081-2/+2
| | | | with fmake (which complained). Not sure why bmake didn't complain though...
* Add Stacey Son's binary activation patches that allow remapping ofsbruno2014-04-0810-0/+1654
| | | | | | | | | | | | | | | execution to a emumation program via parsing of ELF header information. With this kernel module and userland tool, poudriere is able to build ports packages via the QEMU userland tools (or another emulator program) in a different architecture chroot, e.g. TARGET=mips TARGET_ARCH=mips I'm not connecting this to GENERIC for obvious reasons, but this should allow the kernel module to be built by default and enable the building of the userland tool (which automatically loads the kernel module). Submitted by: sson@ Reviewed by: jhb@
* (Re)connect sys/boot/amd64 to the buildemaste2014-04-081-1/+4
| | | | Sponsored by: The FreeBSD Foundation
* Fix NFS deadlock vulnerability. [SA-14:05]delphij2014-04-086-29/+126
| | | | | Fix "Heartbleed" vulnerability and ECDSA Cache Side-channel Attack in OpenSSL. [SA-14:06]
* Wakeup only one thread of added in r263978i at a time.mav2014-04-081-1/+1
| | | | | | This slightly reduces lock congestion between threads. Submitted by: trasz
* Add explicit casts to quiet warnings in libefiemaste2014-04-081-4/+6
| | | | Sponsored by: The FreeBSD Foundation
* Fix printf args for 64-bit archsemaste2014-04-081-11/+11
| | | | Sponsored by: The FreeBSD Foundation
* Correct a variable's type for 64-bit Ficlemaste2014-04-081-1/+1
| | | | FICL_INT is long.
* Revert r264132, disconnecting sys/boot/amd64 for nowemaste2014-04-081-4/+1
| | | | Some 64-bit Ficl warnings broke tinderbox builds.
* Update to fix at r264244.ray2014-04-081-6/+10
| | | | | | | | | | o Unmute terminal when done with driver replacement. o Move init fonts to early point. o Minor cleanup. MFC after: 6 days X-MFC-with: r264244 r264242 Sponsored by: The FreeBSD Foundation
* Fix cursor color in reverse video mode.ray2014-04-081-7/+9
| | | | | | | PR: kern/188196 Submitted by: Claude Buisson <clbuisson@orange.fr> (original version) MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Distinguish between the different variants and configurations of Sunixmarius2014-04-082-4/+73
| | | | | | | | | | {MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S. Among others, this fixes the hang seen when trying to probe the none- existent second UART on an actually 1-port chip. Obtained from: NetBSD (BAR layouts) MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
* Add some debugging and forcing of the BAW to match what the currentadrian2014-04-081-16/+44
| | | | | | | | | | | | | | | | | | tracked BAW actually is. The net80211 code that completes a BAR will set tid->txa_start (the BAW start) to whatever value was called when sending the BAR. Now, in case there's bugs in my driver code that cause the BAW to slip along, we should make sure that the new BAW we start at is actually what we currently have it at, not what we've sent. This totally breaks the specification and so this stays a printf(). If it happens then I need to know and fix it. Whilst here, add some debugging updates: * add TID logging to places where it's useful; * use SEQNO().
* Don't do continue inside the scheduler loop; we really need to checkadrian2014-04-081-2/+2
| | | | | | | if we've hit the end of the list and cycled around to the first node again. Obtained from: DragonflyBSD
* Correct the actual definition of ath_tx_tid_filt_comp_single() toadrian2014-04-081-5/+10
| | | | | | | | | | | | | | | | match how it's used. This is another bug that led to aggregate traffic hanging because the BAW tracking stopped being accurate. In this instance, a filtered frame that exceeded retries would return a non-error, which would mean the caller would never remove it from the BAW. But it wouldn't be added to the filtered list, so it would be lost forever. There'd thus be a hole in the BAW that would never get transmitted and this leads to a traffic hang. Tested: * Routerstation Pro, AR9220 AP
* Add a comment explaining the obvious.adrian2014-04-081-0/+1
|
* Don't resume a TID on each filtered frame completion - only do it ifadrian2014-04-081-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we did suspend it. The whole suspend/resume TID queue thing is supposed to be a matched reference count - a subsystem (eg addba negotiation, BAR transmission, filtered frames, etc) is supposed to call pause() once and then resume() once. ath_tx_tid_filt_comp_complete() is called upon the completion of any filtered frame, regardless of whether the driver had aleady seen a filtered frame and called pause(). So only call resume() if tid->isfiltered = 1, which indicates that we had called pause() once. This fixes a seemingly whacked and different problem - traffic hangs. What was actually going on: * There'd be some marginal link with crappy behaviour, causing filtered frames and BAR TXing to occur; * A BAR TX would occur, setting the new BAW (block-ack window) to seqno n; * .. and pause() would be called, blocking further transmission; * A filtered frame completion would occur from the hardware, but with tid->isfiltered = 0 which indiciates we haven't actually marked the queue yet as filtered; * ath_tx_tid_filt_comp_complete() would call resume(), continuing transmission; * Some frames would be queued to the hardware, since the TID is now no longer paused; * .. and if some make it out and ACked successfully, the new BAW may be seqno n+1 or more; * .. then the BAR TX completes and sets the new seqno back to n. At this point the BAW tracking would be loopy because the BAW start was modified but the BAW ring buffer wasn't updated in lock step. Tested: * Routerstation Pro + AR9220 AP
* Updates to i.MX53:rpaulo2014-04-088-88/+135
| | | | | | | * Define support for the SDHCI driver, although it doesn't work yet * Fix the memory mappings for IPU [1] Reviewed by: ray [1]
* Add a basic set of data points which count the number of sleep entriesadrian2014-04-081-0/+35
| | | | | | | | | that are being done by the OS. For now this'll match up with the "wakeups"; although I'll dig deeper into this to see if we can determine which sleep state the CPU managed to get into. Most things I've seen these days only expose up to C2 or C3 via ACPI even though the CPU goes all the way down to C6 or C7.
* Remove a bogus re-assignment.kevlo2014-04-081-1/+0
|
* Fix panic on load new driver while vt(4) is in VGA textmode.ray2014-04-071-5/+27
| | | | | | | | | | | | o Mute terminal while vt(4) driver change in progress. o Reset VDF_TEXTMODE before init new driver. o Assign default font, if new driver is not in TEXTMODE. o Do not update screen while driver changing. Resolved by: adrian Reported by: tyler MFC after: 7 days Sponsored by: The FreeBSD Foundation
* Loosen the processing of *_IF_aliasN vars to be less strict. Previously,dteske2014-04-074-38/+293
| | | | | | | | | | | the first alias had to be _alias0 and processing stopped at the first non- defined variable (preventing gaps). Allowing gaps gives the administrator the ability to group aliases in an adhoc manner and also lifts the requirement to renumber aliases simply to comment-out an existing one. Aliases are processed in numerical ascending order. Discussed on: -rc MFC after: 1 week
* Do not fill screen, while muted.ray2014-04-071-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),tuexen2014-04-071-10/+10
| | | | | | since rt_addrmsg() gets also called from other functions. MFC after: 3 days
* Thinko: don't forget to apply 'howto' in case init(8) isn't running.ed2014-04-071-2/+1
|
* Need to test .MAKE.LEVEL everywhere before using it for bootstrappingimp2014-04-071-2/+2
| | | | issues between fmake and bmake.
* For GNU as, add two missing modes for each of the fcomip and fucomipdim2014-04-072-0/+16
| | | | | | | | | instructions. Partially obtained from OpenBSD by Pedro Giffuni, while I added the fcomip variants. Apparently this should help with compiling certain variants of WebKit. MFC after: 3 days
* Clean up shutdown_nice(). Just send the right signal to init(8).ed2014-04-071-11/+9
| | | | | | | | | | | | | Right now, init(8) cannot distinguish between an ACPI power button press or a Ctrl+Alt+Del sequence on the keyboard. This is because shutdown_nice() sends SIGINT to init(8) unconditionally, but later modifies the arguments to reboot(2) to force a certain behaviour. Instead of doing this, patch up the code to just forward the appropriate signal to userspace. SIGUSR1 and SIGUSR2 can already be used to halt the system. While there, move waittime to the function where it's used; kern_reboot().
* IFp4 @1192291:pjd2014-04-071-1/+8
| | | | | | | | | | - Don't include sys/caprights.h, leverage the fact that cap_rights_t is also defined in sys/types.h. - Include sys/types.h directly. - For systems that do not have cap_rights_t, define it, so we can use it in au_to_rights() prototype. Discussed with: rwatson
* Implement the final missing sysctls by moving ipf_auth_softc_t fromcy2014-04-075-87/+117
| | | | | | | | | ip_auth.c to ip_auth.h. ip_frag_soft_t moves from ip_frag.c to ip_frag.h. mlfk_ipl.c creates sysctl MIBs that reference control blocks that are dynamically created when IP Filter is loaded. This necessitated creating them on-the-fly rather than statically at compile time. Approved by: glebius (mentor)
* Fix table alignment. EVFILT_PROCDESC is longer than the existing filters.ed2014-04-071-1/+1
|
* Implement kqueue(2) for procdesc(4).ed2014-04-076-17/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | kqueue(2) already supports EVFILT_PROC. Add an EVFILT_PROCDESC that behaves the same, but operates on a procdesc(4) instead. Only implement NOTE_EXIT for now. The nice thing about NOTE_EXIT is that it also returns the exit status of the process, meaning that we can now obtain this value, even if pdwait4(2) is still unimplemented. Notes: - Simply reuse EVFILT_NETDEV for EVFILT_PROCDESC. As both of these will be used on totally different descriptor types, this should not clash. - Let procdesc_kqops_event() reuse the same structure as filt_proc(). The only difference is that procdesc_kqops_event() should also be able to deal with the case where the process was already terminated after registration. Simply test this when hint == 0. - Fix some style(9) issues in filt_proc() to keep it consistent with the newly added procdesc_kqops_event(). - Save the exit status of the process in pd->pd_xstat, as we cannot pick up the proctree_lock from within procdesc_kqops_event(). Discussed on: arch@ Reviewed by: kib@
* These were bogusly placed in the arm directory. Move them to theirimp2014-04-075-0/+0
| | | | proper location in powerpc directory.
* Add some assertions to ensure that the target array doesn't get accessedscottl2014-04-072-6/+35
| | | | | | | out of bounds. Obtained from: Netflix, Inc. MFC after: 3 days
* Merge from projects/pf r264198:mm2014-04-071-6/+12
| | | | | | | Execute pf_overload_task() in vnet context. Fixes a vnet kernel panic. Reviewed by: trociny MFC after: 1 week
* Move sys/arm/econa to sys/arm/cavium/cns11xx.rpaulo2014-04-0718-25/+25
|
* Use a more professional device description.rpaulo2014-04-071-1/+1
|
* units(1): make -V print version instead of -veadler2014-04-072-11/+7
| | | | | | | | | | | | | | | The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
* Add man page for udplite(4).kevlo2014-04-072-0/+97
|
* Minor style cleanups.kevlo2014-04-073-16/+16
|
* Add support for UDP-Lite protocol (RFC 3828) to IPv4 and IPv6 stacks.kevlo2014-04-0713-104/+440
| | | | | | | | Tested with vlc and a test suite [1]. [1] http://www.erg.abdn.ac.uk/~gerrit/udp-lite/files/udplite_linux.tar.gz Reviewed by: jhb, glebius, adrian
* units(1): fix spellingeadler2014-04-071-1/+1
| | | | Pointyhat to: me
* units(1): Add some some additional unitseadler2014-04-071-0/+6
| | | | Most of these are also recognized by GNU units
* Do not build the amd64 UEFI loader with GCCemaste2014-04-071-0/+4
| | | | | | | | | | The UEFI loader causes buildworld to fail when building with (in-tree) GCC, due to a typedef redefinition. As it happens the in-tree GCC cannot successfully build the UEFI loader anyhow, as it does not support __attribute__((ms_abi)). Thus, just avoid trying to build it with GCC, rather than disconnecting it from the build until the underlying issue is fixed. Sponsored by: The FreeBSD Foundation
* Clear the backlight level when it's turned off. Also, reduce the delay times tojhibbits2014-04-061-4/+4
| | | | | | | less conservative values, also found in the radeonkms driver. MFC after: 2 weeks X-MFC-with: r264205
* Fix the memory region. This board has two memory regions.rpaulo2014-04-061-1/+2
|
OpenPOWER on IntegriCloud