58177 Commits

Author SHA1 Message Date
mav
788ab66c9b MFC ng_pptpgre.c rev. 1.41-1.42
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.
2008-04-07 10:33:28 +00:00
scottl
429cad3e68 Merge rev 1.20:
Fix a buffer overflow in the processing of various SCSI commands.  This
  likely fixes a great number of weird problems that have been reported
  with this driver.
2008-04-04 16:42:17 +00:00
jhb
d7dd67e510 MFC: Make it possible to continue working after calling doadump() manually. 2008-04-03 19:40:58 +00:00
remko
e7694ccc3f MFC rev 1.212 ata-chipset.c
MFC rev 1.83 ata-pci.h

  Add proper support for the SATA/AHCI part of IXP[67]00

Approved by:    imp (mentor, implicit), sos
2008-04-01 18:22:37 +00:00
emaste
4581616dd5 Acquire Giant in aac_cam_event for xpt_release_simq. Not necessary with
MPSAFE CAM so not an MFC.
2008-04-01 00:09:29 +00:00
emaste
076d3593ba MFC aac.c r1.126:
Do not recursively acquire aac_io_lock in aac_ioctl_event.
2008-03-31 23:16:05 +00:00
emaste
d98ae2e1a9 MFC aac_cam.c 1.30:
Merge from Adaptec a 64 bit fix and a workaround for luns != 0
  returning CAM_SEL_TIMEOUT on SAS controllers, which prevented
  passthrough devices from being created.
2008-03-31 20:11:46 +00:00
emaste
4bcb5fb6b2 MFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:
Add family support to allow the driver to attach to new devices that
  share the same interface.
2008-03-31 20:03:31 +00:00
emaste
6ab558f96b MFC aac.c 1.130:
Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by: Adaptec
2008-03-31 19:50:53 +00:00
emaste
b532a21f6a MFC aac.c 1.131:
Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init
2008-03-31 17:04:10 +00:00
emaste
9572309011 MFC aac.c 1.121:
Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669
2008-03-31 14:44:08 +00:00
emaste
88ed128a3a MFC aac.c r1.133:
Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec
2008-03-28 18:13:38 +00:00
emaste
9c6471edd3 MFC aac.c r1.127
Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.
2008-03-27 20:47:21 +00:00
kib
6d49f1490b MFC
rev. 1.682 of sys/amd64/amd64/machdep.c
rev. 1.16  of sys/amd64/ia32/ia32_signal.c
rev. 1.33  of sys/amd64/linux32/linux32_sysvec.c
rev. 1.666 of sys/i386/i386/machdep.c
rev. 1.152 of sys/i386/linux/linux_sysvec.c
rev. 1.39  of sys/i386/svr4/svr4_machdep.c
rev. 1.402 of sys/pc98/pc98/machdep.c

Modify the signal handler frame setup code to clear the DF {e,r}flags
bit on the amd64/i386 for the signal handlers.
2008-03-27 13:53:52 +00:00
lulf
e887aa30ce MFC Revision 1.27
- Fix a memory leak when re-discovering a gvinum configuration.

Approved by:    pjd (mentor)
2008-03-26 16:33:57 +00:00
emaste
5cfb50446a MFC aac.c r1.123:
Dequeue all events in aac_release_command (instead of just one)
  so that there's no risk of them getting stranded.
2008-03-26 14:46:43 +00:00
emaste
a3a661cbbc MFC aac.c r1.128:
Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.
2008-03-26 14:22:22 +00:00
remko
bd2ca675fb MFC rev 1.9 drm_pciids.h
MFC rev 1.7 i915_dma.c

  Add the i915 GME device to DRM.

  PR:             kern/121808
  Submitted by:   Volker Werth <volker at vwsoft dot com>
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      3 days

Approved by:	imp (mentor, implicit)
2008-03-24 10:43:41 +00:00
jhb
664b0cf23f MFC: Use the SMAP data from the loader if it is provided. 2008-03-21 15:40:33 +00:00
jhb
303513927d MFC: Add constants for the different memory types in the SMAP table and
use the SMAP types and constants from <machine/pc/bios.h> in the boot code.
2008-03-21 15:34:39 +00:00
jhb
1d8e189fb2 MFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
hangs on boot and shutdown.
2008-03-19 16:39:07 +00:00
jhb
b1769b65e6 MFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
sized MTRR registers.
2008-03-19 16:37:24 +00:00
jhb
144b6820dc MFC: Break up the logic in the mem_drvinit routines. 2008-03-19 16:33:58 +00:00
jhb
79661bdbd0 MFC: Minimize diffs with i686_mem.c. 2008-03-19 16:31:32 +00:00
jhb
aca442d36a MFC: Add constants for the various fields in MTRR registers and apply
style(9).  No functional changes.
2008-03-19 16:29:07 +00:00
piso
fddf8af542 MFC: explicitate newpacket size.
Bug pointed out by: many
Pointy hat to: me :(
2008-03-19 11:50:45 +00:00
yongari
8e897decf1 MFC icsphy(4) to RELENG_6.
icsphy(4) is required to support PHYs found on Xbox and VIA Rhine
ethernet controllers.

PR:	kern/121459
2008-03-19 01:11:39 +00:00
jhb
9fd1df4b9a MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode. 2008-03-18 17:44:28 +00:00
mav
56502c9d89 MFC:
Improve apply callback error reporting:
Before this patch callback returned result of the last finished call chain.
Now it returns last nonzero result from all call chain results in this request.

As soon as this improvement gives reliable error reporting, it is now possible
to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses
of request-response operations. That workaround was responsible for returning
ENOBUFS errors to completely unrelated requests working at the same time
on socket.
2008-03-18 17:39:42 +00:00
mav
fcb865fb9a MFC rev. 1.25
Add session ID hashing to speedup incoming packets dispatch in case
of many connections working via the same tunnel. For example, in case
of full "client <-> LAC <-> LNS" setup.
2008-03-18 17:33:03 +00:00
piso
4d4b3aeee7 MFC Revision 1.25:
Don't abuse stack space while in kernel land, use heap instead.

PR:	kern/118432
2008-03-18 14:39:05 +00:00
yongari
2f69c362af MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6:
Fix link state handling in bfe(4).
   o conversion to callout(9) API.
   o add a missing driver lock in bfe_ifmedia_sts().
   o use our callout to drive watchdog timer.
   o restart Tx routine if pending queued packets are present in
     watchdog handler.
   o unarm watchdog timer only if there are no queued packets.
   o don't blindly reset phy and let phy driver handle link change
     request in bfe_init_locked().
   o return the status of mii_mediachg() to caller in
     bfe_ifmedia_upd(). Previously it always returned 0 to caller.
   o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE
     in bfe_start_locked().
   o implement miibus_statchg method that keeps track of current
     link state changes as well as negotiated speed/duplex/
     flow-control configuration.
     Reprogram MAC to appropriate duplex state. Flow-control
     configuration was also implemented but commented out at the
     moment. The flow-control configuration will be enabled again
     after we have general flow-control framework in mii layer.
2008-03-18 02:17:36 +00:00
yongari
fda0556ed2 MFC if_lge.c rev 1.53 to RELENG_6:
Plug memory leak in jumbo buffer allocation failure path.
  Patch in the PR was modified to check active jumbo buffers in use
  and other possible jumbo buffer leak.

  Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack
  of driver lock in local jumbo buffer allocator. Either introduce
  a new lock to protect jumbo buffer or switch to UMA backed page
  allocator for jumbo frame is required.

  I've removed informational device_printf in lge_free_jumbo_mem as
  lge_dev member variable in softc does not exist on RELENG_6.
  if_printf can't be used as sc->lge_ifp could be NULL.

  PR:	kern/78072
2008-03-18 02:01:21 +00:00
yongari
78d61a1d36 MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
To overcome hardware checksum offload bug msk(4) used to compute
  TCP/UDP checksum in driver for short frames. For frames that requires
  hardware VLAN tag insertion, the checksum offload trick does not
  work due to changes of checksum offset in mbuf after the VLAN tag.

  Disable hardware checksum offload for VLAN interface to fix the bug.
2008-03-18 01:33:47 +00:00
yongari
d9c3b930aa MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
Workaround GMAC hardware hang of Yukon II on the receipt of pause
  frames. This bug seems to happen on certain hardware model/revision
  (e.g. 88E8053) but it's not identified which hardwares are affected.
  Revision 1.4 of if_mskreg.h was not enough to workaround the bug.
  To workaround it, inrease GMAC FIFO threshold by one FIFO word to
  flush received pause frames.
2008-03-18 01:27:15 +00:00
rpaulo
4bd774d0b3 MFC r1.71:
Some PIIX4 chipsets need to be told to generate Stop Breaks by
 setting
 the appropriate bit in the DEVACTB register.
 This change allows the C2 state on those systems to work as expected.

 Reviewed by:    njl
 Submitted by:   Andriy Gapon <avg at icyb.net.ua>
2008-03-17 19:57:21 +00:00
jhb
ee63d7e78a MFC: Use cpu_feature2 and don't free anything in detach. 2008-03-17 18:31:06 +00:00
jhb
617495c5d4 MFC: Calculate the number of pages the GATT spans instead of assuming it
always spans 33 pages.
2008-03-17 18:27:23 +00:00
jhb
8dbb58f339 MFC: Add support for the BCM5722. 2008-03-17 18:24:04 +00:00
jhb
3ca0754306 MFC: Force an explicit dependency on opt_global.h for all module object
files.
2008-03-17 18:12:13 +00:00
jhb
0e5c8de59c MFC: Display the correct /boot.config file contents after parsing it. 2008-03-17 18:04:59 +00:00
jhb
9c82fd4f0f MFC: Remove the 'needbounce' variable from _bus_dmamap_load_buffer(). 2008-03-17 17:33:32 +00:00
alfred
4ca8b29bef In calcru, we make sure the thread's state is correct, however we
do not emit the thread or proc information making debugging this
assertion difficult.

Emit the thread/proc that caused the KASSERT to fail to ease debugging.

Note: this assert does not exist in later branches of FreeBSD.
2008-03-15 03:20:53 +00:00
emaste
977c485418 Honour mpsafe_vfs=0 in softdep_flush. This is basically a MFC of revision
1.206, except that Giant remains unconditionally acquired in the #ifdef
QUOTA case here (as QUOTA-enabled UFS on RELENG_6 is not MPSAFE).

Reviewed by:	kib
2008-03-14 15:25:44 +00:00
csjp
519bf56805 MFC revision 1.25 -- Make sure we return EINVAL for invalid commands 2008-03-13 13:53:20 +00:00
cognet
49273f3e8c MFC rev 1.6:
date: 2008/03/06 22:27:35;  author: cognet;  state: Exp;  lines: +3 -1
MFi386:
revision 1.6
date: 2004/08/21 18:50:34;  author: alc;  state: Exp;  lines: +3 -1
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin or
copyout fails.

Obtained from: DragonFlyBSD

Spotted out by: Mark Tinguely
2008-03-12 13:51:51 +00:00
rwatson
526e2cbe38 Merge NOTES:1.1475 from HEAD to RELENG_6:
HZ now defaults to 1000 on many architectures, so update NOTES to reflect
  that.

  PR:             113670
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:33:06 +00:00
mav
9025c17b0c MFC rev. 1.23-1.24
To avoid control data losses, do not acknowledge recieving of control packet
if netgraph reported error while delivering to destination.
Reset 'next send' counter to the last requested by peer on ack timeout,
to resend all subsequest packets after lost one again without additional hints.
2008-03-11 19:14:10 +00:00
mav
c3331adffe MFC rev. 1.61
Send only one incoming notification at a time to reduce queue
trashing and improve performance.
Remove waitflag argument from ng_ksocket_incoming2(), it means nothing
as function call was queued by netgraph.
Remove node validity check, as node validity guarantied by netgraph.
Update comments.
2008-03-11 19:04:42 +00:00
emaste
baf3e27b7d MFC minor cleanups:
ffs_softdep.c 1.210
  Add a newline to the printf message.

ffs_softdep.c 1.214 (part)
  Update comment to match the DIAGNOSTIC -> INVARIANTS change.
2008-03-11 15:14:31 +00:00