55736 Commits

Author SHA1 Message Date
thompsa
336b0354fa InstaMFC:
Back out of r1.148, it causes two arp replies to be sent with different mac
 addresses.
2006-01-29 23:22:42 +00:00
imp
72c266522a MFC: PCIR_CARDBUSCIS -> PCIR_CIS 2006-01-29 21:14:28 +00:00
imp
5b5fcbbd37 MFC 1.46-1.51: more defines for capabilities and Cardbus CIS things. 2006-01-29 21:03:46 +00:00
damien
3a8098e703 sync with HEAD. 2006-01-29 15:21:46 +00:00
damien
bfd5a95bf5 sync with HEAD. 2006-01-29 15:13:01 +00:00
damien
384ea2a095 sync ural with HEAD.
Brings automatic rate control in BSS mode and other goodies.
2006-01-29 14:16:36 +00:00
damien
f4e3675df0 sync with HEAD:
r1.27:
o Re-enable scatter/gather
o Change MEM_READ_1/MEM_READ_4 into macros (move them to if_iwireg.h)
o Add support for association LED
o Silently discard f/w notifications that are unknown (fixes spurious
  "unknown notification 15" in logs with latest firmware)
o Fix scanning of 5GHz channels

r1.23:
Fix endianness issues.  iwi now works on big endian architectures too.

r1.22
Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.
This should fix kernel panics on high network traffic.

r1.20:
o Use firmware extended scan command; this one doesn't crash when scanning
  the 5GHz band.
o Enable 802.11a channels scanning for 2915ABG adapters.
o Fix a typo (negociated->negotiated).
2006-01-29 13:54:19 +00:00
sam
f3bb385026 MFC: switch beacon miss threshold from a time to the number of beacon frames 2006-01-29 07:33:27 +00:00
sam
2564db3b51 MFC 1.86: bounds check each ie's length when parsing 2006-01-29 07:28:02 +00:00
sam
f27a601503 MFC 1.68: propagate current bss state on sta join 2006-01-29 07:20:23 +00:00
sam
8bcd9b14f4 MFC 1.72: bump the scan generation number before iterating 2006-01-29 07:18:09 +00:00
sam
85dc376f3a MFC: update monitoring support 2006-01-29 07:17:02 +00:00
sam
198715ce2a MFC 1.6: add flag to tag frames w/ a known bad FCS 2006-01-29 07:13:58 +00:00
sam
44a7889d74 MFC 1.27:
enable "aggressive mode" only when operating in ap or station mode; in
  particular this fixes use of wme in adhoc demo mode, it wasn't possible
  to set the txop limit because the aggressive mode logic would override
2006-01-29 07:13:03 +00:00
sam
732ef3704c MFC: update erp information element in the beacon frame to reflect
changes in the bss
2006-01-29 07:11:24 +00:00
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
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
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
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
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
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
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
joel
8d2ce7ac9c MFC r1.15: Sort list of modules. 2006-01-24 18:56:11 +00:00