Commit Graph

55661 Commits

Author SHA1 Message Date
ariff
17c7359e57 MFC: Fix LOR #174.
Tested with:	WITNESS, INVARIANTS and DIAGNOSTICS
2005-12-31 02:03:48 +00:00
marcel
29011b371f Bump __FreeBSD_version after MFC of ELF types and constants. 2005-12-30 22:25:15 +00:00
marcel
14fe1a0c49 MFC standardization of the ELF types and update of the ELF constants:
lib/libc/gen/nlist.c:1.19
	libexec/rtld-elf/rtld.c:1.108
	libexec/rtld-elf/rtld.h:1.36
	libexec/rtld-elf/alpha/reloc.c:1.21
	libexec/rtld-elf/amd64/reloc.c:1.16
	libexec/rtld-elf/ia64/reloc.c:1.16
	libexec/rtld-elf/sparc64/reloc.c:1.11
	share/man/man5/elf.5:1.32-1.33
	sys/alpha/alpha/elf_machdep.c:1.20
	sys/amd64/amd64/elf_machdep.c:1.24
	sys/boot/common/bootstrap.h:1.42
	sys/boot/common/load_elf.c:1.33
	sys/boot/common/load_elf_obj.c:1.2
	sys/boot/common/reloc_elf.c:1.2
	sys/ia64/ia64/elf_machdep.c:1.21
	sys/kern/link_elf.c:1.87
	sys/kern/link_elf_obj.c:1.90
	sys/sparc64/sparc64/elf_machdep.c:1.20
	sys/sys/elf32.h:1.9-1.10
	sys/sys/elf64.h:1.11-1.13
	sys/sys/elf_common.h:1.16
	sys/sys/elf_generic.h:1.7
	sys/sys/imgact_elf.h:1.28
	sys/sys/linker.h:1.40
	usr.bin/elf2aout/elf2aout.c:1.10
	usr.bin/elfdump/elfdump.c:1.13
	usr.sbin/crunch/crunchide/exec_elf32.c:1.15
	usr.sbin/kldxref/ef.c:1.9
	usr.sbin/kldxref/ef.h:1.6
	usr.sbin/kldxref/ef_amd64.c:1.3
	usr.sbin/kldxref/ef_i386.c:1.3
	usr.sbin/kldxref/ef_obj.c:1.4
	usr.sbin/kldxref/ef_powerpc.c:1.3
	usr.sbin/kldxref/ef_sparc64.c:1.4-1.5
2005-12-30 22:13:59 +00:00
ariff
2449cad335 MFC: Few codec such as Conexant CX20468-21 does have AC97_MIX_BEEP
control register, although the only usable part is the mute bit.

Noticed by:	Hans Petter Selasky <hselasky@c2i.net>
2005-12-30 20:44:37 +00:00
ariff
ec6a9f6468 Should be "snd_atiixp" (without ".c").
Sorry Alex.
2005-12-30 20:33:06 +00:00
bz
4e607a8b76 MFC:
rev. 1.111 date: 2005/10/11 22:55:16; author: yar  sys/pci/if_sk.c
rev. 1.28  date: 2005/10/11 22:59:01; author: yar  share/man/man4/vlan.4

Mark sk(4) capable of handling extended VLAN frames.

PR: kern/79998
2005-12-30 20:13:46 +00:00
netchild
6020e1d27b MFC nearly everything of the soundsystem except recent commits and
most of the sysctl's (those which would introduce a new interface).
The spdif_enabled sysctl is still there (or more correctly: added
to another driver).

A rough overview what's there now:
 - new driver for ATI chips (snd_atiixp)
 - support for some Intel HDA chips in AC97 mode (no real HDA
   support!), this doesn't work with every mainboard and is
   subject to the wiring on the mainboard (no servicable parts
   inside)
 - MPSAFE and fixes for snd_als4000(4), snd_es137x(4),
   snd_via82c686(4), snd_via8233(4) and snd_ich(4)
 - 24bit and 32bit sound format support
 - feeder infrastructure (format, rate) has been reworked, new
   feeder (volume) has been introduced
 - lots of LOR and panic issues fixed
 - and a lot of small or not so small fixes I may have forgotten...

As noted in UPDATING: you may want to recompile mplayer (after booting
into the new world) to get all new features.

Tested by:	a lot of people
Requested by:	ariff
Submitted by:	ariff
2005-12-30 19:55:55 +00:00
cvs2svn
30ca7bc8d2 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-12-30 16:45:32 +00:00
mlaier
1937d32dc3 MFC: pf.c 1.39+1.40 and pfvar.h 1.13+1.14
Move PFSTATE_EXPIRING from sync_flags to a new local_flags.  sync_flags
  has special handling when zero.  This caused no PFSYNC_ACT_DEL message and
  thus disfunction of pfflowd and state synchronisation in general.

  Discovered by:  thompsa
  Good catch by:  thompsa

and

  Only decrement the max-src-conn counter for tcp connections that reached
  "established" state.

  Similar to OpenBSD's rev. 1.499 by joel but not breaking ABI.

  Obtained from:  OpenBSD (with changes)
  Reported by:    Bruno Afonso

ok reyk@
2005-12-30 00:50:18 +00:00
cracauer
0ac73030bb I didn't remember to commit the style-fixes for my previous
commit.
2005-12-29 21:32:06 +00:00
ps
ef44f1c6f1 MFC: rev 1.67
It seems ciss should ignore overrun and underrun on a SCSI INQUIRY
command.  This fixes some weird booting issues on newer versions
of the firmware on the MSA20.
2005-12-29 08:28:01 +00:00
sobomax
4cfd00e6b6 MFC: NTFS label recognition module for geom_label(4). 2005-12-29 06:22:38 +00:00
sobomax
348bb8c4b9 MFC: check for g_read_data(9) errors properly. 2005-12-29 05:59:51 +00:00
sobomax
222f0ca986 MFC: kill leading witespace. 2005-12-29 05:34:46 +00:00
sobomax
cc18a2f3dd MFC: add dummy support for ifmedia subsystem. This allows devd to see cdce as
an ethernet device and configure IP etc.
2005-12-29 05:30:39 +00:00
sobomax
4b06402089 MFC: in the re_shutdown() mark interface as down since otherwise we will panic
if interrupt comes in later on, which can happen in some uncommon cases.
2005-12-29 05:25:40 +00:00
ps
ee81c92cbf MFC:
- rate limit vnode_pager_putpages printfs to once a second.
- rate limit filesystem full and out of inodes messages to once a
  second.
2005-12-28 20:11:51 +00:00
ps
1c9ee96a41 regen for 32bit futimes 2005-12-28 19:50:22 +00:00
ps
9edf05e360 MFC: 32bit futimes 2005-12-28 19:50:09 +00:00
ps
f4c5d0277e Correct white space issues that were introduce in 1.38.2.2. 2005-12-28 19:41:48 +00:00
ps
80915ea2fa MFC: rev 1.40
Use the constants for the syscall names from syscall.h rather than
hardcoding the numbers for the SYSVIPC syscalls.
2005-12-28 19:39:55 +00:00
ps
381bb9c125 regen 2005-12-28 19:31:57 +00:00
ps
a2a837b8b0 MFC: 32bit compat for recvmsg, sendmsg, osigaction, osigprocmask,
osigpending, osigvec, osigblock, osigsetmask, osigsuspend, osigstack,
clock_gettime, clock_settime, and clock_getres.

Also correct the prototype for freebsd32_nanosleep in syscalls.master.
2005-12-28 19:30:41 +00:00
ps
0c8404b902 MFC: rev 1.250
Allow 32bit get/setsockopt with SO_SNDTIMEO or SO_RECVTIMEO to work.
2005-12-28 18:05:13 +00:00
ps
d3bd7d36e5 MFC: rev 1.150
Calling setrlimit from 32bit apps could potentially increase certain
limits beyond what should be capiable in a 32bit process, so we
must fixup the limits.

This is slightly different than HEAD to not change the ABI.
2005-12-28 17:35:55 +00:00
jhb
01364d3f00 MFC: Destroy the /dev device before destroying the mutex or
releasing resources.
2005-12-28 16:52:45 +00:00
glebius
c8892dd722 MFC 1.251:
When we drop packet due to no space in output interface output queue, also
  increase the ifp->if_snd.ifq_drops.

  PR:             72440
  Submitted by:   ikob
2005-12-28 13:37:25 +00:00
glebius
9c2a5c3b76 MFC:
Add a knob to suppress logging of attempts to modify
  permanent ARP entries.

  Submitted by:   Andrew Alcheyev <buddy telenet.ru>
2005-12-28 13:33:41 +00:00
thompsa
d5df7ef24c MFC r1.39-40, whitespace and M_ZERO fixes 2005-12-28 06:27:52 +00:00
thompsa
a48e8794fd MFC: Add support for creating span ports
sbin/ifconfig/ifbridge.c	r1.3
 sbin/ifconfig/ifconfig.8	r1.109
 sys/net/if_bridge.c		r1.36, 1.38
 sys/net/if_bridgevar.h		r1.7, 1.8
 sys/net/if_ethersubr.c		r1.210
2005-12-28 04:12:58 +00:00
ru
9954405350 MFC: 1.23: Fix mysterious parallel build failures. 2005-12-27 21:35:40 +00:00
delphij
d8aad764ce MFC revision 1.5
date: 2005/08/29 15:18:04;  author: yar;  state: Exp;  lines: +1 -1
Unbreak stand-alone build of the de(4) module.

Reported by:	Boris Samorodov <bsam ipt.ru>
Requested by:	Roman V. Palagin  <romanp unshadow.net>
2005-12-27 02:39:44 +00:00
gnn
cdcd368c4f MFC of SCTP protocol number. 2005-12-27 00:52:24 +00:00
pav
81c5ad0c14 MFC umass.c 1.126,1.127 and usbdevs 1.239:
- Ignore incorrect CSW signatures on my PURE PocketDAB 2000 player
2005-12-27 00:35:38 +00:00
dds
3459412dad MFC changes from 2005.10.26:
Move execve's access time update functionality into a
new vfs_mark_atime() function, and use the new function
for performing efficient atime updates in mmap().
2005-12-26 13:47:20 +00:00
suz
aa390870a7 MFC 1.57 (Raw IPv6 checksum must use the protocol number of the last header,
instread of the first next-header value)
2005-12-26 00:59:12 +00:00
mlaier
ebc290037a MFC: ip_carp.c, 1.33
Fix build after in6_joingroup change.  It remains unclear if DAD breaks
  CARP or not.

Unbreaks build after massive netinet6 MFC.
2005-12-25 21:59:20 +00:00
bz
751e9343fb MFC rev. 1.20
Make nve(4) work for people with nf3/nf4 who never got it
working at all and only saw "nve0: device timeout (N)" messages.
- Setup PHY before handing control to NVidia API setting
  speed, duplex, enabling interrupts, etc.
- Add restriction of MAXADDR_32BIT for high address to contigmalloc
  to make the driver work on machines with 4+GB of memory.
2005-12-25 21:57:03 +00:00
suz
675445a4d6 MFC: sync with KAME regarding NDP
- introduced fine-grain-timer to manage ND-caches and IPv6 Multicast-Listeners
- supports Router-Preference <draft-ietf-ipv6-router-selection-07.txt>
- better prefix lifetime management
- more spec-comformant DAD advertisement
- updated RFC/internet-draft revisions
- renamed a macro IPV6_DADOUTPUT to IPV6_UNSPECSRC
- plugged a possible memory leak

	share/doc/IMPLEMENTATIONS	Rev.1.9
	sys/netinet/icmp6.h		Rev.1.20
	sys/netinet6/icmp6.c		Rev.1.69
	sys/netinet6/in6.c		Rev.1.57,58
	sys/netinet6/in6.h		Rev.1.41,42
	sys/netinet6/in6_ifattach.c	Rev.1.31
	sys/netinet6/in6_ifattach.h	Rev.1.7
	sys/netinet6/in6_src.c		Rev.1.36
	sys/netinet6/in6_var.h		Rev.1.27
	sys/netinet6/ip6_var.h		Rev.1.36
	sys/netinet6/ip6_output.c	Rev.1.99,100
	sys/netinet6/mld6.c		Rev.1.24,25
	sys/netinet6/mld6_var.h		Rev.1.7
	sys/netinet6/nd6.c		Rev.1.59,61,62
	sys/netinet6/nd6.h		Rev.1.21
	sys/netinet6/nd6_nbr.c		Rev.1.34,37,38,39
	sys/netinet6/nd6_rtr.c		Rev.1.30,31
2005-12-25 14:03:38 +00:00
suz
645f921931 MFC: changes malloc type (M_IPMADDR->M_IP6MADDR, M_IPMOPTS->M_IP6MOPTS, M_MRTABL
E->M_MRTABLE6)

 Rev.1.54 in6.c
 Rev.1.64 in6_pcb.c
 Rev.1.25 in6_var.h
 Rev.1.33 ip6_mroute.c
 Rev.1.98 ip6_output.c
 Rev.1.23 mld6.c
2005-12-25 12:44:12 +00:00
suz
d93ffc4d8d MFC Rev.1.68 (don't respond to NI_QTYPE_IPV4ADDR) 2005-12-25 12:21:55 +00:00
suz
6812ce3e6e MFC the following KAME sync work.
- fixed typos
  - improved some comment descriptions
  - use NULL, instead of 0, to denote a NULL pointer
  - avoid embedding a magic number in the code
  - use nd6log() instead of log() to record NDP-specific logs
  - nuked an unnecessay white space

  Revision  Path
  1.67      src/sys/netinet6/icmp6.c
  1.55      src/sys/netinet6/in6.c
  1.29      src/sys/netinet6/in6_ifattach.c
  1.56      src/sys/netinet6/nd6.c
  1.35      src/sys/netinet6/nd6_nbr.c
  1.29      src/sys/netinet6/nd6_rtr.c
2005-12-25 12:15:13 +00:00
thompsa
911c4e7496 MFC r1.41, do not BPF_MTAP the packet twice 2005-12-24 01:13:17 +00:00
jhb
c240b8f56c MFC: Remove linux_mib_destroy() since MTX_SYSINIT's gaining of a SYSUNINIT
that called mtx_destroy() made it obsolete.
2005-12-22 21:25:20 +00:00
sam
e294e1d1d5 MFC: 802.11 layer sta mode beacon miss handling 2005-12-22 19:22:51 +00:00
sam
2979ae7991 MFC: make packet bursting configurable (default to on if device is capable) 2005-12-22 19:18:23 +00:00
sam
b9f8816a97 MFC 1.70: apply local settings when creating neighbor entries in ahdemo mode 2005-12-22 19:14:46 +00:00
sam
9a31dc8790 MFC: 1.69: when creating an ahdemo bss use any requested bssid; otherwise use zero 2005-12-22 19:12:50 +00:00
sam
0e5e9b0791 MFC: 1.40: allow setting the bssid in any mode 2005-12-22 19:10:58 +00:00
sam
1ac4f35004 MFC 1.36: correct handling of dtim for periods > 1 2005-12-22 19:08:39 +00:00
sam
3b038c718d MFC: add fixed rate for sending multicast frames 2005-12-22 19:05:53 +00:00
sam
f6c1e5db4b MFC: disallow module unload when there are dynamic references 2005-12-22 19:02:08 +00:00
sam
92049f01a9 MFC 1.24:
o correct auto mode logic for avoiding turbo channels
  o correct assumption that a static turbo channel is also
      usable in 11a; the opposite is true
2005-12-22 18:45:40 +00:00
sam
a9dc0df253 MFC 1.67: Bandaid ieee80211_set_chan to handle a channel parameter of "any" 2005-12-22 18:44:58 +00:00
sam
14be714397 MFC 1.38: change malloc when setting an optional ie to use M_NOWAIT 2005-12-22 18:25:10 +00:00
sam
610c6bff27 MFC 1.37: correct parameter check when retrieving the current channel list 2005-12-22 18:22:15 +00:00
emaste
3a89523d62 MFC r1.160:
When using m_dup(9) to copy more than MHLEN bytes of data, don't
  create an mbuf chain that starts with a cluster containing just MHLEN
  bytes.  This happened because m_dup called m_get or m_getcl depending
  on the amount of data to copy, but then always set the size available
  in the first mbuf to MHLEN.

Approved by:	jmg
Silence from:	rwatson (mentor)
2005-12-22 04:23:10 +00:00
flz
2f3fb440a3 MFC: Add ProductID for the iPod Nano.
usb_quirks.c:	1.44
	usbdevs:	1.237

Approved by:	ssouhlal
2005-12-21 23:11:14 +00:00
thompsa
9bc985ef4d MFC r1.37: use m_dup rather than m_copypacket 2005-12-21 22:52:48 +00:00
ru
1898f8a6fe MFC: 1.17: Fix PCI ID of the AMD-8111 System Management controller
that provides SMBus 1.0 function that this driver supports.
2005-12-21 11:00:53 +00:00
dougb
3b583b7967 MFC the inclusion of scripts from the local_startup directories
into the base rcorder, and related changes.
2005-12-21 07:11:35 +00:00
jhb
e4c2908f0b MFC: Add a new 'show lock' command to ddb that can dump information about
mutexes and sx locks including current owners, etc.
2005-12-20 19:28:24 +00:00
glebius
5b6819c0d6 MFC 1.26:
Suppress logging about unimplemented syscalls to one time per process. This
  prevents hard flood of the system console.

  Reviewed by:	bde
2005-12-19 17:06:51 +00:00
bruno
fa6896f870 MFC: don't flood kernel logs with "invalid _PSS package" messages.
Approved by:	njl, imp (mentor)
2005-12-19 11:19:26 +00:00
iedowse
4bb71dd5cf MFC 1.70: provide the USB device release number along with other
parameters so that devd can match on it.
2005-12-18 15:51:31 +00:00
wpaul
111400b259 Ok, let's try that again. MFC recent changes from -current, this time
to the right branch (interrupt handler API fixes, Ralink RT2500 deadlock
with wpa_supplicant).
2005-12-16 17:33:47 +00:00
mux
c4cfae8744 MFC r1.252:
date: 2005/12/12 14:30:13;  author: mux;  state: Exp;  lines: +1 -0
  Add the device ID of fxp(4) NICs found in Sony Vaio VGN-TX1XP laptops.
2005-12-16 03:26:37 +00:00
maxim
b08fccbd06 MFC rev. 1.134: fix for a bug where NFS/TCP would
not reconnect (in the case where the server FIN'ed).

PR:		kern/88833
Requested by:	Roman V. Palagin
Approved by:	Mohan Strinivasan
2005-12-15 18:10:37 +00:00
sobomax
bb17c1e410 Fix problems introduced by the botched MFC.
Submitted by:	Kostik Belousov <konstantin.belousov@zoral.com.ua>
Pointy hat to:	sobomax
2005-12-15 17:47:15 +00:00
sobomax
b1d47158ee MFC: add new option q to surpress any output in the normal case. 2005-12-15 04:03:05 +00:00
iedowse
c856ad6798 MFC 1.92: rorder the calling of the completion callback and the
transfer "done" method for non-repeat transfers to avoid problems
if the transfer gets recycled by the callback. In particular this
fixes page faults seen when using OHCI controllers with ucom devices.
2005-12-15 00:36:00 +00:00
mlaier
16ff3ce833 MFC: 1.91
Fix calculation of meminfo's swaptotal and swapfree on at least amd64.
2005-12-14 19:07:38 +00:00
des
32a42fa507 MFC: implement the full range of ISO9660 number conversion routines in iso.h. 2005-12-14 09:20:30 +00:00
flz
a3ad80954c MFC: USB Quirk for iPods (should work with some other devices).
usb_quirks.c:	1.43
	usb_quirks.h:	1.19
	usb_subr.c:	1.78
	usbdevs:	1.236

While this might not be the best solution, this has been considered good enough
to be MFC'ed.

Approved by:	ssouhlal
Discussed on:	src-committers@
2005-12-14 01:27:45 +00:00
anholt
63922011a7 MFC DRM. Notable changes:
- i915 (i830-i915) driver ported.
- S3 Savage driver ported.
- Added support for ATI_fragment_shader registers for r200.
- Improved r300 support, needed for latest r300 DRI driver.
- (possibly) r300 PCIE support, needs X.Org server from CVS.
- Added support for PCI Matrox cards.
- Software fallbacks fixed for Rage 128, which used to render badly or hang.
- Some issues reported by WITNESS are fixed.
2005-12-14 00:52:59 +00:00
anholt
7e2effb167 MFC i915 GMCH AGP support. 2005-12-14 00:47:25 +00:00
anholt
f4f7767dd8 MFC r1.28: Add support for the i855GM. 2005-12-14 00:46:23 +00:00
rees
94b8aef59a MFC: nfs_socket.c 1.132, nfs_subs.c 1.142, nfsm_subs.h 1.37
fix a problem with XID re-use when a server returns NFSERR_JUKEBOX.
2005-12-13 21:29:26 +00:00
jhb
786e4e87b4 MFC: Slam the door more forcefully on mixed mode. 2005-12-13 16:47:33 +00:00
bmah
9986b6051a MFC: Recognize the Sony Clie PEG-TJ37.
usbdevs		1.234 -> 1.235
	uvisor.c	1.24 -> 1.25
2005-12-12 19:52:52 +00:00
jhb
2a9d19327c MFC: Sync up with locking changes in HEAD:
- Add locked variants of nve_start(), nve_init(), and nve_ifmedia_upd().
- Use callout_* to manage callouts rather than timeout(9).
- Mark interrupt handler MPSAFE (IFF_NEEDGIANT was already clear).
- Lock the driver lock in driver entry points such as the interrupt
  handler, if_start, and if_init rather than locking the driver mutex
  in the various work functions called by the binary blob.
- Use IFQ_DRV_IS_EMPTY() macro rather than doing it by hand.
- Fix locking in detach.
- Remove some unused fields from the softc.
- Don't make the driver lock recursive, it shouldn't be recursively
  acquired anywhere in the driver now.
- Axe the spin mutex used for the nve_oslock*() routines.  The driver lock
  already provides sufficient synchronization.
- Don't mess around with IFF_UP when the link state changes.  IFF_UP is
  an administrative flag, not a link status indicator.
2005-12-12 19:40:04 +00:00
jhb
3045ceb187 MFC: Don't panic if IRQ 13 doesn't exist, only if it doesn't exist and we
actually need it.
2005-12-12 19:36:50 +00:00
jhb
627b421f3c Fix a panic if "pci_link" is disabled via the acpi disable tunable. 2005-12-12 19:35:11 +00:00
jhb
5d0a54d00d MFC: Force any hardwire-routed interrupts to level trigger and active low
polarity.
2005-12-12 19:33:32 +00:00
glebius
25cfadb32a MFC 1.93:
Take if_baudrate from the parent. This fixes problem with SNMP
  daemons reporting zero speed for vlan(4) interfaces.
2005-12-12 11:18:15 +00:00
cvs2svn
878f552269 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-12-11 23:15:25 +00:00
sam
8deec4803d MFC: adhoc mode fixups 2005-12-11 22:58:43 +00:00
sam
a276395559 MFC: fix dynamic changes in short slottime for 11g sta mode: set the
slot time based on the rcvd capabilities, not the existing ones
2005-12-11 22:49:43 +00:00
sam
e33a37b6e3 MFC: nuke special handling to extend cts when bursting; it was race prone 2005-12-11 22:45:38 +00:00
suz
67f35192e6 MFC Rev 1.35
fixed a kernel crash at the initialization time of PIM-SM register interface
2005-12-11 06:18:42 +00:00
csjp
a9e526e70f MFC revision 1.272
Giant clean up for exit(2)
2005-12-10 20:14:42 +00:00
le
0ed7cd39d9 MFC:
Since we want a vinum geom created anytime the module loads, move the
  geom creation to a seperate init function and ignore the tasting.

  The config is now parsed only in the vinumdrive geom, which hopefully
  fixes the problem, that the drive class tasted before the vinum class
  had a chance, for good.

  Also restore the behaviour that the module can be loaded at boot time
  and on a running system.

--

  Check for g_read_data(9) errors properly;  don't pass error value
  pointer to g_read_data(9) at all if we don't have any use of it.
2005-12-10 14:36:17 +00:00
jhb
e8017e437c MFC: Add a missing newline to a printf. 2005-12-09 20:24:09 +00:00
dumbbell
ee1198928e MFC:
revision 1.2
  date: 2005/10/21 09:15:26;  author: dumbbell;  state: Exp;  lines: +3 -1
  Apply the same fix to a potential race in the ISDOTDOT code
  in reiserfs_lookup() that was used to fix an actual race in
  ufs_lookup.c:1.78. This is not currently a hazard, but the
  bug would be activated by marking reiserfs as MPSAFE.

Reviewed by:	mux (mentor)
2005-12-09 14:55:39 +00:00
ru
9dbd13db82 MFC: Fix memory leak. 2005-12-09 07:13:06 +00:00
ume
90a9ef87c4 MFC 1.40: the response NS to a DAD NS was not sent correctly due to the
invalid destination address.
2005-12-09 02:50:40 +00:00
glebius
6560e6c37e MFC 1.91:
On the 82571 and newer chipset the ICR register is meaningful only
  if the E1000_ICR_INT_ASSERTED bit is set.

  Submitted by:   Jack Vogel
2005-12-08 14:06:12 +00:00
marius
0e39b3f79f MFC: sys/conf/files 1.1066, sys/conf/files.powerpc 1.47
Move zs.c from files to files.powerpc as zs(4) by now is only supported
on powerpc (more or less...). That way people updating from FreeBSD 5 to
FreeBSD 6 and beyond on sparc64 will get an error from config(8) rather
than a mysterious compile error when they have a stale 'device zs' in
their kernel config file.
2005-12-08 10:56:46 +00:00
vkashyap
231a72629e MFC: twa corresponding to the 9.3.0.1 release on the 3ware website. This driver
has support for the 9xxxSX controllers, along with the earlier 9xxxS series
controllers.
2005-12-07 18:18:06 +00:00
jylefort
f97afa5377 MFC: Unbreak second joystick (joy1) support.
Approved by:	ssouhlal
2005-12-07 15:14:59 +00:00
thompsa
b7b016a19f MFC r1.35, set IFF_BROADCAST on the interface 2005-12-07 03:10:42 +00:00
glebius
a95ec831a0 MFC 1.17:
- Update the flow sequence before converting count to
    network byte order.
  - Update the flow sequence in one atomic op instead of two.

  Reported by:    Denis Shaposhnikov <dsh vlink.ru>
  Reported by:    Daniil Kharoun <kdl chelcom.ru>
  PR:             kern/89417
2005-12-06 09:51:10 +00:00
jhb
cd05b25213 MFC: Use >= rather than > to check for a process exceeding its time limit. 2005-12-05 20:14:40 +00:00
obrien
67e83240bd MFC: rev 1.13: clear pending_txs when not "RUNNING". 2005-12-05 01:05:58 +00:00
obrien
1331999374 MFC: rev 1.12: make sure that we call if_free(ifp) after bus_teardown_intr.
This eliminates the possibility of a crash due to getting an interrupt after
we free the ifp and the interrupt handler depending on ifp being still alive.
2005-12-05 01:05:09 +00:00
iedowse
f0786eeee2 MFC: fix a number of bugs in the handling of the transfer descriptor
done queue.
2005-12-04 05:52:23 +00:00
iedowse
e08ca9ff18 MFC 1.124: pad RBC commands to 12 bytes for Sony DSC camereas. 2005-12-04 05:48:31 +00:00
cvs2svn
5b47c5585e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-12-02 00:17:35 +00:00
yongari
d9c83adc58 MFC 1.461 to RELENG_6
Connect em(4) build on sparc64.
2005-12-01 02:43:13 +00:00
yongari
e7b26efb3c MFC 1.66 to RELENG_6
Uncomment em(4) as it's now working.
2005-12-01 02:38:44 +00:00
jhb
19fe05251d MFC: Add locking and mark MPSAFE. 2005-11-30 16:04:52 +00:00
jhb
8304175e7b MFC: Quiet the pci_link(4) devices and only lookup BIOS IRQs for links that
are routed via ISA IRQs.
2005-11-30 16:03:55 +00:00
marius
4e512e86dd MFC: 1.13
- Add a workaround for the fact that OFW doesn't guarantee that
  devices can be opened multiple times simultaneously but we're
  expected to be able to do so by the rest of the loader.
  This fixes booting from disks attached to the on-board SCSI
  controller of Sun Ultra 1 (previously this triggered a trap)
  and probably also of AX1115 boards.
- While here, remove unused variables and add empty lines where
  style(9) requires such.
2005-11-30 13:37:22 +00:00
marius
9eaee5a55c MFC: 1.16
In ofw_parsedev() check the return value of malloc() and protect
against a NULL pointer dereference when ofw_parsedev() is called
with a NULL path argument.
2005-11-30 13:24:53 +00:00
marius
4245a23502 MFC: 1.11
Use an ihandle_t to store the instance handle of an opened device
instead of a phandle_t (package handle). Since both are typedefed
to unsigned int, this is more or less cosmetic.
2005-11-30 13:19:03 +00:00
marius
048eb2b1f9 MFC: elf_freebsd.c 1.10, ofw_console.c 1.11, ofw_memory.c 1.7, openfirm.c 1.12
Remove unused variables.
2005-11-30 13:13:53 +00:00
yongari
7743af4bbc MFC if_hme.c:1.44, if_hmereg.h:1.7, if_hmevar.h:1.9 to RELENG_6:
- Convert hme(4) to use TX side bus_dmamap_load_mbuf_sg(9).
  - Move hardware counter reading/zeroing to hme_tick(). This saves
     8 register access per interrupt. [1]
  - Use imax macro for getting max. argument between two integers.
  - Invoke bus_dmamap_sync(9) first before freeing mbuf.
  - Check driver queue first to reduce locking operation in hme_start_locked()
    and interrupt handler.
  - Simplyfy watchdog timer setup in interrupt handler.
  - Don't log normal errors such as RX overrun. If we have DMA stuck
    condition, reinitialize the driver and log it.
2005-11-30 02:23:53 +00:00
marcel
40404ba331 MFC rev 1.40: Improve inittodr(). 2005-11-29 00:18:56 +00:00
jhb
0629d9c388 MFC: Always print the trap number for fatal traps and add trap messages
for T_XMMFLT and T_RESERVED.
2005-11-28 20:03:15 +00:00
jhb
6e7132f326 MFC: Correctly ask the PCI bridge device for its child PCI bus number
when trying to determine the BIOS IRQ for a given link.
2005-11-28 19:45:30 +00:00
jhb
b37ccdba12 MFC: Let ether_ioctl() handle SIOCSIFMTU. 2005-11-28 19:43:57 +00:00
jhb
eee0b465b9 MFC: More fully setup the ATPICs including setting up spurious interrupt
handlers if 'device atpic' is not in the kernel.
2005-11-28 19:42:10 +00:00
simokawa
ff0e40f217 MFC: revision 1.81
Fix panic when we cannot find self-id of probing nodes.
2005-11-28 06:41:40 +00:00
rwatson
c078111780 Merge kern_acct.c:1.76 from HEAD to RELENG_6:
Significant refactoring of the accounting code to improve locking and VFS
  happiness, as well as correct other bugs:

  - Replace notion of current and saved accounting credential/vnode with a
    single credential/vnode and an acct_suspended flag.  This simplifies the
    accounting logic substantially.

  - Replace acct_mtx with acct_sx, a sleepable lock held exclusively during
    reconfiguration and space polling, but shared during log entry
    generation.  This avoids holding a mutex over sleepable VFS operations.

  - Hold the sx lock over the duration of the I/O so that the vnode I/O
    cannot occur after vnode close, which could occur previously if
    accounting was disabled as a process exited.

  - Write the accounting log entry with Giant conditionally acquired based
    on the file system where the log is stored.  Previously, the accounting
    code relied on the caller acquiring Giant.

  - Acquire Giant conditionally in the accounting callout based on the file
    system where the accounting log is stored.  Run the callout MPSAFE.

  - Expose acct_suspended via a read-only sysctl so it is possibly to
    programmatically determine whether accounting is suspended or not without
    attempting to parse logs.

  - Check both acct_vp and acct_suspended lock-free before entering the
    accounting sx lock in acct().

  - When accounting is disabled due to a VBAD vnode (i.e., forceable unmount),
    generate a log message indicating accounting has been disabled.

  - Correct a long-standing bug in how free space is calculated and compared
    to the required space: generate and compare signed results, not unsigned
    results, or negative free space will cause accounting to not be suspended
    when required, or worse, incorrectly resumed once negative free space is
    reached.
2005-11-27 19:09:10 +00:00
glebius
7dfb4a556f MFC 1.61:
Check IFF_DRV_RUNNING in the re_intr() loop. It can disappear,
  since re_rxeof() drops the lock for some time.

  Reported & tested by:   XueFeng Deng <dsnofe yahoo.com.cn>
2005-11-27 02:56:42 +00:00
jdp
9bb59aa42a MFC: Fix a bug that caused some /dev entries to continue to exist after
the underlying drive had been hot-unplugged from the system.

This merges the following revisions:

  Revision  Path
  1.94      src/sys/cam/scsi/scsi_cd.c
  1.181     src/sys/cam/scsi/scsi_da.c
  1.98      src/sys/geom/geom_disk.c
  1.5       src/sys/geom/geom_disk.h
  1.88      src/sys/geom/geom_subr.c
2005-11-26 22:55:20 +00:00
delphij
6d8a6febc5 MFC 1.83: Slightly reorganize to reduce duplicated code.
Reviewed by:	rwatson
2005-11-26 21:20:05 +00:00
delphij
79c28795ba MFC 1.65:
Remove an unneeded "a" from comment.
2005-11-26 21:19:20 +00:00
jdp
eeb84da771 MFC 1.151: Fix a bug in the loop in sonewconn that makes room on the
incomplete connection queue for a new connection.  It was removing
connections from the wrong list.
2005-11-26 19:32:30 +00:00
marcel
6342c72acc MFC rev 1.203: Fix bug introduced in revision 1.186:
Iterate over the mounted file systems to find the largest time
  stamp and call inittodr() exactly once with that time stamp.
2005-11-26 19:13:41 +00:00
le
6a3b6cb6cd MFC:
Finally bring in what was produced during Google SoC 2005:

  Add functions to rename objects and to move a subdisk from one drive
  to another.

Plus several whitespace/style fixes.
2005-11-26 11:06:11 +00:00
glebius
d0507213b8 Previous commit merged 1.145 and _a part of_ 1.142, and this part
broke ARP in RELENG_6. At this time merge 1.142 entirely.

Pointy hat to:	glebius
2005-11-26 10:51:23 +00:00
njl
35f08adab8 MFC 1.43: Acquire locks around call to acpi_cmbat_get_bif() 2005-11-26 07:37:40 +00:00
glebius
8c795db6e0 MFC 1.34 by yar:
Since carp(4) interfaces presently are kinda fake yet possess
  IP addresses, mark them with LOOPBACK so that routing daemons
  take them easy for link-state routing protocols.

  Reviewed by:    glebius
2005-11-25 14:57:38 +00:00
glebius
629ac5c1d2 MFC 1.38: MFOpenBSD 1.62:
Prevent backup CARP hosts from replying to arp requests, fixes strangeness
    with some layer-3 switches. From Bill Marquette.

  Tested by:      Kazuaki Oda <kaakun highway.ne.jp>
2005-11-25 14:54:59 +00:00
glebius
faad1c3c25 MFC:
Recognize Broadcom BCM5752 chip, that can be found in HP DC7600.

  PR:		kern/88940
  Submitted by:	Alexander Hausner
2005-11-25 14:43:12 +00:00
glebius
b7866a6d78 MFC 1.51:
Force this interface to be RUNNING.
2005-11-25 14:41:31 +00:00
glebius
630273a7cf MFC 1.145:
Rework ARP retransmission algorythm so that ARP requests are
  retransmitted without suppression, while there is demand for
  such ARP entry. As before, retransmission is rate limited to
  one packet per second. Details:
    - Remove net.link.ether.inet.host_down_time
    - Do not set/clear RTF_REJECT flag on route, to
      avoid rt_check() returning error. We will generate error
      ourselves.
    - Return EWOULDBLOCK on first arp_maxtries failed
      requests , and return EHOSTDOWN/EHOSTUNREACH
      on further requests.
    - Retransmit ARP request always, independently from return
      code. Ratelimit to 1 pps.

MFC 1.142:
  Use monotonic 'time_uptime' instead of 'time_second' as timebase
  for rt->rt_rmx.rmx_expire.
2005-11-25 14:38:19 +00:00
glebius
5baa2f368f MFC 1.89:
- Do not raise IFF_DRV_OACTIVE flag in vlan_start, because this
    can lead to stalled interface
  - Explain this fact in a comment.

  Reviewed by:    rwatson, thompsa, yar
2005-11-25 14:34:05 +00:00
glebius
3da94ed211 MFC 1.157:
Keep locks consistent before goto.

  Reported by:    pho
  Reviewed by:    mohans
2005-11-25 14:32:38 +00:00
glebius
d60eb7f43e MFC 1.70:
Fix several races between socket closure and node/hook
  destruction:
    - Backout 1.62, since it doesn't fix all possible
    problems.
    - Upon node creation, put an additional reference on node.
    - Add a mutex and refcounter to struct ngsock. Netgraph node,
      control socket and data socket all count as references.
    - Introduce ng_socket_free_priv() which removes one reference
      from ngsock, and frees it when all references has gone.
    - No direct pointers between pcbs and node, all pointing
      is done via struct ngsock and protected with mutex.
2005-11-25 14:26:40 +00:00
glebius
f85409be55 Sync with HEAD, merging the following:
revision 1.117
date: 2005/11/02 15:23:47;  author: glebius;  state: Exp;  lines: +47 -8
Fix two races which happen when netgraph is restructuring:
  - Introduce ng_topo_mtx, a mutex to protect topology changes.
  - In ng_destroy_node() protect with ng_topo_mtx the process
    of checking and pointing at ng_deadnode. [1]
  - In ng_con_part2() check that our peer is not a ng_deadnode,
    and protect the check with ng_topo_mtx.
  - Add KASSERTs to ng_acquire_read/write, to make more
    understandible synopsis in case if called on ng_deadnode.

Reported by:    Roselyn Lee [1]
----------------------------
revision 1.116
date: 2005/11/02 14:27:24;  author: glebius;  state: Exp;  lines: +106 -121
Rework the ng_item queueing on nodes:
  - Introduce a new flags NGQF_QREADER and NGQF_QWRITER,
    which tell how the item should be actually applied,
    overriding NGQF_READER/NGQF_WRITER flags.
  - Do not differ between pending reader or writer. Use only
    one flag that is raised, when there are pending items.
  - Schedule netgraph ISR in ng_queue_rw(), so that callers
    do not need to do this job.
  - Fix several comments.

Submitted by:   julian

As well as some lesser changes: ng_base.c 1.114, 1.113, 1.107, 1.118.
2005-11-25 14:23:27 +00:00
glebius
9bd69a95f0 Sync em(4) driver with HEAD, merging the following changes:
revision 1.83
date: 2005/11/09 08:43:18;  author: yongari;  state: Exp;  lines: +41 -38
Make em(4) work on big-endian architectures.
 - disable jumbo frame support on strict alignment architectures due
   to the limitation of hardware. The driver needs a fix-up code for
   RX side. The fix will show up in near future.
 - fix endian issue for 82544 on PCI-X bus. I couldn't test this as
   I don't have the NIC/hardware.
 - prefer PCIR_BAR to hardcoded EM_MMBA.
 - Properly checks for for 64bit BAR [1]
 - replace inl/outl with bus_space(9) [1]
 - fix endian issue on VLAN handling.
 - reorder header files and remove unnecessary one.

Reviewed by:		cognet
No response from:	pdeuskar, tackerman
Obtained from:		OpenBSD [1]

revision 1.84
date: 2005/11/09 15:23:54;  author: glebius;  state: Exp;  lines: +7 -3
- Introduce two more stat counters, counting number of RX
  overruns and number of watchdog timeouts.
- Do not log(9) RX overrun events, since this pessimizes
  things under load [1].
- Do not increase if->if_oerrors in em_watchdog(), since
  this leads to counter slipping back, when if->if_oerrors
  is recalculated in em_update_stats_counters(). Instead
  increase watchdog counter in em_watchdog() and take it
  into account in em_update_stats_counters().

revision 1.86
date: 2005/11/11 16:04:51;  author: ru;  state: Exp;  lines: +1 -1
- Store pointer to the link-level address right in "struct ifnet"
  rather than in ifindex_table[]; all (except one) accesses are
  through ifp anyway.  IF_LLADDR() works faster, and all (except
  one) ifaddr_byindex() users were converted to use ifp->if_addr.

- Stop storing a (pointer to) Ethernet address in "struct arpcom",
  and drop the IFP2ENADDR() macro; all users have been converted
  to use IF_LLADDR() instead.

revisions 1.85, 1.87
- Introduce tunables em.hw.txd and em.hw.rxd, which allow administrator
  to configure number of transmit and receive descriptors.
- Check em.hw.txd and em.hw.rxd against hardware limits [*] and require
  them to be multiple of 128.

revision 1.88
date: 2005/11/21 04:17:43;  author: yongari;  state: Exp;  lines: +121 -83
busdma cleanup for em(4).
 - don't force busdma to pre-allocate bounce pages for parent tag.
 - use system supplied roundup2 macro instead of rolling its own version.
 - TX/RX decriptor length should be multiple of 128. There is no
   no need to expand the size with the multiple of 4096.
 - don't create/destroy DMA maps in TX/RX handlers. Use pre-allocated
   DMA maps. Since creating DMA maps on sparc64 is time consuming
   operations(resource mananger overhead), this change should boost
   performance on sparc64. I could get > 2x speedup on Ultra60.
 - TX/RX descriptors could be aligned on 128 boundary. Aligning them
   on PAGE_SIZE is waste of resource.
 - don't blindly create TX DMA tag with size of MCLBYTES * 8. The size
   is only valid under jumbo frame environments. Instead of using the
   hardcoded value, re-compute necessary size on the fly.
 - RX side bus_dmamap_load_mbuf_sg(9) support.
 - remove unused macro EM_ROUNDUP and constant EM_MMBA.

Reviewed by:	scottl
Tested by:	glebius

revision 1.89
date: 2005/11/24 01:44:48;  author: glebius;  state: Exp;  lines: +131 -77
Merge in new driver version from Intel - 3.2.18.

The most important change is support for adapters based on
82571 and 82572 chips.

Tested on:	82547EI on i386
Tested on:	82540EM on sparc64

revision 1.90
date: 2005/11/24 15:13:47;  author: cognet;  state: Exp;  lines: +3 -1
Remember the bus_dmamap_t where we loaded the mbuf, and sync this map instead
of tx_buffer->map, or we could end up syncing the wrong map.
2005-11-25 14:11:59 +00:00
delphij
88a8009c9a MFC 1.260 (by ps): Fixed a panic that can happen when nfs_lookup() hits
an error.

RELENG_6_0 errata candidate.
2005-11-25 13:27:22 +00:00
rwatson
cd346681fb Merge uipc_usrreq.c:1.159 from HEAD to RELENG_6:
Correct a number of serious and closely related bugs in the UNIX domain
  socket file descriptor garbage collection code, which is intended to
  detect and clear cycles of orphaned file descriptors that are "in-flight"
  in a socket when that socket is closed before they are received.  The
  algorithm present was both run at poor times (resulting in recursion and
  reentrance), and also buggy in the presence of parallelism.  In order to
  fix these problems, make the following changes:

  - When there are in-flight sockets and a UNIX domain socket is destroyed,
    asynchronously schedule the garbage collector, rather than running it
    synchronously in the current context.  This avoids lock order issues
    when the garbage collection code reenters the UNIX domain socket code,
    avoiding lock order reversals, deadlocks, etc.  Run the code
    asynchronously in a task queue.

  - In the garbage collector, when skipping file descriptors that have
    entered a closing state (i.e., have f_count == 0), re-test the FDEFER
    flag, and decrement unp_defer.  As file descriptors can now transition
    to a closed state, while the garbage collector is running, it is no
    longer the case that unp_defer will remain an accurate count of
    deferred sockets in the mark portion of the GC algorithm.  Otherwise,
    the garbage collector will loop waiting waiting for unp_defer to reach
    zero, which it will never do as it is skipping file descriptors that
    were marked in an earlier pass, but now closed.

  - Acquire the UNIX domain socket subsystem lock in unp_discard() when
    modifying the unp_rights counter, or a read/write race is risked with
    other threads also manipulating the counter.

  While here:

  - Remove #if 0'd code regarding acquiring the socket buffer sleep lock in
    the garbage collector, this is not required as we are able to use the
    socket buffer receive lock to protect scanning the receive buffer for
    in-flight file descriptors on the socket buffer.

  - Annotate that the description of the garbage collector implementation
    is increasingly inaccurate and needs to be updated.

  - Add counters of the number of deferred garbage collections and recycled
    file descriptors.  This will be removed and is here temporarily for
    debugging purposes.

  With these changes in place, the unp_passfd regression test now appears
  to be passed consistently on UP and SMP systems for extended runs,
  whereas before it hung quickly or panicked, depending on which bug was
  triggered.

  Reported by:    Philip Kizer <pckizer at nostrum dot com>
2005-11-25 11:22:39 +00:00
njl
1b701f35fa MFC: acpi_battery.c 1.22, acpi_cmbat.c 1.42, acpi_smbat.c 1.2 and 1.3
Cache smbat battery states like cmbat (Original by ume@).  Only re-evaluate
_BIF when there is a notify and on boot.
2005-11-24 05:29:15 +00:00
jhb
ee240d82b4 MFC: Check for -1 using 0xffffffff rather than 0xffffff. 2005-11-23 19:06:53 +00:00
cvs2svn
2b0dd32330 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-11-22 19:17:43 +00:00
csjp
ba84b58b16 MFC revision 1.119
Giant push down
2005-11-22 02:12:08 +00:00
csjp
5a2b137be4 MFC revision 1.111
MFC revision 1.110
MFC revision 1.109

- Lock the object while traversing the list of it's backing objects
- Use the correct object while calculating offsets
- Conditionally pickup Giant if debug.mpsafevfs == 0 or if the file
  system is not marked as being MP safe.
2005-11-22 02:06:59 +00:00