summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge rev. 1.125 from OpenBSD:glebius2012-11-071-68/+57
| | | | | | | | | | | date: 2009/06/12 02:03:51; author: dlg; state: Exp; lines: +59 -69 rewrite the way states from pfsync are merged into the local state tree and the conditions on which pfsync will notify its peers on a stale update. each side (ie, the sending and receiving side) of the state update is compared separately. any side that is further along than the local state tree is merged. if any side is further along in the local state table, an update is sent out telling the peers about it.
* It may happen that pfsync holds the last reference on a state. In thisglebius2012-11-071-0/+10
| | | | | | | | | | | | | case keys had already been freed. If encountering such state, then just release last reference. Not sure this can happen as a runtime race, but can be reproduced by the following scenario: - enable pfsync - disable pfsync - wait some time - enable pfsync
* Fix typo; s/ouput/outputkevlo2012-11-078-8/+8
|
* Nm ipseckevlo2012-11-071-1/+1
|
* Disable my software queue TIM and PS handling for now.adrian2012-11-071-0/+37
| | | | | | | ps-poll is totally broken in its current form. This should unbreak things enough to let people use PS-POLL devices, but leave it in place for me to finish PS-POLL handling.
* Add new HAL configuration features for the updated AR9300 HAL.adrian2012-11-073-1/+7
|
* Hook in new files menusets.4th and manual.dteske2012-11-077-6/+7
| | | | Approved by: adrian (co-mentor) (implicit)
* Remove -L<path> from LDADD, it doesn't belong there.marcel2012-11-071-1/+3
| | | | | | Add it to LDFLAGS instead. Submitted by: Garrett Cooper <yanegomi@gmail.com>
* The first line must contain "Content-Type:". Move the $FreeBSD$marcel2012-11-072-2/+2
| | | | | | keyword line to the comment block underneath. Submitted by: Garrett Cooper <yanegomi@gmail.com>
* - Extend the prior commit to use the generic SCSI command buildingambrisko2012-11-066-198/+231
| | | | | | | | | | | | | | | | | | | | | | function use that for JBOD and Thunderbolt disk write command. Now we only have one implementation in mfi. - Fix dumping on Thunderbolt cards. Polled IO commands do not seem to be normally acknowledged by changing cmd_status to MFI_STAT_OK. In order to get acknowledgement of the IO is complete, the Thunderbolt command queue needs to be run through. I added a flag MFI_CMD_SCSI to indicate this command is being polled and to complete the Thunderbolt wrapper and indicate the result. This flag needs to be set in the JBOD case in case if that us using Thunderbolt card. When in the polling loop check for completed commands. - Remove mfi_tbolt_is_ldio and just do the check when needed. - Fix an issue when attaching of disk device happens when a device is already scheduled to be attached but hasn't attached. - add a tunable to allow raw disk attachment to CAM via: hw.mfi.allow_cam_disk_passthrough=1 - fixup aborting of commands (AEN and LD state change). Use a generic abort function and only wait the command being aborted not both. Thunderbolt cards don't seem to abort commands so the abort times out.
* Fix possible spurious sbunlock in sctp_sorecvmsg.mjg2012-11-061-1/+1
| | | | | | Reviewed by: tuexen Approved by: trasz (mentor) MFC after: 3 days
* Work around a race in bpfread() by validating the hold buffer pointerghelmer2012-11-061-4/+7
| | | | | before freeing it. Otherwise, we can lose a buffer and cause a panic in catchpacket().
* Make sure the inp hasn't been dropped before trying to access its socketnp2012-11-061-6/+10
| | | | | | and tcpcb. MFC after: 3 days
* Fix funny comment.dteske2012-11-061-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Fix c/p error in comment.dteske2012-11-061-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Add ontop of my existing boot loader Forth code, including support fordteske2012-11-065-2/+1016
| | | | | | | | | | | | submenus. See menusets.4th(8) for additional details including examples. Discussed on arch and recommended for inclusion at the devsummit. This change does not alter the appearance or user experience, only enhances possibilities. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Remove the tid from the software table (and bump down the in-usenp2012-11-061-0/+1
| | | | | | | | counter) when the syncache doesn't want the driver to reply to an incoming SYN. This fixes a harmless bug where tids_in_use would go out of sync with the hardware counter. MFC after: 3 days
* Fix typo in bsd.compiler.mk.dim2012-11-061-1/+1
|
* Convert the aggregate descriptor path over to use the same API asadrian2012-11-061-108/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the non-aggregate path. I "cheated" by using some TX setup code in our HAL that isn't present in the atheros HAL (or Linux ath9k.) The old path for forming aggregates was: * setup the rate control in the first descriptor; * call chaintxdesc() on all the frames; * call setupfirsttxdesc() on the first descrpitor in the first frame; * call setuplasttxdesc() on the last descriptor in the last frame. The new path for forming aggregates looks like the non-aggregate path: * call setuptxdesc() on the first descriptor in the first frame; * setup the rate control in the first descriptor; * call filltxdesc() on each descriptor in the frame; * if it's an aggregate - call set11n_aggr_{first, middle, last} as appropriate (see the code for a description of what is "appropriate".) Now, this is done primarily for the AR9300 HAL - it doesn't implement the first set of aggregate functions. It just has the older methods and the "first/middle/last" aggregate methods. So, let's convert the code to use these. Note: the AR5416 HAL in FreeBSD had that code (from me, a while ago) and a previous commit brought it up to behave the same as the AR9300 HAL routines. There's some further tidyups to be done - specifically, avoid doing multiple calls to the 11n descriptor functions. I shouldn't call clr11n_aggr(), then set11n_aggr_middle(), then also set11n_aggr_first(). On (at least MIPS) the TX descriptors are in non-cachable memory and this will cause multiple slow writes. I'll debug/tidy that up in a future commit. Tested: * AR9280, STA * AR9280/AR9160, AP * AR9380, STA (using a local, closed source HAL, sorry!)
* export VM_MIN_KERNEL_ADDRESS and VM_MAX_KERNEL_ADDRESS via sysctl.alfred2012-11-061-0/+8
| | | | | On several platforms the are determined by too many nested #defines to be easily discernible. This will aid in development of auto-tuning.
* Decode common state bits in getencstat output.mav2012-11-061-2/+6
|
* Add myself as a new src committerbryanv2012-11-061-0/+3
| | | | Approved by: grehan (mentor)
* Add -c option to sesd to make it clear enclosure status after reading itmav2012-11-062-22/+38
| | | | in case if it is not permanent and was fixed.
* Rise priority of the informational messages from LOG_INFO to LOG_NOTICE,mav2012-11-051-3/+2
| | | | | same as used for OK status. Otherwise it looks strange when OK status is reported, while informational is not.
* Allow CC to be gcc46 or similar by matching gcc*.brooks2012-11-051-5/+5
| | | | | Don't test the value of the :M matches, either the string matches or does not.
* Add assertion to enforce 'nat global' locking requierements changed by r241908.melifaro2012-11-052-0/+2
| | | | | Suggested by: adrian, glebius MFC after: 3 days
* Use unified print_dyn_rule_flags() function for debugging messagesmelifaro2012-11-051-93/+27
| | | | | | instead of hand-made printfs in every place. MFC after: 1 week
* Now that WITH_CLANG_IS_CC is the default on x86 systems, documentbrooks2012-11-051-1/+14
| | | | WITHOUT_CLANG_IS_CC.
* Add a description of WITHOUT_CLANG_IS_CC.brooks2012-11-051-0/+6
|
* Add the UQ_MSC_NO_PREVENT_ALLOW quirk to handle devices that do not supportmarcel2012-11-054-0/+15
| | | | | | | | | the 'PREVENT/ALLOW MEDIUM REMOVAL' SCSI command. An example of such a device is the STmicro ST72682. We send the SCSI command for every open and close, which can result in a significant amount of spam on the console during boot. Reviewed by: hps@
* Move from early SSN assignment to late SSN assignment.tuexen2012-11-054-91/+71
| | | | | | | | This doesn't change functionality, but makes upcoming change much easier. Developed with rrs@ at the IETF 85. MFC after: 1 week
* Fix a minor error in the clang update note.brooks2012-11-051-1/+1
| | | | Reported by: emaste
* Remove duplicate const specifiers in many drivers (I hope I got all ofdim2012-11-0542-52/+52
| | | | | | | | | | | | | | | | | | | | them, please let me know if not). Most of these are of the form: static const struct bzzt_type { [...list of members...] } const bzzt_devs[] = { [...list of initializers...] }; The second const is unnecessary, as arrays cannot be modified anyway, and if the elements are const, the whole thing is const automatically (e.g. it is placed in .rodata). I have verified this does not change the binary output of a full kernel build (except for build timestamps embedded in the object files). Reviewed by: yongari, marius MFC after: 1 week
* After years of hard work by many FreeBSD and LLVM developers, makebrooks2012-11-053-2/+14
| | | | | | clang the default compiler on i386 and amd64 systems. Special thanks to: dim, ed, rdivacky
* In sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newerdim2012-11-051-4/+4
| | | | | | | | versions of clang 3.2, about comparing enum uni_cause values against integer constants which fall outside the enum range. No functional change. MFC after: 3 days
* Fix a few warnings from newer clang 3.2 in libpmc, about comparing enumdim2012-11-051-2/+2
| | | | | | | | pmc_event values against integer constants which fall outside the enum range. Reviewed by: fabient, sbruno MFC after: 3 days
* Fix a minor typo.mav2012-11-051-1/+1
|
* sh: Change cmdtype in tblentry from short to signed char.jilles2012-11-051-1/+1
| | | | | If this is a smaller type than int anyway, we can make it the smallest possible.
* Add a jitter buffer in the common USB serial driver code whichhselasky2012-11-053-3/+82
| | | | | | | | | | | | | temporarily stores characters if the TTY buffer is full when used a as a console. This can happen when a console is suspended. Also properly do the flow stop signalling when this happens and flow start when the condition changes back to normal again. Bump __FreeBSD_version to force external kernel modules to be recompiled. No kernel API changes. MFC after: 1 week Suggested by: ed @
* Fix build with clang: properly terminate comment even in #if 0 blocks.delphij2012-11-051-1/+1
| | | | Submitted by: dim
* A clarification to the behaviour of the active vnode list managementkib2012-11-051-0/+3
| | | | | | | regarding the vnode page cleaning. In collaboration with: pho MFC after: 1 week
* fuse_io* must be able to crunch also VDIR vnodes.attilio2012-11-051-2/+2
| | | | | | | | Update assert appropriately. Reported and Tested by: flo MFC after: 2 months X-MFC: 241519,242536
* Sync with domain and protosw data structures.kevlo2012-11-051-1/+9
| | | | Reviewed by: glebius
* Clear IFF_DRV_OACTIVE if any slots were completed.adrian2012-11-051-0/+6
| | | | This unblocks TX EDMA under high load.
* Back out r242262. The simplified window change/update logic wasn'tandre2012-11-051-47/+16
| | | | | | complete and ready for production use. PR: kern/173309
* TX EDMA debugging fixes:adrian2012-11-051-6/+7
| | | | | * Do the calculation for each ath_buf, rather than just the first * Correct the calculation in the first place.
* Revert previous commit.kevlo2012-11-051-7/+9
|
* Catch up with r242520. s/maxusers/maxbikeshedskevlo2012-11-051-9/+7
|
* Revert r228695. We use __func__ here as a format to distinguish betweenpjd2012-11-051-1/+1
| | | | | abort and assert. It would be cleaner to use NULL or "" here, but gcc complains in both cases.
* rtld: Fix fd leak with parallel dlopen and fork/exec.jilles2012-11-042-4/+4
| | | | | | | | | | | | | | | | Rtld did not set FD_CLOEXEC on its internal file descriptors; therefore, such a file descriptor may be passed to a process created by another thread running in parallel to dlopen() or fdlopen(). No other threads are expected to be running during parsing of the hints and libmap files but the file descriptors need not be passed to child processes so add O_CLOEXEC there as well. This change will break fdlopen() (as used by OpenPAM) on kernels without F_DUPFD_CLOEXEC (added in July). Note that running new userland on old kernels is not supported. Reviewed by: kib
OpenPOWER on IntegriCloud