summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* readelf: decode AArch64 TLS descriptor relocationsemaste2016-02-051-0/+10
| | | | | | | From ELF for the ARM(R) 64-bit Architecture, table 4-19. Obtained from: ELF Tool Chain r3386 Sponsored by: The FreeBSD Foundation
* readelf: report value of unknown relocation typesemaste2016-02-051-12/+14
| | | | | Obtained from: ELF Tool Chain r3387 Sponsored by: The FreeBSD Foundation
* readelf: avoid accidental fallthrough in RISC-V relocationsemaste2016-02-051-0/+1
| | | | | | | | | This would have printed an unknown RISC-V relocation type as a SPARC relocation. CID: 1331398 Obtained from: ELF Tool Chain r3283 Sponsored by: The FreeBSD Foundation
* Rename aiocblist to kaiocb and use consistent variable names.jhb2016-02-053-324/+324
| | | | | | | | | | | | | | | | | | | | Typically <foo>list is used for a structure that holds a list head in FreeBSD, not for members of a list. As such, rename 'struct aiocblist' to 'struct kaiocb' (the kernel version of 'struct aiocb'). While here, use more consistent variable names for AIO control blocks: - Use 'job' instead of 'aiocbe', 'cb', 'cbe', or 'iocb' for kernel job objects. - Use 'jobn' instead of 'cbn' for use with TAILQ_FOREACH_SAFE(). - Use 'sjob' and 'sjobn' instead of 'scb' and 'scbn' for fsync jobs. - Use 'ujob' instead of 'aiocbp', 'job', 'uaiocb', or 'uuaiocb' to hold a user pointer to a 'struct aiocb'. - Use 'ujobp' instead of 'aiocbp' for a user pointer to a 'struct aiocb *'. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D5125
* Plug a vm_page leak introduced in r292373.markj2016-02-051-0/+3
| | | | Reported by: vangyzen
* Update script for modern `zpool status` output.mav2016-02-051-1/+4
|
* Add error check to not leak logs with syntax errors in case of failedmav2016-02-051-0/+5
| | | | | | `zpool history`. MFC after: 1 month
* Update em(4) to 7.6.1; update igb(4) to 2.5.3.erj2016-02-0523-189/+1342
| | | | | | | | | | | | | | | | | | | | | | | | | | Major changes: - Add i219/i219(2) hardware support. (Found on Skylake generation and newer chipsets.) - Further to the last Skylake support diff, this one also includes support for the Lewisburg chipset (i219(3)). - Add a workaround to an igb hardware errata. All 1G server products need to have IPv6 extension header parsing turned off. This should be listed in the specification updates for current 1G server products, e.g. for i350 it's errata #37 in this document: http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/ethernet-controller-i350-spec-update.pdf - Avoton (i354) PHY errata workaround added And a bunch of minor fixes, as well as #defines for things that the current em(4)/igb(4) drivers don't implement. Differential Revision: https://reviews.freebsd.org/D3162 Reviewed by: sbruno, marius, gnn Approved by: gnn MFC after: 2 weeks Sponsored by: Intel Corporation
* Implement kdb_cpu_sync_icache on arm64.andrew2016-02-051-0/+2
| | | | Sponsored by: ABT Systems Ltd
* Fix EFI multi device boot supportsmh2016-02-055-181/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix EFI boot support when presented with multiple valid boot partitions across multiple devices. It now prefers to boot from partitions that are present on the underlying device that the boot1 image was loaded from. This means that it will boot from the partitions on device the user chose from EFI boot menu in preference to those on other devices. Also fixed is the recovery from a failed attempt to boot, from a seemingly valid partition, by continuing to trying all other available partitions no matter what the error. boot1 now use * to signify a partition what was accepted from the preferred device and + otherwise. Finally some error messages where improved and DPRINTF's with slowed boot to aid debugging. ZFS will still be preferred over UFS when both are available on the boot device. Reviewed by: imp MFC after: 1 week Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D5108
* ARM: Use new ARMv6 naming conventions for cache and TLB functionsmmel2016-02-0523-51/+92
| | | | | | in all but ARMv4 specific files. Expand ARMv6 compatibility stubs in cpu-v4.h. Use physical address in L2 cache functions if ARM_L2_PIPT is defined.
* Follow up r295257 and replace bad reference to TEX in defines,skra2016-02-051-36/+37
| | | | | | | | variables and functions. This stuff is named properly now. Thus, the VM_MEMATTR_xxx is an index to PTE2 attribute table. Pointy hat to: skra
* Follow up r295257 and convert also pt_memattr. This did not breakskra2016-02-051-6/+7
| | | | | anything as both VM_MEMATTR_WB_WA and PTE2_ATTR_WB_WA are zero. Correct also type of pmap_dcache_wb_pou() last argument.
* ARM: Introduce new cpu-v4.h header and move all ARMv4 specific codemmel2016-02-059-66/+181
| | | | | from cpu-v6.h to it. Remove unneeded cpu-v6.h includes.
* hyperv: Use malloc for page allocation.sephe2016-02-053-24/+15
| | | | | | | | | | | We will eventually convert them to use busdma. Submitted by: Jun Su <junsu microsoft com> Reviewed by: adrian, sephe, Dexuan Cui <decui microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5087
* hyperv: Use WAITOK in the places where we can waitsephe2016-02-055-83/+22
| | | | | | | | | | | And convert rndis non-hot path spinlock to mutex. Submitted by: Jun Su <junsu microsoft com> Reviewed by: adrian, sephe Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5081
* hyperv: Use standard taskqueue instead of hv_work_queuesephe2016-02-057-291/+101
| | | | | | | | | | | | | | HyperV code was ported from Linux. There is an implementation of work queue called hv_work_queue. In FreeBSD, taskqueue could be used for the same purpose. Convert all the consumer of hv_work_queue to use taskqueue, and remove work queue implementation. Submitted by: Jun Su <junsu microsoft com> Reviewed by: adrian, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4963
* hyperv/hn: Add an option to always do transmission schedulingsephe2016-02-052-4/+15
| | | | | | | | | | It is off by default. This eases more experiment on hn(4). Reviewed by: adrian, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5175
* hyperv/hn: Move LRO flush to the channel processing rollupsephe2016-02-051-11/+10
| | | | | | | | | | | This significantly increases LRO aggregation ratio when there are large amount of connections (improves reception performance a lot). Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5167
* hyperv/hn: Increase LRO entry count to 128 by defaultsephe2016-02-051-0/+28
| | | | | | | | | | | hn(4) only has one RX ring currently, so default 8 LRO entries are too small. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5166
* hyperv/hn: Recover half of the chimney sending spacesephe2016-02-051-6/+25
| | | | | | | | | | | | | | | We lost half of the chimney sending space, because we mis-used ffs() on a 64 bits mask, where ffsl() should be used. While I'm here: - Use system atomic operation instead. - Stringent chimney sending index assertion. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5159
* hyperv/hn: Factor out hn_encap() from hn_start_locked()sephe2016-02-051-214/+220
| | | | | | | | | | | | It will be shared w/ upcoming ifnet.if_transmit implementaion. No functional changes. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5158
* hyperv/hn: Obey IFCAP_RXCSUM configuresephe2016-02-051-7/+12
| | | | | | | | Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5104
* hyperv/hn: Add sysctls to trust host side UDP and IP csum verificationsephe2016-02-052-7/+80
| | | | | | | | Reviewed by: adrian, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5103
* hyperv/hn: Enable UDP RXCSUMsephe2016-02-052-4/+11
| | | | | | | | Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5102
* hyperv/hn: Enable IP header checksum offloadingsephe2016-02-051-1/+4
| | | | | | | | | | | | | So that: - TCP/IP stack will not do unnecessary IP header checksum for TSO packets. - Reduce guest load for non-TSO IP packets. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5099
* hyperv/hn: Reorganize TX csum offloadingsephe2016-02-052-155/+62
| | | | | | | | | | | | | | | | | | - For non-TSO offloading, we don't need to access mbuf to know which csum offloading is requested, we can just use the CSUM_{IP,TCP,UDP} in the csum_flags. - For TSO offloading, we still can depend on CSUM_{TSO4,TSO6} in the csum_flags to tell whether the TSO packet is an IPv4 TSO packet or an IPv6 TSO packet. This streamlines csum offloading handling (remove the two goto) and allows us the nuke the unnecessary get_transport_proto_type(). Reviewed by: adrian, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5098
* hyperv/hn: Avoid duplicate csum features settingssephe2016-02-052-33/+33
| | | | | | | | | | | | | | - Record csum features in softc, so we don't need to duplicate the logic from attach path to ioctl path. - Protect if_capenable and if_hwassist changes by main lock. - Prefer turn on/off bits in if_hwassist explicitly instead of using XOR. Reviewed by: adrian, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5085
* hyperv/stor: Fix the NULL pointer dereferencesephe2016-02-051-7/+6
| | | | | | | | | | Reported by: Netapp Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: adrian, sephe, Dexuan Cui <decui microsoft com> Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5097
* Add sysctls for dumping out the device mapping tables. I'm finding thisscottl2016-02-043-0/+69
| | | | | | | useful for debugging device-target translation bugs. MFC after: 3 days Sponsored by: Netflix
* Provide a workaround for setting the correct endianness when doing CFI onadrian2016-02-042-0/+16
| | | | | | | | | | | | | a mips big-endian board. This is (hopefully! ish!) a temporary change until a slightly better way can be found to express this without a config option. Tested: * BUFFALO WZR-HP-G300NH 1stGen (by submitter) Submitted by: Mori Hiroki <yamori813@yahoo.co.jp>
* Summary: Update the dategnn2016-02-041-1/+1
|
* Summary: Remove discussion of fastforwarding.gnn2016-02-041-23/+1
|
* When matching brand to the ELF binary by notes, try to find a brandkib2016-02-041-1/+20
| | | | | | | | | | | | | | | | | | | | | with interpreter name exactly matching one wanted by the binary. If no such brand exists, return first brand which accepted the binary by note. The change fixes a regression after r292749, where e.g. our two ia32 compat brands, ia32_brand_info and ia32_brand_oinfo, only differ by the interpeter path and binary matches to a brand by linkage order. Then old binaries which require /usr/libexec/ld-elf.so.1 but matched against ia32_brand_info with interp_path /libexec/ld-elf.so.1, were considered requiring non-standard interpreter name, and magic to force ld-elf32.so.1 did not happen. Note that it might make sense to apply the same selection of brands for other matching criteria, SCO EI_OSABI and 3.x string. Reported and tested by: dwmalone Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Add defines for WRITE_UNCORRECTABLE ATA command, and improve command loggingrpokala2016-02-043-25/+138
| | | | | | | | | | | | Add #defines for ATA_WRITE_UNCORRECTABLE48 and its features. Update the decoding in ATACAM to recognize the new values. Also improve command decoding for a few other commands (SMART, NOP, SET_FEATURES). Bring the decoding in ata(4) up to parity with ATACAM. Reviewed by: mav, imp MFC after: 1 month Sponsored by: Panasas, Inc. Differential Revision: https://reviews.freebsd.org/D5181
* In FreeBSD 10 and higher the driver announces SCTP checksum offloading supporttuexen2016-02-041-7/+11
| | | | | | | | also for 82598, which doesn't support it. The legacy code has a check for it, which was missed when the code for dealing with CSUM_IP6_* was added. Add the same check for FreeBSD 10 and higher. Differential Revision: https://reviews.freebsd.org/D5192
* - connect(2) Clarify namelenjgh2016-02-041-1/+9
| | | | | | | | PR: 206838 Submitted by: t@tobik.me Approved by: bcr (mentor) MFH: after 1 week Differential Revision: https://reviews.freebsd.org/D5194
* Fix build of powerpc FPU emulator after changes in r295132 to restore thejhb2016-02-042-24/+24
| | | | | | | | ABI of struct fpreg. The FPU emulator operates on the "raw" FPU state stored in the pcb rather than the "cooked" fpreg state used for ptrace() and cores. Reported by: bz
* Enable checking of the stack alignment. The stack should be aligned to aandrew2016-02-041-2/+2
| | | | | | | 16-byte value. With this the hardware will check if a memory access uses an incorrectly aligned stack pointer as the base address. Sponsored by: ABT Systems Ltd
* Fix grammar in error statementdteske2016-02-041-1/+1
| | | | s/consider to migrate to jail.conf/consider migrating to jail.conf/
* Replace broken implementation of fuswintr() and suswintr() by functionsmmel2016-02-046-142/+6
| | | | | | | | | | | | | | | | which return -1 as well as on tier 1 archs. Remove block_userspace_access used only in these implementations. (1) These functions may be called in interrupt context and pcb_onfault can be already set in this time. Thus, prior pcb_onfault must be saved and restored afterwards. (2) The check that an abort came either from nested interrupt or while in critical section or holding not sleepable lock must be avoided for this case. These functions are called only for profiling reason, so there will be only small gain by making the code more complex.
* Do not copy by field when converting struct oexport_args to structkib2016-02-041-18/+16
| | | | | | | | | | export_args on mount update, bzero() is consistent with vfs_oexport_conv(). Make the code structure more explicit by using switch. Return EINVAL if export option layout (deduced from size) is unknown. Based on the submission by: bde Sponsored by: The FreeBSD Foundation
* Add 't' and 'p' postfixes to dd(1).trasz2016-02-042-2/+13
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Reduce code duplication.trasz2016-02-041-48/+34
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* ARM: For ARMv6/v7, code in locore.S initializes SCTLR and ACTRL registers.mmel2016-02-041-112/+0
| | | | Don't duplicate this initialization in cpu_setup().
* Access pcpup using gp register.br2016-02-043-16/+6
|
* Make VM_MEMATTR_xxx definitions independent on pmap internalsskra2016-02-043-54/+89
| | | | | | for __ARM_ARCH >= 6. It's TEX class number now, so it still has some meaning.
* ARM: Set UNAL_ENABLE bit in SCTLR CP15 register. This bit is RAO/SBOPmmel2016-02-041-2/+2
| | | | | for ARMv7. For ARMv6, it controls ARMv5 compatible alignment support. This bit have no effect until unaligned access is enabled.
* Small rearrangement of abort_handler().skra2016-02-041-19/+19
| | | | | | | | (1) Move cnt.v_trap increment to the beginning. There is cnt.v_vm_faults counter in vm_fault(), so a number of hardware emulation aborts may be get roughly as difference. (2) Move kdb_reenter() up to not be ignored if pmap_fault() has failed. (3) Update comments.
* ARM: RPI-B kernel was broken by r294740. Make it functional again.mmel2016-02-041-0/+2
|
OpenPOWER on IntegriCloud