55592 Commits

Author SHA1 Message Date
jhb
102dd80729 MFC: Fix issues with various Compaq boxes such as some DL360s (and possibly
some DL380s):
- Release the pci_link acpi serial lock if a link device has no actual
  links.
- Don't panic if a _PRT entry references an invalid link on a link device
  unless we actually try to route an interrupt using that _PRT entry.
2006-01-10 21:37:18 +00:00
glebius
c374350f42 MFC:
Check for IFF_DRV_RUNNING in the interrupt loop.

  Reported & tested by:   Martin P. Hansen <mph lima.dyndns.dk>
2006-01-10 10:24:05 +00:00
glebius
65952b1976 MFC 1.11:
In ng_netflow_disconnect() check whether we are working with "iface"
  or with "out" hook, and clear the right pointer.

  Reported by:    Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>
2006-01-10 10:22:22 +00:00
glebius
a5c4d12c38 MFC 1.55:
When in rev. 1.47 cardbus_alloc_resources() function was moved from
  cardbus_cis.c to this file, some code was not merged and thus resource
  list entries were invalid. They didn't have a resources attached to
  them.
    However, the problem was masked for some time later, because newer
  resources list entries were added to the head of the list, and
  resource_list_find() always returned the first matching resource list
  entry. Usually the underlying driver allocated a valid resource and
  added it to the head of the list, and invalid one wasn't used.
    In rev. 1.174 of subr_bus.c the sorting of resource list entries was
  reversed demasking the problem in cardbus_alloc_resources().
    This commit fixes the problem returning back some code from
  cardbus_cis.c, pre-1.49 revisions.

  PR:                     kern/87114
  PR:                     kern/90441
  Hardware provided by:   Vasily Olekhov <olekhov yandex.ru>
  Reviewed by:            imp
2006-01-10 10:17:56 +00:00
glebius
df3c4d7b56 MFC 1.62:
Add \n to log() message.
2006-01-10 10:13:43 +00:00
glebius
801f2fea18 MFC:
Implement an upper limit for packets per second sent by node.
2006-01-10 10:11:48 +00:00
glebius
90c1b77318 MFC 1.93 - 1.97, fixing suspend/resume on some laptops.
PR:		kern/89825
2006-01-10 10:09:03 +00:00
ariff
608c99952d MFC: Fix obvious capabilities (rate) violation. Should be 5500, not 4000. 2006-01-10 01:01:24 +00:00
sobomax
34c0164bb4 MFC: allow execution of ET_DYN elf binaries (aka shared libraries) when
emulating architectures that allow this (Linux so far).

To preserve kernel modules ABI, unlike the version commited into the trunk,
which adds new flag field into Brandinfo structure for this purpose, this
one checks if brand field of Brandinfo matches ELFOSABI_LINUX.

PR:		kern/87615
Submitted by:	Marcin Koziej <creep@desk.pl>
2006-01-10 00:52:07 +00:00
ariff
5fdd501b2a MFC: Add codec id support for Analog Device AD1986 AC'97 codec.
Submitted by:	UMENO Takashi <umeno at rr.iij4u.or.jp>
PR:		kern/80234
2006-01-09 02:06:42 +00:00
ariff
b687245e4f MFC: Fix locking violation, causing frantic diagnostic messages during boot.
Reported by:	[1] julian

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003408.html
2006-01-09 02:06:17 +00:00
maxim
ffe68f436b MFC rev. 1.41: typo fix. 2006-01-08 20:28:48 +00:00
davidxu
6d44b4ab34 MFC following revisions:
kern_sig.c	revision 1.319
	sys_process.c	revision 1.134

	Avoid kernel panic when attaching a process which
	may not be stopped by debugger, e.g process is dumping core.
2006-01-07 11:53:49 +00:00
cvs2svn
3dedb6104a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-01-06 20:02:45 +00:00
truckman
d53465b76e Diff reduction to HEAD:
Call fill_kinfo_proc_only() instead of fill_kinfo_proc()
        before calling fill_kinfo_thread(), because fill_kinfo_proc()
        calls both fill_kinfo_proc_only() and fill_kinfo_thread().
        This is a minor optimization and there should be no change
        in functionality.

        Leading whitespace cleanup.
2006-01-05 20:23:10 +00:00
dumbbell
a7ad441477 MFC:
revision 1.2
  Don't hold a reference to the disk vnode for each inode.

Reviewed by:	mux (mentor)
2006-01-05 19:37:39 +00:00
flz
a0b0c843bd MFC:
Add a hid blacklist quirk.

      src/sys/dev/usb/usbdevs: rev 1.240
      src/sys/dev/usb/usb_quirks.c: rev 1.45
      src/sys/dev/usb/uhid.c: rev 1.78
      src/sys/dev/usb/usb_quirks.h: rev 1.20

Approved by:	pjd
2006-01-05 16:46:10 +00:00
jkoshy
d321ee35c7 MFC r1.1340: "Refer readers to the hwpmc(4) manual page where the additional
architecture specific kernel configuration options needed for
 hwpmc are documented."
2006-01-05 03:05:38 +00:00
ariff
5498ddd993 MFC: Fix broken capabilities, causing failure during channel reset.
Its min/max speed were off by -/+ 1000.

Reported by:	[1] Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
            	[2] barner

[1] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2005-December/003189.html
[2] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2006-January/003422.html
2006-01-05 00:29:20 +00:00
sam
9b6df8d651 parse nmount options enough to use a current mount binary; this
allows people to boot releng_6 kernels with a current user install
(for now at least)

Reviewed by:	rodrigc
2006-01-04 22:18:10 +00:00
truckman
b48afbe184 MFC cd9660_lookup.c 1.42
Original commit message:
  Log:
  Apply the same fix to a potential race in the ISDOTDOT code in
  cd9660_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 cd9660 as MPSAFE.

  Requested by:   bde
2006-01-04 19:35:24 +00:00
truckman
9846c1c6a5 MFC ext2_lookup.c 1.51
Original commit message:
  Log:
  Apply the same fix to a potential race in the ISDOTDOT code in
  ext2_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 ext2fs as MPSAFE.

  Requested by:   bde
  MFC after:      2 weeks
2006-01-04 19:32:00 +00:00
truckman
d344122606 MFC subr_witness.c 1.198 and 1.200.
Original commit messages:

  Log:
  Track all lock relationships instead of pruning direct relationships
  if an indirect relationship exists (keep both A->B->C and A->C).
  This allows witness_checkorder() to use isitmychild() instead of
  the much more expensive isitmydescendant() to check for valid lock
  ordering.

  Don't do an expensive tree walk to update the w_level values when
  the tree is updated.  Only update the w_level values when using the
  debugger to display the tree.

  Nuke the experimental "witness_watch > 1" mode that only compared
  w_level for the two locks.  This information is no longer maintained
  at run time, and the use of isitmychild() in witness_checkorder
  should bring performance close enough to the acceptable level that
  this hack is not needed.

  Report witness data structure allocation statistics under the
  debug.witness sysctl.

  Reviewed by:    jhb
  MFC after:      30 days

  Log:
  Relocate witness_levelall(), witness_leveldescendents(), and
  witness_displaydescendants() so that they are protected by
  "#ifdef DDB/#endif" to unbreak kernels not using "option DDB".

  MFC after:      3 weeks
2006-01-04 19:27:22 +00:00
ariff
777c4917d4 MFC: Fix another xruns counting logic, this time, for recording. 2006-01-04 00:51:01 +00:00
thompsa
6c8496e9b7 MFC: sync code to HEAD
- whitespace
 - add net.link.bridge.pfil_onlyip
 - use time_uptime
2006-01-03 21:47:34 +00:00
jhb
0f303e9a3c MFC: Fix a deadlock in the recently added printf to warn about spin locks
that are not in the static order list.
2006-01-03 20:43:01 +00:00
emaste
3d086f3f57 MFC kern_clock.c:1.181
In watchdog_config enable the software watchdog iff the WD_ACTIVE flag
  is set.  When watchdogd(1) is terminated intentionally it clears the
  bit, which should then disable it in the kernel.

PR:             kern/74386
Submitted by:   Alex Hoff <ahoff at sandvine dot com>
Approved by:    rwatson (mentor)
2006-01-03 16:43:33 +00:00
thompsa
d2572297a0 MFC: EtherIP support, adding gif interfaces to bridges. 2006-01-03 08:15:33 +00:00
yongari
9379cbc9e6 MFC 1.20 to RELENG_6.
Remove "nodevice snd_es137x" as it is supported now.
2006-01-03 06:35:16 +00:00
sam
69d4b44077 MFC 1.26: unbreak handling of turboG channels 2006-01-01 22:33:45 +00:00
davidxu
367aa83314 MFC revision 1.236:
Add code to report zombie state.
2006-01-01 08:31:48 +00:00
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