aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use a reader/writer flag for lockstat probes in rwlock(9) andMark Johnston2015-07-197-39/+57
| | | | | | | | sx(9), rather than using the probe function name to determine whether a given lock is a read lock or a write lock. Update lockstat(1) accordingly. Notes: svn path=/head/; revision=285704
* Implement the lockstat provider using SDT(9) instead of the custom providerMark Johnston2015-07-1920-594/+145
| | | | | | | | | | | in lockstat.ko. This means that lockstat probes now have typed arguments and will utilize SDT probe hot-patching support when it arrives. Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D2993 Notes: svn path=/head/; revision=285703
* Drop libarchive.pcBaptiste Daroussin2015-07-193-18/+2
| | | | | | | | | We want to ensure we always use libarchive from ports in the ports tree. It simplifies ports maintainance and anyway libarchive.pc was not reflecting the different way libarchive can be built in base Notes: svn path=/head/; revision=285702
* Use fixed date/time (the time choosen was the time the import was done onXin LI2015-07-191-0/+5
| | | | | | | | | | | | -HEAD) in libntp so we can make reproducible build. PR: bin/201661 Reviewed by: gjb, cy, roberto MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3122 Notes: svn path=/head/; revision=285701
* Fix some untidy logic. I committed the wrong local fix; please pass the ↵Mark Murray2015-07-191-1/+1
| | | | | | | | | pointy hat. Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=285700
* add a use count so the netmap module cannot be unloaded while in use.Luigi Rizzo2015-07-193-2/+18
| | | | Notes: svn path=/head/; revision=285699
* properly destroy persistent vale portsLuigi Rizzo2015-07-191-12/+6
| | | | Notes: svn path=/head/; revision=285698
* do not free NULL if pipe allocation failsLuigi Rizzo2015-07-191-1/+3
| | | | Notes: svn path=/head/; revision=285697
* release a reference when stopping a monitorLuigi Rizzo2015-07-191-0/+1
| | | | Notes: svn path=/head/; revision=285696
* small documentation updateLuigi Rizzo2015-07-191-3/+4
| | | | Notes: svn path=/head/; revision=285695
* Fix atomic_store_64, it should write the value passed in, not the valueAndrew Turner2015-07-191-1/+1
| | | | | | | | | read by the load. Pointy Hat: andrew Notes: svn path=/head/; revision=285694
* Remove out-of-date comments.Mark Murray2015-07-192-2/+0
| | | | | | | Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=285693
* Fix the read blocking so that it is interruptable and slow down the rate of ↵Mark Murray2015-07-191-4/+10
| | | | | | | | | console warning spamming while blocked. Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=285692
* Clarify the intent of the RANDOM_* options.Mark Murray2015-07-191-2/+4
| | | | | | | Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=285691
* Optimise the buffer-size calculation. It was possible to get one block too many.Mark Murray2015-07-191-19/+16
| | | | | | | Approved by: so (/dev/random blanket) Notes: svn path=/head/; revision=285690
* Clean up the style of the armv6 atomic code.Andrew Turner2015-07-191-183/+187
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=285689
* Clean up some trailing whitespace.Mark Murray2015-07-191-5/+5
| | | | Notes: svn path=/head/; revision=285688
* Sort the ARM atomic functions to be in alphabetical order.Andrew Turner2015-07-192-344/+273
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=285687
* Revert bit of the r285627, locore.s does not need include ofKonstantin Belousov2015-07-191-1/+0
| | | | | | | | | | | opt_kstack_pages.h. The asm gets the right KSTACK_PAGES from the assym.s. Reported by: bz Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285686
* Add support to the jail framework to be able to mount linsysfs(5) andMarcelo Araujo2015-07-195-4/+40
| | | | | | | | | | | linprocfs(5). Differential Revision: D2846 Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com> Reviewed by: jamie Notes: svn path=/head/; revision=285685
* - Record dependencies of gdb/gdbtui/kgdb on binutils/lib{bfd,iberty,opcodes},Marius Strobl2015-07-192-4/+7
| | | | | | | | | | | fixing parallel builds. - Don't build gdb/gdbtui/kgdb or libreadline when MK_BINUTILS is "no" for obvious reasons. MFC after: 3 days Notes: svn path=/head/; revision=285684
* move the prototype to the lib.h header.. This makes more sense, andJohn-Mark Gurney2015-07-182-2/+2
| | | | | | | it's an API between boot2.c and arm_init.S which calls it.. Notes: svn path=/head/; revision=285683
* other fixes to make boot2 compile for IXP... Properly end the asmJohn-Mark Gurney2015-07-182-0/+4
| | | | | | | | | | sections, and for some reason, main needs a prototype... If someone has a better fix, I'm all ears... Pointed out by: Berislav Purgar Notes: svn path=/head/; revision=285682
* revert r278579, this is in a different compile environment than theJohn-Mark Gurney2015-07-181-1/+1
| | | | | | | | | kernel, and needs to be named cpu_id... Pointed out by: Berislav Purgar Notes: svn path=/head/; revision=285681
* Further cleanup after r285607.Konstantin Belousov2015-07-181-22/+29
| | | | | | | | | | | | | | | | | | | | | Remove useless release semantic for some stores to it_need. For stores where the release is needed, add a comment explaining why. Fence after the atomic_cmpset() op on the it_need should be acquire only, release is not needed (see above). The combination of atomic_cmpset() + fence_acq() is better expressed there as atomic_cmpset_acq(). Use atomic_cmpset() for swi' ih_need read and clear. Discussed with: alc, bde Reviewed by: bde Comments wording provided by: bde Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=285680
* Add support for two workarounds for known issues booting GPT in legacy mode ↵Allan Jude2015-07-186-22/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on some hardware For Lenovo laptops with buggy bios (x220, t420, t520): Write the 0xee entry into the second slot in the pmbr instead of the first For some Dell and HP models: The BIOS gives a warning message when booting in legacy mode from a GPT partitioned disk where the 0xee partition in the pmbr is not flagged active For models known to have this problem, mark the pmbr active during installation Use smbios data to identify machines known to be affected by any of the above, and offer the user the option to apply the workaround In bsdinstall's ufs auto mode (autopart partition wizard): Allow users to select which type of partition table to use Keep current defaults: MBR for BIOS, GPT for UEFI This allows users to choose GPT for legacy boot if they wish PR: 184910 PR: 194359 Reviewed by: Michael Dexter Approved by: marcel MFC after: 3 days X-MFC-With: r285594 Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3091 Notes: svn path=/head/; revision=285679
* Deselect the sd card before re-selecting it when working around a problemIan Lepore2015-07-181-10/+11
| | | | | | | | | | | with some cards that causes them to become deselected after probing for switch capabilities. The old workaround fixes the behavior with some cards, but causes problems with the cards the behave correctly and don't become deselected. Forcing a deselect then reselect appears to work correctly with all cards in initial testing. Notes: svn path=/head/; revision=285678
* fix a typo in a commentLuigi Rizzo2015-07-181-1/+1
| | | | Notes: svn path=/head/; revision=285677
* Expand sysctl descriptions in iscsi(4) and ctl(4).Edward Tomasz Napierala2015-07-182-3/+11
| | | | | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285676
* Remove a comment in the wrong place.Edward Tomasz Napierala2015-07-181-1/+0
| | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285675
* Document suspend/resume notification in devd.conf(5).Edward Tomasz Napierala2015-07-181-0/+4
| | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285674
* Add CARP events description to devd.conf(5).Edward Tomasz Napierala2015-07-181-1/+21
| | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285673
* fstyp(8) ships with 10.2.Edward Tomasz Napierala2015-07-181-2/+2
| | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285672
* uefisign(8) ships with 10.2.Edward Tomasz Napierala2015-07-181-2/+2
| | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285671
* The si_status field of the siginfo_t, provided by the waitid(2) andKonstantin Belousov2015-07-1818-74/+99
| | | | | | | | | | | | | | | | | | | SIGCHLD signal, should keep full 32 bits of the status passed to the _exit(2). Split the combined p_xstat of the struct proc into the separate exit status p_xexit for normal process exit, and signalled termination information p_xsig. Kernel-visible macro KW_EXITCODE() reconstructs old p_xstat from p_xexit and p_xsig. p_xexit contains complete status and copied out into si_status. Requested by: Joerg Schilling Reviewed by: jilles (previous version), pho Tested by: pho Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285670
* Since the IETF has redefined the meaning of the tos field to accommodateKevin Lo2015-07-181-10/+11
| | | | | | | | | | | | | a set of differentiated services, set IPTOS_PREC_* macros using IPTOS_DSCP_* macro definitions. While here, add IPTOS_DSCP_VA macro according to RFC 5865. Differential Revision: https://reviews.freebsd.org/D3119 Reviewed by: gnn Notes: svn path=/head/; revision=285669
* Fix the !KDTRACE_HOOKS build.Mark Johnston2015-07-181-0/+2
| | | | | | | X-MFC-With: r285664 Notes: svn path=/head/; revision=285667
* Fix contraction spotted by igor(1) and remove 2 .Ed spotted by mandoc(1).Marcelo Araujo2015-07-181-7/+5
| | | | | | | | | | | | Also, don't capitalize "module" and remove a redundant phrase introduced in my previous commit. Differential Revision: D3112 Reviewed by: wblock Sponsored by: gandi.net Notes: svn path=/head/; revision=285666
* Pass the lock object to lockstat_nsecs() and return immediately ifMark Johnston2015-07-185-28/+33
| | | | | | | | | | | | LO_NOPROFILE is set. Some timecounter handlers acquire a spin mutex, and we don't want to recurse if lockstat probes are enabled. PR: 201642 Reviewed by: avg MFC after: 3 days Notes: svn path=/head/; revision=285664
* Modify lockstat_nsecs() to just return unless lockstat probes are actuallyMark Johnston2015-07-183-1/+9
| | | | | | | | | | | | | | | enabled. The cost of a timecounter read can be quite significant, and the problem became more apparent after r284297, since that change resulted in a call to lockstat_nsecs() for each acquisition of an rwlock read lock. PR: 201642 Reviewed by: avg Tested by: Jason Unovitch MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3073 Notes: svn path=/head/; revision=285663
* Merge driver for PMC Sierra's range of SAS/SATA HBAs.Benno Rice2015-07-17142-0/+378010
|\ | | | | | | | | | | | | | | Submitted by: Achim Leubner <Achim.Leubner@pmcs.com> Reviewed by: scottl Notes: svn path=/head/; revision=285662
| * Enable pms module on amd64 for now.Benno Rice2015-07-171-0/+2
| | | | | | | | Notes: svn path=/projects/pms/; revision=285660
| * Disable debugging.Benno Rice2015-07-171-4/+4
| | | | | | | | | | | | | | | | Submitted by: Vasanthalakshmi Tharmarajan <Vasanthalakshmi.Tharmarajan@pmcs.com> Reviewed by: scottl Notes: svn path=/projects/pms/; revision=285659
| * Driver 'pmspcv' added. Supports PMC-Sierra ↵Achim Leubner2015-07-07141-0/+378008
| | | | | | | | | | | | | | PM8001/8081/8088/8089/8074/8076/8077 SAS/SATA HBA Controllers. Notes: svn path=/projects/pms/; revision=285242
* | Undo r285656.Ed Schouten2015-07-172-63/+64
| | | | | | | | | | | | | | | | | | | | | | It turns out that the CDDL sources already introduce a function called thread_create(). I'll investigate what we can do to make these functions coexist. Reported by: Ivan Klymenko Notes: svn path=/head/; revision=285661
* | make ctdladm(8) return 0 is everything was ok.Baptiste Daroussin2015-07-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retval is used to test the return of XML_Parse function which is ok if 1 is returned and retval it directly returned to the main function and used as an exit value. if all the parsing part is done reset retval to 0 so that the command return 0 if everything ok Differential Revision: https://reviews.freebsd.org/D3102 Reviewed by: trasz MFC after: 3 days Sponsored by: gandi.net Notes: svn path=/head/; revision=285658
* | Check TCP timestamp option flag so that the automatic receive bufferPatrick Kelsey2015-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | scaling code does not use an uninitialized timestamp echo reply value from the stack when timestamps are not enabled. Differential Revision: https://reviews.freebsd.org/D3060 Reviewed by: hiren Approved by: jmallett (mentor) MFC after: 3 days Sponsored by: Norse Corp, Inc. Notes: svn path=/head/; revision=285657
* | Add an API for easily creating userspace threads in kernelspace.Ed Schouten2015-07-172-64/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change refactors the existing create_thread() function to be more generic. It replaces almost all of its arguments by a callback that can be used to extract the thread ID and copy it out to the right place, but also to perform additional initialization steps, such as setting the trapframe. This also makes the difference between thr_new() and thr_create() more clear in my opinion. This function is going to be used by the CloudABI compatibility layer. Reviewed by: kib MFC after: 1 month Notes: svn path=/head/; revision=285656
* | Fix possible coherency issues between PEs related to I-cacheZbigniew Bodek2015-07-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basing on B.2.3.4: Synchronization and coherency issues between data and instruction accesses. To ensure that modified instructions are visible to all PEs (Processing Elements) in a shareability domain one need to perform following sequence: 1. Clean D-cache 2. Ensure the visibility of data cleaned from cache 3. Invalidate I-cache 4. Ensure completion 5. In SMP system PE must issue isb to ensure execution of the modified instructions Reviewed by: andrew Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3106 Notes: svn path=/head/; revision=285655
* | Fix secondary stacks calculation on ARM64Zbigniew Bodek2015-07-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Secondary stack calculation is modified to provide stack_top = secondary_stacks + (cpu_id) * PAGE_SIZE * KSTACK_PAGES because on ARM64 the stack grows to lower memory addresses. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3107 Notes: svn path=/head/; revision=285654