Robert Watson
f92e0b28a4
Since if_ixgb doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-14 00:17:04 +00:00
Robert Watson
7e3a88ea3c
Since if_xe doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-14 00:15:26 +00:00
Robert Watson
7eadb7d5e9
Since if_vx doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-14 00:12:42 +00:00
Robert Watson
095f2ac443
Since if_txp doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Note: mutexes are initialized in the softc for this driver, but the
locking appears inadequate to allow Giant-free operation.
2004-08-13 23:53:36 +00:00
Robert Watson
85d5028a78
Since if_tx doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:52:33 +00:00
Robert Watson
d87e67338d
Since if_sr doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:49:48 +00:00
Robert Watson
5ce832e127
Since if_snc doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:47:01 +00:00
Robert Watson
ae9be8d3bb
Since if_sbni doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:41:00 +00:00
Robert Watson
1d6aa1687f
Since if_ray doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:39:07 +00:00
Robert Watson
68c7bc6de8
Since if_plip doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:32:17 +00:00
Robert Watson
fc4af83ae9
Since if_nge doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Note: this driver does declare and occasionally reference mutexes,
but I believe not nearly enough to provide safety.
2004-08-13 23:22:53 +00:00
Robert Watson
26ec2d74aa
Since if_lnc doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:20:50 +00:00
Robert Watson
b095765df6
Since if_lge doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:18:01 +00:00
Robert Watson
9c7d53aa85
Since if_ic doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:16:44 +00:00
Robert Watson
be0fd0eb55
Since if_ie doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:15:44 +00:00
Robert Watson
3acd3b73c5
Since if_hme doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:14:50 +00:00
Robert Watson
268f132afc
Since if_gem doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:11:24 +00:00
Robert Watson
a1755216cf
Since if_fwip doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Approved by: dfr
2004-08-13 23:09:41 +00:00
Robert Watson
65da4658f0
Since if_fe doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:08:08 +00:00
Robert Watson
54c32b7d98
Since if_ex doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Note: there are locking macros in if_exreg.h, but they appear to be
unused.
2004-08-13 23:06:55 +00:00
Robert Watson
463d14faf8
Since if_ed doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:04:23 +00:00
Robert Watson
de1af409d2
Since if_cs doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:03:11 +00:00
Robert Watson
c84843f1e5
Since if_cp doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 23:02:17 +00:00
Robert Watson
07f3ffc4fe
Since if_cm doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 22:57:44 +00:00
Robert Watson
ec722f0875
Since if_awi doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 22:55:25 +00:00
Robert Watson
ea69bf33ec
Since if_arl doesn't contain locking or run with INTR_MPSAFE, mark
...
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
2004-08-13 22:54:19 +00:00
Robert Watson
b68828c941
As the if_ar driver doesn't contain locking or run its interrupt
...
MPSAFE, mark it as IFF_NEEDSGIANT so that its if_start routine is
run holding Giant.
2004-08-13 22:52:11 +00:00
Robert Watson
09e54b95d3
Since the if_de driver doesn't contain locking, mark it as
...
IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant
when running debug.mpsafenet=1.
2004-08-13 22:48:05 +00:00
Doug Ambrisko
4f1132a88a
Fix the memory scaling bug when basemem was converted to Kbytes from
...
bytes for AMD64. Otherwise the AP will be started at 640K which
won't work. Bug found on a Xeon 64bit system.
2004-08-13 22:30:55 +00:00
Robert Watson
3b7d076fe7
Use IFQ_SET_MAXLEN() to set the maximum queue depth of the routing
...
socket netisr queue.
Pointed out by: winter
2004-08-13 22:23:21 +00:00
Justin T. Gibbs
39250c18b8
Extend critical section protection around portions of selection processing
...
that cannot tolerate changes to the waiting for selection queue by the
host or the host canceling an active selection.
2004-08-13 21:41:23 +00:00
Justin T. Gibbs
31d80b6045
Fix an off by one in the critical section clearing code. The
...
code was adjusting twice for the instruction pointer indicating
the *next* instruction to execute. The aic79xx driver had a similar
bug, but was fixed some time ago.
2004-08-13 21:39:14 +00:00
Robert Watson
d990378077
Commit a work-around for a more general bug involving process state:
...
check whether p_ucred is NULL or not in pfs_getattr() before
dereferencing the credential, and return ENOENT if there wasn't one.
This is a symptom of a larger problem, wherein pfind() can return
references to incompletely initialized processes, and we instead ought
to not return them, or check the process state before acting on the
process.
Reported by: kris
Discussed with: tjr, others
2004-08-13 20:27:56 +00:00
Nate Lawson
c2c373f9a0
Fix building for the ACPI_DEBUG case.
2004-08-13 19:27:21 +00:00
Alan Cox
edf181d07e
Add pmap locking to pmap_remove_all().
2004-08-13 18:54:21 +00:00
Matt Jacob
6e6a585e3f
When printing out an unknown sense code we should print it in hex, not
...
decimal.
Reviewed by: gibbs, nate, kdm
2004-08-13 18:45:04 +00:00
Nate Lawson
e1ebe17579
Record the new status after checking if it has changed, not before. This
...
fixes lost AC line transition events.
Bug report: Kevin Oberman
2004-08-13 17:47:40 +00:00
John-Mark Gurney
ac77164d64
clean up whitespace...
2004-08-13 17:43:53 +00:00
Ruslan Ermilov
48aea4da66
Removed COPTS support from kmod.mk and kern.pre.mk.
...
COPTS support in bsd.prog.mk is preserved but discouraged.
2004-08-13 14:30:26 +00:00
Roman Kurakin
47a1257e20
Fix resource check while autodetection.
2004-08-13 12:35:52 +00:00
Roman Kurakin
f14ab395f4
White space cleanup.
2004-08-13 12:27:24 +00:00
Roman Kurakin
d71a0dc2e6
White space cleanup.
2004-08-13 12:22:01 +00:00
Roman Kurakin
a162fe531c
White space cleanup.
2004-08-13 12:14:39 +00:00
Max Khon
75261008d7
Add geom_uzip -- geom class that implements read-only compressed disks.
...
Currently supports cloop V2.0 disk compression format.
May support more formats in future.
2004-08-13 09:40:58 +00:00
Søren Schmidt
8b68793ab3
Allow the use of a supplied function to set the PRD table. This is
...
needed for new chips that supports 64bit addressing.
2004-08-13 08:14:27 +00:00
Alan Cox
0164e05781
Replace the linear search in vm_map_findspace() with an O(log n)
...
algorithm built into the map entry splay tree. This replaces the
first_free hint in struct vm_map with two fields in vm_map_entry:
adj_free, the amount of free space following a map entry, and
max_free, the maximum amount of free space in the entry's subtree.
These fields make it possible to find a first-fit free region of a
given size in one pass down the tree, so O(log n) amortized using
splay trees.
This significantly reduces the overhead in vm_map_findspace() for
applications that mmap() many hundreds or thousands of regions, and
has a negligible slowdown (0.1%) on buildworld. See, for example, the
discussion of a micro-benchmark titled "Some mmap observations
compared to Linux 2.6/OpenBSD" on -hackers in late October 2003.
OpenBSD adopted this approach in March 2002, and NetBSD added it in
November 2003, both with Red-Black trees.
Submitted by: Mark W. Krentel
2004-08-13 08:06:34 +00:00
John-Mark Gurney
7d5e45a391
looks like rwatson forgot tabs... :)
2004-08-13 07:38:58 +00:00
Warner Losh
c397ea6713
Move PNP IDs back into oldcard files
2004-08-13 06:57:31 +00:00
Nate Lawson
8781a7852f
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler
* Assert that the sx lock is held in any functions they call.
* Note that recursively calling to re-enable the hotkeys is sub-optimal.
2004-08-13 06:22:35 +00:00
Nate Lawson
e8a162f4f3
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler
* Assert that the sx lock is held in any functions they call.
2004-08-13 06:22:31 +00:00