]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoAdd device entry for DWC OTG.
Hans Petter Selasky [Tue, 11 Sep 2012 22:10:36 +0000 (22:10 +0000)]
Add device entry for DWC OTG.

11 years agoFix missing parts of DWC OTG host mode support. The host mode support
Hans Petter Selasky [Tue, 11 Sep 2012 22:08:19 +0000 (22:08 +0000)]
Fix missing parts of DWC OTG host mode support. The host mode support
of the DWC OTG is very simple in PIO mode, and we need to re-transmit
data when NAK is received among other things. We probably will need
to implement some kind of rate limitation on the NAK-ing.

11 years agoRemove a few files that are not needed for FreeBSD.
Xin LI [Tue, 11 Sep 2012 21:16:22 +0000 (21:16 +0000)]
Remove a few files that are not needed for FreeBSD.

PR: bin/171555
Approved by: obrien

11 years agoWARNS is now default to 6.
Xin LI [Tue, 11 Sep 2012 21:13:18 +0000 (21:13 +0000)]
WARNS is now default to 6.

11 years ago When synchronizing, include in the config dump amount of
Gleb Smirnoff [Tue, 11 Sep 2012 20:20:13 +0000 (20:20 +0000)]
  When synchronizing, include in the config dump amount of
bytes syncronized.
  The rationale behind this is the following: for large disks the
percent synchronisation counter ticks too seldom, and monitoring
software (as well as human operator) can't tell whether
synchronisation goes on or one of disks got stuck. On an idle
server one can look into gstat and see whether synchronisation goes
on or not, but on a busy server that won't work. Also, new value
monitored can be differentiated obtaining the synchronisation speed
quite precisely.

Submitted by: Konstantin Kukushkin <dark ramtel.ru>
Reviewed by: pjd

11 years agoMinor mdoc fix.
Joel Dahl [Tue, 11 Sep 2012 19:25:59 +0000 (19:25 +0000)]
Minor mdoc fix.

11 years agoMinor mdoc fix.
Joel Dahl [Tue, 11 Sep 2012 17:57:03 +0000 (17:57 +0000)]
Minor mdoc fix.

11 years agoMinor mdoc fix.
Joel Dahl [Tue, 11 Sep 2012 17:40:06 +0000 (17:40 +0000)]
Minor mdoc fix.

11 years agorevert r240344: cpu_devices[] is used in other functions and must be kept
Andriy Gapon [Tue, 11 Sep 2012 17:21:25 +0000 (17:21 +0000)]
revert r240344: cpu_devices[] is used in other functions and must be kept

Reported by: gjb, glebius
Pointyhat to: avg
MFC after: 1 day
X-MFC note: fake MFC, reminder to never MFC r240344

11 years agoRemove a prefetch() directive that, after careful testing, does more harm
Scott Long [Tue, 11 Sep 2012 16:59:04 +0000 (16:59 +0000)]
Remove a prefetch() directive that, after careful testing, does more harm
than good.

Submitted by: Fabien Thomas
Reviewed by: jfv

11 years agoEnsure mkcsmapper and mkesdb compile with clang, if WITH_ICONV is
Dimitry Andric [Tue, 11 Sep 2012 16:32:31 +0000 (16:32 +0000)]
Ensure mkcsmapper and mkesdb compile with clang, if WITH_ICONV is
defined.

Submitted by: zeising
PR: bin/167481
MFC after: 3 days
X-MFC-With: r238197

11 years ago- Remove unused variables.
Andrey Zonov [Tue, 11 Sep 2012 16:30:26 +0000 (16:30 +0000)]
- Remove unused variables.
- Remove redundant return after err(3) call.

Approved by: kib (mentor)

11 years ago- Add myself to calendar.freebsd
Jason E. Hale [Tue, 11 Sep 2012 13:29:50 +0000 (13:29 +0000)]
- Add myself to calendar.freebsd
- Add my mentor relationships to committers-ports.dot

Approved by: makc (mentor)

11 years agoAdd the same warning to rand48(3) as to rand(3) and random(3).
Dag-Erling Smørgrav [Tue, 11 Sep 2012 12:55:15 +0000 (12:55 +0000)]
Add the same warning to rand48(3) as to rand(3) and random(3).

MFC after: 3 days

11 years agoPrevent nump NULL pointer dereference in bmap_getlbns()
Kevin Lo [Tue, 11 Sep 2012 09:38:32 +0000 (09:38 +0000)]
Prevent nump NULL pointer dereference in bmap_getlbns()

11 years agoforgotten file from r240346
Andriy Gapon [Tue, 11 Sep 2012 08:45:49 +0000 (08:45 +0000)]
forgotten file from r240346

Pointyhat to: avg
MFC after: 10 days
X-MFC with: r240346

11 years agoFix style nit
Kevin Lo [Tue, 11 Sep 2012 08:36:41 +0000 (08:36 +0000)]
Fix style nit

11 years agoDo not count kernel threads as processes for hrSystemProcesses OID.
Gleb Smirnoff [Tue, 11 Sep 2012 08:33:16 +0000 (08:33 +0000)]
Do not count kernel threads as processes for hrSystemProcesses OID.

PR: bin/160494
Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>

11 years agoSpelling.
Gleb Smirnoff [Tue, 11 Sep 2012 08:28:58 +0000 (08:28 +0000)]
Spelling.

11 years agoRemove unused values
Kevin Lo [Tue, 11 Sep 2012 07:54:41 +0000 (07:54 +0000)]
Remove unused values

11 years agoRemove dead return code
Kevin Lo [Tue, 11 Sep 2012 07:35:24 +0000 (07:35 +0000)]
Remove dead return code

11 years agozfs boot: add a size check for a value in fzap_lookup
Andriy Gapon [Tue, 11 Sep 2012 07:15:11 +0000 (07:15 +0000)]
zfs boot: add a size check for a value in fzap_lookup

MFC after: 25 days

11 years agozfs boot: print only an attribute name in fzap_list
Andriy Gapon [Tue, 11 Sep 2012 07:13:58 +0000 (07:13 +0000)]
zfs boot: print only an attribute name in fzap_list

... this matches mzap_list behavior

MFC after: 12 days

11 years agozfs boot: fix/replace fzap_rlookup implementation
Andriy Gapon [Tue, 11 Sep 2012 07:12:48 +0000 (07:12 +0000)]
zfs boot: fix/replace fzap_rlookup implementation

The previous one was totally bogus as it used hash value of
_output_ variable as an index for searching...
The only reliable way to do a reverse lookup here is to iterate
over all entries.

MFC after: 15 days

11 years agozfs boot: bring zap_leaf_chunk field names in sync with kernel code
Andriy Gapon [Tue, 11 Sep 2012 07:11:32 +0000 (07:11 +0000)]
zfs boot: bring zap_leaf_chunk field names in sync with kernel code

This change is cosmetic.

MFC after: 10 days

11 years agozfs: fix sa_modify_attrs handling of variable-sized attributes
Andriy Gapon [Tue, 11 Sep 2012 07:07:52 +0000 (07:07 +0000)]
zfs: fix sa_modify_attrs handling of variable-sized attributes

- skip length_idx index for a replaced variable-sized attribute
- skip length_idx index for a removed variable-sized attribute
- also re-arranged code to make sure that length_idx is always
  incremented for variable-sized attributes
- additionally add an assertion that the number of actually produced
  attributes is the same as the expected number of resulting
  attributes

In cooperation with: Matthew Ahrens <mahrens@delphix.com>
Tested by: Trent Nelson <trent@snakebite.org>
Reviewed by: Matthew Ahrens <mahrens@delphix.com> (for upstream)
To do: get this upstreamed
MFC after: 2 weeks

11 years agoacpi_cpu: free result of device_get_children
Andriy Gapon [Tue, 11 Sep 2012 06:26:20 +0000 (06:26 +0000)]
acpi_cpu: free result of device_get_children

MFC after: 1 week

11 years agorc.d/power_profile: use recently added Cmax for cx_lowest
Andriy Gapon [Tue, 11 Sep 2012 06:25:10 +0000 (06:25 +0000)]
rc.d/power_profile: use recently added Cmax for cx_lowest

Trying to determine current lowest C-state after an AC event is racy
with C-states actually being changed by ACPI platform and kernel driver.

MFC after: 3 weeks

11 years agoboot: file_loadraw should strdup name argument
Andriy Gapon [Tue, 11 Sep 2012 06:18:36 +0000 (06:18 +0000)]
boot: file_loadraw should strdup name argument

... the same way it's done for type argument.

MFC after: 2 weeks

11 years agoa bit of trailing whitespace cleanup
Andriy Gapon [Tue, 11 Sep 2012 06:15:55 +0000 (06:15 +0000)]
a bit of trailing whitespace cleanup

MFC after: 1 week

11 years agoacpi.4: machdep.cpu_idle_hlt no longer exists
Andriy Gapon [Tue, 11 Sep 2012 06:14:03 +0000 (06:14 +0000)]
acpi.4: machdep.cpu_idle_hlt no longer exists

MFC after: 1 week

11 years agoopenssl: change SHLIB_VERSION_NUMBER to reflect the reality
Andriy Gapon [Tue, 11 Sep 2012 06:10:49 +0000 (06:10 +0000)]
openssl: change SHLIB_VERSION_NUMBER to reflect the reality

Note: I timed out waiting for an exp-run for this change but I survived
having it locally for quite a long time.

MFC after: 1 month
X-MFC note: SHLIB_MAJOR is 6 in stable/8 and stable/9

11 years agoSimply things so that "#REQUIRE: FILESYSTEMS" means the file
David E. O'Brien [Tue, 11 Sep 2012 05:04:59 +0000 (05:04 +0000)]
Simply things so that "#REQUIRE: FILESYSTEMS" means the file
systems are fully "ready to go".

'FILESYSTEMS' states: "This is a dummy dependency, for services which
require file systems to be mounted before starting."  However, we have
'var' which is was run after 'FILESYSTEMS' and can mount /var if it
already isn't mounted.  Furthermore, several scripts cannot use /var
until 'cleanvar' has done its thing.  Thus "FILESYSTEMS" hasn't really
meant all critical file systems are fully usable.

11 years agoSlightly reduce an overhead for the open() call in the zfsloader.
Andrey V. Elsukov [Tue, 11 Sep 2012 04:54:44 +0000 (04:54 +0000)]
Slightly reduce an overhead for the open() call in the zfsloader.
libstand(3) tries to detect file system in the predefined order,
but zfsloader usually is used for the booting from ZFS, and there is
no need to try detect several file system types for each open() call.

11 years agoAdd postrandom.
David E. O'Brien [Tue, 11 Sep 2012 04:53:32 +0000 (04:53 +0000)]
Add postrandom.

11 years agoClear the correct descriptor when going through the chained together
Adrian Chadd [Tue, 11 Sep 2012 04:11:42 +0000 (04:11 +0000)]
Clear the correct descriptor when going through the chained together
gather DMA descriptor list.

Pointy hat to: adrian@, for even USING bf->bf_desc here instead of 'ds'.

11 years agoFollow up to doc r39516:
Eitan Adler [Tue, 11 Sep 2012 02:29:36 +0000 (02:29 +0000)]
Follow up to doc r39516:

Update the Vendor Relations Team information to reflect that
incoming email is now handled by core@ and the Foundation.

Reviewed by: gjb
MFC after: 3 days

11 years agoRemove scsi_low_pisa.c from the module Makefile to keep in line
George V. Neville-Neil [Mon, 10 Sep 2012 21:57:40 +0000 (21:57 +0000)]
Remove scsi_low_pisa.c from the module Makefile to keep in line
with r240325.

11 years agoRemove some more NetBSD compat shims and other unused bits from these
John Baldwin [Mon, 10 Sep 2012 18:49:49 +0000 (18:49 +0000)]
Remove some more NetBSD compat shims and other unused bits from these
drivers:
- Remove scsi_low_pisa.*, they were unused.
- Remove <compat/netbsd/physio_proc.h> and calls to the stubs in that
  header.  They were empty nops.
- Retire sl_xname and use device_get_nameunit() and device_printf() with
  the underlying device_t instead.
- Remove unused {ct,ncv,nsp,stg}print() functions.
- Remove empty SOFT_INTR_REQUIRED() macro and the unused sl_irq member.

11 years agohrs has yet to create clones of himself
Eitan Adler [Mon, 10 Sep 2012 16:51:43 +0000 (16:51 +0000)]
hrs has yet to create clones of himself

MFC after: 3 days
X-MFC-With: r240318, r240294

11 years agoAdd SOFT as a possible section to exclude from counter list.
Fabien Thomas [Mon, 10 Sep 2012 16:32:28 +0000 (16:32 +0000)]
Add SOFT as a possible section to exclude from counter list.

11 years agoReplace all uses of the vm page queues lock by a r/w lock that is private
Alan Cox [Mon, 10 Sep 2012 16:27:19 +0000 (16:27 +0000)]
Replace all uses of the vm page queues lock by a r/w lock that is private
to this pmap.

Revise some comments.

The file vm/vm_param.h includes the file machine/vmparam.h, so there is no
need to directly include it.

Tested by: andrew

11 years agoUpdate a few more teams and hats with new members.
Eitan Adler [Mon, 10 Sep 2012 16:19:12 +0000 (16:19 +0000)]
Update a few more teams and hats with new members.

Remove explicit re${arch} teams as they are not listed anywhere else.
MFC after: 3 days
X-MFC-With: r240294

11 years agoSimplify pmap_unmapdev(). Since kmem_free() eventually calls pmap_remove(),
Alan Cox [Mon, 10 Sep 2012 16:11:29 +0000 (16:11 +0000)]
Simplify pmap_unmapdev().  Since kmem_free() eventually calls pmap_remove(),
pmap_unmapdev()'s own direct efforts to destroy the page table entries are
redundant, so eliminate them.

Don't set PTE_W on the page table entry in pmap_kenter{,_attr}() on MIPS.
Setting PTE_W on MIPS is inconsistent with the implementation of this
function on other architectures.  Moreover, PTE_W should not be set, unless
the pmap's wired mapping count is incremented, which pmap_kenter{,_attr}()
doesn't do.

MFC after: 10 days

11 years agoWe moved to subversion ages ago.
Eitan Adler [Mon, 10 Sep 2012 14:11:10 +0000 (14:11 +0000)]
We moved to subversion ages ago.

Approved by: cperciva
MFC after: 3 days

11 years agoPoll VBUS status every second, hence the AT91 GPIO library doesn't support
Hans Petter Selasky [Mon, 10 Sep 2012 13:50:34 +0000 (13:50 +0000)]
Poll VBUS status every second, hence the AT91 GPIO library doesn't support
registering interrupt handlers yet for GPIO events.

11 years agoFix for IRQ hang in DWC OTG host mode.
Hans Petter Selasky [Mon, 10 Sep 2012 12:23:56 +0000 (12:23 +0000)]
Fix for IRQ hang in DWC OTG host mode.

11 years agomdocify the chat(8) manual page.
Joel Dahl [Mon, 10 Sep 2012 11:08:08 +0000 (11:08 +0000)]
mdocify the chat(8) manual page.

Reviewed by: brueffer

11 years agoAdd assfail() and assfail3() to the opensolaris module.
Martin Matuska [Mon, 10 Sep 2012 10:24:57 +0000 (10:24 +0000)]
Add assfail() and assfail3() to the opensolaris module.
Remove obsoleted intermediate cddl/compat/opensolaris/sys/debug.h.

MFC after: 2 weeks

11 years agoCleanup interrupt handling in Host Mode.
Hans Petter Selasky [Mon, 10 Sep 2012 08:23:56 +0000 (08:23 +0000)]
Cleanup interrupt handling in Host Mode.

11 years agoIf the IdlePDPT is not present, PAE is not active
Kevin Lo [Mon, 10 Sep 2012 08:16:45 +0000 (08:16 +0000)]
If the IdlePDPT is not present, PAE is not active

11 years agoNote that -quit terminates successfully.
Dag-Erling Smørgrav [Mon, 10 Sep 2012 07:56:59 +0000 (07:56 +0000)]
Note that -quit terminates successfully.

Requested by: jmg@

11 years agoAdd some colour to make it easy (well, easier) to see what the current
Adrian Chadd [Mon, 10 Sep 2012 06:07:28 +0000 (06:07 +0000)]
Add some colour to make it easy (well, easier) to see what the current
selected rates and current sample rates are.

(Note: when run under high traffic and with -s 0.1 the display becomes very
mesmerising.  You've been warned.)

11 years agoPOSIX requires sigevent to be visible after mqueue.h is included.
David Xu [Mon, 10 Sep 2012 05:12:45 +0000 (05:12 +0000)]
POSIX requires sigevent to be visible after mqueue.h is included.

11 years agoProcess CPU-Time Clocks option is supported, define _POSIX_CPUTIME.
David Xu [Mon, 10 Sep 2012 05:09:39 +0000 (05:09 +0000)]
Process CPU-Time Clocks option is supported, define _POSIX_CPUTIME.

11 years agoAdd missing prototype for clock_getcpuclockid.
David Xu [Mon, 10 Sep 2012 05:00:29 +0000 (05:00 +0000)]
Add missing prototype for clock_getcpuclockid.

11 years agoKeep this file relatively up to date (taken from f.b.o/adminstration)
Eitan Adler [Mon, 10 Sep 2012 02:40:17 +0000 (02:40 +0000)]
Keep this file relatively up to date (taken from f.b.o/adminstration)

MFC after: 3 days

11 years agoSync access file date recommendation
Eitan Adler [Mon, 10 Sep 2012 02:40:02 +0000 (02:40 +0000)]
Sync access file date recommendation
Change from CVS to svn for canconical source of information

MFC after: 3 days

11 years agoProperly define true/false when defining __bool_true_false_are_defined
Gregory Neil Shapiro [Mon, 10 Sep 2012 01:15:51 +0000 (01:15 +0000)]
Properly define true/false when defining __bool_true_false_are_defined
for filters which pull in mfapi.h before stdbool.h.  Issue reported by
Petr Rehor, maintainer of amavisd-milter port.

MFC after: 3 days

11 years agoAdd a simple printf() based debug facility to the new nfs client.
Rick Macklem [Sun, 9 Sep 2012 21:00:45 +0000 (21:00 +0000)]
Add a simple printf() based debug facility to the new nfs client.
Use it for a printf() that can be harmlessly generated for mmap()'d
files. It will be used extensively for the NFSv4.1 client.
Debugging printf()s are enabled by setting vfs.nfs.debuglevel to
a non-zero value. The higher the value, the more debugging printf()s.

Reviewed by: jhb
MFC after: 2 weeks

11 years agoAt least from A70M FCH chipsets AMD started to use their real vendor ID
Alexander Motin [Sun, 9 Sep 2012 20:00:00 +0000 (20:00 +0000)]
At least from A70M FCH chipsets AMD started to use their real vendor ID
(1022) in HPET. But according to report they still haven't fixed problem
with level-triggered interrupts.
Make workaround used for earlier chipsets apply to this new ID also.

PR: amd64/171355
MFC after: 3 days

11 years agoAllow shared lookups for nullfs mounts, if lower filesystem supports
Konstantin Belousov [Sun, 9 Sep 2012 19:20:23 +0000 (19:20 +0000)]
Allow shared lookups for nullfs mounts, if lower filesystem supports
it.  There are two problems which shall be addressed for shared
lookups use to have measurable effect on nullfs scalability:

1. When vfs_lookup() calls VOP_LOOKUP() for nullfs, which passes lookup
operation to lower fs, resulting vnode is often only shared-locked. Then
null_nodeget() cannot instantiate covering vnode for lower vnode, since
insmntque1() and null_hashins() require exclusive lock on the lower.

Change the assert that lower vnode is exclusively locked to only
require any lock.  If null hash failed to find pre-existing nullfs
vnode for lower vnode and the vnode is shared-locked, the lower vnode
lock is upgraded.

2. Nullfs reclaims its vnodes on deactivation. This is due to nullfs
inability to detect reclamation of the lower vnode.  Reclamation of a
nullfs vnode at deactivation time prevents a reference to the lower
vnode to become stale.

Change nullfs VOP_INACTIVE to not reclaim the vnode, instead use the
VFS_RECLAIM_LOWERVP to get notification and reclaim upper vnode
together with the reclamation of the lower vnode.

Note that nullfs reclamation procedure calls vput() on the lowervp
vnode, temporary unlocking the vnode being reclaimed. This seems to be
fine for MPSAFE filesystems, but not-MPSAFE code often put partially
initialized vnode on some globally visible list, and later can decide
that half-constructed vnode is not needed.  If nullfs mount is created
above such filesystem, then other threads might catch such not
properly initialized vnode. Instead of trying to overcome this case,
e.g. by recursing the lower vnode lock in null_reclaim_lowervp(), I
decided to rely on nearby removal of the support for non-MPSAFE
filesystems.

In collaboration with: pho
MFC after: 3 weeks

11 years agoAdd a facility for vgone() to inform the set of subscribed mounts
Konstantin Belousov [Sun, 9 Sep 2012 19:17:15 +0000 (19:17 +0000)]
Add a facility for vgone() to inform the set of subscribed mounts
about vnode reclamation. Typical use is for the bypass mounts like
nullfs to get a notification about lower vnode going away.

Now, vgone() calls new VFS op vfs_reclaim_lowervp() with an argument
lowervp which is reclaimed. It is possible to register several
reclamation event listeners, to correctly handle the case of several
nullfs mounts over the same directory.

For the filesystem not having nullfs mounts over it, the overhead
added is a single mount interlock lock/unlock in the vnode reclamation
path.

In collaboration with: pho
MFC after: 3 weeks

11 years agoAdd MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the
Konstantin Belousov [Sun, 9 Sep 2012 19:11:52 +0000 (19:11 +0000)]
Add MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the
lookup code that dotdot lookups shall override any shared lock
requests with the exclusive one. The flag is useful for filesystems
which sometimes need to upgrade shared lock to exclusive inside the
VOP_LOOKUP or later, which cannot be done safely for dotdot, due to
dvp also locked and causing LOR.

In collaboration with:     pho
MFC after: 3 weeks

11 years agoImplement missing USB suspend and resume support for DWC OTG driver.
Hans Petter Selasky [Sun, 9 Sep 2012 17:23:57 +0000 (17:23 +0000)]
Implement missing USB suspend and resume support for DWC OTG driver.

11 years agoAdd support for DWC OTG.
Hans Petter Selasky [Sun, 9 Sep 2012 14:53:34 +0000 (14:53 +0000)]
Add support for DWC OTG.

11 years agoAdd support for DWC OTG.
Hans Petter Selasky [Sun, 9 Sep 2012 14:51:38 +0000 (14:51 +0000)]
Add support for DWC OTG.

11 years agoAdd support for host mode to the DWC OTG controller driver.
Hans Petter Selasky [Sun, 9 Sep 2012 14:41:34 +0000 (14:41 +0000)]
Add support for host mode to the DWC OTG controller driver.
The DWC OTG host mode support should still be considered
experimental. Isochronous support for DWC OTG is not
fully implemented. Some code added derives from
Aleksandr Rybalko's dotg.c driver.

11 years agoDocument -quit, four and a half years after it was implemented.
Dag-Erling Smørgrav [Sun, 9 Sep 2012 13:18:13 +0000 (13:18 +0000)]
Document -quit, four and a half years after it was implemented.

MFC after: 3 days
Pointy hat to: imp@

11 years agoHandle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:40:37 +0000 (11:40 +0000)]
Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.

11 years agoUpdate according to the change of struct uboot_devdesc.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:37:17 +0000 (11:37 +0000)]
Update according to the change of struct uboot_devdesc.

11 years agoBuild disk.c only when DISK_SUPPORT is enabled.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:34:27 +0000 (11:34 +0000)]
Build disk.c only when DISK_SUPPORT is enabled.

11 years agoUpdate uboot's disk driver to use new DISK API.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:33:06 +0000 (11:33 +0000)]
Update uboot's disk driver to use new DISK API.

11 years agoUse disk_fmtdev() and disk_parsedev() functions from the new DISK API.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:32:06 +0000 (11:32 +0000)]
Use disk_fmtdev() and disk_parsedev() functions from the new DISK API.

11 years agoMake struct uboot_devdesc compatible with struct disk_devdesc.
Andrey V. Elsukov [Sun, 9 Sep 2012 11:30:45 +0000 (11:30 +0000)]
Make struct uboot_devdesc compatible with struct disk_devdesc.

11 years agoFor UDP transport set IP_RECVDSTADDR sockopt on the socket, and provide
Gleb Smirnoff [Sun, 9 Sep 2012 09:46:48 +0000 (09:46 +0000)]
For UDP transport set IP_RECVDSTADDR sockopt on the socket, and provide
IP_SENDSRCADDR control with datagram message we reply with. This makes
bsnmpd reply from exactly same address that request was sent to, thus
successfully bypassing stateful firewalls or other kinds of strict checking.

PR: bin/171279

11 years agoAdd removed if_pflow.h.
Gleb Smirnoff [Sun, 9 Sep 2012 08:14:47 +0000 (08:14 +0000)]
Add removed if_pflow.h.

11 years agoWhitespace changes.
Michael Tuexen [Sun, 9 Sep 2012 08:14:04 +0000 (08:14 +0000)]
Whitespace changes.

MFC after: 10 days

11 years agoRemove clause 3 and 4 from the NetBSD Foundation copyright header, missed
Joel Dahl [Sun, 9 Sep 2012 07:23:15 +0000 (07:23 +0000)]
Remove clause 3 and 4 from the NetBSD Foundation copyright header, missed
in r203971.

11 years agoRemove trailing whitespace.
Joel Dahl [Sun, 9 Sep 2012 06:54:42 +0000 (06:54 +0000)]
Remove trailing whitespace.

11 years agoMake sure the aggregate fields are properly cleared - both in the
Adrian Chadd [Sun, 9 Sep 2012 05:06:16 +0000 (05:06 +0000)]
Make sure the aggregate fields are properly cleared - both in the
ath_buf and when forming a non-aggregate frame.

The non-11n setds function is called when TXing aggregate frames (and
yes, I should fix this!) and the non-11n TX aggregation code doesn't clear
the delimiter field.  I figure it's nicer to do that.

11 years agoRemove TDMA #define entries from if_ath.c; they now exist in if_ath_tdma.h.
Adrian Chadd [Sun, 9 Sep 2012 04:53:10 +0000 (04:53 +0000)]
Remove TDMA #define entries from if_ath.c; they now exist in if_ath_tdma.h.

11 years agoMinor English grammar fixes.
Eitan Adler [Sun, 9 Sep 2012 01:22:32 +0000 (01:22 +0000)]
Minor English grammar fixes.
Specifically document that an incomplete ports tree is not supported.
Remove useless comment about sendmail.

Reviewed by: yuri.pankov@gmail.com
Approved by: cperciva (implicit)
MFC after: 1 week
X-MFC-With: r240252

11 years agoRemove documentation and www cvsup files as they are no longer useful
Eitan Adler [Sun, 9 Sep 2012 01:04:22 +0000 (01:04 +0000)]
Remove documentation and www cvsup files as they are no longer useful
with the switch to subversion.

Approved by: gjb (man pages)
Approved by: cperciva (example files, implicit)
MFC after: 1 week

11 years agoRegenerate src.conf.5 after the projects/armv6 merge
Eitan Adler [Sat, 8 Sep 2012 21:38:05 +0000 (21:38 +0000)]
Regenerate src.conf.5 after the projects/armv6 merge

Approved by: des

11 years agoWhitespace cleanup.
Michael Tuexen [Sat, 8 Sep 2012 20:54:54 +0000 (20:54 +0000)]
Whitespace cleanup.

MFC after: 10 days

11 years agoFix loading of kernel modules at boot time for powerpc64.
Andreas Tobler [Sat, 8 Sep 2012 20:00:31 +0000 (20:00 +0000)]
Fix loading of kernel modules at boot time for powerpc64.

Reported by: Mathias Breuninger
MFC after: 1 week

11 years agosh: Remove XXX comment about removing nextopt().
Jilles Tjoelker [Sat, 8 Sep 2012 19:24:03 +0000 (19:24 +0000)]
sh: Remove XXX comment about removing nextopt().

Using nextopt() avoids depending on the BSD-specific optreset feature in
getopt() and reduces code size (both source and binary).

11 years agoMove the checks for td_pinned, td_critnest, TDP_NOFAULTING and
Attilio Rao [Sat, 8 Sep 2012 18:35:15 +0000 (18:35 +0000)]
Move the checks for td_pinned, td_critnest, TDP_NOFAULTING and
TDP_NOSLEEPING leaking from syscallret() to userret() so that also
trap handling is covered. Also, the check on td_locks is not duplicated
between the two functions.

Reported by: avg
Reviewed by: kib
MFC after: 1 week

11 years agoMove PT_UPDATED_FLUSH() before td_locks check in order to have more
Attilio Rao [Sat, 8 Sep 2012 18:29:53 +0000 (18:29 +0000)]
Move PT_UPDATED_FLUSH() before td_locks check in order to have more
coverage also in the XEN case.

Reviewed by: kib
MFC after: 1 week

11 years agouserret() already checks for td_locks when INVARIANTS is enabled, so
Attilio Rao [Sat, 8 Sep 2012 18:27:11 +0000 (18:27 +0000)]
userret() already checks for td_locks when INVARIANTS is enabled, so
there is no need to check if Giant is acquired after it.

Reviewed by: kib
MFC after: 1 week

11 years agopmap_remove:
Alan Cox [Sat, 8 Sep 2012 17:43:20 +0000 (17:43 +0000)]
pmap_remove:

  Avoid re-walking the page table from the root for every PTE examined.

  Tidy up some of pmap_remove()'s helper functions.

pmap_enter:

  Set PV_TABLE_REF whenever the physical page being mapped is managed, not
  just when it is writeable.

  Only call pmap_update_page() when the old mapping was valid.  If there was
  no prior valid mapping, then pmap_update_page() serves no useful purpose.
  However, it will interrupt every processor that has the pmap active.

pmap_enter_quick_locked:

  Always set PTE_RO.

pmap_emulate_modified:

  Don't set PV_TABLE_REF.

  Eliminate a nonsensical comment.

11 years agoRevert r239049:
Eitan Adler [Sat, 8 Sep 2012 12:45:47 +0000 (12:45 +0000)]
Revert r239049:
This is the way to assign a range, but not
a single IPv4 address.

PR: conf/167648
Approved by: cperciva (implicit)

11 years agomdoc fixes.
Joel Dahl [Sat, 8 Sep 2012 08:46:43 +0000 (08:46 +0000)]
mdoc fixes.

11 years agoThe first part of check_priv() function, that attempts to obtain creds
Gleb Smirnoff [Sat, 8 Sep 2012 07:12:00 +0000 (07:12 +0000)]
The first part of check_priv() function, that attempts to obtain creds
from the control message, actually never worked. This means check_priv()
didn't work for local dgram sockets.

The SCM_CREDS control messages is received only in two cases:

1) If we did setsockopt(LOCAL_CREDS) on our socket, and in this case
   the message is struct sockcred.
2) If sender did supplied SCM_CREDS control message in his sendmsg()
   syscall. In this case the message is struct cmsgcred.

We can't rely on 2), so we will use 1) for dgram sockets. For stream
sockets it is more reliable to obtain accept-time credentials, since
SCM_CREDS control message is attached only on first read. Thus:

o Do setsockopt(LOCAL_CREDS) on local dgram sockets.
o Split check_priv() into check_priv_stream() and check_priv_dgram(),
  and call them from recv_stream() and recv_dgram() respectively.
o Don't provide space for SCM_CREDS control message in recv_stream().
o Provide space for SCM_CREDS control message in recv_dgram(), but there
  is no need to initialize anything in it.
o In recv_dgram() do not blindly expect that first message is SCM_CREDS,
  instead use correct search cycle through control messages.

11 years agoMerge the projects/pf/head branch, that was worked on for last six months,
Gleb Smirnoff [Sat, 8 Sep 2012 06:41:54 +0000 (06:41 +0000)]
Merge the projects/pf/head branch, that was worked on for last six months,
into head. The most significant achievements in the new code:

 o Fine grained locking, thus much better performance.
 o Fixes to many problems in pf, that were specific to FreeBSD port.

New code doesn't have that many ifdefs and much less OpenBSDisms, thus
is more attractive to our developers.

  Those interested in details, can browse through SVN log of the
projects/pf/head branch. And for reference, here is exact list of
revisions merged:

r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330,
r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656,
r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782,
r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868,
r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223,
r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456,
r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505,
r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168,
r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230,
r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398,
r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548,
r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672,
r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169,
r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442,
r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522,
r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661,
r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212.

I'd like to thank people who participated in early testing:

Tested by: Florian Smeets <flo freebsd.org>
Tested by: Chekaluk Vitaly <artemrts ukr.net>
Tested by: Ben Wilber <ben desync.com>
Tested by: Ian FREISLICH <ianf cloudseed.co.za>

11 years agoCorrectly mask out the RTS/CTS flags when forming aggregates.
Adrian Chadd [Sat, 8 Sep 2012 02:56:09 +0000 (02:56 +0000)]
Correctly mask out the RTS/CTS flags when forming aggregates.

This had the side effect of clearing HAL_TXDESC_CLRDMASK for a bunch of
frames, meaning they'd end up being potentially filtered if there were
an error.  This is fine in the previous world as they'd just be
software retried but now that I'm working on filtered frames, these
descriptors would be endlessly retried until another valid frame would
come along that had CLRDMASK set.

11 years agoAdd IRQ support to the resource list handling functions.
Rui Paulo [Sat, 8 Sep 2012 01:26:52 +0000 (01:26 +0000)]
Add IRQ support to the resource list handling functions.

11 years agoAdd a '-s <timeout>' option which will display live rate control
Adrian Chadd [Sat, 8 Sep 2012 01:14:13 +0000 (01:14 +0000)]
Add a '-s <timeout>' option which will display live rate control
statistics.

11 years agoRemove useless extra test.
Matt Jacob [Fri, 7 Sep 2012 22:45:31 +0000 (22:45 +0000)]
Remove useless extra test.

Pointed out by: Sascha of DragonFly BSD
MFC after: 2 weeks