118098 Commits

Author SHA1 Message Date
yongari
d9c83adc58 MFC 1.461 to RELENG_6
Connect em(4) build on sparc64.
2005-12-01 02:43:13 +00:00
yongari
e7b26efb3c MFC 1.66 to RELENG_6
Uncomment em(4) as it's now working.
2005-12-01 02:38:44 +00:00
davidxu
0a05924128 MFC Revision 1.11:
In raise(), use a shortcut to directly send signal to current thread.
MFC Revision 1.12:
	Remove a redundant _get_curthread() call.
2005-12-01 00:49:45 +00:00
emax
6def0db70b MFC: Teach rfcomm_sppd(1) about service names, so it is possible to specify
service name instead of channel number with -c command option. Supported
service names are: DUN (Dial-Up Networking), FAX (Fax) and SP (Serial Port).
2005-11-30 18:34:13 +00:00
jhb
19fe05251d MFC: Add locking and mark MPSAFE. 2005-11-30 16:04:52 +00:00
jhb
8304175e7b MFC: Quiet the pci_link(4) devices and only lookup BIOS IRQs for links that
are routed via ISA IRQs.
2005-11-30 16:03:55 +00:00
marius
4e512e86dd MFC: 1.13
- Add a workaround for the fact that OFW doesn't guarantee that
  devices can be opened multiple times simultaneously but we're
  expected to be able to do so by the rest of the loader.
  This fixes booting from disks attached to the on-board SCSI
  controller of Sun Ultra 1 (previously this triggered a trap)
  and probably also of AX1115 boards.
- While here, remove unused variables and add empty lines where
  style(9) requires such.
2005-11-30 13:37:22 +00:00
marius
9eaee5a55c MFC: 1.16
In ofw_parsedev() check the return value of malloc() and protect
against a NULL pointer dereference when ofw_parsedev() is called
with a NULL path argument.
2005-11-30 13:24:53 +00:00
marius
4245a23502 MFC: 1.11
Use an ihandle_t to store the instance handle of an opened device
instead of a phandle_t (package handle). Since both are typedefed
to unsigned int, this is more or less cosmetic.
2005-11-30 13:19:03 +00:00
marius
048eb2b1f9 MFC: elf_freebsd.c 1.10, ofw_console.c 1.11, ofw_memory.c 1.7, openfirm.c 1.12
Remove unused variables.
2005-11-30 13:13:53 +00:00
tmclaugh
f8d191da17 MFC: Revision 1.60
Misspelling in Poul-Henning Kamp's email address under AUTHORS

Approved by:	ade
2005-11-30 04:19:40 +00:00
yongari
7743af4bbc MFC if_hme.c:1.44, if_hmereg.h:1.7, if_hmevar.h:1.9 to RELENG_6:
- Convert hme(4) to use TX side bus_dmamap_load_mbuf_sg(9).
  - Move hardware counter reading/zeroing to hme_tick(). This saves
     8 register access per interrupt. [1]
  - Use imax macro for getting max. argument between two integers.
  - Invoke bus_dmamap_sync(9) first before freeing mbuf.
  - Check driver queue first to reduce locking operation in hme_start_locked()
    and interrupt handler.
  - Simplyfy watchdog timer setup in interrupt handler.
  - Don't log normal errors such as RX overrun. If we have DMA stuck
    condition, reinitialize the driver and log it.
2005-11-30 02:23:53 +00:00
marcel
40404ba331 MFC rev 1.40: Improve inittodr(). 2005-11-29 00:18:56 +00:00
jhb
0629d9c388 MFC: Always print the trap number for fatal traps and add trap messages
for T_XMMFLT and T_RESERVED.
2005-11-28 20:03:15 +00:00
jhb
6e7132f326 MFC: Correctly ask the PCI bridge device for its child PCI bus number
when trying to determine the BIOS IRQ for a given link.
2005-11-28 19:45:30 +00:00
jhb
b37ccdba12 MFC: Let ether_ioctl() handle SIOCSIFMTU. 2005-11-28 19:43:57 +00:00
jhb
eee0b465b9 MFC: More fully setup the ATPICs including setting up spurious interrupt
handlers if 'device atpic' is not in the kernel.
2005-11-28 19:42:10 +00:00
jhb
4d00ca61c0 MFC: Include the size of the DL_serpath structures in the total size used
in the RTLD_DI_SERINFOSIZE and RTLD_DI_SERINFO requests.
2005-11-28 19:19:39 +00:00
ru
51e319ef1f MFC: Added NO_INCS, use it to prevent overwriting of native
headers with i386 copies when installing lib32.
2005-11-28 19:08:51 +00:00
rwatson
fe78d82c95 Merge mbuf.c:1.46 from HEAD to RELENG_6: trim accidentally committed
debugging printfs from netstat -m.
2005-11-28 18:07:36 +00:00
simokawa
ff0e40f217 MFC: revision 1.81
Fix panic when we cannot find self-id of probing nodes.
2005-11-28 06:41:40 +00:00
hrs
29d1e5bb9f MFC: Apply arch= selection to the qandatoc mode. This fixes
link generation with no actual target.

Reported by:	Tim Witthoeft (tim.witthoeft at gmail.com)
2005-11-28 06:26:56 +00:00
rwatson
c078111780 Merge kern_acct.c:1.76 from HEAD to RELENG_6:
Significant refactoring of the accounting code to improve locking and VFS
  happiness, as well as correct other bugs:

  - Replace notion of current and saved accounting credential/vnode with a
    single credential/vnode and an acct_suspended flag.  This simplifies the
    accounting logic substantially.

  - Replace acct_mtx with acct_sx, a sleepable lock held exclusively during
    reconfiguration and space polling, but shared during log entry
    generation.  This avoids holding a mutex over sleepable VFS operations.

  - Hold the sx lock over the duration of the I/O so that the vnode I/O
    cannot occur after vnode close, which could occur previously if
    accounting was disabled as a process exited.

  - Write the accounting log entry with Giant conditionally acquired based
    on the file system where the log is stored.  Previously, the accounting
    code relied on the caller acquiring Giant.

  - Acquire Giant conditionally in the accounting callout based on the file
    system where the accounting log is stored.  Run the callout MPSAFE.

  - Expose acct_suspended via a read-only sysctl so it is possibly to
    programmatically determine whether accounting is suspended or not without
    attempting to parse logs.

  - Check both acct_vp and acct_suspended lock-free before entering the
    accounting sx lock in acct().

  - When accounting is disabled due to a VBAD vnode (i.e., forceable unmount),
    generate a log message indicating accounting has been disabled.

  - Correct a long-standing bug in how free space is calculated and compared
    to the required space: generate and compare signed results, not unsigned
    results, or negative free space will cause accounting to not be suspended
    when required, or worse, incorrectly resumed once negative free space is
    reached.
2005-11-27 19:09:10 +00:00
hrs
45a58b3568 Bump release documentation version and trim the old relnotes entries. 2005-11-27 17:11:21 +00:00
glebius
7dfb4a556f MFC 1.61:
Check IFF_DRV_RUNNING in the re_intr() loop. It can disappear,
  since re_rxeof() drops the lock for some time.

  Reported & tested by:   XueFeng Deng <dsnofe yahoo.com.cn>
2005-11-27 02:56:42 +00:00
dougb
31c54105ae MFC 1.7, which fixes the failed transfer semantics for BIND 9.3.x,
and cleans up the code slightly.
2005-11-27 00:38:57 +00:00
jdp
9bb59aa42a MFC: Fix a bug that caused some /dev entries to continue to exist after
the underlying drive had been hot-unplugged from the system.

This merges the following revisions:

  Revision  Path
  1.94      src/sys/cam/scsi/scsi_cd.c
  1.181     src/sys/cam/scsi/scsi_da.c
  1.98      src/sys/geom/geom_disk.c
  1.5       src/sys/geom/geom_disk.h
  1.88      src/sys/geom/geom_subr.c
2005-11-26 22:55:20 +00:00
hrs
5c35e8f078 New errata item:
problems of ipfw IPv6 support on 6.0R.
2005-11-26 21:57:27 +00:00
delphij
6d8a6febc5 MFC 1.83: Slightly reorganize to reduce duplicated code.
Reviewed by:	rwatson
2005-11-26 21:20:05 +00:00
delphij
79c28795ba MFC 1.65:
Remove an unneeded "a" from comment.
2005-11-26 21:19:20 +00:00
krion
7ba5cae87f MFC: pkg_info.1:1.55
date: 2005/11/23 10:31:59;  author: krion;  state: Exp;  lines: +4 -1
  Document PKG_PATH enviroment variable.

  Prodded by:     Mark Andrews <Mark_Andrews AT isc DOT org>
2005-11-26 20:58:43 +00:00
jdp
eeb84da771 MFC 1.151: Fix a bug in the loop in sonewconn that makes room on the
incomplete connection queue for a new connection.  It was removing
connections from the wrong list.
2005-11-26 19:32:30 +00:00
marcel
6342c72acc MFC rev 1.203: Fix bug introduced in revision 1.186:
Iterate over the mounted file systems to find the largest time
  stamp and call inittodr() exactly once with that time stamp.
2005-11-26 19:13:41 +00:00
le
703d4d250a MFC:
Finally bring in what was produced during Google SoC 2005:

   Add functions to rename objects and to move a subdisk from one drive
   to another.

   Add manual page (finally).

   Bring up-to-date the online help.

Plus several cleanups and whitespace fixes.
2005-11-26 11:10:37 +00:00
le
6a3b6cb6cd MFC:
Finally bring in what was produced during Google SoC 2005:

  Add functions to rename objects and to move a subdisk from one drive
  to another.

Plus several whitespace/style fixes.
2005-11-26 11:06:11 +00:00
glebius
d0507213b8 Previous commit merged 1.145 and _a part of_ 1.142, and this part
broke ARP in RELENG_6. At this time merge 1.142 entirely.

Pointy hat to:	glebius
2005-11-26 10:51:23 +00:00
njl
35f08adab8 MFC 1.43: Acquire locks around call to acpi_cmbat_get_bif() 2005-11-26 07:37:40 +00:00
glebius
8c795db6e0 MFC 1.34 by yar:
Since carp(4) interfaces presently are kinda fake yet possess
  IP addresses, mark them with LOOPBACK so that routing daemons
  take them easy for link-state routing protocols.

  Reviewed by:    glebius
2005-11-25 14:57:38 +00:00
glebius
219fd02410 MFC 1.24:
Document tunables.
2005-11-25 14:56:03 +00:00
glebius
629ac5c1d2 MFC 1.38: MFOpenBSD 1.62:
Prevent backup CARP hosts from replying to arp requests, fixes strangeness
    with some layer-3 switches. From Bill Marquette.

  Tested by:      Kazuaki Oda <kaakun highway.ne.jp>
2005-11-25 14:54:59 +00:00
glebius
e841eebf3e MFC 1.12:
Xref ng_ether(4) and ng_iface(4) nodes, which are used in examples.
2005-11-25 14:49:04 +00:00
glebius
25e888dc3a MFC 1.23, 1.24:
BCM5752 support
2005-11-25 14:46:42 +00:00
glebius
faad1c3c25 MFC:
Recognize Broadcom BCM5752 chip, that can be found in HP DC7600.

  PR:		kern/88940
  Submitted by:	Alexander Hausner
2005-11-25 14:43:12 +00:00
glebius
b7866a6d78 MFC 1.51:
Force this interface to be RUNNING.
2005-11-25 14:41:31 +00:00
glebius
d4826e3f0a MFC 1.18 - 1.21:
- Document last change to ARP behavior.
  - Document several undocumented sysctl variables.
  - Fix spelling of few diagnostics.
  - Improve the documentation of "proxyall" knob, somewhat: we do not
    proxy for hosts that are reachable through the same interface the
    request came in from.  This feature is mainly for hosts reachable
    through some P2P link, e.g. the gif(4) tunnel.
2005-11-25 14:40:38 +00:00
glebius
630273a7cf MFC 1.145:
Rework ARP retransmission algorythm so that ARP requests are
  retransmitted without suppression, while there is demand for
  such ARP entry. As before, retransmission is rate limited to
  one packet per second. Details:
    - Remove net.link.ether.inet.host_down_time
    - Do not set/clear RTF_REJECT flag on route, to
      avoid rt_check() returning error. We will generate error
      ourselves.
    - Return EWOULDBLOCK on first arp_maxtries failed
      requests , and return EHOSTDOWN/EHOSTUNREACH
      on further requests.
    - Retransmit ARP request always, independently from return
      code. Ratelimit to 1 pps.

MFC 1.142:
  Use monotonic 'time_uptime' instead of 'time_second' as timebase
  for rt->rt_rmx.rmx_expire.
2005-11-25 14:38:19 +00:00
glebius
5baa2f368f MFC 1.89:
- Do not raise IFF_DRV_OACTIVE flag in vlan_start, because this
    can lead to stalled interface
  - Explain this fact in a comment.

  Reviewed by:    rwatson, thompsa, yar
2005-11-25 14:34:05 +00:00
glebius
3da94ed211 MFC 1.157:
Keep locks consistent before goto.

  Reported by:    pho
  Reviewed by:    mohans
2005-11-25 14:32:38 +00:00
glebius
d60eb7f43e MFC 1.70:
Fix several races between socket closure and node/hook
  destruction:
    - Backout 1.62, since it doesn't fix all possible
    problems.
    - Upon node creation, put an additional reference on node.
    - Add a mutex and refcounter to struct ngsock. Netgraph node,
      control socket and data socket all count as references.
    - Introduce ng_socket_free_priv() which removes one reference
      from ngsock, and frees it when all references has gone.
    - No direct pointers between pcbs and node, all pointing
      is done via struct ngsock and protected with mutex.
2005-11-25 14:26:40 +00:00
glebius
f85409be55 Sync with HEAD, merging the following:
revision 1.117
date: 2005/11/02 15:23:47;  author: glebius;  state: Exp;  lines: +47 -8
Fix two races which happen when netgraph is restructuring:
  - Introduce ng_topo_mtx, a mutex to protect topology changes.
  - In ng_destroy_node() protect with ng_topo_mtx the process
    of checking and pointing at ng_deadnode. [1]
  - In ng_con_part2() check that our peer is not a ng_deadnode,
    and protect the check with ng_topo_mtx.
  - Add KASSERTs to ng_acquire_read/write, to make more
    understandible synopsis in case if called on ng_deadnode.

Reported by:    Roselyn Lee [1]
----------------------------
revision 1.116
date: 2005/11/02 14:27:24;  author: glebius;  state: Exp;  lines: +106 -121
Rework the ng_item queueing on nodes:
  - Introduce a new flags NGQF_QREADER and NGQF_QWRITER,
    which tell how the item should be actually applied,
    overriding NGQF_READER/NGQF_WRITER flags.
  - Do not differ between pending reader or writer. Use only
    one flag that is raised, when there are pending items.
  - Schedule netgraph ISR in ng_queue_rw(), so that callers
    do not need to do this job.
  - Fix several comments.

Submitted by:   julian

As well as some lesser changes: ng_base.c 1.114, 1.113, 1.107, 1.118.
2005-11-25 14:23:27 +00:00