118785 Commits

Author SHA1 Message Date
sam
078bfc3cb8 MFC 1.15: don't assume char is signed 2006-01-29 06:55:03 +00:00
sam
38cecb350f MFC 1.18: bandaid assumption that char is signed 2006-01-29 06:52:35 +00:00
ariff
89b5dd63bd MFC: Enable full duplex operation since it works and to solve panic issue.
PR:	kern/91992
2006-01-29 02:35:19 +00:00
ariff
a7ad96accb MFC: Turn on native 32bit recording (at 48000hz).
It works perfectly on my Compaq Presario M2000Z, but my last attempt
on Acer Ferrari 4000 only produce garbled sound.
2006-01-29 02:33:17 +00:00
ariff
82ac1ac2f7 MFC: Various fixups:
feeder.h:
feeder.c:
        - Implement scoring mechanisme to select best format for conversion.
          This is actually part of newer format chaining procedures which
          will be commited someday. Confusion during chaining process solved
          by this scoring since it will try to reduce list of from/to formats
          to a single, best format.
          Related PR:   kern/91683
channel.c:
        - Simplify feeder building process since we have smarter format
          chaining.
	- (1) Fix DMA alignment, based on bytes per sample.

feeder_fmt.c:
        - Add few more sign conversion feeders for 24 and 32 bit format.

feeder_rate.c:
        - Force buffer / bytes allignment. Unaligned buffer may cause
          panics during recording on pure 32bit sample format if it
          involves feeder_rate as part of feeders chain. Handle strayed
	  bytes (mostly caused by #1) better.
          Tested on: ATI IXP, force 32bit recording.

This DMA alignment issues are extremely hard to reproduce unless the user
happen to have a 32bit capable soundcards (ATI IXP) and knowledgeable enough
to force it to operate under pure 32bit operations on both record and play
directions.
2006-01-29 02:27:28 +00:00
iedowse
a91fa9541a MFC: synchronise the OHCI driver with HEAD:
o Add some identification strings and vendor IDs
 o Set sc_dying to 1 when detaching
2006-01-29 01:26:46 +00:00
flz
107394df65 MFC:
Add Product IDs :
  - Sandisk Cruzer Micro 128MB [5]
  - DANE-ELEC zMate 512MB USB flash drive [7]
  - Attache 256MB USB 2.0 Flash Drive [8]
  - Sandisk Cruzer Micro 256MB [9]

  Add scsi_da.c quirks :
  - Samsung USB key 128Mb [1]
  - Kingston DataTraveler 2.0 [2]
  - Creative MuVo Slim [3]
  - United MP 5512 Portable MP3 Player [4]
  - Sandisk Cruzer Micro 128MB [5], [9]
  - PNY USB Flash keys [6], [7], [8]

  Add umass.c quirks :
  - Sandisk Cruzer Micro 128MB [5]
  - DANE-ELEC zMate 512MB USB flash drive [7]
  - Attache 256MB USB 2.0 Flash Drive [8]
  - Sandisk Cruzer Micro 256MB [9]

      src/sys/dev/usb/usbdevs: rev 1.249 -> 1.250
      src/sys/cam/scsi/scsi_da.c: rev 1.184 -> 1.185
      src/sys/dev/usb/umass.c: rev 1.128 -> 1.130

PR:		usb/90081 [1],
		usb/89196 [2],
		kern/86131 [3],
		usb/80487 [4],
		usb/75970 [5],
		usb/75578 [6],
		usb/72344 [7],
		usb/65436 [8],
		usb/70835 [9]
Submitted by:	Henri-Pierre CHARLES <hpc@prism.uvsq.fr> [1],
		Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> [2],
		Erich Rickheit KSC <rickheit-fbp@numachi.com> [3],
		tnu@chania.di.uoa.gr [4],
		Bram Abbekerk <bram@abbekerk.demon.nl> [5],
		Thomas Pornin <pornin@bolet.org> [6],
		parv <parv@pair.com> [7],
		Peter D. Quilty <pdquilty@adelphia.net> [8],
		Raymundo M. Vega <rvega@ms-smtp-03-eri0.socal.rr.com> [9]
2006-01-29 00:46:57 +00:00
marcel
4ef2eebeda MFC ia64 psABI conformance changes:
s/R_IA64_/R_IA_64_/
	s/DT_IA64_/DT_IA_64_/

	libexec/rtld-elf/ia64/reloc.c:1.17,1.18
	libexec/rtld-elf/ia64/rtld_start.S:1.4
	sys/boot/ia64/efi/start.S:1.9,1.10
	sys/ia64/ia64/elf_machdep.c:1.23
	sys/ia64/ia64/genassym.c:1.42
	sys/ia64/ia64/locore.S:1.39
	sys/ia64/include/elf.h:1.12,1.13,1.14
	usr.bin/elfdump/elfdump.c:1.14
2006-01-28 18:40:55 +00:00
yar
718263f07d Temporarily back out the last change, rev. 1.7.2.2.
The problem with it was that it swapped the relative order of IP
assignment and parent interface attachment.  The present if_vlan
code gets certain flags from the parent, including those meaningful
to the upper layers.  E.g., IP assignment to an interface with
IFF_BROADCAST goes somewhat differently from that to a non-broadcast
interface.  Consequently, assigning IP before attaching the parent
results in a bogus or missing broadcast address on the vlan interface.
This bug is still here, but at least it won't be triggered by doing
both vlanX configuration steps, IP and vlan+vlandev, in a single
ifconfig invocation, which is usual to setting up vlans via rc.conf.

Work at the global issue is under way.
2006-01-28 16:38:28 +00:00
nyan
3857dc83f2 MFi386: revision 1.10.10.1 2006-01-28 07:55:19 +00:00
kris
5eb299b58a MFC: Correct spelling of T_TAG_OFERFLOW
Approved by:	re
2006-01-28 04:02:54 +00:00
truckman
059cbb8ba3 MFC kern_sysctl.c 1.168
Touch all the pages wired by sysctl_wire_old_buffer() to avoid PTE
  modified bit emulation traps on Alpha while holding locks in the
  sysctl handler.
2006-01-28 00:31:56 +00:00
trhodes
92c549c2d3 Fix a fat fingered revision number in my cvs diff.
Not my month.
2006-01-27 23:05:38 +00:00
bz
42bcb0a389 MFC:
rev. 1.39 sys/net/if_gre.c
  rev. 1.21 sys/netinet/ip_gre.c      rev. 1.4  sys/netinet/ip_gre.h
  rev. 1.12 sys/netipsec/keysock.c    rev. 1.3  sys/netipsec/keysock.h
  rev. 1.32 sys/netkey/keysock.c      rev. 1.9  sys/netkey/keysock.h

  Fix stack corruptions on amd64.

  Vararg functions have a different calling convention than regular
  functions on amd64. Casting a varag function to a regular one to
  match the function pointer declaration will hide the varargs from
  the caller and we will end up with an incorrectly setup stack.

  Entirely remove the varargs from these functions and change the
  functions to match the declaration of the function pointers.
  Remove the now unnecessary casts.

  Lots of explanations and help from:     peter
  PR:                                     amd64/89261
2006-01-27 21:50:11 +00:00
bz
2c125a1727 MFC rev. 1.115:
Remove unused code.
Found with:	Coverity Prevent(tm)
2006-01-27 21:37:56 +00:00
rees
89ed0515f6 MFC rev 1.23
Use nfs4_disconnect for connections opened with nfs4_connect.
2006-01-27 18:22:53 +00:00
rees
2e59d3c0e2 MFC rev 1.16
Use thread0 instead of user's thread for sobind.
This fixes reconnect after, for example, tcp idle disconnection.
Previously this would fail if a normal user tried to bind to a privileged
port.
2006-01-27 18:22:11 +00:00
ambrisko
0b790dfa8f MFC: When the RAID firmware returns a failure, don't hard error the result. 2006-01-27 17:41:37 +00:00
ambrisko
6e40038792 Regen 2006-01-27 17:17:23 +00:00
ambrisko
926a2f80b7 MFC: 32bit lutimes 2006-01-27 17:17:05 +00:00
harti
aab4200093 MFC the HOSTRES-MIB. This is exactly the same version as in HEAD except for
a slightly different mechanism to load geom_md (g_me) which was renamed at
some point. This has been tested on RELENG_6 by erwin and glebius.

Reviewed by:	erwin, glebius
2006-01-27 16:27:34 +00:00
brueffer
f63159780d MFC: rev. 1.53, 1.60, 1.61
- hw.ata.wc can cause data loss on crashes too.  This brings the
  description of the hw.ata.wc in sync with tuning(7)
- Via VT8251 support.
- Support for Marvell chipsets.
2006-01-27 15:58:01 +00:00
brueffer
da09b67cd1 MFC: rev. 1.5 - 1.8
- SiS read/write support.
- Intel MatrixRAID write support.
- VIA Tech V-RAID write support.
2006-01-27 15:55:07 +00:00
cperciva
a1101f1dce MFC rev. 1.8:
Correctly identify the host and port values on a failed
  getaddrinfo lookup.
2006-01-27 14:44:15 +00:00
matteo
f5ae738fd4 Allow the use of wildcarded device names in devfs.conf
PR:             conf/90760
Submitted by:   Darren Pilgrim <darren.pilgrim at gmail.com>
Approved by:    philip (mentor,implicit)
2006-01-27 13:20:48 +00:00
trhodes
1266b75767 MFC:
Add a64l(), l64a(), and l64a_r() XSI extentions.  These functions convert
  between a 32-bit integer and a radix-64 ASCII string.  The l64a_r() function
  is a NetBSD addition.

  PR:             51209 (based on submission, but very different)
  Reviewed by:    bde, ru
2006-01-27 05:17:25 +00:00
csjp
4b27e03227 MFC revision 1.122
date: 2006/01/20 03:21:25;  author: csjp;  state: Exp;  lines: +1 -0
Destroy the dynamic rule zone in the event that we fail to insert the
initial default rule.

MFC revision 1.123
date: 2006/01/20 05:35:27;  author: csjp;  state: Exp;  lines: +25 -10
- Change the return type for init_tables from void to int so we can propagate
  errors from rn_inithead back to the ipfw initialization function.
- Check return value of rn_inithead for failure, if table allocation has
  failed for any reason, free up any tables we have created and return ENOMEM
- In ipfw_init check the return value of init_tables and free up any mutexes or
  UMA zones which may have been created.
- Assert that the supplied table is not NULL before attempting to dereference.

This fixes panics which were a result of invalid memory accesses due to failed
table allocation. This is an issue mainly because the R_Zalloc function is a
malloc(M_NOWAIT) wrapper, thus making it possible for allocations to fail.

Found by:	Coverity Prevent (tm)
Coverity ID:	CID79
MFC after:	1 week
2006-01-27 02:39:46 +00:00
emaste
9256fdb11a MFC loader.8:1.83 loader.conf:1.99 loader.conf.5:1.24 comconsole.c:1.11
from HEAD to RELENG_6:

  Add a "comconsole_speed" loader variable that can be used to change
  the serial console speed (i386 and amd64 only). If the previous
  stage boot loader requested a serial console (RB_SERIAL or RB_MULTIPLE)
  then the default speed is determined from the current serial port
  speed. Otherwise it is set to 9600 or the value of BOOT_COMCONSOLE_SPEED
  at compile time.

Approved by:    rwatson (mentor)
2006-01-27 01:36:24 +00:00
oleg
a8c9b6ffde MFC 1.211:
1) remove useless check of loop_copy
2) convert loop_copy to "non-negative" flag
2006-01-26 23:18:11 +00:00
glebius
06cfdf6652 MFC 1.85 - 1.87: Some diagnostic nitpicking and cleanup.
MFC 1.88:
  Improve handling flags that must be propagated
  to the parent interface, such as IFF_PROMISC and
  IFF_ALLMULTI.  In addition, vlan(4) gains ability
  to migrate from one parent to another w/o losing
  its own flags.

  PR:             kern/81978
2006-01-26 22:21:37 +00:00
ambrisko
0955d511a4 MFC glue to build LSI Linux ioctl shim static and as a module. 2006-01-26 22:12:32 +00:00
ambrisko
1cb251eec8 Sync to -current Scott's Mega Update, fixes and Linux ioctl wrapper.
Mega update to the LSI MegaRAID driver:

  1.  Implement a large set of ioctl shims so that the Linux management apps
  from LSI will work.  This includes infrastructure to support adding, deleting
  and rescanning arrays at runtime.  This is based on work from Doug Ambrosko,
  heavily augmented by LSI and Yahoo.

  2.  Implement full 64-bit DMA support.  Systems with more than 4GB of RAM
  can now operate without the cost of bounce buffers.  Cards that cannot do
  64-bit DMA will automatically revert to using bounce buffers.  This option
  can be forced off by setting the 'hw.amr.force_sg32" tunable in the loader.
  It should only be turned off for debugging purposes.  This work was sponsored
  by Yahoo.

  3.  Streamline the command delivery and interrupt handler paths after
  much discussion with Dell and LSI.  The logic now closely matches the
  intended design, making it both more robust and much faster.  Certain
  i/o failures under heavy load should be fixed with this.

  4.  Optimize the locking.  In the interrupt handler, the card can be checked
  for completed commands without any locks held, due to the handler being
  implicitely serialized and there being no need to look at any shared data.
  Only grab the lock to return the command structure to the free pool.  A
  small optimization can still be made to collect all of the completions
  together and then free them together under a single lock.

  Items 3 and 4 significantly increase the performance of the driver.  On an
  LSI 320-2X card, transactions per second went from 13,000 to 31,000 in my
  testing with these changes.  However, these changes are still fairly
  experimental and shouldn't be merged to 6.x until there is more testing.

  Thanks to Doug Ambrisko, LSI, Dell, and Yahoo for contributing towards
  this.

These have now had more testing and Scott requested them to be merged
before the freeze.
2006-01-26 22:04:21 +00:00
cvs2svn
7fcb1e9c3c This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-01-26 12:19:11 +00:00
harti
f67a055541 MFC: IFDATA_DRIVERNAME support.
if_mib.h: 1.8
	if_mib.c: 1.18
2006-01-26 07:46:28 +00:00
mjacob
0ecb47f1d2 MFC current 2322 (and maybe 2422) support plus current target mode state. 2006-01-26 06:22:40 +00:00
mjacob
2be2ae5bdf (MFC 1.106)
Incorporate the O_NONBLOCK open semantics of Linux and Solaris.
2006-01-26 04:57:04 +00:00
iedowse
9724a76382 MFC: synchronise the EHCI driver with HEAD:
o Add workaround for dropped interrupts on VIA and ATI controllers
 o Add various identification strings and vendor IDs
 o Set sc_dying to 1 when detaching
 o Don't bother clearing the unused transfer `hcpriv' field
2006-01-26 01:43:13 +00:00
dougb
885f415f1b MFC version 1.6 of the Makefile, crank WARNS up to 6
MFC version 1.2 of rcorder.c, fix for "chunk is already free" error
2006-01-26 01:34:00 +00:00
simon
5f94cb1c4b MFC rev 1.31:
Use the .Fx macro.
2006-01-25 20:56:17 +00:00
pjd
2e624d60b6 MFC: sys/geom/uzip/g_uzip.c 1.9
Fix bio leak in case of malloc(9) failure.

Found by:	Coverity Prevent(tm)
Coverity ID:	CID794
2006-01-25 15:55:27 +00:00
pjd
bd6b042283 MFC: sys/geom/mirror/g_mirror.c 1.69
sys/geom/raid3/g_raid3.c	1.45

Remove dead code.

Found by:	Coverity Prevent(tm)
Coverity ID:	CID104, CID105
2006-01-25 15:54:02 +00:00
harti
9d9c8d901e MFC: SNMP module build infrastucture:
share/man/man7/Makefile:1.30
	share/mk/Makefile:1.47
	usr.sbin/bsnmpd/modules/Makefile.inc:1.12
	usr.sbin/bsnmpd/modules/snmp_atm/Makefile:1.4
	usr.sbin/bsnmpd/modules/snmp_mibII/Makefile:1.6
	usr.sbin/bsnmpd/modules/snmp_netgraph/Makefile:1.7
	usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c:1.6
	usr.sbin/bsnmpd/modules/snmp_pf/Makefile:1.2
	share/man/man7/bsd.snmpmod.mk.7:1.4
	share/mk/bsd.snmpmod.mk:1.2
2006-01-25 13:22:59 +00:00
simon
3c57de776f Add FreeBSD-SA-06:0[67]. 2006-01-25 10:35:54 +00:00
cperciva
5648502507 Make sure buffers in if_bridge are fully initialized before copying
them to userland. [1]

MFC rev. 1.16 of sys/contrib/pf/net/pf_norm.c: Correct an error in pf
handling of IP packet fragments which could result in a kernel panic.
[2]

Security:	FreeBSD-SA-06:06.kmem [1]
Security:	FreeBSD-SA-06:07.pf [2]
2006-01-25 10:00:59 +00:00
sos
f11f5a5c34 MFC:
Bring ATA up to -current standards:

Fix SiS SATA support, the SATA registers was off.
Update the ICH7 support so it deals better with chips without AHCI.
Unbreak hotplug support on the ICH6 and ICH7 chipsets.
Add support for VIA VT8251 southbridge.
Add new nVidia nForce4 chips.
Add support for the Marvell 88SX[56]0[48][01] series of SATA chips.
Fix the promise modesetting for old chips.
Get rid of the advertising clause in the copyright.
Add support for using DMA on dump, greatly speeds up the dump process.
When IOCATAGPARM is called, update the capabilities page that is stored
in the kernel and return the new values.
Fix rebuilds of arrays that got stuck.
Add dump support in ataraid.
Add support for for reading and writing SiS metadata.
Add support for writing VIA metadata.
Add support for writing Intel metadata.
Correct calculation of RAID0 sizes on VIA RAID arrays.
Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10)
2006-01-25 08:13:46 +00:00
matteo
ecf1277aef MFC:
Honour the "uuid" directive in adduser.conf

      src/usr.sbin/adduser/adduser.sh: rev 1.26 -> 1.27

PR:		conf/87914

Approved by:	philip (mentor, implicit)
2006-01-25 07:43:48 +00:00
matteo
e4e4af2daa MFC:
Add gettytab entry for 3wire 19200 baud console

      src/etc/gettytab: rev 1.22 -> 1.23

PR:		conf/90346
Submitted by:	Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>

Approved by:	philip (mentor, implicit)
2006-01-25 07:39:42 +00:00
gad
751980ab6f MFC 1.103: Improve the handling of errors that might happen with the fork()
done to compress files after they have been rotated.
2006-01-25 04:10:59 +00:00
truckman
33e113d5ab MFC rmdir.2 1.14 and 1.15, and undelete.2 1.16 and 1.17
rmdir() fails with EINVAL if the last component of the path is "..".
 Document the previously undocumented behaviour of rmdir(".") returning
 EINVAL as required by POSIX and SUSv3.  Bump the man page change date.

 undelete() fails with EINVAL if the last component of the path is "..".
 Bump the man page change date.
2006-01-25 02:19:35 +00:00
truckman
b3b099c112 MFC vfs_lookup.c 1.84 and 1.85, and vfs_syscalls.c 1.400
Return EINVAL from lookup() if cn_nameiop is DELETE or RENAME and
the last component of the path name is "..".  This keeps VOP_LOOKUP()
from locking vnodes in reverse order.

In kern_unlink(), remap EINVAL errors returned from namei() to EPERM
to match existing (and POSIX required) behaviour.
2006-01-25 02:12:09 +00:00