summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Show "default" for the zero-filled address consistently when nflag == 0.hrs2013-07-201-13/+10
|
* Add cast to (void *) to the following cases to suppress warnings byhrs2013-07-201-24/+23
| | | | | | | -Wcast-align. These do not increase the alignment requirement: - rtm = (struct rt_msghdr *)(rtm + rtm->rtm_msglen) - struct sockaddr *sa = &sa0; sX = (struct sockaddr_X *)sa
* fuse: revert birthtime support.pfg2013-07-202-6/+3
| | | | | | | | | The creation time support breaks the data structures used in linux fuse. libfuse carries it's own header. Revert the changes for now. We will try to get an agreement with the fuse upstream maintainers to avoid having to patch the library headers all the time.
* Use the right name for the vm_map_find(9) flag to specify sharedkib2013-07-201-1/+1
| | | | | | | mapping. The MAP_SHARED and MAP_INHERIT_SHARE values are identical. Noted by: alc MFC after: 3 days
* Regeneratekib2013-07-205-17/+29
|
* id_t is 64bit, provide the compat32 wrapper for clock_getcpuclockid2(2).kib2013-07-204-16/+41
| | | | | | Reported and tested by: Petr Salinger <Petr.Salinger@seznam.cz> PR: threads/180652 Sponsored by: The FreeBSD Foundation
* Allow the code to be compiled without warnings for any combinationtuexen2013-07-201-6/+3
| | | | | | | of INET, INET6 and SCTP_DEBUG defines. The issue was reported by Lally Singh. MFC after: 2 weeks
* Start adding support to build bits of our code using the Thumb-2andrew2013-07-201-9/+26
| | | | | | | | | | | | | | | instruction set. Thumb-2 requires an if-then instruction to implement conditional codes. When building for ARM mode the it-then instructions do not generate any assembled instruction as per the ARMv7-A Architecture Reference Manual, and are safe to use. While this allows the atomic instructions to be built, it doesn't mean we fully support Thumb code. It works in small tests, but is still known to fail in a large number of places. While here add a check for the armv6t2 architecture.
* Add support for upcoming BCM5725 (ASIC 5762) controller. This is ayongari2013-07-202-12/+49
| | | | | | | | | | | | | | | | | | new 1Gb server controller chip that will be going into production soon. BCM5725 combines MAC with triple-speed PHY, a Network Controller Sideband Interface (NC-SI) and on-chip memory buffer in a single device. BCM5725 has an Application Processing Engine (APE) that is capable of on-chip management and offloading features. BCM5725 supports high-precision clock, time stamp registers for receive/transmit packets and programmable trigger inputs and watchdog timeouts. These new features are not yet supported by bge(4). Many thanks to Broadcom for continuing to support FreeBSD! Submitted by: Geans Pin geanspin@Broacom (initial version) Reviewed by: Geans Pin geanspin@Broacom H/W donated by: Broadcom
* Recognize BCM5725C PHY.yongari2013-07-202-0/+5
|
* Setup the PCIE Fast Training Sequence (FTS) value to preventyongari2013-07-202-0/+19
| | | | | transmit hangs for 57766 and non Ax versions of 57765. While here, correct definition of BGE_CHIPREV_57765_AX.
* Adjust outsizes:pfg2013-07-201-2/+2
| | | | | | | | Recalculate FUSE_COMPAT_ENTRY_OUT_SIZE and COMPAT_ATTR_OUT_SIZE. These were wrong in the previous commit. They are actually unused in FreeBSD though. Pointed out by: Jan Beich
* Adjust outsizes:pfg2013-07-201-2/+2
| | | | | | | | When birthtime was added (r253331) we missed adding the weight of the new fields in FUSE_COMPAT_ENTRY_OUT_SIZE and COMPAT_ATTR_OUT_SIZE. Adjust them accordingly. Pointed out by: Jan Beich
* There's nothing to free if the unit wasn't allocated.np2013-07-191-1/+0
|
* Add message when nvd disks are attached and detached.jimharris2013-07-1910-19/+111
| | | | | | | | | | | | As part of this commit, add an nvme_strvis() function which borrows heavily from cam_strvis(). This will allow stripping of leading/trailing whitespace and also handle unprintable characters in model/serial numbers. This function goes into a new nvme_util.c file which is used by both the driver and nvmecontrol. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Add new Coleto Creek device support: SATA, SMBus, and Watchdog devices.jfv2013-07-196-0/+14
| | | | MFC after: 1 week
* Fix nvme(4) and nvd(4) to support non 512-byte sector sizes.jimharris2013-07-193-5/+16
| | | | | | | | | | Recent testing with QEMU that has variable sector size support for NVMe uncovered some of these issues. Chatham prototype boards supported only 512 byte sectors. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Do not call disk_create() until we have completed all initialization of ourjimharris2013-07-191-2/+2
| | | | | | | | internal disk structure. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Get the code compiling without INET and INET6 being defined.tuexen2013-07-191-4/+0
| | | | | | This is not possible in FreeBSD, but in the upstream code. MFC after: 2 weeks
* Be more aggressive in using superpages in all mappings of objects:jhb2013-07-195-10/+22
| | | | | | | | | | | | | | - Add a new address space allocation method (VMFS_OPTIMAL_SPACE) for vm_map_find() that will try to alter the alignment of a mapping to match any existing superpage mappings of the object being mapped. If no suitable address range is found with the necessary alignment, vm_map_find() will fall back to using the simple first-fit strategy (VMFS_ANY_SPACE). - Change mmap() without MAP_FIXED, shmat(), and the GEM mapping ioctl to use VMFS_OPTIMAL_SPACE instead of VMFS_ANY_SPACE. Reviewed by: alc (earlier version) MFC after: 2 weeks
* Since there's no defined schema for the XML that's generated by thescottl2013-07-192-0/+6
| | | | | | | | | kern.geom.confxml sysctl, it's silly to warn about tags in libgeom, especially since libgeom exists simply to build a tree out of the conf information. Obtained from: Netflix MFC after: 3 days
* Correct ELF note decoding for non-core filesemaste2013-07-191-3/+16
| | | | Requested by: kib
* Overhaul error, information, and debug logging.scottl2013-07-198-286/+356
| | | | | Obtained from: Netflix MFC after: 3 days
* Use _PATH_DEV (from paths.h) for the "/dev/" string, rather thanjimharris2013-07-182-2/+4
| | | | | | | | | hard-coding it. Sponsored by: Intel Suggested by: kib Reviewed by: kib, carl MFC after: 3 days
* Simplify open_dev() by returning errno values rather than just 0 or 1.jimharris2013-07-182-15/+4
| | | | | | | | | Also remove stat() call and just rely on errno from open() call to discern whether dev node exists or not. Sponsored by: Intel Reviewed by: kib, carl MFC after: 3 days
* Close uniq(1) in the capability mode sandbox and limit descriptors usingpjd2013-07-181-0/+43
| | | | capability rights.
* - Make localtime(3) to work in sandbox.pjd2013-07-181-5/+28
| | | | - Move strerror(3) initialization to its own function.
* Decode PCIe ASPM capability and status.jkim2013-07-181-20/+38
|
* Correct alignment in note outputemaste2013-07-181-1/+1
|
* Remove accidentally cut-and-pasted colonsemaste2013-07-181-7/+7
|
* Sanity-check the vm exitcode, and exit the process if it's out-of-boundsgrehan2013-07-181-2/+11
| | | | | | or there is no registered handler. Submitted by: Bela Lubkin bela dot lubkin at tidalscale dot com
* Handle FreeBSD-specific ELF notesemaste2013-07-182-3/+50
| | | | | | | | | | | | Add a function to return the specific type, when the note's Name field is 'FreeBSD'. r249558 added FreeBSD-specific ELF note types that reuse type numbers of existing generic / Linux types. This caused 'readelf -n' to produce incorrect output on FreeBSD core files. Sponsored by: DARPA, AFRL MFC after: 3 days
* Properly handle I/O windows in bridges with the ISA enable bit set. Thesejhb2013-07-184-91/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | beasts still exist unfortunately. More details can be found in other references, but the short version is that bridges with this bit set ignore I/O port ranges that alias to valid ISA I/O port ranges. In the driver this requires not allocating these alias regions from the parent device (so they are free to be acquired by ISA devices), and ensuring no child devices use resources from these alias regions. - Change the pcib_window structure to allow for an array of backing resources rather than a single resource and update the existing code to cope with this. Some of the coping requires using the saved base and limit values in pcib_window instead of using rman operations on the backing resource. - Add special handling for allocating and adjusting the I/O port window of an ISA-enabled bridge to only allocate the non-alias ranges and add those to the associated resource manager. - Reject I/O port allocations for a fixed request that conflicts with an ISA alias range. - Remove the "no prefected decode" verbose printf during boot. The absence of a "prefetched decode" line is sufficient. - Replace the "subtractively decoded bridge" verbose printf with a single printf that lists all the "special" decoding modes of a bridge: ISA, subtractive, and VGA. - Add a custom bus_release_resource() method to the PCI bus driver so that it can properly free resources for I/O windows of PCI-PCI bridges. (These resources are not stored in the bridge device's resource list.) PR: misc/179033 MFC after: 2 weeks
* Rework the previous fix for the IB vs Ethernet sysctl handler to be morejhb2013-07-182-20/+18
| | | | | | | | | | | | | | | generic and apply to all sysfs attributes: - Use sysctl_handle_string() instead of reimplementing it. - Remove trailing newline from the current value before passing it to userland and append a newline to the new string value before passing it to the attribute's store function. - Don't leak the temporary buffer if the first error check triggers. - Revert earlier change to mlx4 port mode handler. PR: kern/174213 Submitted by: Garrett Cooper Reviewed by: Shakar Klein @ Mellanox MFC after: 1 week
* Include stdint.h when use intmax_t.kevlo2013-07-181-1/+1
| | | | Reported by: bde
* Minor mdoc fixes.joel2013-07-181-10/+10
|
* - Fix a bug in ipv6_prefix_IF. It did not work with the 64-bit prefixhrs2013-07-181-16/+4
| | | | | | | | | | notation like 2001:db8:1:1. - Use eui64 flag in ifconfig(8) instead of network6_getladdr()[*] for interface indentifier part. Suggested by: ume [*] MFC after: 3 days
* Fix a gcc warning.hrs2013-07-181-1/+4
| | | | Pointy hat to: hrs
* Replace PRId64 with "jd" in a printf call. Cast the corresponding value tokevlo2013-07-181-1/+1
| | | | | | intmax_t, because the original type is off_t. Reported by: bde
* Manually merge part of vendor import r238583 from Illumos.delphij2013-07-182-6/+10
| | | | | | | | | Illumos changeset: 13680:2bd022a765e2 Illumos ZFS issue: 2671 zpool import should not fail if vdev ashift has increased MFC after: 3 days
* Major rework of the virtio code. Split out common parts, and modifygrehan2013-07-175-961/+1408
| | | | | | | the net/block devices accordingly. Submitted by: Chris Torek torek at torek dot net Reviewed by: grehan
* Reload font when syscons(4) is resuming without switching mode.jkim2013-07-171-27/+34
| | | | | Reported by: adrian (more than a year ago) Prodded by: adrian (less than a month ago)
* Use pause() instead of DELAY() when polling for completion of adminjimharris2013-07-171-4/+4
| | | | | | | | | | | | | commands during controller initialization. DELAY() does not work here during config_intrhook context - we need to explicitly relinquish the CPU for the admin command completion to get processed. Sponsored by: Intel Reported by: Adam Brooks <adam.j.brooks@intel.com> Reviewed by: carl MFC after: 3 days
* Define constants for the lengths of the serial number, model numberjimharris2013-07-174-9/+20
| | | | | | | | | | | and firmware revision in the controller's identify structure. Also modify consumers of these fields to ensure they only use the specified number of bytes for their respective fields. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Always initialize fd to 0 in open_dev().jimharris2013-07-171-0/+2
| | | | | | Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Add bus_dmamap_load_bio and bus_dmamap_load_ccb to bus_dma(9).jimharris2013-07-171-3/+63
| | | | | | Sponsored by: Intel Reviewed by: kib MFC after: 3 days
* In this GRN, Marcel Moolenaar overhauled the logic for mountingrodrigc2013-07-172-1/+253
| | | | | | | | | | | | | | | | | | the root file system on bootup: |------------------------------------------------------------------------ |r214006 | marcel | 2010-10-17 22:01:53 -0700 (Sun, 17 Oct 2010) | 20 lines | | Re-implement the root mount logic using a recursive approach, whereby each |root file system (starting with devfs and a synthesized configuration) can |contain directives for mounting another file system as root. |------------------------------------------------------------------------ This commit adds a mount.conf(8) man page which documents the root mount logic. mount.conf(8) also provides some examples for the /.mount.conf file, which can be used to change the root mount behavior. Reviewed by: marcel bjk
* Use NET_RT_DUMP.0.FIB leaf node instead of setting td_proc->p_fibnum.hrs2013-07-171-12/+2
|
* - Add support of MK_INET_SUPPORT=no.hrs2013-07-172-268/+278
| | | | | | | | | | | | - Fix a bug in sodump() which prevented struct sockaddr_in6 from displaying. - Fix a bug in in fiboptlist_csv() which could cause free() of uninitialized pointer. - Style cleanups: . Add missing "static" keywords. . Use an array of struct sockaddr_storage instead of sockunion for rtmsg. . Use err() and errx() instead of pair of fprintf(stderr, "...") + exit(1). . Use nitems() macro. . Various style(9) fixes.
* Do not overwrite the new UTF-8 files with the old ISO onebapt2013-07-171-5/+2
|
OpenPOWER on IntegriCloud