121433 Commits

Author SHA1 Message Date
alc
4e067a3bb6 MFC revision 1.552
In general, bits in the page directory entry (PDE) and the page table
  entry (PTE) have the same meaning.  The exception to this rule is the
  eighth bit (0x080).  It is the PS bit in a PDE and the PAT bit in a
  PTE.  This change avoids the possibility that pmap_enter() confuses a
  PAT bit with a PS bit, avoiding a panic().

  Eliminate a diagnostic printf() from the i386 pmap_enter() that serves
  no current purpose, i.e., I've seen no bug reports in the last two
  years that are helped by this printf().
2007-03-31 19:20:23 +00:00
sam
e04dc0c1b8 remove dead code
Coverity CID:	1082
Found with:	Coverity Prevent(tm)
2007-03-31 19:11:19 +00:00
julian
e0e2c2dd5a unbreak build by puting back definition used by ipfw(8)
the real fix is to just remove the offending lines there but I don't
have time to check that now. I'll do it right on Tuesday.
2007-03-31 16:44:28 +00:00
jhb
c6b8fdd801 MFC: Simple single-message MSI support. 2007-03-31 15:25:11 +00:00
jhb
80b8da4bdb MFC: PCI MSI support for amd64 and i386. 2007-03-31 15:23:21 +00:00
jhb
e0eee19fe2 Bump __FreeBSD_version for PCI MSI support. 2007-03-31 14:51:46 +00:00
jhb
8d05413dd2 MFC: MI support for PCI Message Signalled Interrupts (MSI). For more
details see the relevant commit logs in HEAD.  The notable differences
between this patch and what is in HEAD now are that pci_remap_msix() is not
currently implemented in this patch (I need to change the API in HEAD, so
I'm not going to MFC it until its API is stable) and MSI and MSI-X are not
enabled by default.  To enable MSI and MSI-X support, one must set the
'hw.pci.msi_enable' and/or 'hw.pci.msix_enable' loader tunables.
2007-03-31 14:50:51 +00:00
julian
d1bfd0194e MFC: 1.161
include the opt_diver.h to get the banner massage right.

This brings ip_fw2.c up to date with -current with the exception of:
 1.113, 114, 125, 126, 130, 138, 140, 152-156, 158-160
All of which I do not believe to be MFC candidates (with the
possible exception of 140 which has a risk factor I don't
want to put in RELENG_6). 138 is also a possibility but requires more work
in other files.
I need to do the userland ipfw too to add some new features, but, not today..
2007-03-31 01:51:29 +00:00
julian
f82d2acb5b MFC: 1.139
Use the TAILQ macro. That's what it is for.
2007-03-31 01:23:56 +00:00
julian
afb82bbb89 MFC 1.37
use less magic numbers.
2007-03-31 01:22:01 +00:00
julian
4e5d44e6da MFC: ip_fw2.c 1.129
ip_fw.h 1.105
     ip_fw_pfil.c 1.21
     ip_input.c 1.319
     Allow ipv6 filtering to be seperately enabled. plus cleanup
2007-03-31 01:14:28 +00:00
julian
1aa3851c56 MFC: 1.128
fix dmesg line if ipV6 not compiled in.
2007-03-31 00:37:10 +00:00
julian
5f80990709 MFC 1.116
Remove unused items. I can not find them referenced anywhere else in the tree.
2007-03-31 00:31:28 +00:00
gabor
aa91f75fa9 MFC: rev1.22
Approved by:	keramida (mentor)
2007-03-30 20:33:55 +00:00
gabor
228c9aad6b MFC: rev1.238
Approved by:	keramida (mentor)
2007-03-30 20:33:11 +00:00
matteo
c8c69511a7 MFC:
biosmptable.c: MFC rev. 1.2
	dist.c: MFC rev. 1.241, 1.243, 1.246, 1.247
2007-03-30 19:21:56 +00:00
n_hibma
1696e5db75 MFC:
Revisit the watchdogs: Resetting the error to EINVAL after failing to set the
watchdog might hide the succesful arming of an earlier one. Accept that on
failing to arm any watchdog (because of non-supported timeouts) EOPNOTSUPP is
returned instead of the more appropriate EINVAL.
2007-03-30 19:17:37 +00:00
simokawa
35b529d77f MFC: rev 1.86
Wait SCLK to be stable after LPS enabled.
2007-03-30 14:28:10 +00:00
simokawa
e90778fe8c MFC: rev 1.58
Poll only while interrupt is disabled.
2007-03-30 14:26:40 +00:00
glebius
5b77ad5650 Merge rev. 1.17:
Do not build the libedit support if NO_LIBPTHREAD is defined.

  PR:		bin/104478
  Submitted by:	Mike Durian <durian shadetreesoftware.com>
2007-03-30 08:25:53 +00:00
bms
d5f91b6784 MFC rev 1.40:
In IPv4 fast forwarding path, send ICMP unreachable messages for
  routes which have RTF_REJECT set *and* a zero expiry timer.

PR:		kern/109246
Submitted by:	Ingo Flaschberger
2007-03-29 20:51:20 +00:00
thomas
c2648672c1 MFC rev. 1.48:
(reinit_bus): When the ATAPI bus is reset, do not schedule an automated
 CAM rescan if the ATAPI device entries have not changed.

The ATAPI bus may be reset for a variety of reasons, including any time an
ATAPI request times out. It is not necessary to rescan at the CAM level
in such a case, unless a device has appeared or disappeared, or has
otherwise changed.
---
MFC revs. 1.49 and 1.50:
(atapi_action): Improve error reporting by removing ATA_R_QUIET flag
 from ATAPI requests. If CAM debugging is enabled, also mark ATAPI
 requests with ATA_R_DEBUG flag.

(atapi_cb): Report ATAPI timeouts to the CAM layer.
 Fix incorrect debugging traces in the presence of ATAPI errors.

PR:	kern/103602
2007-03-29 20:08:32 +00:00
thomas
f06ae47d41 MFC rev. 1.69:
(ata_completed): When REQUEST SENSE is automatically issued after a failed
 ATAPI request, do not clear the ATA_R_DEBUG flag. This allows a request
 marked as requiring debug traces to produce these traces also during
 the completion of the autosense processing.
2007-03-29 19:14:39 +00:00
mux
3803c37343 MFC r1.20:
The code looks for all the loaded screensaver modules, tries to
  kldunload them, and only loads the new one if kldstat's output shows
  that there aren't any left.  However, the regexp looking for modules
  to unload was still searching according to the the old naming scheme,
  splash_<name>.ko, instead of <name>_saver.ko.
2007-03-29 19:06:14 +00:00
kmacy
63a95434d4 Batch MFC the following changes:
- bus_size_t for link_width is a bad cross-architectural type with
  respect to printf, use uint32_t instead
- Increase coalesce_nsecs
- commit fixes for the following coverity warnings: 1765, 1760, 1758, 1756
- Check PCI-e link width to avoid foot shooting with 4x links
- allocate 9 messages in all cases
- move call to t3_prep_adapter earlier in attach before msi-x setup occurs
  (this works around the fact that pci_config_{save,restore} doesn't adequately
  restore state for msi-x)
- make MSI-X the default and allocate up to mp_ncpus queues per port
- Remove firmware version flags
- add support for the T3B2 ASIC rev by synchronizing with version 1.0.071 of
  Chelsio's common code (with the notable exception of improvements for using
  multiple TX queues)
2007-03-28 20:06:20 +00:00
jhb
f894d378a6 MFC: Handle the case when a thread is blocked on a lockmgr lock with
LK_DRAIN in DDB's 'show sleepchain'.
2007-03-28 16:58:23 +00:00
jhb
e7ec6bd0b0 MFC: If vn_open() fails during kern_open(), don't fdrop() the new file
object until after the call to fdclose().
2007-03-28 16:55:31 +00:00
jhb
f9691d4711 MFC: Fix an off-by-one error that prevented the firmware DMA buffer from
being reused in the common case.
2007-03-28 16:53:55 +00:00
ru
97821b71de MFC: Add powerpc to the universe. In rev. 1.339 I accidentally
added it in HEAD without mentioning the fact in the commit log.
2007-03-28 08:46:02 +00:00
marcel
f075340622 MFC: Fix PowerPC-targeted cross-builds performed on 64-bit platforms.
Makefile.inc0:1.38
	libbfd/bfd.h:1.4

PR: amd64/102996
2007-03-28 02:44:37 +00:00
julian
6fbe56546c We really don't need FreeBSD 4.x code in RELENG 6
This is an MFC but I can't figure out where it was removed in head.
2007-03-28 01:59:27 +00:00
julian
e179945aee MFC 1.112 mainly for diff reduction
use time_uptime instead of time_second.
2007-03-28 00:21:19 +00:00
julian
31c1293528 THAT line wasn't part of the MFC..! 2007-03-27 23:51:45 +00:00
julian
67c764f153 MFC ip_fw2.c 1.143, 1.144
ip_fw.h 1.107, 1.108
    add the capacity to fwd to a table argument.
2007-03-27 23:50:17 +00:00
julian
aba7e1a91d MFC of 1.157. clean up multipel references to headers and packet parts by
passing around a pointer that already points there.
2007-03-27 23:30:58 +00:00
brueffer
c9cae72691 MFC:
New release notes:
- acpi_dock(4) and acpi_hpet added
- msk(4) added
- GNOME updated to 2.8.0
- KDE updaed to 3.5.6
2007-03-27 21:50:36 +00:00
n_hibma
d20364ba21 MFC rev 1.8:
In one of the previous commits I accidentally removed the enabling of the
  watchdog chip.

  Noticed by:     Mike Tancsa
  Tested by:      Mike Tancsa
2007-03-27 21:13:21 +00:00
bms
b5098d3067 MFC rev 1.170:
Increase default size of raw IP send and receive buffers to the same as
  udp_sendspace, to avoid a situation where jumbograms (datagrams > 9KB)
  are unnecessarily fragmented.
2007-03-27 17:16:22 +00:00
alc
904087b422 MFC revision 1.535 (in part)
Change the format strings in many of the assertions that were
  recently converted from PMAP_DIAGNOSTIC printf()s so that they are
  compatible with PAE.  Avoid unnecessary differences between the
  amd64 and i386 format strings.

MFC revision 1.549
  Retire pmap_track_modified().  We no longer need it because we do
  not create managed mappings within the clean submap.  To prevent
  regressions, add assertions blocking the creation of managed
  mappings within the clean submap.
2007-03-27 08:24:47 +00:00
brueffer
a7766135e5 MFC:
Autogenerate hardware notes for msk(4).
2007-03-27 07:30:54 +00:00
brueffer
7f80d30a62 MFC: rev. 1.19
Add Xref to msk(4).
2007-03-27 07:21:16 +00:00
alc
54ceb8be24 MFC revision 1.534
Replace diagnostic printf()s by assertions.  Use consistent style for
  similar assertions.

MFC revision 1.545
  Remove stale KSE code.

MFC revision 1.580
  Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
2007-03-27 06:15:01 +00:00
alc
85231f2556 MFC revision 1.547
Introduce pmap_try_insert_pv_entry(), a function that conditionally
  creates a pv entry if the number of entries is below the high water mark
  for pv entries.

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().  This avoids possible recursion on a pmap lock in
  get_pv_entry().

  Eliminate the explicit low-memory checks in pmap_copy().  The check that
  the number of pv entries was below the high water mark was largely
  ineffective because it was located in the outer loop rather than the
  inner loop where pv entries were allocated.  Instead of checking, we
  attempt the allocation and handle the failure.
2007-03-27 04:42:26 +00:00
yongari
83883fc711 MFC msk(4) to RELENG_6
Add msk(4) to the list of drivers supported by GENERIC kernel.
2007-03-27 02:33:00 +00:00
yongari
85d9decbbd MFC devices.c, rev. 1.171 to RELENG_6
Add msk(4) to the list of supported network interface.
2007-03-27 02:31:34 +00:00
yongari
2302a1991e MFC loader.conf, rev. 1.114 to RELENG_6
Add an entry for the msk(4) module.
2007-03-27 02:29:45 +00:00
yongari
9b62a8caf0 MFC miibus.4, rev. 1.19 to RELENG_6
Add msk(4) to the list of device drivers use the miibus interface.
2007-03-27 02:28:15 +00:00
yongari
bfa30bc97f MFC altq.4, rev. 1.23 to RELENG_6
Add msk(4) to the list of drivers supporting ALTQ.
2007-03-27 02:26:33 +00:00
yongari
deaf7987e8 MFC vlan.4, rev. 1.33 to RELENG_6
Add msk(4) to the list of devices supporting full VLAN processing
   in the hardware.
2007-03-27 02:24:47 +00:00
yongari
10c14bf621 MFC msk(4) to RELENG_6
Add a man page for msk(4)
2007-03-27 02:23:05 +00:00