aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make the wchar_t type machine dependent.Andrew Turner2012-06-2415-45/+40
| | | | | | | | | | | | | | | | | This is required for ARM EABI. Section 7.1.1 of the Procedure Call for the ARM Architecture (AAPCS) defines wchar_t as either an unsigned int or an unsigned short with the former preferred. Because of this requirement we need to move the definition of __wchar_t to a machine dependent header. It also cleans up the macros defining the limits of wchar_t by defining __WCHAR_MIN and __WCHAR_MAX in the same machine dependent header then using them to define WCHAR_MIN and WCHAR_MAX respectively. Discussed with: bde Notes: svn path=/head/; revision=237517
* Introduce reserve_pv_entry() and use it in pmap_pv_demote_pde(). In orderAlan Cox2012-06-231-1/+83
| | | | | | | | | | | | to add PV list locking to pmap_pv_demote_pde(), it is necessary to change the way that pmap_pv_demote_pde() allocates PV entries. Specifically, once pmap_pv_demote_pde() begins modifying the PV lists, it can't allocate any new PV chunks, because that could require the PV list lock to be dropped. So, all necessary PV chunks must be allocated in advance. To my surprise, this new approach is a few percent faster than the old one. Notes: svn path=/head/; revision=237513
* Better way to determine the status page length and rx pad boundary.Navdeep Parhar2012-06-231-12/+17
| | | | Notes: svn path=/head/; revision=237512
* Remove superfluous paragraph macro.Joel Dahl2012-06-231-1/+0
| | | | Notes: svn path=/head/; revision=237509
* Add description about dev.acpi_ibm.0.handlerevents.Mitsuru IWASAKI2012-06-231-1/+26
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=237494
* Add in-driver event handler.Mitsuru IWASAKI2012-06-231-86/+371
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=237493
* Correct device id for GPU on some server SandyBridge model.Konstantin Belousov2012-06-231-1/+1
| | | | | | | | Submitted and tested by: Thomas Zander <thomas.e.zander googlemail com> MFC after: 3 days Notes: svn path=/head/; revision=237484
* Unbreak options ZFS after r236884.Marius Strobl2012-06-231-0/+4
| | | | Notes: svn path=/head/; revision=237483
* Release the ADB keyboard mutex when handling the power buttonJustin Hibbits2012-06-231-0/+2
| | | | | | | | | | press/release. Found by WITNESS. Approved by: nwhitehorn (mentor) MFC after: 3 days Notes: svn path=/head/; revision=237480
* Fix interface matching by ipfw tableAlexander V. Chernikov2012-06-231-1/+2
| | | | | | | | | | Submitted by: Ihor Kaharlichenko <madkinder@gmail.com> Tested by: Ihor Kaharlichenko <madkinder@gmail.com> Approved by: kib(mentor) MFC after: 3 days Notes: svn path=/head/; revision=237479
* Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len().Alexander Motin2012-06-235-71/+56
| | | | | | | It allows to remove number of duplicate checks from several places. Notes: svn path=/head/; revision=237478
* Move the code dealing with shared page into a dedicatedKonstantin Belousov2012-06-233-192/+241
| | | | | | | | | kern_sharedpage.c source file from kern_exec.c. MFC after: 29 days Notes: svn path=/head/; revision=237477
* Remove no longer needed forward declaration for struct sf_buf.Konstantin Belousov2012-06-231-1/+0
| | | | | | | MFC after: 29 days Notes: svn path=/head/; revision=237476
* Stop updating the struct vdso_timehands from even handler executed inKonstantin Belousov2012-06-234-101/+66
| | | | | | | | | | | | | | | | | | | | | | | | | the scheduled task from tc_windup(). Do it directly from tc_windup in interrupt context [1]. Establish the permanent mapping of the shared page into the kernel address space, avoiding the potential need to sleep waiting for allocation of sf buffer during vdso_timehands update. As a consequence, shared_page_write_start() and shared_page_write_end() functions are not needed anymore. Guess and memorize the pointers to native host and compat32 sysentvec during initialization, to avoid the need to get shared_page_alloc_sx lock during the update. In tc_fill_vdso_timehands(), do not loop waiting for timehands generation to stabilize, since vdso_timehands is written in the same interrupt context which wrote timehands. Requested by: mav [1] MFC after: 29 days Notes: svn path=/head/; revision=237474
* Do not allocate extra vectors when adapter is not TOENavdeep Parhar2012-06-222-8/+13
| | | | | | | | | capable (or toecaps have been disallowed by the user). + one very minor unrelated cleanup in t4_sge.c Notes: svn path=/head/; revision=237463
* Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALIDAlexander Motin2012-06-221-2/+2
| | | | | | | | | | | and CAM_LUN_INVALID for case of missing devices. In removes tons of error messages from CAM during bus scans. Reported and tested by: Mike Tancsa <mike@sentex.net> MFC after: 3 days Notes: svn path=/head/; revision=237460
* Just add a comment to further investigate when being closer to that codeBjoern A. Zeeb2012-06-221-0/+1
| | | | | | | again next time. The condition of the 2nd if() is very unlikely ever met. Notes: svn path=/head/; revision=237459
* Import Illumos revision 13736:9f1d48e1681fMartin Matuska2012-06-221-0/+3
| | | | | | | | | | | | | 2901 ZFS receive fails for exabyte sparse files References: https://www.illumos.org/issues/2901 Obtained from: illumos (issue #2901) MFC after: 1 week Notes: svn path=/head/; revision=237458
* Change 'camcontrol defects' to first probe a drive to find out how muchKenneth D. Merry2012-06-223-7/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | defect information it has before grabbing the full defect list. This works around a bug with some Hitachi drives that generate data overrun errors when they are asked for more defect data than they have. The change is done in a spec-compliant way, so it should have no negative impact on drives that don't have this issue. This is based on work originally done at Sandvine. scsi_da.h: Add a define for the maximum amount of data that can be contained in a defect list. camcontrol.c: Update the readdefects() function to issue an initial command to determine the length of the defect list, and then use that length in the request for the full defect list. camcontrol.8: Add a note that some drives will report 0 defects available if you don't request either the PLIST or GLIST. Submitted by: Mark Johnston <markjdb@gmail.com> (original version) MFC after: 3 days Notes: svn path=/head/; revision=237452
* - Add a comment explaining the locking of the cached pages pool heldAttilio Rao2012-06-221-1/+14
| | | | | | | | | | | | | | | | | by vm_objects. - Add flags for the per-object lock and free pages queue mutex lock. Use the newly added flags to mark the cache root within the vm_object structure. Please note that other vm_object members should be marked with correct locking but they are left for other commits. In collabouration with: alc MFC after: 3 days3 days3 days Notes: svn path=/head/; revision=237451
* Merge changes from upstream libedit.Pedro F. Giffuni2012-06-2220-410/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our libedit has been diverging from the mainstream version maintained in NetBSD. As a consequence it has been difficult to do an appropriate MFV and we have been bringing only partial updates. Here we update most of the files to at least match the version available in NetBSD's snapshot of 20091228. This version was chosen because it still doesn't include wide character support (UTF-8), which involves many changes and new files. From NetBSD's logs: Dec 15 22:13:33 2006 - editline.3 el.c el.h histedit.h add EL_GETFP, and EL_SETFP. Apr 5 15:53:28 2008 - editline.3 el.c histedit.h readline.c add EL_REFRESH for the benefit of readline Sep 10 15:45:37 2008 - common.c el.c read.c refresh.c sig.c term.c term.h tty.c Allow a single process to control multiple ttys (for pthreads using _REENTRANT) using multiple EditLine objects. Jan 18 12:17:24 2009 - el.c read.c readline.c fix -Wsign-compare issues Feb 6 14:40:32 2009 - history.c Plug memory leak, from MySQL. Feb 5 19:15:44 2009 - histedit.h read.c match documentation in el_push Feb 6 13:14:37 2009 - vi.c Portability fix. Feb 12 13:39:49 2009 - readline.c term.c More fixes for existing portability stuff. Feb 15 21:24:13 2009 - el.h read.c don't restart on EINTR, instead return NULL immediately. From Anon Ymous Feb 15 21:25:01 2009 - sig.c sig.h in order for read() to return EINTR we need to use sigaction, not signal, otherwise SA_RESTART is set. Feb 15 21:55:23 2009 - chared.c chared.h common.c emacs.c filecomplete.c filecomplete.h key.c key.h read.c readline.c refresh.c search.c term.c tokenizer.c tty.c vi.c pass lint on _LP64. Feb 17 21:34:26 2009 - el.c histedit.h prompt.c prompt.h allow for a prompt argument. Feb 18 15:04:40 2009 - sig.c SA_RESTART for all signals but SIGINT. From Anon Ymous. Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous. Feb 21 23:31:56 2009 - key.c key.h readline.c vi.c more size_t stuff. Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error. Mar 31 17:38:27 2009 - editline.3 el.c histedit.h prompt.c prompt.h refresh.c term.c term.h Implement literal prompt sequences. Now someone can implement RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-) Mar 31 21:33:17 2009 - term.c cast to size_t to avoid sign / unsigned comparison warning. Apr 23 02:03 2009 - term.c Apply patch (requested by msaitoh in ticket #2007): Coverity CID 1668: Plug memory leak when malloc() failed.:55 2009 May 11 18:33:30 2009 - editline.3 el.c histedit.h restore binary compatibility by providing new prompt functions that take an extra literal character. May 19 21:45:14 2009 - refresh.c always scroll when we advance past bottom. From Caleb Welton cwelton at greenplum dot com. Jul 17 12:27:57 2009 - term.c - off by one in the term.h case. - make code more similar to tcsh (if we want to handle wide chars, this is needed; for now it is a no-op) Jul 22 15:56:29 2009 - el.c Move filename to the scope it is being used. From Michael Cook mcook at bbn dot com Jul 22 15:57:00 2009 - read.c Always initialize nread since it is an out param. From Michael Cook mcook at bbn dot com Jul 22 18:25:26 2009 - el.c Only need path if we have issetugid... From Anon Ymous Jul 25 21:19:23 2009 - el.c Ignore comment lines in .editrc from Jess Thrysoee Sep 7 21:24:33 2009 histedit.h history.c readline.c apply apple patches from: http://opensource.apple.com/source/libedit/libedit-11/patches/ Dec 28 21:52:43 2009 - refresh.c Fix bug where tab completion on the second or > line that caused listing ended up corrupting the display by an extra space in the beginning. Reported by Mac Chan. Dec 28 22:15:36 2009 - refresh.c term.c reduce diff with tcsh Obtained from: NetBSD Tested by: bapt, jilles and current@ MFC after: 1 week Notes: svn path=/head/; revision=237448
* Don't print SCSI Queue Full and CAM_REQUEUE_REQ statuses as errors if theyAlexander Motin2012-06-221-1/+4
| | | | | | | | | were handled and retried. They are part of normal operation for SCSI TCQ. MFC after: 3 days Notes: svn path=/head/; revision=237446
* Commit changes missed from r237435. Properly calculate the signalKonstantin Belousov2012-06-221-3/+10
| | | | | | | | | | | | | trampoline addresses after the shared page is enabled. Handle FreeBSD ABIs without shared page support too. Reported and tested by: David Wolfskill <david catwhisker org> (previous version) Pointy hat to: kib MFC after: 1 month Notes: svn path=/head/; revision=237445
* Do not read registers with read side effects while performing a registerNavdeep Parhar2012-06-221-9/+11
| | | | | | | dump for cxgbetool. Notes: svn path=/head/; revision=237439
* cxgbe(4): update to firmware interface 1.5.2.0; updates to shared code.Navdeep Parhar2012-06-229-541/+2743
| | | | Notes: svn path=/head/; revision=237436
* Enable shared page on i386, now it has a use for vdso_timehands.Konstantin Belousov2012-06-222-2/+6
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=237435
* Use struct vdso_timehands data to implement fast gettimeofday(2) andKonstantin Belousov2012-06-2210-2/+374
| | | | | | | | | | | | | | | | | | clock_gettime(2) functions if supported. The speedup seen in microbenchmarks is in range 4x-7x depending on the hardware. Only amd64 and i386 architectures are supported. Libc uses rdtsc and kernel data to calculate current time, if enabled by kernel. Hopefully, this code is going to migrate into vdso in some future. Discussed with: bde Reviewed by: jhb Tested by: flo MFC after: 1 month Notes: svn path=/head/; revision=237434
* Implement mechanism to export some kernel timekeeping data toKonstantin Belousov2012-06-2221-0/+636
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usermode, using shared page. The structures and functions have vdso prefix, to indicate the intended location of the code in some future. The versioned per-algorithm data is exported in the format of struct vdso_timehands, which mostly repeats the content of in-kernel struct timehands. Usermode reading of the structure can be lockless. Compatibility export for 32bit processes on 64bit host is also provided. Kernel also provides usermode with indication about currently used timecounter, so that libc can fall back to syscall if configured timecounter is unknown to usermode code. The shared data updates are initiated both from the tc_windup(), where a fast task is queued to do the update, and from sysctl handlers which change timecounter. A manual override switch kern.timecounter.fast_gettime allows to turn off the mechanism. Only x86 architectures export the real algorithm data, and there, only for tsc timecounter. HPET counters page could be exported as well, but I prefer to not further glue the kernel and libc ABI there until proper vdso-based solution is developed. Minimal stubs neccessary for non-x86 architectures to still compile are provided. Discussed with: bde Reviewed by: jhb Tested by: flo MFC after: 1 month Notes: svn path=/head/; revision=237433
* Fix a stray debug that I committed accidentally years ago...Warner Losh2012-06-221-1/+0
| | | | Notes: svn path=/head/; revision=237432
* Enchance the shared page chunk allocator.Konstantin Belousov2012-06-222-15/+69
| | | | | | | | | | | | | | | | | | | Do not rely on the busy state of the page from which we allocate the chunk, to protect allocator state. Use statically allocated sx lock instead. Provide more flexible KPI. In particular, allow to allocate chunk without providing initial data, and allow writes into existing allocation. Allow to get an sf buf which temporary maps the chunk, to allow sequential updates to shared page content without unmapping in between. Reviewed by: jhb Tested by: flo MFC after: 1 month Notes: svn path=/head/; revision=237431
* Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer toKonstantin Belousov2012-06-227-1/+8
| | | | | | | | | timekeeping information. MFC after: 1 week Notes: svn path=/head/; revision=237430
* Move these #defines to at91reg.h (where I should have put them in theWarner Losh2012-06-222-3/+3
| | | | | | | first place). Notes: svn path=/head/; revision=237429
* Introduce CHANGE_PV_LIST_LOCK_TO_{PHYS,VM_PAGE}() to avoid duplication ofAlan Cox2012-06-221-24/+20
| | | | | | | code. Notes: svn path=/head/; revision=237414
* Merge ACPICA 20120620.Jung-uk Kim2012-06-2232-189/+992
|\ | | | | | | Notes: svn path=/head/; revision=237412
| * Fix "comparison is always true due to limited range of data type" warningJung-uk Kim2012-06-211-10/+10
| | | | | | | | | | | | | | | | | | | | from GCC in the base system. Note this patch was submitted upstream and it will appear in the next ACPICA release. Discussed with: Moore, Robert (robert dot moore at intel dot com) Notes: svn path=/vendor-sys/acpica/dist/; revision=237408
| * Import ACPICA 20120620.vendor/acpica/20120620Jung-uk Kim2012-06-2042-640/+1196
| | | | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=237332 svn path=/vendor-sys/acpica/20120620/; revision=237333; tag=vendor/acpica/20120620
* | Add PCI IDs for Ivy BridgeEd Maste2012-06-211-0/+6
| | | | | | | | Notes: svn path=/head/; revision=237411
* | MFV: Update zlib to 1.2.7.Xin LI2012-06-2135-902/+2461
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (x86 assembler optimization disabled for now because it requires the new .cfi_* directives that is not supported by base system binutils). MFC after: 1 week Notes: svn path=/head/; revision=237410
| * | Vendor import of zlib 1.2.7.vendor/zlib/1.2.7Xin LI2012-06-1917-203/+353
| | | | | | | | | | | | | | | Notes: svn path=/vendor/libz/dist/; revision=237248 svn path=/vendor/libz/1.2.7/; revision=237249; tag=vendor/zlib/1.2.7
| * | Vendor import of zlib 1.2.6.vendor/zlib/1.2.6Xin LI2012-01-3127-797/+2177
| | | | | | | | | | | | | | | Notes: svn path=/vendor/libz/dist/; revision=230837 svn path=/vendor/libz/1.2.6/; revision=230838; tag=vendor/zlib/1.2.6
* | | Add the functions documented in the man pages in commit 237393 to theIsabell Long2012-06-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | relevant Makefile. Reminded by: gavin Approved by: gabor (mentor) MFC after: 5 days Notes: svn path=/head/; revision=237409
* | | Bring a couple of fixes for gcc optimizations.Pedro F. Giffuni2012-06-215-10/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GCC4.3 branch contains some optimization fixes that were not considered regressions and therefore were never backported. We are bringing a couple of them that are under GPLv2 since they were made before the license switch upstream. While here, add the GCC revision numbers in the log. Discussed with: jkim MFC after: 1 week Notes: svn path=/head/; revision=237406
* | | Update the PV stats in free_pv_entry() using atomics. After which, it isAlan Cox2012-06-211-38/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no longer necessary for free_pv_entry() to be serialized by the pvh global lock. Retire pmap_insert_entry() and pmap_remove_entry(). Once upon a time, these functions were called from multiple places within the pmap. Now, each has only one caller. Notes: svn path=/head/; revision=237404
* | | Be explicit about the dependency on nsparser.h.David E. O'Brien2012-06-211-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=237402
* | | Make cam_periph_hold() behavior consistent: drop taken reference andAlexander Motin2012-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | return ENXIO if periph was invalidated while we were waiting for it. MFC after: 1 week Notes: svn path=/head/; revision=237401
* | | In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIMAlexander Motin2012-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | done queue. Clearing it before caused extra SIM queueing in some cases. It was invisible during normal operation, but during USB device unplug and respective SIM destruction it could keep pointer on SIM without having counted reference and as result crash the system by use afer free. Reported by: hselasky MFC after: 1 week Notes: svn path=/head/; revision=237398
* | | Add more locale-specific functions to the relevant man pages:Isabell Long2012-06-214-7/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - libc/string/strcoll.3 - libc/string/strstr.3 - libc/string/strxfrm.3 - libc/string/strcasecmp.3 Reviewed by: theraven, gabor Approved by: gabor (mentor) MFC after: 5 days Notes: svn path=/head/; revision=237393
* | | Remove redundant #ifdef. Reported by gnn@.Michael Tuexen2012-06-211-2/+0
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=237392
* | | Enable deadlock avoidance code for NFS client.Konstantin Belousov2012-06-212-3/+4
| | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=237367
* | | Fix unbounded-length malloc, controlled from usermode. The added checkKonstantin Belousov2012-06-211-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is performed before exact size of the buffer is calculated, but the buffer cannot have size greater then the total space allocated for extended attributes. The existing check is executing with precise size, but it is too late, since buffer needs to be allocated in advance. Also, adapt to uio_resid being of ssize_t type. Use lblktosize instead of multiplying by fs block size by hand as well. Reported and tested by: pho MFC after: 1 week Notes: svn path=/head/; revision=237366