summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Introduce grab and ungrab upcalls. When the kernel desires to grab theimp2014-01-197-5/+199
| | | | | | | | | | console, it calls the grab functions. These functions should turn off the RX interrupts, and any others that interfere. This makes mountroot prompt work again. If there's more generalized need other than prompting, many of these routines should be expanded to do those new things. Reviewed by: bde (with reservations)
* Add VT kernel configuration to ease testing of vt(9), aka Newconsemaste2014-01-192-0/+28
|
* Add nand device and NANDFS into the mix for those boards that haveimp2014-01-193-2/+12
| | | | support for it at the moment.
* Connect NAND for the SAM9260EK eval board, as well as the HotE HL-201.imp2014-01-193-22/+173
| | | | # expect more refinement as do more boards.
* Generalize AT91 NAND support a bit. Be more flexible about ALE and CLEimp2014-01-192-11/+81
| | | | address line assignment. Provide convenince function to set these things.
* Add standard memory controller helper functions.imp2014-01-193-0/+208
|
* Removed unneeded and dangerous assignment. It would probably cause NULLmav2014-01-191-1/+0
| | | | | | | refererence panic if compiler not optimize it out. Found with: Clang static analyzer MFC after: 2 weeks
* Further rework netinet6 address handling code:melifaro2014-01-195-134/+166
| | | | | | | | | | | | | | | | | | | * Set ia address/mask values BEFORE attaching to address lists. Inet6 address assignment is not atomic, so the simplest way to do this atomically is to fill in ia before attach. * Validate irfa->ia_addr field before use (we permit ANY sockaddr in old code). * Do some renamings: in6_ifinit -> in6_notify_ifa (interaction with other subsystems is here) in6_setup_ifa -> in6_broadcast_ifa (LLE/Multicast/DaD code) in6_ifaddloop -> nd6_add_ifa_lle in6_ifremloop -> nd6_rem_ifa_lle * Split working with LLE and route announce code for last two. Add temporary in6_newaddrmsg() function to mimic current rtsock behaviour. * Call device SIOCSIFADDR handler IFF we're adding first address. In IPv4 we have to call it on every address change since ARP record is installed by arp_ifinit() which is called by given handler. IPv6 stack, on the opposite is responsible to call nd6_add_ifa_lle() so there is no reason to call SIOCSIFADDR often.
* Enable vt. This brings VGA-based console and terminal support tomarcel2014-01-191-1/+4
| | | | | | | | | ia64 for the very first time. Only 9 years in the making... Note that the vt/vga driver does not actually make sure there's VGA hardware at the standard/legacy VGA I/O port and memory I/O addresses. This can cause machine checks if the H/W does not have a VGA controller.
* Revision 258428 changed gcc by virtue of having _bswapsi2 _bswapdi2 inmarcel2014-01-191-4/+3
| | | | | | | libgcc, but this was not propagated to this file. Revision 260844 added them here for ia64 unbeknownst revision 258428. Fix it for all... Pointed out by: pfg
* There's actually no data in the PMU_GET_VERSION command. Don't send any.jhibbits2014-01-191-1/+1
| | | | | | This change now allows the PMU to be used on PowerBook5,8. MFC after: 1 week
* If the flowid is available for the mbuf that finalised the creationadrian2014-01-181-0/+10
| | | | | | | | | | | | of a syncache connection, copy it into the inp_flowid field. Without this, an incoming TCP connection won't have an inp_flowid marked until some data comes in, and this means that things like the per-CPU TCP timer option will choose a different CPU for the timer work. (It also means that if one grabbed the flowid via an ioctl from userland, it won't be available until some data has been received.) Sponsored by: Netflix, Inc.
* Simplify filling sockaddr_dl structure for if_resolvemulti()melifaro2014-01-189-96/+63
| | | | | | | | | | | | | | callback providers. link_init_sdl() function can be used to fill most of the parameters. Use caller stack instead of allocation / freing memory for each request. Do not drop support for extra-long (probably non-existing) link-layer protocols by introducing link_alloc_sdl() (used by if_resolvemulti() callback) and link_free_sdl() (used by caller). Since this change breaks KBI, MFC requires slightly different approach (link_init_sdl() auto-allocating buffer if necessary to handle cases with unmodified if_resolvemulti() callers). MFC after: 2 weeks
* Fix a bad comparison operator (s/==/=/), and address a use-case issue where-dteske2014-01-181-8/+6
| | | | | | | | in the one-line comment associated with the dumpdev setting was not present for the case where the user deselects the dumpdev service (restoring pre- r256348 behaviour. MFC After: 3 days
* Some processor's don't allow NMI injection if the STI_BLOCKING bit is set inneel2014-01-181-69/+80
| | | | | | | | | the Guest Interruptibility-state field. However, there isn't any way to figure out which processors have this requirement. So, inject a pending NMI only if NMI_BLOCKING, MOVSS_BLOCKING, STI_BLOCKING are all clear. If any of these bits are set then enable "NMI window exiting" and inject the NMI in the VM-exit handler.
* Use in6_localip() instead of hand-rolled cycle.melifaro2014-01-181-17/+9
| | | | MFC after: 2 weeks
* Add in6_prepare_ifra() function to ease preparing in-kernel IPv6melifaro2014-01-184-49/+30
| | | | | | address requests. MFC after: 2 weeks
* Style changes in vm_pageout_scan():alc2014-01-181-12/+11
| | | | | | | | | | | | | | | | 1. Be consistent in the style of "act_delta" manipulations between the inactive and active queue scans. 2. Explicitly compare to zero. 3. The deactivation of a page is based is based on its recent history and not just the current call to vm_pageout_scan(). The variable "act_delta" represents the current state of the page, and not its history. Avoid possible confusion by not (ab)using "act_delta" for the making the deactivation decision. Submitted by: kib [1] Reviewed by: kib [2,3]
* Do some style(9) not done in r260851 to improve readability.melifaro2014-01-181-45/+40
| | | | MFC after: 2 weeks
* Split in6_update_ifa() into smaller pieces leaving functionality intact.melifaro2014-01-181-78/+131
| | | | | Discussed with: ae MFC after: 2 weeks
* Correct value of LIBCOMPILER_RT.ed2014-01-181-1/+1
| | | | Caught by: Luca Bayer
* Replace LIBGCC by LIBCOMPILER_RT.ed2014-01-184-12/+12
| | | | | We now use libcompiler_rt on all platforms now. Instead of referring directly to -lgcc and LIBGCC, use -lcompiler_rt and LIBCOMPILER_RT.
* Add very simple virtio_random(4) driver to harvest entropy from hostbryanv2014-01-1810-1/+336
| | | | Reviewed by: markm (random bits only)
* For ia64, add _bswapsi2 & _bswapdi2. The audio/flac port uses themarcel2014-01-181-0/+1
| | | | | bswap32 builtin and the compiler emits a call to the libgcc function rather than generating inline code.
* If the guest exits due to a fault while it is executing IRET then restoreneel2014-01-182-4/+68
| | | | | the state of "Virtual NMI blocking" in the guest's interruptibility-state field before resuming the guest.
* MFV r260834:delphij2014-01-181-9/+8
| | | | | Fix memory leak of compressed buffers in l2arc_write_done (Illumos #3995).
* Bring back r226403, the fix for bin/161526, which was (accidentally?)trociny2014-01-171-3/+6
| | | | | | | | reverted in r238896. PR: bin/161526 Reported by: Karli.Sjoberg slu.se MFC after: 3 days
* gcc: Drop useless objc change from r260311.pfg2014-01-172-39/+0
| | | | | | | | | | | | Among some of the objc changes from Apple that crept into r260311, Radar 5355344 is incomplete and is not used since we don't carry ObjC in the base system. The dead code seems to have caused issues in some Tinderboxes so get rid of it altogether. Reported by: luigi MFC after: 9 days
* Add ID for one more ASMedia AHCI-compatible controller.mav2014-01-171-0/+1
| | | | | Reported by: ignace.peeters@gmail.com MFC after: 2 weeks
* Fix comment.glebius2014-01-171-1/+1
|
* Fix a possible memory use after free and leak situation associatedhselasky2014-01-172-26/+24
| | | | | | | | | | | with USB device detach when using character device handles. This also includes LibUSB. It turns out that "usb_close()" cannot always get a reference to clean up its USB transfers and such, if called during the kernel USB device detach. Analysis by: hselasky @ Reported by: Juergen Lock <nox@jelal.kn-bremen.de> MFC after: 1 week
* traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECTavg2014-01-171-6/+6
| | | | | | | | | | | | | | | This is done to ensure that visited object IDs are always increasing. Also, pass correct object ID to prefetch_dnode_metadata for os_groupused_dnode. Without this change we would hit an assert if traversal was paused on a GROUPUSED object, which is unlikely but possible. Apparently the same change was independently developed by Deplhix. Reviewed by: Matthew Ahrens <mahrens@delphix.com> MFC after: 10 days Sponsored by: HybridCluster
* zdb -R: do not treat numeric parameters to a flag as more flagsavg2014-01-171-0/+1
| | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> MFC after: 1 week
* Print the ktr(4) format line that caused a failure.glebius2014-01-171-1/+1
| | | | Sponsored by: Nginx, Inc.
* Close a minor deadlock.hselasky2014-01-171-0/+7
| | | | MFC after: 1 week
* Implement a kqueue notification path for sendfile.adrian2014-01-174-16/+587
| | | | | | | | | | | | | | | | | | | | | | | | | This fires off a kqueue note (of type sendfile) to the configured kqfd when the sendfile transaction has completed and the relevant memory backing the transaction is no longer in use by this transaction. This is analogous to SF_SYNC waiting for the mbufs to complete - except now you don't have to wait. Both SF_SYNC and SF_KQUEUE should work together, even if it doesn't necessarily make any practical sense. This is designed for use by applications which use backing cache/store files (eg Varnish) or POSIX shared memory (not sure anything is using it yet!) to know when a region of memory is free for re-use. Note it doesn't mark the region as free overall - only free from this transaction. The application developer still needs to track which ranges are in the process of being recycled and wait until all pending transactions are completed. TODO: * documentation, as always Sponsored by: Netflix, Inc.
* Add in a default initialiser for the EVOPS_SENDFILE kqueue filterops.adrian2014-01-171-0/+1
| | | | Sponsored by: Netflix, Inc.
* Implement the extension api for sendfile to allow for kqueue notifications.adrian2014-01-171-0/+26
| | | | | | | | | | This is still under a bit of flux, as the final API hasn't been nailed down. It's also unclear whether we should define the two new types in the header or not - it may allow bad code to compile that shouldn't (ie, since uintX's are defined, the developer may not include sys/types.h.) Reviewed by: peter, imp, bde Sponsored by: Netflix, Inc.
* forgot to update this file in 2607000luigi2014-01-171-42/+88
|
* If a VM-exit happens during an NMI injection then clear the "NMI Blocking" bitneel2014-01-172-12/+26
| | | | | | | | | | in the Guest Interruptibility-state VMCS field. If we fail to do this then a subsequent VM-entry will fail because it is an error to inject an NMI into the guest while "NMI Blocking" is turned on. This is described in "Checks on Guest Non-Register State" in the Intel SDM. Submitted by: David Reed (david.reed@tidalscale.com)
* Re-work r260800 to include other signals which start with 'I'csjp2014-01-171-11/+10
| | | | | | | such as ILL, INFO etc.. Submitted by: delphij MFC after: 2 weeks
* fix a regression introduced in r237618 that would result incsjp2014-01-171-3/+9
| | | | | | | | | killall confusing killall -INT with killall -I (interactive confirmation) which resulted in the wrong signal (TERM) being delivered to the process(s). Discussed with: delphij MFC after: 2 weeks
* Fix various places where we don't properly release a lockgnn2014-01-161-8/+18
| | | | | | PR: 185043 Submitted by: Michael Bentkofsky MFC after: 2 weeks
* Add a command line argument to turn off blocking waiting for the usergnn2014-01-161-6/+12
| | | | | | | to press Ctrl-C (-b). This allows tests with tight loops of mcgrabs that can stress the multicast tables. MFC after: 2 weeks
* Remove two redundantly repetitive assignments.imp2014-01-161-2/+0
|
* -h and -H options backwards in manual page.wblock2014-01-161-3/+3
| | | | | | PR: bin/183681 docs/183681 Submitted by: Robin Hahling <robin.hahling@gw-computing.net> MFC after: 3 days
* Update the pkg-stage target to be more compatible with pkg-1.2:gjb2014-01-165-93/+41
| | | | | | | | | | | | | | | | | | - Add a release-dvd.conf pkg(8) configuration file to override the default FreeBSD.conf configuration. - Remove architecture-specific pkg-stage.conf files, consolidate, and move their contents to scripts/pkg-stage.sh. - Use 'pkg -vv' to determine the ABI, which is used as the cache directory. Prior to these changes, it would be possible for pkg-stage to fetch conflicting binary packages from multiple repositories. Tested against: head@r260522, stable/10@r260522 MFC after: 3 days X-Insta-MFC: possibly Sponsored by: The FreeBSD Foundation
* Fix build after FDT changes.ray2014-01-161-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Remove notes about historical mbuf(9) allocator flags from documentation.glebius2014-01-162-24/+2
| | | | Sponsored by: Nginx, Inc.
* Simplify wait/nowait code, eventually killing last remnant ofglebius2014-01-162-28/+19
| | | | | | historical mbuf(9) allocator flag. Sponsored by: Nginx, Inc.
OpenPOWER on IntegriCloud