Commit Graph

56379 Commits

Author SHA1 Message Date
mjacob
ce38303e57 MFC: Fixes related for VMWare. 2006-06-27 18:12:36 +00:00
wpaul
6640c89228 MFC updates to the re(4) driver from -current 2006-06-26 20:44:34 +00:00
mjacob
c5e8c5905e MFC 1.162: Grumble. VMWare ESX and VMWare WorkStation have *slightly*
different inquiry data (pointlessly different I might add). Pick
the common parts.
2006-06-26 05:42:54 +00:00
iedowse
3de7d79a42 MFC 1.47: increment the disk block offset after writing, not before.
This fixes filesystem corruption when nextboot.conf is located after
cylinder 1023.

PR:		bin/98005
2006-06-26 01:44:41 +00:00
iedowse
5666262af1 MFC: implement umass_cam_poll() and add a missing ohci_waitintr()
call so that polled operation works.

PR:		usb/93720
2006-06-26 00:31:25 +00:00
marcel
6affff8115 Sync with HEAD: $FreeBSD$ cleanups. 2006-06-25 19:09:51 +00:00
marcel
3f527c928e MFC 1.55: Improve handling of IPI_STOP. 2006-06-25 19:09:04 +00:00
marcel
2f0796e78b MFC 1.208: Identify the dual-core Montecito. 2006-06-25 19:07:51 +00:00
mjacob
bf5c32871a MFC 1.161: VMware disk volumes are only on LUN 0, and
some VMware HBAs have known bugs with commands sent to
other than LUN 0.
2006-06-25 02:03:18 +00:00
oleg
f361b24e4b MFC src/sys/netinet/ip_fw2.c rev.1.133:
install_state() should properly initialize 'addr_type' field of newly created
flows for O_LIMIT rules.

MFC src/sbin/ipfw/ipfw2.c rev.1.90 (mlaier):

Print dynamic rules for IPv6 as well.

PR:		bin/98349
2006-06-24 06:38:39 +00:00
oleg
216499f76e MFC rev.1.24:
1) Fix mii_phy_tick():
   Current code does not report link loss correctly - when link goes down,
   mii_phy_tick() will notice that with up to mii_anegticks delay.
   If link goes up during this delay then link flapping will be unnoticed
   by driver.

2) mii_phy_add_media(): initialize sc->mii_anegticks for 10/100 media

3) Use MII_ANEGTICKS/MII_ANEGTICKS_GIGE defines instead of hardcoded values.
2006-06-24 06:17:07 +00:00
oleg
66bedb527d MFC rev.1.18:
Introduce MII_ANEGTICKS and MII_ANEGTICKS_GIGE defines.
(How many ticks should we wait before retrying autonegotiation process).
2006-06-24 06:14:24 +00:00
cognet
4c62b8b908 MFC: Use a 64 bits time_t for arm. For Releng6, this also require to use a
time_t instead of a long for the tv_sec field of the struct timeval (for
arm only).
This is a big ABI breakage, but there's no FreeBSD/arm RELENG6 users beside
me as far as I know, so it's better if it happens now, when I'm the only
one to get annoyed. Without this, we couldn't load 6 binaries on 7.
2006-06-23 23:41:05 +00:00
cognet
ab5a937744 MFC: Bring AT91RM92 support. 2006-06-23 23:35:36 +00:00
cognet
77aebf88d8 MFC: Bring in the latest rev for locore.S from HEAD (rev 1.14), needed for
at91rm92 support.
2006-06-23 23:31:40 +00:00
cognet
32ec471ec3 MFC rev 1.3: bring in the ability to build pure binary kernels. 2006-06-23 23:29:52 +00:00
cognet
3378f8d578 MFC rev 1.10 and 1.11 (prototype arm9_setup and don't use an insane amount
of shdr/phdr on the stack).
2006-06-23 23:29:01 +00:00
cvs2svn
0669779854 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-06-23 23:07:12 +00:00
cognet
5931684758 MFC: Try to honor BUS_DMA_COHERENT. 2006-06-23 17:42:33 +00:00
cognet
166b0dc706 MFC: a bunch of fixes/enhancements for the pmap subsystem. 2006-06-23 17:41:02 +00:00
cognet
b414491840 MFC: Enable FIQs as well as IRQs if FIQ were previously enabled.
Decrease p->p_lock before going out if vm_fault() returned 0.
2006-06-23 17:39:57 +00:00
cognet
58b23295c5 MFC: Elf trampoline for arm. 2006-06-23 17:38:52 +00:00
cognet
d45511427b MFC: Better arm9 support. 2006-06-23 17:38:09 +00:00
anholt
1b04a1b447 MFC r1.36:
Add support for allocating one larger than page-sized contiguous block of memory
with a physical address.  This is used for hardware ARGB cursor support on newer
chipsets.
2006-06-23 17:10:25 +00:00
cognet
067f42df3d MFC: Remove duplicate DDB entry. 2006-06-23 16:56:57 +00:00
thompsa
1eb5bd117c MFC r1.63-65
Minor changes, sync to HEAD
2006-06-23 04:29:33 +00:00
thompsa
c2602a9bcb MFC: Makefile r1.5; if_bridge.c r1.62
Allow bridge and carp to play nicely together by returning the packet if its
 destined for a carp interface.
2006-06-23 01:14:57 +00:00
cvs2svn
a2678d3c8a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-06-22 22:33:22 +00:00
marius
00ec36ddf8 MFC: 1.39
- Merge sys/sparc64/pci/psycho.c rev. 1.8:
  Map the device memory belonging to resources of type SYS_RES_MEMORY into
  KVA upon activation so that rman_get_virtual() works as expected.
- In sbus_alloc_resource() checking whether toffs is 0 as an indication
  that no applicable child range was found isn't appropriate as it's
  perfectly valid for the requested SYS_RES_MEMORY resource to start at
  the beginning of a child range. So check for the RMAN still being NULL
  instead.
- As a minor runtime speed optimization break out of the loop where we
  search for the applicable child range in sbus_alloc_resource() as soon
  as it's found.
- Let sbus_setup_intr() return ENOMEM rather than 0 if it can't allocate
  memory for the interrupt clearing info.
- Actually do what the comment in sbus_setup_intr() says and disable the
  respective interrupt while fiddling with it.
- Remove some superfluous INTVEC() around inr, which already only contains
  the interrupt vector, in sbus_setup_intr().
- While here, fix a style(9) bug in sbus_setup_intr() (don't use function
  calls in initializers).
2006-06-22 20:52:26 +00:00
mux
42d5af09e4 Belatedly bump __FreeBSD_version to reflect csup's import. 2006-06-22 16:21:26 +00:00
brueffer
c600776ffb Correct the names or some Adaptec and ICP devices, verified by the
respective websites.

Approved by:	rwatson (mentor)
2006-06-22 04:57:56 +00:00
scottl
3f365cd31d MFC rev 1.31:
Use PCI bus accessors rather than reading config registers directly to
  get the subvendor device id.
2006-06-22 03:58:11 +00:00
jhb
4f406415fc MFC: Add two device IDs for Linksys PCMPC200 cards. 2006-06-21 21:06:07 +00:00
jhb
7f0260bae5 MFC various cleanups:
- Switch on the full 32-bit device ID to avoid collisions between the
  vendor-specific device ids across vendors.
- Include the revision in the dc_devs[] array instead of special casing
  the revid handling in dc_devtype().
- Use PCI bus accessors to read registers instead of pci_read_config()
  where possible.
- Use an 8-bit write to update the latency timer.
- Use PCIR_xxx constants and remove unused DC_xxx related to standard
  PCI config registers.
2006-06-21 21:03:24 +00:00
jhb
1819731f72 Conditionally acquire Giant in netgraph callouts to honor mpsafenet=0. 2006-06-21 21:00:10 +00:00
ps
41639f5e01 MFC: rev 1.55
Do not copy out the iovec in the 32bit recvmsg call since soreceive
calls uiomove directly.
2006-06-21 16:18:48 +00:00
alfred
f34c6266e1 MFC: don't deref NULL for really old modules. 2006-06-20 19:56:26 +00:00
marius
6e104cdc99 MFC: 1.17
- Declare the PnP map const.
- Add devices found in V210 to the PnP map.
- Don't leak memory if we didn't find a match for a node in the PnP map.
2006-06-19 20:20:24 +00:00
brueffer
42c28672b3 MFC: rev. 1.38
Add altq(4) support.

Approved by:	rwatson (mentor)
2006-06-19 19:40:59 +00:00
netchild
fe53373c91 MFC: sync with -current
- usbdevs:	upto 1.261
	- uscanner.c:	upto 1.71
	- umodem.c:	upto 1.58
	- uvisor.c:	upto 1.26
	- uhid.c:	upto 1.81
	- umass.c:	only the vendor renaming in the quirks
	- umct.c:	upto 1.10
	- uplcom.c:	upto 1.32
	- uvscom.c:	upto 1.27

This brings support of some more scanners, modems, a PDA, a fix for uplcom
and some cosmetic changes.
2006-06-18 20:13:44 +00:00
marius
743638d943 MFC: am7990.c 1.3, am79900.c 1.3, if_le_ledma.c 1.2, if_le_pci.c 1.2 - 1.4,
lance.c 1.2, lancereg.h 1.2, lancevar.h 1.2

- Rearrange the code related to RX interrupt handling so that ownership of
  RX descriptors is immediately returned to the NIC after we have copied
  the data of the hardware, allowing the NIC to already reuse the descriptor
  while we are processing the data in ifp->if_input(). This results in a
  small but measurable increase in RX throughput.
  As a side-effect, this moves the workaround for the LANCE revision C bug
  to am7900.c (still off by default as I doubt we will actually encounter
  such an old chip in a machine running FreeBSD) and the workaround for the
  bug in the VMware PCnet-PCI emulation to am79000.c, which is now also
  only compiled on i386 (resulting in a small increase in RX throughput on
  the other platforms).
- Change the RX interrupt handlers so that the descriptor error bits are
  only check once in case there was no error instead of twice (inspired
  by the NetBSD pcn(4), which additionally predicts the error branch as
  false).
- Fix the debugging output of the RX and TX interrupt handlers; while
  looping through the descriptors print info about the currently processed
  one instead of always the previously last used one; remove pointless
  printing of info about the RX descriptor bits after their values were
  reset.
- Create the DMA tags used to allocate the memory for the init block,
  descriptors and packet buffers with the alignment the respective NIC
  actually requires rather than using PAGE_SIZE unconditionally. This might
  as well fix the alignment of the memory as it seems we do not inherit
  the alignment constraint from the parent DMA tag.
- For the PCI variants double the number of RX descriptors and buffers
  from 8 to 16 as this minimizes the number of RX overflows im seeing with
  one NIC-mainboard combination. Nevertheless move reporting of overflows
  under debugging as they seem unavoidable with some crappy hardware.
- Add a comment regarding usage of ILACC vs. PCnet-PCI mode.
- Fix the driver name part in the MODULE_DEPEND of the PCI front-end for
  ether.
- Use different device descriptions for PCnet-Home and PCnet-PCI.
- Fix some 0/NULL confusion in lance_get().
- Use bus_addr_t for sc_addr and bus_size_t for sc_memsize as these are
  more appropriate than u_long for these.
- Remove the unused LE_DRIVER_NAME macro.
- Add a comment describing why we are taking the LE_HTOLE* etc approach
  instead of using byteorder(9) functions directly.
- Improve some comments and fix some wording.
2006-06-18 15:43:18 +00:00
silby
7cf19da114 MFC if_bfe.c revs 1.37 through 1.40 and if_bfereg.h rev 1.10. This should
finally put the issues the bfe driver has with > 1G machines to rest.

Note that these changes are dependant on changes which have been made
to busdma, so merging just this patch to releng_6_1 or releng_5 will
be ineffective.
2006-06-18 06:23:14 +00:00
silby
92647f5175 MFC revs 1.74 through 1.77:
- Allow bus_dmamap_load to return ENOMEM
        - Do a better job with alignment, and warn if we fail to align
2006-06-18 06:16:16 +00:00
silby
4c9c3f1a8d MFC revs 1.77 through 1.80:
- Allow bus_dmamap_load to return ENOMEM
	- Do a better job with alignment, and warn if we fail to align
2006-06-18 06:14:27 +00:00
rodrigc
e122f21ee1 MFC: msdosfs_vfsops.c:1.150, ntfs_vfsops.c:1.83, udf_vfsops.c:1.41
ext2_vfsops.c:1.157, cd9660_vfsops.c:1.145, ffs_vfsops.c:1.314,
     reiserfs_vfsops.c:1.5

  Remove calls to vfs_export() for exporting a filesystem for NFS mounting
  from individual filesystems.  Call it instead in vfs_mount.c,
  after we call VFS_MOUNT() for a specific filesystem.
2006-06-17 20:02:28 +00:00
rodrigc
a5f9933adf MFC: 1.78, 1.79
Remove incorrect null_checkexp() routine.  This
will allow the NFS server to call vfs_stdcheckexp() on the exported nullfs
filesystem, not the underlying filesystem being nullfs mounted.
If the lower filesystem was not NFS exported, then the NFS exported
null filesystem would not work.
Modify MNT_UPDATE behavior for nullfs so that it does not
return EOPNOTSUPP if an "export" parameter was passed in.
This should allow nullfs mounts to be NFS exported.

PR:             kern/87906
2006-06-17 18:17:26 +00:00
gnn
2443e18541 MFC 1.61 in6.c
1.65 nd6.c

Fix spurious warnings from neighbor discovery when working with IPv6 over
point to point tunnels (gif).

PR:             93220
Submitted by:   Jinmei Tatuya
2006-06-17 17:58:33 +00:00
gnn
1b59068b4f MFC a forgotten fix
Make sure that there actually is a next packet before setting
nextrecord to that field.

PR: 83885
Submitted by: hirose@comm.yamaha.co.jp
2006-06-17 17:47:05 +00:00
mlaier
5086a51b85 MFC:
ALTQ-ify nve(4).

  Submitted by:   Chris Dionissopoulos
2006-06-17 16:46:04 +00:00
rodrigc
b1311a5d14 MFC 1.316 (substitute vfs_mount_error for printf):
Check the sectorsize of the underlying disk before trying to
bread() the UFS superblock.  Should eliminate crashes when trying
to do: mount -t ufs on an audio CD.

PR:             kern/85893
Reported by:    Russell Francis <rfrancis at ev dot net>
2006-06-17 14:58:59 +00:00