summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* DEVICE_PROBE(9) claims that we must not initialize softc on probe stage.mav2009-02-143-59/+53
| | | | | | | | Move channel softc initialization from ata_XXX_probe() to ata_XXX_attach(). Instead of calculating ata channel number as position in child device list, pass it's real number directly from controller probe routine using ivars. It is simpler and IMHO more correct.
* Change two KASSERTS to printfs and simple returns. Stress testing hasmarcus2009-02-141-2/+12
| | | | | | | | | | | revealed that a process' current working directory can be VBAD if the directory is removed. This can trigger a panic when procstat -f PID is run. Tested by: pho Discovered by: phobot Reviewed by: kib Approved by: kib
* Remove unneeded execute-permissions from the USB2 device node.ed2009-02-141-3/+3
| | | | | | | | Giving a charactere device execute permissions doesn't have any use. Right now there isn't a single device node in /dev that has it, except the USB2 device node, so remove it. Approved by: hps, thompsa
* Remove unnecessary page queues locking around vm_page_busy() andalc2009-02-142-8/+0
| | | | | | | vm_page_wakeup(). (This change is applicable to RELENG_7 but not RELENG_6.) MFC after: 1 week
* This commit fixes the issue with alias_sctp.c. Norrs2009-02-146-784/+707
| | | | | | | | | | | | | | longer do we require SCTP to be in the kernel for the lib to be able to handle SCTP. We do this by moving the CRC32c checksum into libkern/crc32.c and then adjusting all routines to use the common methods. Note that this will improve the performance of iSCSI since they were using the old single 256 bit table lookup versus the slicing 8 algorithm (which gives a 4x speed up in CRC32c calculation :-D) Reviewed by:rwatson, gnn, scottl, paolo MFC after: 4 week? (assuming we MFC the alias_sctp changes)
* Since r188030 the error value for attach is returned, this means if kbdmuxthompsa2009-02-131-7/+6
| | | | | | fails to attach (possibly due to disable hints) then we get called back for unload. Correctly handle the case where the keyboard isnt found rather than calling panic.
* - ieee80211_chan2ieee returns an intthompsa2009-02-131-5/+7
| | | | | | | - set ic_update_promisc to the same callback as mcast - avoid null deref in zyd_detach Obtained from: //depot/projects/usb
* MFp4 //depot/projects/usb; 157501, 157608, 157609thompsa2009-02-135-77/+29
| | | | | | | | | - Make usb2_transfer_pending() part of the USB core header file. - Make usb2_transfer_pending() NULL safe. - Make sure that USB process functions return if the process has been drained. - Remove two unused functions. Submitted by: Hans Petter Selasky
* Add support for CMOTECH devices (not sure whether this is the correctn_hibma2009-02-132-37/+173
| | | | | | | | | | name) (not sure whether this works correctly, but should be close). Fix the stub attach phase for some Novatel cards. They expect the CSW (repsonse to CBW, SCSI eject command) to be fetched before switching to modem mode. MFC after: 2 weeks
* bridge_delete_member is called via the event handler from if_detachthompsa2009-02-131-5/+9
| | | | | | | | after the LLADDR is reclaimed which causes a null pointer deref with inherit_mac enabled. Record the ifnet pointer of the interface and then compare that to find when to re-assign the bridge address. Submitted by: sam
* Remove semicolon left in the last committhompsa2009-02-131-1/+1
| | | | Spotted by: csjp
* Add the Novatel U760.thompsa2009-02-131-0/+2
|
* Have the jail code use the error returned to pass not constantrrs2009-02-132-27/+23
| | | | | errors. Obtained from: jamie@freebsd.org
* Use shared vnode locks when invoking VOP_READDIR().jhb2009-02-138-14/+13
| | | | MFC after: 1 month
* Update the Self ID structure to conform to 1394a-2000.sbruno2009-02-131-18/+50
| | | | | | Delete the unused defines. Reviewed by: scottl
* Remove redundant while () from loop.sbruno2009-02-131-1/+1
| | | | | Submitted by: Ganbold <ganbold@micom.mng.net> Reviewed by: scottl
* remove references to ic_statssam2009-02-132-5/+0
| | | | Spotted by: Lucius Windschuh <lwindschuh@googlemail.com>
* Oops. ARM_RAS_END is ARM_TP_ADDRESS + 8, not 4.cognet2009-02-131-1/+1
| | | | Spotted out by: Mark Tinguely <tinguely at casselton d0t net>
* remove unnecessary #include, and document some of the othersluigi2009-02-132-14/+10
|
* Fix a bug in the previous change to the mtab handler: use the path returnedjhb2009-02-131-1/+1
| | | | | | | by vn_fullpath() when vn_fullpath() succeeds instead of when it fails. Submitted by: Artem Belevich fbsdlist of src.cx MFC after: 3 days
* Use uint32_t instead of n_long and n_time, and uint16_t instead of n_short.luigi2009-02-137-22/+29
| | | | | | | | | Add a note next to fields in network format. The n_* types are not enough for compiler checks on endianness, and their use often requires an otherwise unnecessary #include <netinet/in_systm.h> The typedef in in_systm.h are still there.
* Move the new rwnd field down to the very endrrs2009-02-132-3/+3
| | | | | | of the xsctp structure. This is where all new fields belong (not that we will be ABI compatiable with 7.x anyway.. sigh).
* o In case of the error do not forget to deallocate a cloned device unit.maxim2009-02-131-0/+1
| | | | | | PR: kern/131642 Submitted by: Dmitrij Tejblum MFC after: 1 week
* Fix an edge-case of the linux readdir: We need the size of a linux direntnetchild2009-02-131-1/+1
| | | | | | | | structure, not the size of a pointer to it. PR: 131099 Submitted by: Andreas Kies <andikies@gmail.com> MFC after: 2 weeks
* Clarify and reimplement the bioq API so that bioq_disksort() hasluigi2009-02-131-65/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the correct behaviour (sorting by distance from the current head position in the scan direction) and bioq_insert_head() and bioq_insert_tail() have a well defined (and useful) behaviour, especially when intermixed with calls to bioq_disksort(). In particular: - fix a bug in the existing bioq_disksort() that did not use the current head position correctly; - redefine semantics of bioq_insert_head() and bioq_insert_tail(). bioq_insert_tail() can now be used as a barrier between previous and subsequent calls to bioq_disksort(). The code is heavily documented in the source code so please refer to that for the details. Much of this code comes from Fabio Checconi. Also thanks to Kirk for feedback on the (re)definition of bioq_insert_tail(). NOTE: in the current tree there is only a handful of files which intermix calls to bioq_disksort() with bioq_insert_head() and bioq_insert_tail(). The ordering of the queue in these situation was not specified (nor easy to figure out) before, so I doubt any of that code could be affected by the specification of the API. Also note that the current implementation is significantly simpler than the previous one (also used in ata_sort_queue()). It would be useful to reimplement ata_sort_queue() using the same code used in bioq_disksort(). MFC after: 1 week
* In the case that the probe has determined that it can't query the device forscottl2009-02-131-4/+3
| | | | | | | | | | | a serial number, fall through to the next case so that initial negotiation still happens. Without this, devices were showing up with only 1 available tag opening, leading to observations of very poor I/O performance. This should fix problems reported with VMWare Fusion and ESX. Early generation MPT-SAS controllers with SATA disks might also be affected. HP CISS controllers are also likely affected, as are many other pseudo-scsi disk subsystems.
* add SIOCZATHSTATS ioctl to zero driver statisticssam2009-02-132-0/+7
|
* remove ic_stats; it was intended to accumulate stats from vaps as theysam2009-02-133-3/+0
| | | | were reaped but was never used and is inaccessible
* add driver stat to count tx drops due to insufficient frag bufferssam2009-02-132-3/+3
|
* strip M_FRAG & co mbufs coming down from ip_output, these flags aresam2009-02-131-1/+2
| | | | | re-used within net80211 to mark 802.11 frags so allowing them to leak through to the driver caused packets to be dropped in ath
* Restore some of the link handling code that was inadvertently removed inthompsa2009-02-131-12/+41
| | | | | | | r188412, this broke the GU-1000T adapters. Submitted by: yongari Pointy hat: me
* Add module dependency on miibus.thompsa2009-02-131-1/+3
| | | | Submitted by: yongari
* Receving VLAN oversized frames raise SIS_ISR_RX_ERR interrupt, soyongari2009-02-131-2/+3
| | | | | | | make sis_rxeof() handle that too. Previously it used to receive the frame and reset controller. PR: kern/131414
* Recognize AR5212_AR2317_REV2 in ar5312Probe()sam2009-02-131-0/+1
| | | | Submitted by: Pavel Roskin <proski@gnu.org>
* Check the exit flag at the start of the taskqueue loop rather than the end. Itthompsa2009-02-131-2/+2
| | | | | | | | is possible to tear down the taskqueue before the thread has run and the taskqueue loop would sleep forever. Reviewed by: sam MFC after: 1 week
* Remove unused ifaddr local variable in ioctl routine.rwatson2009-02-131-2/+0
| | | | MFC after: 3 days
* Remove unused ifaddr and ifreq local variables.rwatson2009-02-121-4/+0
| | | | MFC after: 3 days
* o replace ieee80211_node_reclaim by individual operations to release thesam2009-02-121-60/+2
| | | | | | | | | | references to iv_bss and the sta table; this is equivalent and causes direct reclaim of the old bss node when any references in packets inflight are reclaimed (previously the old node would sit in the bss table until the inactivity processing reclaimed it) o remove ieee80211_node_reclaim now that it's only use is gone Reviewed by: avatar, cbzimmer
* To prevent various race conditions in the RAS code, store and restore thecognet2009-02-124-4/+23
| | | | | | values in ARM_RAS_START and ARM_RAS_END at context switch time. MFC after: 1 week
* Do not set thread0.td_frame to a bogus value, as it's going to overwrite thecognet2009-02-121-1/+0
| | | | | | | | thread0 pcb, while the board-dependant code already set a good trapframe. Reported by: Mark Tinguely <tinguely at casselton d0t net> MFC after: 1 week
* Unbreak build by making svr4 conditional on i386.cognet2009-02-121-1/+2
|
* Add a ieee80211_waitfor_parent() function that will wait for all deferredthompsa2009-02-124-2/+18
| | | | | | | | parent interface tasks to complete. This had been added to the ioctl path but it is also need elsewhere like detach so its safe to teardown. Reported by: Hans Petter Selasky Submitted by: sam
* Remove obsolete C preprocessor assertions.rdivacky2009-02-121-1/+1
| | | | Approved by: kib (mentor)
* Fix a few problems related to building modules in /sys/modules (notn_hibma2009-02-126-4/+7
| | | | | | | | | | checked whether this applies to builds in /sys/*/compile/* as well): - Create empty opt_*.h files were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile. were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile.
* Add support for the Sunix SUN1889-based dual parallel port card.kevlo2009-02-121-0/+6
| | | | | PR: kern/128219 Submitted by: Thinker K.F. Li <thinker at branda dot to>
* s/succeded/succeeded/ in comments.mav2009-02-121-3/+3
|
* Enhance debug messages and attempt to unify them into one format where possible.sbruno2009-02-121-10/+12
| | | | Reviewed by: scottl
* Update comments around various structs.sbruno2009-02-123-9/+27
| | | | Add speeds S800, S1600 and S3200
* Rewrite get_pv_entry() to match expectations of the rest of theimp2009-02-121-11/+78
| | | | | | | | | | kernel. Rather than just kick off the page daemon, we actively retire more mappings. The inner loop now looks a lot like the inner loop of pmap_remove_all. Also, get_pv_entry can't return NULL now, so remove panic if it did. Reviewed by: alc@
* pmap_kenrel() was recently deleted from pmap.h. It was still usedimp2009-02-121-2/+2
| | | | | here, but inconsistently. Change all instances of it to kernel_pmap to match rest of code.
OpenPOWER on IntegriCloud