aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make nd6_llinfo_timer() does its job, again. ln->la_expire wasHajimu UMEMOTO2009-11-061-1/+1
| | | | | | | | | greater than time_second, in most cases. MFC after: 3 days Notes: svn path=/head/; revision=198993
* Several years ago a feature was added to TCP that casued soreceive() toJohn Baldwin2009-11-061-1/+1
| | | | | | | | | | | | | | | | send an ACK right away if data was drained from a TCP socket that had previously advertised a zero-sized window. The current code requires the receive window to be exactly zero for this to kick in. If window scaling is enabled and the window is smaller than the scale, then the effective window that is advertised is zero. However, in that case the zero-sized window handling is not enabled because the window is not exactly zero. The fix changes the code to check the raw window value against zero. Reviewed by: bz MFC after: 1 week Notes: svn path=/head/; revision=198990
* Take a step towards removing if_watchdog/if_timer. Don't explicitly setJohn Baldwin2009-11-0614-21/+0
| | | | | | | | if_watchdog/if_timer to NULL/0 when initializing an ifnet. if_alloc() sets those members to NULL/0 already. Notes: svn path=/head/; revision=198988
* Use device_printf() and if_printf() instead of printf() with an explicitJohn Baldwin2009-11-066-162/+142
| | | | | | | unit number and remove 'unit' members from softc. Notes: svn path=/head/; revision=198987
* Don't call LLE_FREE() after nd6_free().Hajimu UMEMOTO2009-11-061-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198976
* Add MAP_ANONYMOUS.Ed Schouten2009-11-061-0/+3
| | | | | | | | | | | Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h) Notes: svn path=/head/; revision=198973
* Unbreak E500 builds. The inline assembly for the 970 CPUsMarcel Moolenaar2009-11-061-1/+6
| | | | | | | is invalid when compiling for BookE. Notes: svn path=/head/; revision=198968
* Correct MSI mode register bits.Pyun YongHyeon2009-11-061-5/+2
| | | | Notes: svn path=/head/; revision=198967
* Save/restore VGA state from vga_pci.c instead of relying on vga_isa.c.Jung-uk Kim2009-11-053-70/+103
| | | | | | | | It was not working because we were saving its state after the device was powered down. Simplify vesa_load_state() as the culprit is fixed now. Notes: svn path=/head/; revision=198964
* Fix two memory leaks in error cases.Christian Brueffer2009-11-051-2/+7
| | | | | | | | | | PR: 138378 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Approved by: mlaier MFC after: 1 week Notes: svn path=/head/; revision=198952
* Strip from messages for users external URLs the project cannot directlyAttilio Rao2009-11-052-8/+2
| | | | | | | | | control. Requested by: kib, rwatson Notes: svn path=/head/; revision=198950
* MFp4:Alexander Motin2009-11-051-4/+17
| | | | | | | Implement device stats accounting for ATA commands. Notes: svn path=/head/; revision=198947
* Fix typo in kernel message. The fix is based upon the patch in the PR.Alexander Leidinger2009-11-051-1/+1
| | | | | | | | | PR: kern/140279 Submitted by: Alexander Best <alexbestms@math.uni-muenster.de> MFC after: 1 week Notes: svn path=/head/; revision=198945
* Fix gdb_cpu_getreg() to actually match GDB's registerMarcel Moolenaar2009-11-051-3/+7
| | | | | | | definition. Notes: svn path=/head/; revision=198944
* Implement db_trace_thread() by calling db_stack_trace_cmd() andMarcel Moolenaar2009-11-051-6/+3
| | | | | | | | passing a frame pointer that comes from the thread context. This fixes DDB backtraces by not unwinding debugger functions first. Notes: svn path=/head/; revision=198943
* Implement db_trace_self() by calling db_stack_trace_cmd()Marcel Moolenaar2009-11-051-1/+4
| | | | | | | and not db_trace_thread(). Notes: svn path=/head/; revision=198942
* File flags handling fixes for ext2fs:Jaakko Heinonen2009-11-052-4/+10
| | | | | | | | | | | | | | | | | | | - Disallow setting of flags not supported by ext2fs. - Map EXT2_APPEND_FL to SF_APPEND. - Map EXT2_IMMUTABLE_FL to SF_IMMUTABLE. - Map EXT2_NODUMP_FL to UF_NODUMP. Note that ext2fs doesn't support user settable append and immutable flags. EXT2_NODUMP_FL is an user settable flag also on Linux. PR: kern/122047 Reported by: Ighighi Submitted by: Aditya Sarawgi (original version) Reviewed by: bde Approved by: trasz (mentor) Notes: svn path=/head/; revision=198940
* Tweak memory allocation for amd64 suspend/resume CPU context.Jung-uk Kim2009-11-042-19/+17
| | | | Notes: svn path=/head/; revision=198931
* Make bge_newbuf_std()/bge_newbuf_jumbo() returns actual error codePyun YongHyeon2009-11-041-13/+20
| | | | | | | | | for buffer allocation. If driver know we are out of Rx buffers let controller stop. This should fix panic when interface is run even if it had no configured Rx buffers. Notes: svn path=/head/; revision=198928
* Remove common DMA tag used for TX/RX mbufs and create Tx DMA tagPyun YongHyeon2009-11-042-27/+42
| | | | | | | | | | | and Rx DMA tag separately. Previously it used a common mbuf DMA tag for both Tx and Rx path but Rx buffer(standard ring case) should have a single DMA segment and maximum buffer size of the segment should be less than or equal to MCLBYTES. This change also make it possible to add TSO with minor changes. Notes: svn path=/head/; revision=198927
* Covert bge_newbuf_std to use bus_dmamap_load_mbuf_sg(9). Note,Pyun YongHyeon2009-11-041-14/+11
| | | | | | | | | | | | | | bge_newbuf_std still has a bug for handling dma map load failure under high network load. Just reusing mbuf is not enough as driver already unloaded the dma map of the mbuf. Graceful recovery needs more work. Ideally we can just update dma address part of a Rx descriptor because the controller never overwrite the Rx descriptor. This requires some Rx initialization code changes and it would be done later after fixing other incorrect bus_dma(9) usages. Notes: svn path=/head/; revision=198924
* Use correct dma tag for jumbo buffer.Pyun YongHyeon2009-11-041-1/+1
| | | | Notes: svn path=/head/; revision=198923
* Do not probe video mode if we are not going to use it.Jung-uk Kim2009-11-041-7/+9
| | | | Notes: svn path=/head/; revision=198911
* Fix protype.Alexander Motin2009-11-041-1/+1
| | | | Notes: svn path=/head/; revision=198905
* PMP commands use short format. PMP write doesn't return result.Alexander Motin2009-11-041-10/+4
| | | | Notes: svn path=/head/; revision=198904
* MFp4:Alexander Motin2009-11-044-25/+12
| | | | | | | | | | | | - Remove CAM_PERIPH_POLLED flag. It is broken by design. Polling can't be periph flag. May be SIM, may be CCB, but now it works fine just without it. - Remove check unused for at least five years. If we will ever have non-BIO devices in CAM, this check is smallest of what we will need. - If several controllers complete requests same time, call swi_sched() only once. Notes: svn path=/head/; revision=198899
* MFp4:Alexander Motin2009-11-045-33/+57
| | | | | | | | | - Add support for sector size > 512 bytes and physical sector of several logical sectors, introduced by ATA-7 specification. - Remove some obsoleted code. Notes: svn path=/head/; revision=198897
* Do not unarm callout on request completion and change slot selectionAlexander Motin2009-11-041-10/+8
| | | | | | | | algorithm as done in ahci(4). This saves some CPU time on high request rates. Notes: svn path=/head/; revision=198896
* Fix build.Edward Tomasz Napierala2009-11-041-1/+1
| | | | | | | Submitted by: Andrius Morkūnas <hinokind at gmail.com> Notes: svn path=/head/; revision=198877
* Revert r198874, pending further discussion.Edward Tomasz Napierala2009-11-041-1/+1
| | | | Notes: svn path=/head/; revision=198876
* Style fixes.Edward Tomasz Napierala2009-11-041-7/+7
| | | | Notes: svn path=/head/; revision=198875
* Make sure we don't end up with VAPPEND without VWRITE, if someone calls open(2)Edward Tomasz Napierala2009-11-041-1/+1
| | | | | | | like this: open(..., O_APPEND). Notes: svn path=/head/; revision=198874
* While VAPPEND without VWRITE makes sense for VOP_ACCESSX(9) (e.g. to checkEdward Tomasz Napierala2009-11-041-0/+8
| | | | | | | | | for the permission to create subdirectory (ACE4_ADD_SUBDIRECTORY)), it doesn't really make sense for VOP_ACCESS(9). Also, many VOP_ACCESS(9) implementations don't expect that. Make sure we don't confuse them. Notes: svn path=/head/; revision=198873
* Eliminate an unnecessary vm include file.Alan Cox2009-11-044-4/+0
| | | | Notes: svn path=/head/; revision=198872
* Eliminate an unnecessary #include. (This #include should have been removedAlan Cox2009-11-041-1/+0
| | | | | | | in r188331 when vnode_pager_lock() was eliminated.) Notes: svn path=/head/; revision=198870
* Opteron rev E family of processor expose a bug where, in very rareAttilio Rao2009-11-042-0/+36
| | | | | | | | | | | | | | | | | | | ocassions, memory barriers semantic is not honoured by the hardware itself. As a result, some random breakage can happen in uninvestigable ways (for further explanation see at the content of the commit itself). As long as just a specific familly is bugged of an entire architecture is broken, a complete fix-up is impratical without harming to some extents the other correct cases. Considering that (and considering the frequency of the bug exposure) just print out a warning message if the affected machine is identified. Pointed out by: Samy Al Bahra <sbahra at repnop dot org> Help on wordings by: jeff MFC: 3 days Notes: svn path=/head/; revision=198868
* Restore color palette format if we reset video mode.Jung-uk Kim2009-11-041-0/+2
| | | | Notes: svn path=/head/; revision=198867
* Save/restore VGA color palette while suspending and resuming.Jung-uk Kim2009-11-042-10/+33
| | | | Notes: svn path=/head/; revision=198866
* Fix constants.Alexander Motin2009-11-031-2/+2
| | | | Notes: svn path=/head/; revision=198865
* fixes a typo that value should be 0 not 10.Weongyo Jeong2009-11-031-1/+1
| | | | Notes: svn path=/head/; revision=198862
* Make /dev/klog and kern.msgbuf* MPSAFE.Ed Schouten2009-11-033-37/+58
| | | | | | | | | | | | | | | | | Normally msgbufp is locked using Giant. Switch it to use the msgbuf_lock. Instead of changing the tsleep() calls to msleep(), just convert it to condvar(9). In my opinion the locking around msgbuf_peekbytes() still remains questionable. It looks like locks are dropped while performing copies of multiple blocks to userspace, which may cause the msgbuf to be reset in the mean time. At least getting it underneath from Giant should make it a little easier for us to figure out how to solve that. Reminded by: rdivacky Notes: svn path=/head/; revision=198860
* Fix VESA color palette corruption:Jung-uk Kim2009-11-033-59/+40
| | | | | | | | | | | | | | | - VBE 3.0 says palette format resets to 6-bit mode when video mode changes. We simply set 8-bit mode when we switch modes if the adapter supports it. - VBE 3.0 also says if the mode is not VGA compatible, we must use VBE function to save/restore palette. Otherwise, VGA function may be used. Thus, reinstate the save/load palette functions only for non-VGA compatible modes regardless of its palette format. - Let vesa(4) set VESA modes even if vga(4) claims to support it. - Reset default palette if VESA pixel mode is set initially. - Fix more style nits. Notes: svn path=/head/; revision=198858
* fdc(4) module unload fixes:Jaakko Heinonen2009-11-031-3/+14
| | | | | | | | | | | | | - Tear down the interrupt handler before killing the worker thread. - Do geom withering as GEOM event to avoid acquiring the GEOM topology lock under Giant. PR: kern/104079 Reviewed by: joerg Approved by: trasz (mentor) Notes: svn path=/head/; revision=198857
* Eliminate a bit of hackery from vm_fault(). The operations that thisAlan Cox2009-11-031-11/+0
| | | | | | | | | | hackery sought to prevent are now properly supported by vm_map_protect(). (See r198505.) Reviewed by: kib Notes: svn path=/head/; revision=198855
* Split P_NOLOAD into a per-thread flag (TDF_NOLOAD).Attilio Rao2009-11-036-30/+24
| | | | | | | | | | | | | This improvements aims for avoiding further cache-misses in scheduler specific functions which need to keep track of average thread running time and further locking in places setting for this flag. Reported by: jeff (originally), kris (currently) Reviewed by: jhb Tested by: Giuseppe Cocomazzi <sbudella at email dot it> Notes: svn path=/head/; revision=198854
* If socket buffer space appears to be lower then sum of count of alreadyKonstantin Belousov2009-11-031-9/+1
| | | | | | | | | | | | | | | | | prepared bytes and next portion of transfer, inner loop of kern_sendfile() aborts, not preparing next mbuf for socket buffer, and not modifying any outer loop invariants. The thread loops in the outer loop forever. Instead of breaking from inner loop, prepare only bytes that fit into the socket buffer space. In collaboration with: pho Reviewed by: bz PR: kern/138999 MFC after: 2 weeks Notes: svn path=/head/; revision=198853
* MFp4:Alexander Motin2009-11-032-49/+104
| | | | | | | | | | | | - Rework timeout handling, to make it more graceful for devices sharing controller port (with PMP). Wait for other commands completion/timeout before initiating recovery. - Handle timeouts and fatal errors with port hard-reset. The rest of recovery will be done by XPT on receiving async event. More gracefull per-device soft-reset recovery can be implemented later. Notes: svn path=/head/; revision=198852
* MFp4:Alexander Motin2009-11-032-7/+35
| | | | | | | | | | - Handle timeouts and fatal errors with port hard-reset. The rest of recovery will be done by XPT on receiving async event. More gracefull per-device soft-reset recovery can be implemented later. - Add workaround for ATI SB600/SB700 PMP probe related bug, to speedup boot. Notes: svn path=/head/; revision=198851
* MFp4:Alexander Motin2009-11-035-7/+229
| | | | | | | Improve reporting ATA Status error details. Notes: svn path=/head/; revision=198849
* Fix two issues that can lead to exceeding configured pipe bandwidth:Oleg Bulyzhin2009-11-031-5/+16
| | | | | | | | | | - do not expire queues which are not ready to be expired. - properly calculate available burst size. MFC after: 3 days Notes: svn path=/head/; revision=198845