summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge r257633:pjd2013-11-069-534/+1113
| | | | | | | | | | - Add manual pages for capability rights (rights(4)), cap_rights_init(3) family of functions and cap_rights_get(3) function. - Update remaining Capsicum-related manual pages. Sponsored by: The FreeBSD Foundation Reviewed by: bdrewery Approved by: re (glebius)
* Regenerate src.conf(5) after r257573bdrewery2013-11-061-159/+159
| | | | | | | | | Direct commit to stable/10 with no mergeinfo as the head change to regenerate src.conf(5) for this was missed after r257440 until r257444 which brought in unrelated changes. Discussed with: gjb Approved by: re (gjb, implicit)
* MFC r257539:delphij2013-11-051-4/+4
| | | | | | | | | | | | | | | | | When zero'ing out a buffer, make sure we are using right size. Without this change, in the worst but unlikely case scenario, certain administrative operations, including change of configuration, set or delete key from a GEOM ELI provider, may leave potentially sensitive information in buffer allocated from kernel memory. We believe that it is not possible to actively exploit these issues, nor does it impact the security of normal usage of GEOM ELI providers when these operations are not performed after system boot. Security: possible sensitive information disclosure Submitted by: Clement Lecigne <clecigne google com> Approved by: re (glebius)
* MFC r257534:jimharris2013-11-052-4/+11
| | | | | | | Create a unique unit number for each controller and namespace cdev. Sponsored by: Intel Approved by: re (glebius)
* MFC r257531:jimharris2013-11-051-2/+0
| | | | | | | Do not exit with error status after printing data for perftest. Sponsored by: Intel Approved by: re (glebius)
* MFC of 257681edwin2013-11-0511-245/+619
| | | | | | | | | | | | | | | tzdata2013f - Jordan goes to winter time on the last Friday in October. - Tocantins in Brazil will not go into summer time in October. - Indonesian time zones renames. - Lots of cleanups in with regarding to links and historical data. tzdata2013h - Libya didn't go back to DST. - Fix Morocco 2038 issue. - Brazil/Acre and ?Western Amazonas are chaning timezones. Approved by: re (Gleb)
* MFC r257490:yongari2013-11-051-3/+3
| | | | | | | Perform media change after setting IFF_DRV_RUNNING flag. Without it, driver would ignore the first link state update if controller already established a link. Approved by: re (glebius)
* MFC r257234:markj2013-11-051-3/+1
| | | | | | With r247602, the "c" flag is no longer printed as a file descriptor flag. Approved by: re (gjb)
* MFC r257530brooks2013-11-041-1/+6
| | | | | | | | | Reimplement r257525 such that it work with the historic FreeBSD make implementation. This fixes the toolchain and kernel-toolchain targets when building from older FreeBSD versions where make is fmake. Sponsored by: DARPA/AFRL Approved by: re (glebius)
* MFC r257505:bdrewery2013-11-042-23/+61
| | | | | | | | | | | | | Add -f support to 'pkg bootstrap' and 'pkg add' to force installation of pkg(8) even if already installed. This is useful if you somehow messup pkg(8) and need to reinstall from remote with it already being registered in the pkg(8) /var/db/pkg database. Also add some sanity checks to 'pkg add'. Approved by: bapt Approved by: re (glebius)
* MFC r257307:yongari2013-11-041-3/+5
| | | | | | | | | | | Fix regression introduced in r235816. r235816 triggered kernel panic or hang after warm boot. Don't blindly restore BCE_EMAC_MODE media configuration in bce_reset(). If driver is about to shutdown it will invoke bce_reset() which in turn results in restoring BCE_EMAC_MODE media configuration. This operation seems to confuse controller firmware. Approved by: re (glebius)
* MFC r257306:yongari2013-11-042-0/+3
| | | | | Add preliminary support for RTL8168EP. Approved by: re (delphij)
* MFC r257305:yongari2013-11-042-2/+23
| | | | | | | | | Add preliminary support for RTL8168G, RTL8168GU and RTL8411B. RTL8168GU has two variants(GMII and MII) but it uses the same chip revision id. Driver checks PCI device id of controller and sets internal capability flag(i.e. jumbo frame and link speed down in WOL). Approved by: re (delphij)
* MFC r257304:yongari2013-11-042-2/+6
| | | | | | | | Add support for new Gigabit PHY of RealTek. I don't have a copy of data sheet so I'm not sure exact PHY model name. Vendor's web page indicates RTL8251 is latest PHY so I used the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B. Approved by: re (delphij)
* MFC r256828:yongari2013-11-042-0/+3
| | | | | Add preliminary support for RTL8106E PCIe FastEthernet. Approved by: re (delphij)
* r256827:yongari2013-11-042-2/+4
| | | | | | Correct MAC revision bits. Previously it always cleared bit 20 and bit 21. Approved by: re (delphij)
* Update stable/10 to BETA3 as part of the 10.0-RELEASE cycle.gjb2013-11-031-1/+1
| | | | | Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* MFC r257214:kib2013-11-031-0/+2
| | | | | | Inform about the kdb re-entry. Approved by: re (gjb)
* MFC r257216:kib2013-11-031-4/+7
| | | | | | Several small fixes for the amd64 minidump code. Approved by: re (gjb)
* MFC r257378,r257400,r257402,r257440:bdrewery2013-11-034-2/+265
| | | | | | | Add a pkg(7) manpage for bootstrap Approved by: bapt Approved by: re (gjb)
* MFC r257344,r257403:bdrewery2013-11-0311-21/+28
| | | | | | | Move /etc/keys to /usr/share/keys where users are less likely to modify them. Approved by: bapt Approved by: re (gjb)
* MFC r257377:bdrewery2013-11-031-0/+9
| | | | | | | | Add a 'pkg bootstrap' command which will bootstrap pkg(8) without forwarding any command to it after installation. Approved by: bapt Approved by: re (gjb)
* MFC r257350:delphij2013-11-031-4/+10
| | | | | | | | | | | | | | | In r257079, SRCDIR is pointed to ${.CURDIR} when not set. However, Makefile.inc1 is being called in sub-make's where make(1) would, by default, implicitly chdir(2) to ${.OBJDIR} before executing any targets. This would make some targets, like delete-old, when trying to derive various variables introduced by change r256921 using ``make -f Makefile.inc1'' that also rely on SRCDIR to fail. This changeset adds an explicit cd ${.CURDIR} before these unwrapped make calls, making them in line with the other ones that are already being wrapped with the explicit chdir's. Approved by: re (hrs)
* MFC r257379:trasz2013-11-024-82/+82
| | | | | | | | | | | | | | | | | Rename '-h' option to '-p', and use "portal" instead of "host" or "address", in order to be consistent with iSCSI terminology. Besides, calling the option '-h' was just wrong. This changes usage for newly added iscsictl(8), and two newly added subcommands to ctladm(8). This breaks POLA between CURRENT and 10, but since 10.0 has not been released yet, it's still ok to do. MFC r257380: Bump .Dd after r257379. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation
* MFC r256935brooks2013-11-014-8/+32
| | | | | | | | | | | MFP4: Change 228019 by bz@bz_zenith on 2013/04/23 13:55:30 Add kernel side support for large TLB on BERI/CHERI. Modelled similar to NLM Sponsored by: DAPRA/AFRL Approved by: re (delphij)
* MFC r256912, r256931, r256977brooks2013-11-0111-142/+533
| | | | | | | | | | | | | | | | | | Sync BERI kernel configs with P4: Switch the majority of device configuration to FDT from hints. Add BERI_*_BASE configs to reduce duplication in the MDROOT and SDROOT kernels. Add NFS and GSSAPI support by default. Enable ATSE_CFI_HACK in BERI configs, stable MAC addresses are useful. BERI_SIM.hint is no longer used, remove it. Sponsored by: DARPA/AFRL Approved by: re (delphij)
* MFC r256753brooks2013-11-012-0/+5
| | | | | | | | | | | | | MFP4: 1136252 Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to have their address range allocated sharable so that atse(4) can find it's Ethernet address in the expected location. We intend to remove this hack once the BERI platform has a loader. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r256934, r256963, r256972, r257017brooks2013-11-011-9/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFP4: Change 221534 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/01/27 16:05:30 FreeBSD/mips stores page-table entries in a near-identical format to MIPS TLB entries -- only it overrides certain "reserved" bits in the MIPS-defined EntryLo register to hold software-defined bits (swbits) to avoid significantly increasing the page table memory footprint. On n32 and n64, these bits were (a) colliding with MIPS64r2 physical memory extensions and (b) being improperly cleared. Attempt to fix both of these problems by pushing swbits further along 64-bit EntryLo registers into the reserved space, and improving consistency between C-based and assembly-based clearing of swbits -- in particular, to use the same definition. This should stop swbits from leaking into TLB entries -- while ignored by most current MIPS hardware, this would cause a problem with (much) larger physical memory sizes, and also leads to confusing hardware-level tracing as physical addresses contain unexpected (and inconsistent) higher bits. Discussed with: imp, jmallett Change 1187301 by brooks@brooks_zenith on 2013/10/23 14:40:10 Loop back the initial commit of 221534 to HEAD. Correct its implementation for mips32. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r256911, r256936brooks2013-11-013-0/+720
| | | | | | | | | | | | | | | | | | | | MFP4: 223121 (PIC portion), 225861, 227822, 229692 (PIC only), 229693, 230523, 1123614 Implement a driver for Robert Norton's PIC as an FDT interrupt controller. Devices whose interrupt-parent property points to a beripic device will have their interrupt allocation, activation, and setup operations routed through the IC rather than down the traditional bus hierarchy. This driver largely abstracts the underlying CPU away allowing the PIC to be implemented on CPU's other than BERI. Due to insufficient abstractions a small amount of MIPS specific code is currently required in fdt_mips.c and to implement counters. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r257369:delphij2013-11-011-1/+3
| | | | | | | | | Don't reference pointer before testing whether it is NULL. Submitted by: Clement Lecigne <clecigne google com> Reviewed by: grehan Approved by: re (kib)
* MFC r257329 (nyan):gjb2013-11-011-1/+6
| | | | | | | Fix build, both clang and gcc are required on pc98. Approved by: re (kib) Sponsored by: The FreeBSD Foundation
* MFC r257361:jlh2013-11-011-2/+2
| | | | | | | | | | | | Fix compatibility function for old daily_status_security_${name}_enable variables. PR: conf/183137 MFC r257364: Fix indentation. Approved by: re (gjb)
* MFC r256540, r256544:gjb2013-11-011-1/+9
| | | | | | | | | | | | r256540 (dteske): Add loader.conf(5) entries to import bootpool after boot when using full-disk encryption and ZFS. r256544 (dteske): Fix loader.conf(5) entries from r256540. Approved by: re (hrs) Sponsored by: The FreeBSD Foundation
* MFC r257072:kib2013-11-012-1/+1
| | | | | | Make pci_get_dma_tag() non-static. Approved by: re (glebius)
* MFC r257071:kib2013-11-011-0/+9
| | | | | | | Add some definitions for the bits in root control and status PCIe cap registers. Approved by: re (glebius)
* MFC r257070:kib2013-11-012-4/+9
| | | | | | Move the PCI_DMA_BOUNDARY definition into the pcivar.h. Approved by: re (glebius)
* MFC r257069:kib2013-11-011-0/+96
| | | | | | Add ddb 'show ioapic' and 'show all ioapics' commands. Approved by: re (glebius)
* MFC r256670:kib2013-11-011-32/+25
| | | | | | | | Rewrite RDRAND support: Remove the excessive memory accesses to temporary buffer. Streamline the assembly and unify it between i386 and amd64. Approved by: re (glebius)
* MFC r257154:trociny2013-10-311-1/+1
| | | | | | | | | | | | Merging local and remote bitmaps must be protected by hr_amp lock. This is believed to fix hastd crashes, which might occur during synchronization, triggered by the failed assertion: Assertion failed: (amp->am_memtab[ext] > 0), function activemap_write_complete, file activemap.c, line 351. Approved by: re (glebius)
* Notional MFC of r257139:brooks2013-10-311-4/+4
| | | | | | Regerate after r257460 swapped the default to WITH_NMTREE. Approved by: re (gjb)
* MFC r257138:brooks2013-10-313-3/+10
| | | | | | | | Switch the default mtree to nmtree our new NetBSD derived mtree. Exp-runs by: bdrewery (ports/182438) Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r257268:brooks2013-10-311-1/+1
| | | | | | | | Enable the --sysroot=/foo option in ld by always building with a sysroot defined. When not building as a cross linker, the sysroot is set to "/". Exp-run by: bdrewery (ports/183206) Approved by: re (gjb)
* MFC r256861:brooks2013-10-315-9/+393
| | | | | | | | | | | | | MFP4: 223121 (FDT infrastructure portion) Implement support for interrupt-parent nodes in simplebus. The current implementation requires that device declarations have an interrupt-parent node and that it point to a device that has registered itself as a interrupt controller in fdt_ic_list_head and implements the fdt_ic interface. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r256865brooks2013-10-3114-1468/+0
| | | | | | | | | Remove the isf(4) driver. It was created by accident and is subset of the cfi(4) driver. It remained in the tree longer than would be ideal due to the time required to bring cfi(4) to feature parity. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* Notional MFC of r257057:brooks2013-10-311-14/+2
| | | | | | | | | | | | | | Regen documentation post r257449: Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC. This allows bootstrapping a copy of clang without building clang for the base system which is useful for nanobsd and similar setups. It's still probably wrong to conflate what is installed as /usr/bin/cc with the selection of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another day. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r256915brooks2013-10-312-5/+2
| | | | | | | | | | | | | Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC. This allows bootstrapping a copy of clang without building clang for the base system which is useful for nanobsd and similar setups. It's still probably wrong to conflate what is installed as /usr/bin/cc with the selection of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another day. Sponsored by: DARPA/AFRL Approved by: re (gjb)
* MFC r256752, r256946brooks2013-10-318-0/+3379
| | | | | | | | | | | | | | | | | | | | | | | | | | | MFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801, 221804, 221805, 222004, 222006, 222055, 222820, 1135077, 1135118, 1136259 Add atse(4), a driver for the Altera Triple Speed Ethernet MegaCore. The current driver support gigabit Ethernet speeds only and works with the MegaCore only in the internal FIFO configuration in the soon to be open sourced BERI CPU configuration. MFP4: 1187103, 222076, 222057, 222051, 221799 Add atsectl, a simple utility to read and update MAC addresses stored in the default flash location on Altera DE4 boards. Typically used once when setting up a board so leaving in tools rather than inflicting on all users. To build with world add LOCAL_DIRS=tools/tools/atsectl to the make command line. Submitted by: bz Sponsored by: DARPA/AFRL Approved by: re (glebius)
* MFC: r256743, r256744brooks2013-10-313-10/+24
| | | | | | | | | | | | | | | | | MFP4: Change 227594 by brooks@brooks_zenith on 2013/04/11 17:10:14 When we fail, print the error that occurred if we are giving up or if bootverbose is set. MFP4 (driver change only): Change 231100 by brooks@brooks_zenith on 2013/07/12 21:01:31 Add a new option ALTERA_SDCARD_FAST_SIM which checks immediately for success of I/O operations rather than queuing a task. Sponsored by: DARPA/AFRL Approved by: re (glebius)
* MFC r257221:kib2013-10-311-1/+1
| | | | | | Fix typo. Approved by: re (glebius)
* MFC r257092grehan2013-10-301-31/+85
| | | | | | | | | | Fix bug in the ioapic emulation for level-triggered interrupts, where a pin assertion while a source was masked would result in the interrupt being lost, with the symptom being a console hang. The condition is now recorded, and the interrupt generated when the source is unmasked. Approved by: re (glebius)
OpenPOWER on IntegriCloud