summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* o Rework ARMv7 events list using aliases - same way as we have for arm64.br2015-06-105-110/+424
| | | | o Extend it with Cortex A9-specific events.
* Fixup the build after r284215.mjg2015-06-102-3/+3
| | | | Submitted by: Ivan Klymenko <fidaj ukr.net> [slighly modified]
* Implement lockless resource limits.mjg2015-06-1037-173/+152
| | | | | | | | | | Use the same scheme implemented to manage credentials. Code needing to look at process's credentials (as opposed to thred's) is provided with *_proc variants of relevant functions. Places which possibly had to take the proc lock anyway still use the proc pointer to access limits.
* Generalised support for copy-on-write structures shared by threads.mjg2015-06-1016-31/+85
| | | | | | | | | Thread credentials are maintained as follows: each thread has a pointer to creds and a reference on them. The pointer is compared with proc's creds on userspace<->kernel boundary and updated if needed. This patch introduces a counter which can be compared instead, so that more structures can use this scheme without adding more comparisons on the boundary.
* Don't re-define LOCORE when dtrace is built-in to the kernel.br2015-06-101-1/+0
|
* fd: remove fdesc_mtxmjg2015-06-101-4/+0
|
* fd: use atomics to manage fd_refcnt and fd_holcntmjg2015-06-102-29/+27
| | | | This gets rid of fdesc_mtx.
* Correct a type error in kmem_unback(). Previously, kmem_unback() did notalc2015-06-101-2/+1
| | | | | | | | | correctly handle deallocation requests of two or more gigabytes in size. Eventually, this would lead to a panic elsewhere in the kernel, such as "vm_radix_insert: key <vm_pindex_t> is already present". Reported by: Ilias Marinos MFC after: 1 week
* Convert ls(1) to use libxo(3).marcel2015-06-106-104/+190
| | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* Add options to dmb() and dsb() macros on ARM64zbb2015-06-093-10/+24
| | | | | | | | | | | | Using plain dsb()/dmb() as full system barriers is usually to much. Adding proper options to those barriers (instead of full system - sy) will most likely reduce the cost of the instructions and will benefit in performance improvement. This commit adds options to barrier macro definitions. Obtained from: Semihalf Reviewed by: andrew, ian Sponsored by: The FreeBSD Foundation
* Check status of AcpiReadBitRegister() calls.jkim2015-06-091-4/+6
| | | | | Reported by: Coverity CID: 1306132
* Add support for reading MAM attributes to camcontrol(8) and libcam(3).ken2015-06-0916-8/+2036
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAM is Medium Auxiliary Memory and is most commonly found as flash chips on tapes. This includes support for reading attributes and decoding most known attributes, but does not yet include support for writing attributes or reporting attributes in XML format. libsbuf/Makefile: Add subr_prf.c for the new sbuf_hexdump() function. This function is essentially the same function. libsbuf/Symbol.map: Add a new shared library minor version, and include the sbuf_hexdump() function. libsbuf/Version.def: Add version 1.4 of the libsbuf library. libutil/hexdump.3: Document sbuf_hexdump() alongside hexdump(3), since it is essentially the same function. camcontrol/Makefile: Add attrib.c. camcontrol/attrib.c: Implementation of READ ATTRIBUTE support for camcontrol(8). camcontrol/camcontrol.8: Document the new 'camcontrol attrib' subcommand. camcontrol/camcontrol.c: Add the new 'camcontrol attrib' subcommand. camcontrol/camcontrol.h: Add a function prototype for scsiattrib(). share/man/man9/sbuf.9: Document the existence of sbuf_hexdump() and point users to the hexdump(3) man page for more details. sys/cam/scsi/scsi_all.c: Add a table of known attributes, text descriptions and handler functions. Add a new scsi_attrib_sbuf() function along with a number of other related functions that help decode attributes. scsi_attrib_ascii_sbuf() decodes ASCII format attributes. scsi_attrib_int_sbuf() decodes binary format attributes, and will pass them off to scsi_attrib_hexdump_sbuf() if they're bigger than 8 bytes. scsi_attrib_vendser_sbuf() decodes the vendor and drive serial number attribute. scsi_attrib_volcoh_sbuf() decodes the Volume Coherency Information attribute that LTFS writes out. sys/cam/scsi/scsi_all.h: Add a number of attribute-related structure definitions and other defines. Add function prototypes for all of the functions added in scsi_all.c. sys/kern/subr_prf.c: Add a new function, sbuf_hexdump(). This is the same as the existing hexdump(9) function, except that it puts the result in an sbuf. This also changes subr_prf.c so that it can be compiled in userland for includsion in libsbuf. We should work to change this so that the kernel hexdump implementation is a wrapper around sbuf_hexdump() with a statically allocated sbuf with a drain. That will require a drain function that goes to the kernel printf() buffer that can take a non-NUL terminated string as input. That is because an sbuf isn't NUL-terminated until it is finished, and we don't want to finish it while we're still using it. We should also work to consolidate the userland hexdump and kernel hexdump implemenatations, which are currently separate. This would also mean making applications that currently link in libutil link in libsbuf. sys/sys/sbuf.h: Add the prototype for sbuf_hexdump(), and add another copy of the hexdump flag values if they aren't already defined. Ideally the flags should be defined in one place but the implemenation makes it difficult to do properly. (See above.) Sponsored by: Spectra Logic Corporation MFC after: 1 week
* "status_reg.acpwr ? 1 : 0" is now the same as just "status_reg.acpwr".sobomax2015-06-091-1/+1
|
* Fix a typo in a comment that has been carried over from am335x_pmic.c.sobomax2015-06-091-1/+1
|
* Use tab to do identation consistently.sobomax2015-06-091-1/+1
|
* Extend TPS65217 support to be able to pull and decode batterysobomax2015-06-092-41/+227
| | | | | | | | | | | | | | | | | | | | charger configuration and provide some basic control knobs to set charger voltage and dump config on boot. Two loader tunables have been added: o hw.am335x_pmic.bootverbose set to 1 to get more info on the boot; o hw.am335x_pmic.vo: set to charger voltage to be applied on kernel initialization time, supported values are "4.10V", "4.15V", "4.20V" and "4.25V". Cleanup code a bit in general, move TPS65217 register definitions into a separate header, convert bit-banging defines into bitmap structures. Also threat the case when power source is neither "AC" nor "USB" as "Battery", not "Unknown".
* Account for superpage mappings that are created by pmap_copy().alc2015-06-093-0/+3
|
* Switch from make_dev_alias to make_dev_alias_p since make_dev_alias_p canambrisko2015-06-091-1/+3
| | | | | | | | | | | | gracefully fail if the /dev/megaraid_sas_ioctl_node symlink already exists. This can happen if mfi(4) and mrsas(4) are both attached to cards and providing Linux emulation support. Let the first one win. An equivalent change needs to be done to mrsas(4). Extra credit would be to pass the Linux emulation call to the other driver when appropriate. This will probably be a rare case and the user can manually change where the symlink points to. MFC after: 3 days
* Include opt_em.h now that there are actual kernel compile options for em(4).sbruno2015-06-091-1/+2
| | | | | | Submitted by: jfv MFC after: 2 week Sponsored by: Limelight Networks
* When updating/accessing the timehands, barriers are needed to ensurekib2015-06-091-41/+69
| | | | | | | | | | | | | | | that: - th_generation update is visible after the parameters update is visible; - the read of parameters is not reordered before initial read of th_generation. On UP kernels, compiler barriers are enough. For SMP machines, CPU barriers must be used too, as was confirmed by submitter by testing on the Freescale T4240 platform with 24 PowerPC processors. Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> MFC after: 1 week
* Handle X2APIC entries in the MADT for APICs with an ID < 255. At least onejhb2015-06-091-32/+65
| | | | | | | | | | | | | | BIOS has been seen to include such entries even though the relevant specs require that X2APIC entries only be used for CPUs with an APIC ID >= 255. This was tested on a system with "plain" local APIC entries in the MADT to ensure no regressions, but it has not yet been tested on a system with X2APIC entries in the MADT. Currently such systems do not boot at all, and with this change they might now boot correctly. Differential Revision: https://reviews.freebsd.org/D2521 Reviewed by: kib MFC after: 2 weeks
* Support guest writes to the TSC by enabling the "use TSC offsetting"tychon2015-06-093-4/+26
| | | | | | | | execution control and writing the difference between the host TSC and the guest TSC into the TSC offset in the VMCS upon encountering a write. Reviewed by: neel
* Map the allocated DMA memory into the address space.marcel2015-06-081-1/+9
|
* Implement mmap(2) for the busdma resource.marcel2015-06-083-12/+39
|
* Merge r283870 from amd64:dim2015-06-081-6/+2
| | | | | | | | | | | | | | Remove unneeded NULL checks in trap_fatal(). Since td_name is an array member of struct thread, it can never be NULL, so the check can be removed. In addition, curproc can never be NULL, so remove the if statement, and splice the two printfs() together. While here, remove the u_long cast, and use the correct printf format specifier for curproc->p_pid. Requested by: jhb MFC after: 3 days
* Properly initialize flags for accept4(2) not to return spurious EINVAL.jkim2015-06-081-0/+1
| | | | | | Note this fixes a Linuxulator regression introduced in r283490. PR: 200662
* Move contrib/top/top.X to contrib/top/top.xs and movemarcel2015-06-083-2/+2
| | | | | | | | | contrib/top/top.local.H to contrib/top/top.local.hs. This fixes a build breakage when src is on a case- insensitive file system -- we never properly create top.x nor top.local.h. Change the makefile accordingly. MFC after: 3 days
* Cleanup some style(9) issues.bdrewery2015-06-082-42/+52
| | | | | | | | | | - Whitespace. - Comments. - Wrap long lines. MFC after: 2 weeks X-MFC-with: r284105,r284106 Sponsored by: EMC / Isilon Storage Division
* It has been long time that when doing 'ls -G /path/to/a/symlink', instead ofdelphij2015-06-081-2/+7
| | | | | | | | | | | | | using the color of symbolic link, the color is determined by the link target. This behavior was quite confusing. Looking at the file history, it looks like that r203665 intends to fix this but the issue was never actually fixed. Fix this by not setting FTS_COMFOLLOW when color is requested like what was done in r203665. MFC after: 2 weeks
* Revert r284153, as I believe it breaks the dtrace sdt module. I willjhb2015-06-081-31/+13
| | | | fix the original issue a different way.
* Futex is an aligned 32-bit integer. Use the proper instruction anddchagin2015-06-081-24/+24
| | | | operand when dereferencing futex pointer.
* Add user facing errors for exceeding process memory limitsemaste2015-06-081-10/+24
| | | | | | | | | | Previously the process terminating with SIGABRT at startup was the only notification. PR: 200617 Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2731
* Add an internal "locked" variant of linker_file_lookup_set() and changejhb2015-06-081-13/+31
| | | | | the public function to acquire the global linker lock directly. This permits linker_file_lookup_set() to be safely used from other modules.
* Add makefile to build geom_map kld. Document some GEOM_* optionsae2015-06-085-3/+17
| | | | in NOTES and geom(4).
* Teach G_PART_GPT class to handle g_resize_provider event.ae2015-06-081-1/+1
| | | | MFC after: 10 days
* backout remove of -q option for pw [user|group] nextbapt2015-06-084-9/+20
| | | | | | While the return code is broken, some corner case usage depends on the functionnality, so backout until we get better regression tests covering those corner case usage.
* Fix typobapt2015-06-081-1/+1
|
* Retire VM_FREEPOOL_CACHE as the next step in eliminating PG_CACHE pages.alc2015-06-089-25/+14
| | | | | | Differential Revision: https://reviews.freebsd.org/D2712 Reviewed by: kib Sponsored by: EMC / Isilon Storage Division
* Add busdma_mem_alloc & busdma_mem_free.marcel2015-06-085-73/+205
|
* Cope with .. less memory.adrian2015-06-082-0/+6
|
* Add DMA memory allocation and freeing.marcel2015-06-084-41/+181
| | | | Slightly rework the tag handling.
* Break out the current 802.11 software scan methods into an indirect table.adrian2015-06-085-98/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | In order for drivers to provide an alternate set of scan methods, these have to finally use an indirection table and all of the calls in ieee80211_scan.c need to use said table. For all existing drivers - this is basically a glorified, KBI-breaking functional no-op. This is also not the final form - too much functionality is currently hiding in ieee80211_scan_sw.c that should be in ieee80211_scan.c. That'll be the target of some follow-up commits. Note: * You have to recompile your kernel/drivers after this - the net80211 KBI has changed. * I'm not yet planning on bumping any versioning - I have a few more things to shuffle around. Tested: * urtwn(4) - STA mode * Intel 7260 in local repo - overriding the methods and table at attach time has the desired effect (ie, all the methods are called, but nothing is ever performed.)
* Revert my previoius commit as it explicit pollute the ficl on otheraraujo2015-06-081-1/+0
| | | | | | architectures. It will be reworked by GSoC students. Requested by: ngie, bms and pfg.
* Remove the start-scan call and re-inline it for now.adrian2015-06-081-12/+1
|
* Fix mistakes than came along with r284139bapt2015-06-071-2/+2
|
* Remove '-q' support for pw [user|group] nextbapt2015-06-074-20/+9
| | | | | | the intent of -q in this command is to return as exit status the value of the next group/user id, which does not make sense given exit status are limited to values between 0 and 255.
* Fix setting uid/gid min/max via pwbapt2015-06-074-5/+87
|
* Fix generating configuration filebapt2015-06-076-6/+86
|
* Fix duplicate checkingbapt2015-06-074-18/+21
|
* Remove uneeded code (already done by pw_make_v7)bapt2015-06-071-3/+0
|
OpenPOWER on IntegriCloud