summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Free cluster if we fail to create the dmamap.kmacy2007-04-201-3/+1
| | | | | Fixes CID 1829 Found by: Coverity
* Eliminate CID 1842 by comparing against (type != EXT_MBUF) => refcnt != NULLkmacy2007-04-201-1/+2
|
* Fix memory leak in m_collapse (CID 1843)kmacy2007-04-201-4/+7
| | | | | Found by: Coverity Submitted by: jhb
* Unbreak module / driver attach breakage. Both snd_envy24 and snd_envy24htariff2007-04-202-2/+2
| | | | mistakenly rely on wrong snd_spicds version.
* Up until now, the free SCB pool received only a small initial allocation,scottl2007-04-195-18/+24
| | | | | | | | | | | | and new SCBs were allocated on demand later if needed. This has two problems. First, allocating SCBs involves allocating contiguous memory, and if memory is exhausted then the VM will try to page out to satisfy the request, leading to recursion and deadlock. The second problem is that it can cause lock order reversals due to parts of the VM still being under Giant. Fix the problem be allocating the full pool at driver attach, when it is safe to do so.
* - AC97 quirk / patch cleanups. Most quirks doesn't work in general senseariff2007-04-194-20/+59
| | | | | | | | | | and should only be applied on certain specific card / vendor, hence the addition of ac97_getsubvendor(). - Fix low volume issue on several MSI laptops through ALC655 quirk. Reported/Tested by: Christian Mueller <raptor-freebsd-multimedia@xpls.de> MFC after: 1 week
* - Fix mbuf/node leakage in drivers' raw_xmit().sephe2007-04-194-14/+39
| | | | | | | | | | - For ural(4): o Fix node leakage in ural_start(), if ural_tx_mgt() fails. o Fix mbuf leakage in ural_tx_{mgt,data}(), if usbd_transfer() fails. o In ural_tx_{mgt,data}(), set ural_tx_data.{m,ni} to NULL, if usbd_transfer() fails, so they will not be freed again in ural_stop(). Approved by: sam (mentor)
* Fix witness(4) warnings about mutex use.jkoshy2007-04-193-20/+30
| | | | | | | | | | | | | | | | | | Group mutexes used in hwpmc(4) into 3 "types" in the sense of witness(4): - leaf spin mutexes---only one of these should be held at a time, so these mutexes are specified as belonging to a single witness type "pmc-leaf". - `struct pmc_owner' descriptors are protected by a spin mutex of witness type "pmc-owner-proc". Since we call wakeup_one() while holding these mutexes, the witness type of these mutexes needs to dominate that of "sleepq chain" mutexes. - logger threads use a sleep mutex, of type "pmc-sleep". Submitted by: wkoszek (earlier patch)
* sndbuf_alloc() now accept dmaflags argument which will be forwarded toariff2007-04-1828-35/+38
| | | | | internal bus_dmammem_alloc() for greater flexibility on setting up DMA / page attributes.
* Break ABI / module compatibility for the upcoming sndbuf_alloc() changes.ariff2007-04-181-3/+3
|
* Revert a driver API change to xpt_alloc_ccb that isn't necessary. Fix ascottl2007-04-182-6/+4
| | | | couple of associated error checks.
* Don't reinitialize the hardware if only PROMISC flag was changed.yongari2007-04-181-4/+12
| | | | | | | | | | Previously whenever PROMISC mode turned on/off link renegotiation occurs and it could resulted in network unavailability for serveral seconds.(Depending on switch STP settings it could last several tens seconds.) Reported by: Prokofiev S.P. < proks AT logos DOT uptel DOT net > Tested by: Prokofiev S.P. < proks AT logos DOT uptel DOT net >
* Add support for hw-assisted checksums on 6105M.phk2007-04-172-17/+72
| | | | Sponsored by: Soekris Engineering
* No need to throw tag+handle around on the stack.phk2007-04-172-18/+7
|
* Improve the if_vr driver ever so slightly.phk2007-04-172-87/+110
| | | | | | | | | | | | | The 6105M and 6102 does not have the DWORD alignment problem, so don't m_defrag() every packet in the transmit path for those. More stringent usage of tx-descriptor ring and its flags. Tested on 6102 and 6105M, other chips may also be able to run without the m_defrag() but I have neither hardware nor docs to find out. Sponsored by: Soekris Engineering
* Basic MPSAFE locking for the AHC and AHD drivers.scottl2007-04-1713-336/+72
|
* Don't use spinlocks here. The iicbus transactions can take a longimp2007-04-171-3/+3
| | | | | time, and this prevents interrupts (say for Hz/hardclock) from happening. Time stands still during the transfers...
* s/destory/destroy/ (except for the code in contrib/).pjd2007-04-162-2/+2
|
* PHYS_TO_VM_PAGE requires explicit vm_page.h include on sparc64kmacy2007-04-151-0/+1
|
* Use %j and args cast to uintmax_t to print bus_addr_t && length args.mjacob2007-04-151-2/+2
|
* Add pmap includes needed by i386kmacy2007-04-151-0/+3
|
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willscottl2007-04-1531-37/+62
| | | | | | | | | | | use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in the coming week as this work settles down. The driver API has changed, so all CAM drivers will need to be recompiled. The userland API has not changed, so tools like camcontrol do not need to be recompiled.
* suck in more of busdma to enable more efficient mappingskmacy2007-04-151-58/+164
| | | | kill redundant INVARIANTS check
* Add sysctl for disabling/enabling mbuf chain collapsingkmacy2007-04-152-11/+8
| | | | remove map creation before calling bus_dmamap_load_mvec_sg
* Implement ZERO_COPY_SOCKETS check in a way that doesn't make LINT unhappykmacy2007-04-151-5/+6
|
* Add support for mbuf iovec in the TX pathkmacy2007-04-142-40/+87
|
* add reference count pointer to mbuf ioveckmacy2007-04-142-161/+381
| | | | | | | | implement robust version of m_collapse add support for sf_buf add fix for m_iovappend add calls to m_sanity under INVARIANTS fix m_freem_vec to correctly travese the mbuf iovec chain
* o Extend the list of supported CDMA-2000 terminals.maxim2007-04-131-2/+2
| | | | | Submitted by: R.Mahmatkhanov MFC after: 10 days
* restore sense to get_imm_packetkmacy2007-04-121-6/+4
| | | | MFC after: 3 days
* switch over to per-txq dma tag to facilitate parallelism on TXkmacy2007-04-121-12/+12
| | | | MFC after: 3 days
* explicitly check TSO flagkmacy2007-04-121-12/+8
| | | | | | | don't clear and then set M_PKTHDR, m_gethdr sets it correctly improve error handling on m_gethdr failure MFC after: 3 days
* Add ETHER_HDR_LEN to hardware accepted mtukmacy2007-04-121-3/+3
| | | | MFC after: 3 days
* Fix m_freem_vec() to actually traverse the mbuf chain. This avoidsjhb2007-04-111-0/+1
| | | | | | | double free's and an infinite loop. CID: 1834 Found by: Coverity Prevent (tm)
* Add work around for hardware Tx checksum offload bug in Yukon II.yongari2007-04-111-5/+25
| | | | | | | | | | | | | | | Yukon II generated corrupted TCP checksum for short TCP packets that's less than 60 bytes in size(e.g. window probe packet, pure ACK packet etc). Padding the frame with zeros to make the frame minimum ethernet frame size didn't work at all. Instead of dropping Tx checksum offload support we calculate TCP checksum with S/W method when we encounter short TCP frames. Fortunately it seems that short UDP datagrams appear to be handled correctly by Yukon II. While I'm here simplify ethernet/VLAN header size calculation logic. PR: 111384
* Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsetsmarius2007-04-102-0/+2
| | | | | | | as well. Obtained from: OpenBSD MFC after: 1 week
* Remove unnecessary suser() check in the sysctl to set up ath_halrwatson2007-04-101-10/+7
| | | | | | | logging: the sysctl framework will already have checked for privilege if a sysctl value is being set. Discussed a long time ago with: sam
* throw sun4v into the check while we're at itkmacy2007-04-091-1/+1
|
* busdma tags are opaque on all architectures except sparc64kmacy2007-04-091-1/+2
| | | | for now simply don't compile/use on sparc64
* Add missing parenkmacy2007-04-081-4/+4
|
* OK, this is not my day, fix the former fix :/sos2007-04-081-2/+1
|
* Hopefully unbreak the 64bit DMA support this time.sos2007-04-083-11/+9
|
* remove stale variable referencekmacy2007-04-081-2/+2
|
* add busdma function for mapping mbuf iovecskmacy2007-04-082-14/+121
| | | | change m_collapse to return an error code
* Dont zero out 64BIT flag on DMA ops.sos2007-04-081-2/+3
|
* Convert driver RX path over to using mbuf ioveckmacy2007-04-084-123/+107
|
* Add driver private mbuf iovec support routineskmacy2007-04-082-0/+363
|
* Disable cmi_midiattach(). The implementation is incomplete, and causingariff2007-04-081-1/+2
| | | | various interesting memory leak issues.
* Hide bus reset announcements within bootverbose.mjacob2007-04-071-2/+7
| | | | MFC after: 3 days
* Add 64bit addressing support to SiI 3132/3124sos2007-04-061-0/+2
|
* Remove debug gunk.sos2007-04-061-1/+0
|
OpenPOWER on IntegriCloud