summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of speelling errorseadler2015-10-2145-64/+64
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* Add some missing '+', .MAKE, and .PHONY modifiers.bdrewery2015-10-211-51/+52
| | | | | | | | Some of these targets were lacking both .MAKE and a '+'. Others were just inconsistent. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Use pmap_quick* for out-of-context bounce buffers and (limited) cache ↵jah2015-10-211-26/+125
| | | | | | | maintenance of unmapped buffers in armv5 busdma. Tested by: Mattia Rossi <mattia.rossi.mailinglists@gmail.com> Differential Revision: https://reviews.freebsd.org/D3522
* Switch PCI register reads from using magic numbers to using the nameskevlo2015-10-211-4/+4
| | | | defined in pcireg.h
* arge: don't do the rx fixup copy and just offset the mbuf by 2 bytesadrian2015-10-211-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing code meets the "alignment" requirement for the l3 payload by offsetting the mbuf by uint64_t and then calling an rx fixup routine to copy the frame backwards by 2 bytes. This DWORD aligns the L3 payload so tcp, etc doesn't panic on unaligned access. This is .. slow. For arge MACs that support 1 byte TX/RX address alignment, we can do the "other" hack: offset the RX address of the mbuf so the L3 payload again is hopefully DWORD aligned. This is much cheaper - since TX/RX is both 1 byte align ready (thanks to the previous commit) there's no bounce buffering going on and there is no rx fixup copying. This gets bridging performance up from 180mbit/sec -> 410mbit/sec. There's around 10% of CPU cycles spent in _bus_dmamap_sync(); I'll investigate that later. Tested: * QCA955x SoC (AP135 reference board), bridging arge0/arge1 by programming the switch to have two vlangroups in dot1q mode: # ifconfig bridge0 inet 192.168.2.20/24 # etherswitchcfg config vlan_mode dot1q # etherswitchcfg vlangroup0 members 0,1,2,3,4 # etherswitchcfg vlangroup1 vlan 2 members 5,6 # etherswitchcfg port5 pvid 2 # etherswitchcfg port6 pvid 2 # ifconfig arge1 up # ifconfig bridge0 addm arge1
* Remove disconnected xditview.bdrewery2015-10-211-34/+0
|
* Fix building in a directory with SUBDIRs and SUBDIR_PARALLEL.bdrewery2015-10-211-4/+4
| | | | | | | | | | | | | | | The SUBDIR_PARALLEL feature uses a .for dir in ${SUBDIR} loop. The old code here for recursing was setting SUBDIR= as a make *argument*. The SUBDIR= replacement was not actually handled until after the .for loop was unrolled. This could be seen with a '.info ${SUBDIR} ${dir}' inside of the loop which showed an empty ${SUBDIR} and a set ${dir}. Setting NO_SUBIDR= before calling ${MAKE} as an *environment* variable handles the case fine and is a more proper mechanism for disabling subdir handling. This could be seen with 'make -C tests/sys/kern -j15 SUBDIR_PARALLEL=yes'. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* cpuset.9: Link to/from the new pagecem2015-10-203-4/+8
| | | | | | A follow-up to r289667. Sponsored by: EMC / Isilon Storage Division
* Document cpuset(9)cem2015-10-203-14/+381
| | | | | | | A follow-up to r289467. Coerced by: jhb Sponsored by: EMC / Isilon Storage Division
* AR8327: Fix up the ability to configure the vlangroup configuration for the ↵adrian2015-10-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | CPU port I messed up when doing the reset_vlans method - setting vid[0] = 1 here was making it 'hidden' from configuration (as it needed ETHERSWITCH_VID_VALID as well) and so there was no way to configure vlangroup0. In per-port VLAN mode, vlangroup0 is for the CPU port (port0). Now, it normally wouldn't really matter - the CPU port thus sees all other ports. However there are two CPU ports on the AR8327 and so port0 (arge0) was seeing all traffic on port6 (arge1). If you thus tried to use arge1/port6 for anything (eg a WAN port) in a bridge group then things would very upset very quickly. Whilst here, add a comment to remind myself that yes, it'd be nice if we could specify a boot-time switch config. Tested: * AP135 reference platform w/ AR8327N switch
* Trim spaces at end of line to record the proper commit message forkib2015-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | r289660: Do not allow to execute ptrace(PT_TRACE_ME) when the process is already traced. Do not allow to execute ptrace(PT_TRACE_ME) when there is no parent which can trace the process, i.e. when the parent is already init. Note that after the PT_TRACE_ME request the process is unkillable and non-continuable until a debugger is attached, or parent is killed, the later clears P_TRACED state. Since init clearly would not debug the caller, and cannot be killed, disallow creation of unkillable processes. Reviewed by: jhb, pho Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D3908
* Improve safety of caching from r289659 by only importing of none of thebdrewery2015-10-201-0/+9
| | | | | | | | | variables are already set. This should cover odd cases such as the COMPILER_TYPE override in lib/csu/powerpc64. X-MFC-With: r289659 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Handle lib32 files during delete-old* when MK_LIB32=no.jmmv2015-10-207-15/+83
| | | | | | | | | | | | | | | | | | Extend OptionalObsoleteFiles.inc to delete all lib32 files when MK_LIB32 is set to no on a system that previously had lib32 libraries installed. Also, to prevent "make delete-old-dirs" from always deleting lib32 directories after an installworld, move the lib32 subtree to its own mtree file that only gets applied when MK_LIB32=yes. Test: Ran "make delete-old" and "make delete-old-libs" on a system that never had MK_LIB32 enabled, and on a system where MK_LIB32 was enabled and later disabled. Did this both on amd64 and powerpc64. Test: Ran "make tinderbox" without errors. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D3923
* Mark struct thread zone as type-stable.kib2015-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | When establishing the locking state for several lock types (including blockable mutexes and sx) failed, locking primitives try to spin while the owner thread is running. The spinning loop performs the test for running condition by dereferencing the owner->td_state field of the owner thread. If the owner thread exited while spinner was put off the processor, it is harmless to access reused struct thread owner, since in some near future the current processor would notice the owner change and make appropriate progress. But it could be that the page which carried the freed struct thread was unmapped, then we fault (this cannot happen on amd64). For now, disallowing free of the struct thread seems to be good enough, and tests which create a lot of threads once, did not demonstrated regressions. Reviewed by: jhb, pho Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D3908
* Reviewed by: jhb, phokib2015-10-201-1/+12
| | | | | | | Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D3908
* Pass COMPILER_TYPE and COMPILER_VERSION to sub-makes to avoid redundantbdrewery2015-10-201-0/+20
| | | | | | | | | | | | | | | | | lookups. This uses a special variable name based on a hash of ${CC}, ${PATH}, and ${MACHINE} to ensure that a cached value is not used if any of these values changes to use a new compiler. Before this there were 34,620 fork/exec from bsd.compiler.mk during a buildworld. After this there are 608. More improvement is needed to cache a value from the top-level before descending into subdirs in the various build phases. Reviewed by: brooks (earlier version) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3898
* No need to dereference struct proc to pids when comparing processeskib2015-10-201-1/+1
| | | | | | | | | for equality. Reviewed by: jhb, pho Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* iicbus: Use device_delete_children() instead of explicit child removaldumbbell2015-10-204-19/+6
| | | | | | | | | | | | | | | | | | If the bus is detached and deleted by a call to device_delete_child() or device_delete_children() on a device higher in the tree, I²C children were already detached and deleted. So the device_t pointer stored in sc points to freed memory: we must not try to delete it again. By using device_delete_children(), we let subr_bus.c figure out if there are children to take care of. While here, make sure iicbus_detach() and iicoc_detach() call device_delete_children() too, to be safe. Reviewed by: jhb, imp Approved by: jhb, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3926
* iicbus: Remove trailing whitespacesdumbbell2015-10-201-4/+4
| | | | MFC after: 1 week
* Disable SWAPPING as we don't do it on this board.sbruno2015-10-201-0/+3
|
* NTB: Revert r289645cem2015-10-202-8/+0
| | | | | | | Per Benno, this is a Linuxism we do not need in FreeBSD. Suggested by: benno Sponsored by: EMC / Isilon Storage Division
* if_ntb: Diff-reduce with Linux; add queue index typecem2015-10-201-10/+15
| | | | | | | | | Add ntb_q_idx_t so it is more clear which struct members are of the same type (some bogus uint64_ts snuck in that should have been unsigned int). Add tx_err_no_buf and s/ENOMEM/EBUSY/ in tx_enqueue to match Linux. Sponsored by: EMC / Isilon Storage Division
* NTB: MFV 8c9edf63: Fix zero size or integer overflow in ntb_set_mwcem2015-10-201-4/+7
| | | | | | | | | | | | | | | A plain 32 bit integer will overflow for values over 4GiB. Change the plain integer size to the appropriate size type in ntb_set_mw. Change the type of the size parameter and two local variables used for size. Even if there is no overflow, a size of zero is invalid here. Authored by: Allen Hubbe Reported by: Juyoung Jung Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division
* NTB: MFV da2e5ae5: Fix ntb_transport out-of-order RX updatecem2015-10-201-44/+74
| | | | | | | | | | | | | | | | | | | | | It was possible for a synchronous update of the RX index in the error case to get ahead of the asynchronous RX index update in the normal case. Change the RX processing to preserve an RX completion order. There were two error cases. First, if a buffer is not present to receive data, there would be no queue entry to preserve the RX completion order. Instead of dropping the RX frame, leave the RX frame in the ring. Schedule RX processing when RX entries are enqueued, in case there are RX frames waiting in the ring to be received. Second, if a buffer is too small to receive data, drop the frame in the ring, mark the RX entry as done, and indicate the error in the RX entry length. Check for a negative length in the receive callback in ntb_netdev, and count occurrences as rx_length_errors. Authored by: Allen Hubbe Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division
* if_ntb: Correct over-long lines, use qmin()cem2015-10-201-4/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* if_ntb: Use if_printf instead of device_printfcem2015-10-201-8/+7
| | | | Sponsored by: EMC / Isilon Storage Division
* NTB: MFV 2f887b9a: Rename Intel code names to platform namescem2015-10-202-154/+154
| | | | | | | | | | | | Mechanically replace "SOC" with "ATOM" to match Linux. No functional change. Original Linux commit log follows: Instead of using the platform code names, use the correct platform names to identify the respective Intel NTB hardware. Authored by: Dave Jiang Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division
* NTB: Don't abort if setting a MW write-combine failscem2015-10-201-10/+27
| | | | | | Also log BAR mapping results more verbosely. Sponsored by: EMC / Isilon Storage Division
* NTB: Fix typo in bar5 tunablescem2015-10-201-2/+2
| | | | | | | Typo introduced in r289614. Pointy-hat: cem Sponsored by: EMC / Isilon Storage Division
* NTB: MFV 7eb38781: Print driver name in module initcem2015-10-202-0/+8
| | | | | | | | Prints driver name to indicate what is being loaded. Authored by: Dave Jiang Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division
* Move location of RCS keyword according to style.hselasky2015-10-2088-133/+180
| | | | | Suggested by: jhb @ Sponsored by: Mellanox Technologies
* Document isp_*_multi firmware kernel modules removal at r289626.mav2015-10-201-0/+5
|
* check boundaries while parsing SDP responsesemax2015-10-201-9/+43
| | | | | | Reported by: hps Reviewed by: hps MFC after: 1 week
* Switch pl_child_pid from int to pid_t.jhb2015-10-203-4/+4
| | | | | | Reviewed by: emaste, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3857
* ql_hw.c: fixed error code INJCT_HEARTBEAT_FAILUREdavidcs2015-10-203-4/+3
| | | | | | ql_os.c: removed unnecessary debug printf ql_ver.h: updated version number MFC after:5 days
* Enable all callin ttys if the tty is an available console.gjb2015-10-206-22/+22
| | | | | | Discussed on: -arch@ (no objections) MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Add missing FreeBSD RCS keyword and SVN properties.hselasky2015-10-207-0/+7
| | | | Sponsored by: Mellanox Technologies
* Add missing FreeBSD RCS keyword and SVN properties.hselasky2015-10-207-1/+8
| | | | Sponsored by: Mellanox Technologies
* Uncomment some rather important code that was commented out for benchmarking.ian2015-10-201-4/+4
| | | | | | | | | Normally this routine is supposed to loop until the PIC returns a "no more interrupts pending" indication. I had commented that out to do just one interrupt per invokation to do some timing tests. Spotted by: Svata Kraus Pointy Hat: ian
* Include "opt_platform.h" to fix kernel build for amlogic devices.ganbold2015-10-201-0/+2
|
* newfs_msdos: use NetBSD's mkfs_msdos.h verbatim for makefs compatibilityemaste2015-10-201-42/+50
| | | | Sponsored by: The FreeBSD Foundation
* Allow osreldate and osrelease to be set per jailphk2015-10-201-0/+2
|
* Update firmware images for Qlogic 24xx/25xx from 5.5.0 to 7.3.0.mav2015-10-207-54392/+28968
| | | | | This also removes separate "_multi" images, since this funcationality is now in base, and there is simply no new images without it for years.
* Add missing dash to copyright clause.hselasky2015-10-201-1/+1
| | | | Sponsored by: Mellanox Technologies
* Add missing FreeBSD RCS keyword and SVN properties.hselasky2015-10-2070-0/+70
| | | | Sponsored by: Mellanox Technologies
* o NetBSD 7.0, OpenBSD 5.8, FreeBSD 10.2, OS X 10.11 added.pluknet2015-10-201-11/+19
|
* Zero mbox[0] for INIT_FIRMWARE to fix version 7.3 firmware.mav2015-10-202-5/+13
| | | | While there, add new fields to isp_icb_2400_t structure.
* Merge LinuxKPI changes from DragonflyBSD:hselasky2015-10-201-95/+46
| | | | | | | | | | | - Remove redundant NBLONG macro and use BIT_WORD() and BIT_MASK() instead. - Correctly define BIT_MASK() according to Linux and update all users of this macro. - Add missing GENMASK() macro. - Remove all comments deriving from Linux. Sponsored by: Mellanox Technologies
* Decode more firmware attributes.mav2015-10-202-2/+67
|
* Follow the advice of the misplaced comment and don't access the map structian2015-10-201-2/+1
| | | | after freeing it. Remove the comment whose uselessness has been revealed.
OpenPOWER on IntegriCloud