summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* As <machine/pmap.h> is included from <vm/pmap.h>, there is no need toskra2016-02-2263-64/+0
| | | | | | | include it explicitly when <vm/pmap.h> is already included. Reviewed by: alc, kib Differential Revision: https://reviews.freebsd.org/D5373
* hyperv/hn: Add TX method for txeof processing.sephe2016-02-222-7/+10
| | | | | | | | | | Preamble to implement ifnet.if_transmit method. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5346
* hyperv/hn: Staticize and rename packet TX done functionsephe2016-02-222-12/+4
| | | | | | | | | | | | | It is only used in hv_netvsc_drv_freebsd.c; and rename it to hn_tx_done() mainly to reserve "xmit" for ifnet.if_transmit implement. While I'm here, remove unapplied comment. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5345
* hyperv/hn: Rename TX related function and struct fields a bitsephe2016-02-222-9/+9
| | | | | | | | | | Preamble to implement the ifnet.if_transmit method. Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5344
* urtwn: shutdown the device properlyavos2016-02-223-2/+296
| | | | | | | | | | | - R92C path: NetBSD (mostly) - R88E path: TP-Link driver Tested with RTL8188EU and RTL8188CUS. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5198
* ifnet lock was changed to use sx(9) long time ago.yongari2016-02-222-4/+4
| | | | Don't hold a driver lock for if_free(9).
* urtwn: add an option to compile the driver without firmware specific codeavos2016-02-225-12/+34
| | | | | | | | | | | | | | | | - Add URTWN_WITHOUT_UCODE option (will disable any firmware specific code when set). - Do not exclude the driver from build when MK_SOURCELESS_UCODE is set (URTWN_WITHOUT_UCODE will be enforced unconditionally). - Do not abort initialization when firmware cannot be loaded; behave like the URTWN_WITHOUT_UCODE option was set. - Drop some unused variables from urtwn_softc structure. Tested with RTL8188EU and RTL8188CUS in HOSTAP and STA modes. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4849
* Make efi_time and EFI_GetTimeOfDay static, neither are used by other partsandrew2016-02-212-3/+2
| | | | | | of the efi code. Sponsored by: ABT Systems Ltd
* sh: Don't hash alias name when there are no aliases.jilles2016-02-211-2/+4
|
* Document the ability to override compiled-in env and hints using variablesian2016-02-211-3/+6
| | | | in the bootloader-provided env.
* sh: Optimize setprompt(0).jilles2016-02-211-0/+2
| | | | Avoid doing work to print an empty prompt (such as when reading scripts).
* rtwn: import r290048.avos2016-02-211-26/+43
| | | | | | | | | | | - Fix scanning from AUTH state. Tested by: Simone Mario Lombardo <evil.lombo@gmail.com> PR: 203105 Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4820
* Allow a dynamic env to override a compiled-in static env by passing in theian2016-02-211-0/+11
| | | | | | override indication in the env data. Submitted by: bde
* Minor style cleanups.ian2016-02-211-2/+2
| | | | Submitted by: bde
* sh: Remove unnecessary flushouts while reading script.jilles2016-02-211-2/+0
| | | | | Output is flushed when a builtin is done or immediately after writing it (error messages, set -v output, prompts).
* ostiInitiatorIOCompleted(): wrong sizeof() argument.pfg2016-02-211-1/+1
| | | | | Detected by: PVS Static Analysis CID: 1331601, 1331523
* Unconditionally set e_ident[OSABI]=ELFOSABI_FREEBSD in arm binary headers.ian2016-02-211-12/+2
| | | | | | | | | When the armv6 support was imported from a project branch, this complex conditional logic and related #define'd values came along, but it's really not clear what the intent of it all was. The effect, however, was that OSABI was always set to zero, which is "UNIX System V ABI". Having the wrong value there causes pkg(8) to avoid looking inside arm elf binaries to determine shared-lib required/provides info for packaging.
* Implement /proc/$$/limits.des2016-02-211-0/+64
| | | | | | PR: 207386 Submitted by: Szymon Śliwa <knight.erraunt@gmail.com> MFC after: 3 weeks
* Make the "invalid numeric value" error message actually displayabletrasz2016-02-211-8/+6
| | | | | | | | | (was a dead code before). Submitted by: bde@ (earlier version) Reviewed by: bde@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8).dim2016-02-212-5/+5
| | | | | | | | | | | | | | | Currently, zfs(8) and zpool(8) print "invalid type '(null)'" or similar messages, if you pass in invalid types, sources or column names for "zfs get", "zfs list" and "zpool get". This is because the commands use getsubopt(3), and in case of failure, they print 'value', which is NULL when sub options don't match. They should print 'suboptarg' instead, which is the documented way to get at the non-matching sub option value. Reviewed by: smh MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D5365
* Add a missing call to dev_cleanup from the arm64 loader.efi.andrew2016-02-201-0/+2
| | | | Sponsored by: ABT Systems Ltd
* Some BIOSes ACPI bytecode needs to take (sleepable) acpi mutex forkib2016-02-203-6/+15
| | | | | | | | | | | | | | | acpi_GetInteger() execution. Intel DMAR interrupt remapping code needs to know UID of the HPET to properly route the FSB interrupts from the HPET, even when interrupt remapping is disabled, and the code is executed under some non-sleepable mutexes. Cache HPET UIDs in the device softc at the attach time and provide lock-less method to get UID, use the method from the dmar hpet handling code instead of calling GetInteger(). Reported and tested by: Larry Rosenman <ler@lerctr.org> Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Switch /dev/hpet to use make_dev_s(9). Device needs si_drv1kib2016-02-201-8/+14
| | | | | | | | initializated, do it correctly even though hpet cannot be loaded as module. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* in pf_print_state_parts, do not use skw->proto to print the protocol but ourkp2016-02-201-1/+1
| | | | | | | local copy proto that we very carefully set beforehands. skw being NULL is perfectly valid there. Obtained from: OpenBSD (henning)
* Revert r295756:zbb2016-02-2010-684/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Extract common code from PowerPC's ofw_pci Import portions of the PowerPC OF PCI implementation into new file "ofw_pci.c", common for other platforms. The files ofw_pci.c and ofw_pci.h from sys/powerpc/ofw no longer exist. All required declarations are moved to sys/dev/ofw/ofw_pci.h. This creates a new ofw_pci_write_ivar() function and modifies ofw_pci_nranges(), ofw_pci_read_ivar(), ofw_pci_route_interrupt() methods. Most functions contain existing ppc implementations in the majority unchanged. Now there is no need to have multiple identical copies of methods for various architectures. Submitted by: Marcin Mazurek <mma@semihalf.com> Obtained from: Semihalf Sponsored by: Annapurna Labs Reviewed by: jhibbits, mmel Differential Revision: https://reviews.freebsd.org/D4879 This needs to return to the drawing board as it breaks both PowerPC and Sparc64 build. Pointed out by: jhibbits
* ifconfig(8): can't use 'name' or 'description' when creating interface with ↵kp2016-02-203-2/+24
| | | | | | | | | | | | | | | auto numbering If one does 'ifconfig tap create name blah', it will return error because the 'name' command doesn't properly populate the request sent to ioctl(...). The 'description' command has the same bug, and is also fixed with this patch. If one does 'ifconfig tap create mtu 9000 name blah', it DOES work, but 'tap0' (or other sequence number) is echoed, instead of the expected 'blah'. (assuming the name change actually succeeded) Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com> Differential Revision: https://reviews.freebsd.org/D5341
* Rename busdma_machdep.c to busdma_machdep-v4.c, pmap.c to pmap-v4.cskra2016-02-204-3/+3
| | | | | and trap.c to trap-v4.c to be plain and consistent with other armv4 specific files.
* Fix the definition of RM_MAX_END.jhibbits2016-02-201-1/+1
| | | | | Even though casting from signed to unsigned is well-defined in C, it's better to first cast to the larger unsigned type, then negate.
* Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it.jhibbits2016-02-2043-42/+45
| | | | | | | | | | | This simplifies checking for default resource range for bus_alloc_resource(), and improves readability. This is part of, and related to, the migration of rman_res_t from u_long to uintmax_t. Discussed with: jhb Suggested by: marcel
* ixl(4)/ixlv(4): Revert m_collapse() in ixl_xmit() to m_defrag().erj2016-02-191-1/+1
| | | | | | | | | | The m_collapse() call would fail when transmitting medium-sized packets when the interface mtu was set to 9000, so revert back to m_defrag(), which does not fail. Differential Revision: https://reviews.freebsd.org/D5207 Tested by: jeffrey.e.pieper@intel.com Sponsored by: Intel Corporation
* Remove dead code. Code Cleanup. Improve clarity in debug messagesdavidcs2016-02-194-1064/+110
| | | | MFC after:5 days
* ixl(4): Fix errors in queue interrupt setup in MSIX mode.erj2016-02-191-5/+3
| | | | | | | | | | | | - I40E_PFINT_DYN_CTLN needs to be cleared, and not have a queue index written to it. - The interrupt linked list for each queue is changed to only include the queue's Rx and Tx queues. Differential Revision: https://reviews.freebsd.org/D5206 Reviewed by: sbruno Tested by: jeffrey.e.pieper@intel.com Sponsored by: Intel Corporation
* ixl(4): Remove unsupported device IDs.erj2016-02-191-3/+0
| | | | | | | | | There is no official support for 20G SKUs on FreeBSD, and the KX_A device ID was never used. Differential Revision: https://reviews.freebsd.org/D5204 Reviewed by: sbruno, jeffrey.e.pieper@intel.com Sponsored by: Intel Corporation
* DIRDEPS_BUILD: Enable the post-build footer/stats display.bdrewery2016-02-191-0/+1
| | | | | | There is no real downside to this and it is useful to have enabled. Sponsored by: EMC / Isilon Storage Division
* ixl(4): Fix two important RSS bugs.erj2016-02-191-2/+12
| | | | | | | | | | | | | - Change tc_mapping field to assign 64 queues instead of 16 to the PF's VSI; add comments to describe how this is done. - Set hash lut size to 512 when setting filter control; the lut size defaults to 128 if this isn't set. Differential Revision: https://reviews.freebsd.org/D5203 Reviewed by: gallatin Tested by: jeffrey.e.pieper@intel.com Sponsored by: Intel Corporation
* sh: Rework code to remove '\0' from shell input.jilles2016-02-193-28/+37
| | | | | This fixes bugs where '\0' was not removed correctly and speeds up the parser.
* Modified the use of bxe_grc_dump() function so that it can be invoked ↵davidcs2016-02-192-42/+56
| | | | | | | | directly at any potential error path, where a fwdump is needed. The fwdump (a.k.a grcdump) is stored in a driver buffer. The sysctl grcdump_done indicates if a fwdump was taken and waiting to be retrieved. The sysctl trigger_grcdump can be used to manually trigger a fwdump. MFC after:5 days
* qlxgb: fix mismatch.pfg2016-02-191-1/+2
| | | | | | Found by: PVS Static Analysis Reviewed by: davidcs MFC after: 1 month
* sh: Add tests for comments in sh -c.jilles2016-02-193-0/+9
|
* Fix syntax error introduced in previous commit where I removed onese2016-02-191-1/+1
| | | | | character to few. I should have waited for the kernel compile to finish, even though the change seemed so trivial.
* Remove redundant check for "(dinfo != NULL)", it has already been performedse2016-02-191-3/+3
| | | | | | as the first part of this complex loop conditional. Found by: PVS Static Analysis
* Ext2: cleanup setting of ctime/mtime/birthtime.pfg2016-02-191-5/+3
| | | | | | | | | | | This adopts the same change as r291936 for UFS. Directly clear IN_ACCESS or IN_UPDATE when user supplied the time, and copy the value into the inode. This keeps the behaviour cleaner and is consistent with UFS. Reviewed by: bde MFC after: 1 month (only 10)
* firewire: fix a mismatch introduced in r230558.pfg2016-02-191-1/+1
| | | | | | Found by: PVS Static Analysis Reviewed by: sbruno MFC after: 1 month
* Remove objcopy in WITHOUT_TOOLCHAIN if it's from elftoolchainemaste2016-02-191-0/+4
|
* Add initial support for the Allwinner A31i and A31s. This just adds theandrew2016-02-192-0/+38
| | | | | | | | FDT platform code to detect when we are booting on one of these SoCs. The driver changes will be added shortly. Submitted by: Emmanuel Vadot <manu@bidouilliste.com> Differential Revision: https://reviews.freebsd.org/D5338
* Include ofw_bus_subr.h before ofw_pci.h for the definition of structandrew2016-02-191-1/+1
| | | | | | ofw_bus_iinfo. Sponsored by: ABT Systems Ltd
* Fix possible out-of-bounds access detected by Ulrich Spörleins "scan-build".se2016-02-191-19/+15
| | | | | | | | | | | Some invalid PCI device selectors could cause read access to an initialized variable next to the array (local loop index variable). While here, the parser has been made more strict with regard to the syntax of PCI device selectors as documented in the man-page. E.g. "pci:" used to be interpreted as "pci0:0". MFC after: 3 days
* Use the SCTP level pointer, not the interface level.tuexen2016-02-191-3/+2
| | | | MFC after: 3 days
* Remove not used static function pmap_kenter_attr().skra2016-02-191-7/+0
|
* Remove not used definitions and fix some style nits.skra2016-02-191-24/+12
| | | | No functional changes.
OpenPOWER on IntegriCloud