]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoRemove definition of the GCC3 variable. It was introduced in rev.
Marcel Moolenaar [Sat, 2 Jun 2007 21:30:39 +0000 (21:30 +0000)]
Remove definition of the GCC3 variable. It was introduced in rev.
1.50 to help out with the GCC 2 to GCC 3 transition and it became
obsolete when C flags compatible with GCC 3.x became the default.
With GCC 4 in the tree this variable (i.e. GCC3) is beyond bogus
because it causes confusion when looking for the newly introduced
WITH_GCC3 option that helps the GCC 3 -> GCC 4 bump.

17 years agoAdd support for Asus A3N laptops.
Philip Paeps [Sat, 2 Jun 2007 21:10:01 +0000 (21:10 +0000)]
Add support for Asus A3N laptops.

Submitted by: Holger Jorra <holger_jorra -at- gmx.net>
MFC after: 1 day

17 years agoCorrect the referenced securelevel document, it's now securelevel 7.
Remko Lodder [Sat, 2 Jun 2007 20:15:59 +0000 (20:15 +0000)]
Correct the referenced securelevel document, it's now securelevel 7.

Pointed out by: ru

17 years agoFix a bug introduced in the per-CPU Cx states commit. The wrong loop var
Nate Lawson [Sat, 2 Jun 2007 20:01:40 +0000 (20:01 +0000)]
Fix a bug introduced in the per-CPU Cx states commit.  The wrong loop var
(j/i) was being used and it was being incremented, not decremented as before.
Factor out this code into a common function and call it from both the common
and per-CPU case.

MFC after: 1 day

17 years agoMute the main audio during reboot/shutdown. This prevents a burst of static
Nate Lawson [Sat, 2 Jun 2007 19:37:27 +0000 (19:37 +0000)]
Mute the main audio during reboot/shutdown.  This prevents a burst of static
on the speakers of my Panasonic Y4.  It might make sense to do this in the
mixer rc.d script as well.

17 years agoRemove a file that should have been removed as part of the hardware notes
Bruce A. Mah [Sat, 2 Jun 2007 19:32:19 +0000 (19:32 +0000)]
Remove a file that should have been removed as part of the hardware notes
reorganization.

17 years agoAcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.
Nate Lawson [Sat, 2 Jun 2007 19:21:40 +0000 (19:21 +0000)]
AcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.
The global lock is a memory region shared with the BIOS and thus
has some strange behavior like the fact that the sleep is 1 ms max.
We use standard mutexes to synchronize with the SCI so acquiring
the global lock after locking the mutex resulted in a witness
warning.

To deal with this for now, acquire the global lock before all other
locks, similar to Giant.  This should fix the witness "sleeping
with mutex held" issue on boot that occurred after the last ACPI-CA
import.  In the future, we hope to move to the new mutex interface
in ACPI-CA instead of the pseudo-semaphore version we have now.

Reviewed by:    jkim

17 years agoDon't lie about saved reports.
Philip Paeps [Sat, 2 Jun 2007 18:06:08 +0000 (18:06 +0000)]
Don't lie about saved reports.

PR: gnu/89777
Submitted by: edwin
MFC after: 1 day

17 years agoRemove (accidentally) included types.h .
Ariff Abdullah [Sat, 2 Jun 2007 17:36:11 +0000 (17:36 +0000)]
Remove (accidentally) included types.h .

17 years agoUse standard pcm_get/setflags() rather than dereferencing softc while
Ariff Abdullah [Sat, 2 Jun 2007 17:28:26 +0000 (17:28 +0000)]
Use standard pcm_get/setflags() rather than dereferencing softc while
enabling SD_F_SOFTPCMVOL or any flags.

17 years agoSeparate license from comments.
Joel Dahl [Sat, 2 Jun 2007 13:07:44 +0000 (13:07 +0000)]
Separate license from comments.

Approved by: ariff

17 years ago- fix initial pcb vrf setting when the initial vrf is not the
Randall Stewart [Sat, 2 Jun 2007 11:05:08 +0000 (11:05 +0000)]
- fix initial pcb vrf setting when the initial vrf is not the
  default_vrf_id
- Missing lock/unlock of inp added as well in the v6 side.
- IFN hash table moves to sctppcbinfo since indexes are
  unique across systems (including different VRFs) this makes it easier
  to do ifn lookups.

17 years agoClean up more obsolete shared threading libraries:
Ruslan Ermilov [Sat, 2 Jun 2007 10:26:36 +0000 (10:26 +0000)]
Clean up more obsolete shared threading libraries:

- /lib/libpthread.so.2 was made obsolete by renaming libpthread to
  libkse (!sparc64, 2007/05/13).
- /usr/lib/libthr.so.2 was made obsolete by moving the library to
  /lib (!sparc64, 2007/05/13).
- /lib/libkse.so.2 existed for a few days before the version bump
  for those who had libpthread as their default threading library.

Coding this "right" in ObsoleteFiles.inc is nearly impossible, so
just add the missing obsolete libraries to the version bump block.

Submitted by: deischen, ru

17 years agoNew release notes:
Christian Brueffer [Sat, 2 Jun 2007 09:24:39 +0000 (09:24 +0000)]
New release notes:
- GCC SSP enabled by default
- X11BASE change
- touch -A
- fwip(4) and dcons(4) in GENERIC
- FireWire/dcons support in the i386/amd64 loader

Modified release notes:
- MFCs noted: newly supported ftpd RFCs, lagg(4), mpt(4) changes,
  snd_atiixp(4) suspend/resume
- sa(8) entry moved to the correct place
- xorg 7.2 update

17 years agofixed memory leak for IPv6 multicast membership information associated
JINMEI Tatuya [Sat, 2 Jun 2007 08:02:36 +0000 (08:02 +0000)]
fixed memory leak for IPv6 multicast membership information associated
with interface addresses.

Approved by: gnn (mentor)
MFC after: 1 week

17 years agosimplified the fix in rev. 1.69 by replacing RT_REMREF+RT_UNLOCK with
JINMEI Tatuya [Sat, 2 Jun 2007 07:27:02 +0000 (07:27 +0000)]
simplified the fix in rev. 1.69 by replacing RT_REMREF+RT_UNLOCK with
RTFREE_LOCKED.

Approved by: gnn (mentor)

17 years agoFinish making resolv ordering deterministic by REQUIRE'ing it here.
Doug Barton [Sat, 2 Jun 2007 05:25:19 +0000 (05:25 +0000)]
Finish making resolv ordering deterministic by REQUIRE'ing it here.

17 years agoAdd REQUIRE netif to make ordering more deterministic, and to make sure
Doug Barton [Sat, 2 Jun 2007 05:24:39 +0000 (05:24 +0000)]
Add REQUIRE netif to make ordering more deterministic, and to make sure
we have a fighting chance of having useful stuff from DHCP.

Tighten up the code a little, and fix whitespace issues.

17 years agoremove pointless recursive acquisition of port lock in cxgb_init_locked
Kip Macy [Sat, 2 Jun 2007 03:02:36 +0000 (03:02 +0000)]
remove pointless recursive acquisition of port lock in cxgb_init_locked

17 years agoClean up audit comments--formatting, spelling, etc.
Robert Watson [Fri, 1 Jun 2007 21:58:59 +0000 (21:58 +0000)]
Clean up audit comments--formatting, spelling, etc.

17 years agoI understood the MLINK part incorrectly, it should be the other way around
Remko Lodder [Fri, 1 Jun 2007 21:48:07 +0000 (21:48 +0000)]
I understood the MLINK part incorrectly, it should be the other way around
also remove the init mlink to securelevel.

Discussed with and sharing pointyhat with: brueffer

17 years agoRevert my previous change, add an MLINK from securelevel.7 to security.7
Remko Lodder [Fri, 1 Jun 2007 21:33:21 +0000 (21:33 +0000)]
Revert my previous change, add an MLINK from securelevel.7 to security.7

Discussed with: brueffer

17 years agoChange securelevel(7) to security(7). Yes i am aware
Remko Lodder [Fri, 1 Jun 2007 21:09:11 +0000 (21:09 +0000)]
Change securelevel(7) to security(7). Yes i am aware
that this is within the contrib directory.

PR: docs/104402
Submitted by: Dr. Markus Waldeck <waldeck at gmx dot de>

Discussed with: mlaier

17 years agoMore obsolete stuff from doing a 6.2 -> 7.0 upgrade.
Ruslan Ermilov [Fri, 1 Jun 2007 21:00:27 +0000 (21:00 +0000)]
More obsolete stuff from doing a 6.2 -> 7.0 upgrade.

17 years ago- Added more obsolete stuff.
Ruslan Ermilov [Fri, 1 Jun 2007 20:28:23 +0000 (20:28 +0000)]
- Added more obsolete stuff.
- Undelete archive_entry_set_dev{major,minor}.3.

17 years agos/tabs/spaces/
Ruslan Ermilov [Fri, 1 Jun 2007 18:53:36 +0000 (18:53 +0000)]
s/tabs/spaces/

17 years agoRevert previous, part of NFS that I didn't know about.
Tom Rhodes [Fri, 1 Jun 2007 17:06:46 +0000 (17:06 +0000)]
Revert previous, part of NFS that I didn't know about.

17 years agoBreak long line
Pav Lucistnik [Fri, 1 Jun 2007 15:32:23 +0000 (15:32 +0000)]
Break long line

Submitted by: ru

17 years agoAdd bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
Pav Lucistnik [Fri, 1 Jun 2007 15:17:51 +0000 (15:17 +0000)]
Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
OPTIONS resolving. This will allow us to load bsd.port.mk in port Makefiles in
three steps (options, pre, post), allowing us to manipulate USE_* flags
conditionally on OPTIONS values.

With hat: portmgr
Reviewed by: ru
MFC after: 1 week

17 years agoGarbage collect msdosfs_fhtovp; it appears unused and I have been using
Tom Rhodes [Fri, 1 Jun 2007 14:57:19 +0000 (14:57 +0000)]
Garbage collect msdosfs_fhtovp; it appears unused and I have been using
MSDOSFS without this function and problems for the last month.

17 years agoChange the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
Konstantin Belousov [Fri, 1 Jun 2007 14:33:11 +0000 (14:33 +0000)]
Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
argument from being file descriptor index into the pointer to struct file:
part 2. Convert calls missed in the first big commit.

Noted by: rwatson
Pointy hat to: kib

17 years agoRemove AUDIT_PRINTF() debugging statements and definition; clean up or
Robert Watson [Fri, 1 Jun 2007 13:53:37 +0000 (13:53 +0000)]
Remove AUDIT_PRINTF() debugging statements and definition; clean up or
remove associated comments.

Slip audit_file_rotate_wait assignment in audit_rotate_vnode() before
the drop of the global audit mutex.

Obtained from: TrustedBSD Project

17 years ago- Take out the broken table-id concept. Panda Routers have a M-VRF
Randall Stewart [Fri, 1 Jun 2007 11:19:54 +0000 (11:19 +0000)]
- Take out the broken table-id concept. Panda Routers have a M-VRF
  concept that is NOT well thought out for a multi-homed transport
  protocol. So the useless table-id entries passed around need to
  be removed.
- Add a event timer for the zero copy api.
- Fix a bug in sctp_timer.c when searching for an alternate
  with the largest ssthresh (the compare was wrong).

17 years agoPartially back out rev. 1.127, to restore broken functionality. This
Gleb Smirnoff [Fri, 1 Jun 2007 09:20:57 +0000 (09:20 +0000)]
Partially back out rev. 1.127, to restore broken functionality. This
should be redesigned, but better enter RELENG_7 with a working ngctl(8).

Agreed by: julian

17 years agoChange directory back to ${.CURDIR} when remaking Makefiles.
Max Khon [Fri, 1 Jun 2007 04:20:19 +0000 (04:20 +0000)]
Change directory back to ${.CURDIR} when remaking Makefiles.

Pointed out by: ru

17 years ago - Work-around the already partially broken rusage support in kvm by
Jeff Roberson [Fri, 1 Jun 2007 04:14:57 +0000 (04:14 +0000)]
 - Work-around the already partially broken rusage support in kvm by
   completely disabling it until a full solution is agreed upon.

Pointy hat to: me

17 years agoMarkup fixes.
Xin LI [Fri, 1 Jun 2007 03:11:47 +0000 (03:11 +0000)]
Markup fixes.

17 years agoAdd on/off controls for VLAN_MTU and VLAN_HWTAGGING to bge(4).
Yaroslav Tykhiy [Fri, 1 Jun 2007 02:02:39 +0000 (02:02 +0000)]
Add on/off controls for VLAN_MTU and VLAN_HWTAGGING to bge(4).

17 years agoForced commit to describe changes in the last revision.
Jeff Roberson [Fri, 1 Jun 2007 01:20:11 +0000 (01:20 +0000)]
Forced commit to describe changes in the last revision.

 - Move cpu limit handling to a callout that runs once per-second and sums
   up all threads tick times to check for violations.  This removes all code
   from mi_switch() that touches the proc.  This also cleans up ast() a bit
   by removing one large case.

17 years ago - Move rusage from being per-process in struct pstats to per-thread in
Jeff Roberson [Fri, 1 Jun 2007 01:12:45 +0000 (01:12 +0000)]
 - Move rusage from being per-process in struct pstats to per-thread in
   td_ru.  This removes the requirement for per-process synchronization in
   statclock() and mi_switch().  This was previously supported by
   sched_lock which is going away.  All modifications to rusage are now
   done in the context of the owning thread.  reads proceed without locks.
 - Aggregate exiting threads rusage in thread_exit() such that the exiting
   thread's rusage is not lost.
 - Provide a new routine, rufetch() to fetch an aggregate of all rusage
   structures from all threads in a process.  This routine must be used
   in any place requiring a rusage from a process prior to it's exit.  The
   exited process's rusage is still available via p_ru.
 - Aggregate tick statistics only on demand via rufetch() or when a thread
   exits.  Tick statistics are kept in the thread and protected by sched_lock
   until it exits.

Initial patch by: attilio
Reviewed by: attilio, bde (some objections), arch (mostly silent)

17 years agoFix a breakage with "MODULES_WITH_WORLD=true make buildworld".
Hidetoshi Shimokawa [Fri, 1 Jun 2007 00:23:34 +0000 (00:23 +0000)]
Fix a breakage with "MODULES_WITH_WORLD=true make buildworld".

PR: kern/11320

17 years agoCouple of the fixes needed revising. The ICH8 autoneg was still broken,
Jack F Vogel [Thu, 31 May 2007 23:36:21 +0000 (23:36 +0000)]
Couple of the fixes needed revising. The ICH8 autoneg was still broken,
this change both simplifies the code and plugs a hole where the devise
was reset without keeping the management controller at bay :) Second,
the 82571 LAA reset problem was incomplete, this addition is necessary.
Just one of those days :)

17 years agoRevert VMCNT_* operations introduction.
Attilio Rao [Thu, 31 May 2007 22:52:15 +0000 (22:52 +0000)]
Revert VMCNT_* operations introduction.
Probabilly, a general approach is not the better solution here, so we should
solve the sched_lock protection problems separately.

Requested by: alc
Approved by: jeff (mentor)

17 years agoChanges to my local build lead to my confusion - revert the last change, but
Tom Rhodes [Thu, 31 May 2007 20:31:27 +0000 (20:31 +0000)]
Changes to my local build lead to my confusion - revert the last change, but
reword the original text a bit.  Sorry for the churn.

Quick jump: thompsa

17 years agoDocument recent improvements to the sound infrastructure (virtual recording
Joel Dahl [Thu, 31 May 2007 20:26:39 +0000 (20:26 +0000)]
Document recent improvements to the sound infrastructure (virtual recording
channels, changed sysctl's and device nodes etc).

Reviewed by: ariff

17 years agoCorrect two small typos
Doug Barton [Thu, 31 May 2007 20:16:46 +0000 (20:16 +0000)]
Correct two small typos

17 years agoThe newfs_msdos utility does not store the boot signature in the
Tom Rhodes [Thu, 31 May 2007 20:06:46 +0000 (20:06 +0000)]
The newfs_msdos utility does not store the boot signature in the
correct place on large sector disks.  The boot signature should be at
offset 0x1fe in the BPB; newfs_msdos currently stores it 2 bytes from
the end of the sector.

Taken from: NetBSD

17 years agoThere is no pf module yet.
Tom Rhodes [Thu, 31 May 2007 20:05:04 +0000 (20:05 +0000)]
There is no pf module yet.

17 years agoTake back the name 'bridge' now that we are the one and only. This can be
Andrew Thompson [Thu, 31 May 2007 19:47:39 +0000 (19:47 +0000)]
Take back the name 'bridge' now that we are the one and only. This can be
phased back in over the next few major releases. if_bridge is still the
documented device name so nothing has changed yet.

17 years agoMake the interrupt handler wrapper capable of correctly support filter+ithread handler.
Paolo Pisati [Thu, 31 May 2007 19:29:20 +0000 (19:29 +0000)]
Make the interrupt handler wrapper capable of correctly support filter+ithread handler.

Discussed and reviewed with: bsdimp, simokawa

17 years agoIn some particular cases (like in pccard and pccbb), the real device
Paolo Pisati [Thu, 31 May 2007 19:25:35 +0000 (19:25 +0000)]
In some particular cases (like in pccard and pccbb), the real device
handler is wrapped in a couple of functions - a filter wrapper and an
ithread wrapper. In this case (and just in this case), the filter
wrapper could ask the system to schedule the ithread and mask the
interrupt source if the wrapped handler is composed of just an ithread
handler: modify the "old" interrupt code to make it support
this situation, while the "new" interrupt code is already ok.

Discussed with: jhb

17 years agoLast major commit and updates for RELENG_7:
Ariff Abdullah [Thu, 31 May 2007 18:43:33 +0000 (18:43 +0000)]
Last major commit and updates for RELENG_7:

- Rework the entire pcm_channel structure:
  * Remove rarely used link placeholder, instead, make each pcm_channel
    as head/link of each own/each other. Unlock - Lock sequence due to
    sleep malloc has been reduced.
  * Implement "busy" queue which will contain list of busy/active
    channels. This greatly reduce locking contention for example while
    servicing interrupt for hardware with many channels or when virtual
    channels reach its 256 peak channels.

- So I heard you like v chan ... O RLY?
  Welcome to Virtual **Record** Channels (vrec, rec vchans, vchans for
  recording, Rec-Chan, you decide), the ultimate solutions for your
  nagging O_RDWR full-duplex wannabe (note: flash plugins) monopolizing
  single record channel causing EBUSY.  Vrec works exactly like Vchans
  (or, should I rename it to "Vplay" :) , except that it operates on the
  opposite direction (recording). Up to 256 vrecs (like vchans) are
  possible.

  Notes:
   * Relocate dev.pcm.%d.{vchans,vchanformat,vchanrate} to each of its
     respective node/direction:
       dev.pcm.%d.play.* for "play"   (cdev = dsp%d.vp%d)
       dev.pcm.%d.rec.*  for "record" (cdev = dsp%d.vr%d)
   * Don't expect that it will magically give you ability to split
     "recording source" (eg: 1 channel for cdrom, 1 channel for mic,
     etc). Just admit that you only have a *single* recording source /
     channel. Please bug your hardware vendor instead :)

- Bump maxautovchans from 4 to 16. For a full-fledged multimedia
  desktop/workstation with too many soundservers installed (esound,
  artsd, jackd, pulse/polypaudio, ding-dong pling plong mudkip fuh fuh,
  etc), 4 seems inadequate. There will be no memory penalty here, since
  virtual channels are allocate only by demand.

- Nuke/Rework the entire statically created cdev entries. Everything is
  clonable through snd own clone manager which designed to withstand many
  kind of abusive devfs droids such as:
      * while : ; do /bin/test -e /dev/dsp ; done
      * jot 16777216 0 | while read x ; do ls /dev/dsp0.$x ; done
      * hundreds (could be thousands) concurrent threads/process opening
"/dev/dsp" (previously, this might result EBUSY even with just
3 contesting threads/procs).
  o Reusable clone objects (instead of creating new one like there's no
    tomorrow) after certain expiration deadline. The clone allocator will
    decide whether to reuse, share, or creating new clone.
  o Automatic garbage collector.

- Dynamic unit magic allocator. Maximum attached soundcards can be tuned
  using tunable "hw.snd.maxunit" (Default to 512). Minimum is 16, and
  maximum is 2048.

- ..other fixes, mostly related to concurrency issues.

joel@ will do the manpage updates on sound(4).

Have fun.

17 years agoLast major commit and updates for RELENG_7:
Ariff Abdullah [Thu, 31 May 2007 18:35:24 +0000 (18:35 +0000)]
Last major commit and updates for RELENG_7:

Add few new files. The _real_ commit will follow shortly, so fasten
up your seatbelts, sit back and enjoy the ride..

17 years agoInstall omp.h file.
Alexander Kabaev [Thu, 31 May 2007 13:21:30 +0000 (13:21 +0000)]
Install omp.h file.

Submitted by: Pieter de Goeje (pieter at degoejes dot nl)

17 years agoExport quad symbols. They were previously commented out. These symbols
Daniel Eischen [Thu, 31 May 2007 13:07:37 +0000 (13:07 +0000)]
Export quad symbols.  They were previously commented out.  These symbols
really shouldn't be exported since they should be pulled from libgcc, but
the build of some applications is broken and they expect to see them in
libc.  glibc exports these symbols, although Solaris doesn't appear to,
so export them for compatibility's sake.

After discussion with: kan

17 years agoSome libc symbol map cleanups.
Daniel Eischen [Thu, 31 May 2007 13:01:34 +0000 (13:01 +0000)]
Some libc symbol map cleanups.

  net: endhostdnsent is named _endhostdnsent and is
  private to netdb family of functions.

  posix1e: acl_size.c has been never compiled in,
  so there's no "acl_size".

  rpc: "getnetid" is a static function.

  stdtime: "gtime" is #ifdef'ed out in the source.

  some symbols are specific only to some architectures,
  e.g., ___tls_get_addr is only defined on i386.

  __htonl, __htons, __ntohl and __ntohs are no longer
  functions, they are now (internal) defines in
  <machine/endian.h>.

Submitted by: ru

17 years ago(1) In tcp_usrclosed(), tp can never become NULL, so don't test for NULL
Robert Watson [Thu, 31 May 2007 12:06:02 +0000 (12:06 +0000)]
(1) In tcp_usrclosed(), tp can never become NULL, so don't test for NULL
    before handling the socket disconnection case.

(2) Clean up surrounding comments and formatting.

Found with: Coverity Prevent(tm) (1)
CID: 2203

17 years agoRevert UF_OPENING workaround for CURRENT.
Konstantin Belousov [Thu, 31 May 2007 11:51:53 +0000 (11:51 +0000)]
Revert UF_OPENING workaround for CURRENT.
Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
argument from being file descriptor index into the pointer to struct file.

Proposed and reviewed by: jhb
Reviewed by: daichi (unionfs)
Approved by: re (kensmith)

17 years agoNow that sx(9) locks support an interruptible lock acquire primitive,
Robert Watson [Thu, 31 May 2007 11:51:22 +0000 (11:51 +0000)]
Now that sx(9) locks support an interruptible lock acquire primitive,
properly observe the SB_NOINTR flag in sblock.  This restores the
required behavior that lock acquisition be interruptible on the socket
buffer I/O serialization lock to allow threads waiting for I/O to be
signaled even if they aren't the thread currently holding the I/O lock.
With this change, the sblock regression test is again passed.

Reported by: alfred
sx(9) handiwork: attilio

17 years agoAdd CPUID2_PDCM
Dag-Erling Smørgrav [Thu, 31 May 2007 11:26:45 +0000 (11:26 +0000)]
Add CPUID2_PDCM

Requested by: jkim
MFC after: 3 days

17 years agoAdd functions sx_xlock_sig() and sx_slock_sig().
Attilio Rao [Thu, 31 May 2007 09:14:48 +0000 (09:14 +0000)]
Add functions sx_xlock_sig() and sx_slock_sig().
These functions are intended to do the same actions of sx_xlock() and
sx_slock() but with the difference to perform an interruptible sleep, so
that sleep can be interrupted by external events.
In order to support these new featueres, some code renstruction is needed,
but external API won't be affected at all.

Note: use "void" cast for "int" returning functions in order to avoid tools
like Coverity prevents to whine.

Requested by: rwatson
Tested by: rwatson
Reviewed by: jhb
Approved by: jeff (mentor)

17 years agoUse ACPICA defined value for notification rather than locally defined one.
Takanori Watanabe [Thu, 31 May 2007 08:49:51 +0000 (08:49 +0000)]
Use ACPICA defined value for notification rather than locally defined one.

17 years agoDiscard backlog on GDB port when connected.
Hidetoshi Shimokawa [Thu, 31 May 2007 04:55:05 +0000 (04:55 +0000)]
Discard backlog on GDB port when connected.

MFC after: 3 days

17 years agoAdd information for FreeBSD 1.0.2 from November 1993. I have a
Warner Losh [Thu, 31 May 2007 03:40:29 +0000 (03:40 +0000)]
Add information for FreeBSD 1.0.2 from November 1993.  I have a
January 1994 Trans-Ameritech Release 1 CD-ROM that has this directory
named "update_bsd_1.0.2" dated November 14, 1993.

I didn't add it into the main-line sequence of releases because that
would disrupt things too much...

17 years agoRemove "acpi_bus_number: can't get _ADR" message. It usually appears as
Nate Lawson [Thu, 31 May 2007 00:52:32 +0000 (00:52 +0000)]
Remove "acpi_bus_number: can't get _ADR" message.  It usually appears as
we traverse \_SB and \ in the namespace, which won't have _ADR anyway.
Use a proper extern instead of our own private copy.

MFC after: 1 week

17 years agoGiant is special. How do I love thee? Let me count the ways?
Warner Losh [Thu, 31 May 2007 00:05:59 +0000 (00:05 +0000)]
Giant is special.  How do I love thee?  Let me count the ways?

errr, I mean "Enumerate how the giant lock differs from other locks"

Please let me know if I missed any.  Or misrepresented any...

Reviewed by: ssouhlal@

17 years agoA few small but significant fixes:
Jack F Vogel [Wed, 30 May 2007 23:32:21 +0000 (23:32 +0000)]
A few small but significant fixes:
 - Coverity Prevent(tm) CID 1906 a bogus use of bzero where unneeded.
 - ICH8 systems autoneg to 100 rather than 1000, this can also be
   seen in 82573, the logic was backwards.
 - On new 82575 quadports half duplex tx speed is slow... this was due
   to overwriting TCTL reg rather than adding bits.

17 years ago- Fixed (Apple) compiler warnings in sctp_input.c, sctputil.c, sctp_output.c
Randall Stewart [Wed, 30 May 2007 22:34:21 +0000 (22:34 +0000)]
- Fixed (Apple) compiler warnings in sctp_input.c, sctputil.c, sctp_output.c
- Fixed a LOR in handling a cookie. Turns out create lock is applied.
  And if we abort processing, this causes LOR. Changed to force the
  timer to clean up, that way create lock is released.

17 years agoRemove a KASSERT intended to help the developer, the condition is no longer
Andrew Thompson [Wed, 30 May 2007 19:39:55 +0000 (19:39 +0000)]
Remove a KASSERT intended to help the developer, the condition is no longer
valid since the span code was added.

PR: kern/113170
MFC after: 1 week

17 years ago- Fix a memory overwrite when the mapping array
Randall Stewart [Wed, 30 May 2007 17:39:45 +0000 (17:39 +0000)]
-  Fix a memory overwrite when the mapping array
   is expanded, size of expansion was not taken int consideration.
-  Fix so vtag hash is 1 bigger so that it modulo's out
   correctly, avoids a panic when restart with right modulo happens.
-  do not dereference stcb when control->do_not_ref_stcb is set
-  Fix up packet logging to not often use a lock and also to
   add to options.
-  Fix some logging option duplication in the sctputil.h

17 years agoDon't rely on pcm_channel index numbering while doing sequential channel
Ariff Abdullah [Wed, 30 May 2007 16:15:01 +0000 (16:15 +0000)]
Don't rely on pcm_channel index numbering while doing sequential channel
allocation.

17 years agoMFi386: revision 1.653.
Yoshihiro Takahashi [Wed, 30 May 2007 14:36:20 +0000 (14:36 +0000)]
MFi386: revision 1.653.

17 years agoMFi386: PDCM, remove pointless message
Dag-Erling Smørgrav [Wed, 30 May 2007 14:23:26 +0000 (14:23 +0000)]
MFi386: PDCM, remove pointless message

MFC after: 3 days

17 years agoRemove unused !AUDIT audit_proc_*() prototypes: unlike in Mac OS X, we
Robert Watson [Wed, 30 May 2007 11:41:28 +0000 (11:41 +0000)]
Remove unused !AUDIT audit_proc_*() prototypes: unlike in Mac OS X, we
don't define or use these functions if AUDIT isn't configured.

Obtained from: TrustedBSD Project

17 years agoSynchronize white space to congruent user-space code in OpenBSM.
Robert Watson [Wed, 30 May 2007 09:48:37 +0000 (09:48 +0000)]
Synchronize white space to congruent user-space code in OpenBSM.

Obtained from: TrustedBSD Project

17 years agoRemove unused ar_subj_comm field from in-kernel audit record; we never
Robert Watson [Wed, 30 May 2007 09:14:14 +0000 (09:14 +0000)]
Remove unused ar_subj_comm field from in-kernel audit record; we never
export this via BSM, so don't pay space/time cost of maintaining it.

Obtained from: TrustedBSD Project

17 years ago- Sync with ng_bpf.h, rev. 1.7
Gleb Smirnoff [Wed, 30 May 2007 09:05:49 +0000 (09:05 +0000)]
- Sync with ng_bpf.h, rev. 1.7
- Remove extra brace.

Submitted by: Anton Yuzhaninov <citrin rambler-co.ru>

17 years agoConsistent white space after .'s in comments.
Robert Watson [Wed, 30 May 2007 08:39:16 +0000 (08:39 +0000)]
Consistent white space after .'s in comments.

17 years agoRemove the volatile qualifier to apply to fxp_miibus_readreg().
Kevin Lo [Wed, 30 May 2007 03:46:04 +0000 (03:46 +0000)]
Remove the volatile qualifier to apply to fxp_miibus_readreg().

17 years agoBow to incomplete GCC 4. constant propagation optimizations and
Alexander Kabaev [Wed, 30 May 2007 03:03:06 +0000 (03:03 +0000)]
Bow to incomplete GCC 4. constant propagation optimizations and
initialize some of the local variables GCC claims are being used
uninitialized.

17 years agoIn ipsec6_output_tunnel() make sure that the SA contents do not change.
Bjoern A. Zeeb [Tue, 29 May 2007 22:44:24 +0000 (22:44 +0000)]
In ipsec6_output_tunnel() make sure that the SA contents do not change.

The same would apply to ipsec6_output_trans() but there is a larger patch
around which already corrected that case. Do not interfere with that one.

17 years agofix typo: s,applyed,applied,g
Bjoern A. Zeeb [Tue, 29 May 2007 22:34:58 +0000 (22:34 +0000)]
fix typo: s,applyed,applied,g

17 years agoImplement ICMPv6 support in ipsec6_get_ulp().
Bjoern A. Zeeb [Tue, 29 May 2007 22:32:12 +0000 (22:32 +0000)]
Implement ICMPv6 support in ipsec6_get_ulp().
This is needed to make security policies work correctly if ICMPv6 type
and/or code are given. See setkey(8) 'upperspec' para. for details.

17 years agoAdd missing
Bjoern A. Zeeb [Tue, 29 May 2007 22:18:44 +0000 (22:18 +0000)]
Add missing
break;
so when comparing AF_INET6 addresses, scope and ports we do not run into
the default case and return 'no match' instead of 'match'.

17 years agoRemove /usr/X11R6 from the path here too.
Doug Barton [Tue, 29 May 2007 22:07:57 +0000 (22:07 +0000)]
Remove /usr/X11R6 from the path here too.

Reminded by: Niclas Zeising <niclas.zeising@gmail.com>

17 years agoAdd a placeholder document to be filled out by Nate which will describe
Matt Jacob [Tue, 29 May 2007 20:07:22 +0000 (20:07 +0000)]
Add a placeholder document to be filled out by Nate which will describe
in detail the procedure for getting device quirks into the CAM subsystem.

17 years agoAdd more devices from the hps tree. These appear to have come from
Warner Losh [Tue, 29 May 2007 20:05:13 +0000 (20:05 +0000)]
Add more devices from the hps tree.  These appear to have come from
OpenBSD's if_ral.c.

I didn't make the LINKSYS4 -> CISCOLINKSYS name change, nor did I
include the RALINK RT2573 that's supported by the rum(4) driver.  I
didn't merge any code changes either.

17 years agoBack out 1.212 at Nate's request in order to go through the
Matt Jacob [Tue, 29 May 2007 20:04:01 +0000 (20:04 +0000)]
Back out 1.212 at Nate's request in order to go through the
actual formal process he's trying to get established for quirks..

17 years agostyle(9) fixes for sx locks.
Attilio Rao [Tue, 29 May 2007 19:46:37 +0000 (19:46 +0000)]
style(9) fixes for sx locks.

Approved by: jeff (mentor)

17 years agoAdd descriptive comment to PDCM entry.
Dag-Erling Smørgrav [Tue, 29 May 2007 19:39:18 +0000 (19:39 +0000)]
Add descriptive comment to PDCM entry.

17 years agoAdd a small fix for lock profiling in sx locks.
Attilio Rao [Tue, 29 May 2007 19:34:32 +0000 (19:34 +0000)]
Add a small fix for lock profiling in sx locks.
"0" cannot be a correct value since when the function is entered at least
one shared holder must be present and since we want the last one "1" is
the correct value.
Note that lock_profiling for sx locks is far from being perfect.
Expect further fixes for that.

Approved by: jeff (mentor)

17 years agoRemove a pointless bootverbose message.
Dag-Erling Smørgrav [Tue, 29 May 2007 19:25:50 +0000 (19:25 +0000)]
Remove a pointless bootverbose message.

MFC after: 3 days

17 years agoAdd feature name for features2 bit 15.
Dag-Erling Smørgrav [Tue, 29 May 2007 19:21:53 +0000 (19:21 +0000)]
Add feature name for features2 bit 15.

PR: i386/113133
Submitted by: Pankov Pavel <pankov_p@mail.ru>
MFC after: 3 days

17 years agoFix some problems introduced with the last descriptors tables locking
Attilio Rao [Tue, 29 May 2007 18:55:41 +0000 (18:55 +0000)]
Fix some problems introduced with the last descriptors tables locking
patch:
- Do the correct test for ldt allocation
- Drop dt_lock just before to call kmem_free (since it acquires blocking
  locks inside)
- Solve a deadlock with smp_rendezvous() where other CPU will wait
  undefinitively for dt_lock acquisition.
- Add dt_lock in the WITNESS list of spinlocks

While applying these modifies, change the requirement for user_ldt_free()
making that returning without dt_lock held.

Tested by: marcus, tegge
Reviewed by: tegge
Approved by: jeff (mentor)

17 years agoRemove the hardcoded IXP425_UART?_VBASE values in the
John Hay [Tue, 29 May 2007 18:10:42 +0000 (18:10 +0000)]
Remove the hardcoded IXP425_UART?_VBASE values in the
uart_ixp425_probe() and uart_cpu_getdev(). Change
uart_cpu_getdev() to use hints to find the console.

Reviewed by: marcel

17 years agoFix the path to 7.0 online manual pages.
Bruce A. Mah [Tue, 29 May 2007 16:33:24 +0000 (16:33 +0000)]
Fix the path to 7.0 online manual pages.

17 years agoNew release note: SA-07:04.file.
Bruce A. Mah [Tue, 29 May 2007 16:30:29 +0000 (16:30 +0000)]
New release note:  SA-07:04.file.

Update release note:  FILE 4.21.

17 years agoAdd a few sentences about updating. Some older text on this subject
Bruce A. Mah [Tue, 29 May 2007 16:14:06 +0000 (16:14 +0000)]
Add a few sentences about updating.  Some older text on this subject
went away around the time of 5.0, when doing binary upgrades from
within sysinstall (at least from 4.X) was deemed hazardous due to the
huge differences between these two major versions.

It's much less risky now, and it's also high time that we mentioned
freebsd-update(8) too.

17 years agoDrain task q items when transitioning to INIT state; this closes a
Sam Leffler [Tue, 29 May 2007 16:13:59 +0000 (16:13 +0000)]
Drain task q items when transitioning to INIT state; this closes a
race seen on smp laptops when suspending where the rx task can be
entered after the interface is detach'd.

NB: use of taskqueue_drain while holding the softc mutex is problematic

Submitted by: ambrisko
MFC after: 1 month

17 years agoAdd LOADER_FIREWIRE_SUPPORT knob.
Hidetoshi Shimokawa [Tue, 29 May 2007 15:19:55 +0000 (15:19 +0000)]
Add LOADER_FIREWIRE_SUPPORT knob.

Requested by: ru