]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoFix a bug that causes the fsx test case of mmap'ed page being out of sync
Xin LI [Sun, 4 Oct 2009 10:38:04 +0000 (10:38 +0000)]
Fix a bug that causes the fsx test case of mmap'ed page being out of sync
of read/write, inspired by ZFS's counterpart.

PR: kern/139312
Submitted by: gk@
MFC after: 1 week

14 years agoWhen releasing a lockmgr held in shared way we need to use a write memory
Attilio Rao [Sat, 3 Oct 2009 15:02:55 +0000 (15:02 +0000)]
When releasing a lockmgr held in shared way we need to use a write memory
barrier in order to avoid, on architectures which doesn't have strong
ordered writes, CPU instructions reordering.

Diagnosed by: fabio

14 years agoRemove remaining bits of performance counter support.
Rui Paulo [Sat, 3 Oct 2009 13:59:15 +0000 (13:59 +0000)]
Remove remaining bits of performance counter support.

Submitted by: Tom Judge <tom at tomjudge.com>

14 years agounifdef NFSCLIENT because the nlm depends on the nfsclient even if NFSCLIENT
Yoshihiro Takahashi [Sat, 3 Oct 2009 12:22:12 +0000 (12:22 +0000)]
unifdef NFSCLIENT because the nlm depends on the nfsclient even if NFSCLIENT
is not defined.

Now the nfslockd module works with the nfsclient module.

Reviewed by: kib
MFC after: 3 days

14 years agoMake sure that the primary native brandinfo always gets added
Bjoern A. Zeeb [Sat, 3 Oct 2009 11:57:21 +0000 (11:57 +0000)]
Make sure that the primary native brandinfo always gets added
first and the native ia32 compat as middle (before other things).
o(ld)brandinfo as well as third party like linux, kfreebsd, etc.
stays on SI_ORDER_ANY coming last.

The reason for this is only to make sure that even in case we would
overflow the MAX_BRANDS sized array, the native FreeBSD brandinfo
would still be there and the system would be operational.

Reviewed by: kib
MFC after: 1 month

14 years agoAdd OpenVPN IANA assigned port number.
Rui Paulo [Sat, 3 Oct 2009 11:02:36 +0000 (11:02 +0000)]
Add OpenVPN IANA assigned port number.

14 years agoPut #ifdef INET around parts of the FLOWTABLE code, to unbreak
Bjoern A. Zeeb [Sat, 3 Oct 2009 10:56:03 +0000 (10:56 +0000)]
Put #ifdef INET around parts of the FLOWTABLE code, to unbreak
nooptions INET kernel builds.

MFC after: 3 days
X-MFC: with r197687

14 years agoPrint a warning in case we cannot add more brandinfo because
Bjoern A. Zeeb [Sat, 3 Oct 2009 10:50:00 +0000 (10:50 +0000)]
Print a warning in case we cannot add more brandinfo because
we would overflow the MAX_BRANDS sized array.

Reviewed by: kib
MFC After: 1 month

14 years agoThe 6bone was decommissioned on 6/6/06, so remove references to it.
Doug Barton [Sat, 3 Oct 2009 02:37:21 +0000 (02:37 +0000)]
The 6bone was decommissioned on 6/6/06, so remove references to it.

14 years agoTRENDnet TEW-424UB has multiple revisions so clarify zyd(4) man page and
Weongyo Jeong [Sat, 3 Oct 2009 02:28:28 +0000 (02:28 +0000)]
TRENDnet TEW-424UB has multiple revisions so clarify zyd(4) man page and
adds a device to urtw(4).  The revision informations are as follows:

    rev A       ZD1211
    V2          SiS163U
    V2.1R       SiS163U
    V3.xR       RTL8187B

and bump date.

Obtained from: OpenBSD
Reported by: Albert Shih <Albert.Shih at obspm.fr>

14 years agoFix RTS/CTS flow control, broken by the TTY overhaul. The new TTY
Marcel Moolenaar [Fri, 2 Oct 2009 22:30:44 +0000 (22:30 +0000)]
Fix RTS/CTS flow control, broken by the TTY overhaul. The new TTY
interface is fairly simple WRT dealing with flow control, but
needed 2 new RX buffer functions with "get-char-from-buf" separated
from "advance-buf-pointer" so that the pointer could be advanced
only when ttydisc_rint() succeeded.

MFC after: 1 week

14 years agoDon't comment on stream socket handling in sosend_dgram, since that's
Robert Watson [Fri, 2 Oct 2009 21:31:15 +0000 (21:31 +0000)]
Don't comment on stream socket handling in sosend_dgram, since that's
not handled.

MFC after: 3 weeks

14 years ago- Enable an afexists() check only when no AF argument is specified.
Hiroki Sato [Fri, 2 Oct 2009 20:19:53 +0000 (20:19 +0000)]
- Enable an afexists() check only when no AF argument is specified.
- Simplify helper functions.

Discussed with: ume

14 years agoReplace the name of the sysctl to security.bsd.map_at_zero and to be
Bjoern A. Zeeb [Fri, 2 Oct 2009 17:53:48 +0000 (17:53 +0000)]
Replace the name of the sysctl to security.bsd.map_at_zero and to be
consistent updated the name of the variable as well, after the change
in r197711.

14 years agoBack out the functional parts from r197537. After r197711, affecting all
Bjoern A. Zeeb [Fri, 2 Oct 2009 17:51:46 +0000 (17:51 +0000)]
Back out the functional parts from r197537.  After r197711, affecting all
user mappings, mmap no longer needs special treatment.

14 years agoAdd a mitigation feature that will prevent user mappings at
Bjoern A. Zeeb [Fri, 2 Oct 2009 17:48:51 +0000 (17:48 +0000)]
Add a mitigation feature that will prevent user mappings at
virtual address 0, limiting the ability to convert a kernel
NULL pointer dereference into a privilege escalation attack.

If the sysctl is set to 0 a newly started process will not be able
to map anything in the address range of the first page (0 to PAGE_SIZE).
This is the default. Already running processes are not affected by this.

You can either change the sysctl or the tunable from loader in case
you need to map at a virtual address of 0, for example when running
any of the extinct species of a set of a.out binaries, vm86 emulation, ..
In that case set security.bsd.map_at_zero="1".

Superseeds: r197537
In collaboration with: jhb, kib, alc

14 years agoFix build nfscl and/or nfsd.
Yoshihiro Takahashi [Fri, 2 Oct 2009 12:47:01 +0000 (12:47 +0000)]
Fix build nfscl and/or nfsd.

MFC after: 3 days

14 years agoReserve numbers for XScale.
Rui Paulo [Fri, 2 Oct 2009 11:14:12 +0000 (11:14 +0000)]
Reserve numbers for XScale.

Reviewed by: jkoshy

14 years agoRemove performance counter headers. This code came from NetBSD, but our
Rui Paulo [Fri, 2 Oct 2009 11:10:05 +0000 (11:10 +0000)]
Remove performance counter headers. This code came from NetBSD, but our
hardware perf. counter support is different, so we don't need these
files.

Reviewed by: freebsd-arm (no comments)

14 years agoEnable adding a link-local address even if ND6_IFF_IFDISABLED.
Hiroki Sato [Fri, 2 Oct 2009 07:00:20 +0000 (07:00 +0000)]
Enable adding a link-local address even if ND6_IFF_IFDISABLED.
Note that when the interface has ND6_IFF_IFDISABLED, a newly-added
address is always marked as IN6_IFF_TENTATIVE so that the interface
can perform DAD after the ND6_IFF_IFDISABLED is cleared.

14 years agoThe net.inet.tcp.log_in_vain accepts 0, 1 or 2, not Y/N.
Hiroki Sato [Fri, 2 Oct 2009 06:51:39 +0000 (06:51 +0000)]
The net.inet.tcp.log_in_vain accepts 0, 1 or 2, not Y/N.

14 years agoRevert the previous afexists() change. Knobs configured explicitly by
Hiroki Sato [Fri, 2 Oct 2009 06:19:34 +0000 (06:19 +0000)]
Revert the previous afexists() change.  Knobs configured explicitly by
the user should not be ignored if possible even if the kernel does not
support the prerequisite feature.

Discussed with: ume

14 years ago- Split routing_*() and option_*() to *_AF() and add afexists() check
Hiroki Sato [Fri, 2 Oct 2009 02:28:59 +0000 (02:28 +0000)]
- Split routing_*() and option_*() to *_AF() and add afexists() check
  for each address family.  Replace AF_static() with static_AF() for
  consistency.

- Display a message only if the user sets a non-default value, and set
  a sysctl explicitly even if it is the default value.

14 years ago- Fix logic inversion bug of net.inet.tcp.rfc1323[*].
Hiroki Sato [Fri, 2 Oct 2009 02:27:49 +0000 (02:27 +0000)]
- Fix logic inversion bug of net.inet.tcp.rfc1323[*].

- Split netoptions_start() to netoptions_AF() and add afexists() check
  for each address family.

- Display a message only if the user sets a non-default value, and set
  a sysctl explicitly even if it is the default value.

Spotted by: Pegasus Mc Cleaft[*]

14 years ago- Add AF_IPX and AF_NATM to afexists().
Hiroki Sato [Fri, 2 Oct 2009 02:24:25 +0000 (02:24 +0000)]
- Add AF_IPX and AF_NATM to afexists().

- Add afexists() check to address family specific rc.d scripts.  A
  script for an AF will be silently ignored if the kernel has no
  support for the AF.

14 years agoRemove a log message from production code. This log message can be
Qing Li [Fri, 2 Oct 2009 01:45:11 +0000 (01:45 +0000)]
Remove a log message from production code. This log message can be
triggered by a misconfigured host that is sending out gratuious ARPs.
This log message can also be triggered during a network renumbering
event when multiple prefixes co-exist on a single network segment.

MFC after: immediately

14 years agoPreviously, if an address alias is configured on an interface, and
Qing Li [Fri, 2 Oct 2009 01:34:55 +0000 (01:34 +0000)]
Previously, if an address alias is configured on an interface, and
this address alias has a prefix matching that of another address
configured on the same interface, then the ARP entry for the alias
is not deleted from the ARP table when that address alias is removed.
This patch fixes the aforementioned issue.

PR: kern/139113
MFC after: 3 days

14 years agomake read_eflags and write_eflags accomplish the same effect on PVM as native,
Kip Macy [Thu, 1 Oct 2009 22:05:38 +0000 (22:05 +0000)]
make read_eflags and write_eflags accomplish the same effect on PVM as native,
simplifying interrupt handling

14 years agoIn fill_kinfo_thread, copy the thread's name into struct kinfo_proc even
Ed Maste [Thu, 1 Oct 2009 21:44:30 +0000 (21:44 +0000)]
In fill_kinfo_thread, copy the thread's name into struct kinfo_proc even
if it is empty.  Otherwise the previous thread's name would remain in the
struct and then be reported for this thread.

Submitted by: Ryan Stone
MFC after: 1 week

14 years agosh: Disallow mismatched quotes in backticks (`...`).
Jilles Tjoelker [Thu, 1 Oct 2009 21:40:08 +0000 (21:40 +0000)]
sh: Disallow mismatched quotes in backticks (`...`).

Due to the amount of code removed by this, it seems that allowing unmatched
quotes was a deliberate imitation of System V sh and real ksh. Most other
shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh,
dash).

PR: bin/137657

14 years agoCompile ACPI debugger and disassembler for kernel modules unconditionally.
Jung-uk Kim [Thu, 1 Oct 2009 20:56:15 +0000 (20:56 +0000)]
Compile ACPI debugger and disassembler for kernel modules unconditionally.
These files will generate almost empty object files without ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.

14 years agoThe flow-table associates TCP/UDP flows and IP destinations with
Qing Li [Thu, 1 Oct 2009 20:32:29 +0000 (20:32 +0000)]
The flow-table associates TCP/UDP flows and IP destinations with
specific routes. When the routing table changes, for example,
when a new route with a more specific prefix is inserted into the
routing table, the flow-table is not updated to reflect that change.
As such existing connections cannot take advantage of the new path.
In some cases the path is broken. This patch will update the affected
flow-table entries when a more specific route is added. The route
entry is properly marked when a route is deleted from the table.
In this case, when the flow-table performs a search, the stale
entry is updated automatically. Therefore this patch is not
necessary for route deletion.

Submitted by: simon, phk
Reviewed by: bz, kmacy
MFC after: 3 days

14 years agoPut square backets ([]) around process names for system processes to patch
John Baldwin [Thu, 1 Oct 2009 19:12:14 +0000 (19:12 +0000)]
Put square backets ([]) around process names for system processes to patch
the behavior of ps(1).

14 years agoReturn EOPNOTSUPP instead of EINVAL when doing chflags(2) over an old
Xin LI [Thu, 1 Oct 2009 18:58:26 +0000 (18:58 +0000)]
Return EOPNOTSUPP instead of EINVAL when doing chflags(2) over an old
format ZFS, as defined in the manual page.

Submitted by: pjd (response of my original patch but bugs are mine)
MFC after: 3 days

14 years agoEHCI Hardware BUG workaround
Andrew Thompson [Thu, 1 Oct 2009 18:37:16 +0000 (18:37 +0000)]
EHCI Hardware BUG workaround

The EHCI HW can use the qtd_next field instead of qtd_altnext when a short
packet is received. This contradicts what is stated in the EHCI datasheet.
Also the total-bytes field in the status field of the following TD gets
corrupted upon reception of a short packet!  We work this around in software by
not queueing more than one job/TD at a time of up to 16Kbytes! The bug has been
seen on multiple INTEL based EHCI chips.  Other vendors have not been tested
yet.

- Applications using /dev/usb/X.Y.Z, where Z is non-zero are affected, but not
  applications using LibUSB v0.1, v1.2 and v2.0.
- Mass Storage (umass) is affected.

Submitted by: Hans Petter Selasky
MFC after: 3 days

14 years agoCorrect the pthread stub prototype for pthread_mutexattr_settype to allow for
Joe Marcus Clarke [Thu, 1 Oct 2009 18:23:50 +0000 (18:23 +0000)]
Correct the pthread stub prototype for pthread_mutexattr_settype to allow for
the type argument.  This is known to fix some pthread_mutexattr_settype()
invocations, especially when it comes to pulseaudio.

Approved by: kib
deischen (threads)
MFC after: 3 days

14 years agoProvide default implementation for VOP_ACCESS(9), so that filesystems which
Edward Tomasz Napierala [Thu, 1 Oct 2009 17:22:03 +0000 (17:22 +0000)]
Provide default implementation for VOP_ACCESS(9), so that filesystems which
want to provide VOP_ACCESSX(9) don't have to implement both.  Note that
this commit makes implementation of either of these two mandatory.

Reviewed by: kib

14 years agoUpgrade to OpenSSH 5.3p1.
Dag-Erling Smørgrav [Thu, 1 Oct 2009 17:12:52 +0000 (17:12 +0000)]
Upgrade to OpenSSH 5.3p1.

14 years agoChanged an IPSEC_ASSERT to a simple test, as such invalid packets
VANHULLEBUS Yvan [Thu, 1 Oct 2009 15:33:53 +0000 (15:33 +0000)]
Changed an IPSEC_ASSERT to a simple test, as such invalid packets
may come from outside without being discarded before.

Submitted by: aurelien.ansel@netasq.com
Reviewed by: bz (secteam)
Obtained from: NETASQ
MFC after: 1m

14 years agoVendor import of OpenSSH 5.3p1
Dag-Erling Smørgrav [Thu, 1 Oct 2009 15:19:37 +0000 (15:19 +0000)]
Vendor import of OpenSSH 5.3p1

14 years agoAs a workaround, for Intel CPUs, do not use CLFLUSH in
Konstantin Belousov [Thu, 1 Oct 2009 12:52:48 +0000 (12:52 +0000)]
As a workaround, for Intel CPUs, do not use CLFLUSH in
pmap_invalidate_cache_range() when self-snoop is apparently not reported
in cpu features. We get a reserved trap when clflushing APIC registers
window.

XEN in full system virtualization mode removes self-snoop from CPU
features, making this a problem.

Tested by: csjp
Reviewed by: alc
MFC after: 3 days

14 years agoDo not dereference vp->v_mount without holding vnode lock and checking
Konstantin Belousov [Thu, 1 Oct 2009 12:50:26 +0000 (12:50 +0000)]
Do not dereference vp->v_mount without holding vnode lock and checking
that the vnode is not reclaimed.

Noted by: Igor Sysoev <is rambler-co ru>
MFC after: 1 week

14 years agoMove the annotation for vm_map_startup() immediately before the function.
Konstantin Belousov [Thu, 1 Oct 2009 12:48:35 +0000 (12:48 +0000)]
Move the annotation for vm_map_startup() immediately before the function.

MFC after: 3 days

14 years agoFix typo.
Konstantin Belousov [Thu, 1 Oct 2009 12:46:58 +0000 (12:46 +0000)]
Fix typo.

MFC after: 3 days

14 years agoFix a bad use of NULL instead of zero for int comparison. Sorry for the
Coleman Kane [Thu, 1 Oct 2009 11:52:06 +0000 (11:52 +0000)]
Fix a bad use of NULL instead of zero for int comparison. Sorry for the
breakage.

Submitted by: bz, des, onemda
MFC after: 3 days

14 years agoprint machine in kernel boot version string
Andriy Gapon [Thu, 1 Oct 2009 10:53:12 +0000 (10:53 +0000)]
print machine in kernel boot version string

Discussed with: gavin, kib, jhb
PR: kern/126926
MFC after: 2 weeks

14 years agoMFi386: revision 197653
Yoshihiro Takahashi [Thu, 1 Oct 2009 10:46:22 +0000 (10:46 +0000)]
MFi386: revision 197653

  Improve 802.11s comment.

MFC after: 1 day

14 years agostyle(9) fixes (always compare pointers to NULL)
Coleman Kane [Thu, 1 Oct 2009 02:43:51 +0000 (02:43 +0000)]
style(9) fixes (always compare pointers to NULL)

Also, the previous commit to sys/dev/if_ndis/if_ndis.c also included the
removal of a call to ndis_setstate_80211 that is no longer needed.

Submitted by: sam
MFC after: 3 days

14 years agoImprove 802.11s comment.
Rui Paulo [Thu, 1 Oct 2009 02:08:42 +0000 (02:08 +0000)]
Improve 802.11s comment.

Spotted by: dougb
MFC after: 1 day

14 years agoFix typo in the comment.
Edward Tomasz Napierala [Wed, 30 Sep 2009 18:50:50 +0000 (18:50 +0000)]
Fix typo in the comment.

14 years agoDo not hold the ACPI A/C adapter lock when changing the power profile.
John Baldwin [Wed, 30 Sep 2009 17:07:49 +0000 (17:07 +0000)]
Do not hold the ACPI A/C adapter lock when changing the power profile.

MFC after: 2 weeks

14 years agoSplit the 'video' ACPI lock up into two locks to resolve a LOR with the
John Baldwin [Wed, 30 Sep 2009 17:05:26 +0000 (17:05 +0000)]
Split the 'video' ACPI lock up into two locks to resolve a LOR with the
sysctl lock.  The 'video' lock now protects the 'bus' of video output
devices attached to a graphics adapter.  It is used when iterating over
the list of outputs, etc.  The 'video_output' lock is used to lock the
output-specific data similar to a driver lock for the individual video
outputs.

MFC after: 2 weeks

14 years agocpufunc.h: unify/correct style of c extension names
Andriy Gapon [Wed, 30 Sep 2009 16:34:50 +0000 (16:34 +0000)]
cpufunc.h: unify/correct style of c extension names

i386 and amd64 archs only.
inline => __inline. [1]
__asm__ => __asm. [2]

Reviewed by: kib, jhb [1]
Suggested by: kib [2]
MFC after: 1 week

14 years agoDon't do an IPv6 operation when the kernel doesn't have
Hajimu UMEMOTO [Wed, 30 Sep 2009 14:58:10 +0000 (14:58 +0000)]
Don't do an IPv6 operation when the kernel doesn't have
an IPv6 support.

Reported by: Alexander Best <alexbestms__at__math.uni-muenster.de>
Confirmed by: Paul B. Mahol <onemda__at__gmail.com>,
Alexander Best <alexbestms__at__math.uni-muenster.de>

14 years agoTwo more mxge watchdog fixes:
Andrew Gallatin [Wed, 30 Sep 2009 14:42:06 +0000 (14:42 +0000)]
Two more mxge watchdog fixes:

1) Restore the PCI Express control register after a watchdog
   reset.  This is required because the device will come out
   of watchdog reset with the pectl reg at its default state,
   and important BIOS configuration (like max payload size)
   could be lost.

2) Call mxge_start_locked() for every tx queue before dropping
   the lock in the watchdog handler.   This is required, as
   the queue's buf ring may have filled during the reset.

14 years agoCorrect a bug that could lead to a kernel panic if a user attempted to
Coleman Kane [Wed, 30 Sep 2009 14:28:38 +0000 (14:28 +0000)]
Correct a bug that could lead to a kernel panic if a user attempted to
perform 802.11 operations directly on the ndis0 interface before the
first VAP (wlan0) had been created. This would lead to a NULL-pointer
dereference in the kernel.

Submitted by: Paul B. Mahol <onemda@gmail.com>
MFC after: 3 days

14 years agoWhen releasing a read/shared lock we need to use a write memory barrier
Attilio Rao [Wed, 30 Sep 2009 13:26:31 +0000 (13:26 +0000)]
When releasing a read/shared lock we need to use a write memory barrier
in order to avoid, on architectures which doesn't have strong ordered
writes, CPU instructions reordering.

Diagnosed by: fabio
Reviewed by: jhb
Tested by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>

14 years agoprint_caddr_t: drop incorrect __unused attribute from parameter
Andriy Gapon [Wed, 30 Sep 2009 11:14:13 +0000 (11:14 +0000)]
print_caddr_t: drop incorrect __unused attribute from parameter

seems like a purely cosmetic change

Reviewed by: jhb, kib
MFC after: 1 week

14 years agoFix typo in previous commit.
Alexander Motin [Wed, 30 Sep 2009 11:05:12 +0000 (11:05 +0000)]
Fix typo in previous commit.
Add Realtek ALC887 codec ID.

14 years agoRegenerate system call files following r197636.
Robert Watson [Wed, 30 Sep 2009 08:48:59 +0000 (08:48 +0000)]
Regenerate system call files following r197636.

14 years agoReserve system call numbers for Capsicum security framework capabilities,
Robert Watson [Wed, 30 Sep 2009 08:46:01 +0000 (08:46 +0000)]
Reserve system call numbers for Capsicum security framework capabilities,
capability mode, and process descriptors: cap_new, cap_getrights, cap_enter,
cap_getmode, pdfork, pdkill, pdgetpid, and pdwait.

Obtained from: TrustedBSD Project
Sponsored by: Google
MFC after: 3 weeks

14 years agoFix multicast handling. All Atheros controllers use big-endian form
Pyun YongHyeon [Tue, 29 Sep 2009 23:03:16 +0000 (23:03 +0000)]
Fix multicast handling. All Atheros controllers use big-endian form
in computing multicast hash.

PR: kern/139137

14 years agoFix using lp(1) without the new -t option after r194171.
Jilles Tjoelker [Tue, 29 Sep 2009 21:28:32 +0000 (21:28 +0000)]
Fix using lp(1) without the new -t option after r194171.

PR: standards/129554
Tested by: Steve Kargl
MFC after: 1 week

14 years agoAdd audit events for process descriptor system calls, which will appear in
Robert Watson [Tue, 29 Sep 2009 21:25:59 +0000 (21:25 +0000)]
Add audit events for process descriptor system calls, which will appear in
a future OpenBSM release.

Sponsored by: Google
Obtained from: TrustedBSD Project
MFC after: 3 weeks

14 years agoFix bug, when RADIUS client gave up after single sendto() error, do not
Alexander Motin [Tue, 29 Sep 2009 19:09:17 +0000 (19:09 +0000)]
Fix bug, when RADIUS client gave up after single sendto() error, do not
trying backup servers.

PR: kern/103764, misc/139214

14 years agoBy popular acclaim, enable "Starting foo:" messages by default
Doug Barton [Tue, 29 Sep 2009 16:49:10 +0000 (16:49 +0000)]
By popular acclaim, enable "Starting foo:" messages by default

14 years agoSpecial-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".
Colin Percival [Tue, 29 Sep 2009 16:26:09 +0000 (16:26 +0000)]
Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".

Tripped over by: too many people to count
MFC after: 1 month

14 years agoFixed markup bugs.
Ruslan Ermilov [Tue, 29 Sep 2009 10:50:02 +0000 (10:50 +0000)]
Fixed markup bugs.

14 years agoAdd some bits of HDMI/DisplayPort support from later specification updates.
Alexander Motin [Tue, 29 Sep 2009 09:36:38 +0000 (09:36 +0000)]
Add some bits of HDMI/DisplayPort support from later specification updates.
It may be not enough to make them work, but at least should give some
information about these beasts.

14 years agoThe first 96 bytes may not be zeroes. It can contain trivial boot
Marcel Moolenaar [Mon, 28 Sep 2009 23:52:47 +0000 (23:52 +0000)]
The first 96 bytes may not be zeroes. It can contain trivial boot
code that merely emits an error and waits for a key press before
rebooting. The error being that extended partitions are not
bootable. The origin is presumed to be Windows 2000; Windows XP
does not do this...

For now, ignore the first 96 bytes when checking that the EBR is
(for the most part) all zeroes.

Tested by: Mario Lobo <mlobo@digiart.art.br>
MFC after: 1 week

14 years agoFix offset handling
Robert Noland [Mon, 28 Sep 2009 22:41:28 +0000 (22:41 +0000)]
Fix offset handling

MFC after: 1 week

14 years agoradeon_family is an enum, so ordering can be important.
Robert Noland [Mon, 28 Sep 2009 22:40:29 +0000 (22:40 +0000)]
radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.

MFC after: 1 week

14 years agoFix blit pitch for 4 byte transfers on r600.
Robert Noland [Mon, 28 Sep 2009 22:38:44 +0000 (22:38 +0000)]
Fix blit pitch for 4 byte transfers on r600.

MFC after: 1 week

14 years agoR600 doesn't support IRQs yet, so don't try to use them.
Robert Noland [Mon, 28 Sep 2009 22:37:07 +0000 (22:37 +0000)]
R600 doesn't support IRQs yet, so don't try to use them.

MFC after: 1 week

14 years agoFor AR8132 fast ethernet controller, do not report 1000baseT
Pyun YongHyeon [Mon, 28 Sep 2009 22:18:38 +0000 (22:18 +0000)]
For AR8132 fast ethernet controller, do not report 1000baseT
capability to mii(4). Even though AR8132 uses the same model/
revision number of F1 gigabit PHY, the PHY has no ability to
establish 1000baseT link. I have no idea why Atheros use the same
device/model id for this PHY.
With this change atphy(4) does not report 1000baseT media
capability and manual 1000baseT configuration is also disabled
which is more desirable behavior for 10/100Mbps PHY.

14 years agoMFV of tzdata2009n
Edwin Groothuis [Mon, 28 Sep 2009 21:53:28 +0000 (21:53 +0000)]
MFV of tzdata2009n

Pakistan will go out DST on 1 October.
Headsup for changes in Argentina.

14 years agoImport of tzdata2009n:
Edwin Groothuis [Mon, 28 Sep 2009 21:46:54 +0000 (21:46 +0000)]
Import of tzdata2009n:

Pakistan will go out of DST on 1 October 2009.
Heads up for upcoming changes in Argentina.

Obtained from: ftp://elsie.nci.nih.gov/pub/

14 years agoDGE-560SX is now supported.
Pyun YongHyeon [Mon, 28 Sep 2009 21:15:57 +0000 (21:15 +0000)]
DGE-560SX is now supported.

14 years agoAdd DGE-560SX(Yukon XL) to the supported device list. Many thanks
Pyun YongHyeon [Mon, 28 Sep 2009 21:11:31 +0000 (21:11 +0000)]
Add DGE-560SX(Yukon XL) to the supported device list. Many thanks
to "Eugene Perevyazko <john <> dnepro dot net>" who kindly gave
remote access to system with DGE-560SX.

14 years agoAdd workaround for Yukon XL which has hardware bug that can't flush
Pyun YongHyeon [Mon, 28 Sep 2009 21:07:19 +0000 (21:07 +0000)]
Add workaround for Yukon XL which has hardware bug that can't flush
FIFO.

14 years agoAdd hack to pass controller specific information to phy driver.
Pyun YongHyeon [Mon, 28 Sep 2009 21:03:28 +0000 (21:03 +0000)]
Add hack to pass controller specific information to phy driver.
Unlike most other PHYs there is no easy way to know which media
type the PHY supports on Marvell PHYs. MIIF_HAVEFIBER flags is now
passed via bus-specific instance variable of a device. While I'm
here add 88E1112 specific work around to set SIGDET polarity low.
Many thanks "Eugene Perevyazko <john <> dnepro dot net>" who kindly
gave remote access to system with DGE-560SX.

14 years agoFix MIB statistics clear routine. This should fix alignment errors on sparc64.
Pyun YongHyeon [Mon, 28 Sep 2009 20:03:37 +0000 (20:03 +0000)]
Fix MIB statistics clear routine. This should fix alignment errors on sparc64.

Reported by: Garrett Damore < gdamore <> opensolaris dot org >

14 years agoSome fiber PHY(88E1112) does not seem to set resolved speed so
Pyun YongHyeon [Mon, 28 Sep 2009 19:53:53 +0000 (19:53 +0000)]
Some fiber PHY(88E1112) does not seem to set resolved speed so
always assume we've got IFM_1000_SX.

14 years agoDon't encode model id twice.
Pyun YongHyeon [Mon, 28 Sep 2009 19:48:17 +0000 (19:48 +0000)]
Don't encode model id twice.

Reported by: Kristof Provost <kristof <> sigsegv dot be>

14 years agoIt seems some 82559ER controllers do not support Rx checksum
Pyun YongHyeon [Mon, 28 Sep 2009 19:40:16 +0000 (19:40 +0000)]
It seems some 82559ER controllers do not support Rx checksum
offloading. Datasheet said nothing about the limitation of 82559ER
except WOL. Explicitly disable Rx checksum offloading for
controllers that is known to lack the capability.

PR: kern/138135
Tested by: Gooderum, Mark < mgooderum <> websense dot com >

14 years agoRemove unnecessary device reinitialization.
Pyun YongHyeon [Mon, 28 Sep 2009 19:33:52 +0000 (19:33 +0000)]
Remove unnecessary device reinitialization.

14 years agoSet the prison in NFS anon and GSS SVC creds (as I indended to in r197581).
Jamie Gritton [Mon, 28 Sep 2009 18:55:29 +0000 (18:55 +0000)]
Set the prison in NFS anon and GSS SVC creds (as I indended to in r197581).

Reviewed by: marcel

14 years agoBack out r197581, which replaced this file witk sys/kern/vfs_export.c.
Jamie Gritton [Mon, 28 Sep 2009 18:54:26 +0000 (18:54 +0000)]
Back out r197581, which replaced this file witk sys/kern/vfs_export.c.

Who knew that "svn export" was an actual command, or that I would have
vfs_export.c stuck in my mind deep enough to type "export" instead of
"commit"?

Pointy Hat to:  jamie

14 years agoSet the prison in NFS anon and GSS SVC creds.
Jamie Gritton [Mon, 28 Sep 2009 18:07:16 +0000 (18:07 +0000)]
Set the prison in NFS anon and GSS SVC creds.

Reviewed by: marcel
MFC after: 3 days

14 years agoTemporarily disable the use of 1GB page mappings by the direct map. There
Alan Cox [Mon, 28 Sep 2009 17:10:27 +0000 (17:10 +0000)]
Temporarily disable the use of 1GB page mappings by the direct map.  There
are currently two problems with the use of 1GB page mappings by the direct
map.  First, at least one device driver uses pmap_extract() rather than
DMAP_TO_PHYS() to translate a direct map address to a physical address.
Unfortunately, neither pmap_extract() nor pmap_kextract() yet support 1GB
page mappings.  Second, pmap_bootstrap() needs to interrogate the MTRRs to
ensure that a 1GB page mapping doesn't span two MTRRs of different types.

Reported and tested by: Daniel O'Connor
MFC after: 3 days

14 years agoAdd two new fcntls to enable/disable read-ahead:
Xin LI [Mon, 28 Sep 2009 16:59:47 +0000 (16:59 +0000)]
Add two new fcntls to enable/disable read-ahead:

 - F_READAHEAD: specify the amount for sequential access.  The amount is
   specified in bytes and is rounded up to nearest block size.
 - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
   access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.

Submitted by: Igor Sysoev <is rambler-co ru>
Reviewed by: kib@
MFC after: 1 month

14 years agoUse correct sizeof() object for klist 'list'. Currently, struct klist
Xin LI [Mon, 28 Sep 2009 10:22:46 +0000 (10:22 +0000)]
Use correct sizeof() object for klist 'list'.  Currently, struct klist
contained only SLIST_HEAD as its member, thus sizeof(struct klist) would
equal to sizeof(struct klist *), so this change makes the code more
correct in terms of semantics, but should be a no-op to compiler at this
time.

Reported by: MQ <antinvidia at gmail com>

14 years agoFixed a markup bug.
Ruslan Ermilov [Mon, 28 Sep 2009 09:49:48 +0000 (09:49 +0000)]
Fixed a markup bug.

14 years agoAdd back endpoint swap detection that was disabled in an earlier driver
Andrew Thompson [Mon, 28 Sep 2009 08:18:14 +0000 (08:18 +0000)]
Add back endpoint swap detection that was disabled in an earlier driver
conversion.

Submitted by: Hans Petter Selasky

14 years agoAdd new FTDI IDs.
Andrew Thompson [Mon, 28 Sep 2009 08:15:26 +0000 (08:15 +0000)]
Add new FTDI IDs.

Submitted by: Maks Verver, Arrigo Marchiori

14 years agoUse a 2 clause BSD-style license instead of stating the code as public
Xin LI [Mon, 28 Sep 2009 08:14:15 +0000 (08:14 +0000)]
Use a 2 clause BSD-style license instead of stating the code as public
domain, as requested by core@ and reviewed by the author.

14 years agoAdd experimental support for usb serial console and polled mode during DDB.
Andrew Thompson [Mon, 28 Sep 2009 08:13:50 +0000 (08:13 +0000)]
Add experimental support for usb serial console and polled mode during DDB.

Submitted by: Hans Petter Selasky

14 years agoAdd a config number quirk for the ELSA_MODEM1
Andrew Thompson [Mon, 28 Sep 2009 08:09:11 +0000 (08:09 +0000)]
Add a config number quirk for the ELSA_MODEM1

Submitted by: Stefan Bethke

14 years agoadd more device IDs
Andrew Thompson [Mon, 28 Sep 2009 08:07:20 +0000 (08:07 +0000)]
add more device IDs

Reported by: Mike Tancsa
Submitted by: Hans Petter Selasky

14 years agoAllow setting of MAC address for AXE based ethernet adapters.
Andrew Thompson [Mon, 28 Sep 2009 08:05:14 +0000 (08:05 +0000)]
Allow setting of MAC address for AXE based ethernet adapters.

Submitted by: yongari