summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* The random_adapters.c is standard in the conf/files. Revert wrongkib2013-08-101-1/+1
| | | | | | r254185. Pointed out by: peter
* Restore the ability to kldload random.ko, by linking in the newlykib2013-08-101-1/+1
| | | | added random_adaptors.c.
* Fix a typo. The script should run /usr/bin/svnliteversion instead ofgjb2013-08-101-1/+1
| | | | | | /usr/bin/svnversion in the affected section. Reported by: lev, Dan Mack
* Different consumers of the struct vm_page abuse pageq member to keepkib2013-08-1013-196/+196
| | | | | | | | | | | | | | | | | additional information, when the page is guaranteed to not belong to a paging queue. Usually, this results in a lot of type casts which make reasoning about the code correctness harder. Sometimes m->object is used instead of pageq, which could cause real and confusing bugs if non-NULL m->object is leaked. See r141955 and r253140 for examples. Change the pageq member into a union containing explicitly-typed members. Use them instead of type-punning or abusing m->object in x86 pmaps, uma and vm_page_alloc_contig(). Requested and reviewed by: alc Sponsored by: The FreeBSD Foundation
* Fix the return value when we found a symbol in .dynstr. This nasty bug wasrpaulo2013-08-101-0/+1
| | | | preventing a lot of symbol lookups in dtruss -s, for example.
* mdoc: remove commented out macro, sort SEE ALSO and add missing .El.joel2013-08-101-6/+6
|
* Minor mdoc nits.joel2013-08-101-2/+1
|
* mdoc: document title should be all caps.joel2013-08-101-1/+1
|
* Fix bug in r253719: fix command line watchdog disable.alfred2013-08-101-7/+9
| | | | | r253719 disallowed watchdog(8) from disabling the watchdog by breaking the ability to pass 0 as a timeout arg. Fix this.
* Use the correct address when calling kva_free()cognet2013-08-101-1/+1
| | | | | Pointy hat to: cognet Spotted out by: alc
* - The address lies in the bus space handle, not in the cookiecognet2013-08-101-5/+5
| | | | | | - Use the right address when calling kva_free() (Is there any reason why the s3c2xx0 comes with its own version of bs_map/ bs_unmap ? It seems to be just the same as in bus_space_generic.c)
* Remove unused definition for CTL_VM_NAMES.zont2013-08-091-15/+0
| | | | Suggested by: bde
* Don't call sleepinit() from proc0_init(), make it a SYSINIT instead.cognet2013-08-093-7/+8
| | | | | vmem needs the sleepq locks to be initialized when free'ing kva, so we want it called as early as possible.
* Instead of just trying to do it for arm, make sure vm_kmem_size is properlycognet2013-08-092-2/+3
| | | | | | aligned in kmeminit(), where it'll work for any arch. Suggested by: alc
* - The address lies in the bus space handle, not in the cookiecognet2013-08-091-5/+5
| | | | - Use the right address when calling kva_free()
* Make sure vm_kmem_size is aligned on a page boundary, since that's what vmemcognet2013-08-091-2/+2
| | | | expects.
* Revert the addition of VPO_BUSY and instead update vm_page_replace() tojhb2013-08-092-7/+6
| | | | | | properly unbusy the page. Submitted by: alc
* Initial commit of my USB test code which can exercise connected USBhselasky2013-08-097-0/+3579
| | | | | | | | | | | | | devices and the FreeBSD USB stack itself. This program can be used to test compliance against well established usb.org standards, also called chapter-9 tests. The host platform can act as either USB device or USB host depending on the available hardware. The basic USB communication happens through FreeBSD's own libusb v2, and some sysctls are also used to invoke specific error conditions. This test program can be used to verify correct operation of external USB harddisks under heavy load and various other conditions. The software is driven via a simple command line interface. Main supported USB host classes are "USB mass storage" and "USB modems".
* Fix the freaddir implementation for the stand-alone interpreter.marcel2013-08-091-11/+39
| | | | Bug pointed out by: Jan Beich <jbeich@tormail.org>
* Add mkostemp() and mkostemps().jilles2013-08-097-24/+275
| | | | | These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC.
* Add missing 'VPO_BUSY' from r254141 to fix kernel build break.obrien2013-08-091-0/+1
|
* * Add random_adaptors.[ch] which is basically a store of random_adaptor's.obrien2013-08-0913-109/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: so (des)
* On all the architectures, avoid to preallocate the physical memoryattilio2013-08-0915-129/+456
| | | | | | | | | | | | | | | | | | | | | for nodes used in vm_radix. On architectures supporting direct mapping, also avoid to pre-allocate the KVA for such nodes. In order to do so make the operations derived from vm_radix_insert() to fail and handle all the deriving failure of those. vm_radix-wise introduce a new function called vm_radix_replace(), which can replace a leaf node, already present, with a new one, and take into account the possibility, during vm_radix_insert() allocation, that the operations on the radix trie can recurse. This means that if operations in vm_radix_insert() recursed vm_radix_insert() will start from scratch again. Sponsored by: EMC / Isilon storage division Reviewed by: alc (older version) Reviewed by: jeff Tested by: pho, scottl
* Give mutex(9) the ability to recurse on a per-instance basis.attilio2013-08-092-8/+24
| | | | | | | | | | Now the MTX_RECURSE flag can be passed to the mtx_*_flag() calls. This helps in cases we want to narrow down to specific calls the possibility to recurse for some locks. Sponsored by: EMC / Isilon storage division Reviewed by: jeff, alc Tested by: pho
* The soft and hard busy mechanism rely on the vm object lock to work.attilio2013-08-0944-723/+870
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify the 2 concept into a real, minimal, sxlock where the shared acquisition represent the soft busy and the exclusive acquisition represent the hard busy. The old VPO_WANTED mechanism becames the hard-path for this new lock and it becomes per-page rather than per-object. The vm_object lock becames an interlock for this functionality: it can be held in both read or write mode. However, if the vm_object lock is held in read mode while acquiring or releasing the busy state, the thread owner cannot make any assumption on the busy state unless it is also busying it. Also: - Add a new flag to directly shared busy pages while vm_page_alloc and vm_page_grab are being executed. This will be very helpful once these functions happen under a read object lock. - Move the swapping sleep into its own per-object flag The KPI is heavilly changed this is why the version is bumped. It is very likely that some VM ports users will need to change their own code. Sponsored by: EMC / Isilon storage division Discussed with: alc Reviewed by: jeff, kib Tested by: gavin, bapt (older version) Tested by: pho, scottl
* Don't dereference null pointer should acl_alloc() be passed M_NOWAITtrasz2013-08-091-0/+3
| | | | | | | and allocation failed. Nothing in the tree passed M_NOWAIT. Obtained from: mjg MFC after: 1 month
* Add -c flag to pgrep(1) and pkill(1), to match login classes.trasz2013-08-092-8/+42
| | | | MFC after: 1 month
* follow up to r254051avg2013-08-096-13/+7
| | | | | | | | - update powerpc/GENERIC64 as well, suggested by mdf - update comments so that they make sense after the change, suggested by jhb X-MFC after: never (change specific to head)
* Add empty zones for Shared Address Space (RFC 6598)erwin2013-08-091-0/+66
| | | | | | Approved by: delphij (mentor) MFC after: 3 days Sponsored by: DK Hostmaster A/S
* - Fix compile errors from the clang conversionjeff2013-08-094-7/+14
| | | | | | | - Grab AF_SDP_INET from sys/socket.h Submitted by: Garrett Cooper Sponsored by: EMC / Isilon Storage Division
* - Reserve a special AF for SDP. The one we were incorrectly using beforejeff2013-08-092-1/+7
| | | | | | was taken by another AF. Sponsored by: EMC / Isilon Storage Division
* - Correctly handle various edge cases in sysfs emulation.jeff2013-08-091-4/+7
| | | | Sponsored by: EMC / Isilon Storage Division
* - Use the correct type in the linux bitops emulation.jeff2013-08-091-4/+9
| | | | Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
* Fix for IPv4 fragment packets treated as RMCP.yongari2013-08-092-0/+3
| | | | | | | | | bit25 of rxMode MAC register of 5762 needs to be set for rx mgmt filter to work correctly when processing match for UDP header fields. Otherwise false positive can occur which causes IPv4 fragment to be received by APE instead of host. Reported by: Geans Pin <geanspin@broadcom.com>
* Rate limit the 'out of chain frame' messages to once per 60 seconds.scottl2013-08-092-2/+8
| | | | | Obtained from: Netflix MFC after: 3 days
* Sometimes a device misbehaves so badly that it disrupts the entire system.scottl2013-08-095-0/+32
| | | | | | | | | | Add a tunable that allows such a device to be excluded from the driver. The id parameter is the target id that the driver assigns to a given device. dev.mps.X.exclude_ids=<id>,<id> Obtained from: Netflix MFC after: 3 days
* Add a helpful message that can help point to why a sysctl tree removal failedscottl2013-08-091-1/+5
| | | | | Obtained from: Netflix MFC after: 3 days
* MFV r254079:delphij2013-08-0811-96/+230
| | | | | | | | | | | Illumos ZFS issues: 3957 ztest should update the cachefile before killing itself 3958 multiple scans can lead to partial resilvering 3959 ddt entries are not always resilvered 3960 dsl_scan can skip over dedup-ed blocks if physical birth != logical birth 3961 freed gang blocks are not resilvered and can cause pool to suspend 3962 ztest should print out zfs debug buffer before exiting
* Update legacy static assignments in old code to support dynamic framing,dteske2013-08-082-16/+96
| | | | plotting, and alignment coinciding with enhancements in SVN r242667.
* MFV r254106 (OpenSSL bugfix for RT #2984):delphij2013-08-081-1/+1
| | | | | | | | | | | Check DTLS_BAD_VER for version number. The version check for DTLS1_VERSION was redundant as DTLS1_VERSION > TLS1_1_VERSION, however we do need to check for DTLS1_BAD_VER for compatibility. Requested by: zi Approved by: benl
* Since the introduction of SVN r244048 and [follow-up] r244089, it is nowdteske2013-08-088-43/+51
| | | | safe to build upon ``boot_serial?'' functionality to make safer UI choices.
* Small typo.pfg2013-08-081-1/+1
| | | | MFC after: 3 days
* Allow drivers to return BUS_PROBE_NOWILDCARD from their attach routine torstone2013-08-081-3/+3
| | | | | | | | match devices where the driver class was fixed but the unit number was wildcarded. This better matches the documented behaviour in DEVICE_PROBE(9). Reviewed by: imp
* gpt_entries is used as limit for the number of partition entries inae2013-08-081-2/+3
| | | | | | | | the GEOM_PART. Instead of just using number of entries from the GPT header, calculate this limit based on the reserved space between GPT header and first available LBA. MFC after: 2 weeks
* When newvers.sh is run, it is possible that the svnversiongjb2013-08-081-6/+18
| | | | | | | | | | | | | | | | | | (or svnliteversion) in the current lookup path is not what was used to check out the tree. If an incompatible version is used, the svn revision number is not reported in uname(1). Run ${svnversion} on newvers.sh itself when evaluating if the svn(1) in use is compatible with the tree. Fallback to an empty ${svnversion} if necessary. With this change, svnliteversion from base is only used if no compatible svnversion is found, so with this change, the version of svn(1) from the ports tree is evaluated first. Requested by: many MFC after: 3 days X-MFC-To: stable/9, releng/9.2 only
* Part of r245761 makes "grep -D skip" broken for pipes, i.e.ache2013-08-081-5/+7
| | | | | | | echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition (originally absent in this version of grep), make it work as latest GNU version does: don't skip directories and devices if fd == STDIN_FILENO.
* Make the check for number of entries less strict.ae2013-08-081-6/+9
| | | | | | | Some partitioning tools can create GPT with number of entries less than 128. MFC after: 1 week
* According to POSIX \ in the fnmatch(3) pattern should escapeache2013-08-081-2/+0
| | | | | | | | | | any character including '\0', but our version replace escaped '\0' with '\\'. I.e. fnmatch("\\", "\\", 0) should not match while fnmatch("\\", "", 0) should (Linux and NetBSD does the same). Was vice versa. PR: 181129 MFC after: 1 week
* Cap the number of streams supported to two for now.adrian2013-08-081-0/+14
| | | | | | | | | | | | I haven't yet reviewed the Intel driver(s) in more depth to see if there are 1x1 NICs that report they support 2 transmit/receive chains.. if so then we'll have to update this. Tested: * Intel 4965, which is a 2x2 device with 3 RX and 2 TX chains. PR: kern/181132
* Convert net80211 over to using if_transmit for the dispatch from theadrian2013-08-0812-61/+54
| | | | | | | | | | | | | | | | | | | | | | | | upper layer(s). This eliminates the if_snd queue from net80211. Yay! This unfortunately has a few side effects: * It breaks ALTQ to net80211 for now - sorry everyone, but fixing parallelism and eliminating the if_snd queue is more important than supporting this broken traffic scheduling model. :-) * There's no VAP and IC flush methods just yet - I think I'll add some NULL methods for now just as placeholders. * It reduces throughput a little because now net80211 will drop packets rather than buffer them if the driver doesn't do its own buffering. This will be addressed in the future as I implement per-node software queues. Tested: * ath(4) and iwn(4) in STA operation
OpenPOWER on IntegriCloud