| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Fixes CID 1829
Found by: Coverity
|
| |
|
|
|
|
|
| |
Found by: Coverity
Submitted by: jhb
|
|
|
|
| |
mistakenly rely on wrong snd_spicds version.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
internal bus_dmammem_alloc() for greater flexibility on setting up DMA /
page attributes.
|
| |
|
|
|
|
| |
couple of associated error checks.
|
|
|
|
|
|
|
|
|
|
| |
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 >
|
|
|
|
| |
Sponsored by: Soekris Engineering
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
time, and this prevents interrupts (say for Hz/hardclock) from
happening. Time stands still during the transfers...
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
kill redundant INVARIANTS check
|
|
|
|
| |
remove map creation before calling bus_dmamap_load_mvec_sg
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Submitted by: R.Mahmatkhanov
MFC after: 10 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
| |
don't clear and then set M_PKTHDR, m_gethdr sets it correctly
improve error handling on m_gethdr failure
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
| |
double free's and an infinite loop.
CID: 1834
Found by: Coverity Prevent (tm)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
as well.
Obtained from: OpenBSD
MFC after: 1 week
|
|
|
|
|
|
|
| |
logging: the sysctl framework will already have checked for privilege
if a sysctl value is being set.
Discussed a long time ago with: sam
|
| |
|
|
|
|
| |
for now simply don't compile/use on sparc64
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
change m_collapse to return an error code
|
| |
|
| |
|
| |
|
|
|
|
| |
various interesting memory leak issues.
|
|
|
|
| |
MFC after: 3 days
|
| |
|
| |
|