Commit Graph

115384 Commits

Author SHA1 Message Date
delphij
6fba7ba3c1 MFen 1.845-1.849
Obtained from:	The FreeBSD Simplified Chinese Project CVS
2005-05-01 15:07:58 +00:00
jkoshy
262fe13148 Add convenience APIs pmc_width() and pmc_capabilities() to -lpmc.
Have pmcstat(8) and pmccontrol(8) use these APIs.

Return PMC class-related constants (PMC widths and capabilities)
with the OP GETCPUINFO call leaving OP PMCINFO to return only the
dynamic information associated with a PMC (i.e., whether enabled,
owner pid, reload count etc.).

Allow pmc_read() (i.e., OPS PMCRW) on active self-attached PMCs to
get upto-date values from hardware since we can guarantee that the
hardware is running the correct PMC at the time of the call.

Bug fixes:
 - (x86 class processors) Fix a bug that prevented an RDPMC
   instruction from being recognized as permitted till after the
   attached process had context switched out and back in again after
   a pmc_start() call.

   Tighten the rules for using RDPMC class instructions: a GETMSR
   OP is now allowed only after an OP ATTACH has been done by the
   PMC's owner to itself.  OP GETMSR is not allowed for PMCs that
   track descendants, for PMCs attached to processes other than
   their owner processes.

 - (P4/HTT processors only) Fix a bug that caused the MI and MD
   layers to get out of sync.  Add a new MD operation 'get_config()'
   as part of this fix.

 - Allow multiple system-mode PMCs at the same row-index but on
   different CPUs to be allocated.

 - Reject allocation of an administratively disabled PMC.

Misc. code cleanups and refactoring.  Improve a few comments.
2005-05-01 14:11:49 +00:00
rwatson
296cd56097 Remove now unused inirw variable from previous use of COMMON_END().
Reported by:	csjp
2005-05-01 14:01:38 +00:00
grehan
266a667502 Catch up with latest ATA newbus commits. 2005-05-01 13:11:29 +00:00
grehan
a0141c6218 Fix typo in last commit.
Approved by:	rwatson
2005-05-01 13:06:05 +00:00
ume
6edfe7b563 oops, we don't need previous change. 2005-05-01 12:37:12 +00:00
sos
84f0b451e6 Update on the last commit, the dma* funciton needs to be called with
a channel device, not an ata device, or we'll be out of luck in
reset/timeout where we dont have a device.
2005-05-01 12:24:45 +00:00
ume
cd238cdb0c make it compilable without YP definition. 2005-05-01 12:08:57 +00:00
jeff
a14154a7b8 - All buffers should either be clean or dirty. If neither of these flags
are set when we attempt to remove a buffer from a queue we should panic.
   Hopefully this will catch the source of the wrong bufobj panics.

Sponsored by:	Isilon Systems, Inc.
2005-05-01 12:00:36 +00:00
rwatson
9cb9a1ea65 Slide unlocking of the tcbinfo lock earlier in tcp_usr_send(), as it's
needed only for implicit connect cases.  Under load, especially on SMP,
this can greatly reduce contention on the tcbinfo lock.

NB: Ambiguities about the state of so_pcb need to be resolved so that
all use of the tcbinfo lock in non-implicit connection cases can be
eliminated.

Submited by:	Kazuaki Oda <kaakun at highway dot ne dot jp>
2005-05-01 11:11:38 +00:00
nyan
1eab0ceb2c - Merged some missing changes from fdisk/fdisk.c.
- Remove ifdef PC98.
- Make WARN=4 clean.
2005-05-01 10:08:35 +00:00
nyan
8b70a472b7 cosmetic changes. 2005-05-01 09:50:02 +00:00
nyan
3821c73e52 Add some convenience defines. 2005-05-01 09:48:24 +00:00
nyan
2df29485d2 Fix signed vs unsigned warning. 2005-05-01 09:44:50 +00:00
sos
24379654b5 Go back to the old way of finding the Promise metadata, the new way was
too simple causing older controllers metadata to get lost.
2005-05-01 08:45:12 +00:00
netchild
f9769978fd - document powerd_flags too
- add a reference to powerd(8)

Approved by:	mentor (joerg)
2005-05-01 08:34:01 +00:00
matusita
2393b95e6d Add ntp.jst.mfeed.ad.jp and ntp1.v6.mfeed.ad.jp (IPv6 only) to
the NTP server list.

The servers are by Internet Multifeed Co., and connected to their
IX service JPNAP.  It would be a good NTP server for machines in Japan.

See also http://www.jst.mfeed.ad.jp/ for more details (Japanese only).

Reviewed by:	nork
2005-05-01 08:19:54 +00:00
ume
f2cd3c4522 don't see RES_USE_INET6 when called from getipnodeby*(). 2005-05-01 07:39:45 +00:00
nyan
265dafffdb Merged more changes from fdisk/fdisk.c. 2005-05-01 05:04:05 +00:00
nyan
6bab9dd622 Use NDOSPART macro instead of a magic number. 2005-05-01 05:01:55 +00:00
nyan
76aec8a6fe Merged from src/sbin/fdisk/fdisk.c revision 1.77. 2005-05-01 04:14:01 +00:00
nyan
19d5f536ec MFi386: revision 1.1198 (add KDB_STOP_NMI option). 2005-05-01 04:00:12 +00:00
nyan
ac2a8617d0 MFi386: revision 1.220 (add KDB_STOP_NMI option). 2005-05-01 03:59:25 +00:00
sam
bb48409bdc update for recent api changes 2005-05-01 02:12:44 +00:00
peter
2a4091f4b2 Turn on libobjc.so for all platforms on -current. It didn't work back
in 1996.
2005-05-01 01:59:48 +00:00
jeff
b4512cf054 - Remove spls and comments relating to them. 2005-05-01 01:01:17 +00:00
jeff
dd8edfa556 - Remove an old splcam hack. 2005-05-01 00:59:55 +00:00
jeff
92cac015b6 - Remove unnecessary spls. 2005-05-01 00:59:34 +00:00
jeff
ebd510d9de - Return EACCES if we're trying to exec on a vp with no object.
Errno supplied by:	cperciva
2005-05-01 00:58:19 +00:00
jeff
ec01a1292b - In devfs_open() and devfs_close() grab Giant if the driver sets NEEDGIANT.
We still have to DROP_GIANT and PICKUP_GIANT when NEEDGIANT is not set
   because vfs is still sometime entered with Giant held.
2005-05-01 00:56:34 +00:00
sam
224d394b36 o enable shutdown of taskqueue threads; the thread servicing the queue checks
a new entry in the taskqueue struct each time it wakes up to see if it
  should terminate
o adjust TASKQUEUE_DEFINE_THREAD & co. to record the thread/proc identity for
  the shutdown rendezvous
o replace wakeup after adding a task to a queue with wakeup_one; this helps
  queues where multiple threads are used to service tasks (e.g. acpi)
o remove NULL check of tq_enqueue method; it should never be NULL

Reviewed by:	dfr, njl
2005-05-01 00:38:11 +00:00
ume
98aaf9122a oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped
IPv6 address when RES_USE_INET6 was set, according to RFC 2133
section 6.2.
2005-04-30 20:07:01 +00:00
dwhite
72545a529a Implement an alternate method to stop CPUs when entering DDB. Normally we use
a regular IPI vector, but this vector is blocked when interrupts are disabled.
With "options KDB_STOP_NMI" and debug.kdb.stop_cpus_with_nmi set, KDB will
send an NMI to each CPU instead. The code also has a context-stuffing
feature which helps ddb extract the state of processes running on the
stopped CPUs.

KDB_STOP_NMI is only useful with SMP and complains if SMP is not defined.
This feature only applies to i386 and amd64 at the moment, but could be
used on other architectures with the appropriate MD bits.

Submitted by:	ups
2005-04-30 20:01:00 +00:00
ume
2a7fd02aa3 handling RES_USE_INET6 better. 2005-04-30 19:28:31 +00:00
ume
e2c3e9cc42 _ht_gethostbyaddr didn't handle RES_USE_INET6 correctly. 2005-04-30 18:46:27 +00:00
ume
048aaedcb4 _gethostbynisname() didn't support RES_USE_INET6. 2005-04-30 18:37:35 +00:00
des
ac8a8b659d Reduce diffs against actual production configuration. 2005-04-30 18:26:05 +00:00
des
50cdaccf19 Remove a line which merely echoed the builtin default. 2005-04-30 18:25:01 +00:00
des
ea76ebf316 Split the 'clean' command into 'cleansrc', 'cleanobj' and 'cleanroot'.
Specifying 'clean' is equivalent to specifying all three.
2005-04-30 18:22:12 +00:00
des
6355d30ded Add 'cleanobj' to the default target list. 2005-04-30 17:57:11 +00:00
ume
2621c37e55 _ht_gethostbyname didn't handle RES_USE_INET6 correctly. 2005-04-30 17:01:18 +00:00
des
7216d53d57 Fix an old pasto. 2005-04-30 16:27:20 +00:00
sos
669c1ed213 Take newbusification one step further, ie use the device_t more consequently
all way through the code down the layers, instead of the mix'n'match that
resulted from the conversion done earlier.

Sponsored by:	pair.com
2005-04-30 16:22:07 +00:00
imp
1f512288f6 Add some subversive code to cleandir: remove the sbin/ipf tree
entirely to fix the tinderbox machine.  This change will be reverted
once the tinderboxen are tindering again.
2005-04-30 16:09:23 +00:00
jeff
fbfb648540 - Remove long dead splbio() calls and comments relating to the old
synchronization mechanism.
2005-04-30 12:18:50 +00:00
jeff
319d584a13 - Don't acquire Giant before calling b_biodone, individual consumers are
now required to do so themselves.

Sponsored by:	Isilon Systems, Inc.
2005-04-30 11:44:22 +00:00
jeff
291f7a305d - Use bdone() directly instead of calling it indirectly through
ffs_rawreaddone().

Sponsored by:	Isilon Systems, Inc.
2005-04-30 11:28:19 +00:00
jeff
e141cf91dd - Acquire Giant in AIO's iodone routine. VFS will no longer do it for us
soon.

Sponsored by:	Isilon Systems, Inc.
2005-04-30 11:27:31 +00:00
jeff
95751d9686 - Call VM_LOCK_GIANT in cluster_callback() to protect some pmap calls. VFS
will not be acquiring Giant before calling this function anymore.

Sponsored by:	Isilon Systems, Inc.
2005-04-30 11:26:58 +00:00
jeff
d5e921c862 - VM_LOCK_GIANT in the swap pager's iodone routine as VFS will soon call it
without Giant.

Sponsored by:	Isilon Systems, Inc.
2005-04-30 11:25:49 +00:00