57576 Commits

Author SHA1 Message Date
ariff
a9748277bd MFC:
Revision:

  1.39      src/sys/dev/sound/pci/hda/hdac.c

- Add codec id for ALC660 [1]
- Add codec id for AD1988B, along with fixing its line-in and other
  issues (with proper quirks). [2]

Submitted by:	[1] barbara.xxx1975@libero.it
             	[2] Oliver Brandmueller ob@e-Gitt.NET
2007-06-13 01:52:26 +00:00
jhb
b11ee0d368 MFC 1.30: Certain (bad) values of sack blocks can end up corrupting the
sack scoreboard.  Make the checks in tcp_sack_doack() more robust to
prevent this.
2007-06-12 19:21:54 +00:00
jhb
08caba1a80 MFC 1.28: Fix for a bug that causes SACK scoreboard corruption when the
limit on holes per connection is reached.
2007-06-12 19:20:13 +00:00
jhb
22914199b0 MFC 1.315: In the SYN_SENT case, Initialize the snd_wnd before the call to
tcp_mss().  The TCP hostcache logic in tcp_mss() depends on the snd_wnd
being initialized.
2007-06-12 18:53:32 +00:00
ariff
d0c038fa0f MFC:
Revisions:

  1.13      src/sys/dev/sound/pci/envy24.c
  1.2       src/sys/dev/sound/pci/envy24.h
  1.13      src/sys/dev/sound/pci/envy24ht.c
  1.5       src/sys/dev/sound/pci/envy24ht.h
  1.6       src/sys/dev/sound/pci/spicds.c
  1.4       src/sys/dev/sound/pci/spicds.h

Bring in a bunch of bug fixes and some code to support more chipsets.
Neither me nor Joel have access to any of this hardware, so all tests
have been made by Konstantin and Artem.  Commit message mostly written
by Konstantin.

envy24:
- Add test code to support rear line-in input on 'Terratec DMX 6fire'
  audio card.  This code is also intended to be used in the future for
  support of cards, that have I2C-to-GPIO expanders wired between the
  control line of the audio codec and the Envy24, however such cards
  are too complex and i can't add that support without hardware sample
  of such board, i've already tried and failed.

envy24ht:
- Add support for 'AudioTrak Prodigy HD2'.
- Add support for 'AudioTrak Prodigy 7.1 XT'.
- Add support for 'ESI Juli@' (Works ok, DAC volume is hard-coded for
  the time being, so 'mixer vol ...' doesn't work, only 'mixer pcm
  ...' works). [1]
- Fix bug in the init data for M-Audio Revolution 5.1, that
  results in distorted sound.
- Add software volume control (now 'mixer pcm' works, thanks to Ariff).
- Add support for more samples rates - 176.4kHz and 192kHz.
- Fix problem with the 192kHz samples rate playback when 24.576MHz
  crystal is used on the board instead of 49.152MHz crystal.

spicds:
- Add support for Asahi Kasei flagship DAC - AK4396 (used in AudioTrak
  Prodigy HD2).

Submitted by:	Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Tested by:	Artem Antonov [1]
2007-06-11 19:33:28 +00:00
njl
0fea200d19 MFC: add suspend method to stop Cx idling and fix a logic bug in per-CPU
Cx sysctl.
2007-06-11 18:54:09 +00:00
jinmei
f7b4cdb9db MFC:
cleanup about the reassembly structures and routine:
  - removed unused structure members
  - fixed a minor bug that the ECN code point may not be restored correctly

Approved by:    ume (mentor)

src/sys/netinet6/frag6.c:  	1.31
src/sys/netinet6/ip6_var.h:  	1.38
2007-06-11 17:04:10 +00:00
kib
a4eb58d102 Bump __FreeBSD_version for BOP_BDFLUSH MFC 2007-06-11 11:54:16 +00:00
kib
871318d35c MFC
rev. 1.521 of src/sys/kern/vfs_bio.c
rev. 1.477 of src/sys/sys/proc.h

Disable nesting of BOP_BDFLUSH().
2007-06-11 11:27:04 +00:00
kib
b75617bf6d MFC:
rev. 1.11 of src/sys/geom/geom_vfs.c
rev. 1.516 of src/sys/kern/vfs_bio.c
rev. 1.35 of src/sys/nfs4client/nfs4_vnops.c
rev. 1.272 of src/sys/nfsclient/nfs_vnops.c
rev. 1.195 of src/sys/sys/buf.h
rev. 1.18 of src/sys/sys/bufobj.h
rev. 1.73 of src/sys/ufs/ffs/ffs_extern.h
rev. 1.133 of src/sys/ufs/ffs/ffs_snapshot.c
rev. 1.324 of src/sys/ufs/ffs/ffs_vfsops.c

Avoid dealing with buffers in bdwrite() that are from other side of
snaplock divisor in the lock order then the buffer being written. Add
new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in
the bdwrite(). Default implementation, bufbdflush(), refactors the code
from bdwrite(). For ffs device buffers, specialized implementation is
used.

This commit changes KPI/KBI, thus recompilation of out of tree kernel
modules is required.

Approved by:	re (kensmith)
2007-06-11 10:53:48 +00:00
jinmei
f3d7053114 MFC:
fixed memory leak for IPv6 multicast membership information associated
with interface addresses.

Approved by:    gnn (mentor)

src/sys/netinet6/in6.c:			1.71
src/sys/netinet6/in6_ifattach.c:	1.36
src/sys/netinet6/in6_var.h:		1.31
2007-06-10 17:17:55 +00:00
dwmalone
828724ce61 MFC 1.30: Help ng_fec deal with multicast addresses.
This isn't exactly the same patch as in -current as some of the
in-kernel multicast API is different.
2007-06-10 07:41:25 +00:00
dwmalone
5d78f699f3 MFC 1.209: Don't verify UDP IPv4 checksum in-place. 2007-06-10 07:29:08 +00:00
ariff
cff0f46172 MFC: (revision 1.9)
Fix (enable) phone out for laptops with ALC655, specifically
for Amilo Pro V2055.

PR:		kern/113101
Submitted by:	konrad@egipt-medytacje.pl
2007-06-08 17:33:38 +00:00
jhb
9d24797190 MFC 1.139: Fix a snafu in the changes in 1.138.
PR:		kern/113387
Submitted by:	Andre Albsmeier
2007-06-08 16:51:20 +00:00
bz
4ad973ddfb MFC:
1.200 sbin/ipfw/ipfw.8, 1.104 sbin/ipfw/ipfw2.c
  1.110 sys/netinet/ip_fw.h, 1.164 sys/netinet/ip_fw2.c

  Add support for filtering on Routing Header Type 0 and
  Mobile IPv6 Routing Header Type 2 in addition to filter
  on the non-differentiated presence of any Routing Header.
2007-06-07 09:50:53 +00:00
jhb
d7d8ad2d28 MFC: Add support for kernel modules with a single PT_LOAD section. 2007-06-06 21:43:35 +00:00
jhb
8cb531edb0 MFC 1.176: Add vm map and object locking to each_writable_segment(). 2007-06-06 21:30:42 +00:00
glebius
955bdccfc0 Merge 1.47:
Make it possible that carpdetach() unlocks on return. Then, in
  carp_clone_destroy() we are on a safe side, we don't need to
  unlock the cif, that can me already non-existent at this point.

  Reported by:    Anton Yuzhaninov <citrin rambler-co.ru>
2007-06-06 16:20:50 +00:00
ambrisko
2ff6b0a1a2 MFC all of the remaining changes. This brings over improved ioctl
support and makes MegaCli work on amd64.  Scott supplied patches
to make the ioctl commands not block the controller.  MegaCli
still has some issues with our emulation and create some bogus
commands so flashing doesn't work.

This should loosely resolve 113232.  We were waiting on some other
fixes to go into -current before migrating this to -stable.

PR:		113232
Submitted by:	scottl
2007-06-06 15:59:29 +00:00
thompsa
199098722d MFC r1.99
Remove a KASSERT intended to help the developer, the condition is no longer
  valid since the span code was added.
2007-06-06 00:59:20 +00:00
scottl
d0b88f4934 Fix last-minute typo. 2007-06-05 22:54:01 +00:00
scottl
2b2eb7e668 MFC: MPI 1.5.16, SAS topology scan, SATA WC enable tunable 2007-06-05 21:32:57 +00:00
scottl
f2890bf10c Add build glue for the mfip driver. 2007-06-05 21:31:11 +00:00
scottl
710aac1295 Add the CAM passthrough driver for MFI 2007-06-05 21:27:22 +00:00
jfv
6eeab22219 MFC of a couple small fixes: 82571 LAA reset workaround,
and invalid eeprom problem on some PCI-E systems.
2007-06-05 17:44:01 +00:00
davidch
349fe0e661 Merged changes from HEAD, including:
- Updated copyright date to 2007.

- Tested with BCM5706 A3.

- Added ID for BCM5708 B2.

- Removed unused driver version string.

- Modified BCE_PRINTF macro to automatically fill-in the sc pointer.

- Fixed a kernel panic when the driver was loaded as a module from the
command-line because the MII bus pointer was null (i.e. the MII bus
hadn't been enumerated yet).

- Added fix proposed by Vladimir Ivanov <wawa@yandex-team.ru> to prevent
driver state corruption when releasing the lock during the ISR in
bce_rx_intr() to send packets up the stack.

- Added new TX chain and register read sysctl interfaces for debugging.

- Cleaned up formatting for various other debug routines.

- Added a new statistic maintained by firmware which tracks the number
of received packets dropped because no receive buffers are available.
2007-06-05 01:56:08 +00:00
ariff
4edf02bb32 MFC:
Simmilar, but different treatment:

Insert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) .
Things can get ugly without it due to uninitialized class.

err.. perhaps we should teach devclass_get_maxunit() to return -1 ?
2007-06-04 09:06:05 +00:00
cvs2svn
c1967faca6 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-06-04 02:50:31 +00:00
philip
5c593e199d MFC: Add support for Asus A3N laptops.
Submitted by:	Holger Jorra <holger_jorra -at- gmx.net>
2007-06-03 22:44:23 +00:00
yongari
7f7814fa00 MFC if_re.c, 1.84 to RELENG_6
The TCP checksum offload handling in the 8111B/8168B and 8101E PCIe can
  apparently be confused by short TCP segments that have been manually
  padded to the minimum ethernet frame size. The driver does short frame
  padding in software as a workaround for a bug in the 8169 PCI devices
  that causes short IP fragments to be corrupted due to an apparent
  conflict between the hardware autopadding and hardware IP checksumming.

  To fix this, we avoid software padding for short TCP segments, since
  the hardware seems to autopad and checksum these correctly (even the
  older 8169 NICs get these right). Short UDP packets appear to be
  handled correctly in all cases. This should work around the IP header
  checksum bug in the 8169 while not tripping the TCP checksum bug in
  the 8111B/8168B and 8101E.

PR:	112089
2007-06-03 07:47:40 +00:00
yongari
d2803fe7e8 MFC if_re.c, 1.81 to RELENG_6
Fix re_setmulti() so that it works correctly for PCIe chips where
  the multicast hash table are in reverse order compared to older
  devices.

PR:	112089
2007-06-03 07:43:15 +00:00
njl
f7ead5733e MFC: remove extraneous "can't get _ADR" messages. 2007-06-02 19:15:58 +00:00
des
7cad22fd05 MFC: various improvements, including fileno allocation bug fix 2007-06-01 20:56:18 +00:00
simokawa
e97ef18189 Fix a breakage with "MODULES_WITH_WORLD=true make buildworld".
PR: kern/113204
2007-06-01 00:50:59 +00:00
simokawa
5bb43889d2 MFC: rev. 1.7
Change default value of hw.firewire.dcons_crom.force_console to 0
for least astonishment.
2007-05-30 12:23:38 +00:00
simokawa
88ec1ee264 MFC rev. 1.13: Make compile without GDB option. 2007-05-30 12:22:08 +00:00
thompsa
a4c17fc419 MFC r1.13, 1.14
- Fix a mbuf leak where sc_start fails or the protocol is none.
- packets on the input interface were counted twice
- Use IFQ_HANDOFF instead of rolling our own
2007-05-30 08:47:15 +00:00
gallatin
3ab81827ae MFC the mxge 10GbE driver. 2007-05-29 16:37:16 +00:00
kib
70815715b0 MFC rev. 1.309 of sys/kern/kern_descrip.c,
rev. 1.438 of sys/kern/vfs_syscalls.c,
    rev. 1.77 of sys/sys/filedesc.h:
Mark the filedescriptor table entries with VOP_OPEN being performed for them
as UF_OPENING. Disable closing of that entries. This should fix the crashes
caused by devfs_open() (and fifo_open()) dereferencing struct file * by
index, while the filedescriptor is closed by parallel thread.

RELENG_6 testing by:	Mark Kane <mark at mkproductions org>
2007-05-29 10:09:43 +00:00
ariff
71c361e343 Enable 4 virtual playback channels by default, since the last stumbling
block (snd_ich) has been dealt with.
2007-05-28 21:18:06 +00:00
ariff
9612307e26 MFC (revision 1.75)
* Fix possible integer overflow during speed calibration. Delay final
  initialization (pcm_setstatus) after calibration finished.

PR:		kern/100169
Tested by:	Kevin Overman <oberman@es.net>

* Fix (or rather workaround) Intel 440MX Errata #36
  - http://www.intel.com/design/chipsets/specupdt/245051.htm

AC97 Soft Audio and Soft Modem Master Abort Errata

Issue:
  Use of either soft audio or soft modem on an Intel® 82443MX PCISet
  based platform running a 100 MHz Processor System Bus and an AC97 codec
  may result in failures. The system continues to function normally while
  the AC97 hardware may not resume and may require a cold-boot to
  recover. As a result of the failure, the Master Abort Status bit will
  be set in the audio or modem function PCI header space.

Workaround:
  Force uncacheable DMA on both BDL and pcm buffers.

Tested by:	Emil Holmstr|m <emil@linux.se>
2007-05-28 21:07:41 +00:00
kmacy
cda8891538 m_sanity isn't available on RELENG_6 - don't define with INVARIANTS 2007-05-28 07:37:47 +00:00
kmacy
99595ac722 add new files to build 2007-05-28 07:08:44 +00:00
kmacy
0c385f1243 - Update to 1.0.0.86 of vendor source
- add some performance improvements for small packet workloads
  - Double the number of descriptors that a single call to send can use
  - Quadruple the number of descriptors that can be reclaimed per pass
  - only run reclaim twice per second
  - increase coalesce timer from 3.5us to 5us
- set OACTIVE so interface doesn't stall when the ring fills

Sponsored by: Chelsio Inc.
2007-05-28 06:26:07 +00:00
simokawa
2ee100cc1e MFC: Make sure fwsid is not NULL. 2007-05-28 04:36:37 +00:00
simokawa
8953b3d49b MFC: Simplify the bus probe routin using a kthread. 2007-05-28 04:33:43 +00:00
simokawa
2443486c68 MFC: Include stand.h for loader. 2007-05-28 04:31:23 +00:00
cvs2svn
b2848a9d10 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-05-27 04:39:30 +00:00
njl
da22ba975b MFC: add the debug.acpi.suspend_bounce sysctl. 2007-05-26 00:48:55 +00:00