]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: 1.25
marius [Wed, 9 Jan 2008 21:45:37 +0000 (21:45 +0000)]
MFC: 1.25

Fix some bugs in the FreeBSD 4/5/6 pci(4) IOCTLs compatibility code:
- Use the correct offsets when copying out the results of PCIOCGETCONF_OLD.
  This happened to not affect the 64-bit architectures because there the
  addition of pc_domain to struct pcisel didn't change the overall size of
  struct pci_conf.
- Always copy the name and unit information to conf_old so it's also part
  of the output once this information is cached in dinfo.
- Use the correct type for flags in struct pci_match_conf_old. This
  change is more or less cosmetic though.

Approved by: re (gnn)

16 years agoMFC rev. 1.22
mav [Wed, 9 Jan 2008 19:55:51 +0000 (19:55 +0000)]
MFC rev. 1.22
Increase control channel xmit queue to 128 packets.
Previous value 16 was too small for real LAC as temporal activity
spike cound easily overflow queue demanding tunnel disconnection due
to possible state inconsistency.

Approved by: re (gnn)

16 years agoMFC: More properly handle links who only have 1 valid IRQ in their bitmask.
jhb [Wed, 9 Jan 2008 18:01:51 +0000 (18:01 +0000)]
MFC: More properly handle links who only have 1 valid IRQ in their bitmask.

Approved by: re (kensmith)

16 years agoMFC: Update the shlib version for libgssapi_krb5.
jhb [Wed, 9 Jan 2008 18:00:51 +0000 (18:00 +0000)]
MFC: Update the shlib version for libgssapi_krb5.

Approved by: re (kensmith)

16 years agoMFC rev. 1.89, 1.90:
kib [Wed, 9 Jan 2008 15:30:34 +0000 (15:30 +0000)]
MFC rev. 1.89, 1.90:
Apply the LCONVPATH() to the (old) linux_stat() and linux_lstat() syscalls.

Approved by: re (kensmith)

16 years agoMFC route.c@1.125 and route.h@1.68:
mux [Wed, 9 Jan 2008 15:23:36 +0000 (15:23 +0000)]
MFC route.c@1.125 and route.h@1.68:
  Add a workaround for a deadlock between the rt_setgate() and rt_check()
  functions.  It is easily triggered by running routed, and, I expect, by
  running any other daemon that uses routing sockets.

Approved by:    re (kensmith)

16 years agoMFC rev. 1.392:
kib [Wed, 9 Jan 2008 15:19:22 +0000 (15:19 +0000)]
MFC rev. 1.392:
In the vm_map_stack(), check for the specified stack region wraparound.

Approved by: re (kensmith)

16 years agoMFC important fixes by sos@:
delphij [Wed, 9 Jan 2008 08:55:10 +0000 (08:55 +0000)]
MFC important fixes by sos@:
Implement a workaround of the datacorruption problem on ServerWorks
HT1000 chipsets.  The HT1000 DMA engine seems to not always like 64K
transfers and sometimes barfs data all over memory leading to instant
chrash and burn.

Also fix 48bit adressing issues, apparently newer chips needs 16bit
writes and not the usual fifo thing.

HW donated by: Travis Mikalson at TerraNovaNet
Original work: sos
Approved by: re (kensmith)

16 years agoMFC r1.5:
gabor [Tue, 8 Jan 2008 15:37:57 +0000 (15:37 +0000)]
MFC r1.5:
- This driver will first appear in FreeBSD 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC:
brix [Mon, 7 Jan 2008 23:12:45 +0000 (23:12 +0000)]
MFC:
- src/sys/dev/usb/usb_quirks.c (revision 1.64)
- src/sys/dev/usb/usbdevs (revision 1.333)

Update quirks for the MetaGeek Wi-Spy 1A, 1B and 2.4x.

Approved by: re (kensmith), erwin (mentor)

16 years agoMFC: Fix a typo in regards to the ENOENT error.
jhb [Mon, 7 Jan 2008 21:29:29 +0000 (21:29 +0000)]
MFC: Fix a typo in regards to the ENOENT error.

Approved by: re (hrs)

16 years agoMFC: Use devclass_get_count() instead of devclass_get_maxunit().
jhb [Mon, 7 Jan 2008 21:27:50 +0000 (21:27 +0000)]
MFC: Use devclass_get_count() instead of devclass_get_maxunit().

Approved by: re (hrs)

16 years agoMFC: (revision 1.2)
brix [Mon, 7 Jan 2008 21:15:45 +0000 (21:15 +0000)]
MFC: (revision 1.2)

Add reload functionality.

Approved by: re (kensmith), erwin (mentor)

16 years agoMFC r1.10:
gabor [Mon, 7 Jan 2008 14:53:59 +0000 (14:53 +0000)]
MFC r1.10:
- ipmi(4) appeared in FreeBSD 6.2, not in 6.3

Approved by: re (hrs)

16 years agoMFC: rev 1.4: forward compatability with cvs-1.12 repository
peter [Mon, 7 Jan 2008 09:02:02 +0000 (09:02 +0000)]
MFC: rev 1.4: forward compatability with cvs-1.12 repository

Approved by:  re (kensmith)

16 years agoMFC of tzdata2007k.
edwin [Sun, 6 Jan 2008 07:36:08 +0000 (07:36 +0000)]
MFC of tzdata2007k.

Approved by: re (ken smith)

16 years agoUpdate iso3166 with the data from Newsletter VI-1 2007-09-21:
edwin [Sun, 6 Jan 2008 07:25:43 +0000 (07:25 +0000)]
Update iso3166 with the data from Newsletter VI-1 2007-09-21:
Added SAINT BARTHELEMY (BL) and SAINT MARTIN (MF).

MFC of rev 1.17

Approved by: re (ken smith)

16 years agoOn FreeBSD GCC 4.2.x checks for the existence of pthread_cancel() in
marius [Sat, 5 Jan 2008 22:58:51 +0000 (22:58 +0000)]
On FreeBSD GCC 4.2.x checks for the existence of pthread_cancel() in
order to determine whether a program is running with multithreading
support. This check causes __gthread_active_p() to always return 1
however, regardless of whether the program was actually compiled with
-pthread or not, due to the fact that the FreeBSD libc contains a
pthread_cancel() stub. Fix this by using the __gthread_active_p()
version that GCC uses for Solaris and which actively checks for a
working POSIX threads implementation (if such functions exist) instead
of checking for the mere existence of corresponding functions.

On platforms without TLS support, i.e. on arm and sparc64 due to the
lack of GNU TLS support for these archs in binutils 2.15., the false
positives returned by __gthread_active_p() for non-threaded programs
cause the exception handling implementation GCC uses in this case to
crash. This is because GCC assumes that the POSIX threading functions
actually work when __gthread_active_p() returns 1 while in fact the
corresponding stubs in libc just immediately return.
Given that __gthread_active_p() is also used in a couple of other
places besides exception handling, this bug has great potential to
also cause problems in other areas and on all archs.

This is committed to RELENG_7 directly in order to get a fix into
RELENG_7_0 as soon as possible while allowing to loop the official
fix back into the vendor branch and not taking gthr-posix.h off the
vendor branch in HEAD.

PR: 119289
Reviewed by: obrien (plus style fix)
Approved by: re (kensmith)

16 years agoMFC
gabor [Fri, 4 Jan 2008 13:33:01 +0000 (13:33 +0000)]
MFC
r1.62:
- Document icase variable of make search, which can be used to control
  case-sensitivity
r1.63:
- Document PORT_DBDIR
r1.64:
- Remove incomplete sentence fragment

Approved by: re (hrs)

16 years agoMFC r1.39
gabor [Fri, 4 Jan 2008 13:22:09 +0000 (13:22 +0000)]
MFC r1.39
- Adjust INDEX file name to INDEX-7 so that it matches the major FreeBSD
  version number, as it is named after that

Approved by: re (hrs)

16 years agoMFC r1.7
gabor [Fri, 4 Jan 2008 13:15:02 +0000 (13:15 +0000)]
MFC r1.7
- This driver has already appeared in 6.2

Approved by: re (hrs)

16 years agoMFC r1.4
gabor [Fri, 4 Jan 2008 13:14:32 +0000 (13:14 +0000)]
MFC r1.4
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC r1.13
gabor [Fri, 4 Jan 2008 13:14:06 +0000 (13:14 +0000)]
MFC r1.13
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC r1.3
gabor [Fri, 4 Jan 2008 13:13:44 +0000 (13:13 +0000)]
MFC r1.3
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC r1.9
gabor [Fri, 4 Jan 2008 13:12:19 +0000 (13:12 +0000)]
MFC r1.9
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC r1.2
gabor [Fri, 4 Jan 2008 13:11:59 +0000 (13:11 +0000)]
MFC r1.2
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC r1.8
gabor [Fri, 4 Jan 2008 13:09:04 +0000 (13:09 +0000)]
MFC r1.8
- This driver will first appear in 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC rev. 1.107:
kib [Thu, 3 Jan 2008 12:40:55 +0000 (12:40 +0000)]
MFC rev. 1.107:
Plug the leaks in the present implementation of the linux_openat().

Approved by: re (kensmith)

16 years agoMFC rev. 1.106:
kib [Thu, 3 Jan 2008 12:31:44 +0000 (12:31 +0000)]
MFC rev. 1.106:
Do not allow the SNPSTTY ioctl for the snoop device that has a tty
attached. Otherwise, the snp->snp_tty would be overwritten, while the
tty line discipline still set to the snpdisc. Then snplwrite() causes
panic because ttytosnp() cannot find the snp. (And do it at the proper
place, from rev. 1.107).

MFC rev. 1.107:
The snp_target == NULL implies the snp_tty == NULL. Remove the code
that is put under snp_target == NULL and snp_tty != NULL clause.

In snpclose(), do the snp_detach() before scheduling the snp device
destruction. Otherwise, after the return from snpclose(), the snp
device is already removed from the snp_list, but tty is still in
snooped state. Any attempt to do i/o on such tty cause panic because
ttytosnp() returns NULL.

Approved by: re (kensmith)

16 years agoMFC: Happy New Year
imp [Tue, 1 Jan 2008 09:35:58 +0000 (09:35 +0000)]
MFC: Happy New Year

Approved by: re@

16 years agoMFC: rev 1.149: Fix a broken DIAGNOSTICS/INVARIANTS check to handle a block
obrien [Tue, 1 Jan 2008 03:00:17 +0000 (03:00 +0000)]
MFC: rev 1.149: Fix a broken DIAGNOSTICS/INVARIANTS check to handle a block
range that spans two block maps.

Approved by: re(kensmith)

16 years agoMFC: Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends.
jhb [Mon, 31 Dec 2007 17:39:24 +0000 (17:39 +0000)]
MFC: Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends.

Approved by: re (gnn)

16 years agoMFC r1.8
thompsa [Sat, 29 Dec 2007 17:29:11 +0000 (17:29 +0000)]
MFC r1.8
  Fix a panic where if the mbuf was consumed by the filter for requeueing
  (dummynet), ipsec_filter() would return the empty error code and the ipsec
  code would continue to forward/deference the null mbuf.

Approved by: re (gnn)

16 years agoMFC v1.117:
kensmith [Sat, 29 Dec 2007 06:17:39 +0000 (06:17 +0000)]
MFC v1.117:
> Plug a memory leak.  Once any given package (e.g. perl) was installed
> we would leak a saved screen for every other package we tried to install
> that listed perl as one of its dependencies.  When installing things
> like gnome and kde that wound up being a LOT of leaked memory.

Approved by: re (bmah)

16 years agoMFC v1.78 and v1.79:
kensmith [Sat, 29 Dec 2007 06:14:35 +0000 (06:14 +0000)]
MFC v1.78 and v1.79:
Remove process limits for datasize and stacksize which are unlimited
during a "normal login" (thanks to /etc/login.conf) but not when
sysinstall is running as part of an installation.  Fixups for error
messages and a comment that became untrue.

Approved by:  re (bmah)

16 years ago- sctp-iterator should run at PI_NET priority ...not 0.
rrs [Fri, 28 Dec 2007 12:38:00 +0000 (12:38 +0000)]
- sctp-iterator should run at PI_NET priority ...not 0.

Approved by: re@freebsd.org (gnn)

16 years agoMFC: Update to 2008.
imp [Wed, 26 Dec 2007 16:49:12 +0000 (16:49 +0000)]
MFC: Update to 2008.

Approved by: re@ (kensmith)

16 years agoMFC v1.116:
kensmith [Mon, 24 Dec 2007 06:42:35 +0000 (06:42 +0000)]
MFC v1.116:
> For the INDEX file to be used on disc1 of the 7.0-RELEASE the longest
> "build dependencies" field is 5,108 characters which overflows the
> length of the junk buffer by a teeny bit.  This whole section needs
> much more error checking but for now just completely ignore stuff
> we have no interest in instead of copying it to someplace we don't
> use in the process.

Approved by:    re (bmah)

16 years agoMFC version 1.55, safety belt for the (unlikely) disappearance of
dougb [Mon, 24 Dec 2007 05:51:45 +0000 (05:51 +0000)]
MFC version 1.55, safety belt for the (unlikely) disappearance of
the temproot before a -r run.

Approved by: re (kensmith)

16 years agoMFC: 1.8
marius [Sun, 23 Dec 2007 11:31:24 +0000 (11:31 +0000)]
MFC: 1.8

In openprom_ioctl() ensure appropriate permissions and that data isn't
NULL and doesn't point to a NULL pointer before dereferencing it.

Approved by: re (kensmith)

16 years agoMerge in_pcb.c:1.198 from HEAD to RELENG_7:
rwatson [Sat, 22 Dec 2007 19:04:14 +0000 (19:04 +0000)]
Merge in_pcb.c:1.198 from HEAD to RELENG_7:

  When IPSEC fails to allocate policy state for an inpcb, and MAC is in use,
  free the MAC label on the inpcb before freeing the inpcb.

  Submitted by:   tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by: re (kensmith)

16 years agoBump __FreeBSD_version now that RELENG_7_0 has been created.
kensmith [Sat, 22 Dec 2007 13:48:44 +0000 (13:48 +0000)]
Bump __FreeBSD_version now that RELENG_7_0 has been created.

Approved by: re (implicit)

16 years agoTechnically speaking RELENG_7 becomes 7.0-STABLE once RELENG_7_0 gets
kensmith [Sat, 22 Dec 2007 11:28:40 +0000 (11:28 +0000)]
Technically speaking RELENG_7 becomes 7.0-STABLE once RELENG_7_0 gets
created but that confuses too many people who think that means the
release happened.  So call it PRERELEASE for now.

Approved by: re (implicit)

16 years agoAdjust to shift some packages onto disc3. Strictly speaking not an MFC
kensmith [Sat, 22 Dec 2007 06:32:45 +0000 (06:32 +0000)]
Adjust to shift some packages onto disc3.  Strictly speaking not an MFC
since packages are decided on a release-by-release basis but for now
this is the same package set as for 6.3.

Approved by: re (rwatson)

16 years agoMFC v1.887.2.22:
kensmith [Sat, 22 Dec 2007 06:29:13 +0000 (06:29 +0000)]
MFC v1.887.2.22:

> Add support for disc3.  Depending on architecture the combination of
> kde3 and gnome2 is at least 670Mb which would mean if we stick with
> just disc1/disc2 the only packages we could provide on the iso's
> would be X11, kde3, and gnome2...

Approved by: re (rwatson)

16 years agoMFC v1.253 of dist.c and v1.71 of dist.h:
kensmith [Sat, 22 Dec 2007 06:25:49 +0000 (06:25 +0000)]
MFC v1.253 of dist.c and v1.71 of dist.h:

> A few more adjustments needed because of changes in xorg.  Just installing
> xorg-server doesn't include any video drivers so install xorg-drivers as
> well.  And if font-alias isn't installed the X server won't start,
> complaining it can't find the font "fixed".

Approved by: re (rwatson)

16 years agoMerge mac_posix_sem.c:1.12 from HEAD to RELENG_7:
rwatson [Fri, 21 Dec 2007 14:32:04 +0000 (14:32 +0000)]
Merge mac_posix_sem.c:1.12 from HEAD to RELENG_7:

  Fix a MAC label leak for POSIX semaphores, in which per-policy labels
  would be properly disposed of, but the global label structure for the
  semaphore wouldn't be freed.

  Reported by:    tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by: re (kensmith)

16 years agoMerge in6_pcb.c:1.86 from HEAD to RELENG_7:
rwatson [Fri, 21 Dec 2007 14:25:43 +0000 (14:25 +0000)]
Merge in6_pcb.c:1.86 from HEAD to RELENG_7:

  Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
  destroy call; this transpired because the inpcb alloc path for IPv4/IPv6
  is the same code, but IPv6 has a separate free path.  The results was
  that as new IPv6 TCP connections were created, kernel memory would
  gradually leak.

  Reported by:    tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by: re (kensmith)

16 years agoMFC r1.25
thompsa [Fri, 21 Dec 2007 05:33:48 +0000 (05:33 +0000)]
MFC r1.25
  - Use the macro to check the port status has it will also test if its
    administratively down (!IFF_UP)
  - Use the same parameters to lagg_link_active() to get the backup port as in
    the output path, this didnt actually matter in practice as sc_primary is
    always the first on the port list.

Approved by: re (kensmith)

16 years agoMFC r1.108
thompsa [Fri, 21 Dec 2007 05:29:15 +0000 (05:29 +0000)]
MFC r1.108
 When the bridge has an address and a packet comes in for it then drop it if
 the link has been marked discarding by Spanning Tree.

Approved by: re (kensmith)

16 years agoMFC: Remove redundant checks for msgsnd(3) and msgrcv(3).
jhb [Thu, 20 Dec 2007 19:43:55 +0000 (19:43 +0000)]
MFC: Remove redundant checks for msgsnd(3) and msgrcv(3).

Approved by: re (kensmith)

16 years agoMFC: 1.4: The default of 3 retransmits corresponds to a timeout
ru [Thu, 20 Dec 2007 12:52:06 +0000 (12:52 +0000)]
MFC: 1.4: The default of 3 retransmits corresponds to a timeout
value of 45 seconds, not 15.

Approved by: re (kensmith)

16 years agoMFC: 1.141: Fix bugs in the TCP syncache timeout code.
ru [Thu, 20 Dec 2007 12:34:32 +0000 (12:34 +0000)]
MFC: 1.141: Fix bugs in the TCP syncache timeout code.

Approved by: re (kensmith)

16 years agoMFC:
davidxu [Thu, 20 Dec 2007 07:15:40 +0000 (07:15 +0000)]
MFC:
    Fix LOR of thread lock and umtx's priority propagation mutex due
    to the reworking of scheduler lock.

Approved by: re (kensmith)

16 years agoMFC revision 1.679:
rpaulo [Wed, 19 Dec 2007 20:52:37 +0000 (20:52 +0000)]
MFC revision 1.679:
  Disallow the legacy USB circuit to generate an SMI# via an ICH
  register (MacBooks only).
  This allows MacBooks to boot in SMP mode without any trick and
  solves
  the timer problems with HZ=1000.

Approved by:      re (kensmith), njl (mentor)

16 years agoRegen.
jhb [Wed, 19 Dec 2007 20:48:53 +0000 (20:48 +0000)]
Regen.

Approved by: re (kensmith)

16 years agoMFC revision 1.662 and 1.663:
rpaulo [Wed, 19 Dec 2007 20:47:44 +0000 (20:47 +0000)]
MFC revision 1.662 and 1.663:
  Disallow the legacy USB circuit to generate an SMI# via an ICH
  register (MacBooks only).
  This allows MacBooks to boot in SMP mode without any trick and solves
  the timer problems with HZ=1000.

Approved by:      re (kensmith), njl (mentor)

16 years agoMFC: Add freebsd32 compat wrappers for msgctl() and __semctl().
jhb [Wed, 19 Dec 2007 20:43:41 +0000 (20:43 +0000)]
MFC: Add freebsd32 compat wrappers for msgctl() and __semctl().

Approved by: re (kensmith)

16 years agoMFC: Move several data structure definitions out of freebsd32_misc.c and
jhb [Wed, 19 Dec 2007 20:37:53 +0000 (20:37 +0000)]
MFC: Move several data structure definitions out of freebsd32_misc.c and
into freebsd32.h and freebsd32_ipc.h.

Approved by: re (kensmith)

16 years agoMFC 1.334
guido [Wed, 19 Dec 2007 08:10:30 +0000 (08:10 +0000)]
MFC 1.334

Approved by: re@freebsd.org

16 years agoMFC: rev. 1.22
brueffer [Tue, 18 Dec 2007 20:13:43 +0000 (20:13 +0000)]
MFC: rev. 1.22

Minor language cleanup.

Approved by: re (blanket)

16 years agoMFC: Only pass paths to directories or config files that exist for ldconfig
jhb [Tue, 18 Dec 2007 01:35:26 +0000 (01:35 +0000)]
MFC: Only pass paths to directories or config files that exist for ldconfig
for 32-bit binaries.

Approved by: re (kensmith)

16 years agoMFC: Only attach to a GPT partition if it has the GPT_ENT_TYPE_FREEBS
jhb [Tue, 18 Dec 2007 01:24:27 +0000 (01:24 +0000)]
MFC: Only attach to a GPT partition if it has the GPT_ENT_TYPE_FREEBS
type.

Approved by: re (kensmith)

16 years agoMFC r1.23 - 24
thompsa [Tue, 18 Dec 2007 01:23:14 +0000 (01:23 +0000)]
MFC r1.23 - 24
 - Support monitor mode where the frame is discarded after bpf and stats
   processing.
 - Add myself to the copyright.

Approved by: re (kensmith)

16 years agoMFC: Add several missing comma's in the fancy syscall parsing case.
jhb [Tue, 18 Dec 2007 01:21:49 +0000 (01:21 +0000)]
MFC: Add several missing comma's in the fancy syscall parsing case.

Approved by: re (kensmith)

16 years agoMFC: Update posix_openpt(3) to handle 512 ptys.
jhb [Tue, 18 Dec 2007 00:36:21 +0000 (00:36 +0000)]
MFC: Update posix_openpt(3) to handle 512 ptys.

Approved by: re (gnn)

16 years agoMFC revision 1.57:
davidxu [Mon, 17 Dec 2007 03:05:56 +0000 (03:05 +0000)]
MFC revision 1.57:
unbreaks compilation of some old programs.

Approved by: re (kensmith)

16 years agoMFen:
delphij [Sun, 16 Dec 2007 21:38:28 +0000 (21:38 +0000)]
MFen:
hardware/article.sgml: 1.326 -> 1.326.2.1
relnotes/article.sgml: 1.1068.2.18 -> 1.1068.2.20

Approved by: re (hrs)

16 years agoMFC: wpi(4), hptrr(4).
bmah [Sun, 16 Dec 2007 13:21:08 +0000 (13:21 +0000)]
MFC:  wpi(4), hptrr(4).

src/release/doc/share/misc/dev.archlist.txt 1.101
src/release/doc/en_US.ISO8859-1/hardware/article.sgml 1.328

Approved by: re (implicitly)

16 years agoNew release notes: wpi(4), hptrr(4).
bmah [Sun, 16 Dec 2007 11:45:11 +0000 (11:45 +0000)]
New release notes:  wpi(4), hptrr(4).

Approved by: re (implicitly)

16 years agoModified release note: pf(4), to mention a couple of changes that
bmah [Sun, 16 Dec 2007 02:08:04 +0000 (02:08 +0000)]
Modified release note:  pf(4), to mention a couple of changes that
might be surprising to users who are upgrading.

Approved by: re (implicitly)

16 years ago- Add real sysctl's that change the limits on the number of
rrs [Sat, 15 Dec 2007 23:16:04 +0000 (23:16 +0000)]
- Add real sysctl's that change the limits on the number of
  4k/9k and 16k clusters, the old sysctl's were just empty
  things that just set delusional numbers that had no effect :-(
- Add an initial limit each to be 1/2 of the previous value starting
 at 2k.. i.e. limit for 4k = 1/2 of 2k, limit for 9k = 1/2 4k etc.

Reviewed by: rwatson@freebsd.org
Approved by: re@freebsd.org (gnn)

16 years agoMFC revision 1.46
delphij [Sat, 15 Dec 2007 18:39:07 +0000 (18:39 +0000)]
MFC revision 1.46
date: 2007/11/03 17:33:41;  author: scottl;  state: Exp;  lines: +2 -1
Ever since the module registration system was introduced to this driver,
it's been printing out scary messages about "Unhanded Event Notify Frame"
that are needlessly worrisome to users.  Change this warning to only print
out at an elevated debugging level.

Approved by: re (kensmith)

16 years agoDiff reduction against -HEAD: MFC revision 1.45
delphij [Sat, 15 Dec 2007 18:38:16 +0000 (18:38 +0000)]
Diff reduction against -HEAD: MFC revision 1.45
date: 2007/10/12 06:03:43;  author: kevlo;  state: Exp;  lines: +3 -3
Spelling fix for interupt -> interrupt

Approved by: re (kensmith)

16 years agoMFC:
ariff [Sat, 15 Dec 2007 04:07:25 +0000 (04:07 +0000)]
MFC:

Limit total hardware playback channels to just 1. The reliability of
it's multi DAC / playback channels is not that good. Enabling vchans
make the bug more visible since playback allocation will look for
possible free hardware channels first (i.e: the next DAC, the very first
has been consumed by vchan mixer) which in this case has been proven faulty.

Tested by: Dominic Fandrey <LoN_Kamikaze at gmx dot de>
URL: http://lists.freebsd.org/pipermail/freebsd-stable/2007-December/039022.html
Approved by: re (kensmith)

16 years agoMFC:
ariff [Sat, 15 Dec 2007 04:06:52 +0000 (04:06 +0000)]
MFC:

Disable AC97 microphone channel. Due to the channel allocation priority
that favours true hardware channel, the first instance of recording
request will grab this channel (the first channel is being used as
vchan master). In many cases, it is not really work as intended and give
false impression of broken recording.

PR: kern/118546
Approved by: re (kensmith)

16 years agoMFC:
ariff [Sat, 15 Dec 2007 04:06:12 +0000 (04:06 +0000)]
MFC:

-  nid 28 for Acer @ ALC268 should be identified as analog CD input pin,
   though it doesn't provides proper (sane, valid, usable, etc) analog CD
   playback due to its stripped down nature.
-  Add speaker/headphone controls for HP Compaq DC7700 Small Form Factor PC
   @ ALC262. [1]

   Submitted by:  [1]  Carlos A. M. dos Santos <unixmania at gmail dot com>

Approved by: re (kensmith)

16 years agoAdd the hptrr driver.
scottl [Sat, 15 Dec 2007 02:57:31 +0000 (02:57 +0000)]
Add the hptrr driver.

Submitted by: Highpoint
Approved by: re

16 years agoMFC if_re.c rev 1.99, if_rlreg.h rev 1.69 to RELENG_7
yongari [Sat, 15 Dec 2007 02:57:18 +0000 (02:57 +0000)]
MFC if_re.c rev 1.99, if_rlreg.h rev 1.69 to RELENG_7
  Add another RTL8168 revision 3 which is found on RTL8111-GR Gigabit
  Ethernet Controller.

Requested by: delphij
Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Sat, 15 Dec 2007 00:56:20 +0000 (00:56 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC: rev 1.1.1.20: Do not fold -C*ABS<n> to ABS<-C*n>
obrien [Fri, 14 Dec 2007 23:57:56 +0000 (23:57 +0000)]
MFC: rev 1.1.1.20: Do not fold -C*ABS<n> to ABS<-C*n>
Approved by: re(kensmith)

16 years agoMFC: Update libc's resolver to BIND 9.4.2.
ume [Fri, 14 Dec 2007 20:32:13 +0000 (20:32 +0000)]
MFC: Update libc's resolver to BIND 9.4.2.

lib/libc/nameser/ns_parse.c: 1.1.1.3
lib/libc/resolv/res_data.c: 1.5
lib/libc/resolv/res_init.c: 1.7

Approved by: re (kensmith)

16 years ago- Add init,fini,ctor and dtor events for process and thread
rrs [Fri, 14 Dec 2007 13:41:09 +0000 (13:41 +0000)]
- Add init,fini,ctor and dtor events for process and thread
  creation.
Approved by: re@freebsd.org(gnn)

16 years agoMFC
alc [Thu, 13 Dec 2007 19:34:23 +0000 (19:34 +0000)]
MFC
  Eliminate compilation warnings due to the use of non-static inlines
  through the introduction and use of the __gnu89_inline attribute.

Approved by: re (kensmith)

16 years agoMFC rev. 1.710:
kib [Thu, 13 Dec 2007 11:58:00 +0000 (11:58 +0000)]
MFC rev. 1.710:

Use curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,
when applicable.

Aquire Giant slightly later for vnlru.

In the syncer, aquire the Giant only when a vnode belongs to the
non-MPsafe fs.

In both speedup_syncer() and syncer_shutdown(), remove the syncer thread from
the lbolt sleep queue after the syncer state is modified, not before.

Approved by: re (kensmith)

16 years agoMFC all updates to date, including the merger of the fortunes-o.real
dougb [Thu, 13 Dec 2007 05:45:08 +0000 (05:45 +0000)]
MFC all updates to date, including the merger of the fortunes-o.real
and fortunes2-o files, and the relevant ObsoleteFiles.inc entry.

Approved by: re (kensmith)

16 years agoMFC revision 1.64:
davidxu [Thu, 13 Dec 2007 02:29:17 +0000 (02:29 +0000)]
MFC revision 1.64:
> Enclose all code for macro ENQUEUE_MUTEX in do while statement, and
> add missing brackets.

Approved by: re (kensmith)

16 years agoMFC to RELENG_7:
emaste [Mon, 10 Dec 2007 20:18:19 +0000 (20:18 +0000)]
MFC to RELENG_7:
aac.c:1.124
aacvar.h:1.49

  Allow simultaneous opens of the device for issuing commands to the
  controller.  This is merged from Adaptec driver build 11669.

aac.c:1.125
aac_pci.c:1.66
aacreg.h:1.24

  Add family support to allow the driver to attach to new devices that
  share the same interface.

aac_cam.c:1.30

  Merge from Adaptec a 64 bit fix and a workaround for luns != 0
  returning CAM_SEL_TIMEOUT on SAS controllers, which prevented
  passthrough devices from being created.

Approved by: re (kensmith)

16 years agoMFC rev 1.13:
gabor [Mon, 10 Dec 2007 18:47:05 +0000 (18:47 +0000)]
MFC rev 1.13:

- Add doc/hu_* and doc/mn_* to the refuse examples so that include all
  of the currently used languages

Approved by: re (kensmith)

16 years agoMFC rev 1.14:
gabor [Mon, 10 Dec 2007 18:40:55 +0000 (18:40 +0000)]
MFC rev 1.14:

- Add doc/hu_* and doc/mn_* to the sample refuse file so that it includes all
  of the languages

Approved by: re (kensmith)

16 years agoMFC: 1.3
jkim [Mon, 10 Dec 2007 17:49:16 +0000 (17:49 +0000)]
MFC: 1.3

Teach dhclient(8) about net80211 link (association) status.

Especially it helps ndis(4) where it is used with wpa_supplicant(8)
since 0.5.8 is imported.  Previously ndis_events(8) was used to notify
link status to wpa_supplicant but it is defuct now, i. e., external event
notification mechanism is removed by the vendor and there is no substitute
for ndisulator yet.

Reviewed by: brooks
OK'd by: sam
Approved by: re (kensmith)

16 years agoMFC to RELENG_7 new PCI IDs
emaste [Mon, 10 Dec 2007 15:29:32 +0000 (15:29 +0000)]
MFC to RELENG_7 new PCI IDs
  aac_pci.c 1.64, 1.65
  aac.4 1.39

  Adaptec RAID 51245
  Adaptec RAID 51645
  Adaptec RAID 52445
  Adaptec RAID 5405
  AOC-USAS-S4i
  AOC-USAS-S8i
  AOC-USAS-S4iR
  AOC-USAS-S8iR
  AOC-USAS-S8i-LP
  AOC-USAS-S8iR-LP
  SG-XPCIESAS-R-IN
  SG-XPCIESAS-R-EX
  Sun STK RAID REM
  Sun STK RAID EM

Approved by: re (kensmith)

16 years agoBring in Simplified Chinese translation for RELENG_7's release documentations.
delphij [Sun, 9 Dec 2007 23:37:43 +0000 (23:37 +0000)]
Bring in Simplified Chinese translation for RELENG_7's release documentations.

Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Sun, 9 Dec 2007 23:37:11 +0000 (23:37 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years ago - Found a problem in non-blocking sends. When
rrs [Sun, 9 Dec 2007 20:23:47 +0000 (20:23 +0000)]
   - Found a problem in non-blocking sends. When
     sending, once the locks are all unlocked to
     do the copy's in, its possible that other
     events could then raise the number of bytes
     outstanding pushing it so not all the message
     would fit. This would then cause us to send
     only part of the message. This fix makes it
     so we keep a "reserved" amount that can be
     kept in mind when making calculations to send.
   - rcv msg args with a NULL/NULL for to/tolen will return
     an error incorrectly for the 1-2-1 model.
   - We were not doing 0 len return correctly and not
     setting socantrcv() more correctly. Previouly we "fixed"
     this area by taking out the socantrcv()
     since we then could not get the data out. The correct fix
     is to still flag the socket but alow a by-pass route to
     continue to read until all data is consumed.
   - Fix the initial buf calculation to be more friendly, calc is
     the same but we use different variable to make it easier
     amongst the different code versions.
   - Signedness issue with one of the new var's (this is an issue
     mainly in apple but with the right -Wall it could effect us too).
   - optimize the initialization of the SB max variables.
   - Missing lock(s) when sending data and moving it to the
     outqueue.
   - If a mbuf alloc fails during moving to outqueue the
     reassembly of the old mbuf chain was incorrect.
   - some_taken becomes a counter in sctputil.c instead of a set to 1.
   - Fix a panic to be only under invarients and have a proper recovery
     in reading messages.
   - msg_flags needed to be set to the value collected not or'd.
   - More fixes for lock misses on the transfer of data to
     the sent_queue. Sometimes I wonder why any code
     ever works   :-)
   - Fix the pad of the last mbuf routine, It was working improperly
     on non-4 byte aligned chunks which could cause memory overruns.
Approved by: re@freebsd.org(gnn)

16 years agoSync up ata(4) work by sos@ on -HEAD:
delphij [Sun, 9 Dec 2007 19:27:19 +0000 (19:27 +0000)]
Sync up ata(4) work by sos@ on -HEAD:

 * Add preliminary SATA ATAPI support for sii 3132/3124 chips.
 * Fix speed report on Intel SATA chips in compat mode.
 * Fix broken detect of JMicron 368.

Related revisions:
 - ata-chipset.c: 1.208, 1.210
 - ata-disk.c.c:  1.205

Approved by: re (kensmith), sos

16 years agoMFC: Adjust locking definitions.
scottl [Sun, 9 Dec 2007 19:26:21 +0000 (19:26 +0000)]
MFC: Adjust locking definitions.

Approved by: re

16 years agoMFC: 1.149-1.150. Hold Giant over device_suspend/resume() methods in apm.
njl [Sun, 9 Dec 2007 00:24:16 +0000 (00:24 +0000)]
MFC: 1.149-1.150.  Hold Giant over device_suspend/resume() methods in apm.

Approved by: re

16 years agoSupport new ARC120x family of controllers. Many thanks for Areca's continued
scottl [Sat, 8 Dec 2007 21:39:06 +0000 (21:39 +0000)]
Support new ARC120x family of controllers.  Many thanks for Areca's continued
support of FreeBSD.

Submitted by: Erich Chen @ Areca
Approved by: re

16 years agoMFC rev 1.5 if_wpi.c
benjsc [Sat, 8 Dec 2007 12:44:59 +0000 (12:44 +0000)]
MFC rev 1.5 if_wpi.c
MFC rev 1.2 if_wpireg.h
MFC rev 1.1 if_wpivar.h
MFC rev 1.3 wpi.4

    o Initial Import of Intel 3945abg Wireless Lan Controller (wpi) driver
    o Turn off debug output
    o Fix WEP compatiblity
    o Handle missed beacons correctly

    MFC includes firmware & LICENSE as well.

Approved by: re (kensmith), mlaier (comentor)