Yoshihiro Takahashi
24072ca35b
- Move timerreg.h to <arch>/include and split i8253 specific defines into
...
i8253reg.h, and add some defines to control a speaker.
- Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them.
- Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively.
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 09:10:02 +00:00
Yoshihiro Takahashi
bc3729b63f
MFi386: revision 1.614.
2005-05-14 08:52:04 +00:00
Alan Cox
7daa3570e4
Revert revision 1.164: pmap_qremove() does not require protection by
...
VM_LOCK_GIANT.
Discussed with: jeff
2005-05-14 05:09:11 +00:00
Peter Grehan
edaccfc8bb
Remove incorrect configuration setting that limited the Kauai ATA controller
...
to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
2005-05-14 02:11:45 +00:00
Paul Saab
fdace17f81
Fix for a bug where the "nexthole" sack hint is out of sync with the
...
real next hole to retransmit from the scoreboard, caused by a bug
which did not update the "nexthole" hint in one case in
tcp_sack_option().
Reported by: Daniel Eriksson
Submitted by: Mohan Srinivasan
2005-05-13 18:02:02 +00:00
Xin LI
9242b38b0d
Bump __FreeBSD_version for POSIX ttyname_r(3) changes.
...
Forgotten by: me
Reminded by: mezz
2005-05-13 17:31:32 +00:00
Gleb Smirnoff
b3cf6808ce
In div_output() explicitly set m->m_nextpkt to NULL. If divert socket
...
is not userland, but ng_ksocket, then m->m_nextpkt may be non-NULL. In
this case we would panic in sbappend.
2005-05-13 11:44:37 +00:00
Gleb Smirnoff
0f4a3524dd
When used as divert socket we need to decouple stack when node is entered
...
from socket side. Use ng_queue_fn() instead of ng_send_fn().
2005-05-13 11:40:08 +00:00
Gleb Smirnoff
aacdb11479
Since there is no way to queue a function call to node, create
...
ng_queue_fn() - a queue version of ng_send_fn().
2005-05-13 11:35:02 +00:00
Peter Edwards
34ddec12b1
lockmgr(...,LK_DRAIN,...) requires a balancing LK_RELEASE: recent
...
INVARIANTS dependent checks in userret() pinpointed a missing
invocation here.
Remove an unused variable while here.
Reviewed By: bp@
Reported By: yongari@
MFC After: 3 days
2005-05-13 11:27:48 +00:00
Søren Schmidt
265da99ce9
Cleanup comments
2005-05-13 10:25:19 +00:00
Søren Schmidt
bb8a0cf2cf
Fix more ATAPI breakage.
...
Apparently some devices are very picky on details :)
2005-05-13 07:58:05 +00:00
Jacques Vidrine
032e56ae9b
Default hyperthreading on in -CURRENT. No seatbelts in CURRENT (^_^)
...
Requested by: peter, jhb
2005-05-13 00:57:04 +00:00
Jacques Vidrine
f6108b6158
Add a knob for disabling/enabling HTT, "machdep.hyperthreading_allowed".
...
Default off due to information disclosure on multi-user systems.
Submitted by: cperciva
Reviewed by: jhb
2005-05-13 00:10:56 +00:00
Nate Lawson
a6761eb377
If there is a problem during probe, be sure to free up any resources
...
allocated for it. The normal exit case handles this correctly so we
use it as well for errors.
Submitted by: pjd
Obtained from: Coverity Prevent
2005-05-12 22:35:08 +00:00
Robert Watson
83ae2ce161
Remove unimplemented ACL types.
...
Reported by: Hervé Kergourlay <herve dot kergourlay at atempo dot com>
2005-05-12 22:01:18 +00:00
John Baldwin
a4c24c66bc
Actually use the iterating variable in the for loop when trying to avoid
...
overflow.
Reported by: Vladislav Shabanov vs at rambler-co dot ru
MFC after: 1 week
Glanced at: alfred
2005-05-12 20:04:48 +00:00
Gleb Smirnoff
35fd572dcb
- Gather statistics about failed mbuf+cluster+ng_item allocations.
...
- Adjust comments and variables names in nfinfo.
2005-05-12 13:52:49 +00:00
Yoshihiro Takahashi
77bcc9ce35
Move the pc98 keymap define into pckbdtables.h because it should be used
...
only on the pckbd driver.
2005-05-12 13:39:31 +00:00
Yoshihiro Takahashi
164e09ddb4
- Move the NPX_DEBUG option to options.{i386,pc98} and use opt_npx.h.
...
- Move npx related defines to {i386,pc98}/include/npx.h to remove #include
{isa,cbus}.h.
2005-05-12 12:47:41 +00:00
Yoshihiro Takahashi
d6c331a30d
Remove unused IO_NPX* defines.
2005-05-12 12:36:31 +00:00
Peter Grehan
10b00dd4f3
The final test in unlock_and_deallocate() to determine if GIANT needs to be
...
unlocked wasn't updated to check for OBJ_NEEDGIANT. This caused a WITNESS
panic when debug_mpsafevm was set to 0.
Approved by: jeffr
2005-05-12 04:09:41 +00:00
Pawel Jakub Dawidek
07ebf8c8c3
We don't use 'mp' variable, but we do want to mount devfs, ehh.
2005-05-12 01:49:51 +00:00
Paul Saab
0077b0163f
When looking for the next hole to retransmit from the scoreboard,
...
or to compute the total retransmitted bytes in this sack recovery
episode, the scoreboard is traversed. While in sack recovery, this
traversal occurs on every call to tcp_output(), every dupack and
every partial ack. The scoreboard could potentially get quite large,
making this traversal expensive.
This change optimizes this by storing hints (for the next hole to
retransmit and the total retransmitted bytes in this sack recovery
episode) reducing the complexity to find these values from O(n) to
constant time.
The debug code that sanity checks the hints against the computed
value will be removed eventually.
Submitted by: Mohan Srinivasan, Noritoshi Demizu, Raja Mukerji.
2005-05-11 21:37:42 +00:00
Olivier Houchard
e85d3fc3c8
Don't forget to copy the TP when forking, or bad things will happen to the
...
child process if it tries to use threads.
2005-05-11 21:20:42 +00:00
Christian Brueffer
befb7f333f
Fix three typos in comments. Two of them obtained from OpenBSD.
...
MFC after: 3 days
2005-05-11 21:10:35 +00:00
Pawel Jakub Dawidek
b8bc5373e1
Remove unised variable introduced by accident in rev 1.168.
...
Found by: Coverity Prevent analysis tool
2005-05-11 19:50:34 +00:00
Pawel Jakub Dawidek
3ac6c13bd4
cp can't be NULL.
...
Noticed by: Coverity Prevent analysis tool
2005-05-11 19:36:56 +00:00
Pawel Jakub Dawidek
b957751627
gp can't be NULL.
...
Noticed by: Coverity Prevent analysis tool
2005-05-11 19:35:43 +00:00
Pawel Jakub Dawidek
f850b2781f
Plug memory leaks.
...
Found by: Coverity Prevent analysis tool
2005-05-11 19:27:38 +00:00
Alexander Kabaev
42e1d99cc8
Do not dereference dvp pointer before doing a NULL check.
...
Noticed by: Coverity Prevent analysis tool.
2005-05-11 19:08:38 +00:00
Alexander Kabaev
59195c3a3d
Plug a potential memory leak.
...
Noticed by: Coverity Prevent analysis tool.
2005-05-11 18:53:14 +00:00
Søren Schmidt
c46e1f5333
Add new Intel PCI ID's for the ICH7 chips (untested).
2005-05-11 18:29:15 +00:00
Alexander Kabaev
0ca9ed8674
Handle theoretical case of vfs_export being called with both MNT_DELEXPORT and
...
MNT_EXPORT flags set. Do not reuse the memory that has just been freed.
2005-05-11 18:25:42 +00:00
Pawel Jakub Dawidek
862f5624ea
Add KASSERT() to be sure there is an active component.
...
Suggested by: Coverity Prevent analysis tool
2005-05-11 18:13:51 +00:00
Pawel Jakub Dawidek
0a3384a8f8
Check return value.
...
Found by: Coverity Prevent analysis tool
2005-05-11 18:07:39 +00:00
Alexander Kabaev
693937214b
Do not initialize path variable with useless value just before
...
xpt_create_path overwrites it anyway.
Noticed by: Coverity Prevent analysis tool
2005-05-11 17:39:33 +00:00
Søren Schmidt
d81c813f10
Add support for AHCI compliant ATA devices.
...
For now just support the Intel ICH6 as that the HW at hand.
Sponsored by: pair.com
2005-05-11 16:10:08 +00:00
Warner Losh
3ecc7feefc
Take out Giant in uhub_child_* in giant. There's one place where we
...
could sleep which I think can lead to races. However, there are fewer
with this code than without it.
Submitted by: Hans Petter Selasky
2005-05-11 15:21:22 +00:00
Søren Schmidt
d0968d7845
Add back one line that got deleted in the last commit.
...
Change the comment there so it better describes whats going on.
This should fix the boot problems of late.
2005-05-11 14:36:26 +00:00
Søren Schmidt
faca873f76
Fix ATAPI DMA. We need to set the proper flags for DMA modes.
2005-05-11 12:41:35 +00:00
Gleb Smirnoff
494e177ada
A new version of NetFlow node.
...
The most significant changes are:
- Use UMA zone instead of own chunk of memory.
- Lock each hash entry separately.
- Expire items "actively" - interrupt method can expire flows
from hash slot, when it searches through it.
- Remove global tailqueue. Make callout thread search through
every hash slot.
- Export datagram is detached from private data and filled. If
it is incomplete, it is attached back. Another thread will
continue working with it.
Lesser, but also important speedups:
- Flows in hash slot are stored in tailqueue. Whenever a flow is
hit, it is moved to the begging, so it can be located quicker.
- When callout thread works with hash slot it bails out if
slot mutex is contested.
2005-05-11 11:26:24 +00:00
Gleb Smirnoff
cc8c6970fd
Move assertion below initializer.
...
Submitted by: Noritoshi Demizu
Pointy hat to: glebius
2005-05-11 08:28:09 +00:00
Matt Jacob
b49c46747a
Fix some incorrectly swapped fields in an ICB.
...
Access a PCI register with correct width.
Obtained from: Dmitry Valeryevich Trikoz
2005-05-11 03:00:50 +00:00
Matt Jacob
547725be50
Refactor isp_prt declaration so that platform
...
requirements can stay in platform files.
2005-05-11 00:22:17 +00:00
Maksim Yevmenkin
c18a1440f0
Mark AVM USB Bluetooth-Adapter BlueFritz! as "broken". This device is not
...
supported by ng_ubt(4) driver and needs its own driver.
PR: kern/76205
Submitted by: Tim Hemel < bsd AT timit DOT nl >
MFC after: 1 week
2005-05-10 16:25:58 +00:00
Jim Rees
3785bdbe7f
set R_MUSTRESEND flag in mark_for_reconnect so re-connected requests get
...
re-sent instead of timing out.
don't log an error message on reconnection, which is not an error.
remove unused nfs_mrep_before_tsleep.
Reviewed by: Mohan Srinivasan
Approved by: alfred
2005-05-10 14:25:14 +00:00
Gleb Smirnoff
2046fd5f68
- Assert that mbuf length equals packet length.
...
- Tell libalias, that we have MCLBYTES to play with.
- Obtain length of data in mbuf from updated IP header.
2005-05-10 14:19:10 +00:00
Yoshihiro Takahashi
257d63789e
- Move lptreg.h into pc98/cbus and rename to olptreg.h.
...
- Remove ifdef pc98.
2005-05-10 12:30:30 +00:00
Yoshihiro Takahashi
d1725ef7ff
Change a directory layout for pc98.
...
- Move MD files into <arch>/<arch>.
- Move bus dependent files into <arch>/<bus>.
Rename some files to more suitable names.
Repo-copied by: peter
Discussed with: imp
2005-05-10 12:02:18 +00:00