]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoBring USB fixes for linux(4).
Wojciech A. Koszek [Mon, 24 May 2010 07:04:00 +0000 (07:04 +0000)]
Bring USB fixes for linux(4).

Intention of this commit is to let us take a full advantage
of libusb(8) ported to Linux. This decreases a possibility of getting
any collisions within ioctl() "command" space, especially with
relation to  LINUX_SNDCTL_SEQ... stuff.

Basically, we provide commands, that will be mapped in the kernel
to correct ones and forward those to the USB layer. Port enabling
functionality brought with this patch is here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=146895

Bump __FreeBSD_version to catch, since which version installing a
port makes sense.

This patch should bring no regressions. So far, only i386 is tested.

Tested by: thompsa@
Reviewed by: thompsa@
OKed by: netchild@

14 years agoFix back references in substitute command for pax(1)
Ulrich Spörlein [Mon, 24 May 2010 06:33:14 +0000 (06:33 +0000)]
Fix back references in substitute command for pax(1)

pax(1) was trying to copy the back-referenced data from
the match pattern, not the matched data.

PR: bin/118132
Obtained from: Debian bug #451361
Reviewed by: jilles
MFC after: 3 weeks

14 years agomdoc: consistently spell our email addresses <foo@FreeBSD.org>
Ulrich Spörlein [Mon, 24 May 2010 06:26:38 +0000 (06:26 +0000)]
mdoc: consistently spell our email addresses <foo@FreeBSD.org>

Reviewed by: ru
Approved by: harti

14 years agoRemove unused code in sys/mips/rmi :
Jayachandran C. [Mon, 24 May 2010 06:01:37 +0000 (06:01 +0000)]
Remove unused code in sys/mips/rmi :
 - ehcireg.h,ehcivar.h : USB related files from old merge
 - pcibus.c : was merged into xlr_pci.c earlier
 - xlr_boot1_console.c : obsolete console code using bootloader hooks
 - sys/mips/rmi/perfmon* : obsolete custom performance monitoring code

Approved by: rrs (mentor)

14 years agoRestore different APIC init orders for i386 and amd64 unified in r208452.
Alexander Motin [Mon, 24 May 2010 01:49:00 +0000 (01:49 +0000)]
Restore different APIC init orders for i386 and amd64 unified in r208452.
Seems noone of them contents both arch for different reasons.

Submitted by: kib@

14 years agosh: Add some simplistic tests for the wait builtin.
Jilles Tjoelker [Sun, 23 May 2010 22:10:20 +0000 (22:10 +0000)]
sh: Add some simplistic tests for the wait builtin.

14 years agoRemove kstat.zfs.arcstats.l2_write_bytes_written
Martin Matuska [Sun, 23 May 2010 21:16:34 +0000 (21:16 +0000)]
Remove kstat.zfs.arcstats.l2_write_bytes_written

The arcstats.l2_write_bytes_written kstat counter introduced
in r205231 was duplicite with vendor's arcstats.l2_write_bytes counter
imported in r208373 (OpenSolaris revision 8582:df9361868dbe)

Approved by: pjd, delphij (mentor)
MFC after: 3 days

14 years agoFix zfs receive temporarily changing unchanged stream properties.
Martin Matuska [Sun, 23 May 2010 21:02:43 +0000 (21:02 +0000)]
Fix zfs receive temporarily changing unchanged stream properties.
Fix possible panic with zfs_enable_datasets.

OpenSolaris onnv revision: 8536:33bd5de3260e

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 67485616757075)
MFC after: 3 days

14 years agoAt least on sparc64 these modules require ata_machdep.c.
Marius Strobl [Sun, 23 May 2010 20:24:03 +0000 (20:24 +0000)]
At least on sparc64 these modules require ata_machdep.c.

MFC after: 3 days

14 years agoCorrect the path to the MD source so r206569 actually works as intended.
Marius Strobl [Sun, 23 May 2010 20:08:41 +0000 (20:08 +0000)]
Correct the path to the MD source so r206569 actually works as intended.

14 years agoRevise PowerPC hardware notes to reflect status for 8.1.
Nathan Whitehorn [Sun, 23 May 2010 20:00:12 +0000 (20:00 +0000)]
Revise PowerPC hardware notes to reflect status for 8.1.

14 years agoExplain how the new sub-second interval from changeset:208389 works.
Sean Bruno [Sun, 23 May 2010 19:48:54 +0000 (19:48 +0000)]
Explain how the new sub-second interval from changeset:208389 works.

Approved by: scottl(mentor)
Obtained from: Yahoo Inc.
MFC after: 2 weeks

14 years agoUpdate the sparc64 hardware list regarding machines that will be supported
Marius Strobl [Sun, 23 May 2010 19:46:19 +0000 (19:46 +0000)]
Update the sparc64 hardware list regarding machines that will be supported
beginning with 8.1-RELEASE as well as correct some existing entries and
add previously missed ones.

Approved by: blackend
MFC after: 3 days

14 years agoCreate UMA zones unconditionally.
Pawel Jakub Dawidek [Sun, 23 May 2010 19:10:06 +0000 (19:10 +0000)]
Create UMA zones unconditionally.

MFC after: 3 days

14 years agoZIO_USE_UMA is no longer used.
Pawel Jakub Dawidek [Sun, 23 May 2010 18:43:06 +0000 (18:43 +0000)]
ZIO_USE_UMA is no longer used.

MFC after: 3 days

14 years agoRemove ZIO_USE_UMA from arc.c as well.
Pawel Jakub Dawidek [Sun, 23 May 2010 18:42:33 +0000 (18:42 +0000)]
Remove ZIO_USE_UMA from arc.c as well.

MFC after: 3 days

14 years agoReorganize syscall entry and leave handling.
Konstantin Belousov [Sun, 23 May 2010 18:32:02 +0000 (18:32 +0000)]
Reorganize syscall entry and leave handling.

Extend struct sysvec with three new elements:
sv_fetch_syscall_args - the method to fetch syscall arguments from
  usermode into struct syscall_args. The structure is machine-depended
  (this might be reconsidered after all architectures are converted).
sv_set_syscall_retval - the method to set a return value for usermode
  from the syscall. It is a generalization of
  cpu_set_syscall_retval(9) to allow ABIs to override the way to set a
  return value.
sv_syscallnames - the table of syscall names.

Use sv_set_syscall_retval in kern_sigsuspend() instead of hardcoding
the call to cpu_set_syscall_retval().

The new functions syscallenter(9) and syscallret(9) are provided that
use sv_*syscall* pointers and contain the common repeated code from
the syscall() implementations for the architecture-specific syscall
trap handlers.

Syscallenter() fetches arguments, calls syscall implementation from
ABI sysent table, and set up return frame. The end of syscall
bookkeeping is done by syscallret().

Take advantage of single place for MI syscall handling code and
implement ptrace_lwpinfo pl_flags PL_FLAG_SCE, PL_FLAG_SCX and
PL_FLAG_EXEC. The SCE and SCX flags notify the debugger that the
thread is stopped at syscall entry or return point respectively.  The
EXEC flag augments SCX and notifies debugger that the process address
space was changed by one of exec(2)-family syscalls.

The i386, amd64, sparc64, sun4v, powerpc and ia64 syscall()s are
changed to use syscallenter()/syscallret(). MIPS and arm are not
converted and use the mostly unchanged syscall() implementation.

Reviewed by: jhb, marcel, marius, nwhitehorn, stas
Tested by: marcel (ia64), marius (sparc64), nwhitehorn (powerpc),
stas (mips)
MFC after: 1 month

14 years agoUnify local_apic.c for x86 archs,
Alexander Motin [Sun, 23 May 2010 17:45:01 +0000 (17:45 +0000)]
Unify local_apic.c for x86 archs,

14 years agomvs(4) will first appear in FreeBSD 8.1.
Alexander Motin [Sun, 23 May 2010 14:11:27 +0000 (14:11 +0000)]
mvs(4) will first appear in FreeBSD 8.1.

14 years agoFix kernel panic when calling spa_tryimport() on a corrupted pool.
Martin Matuska [Sun, 23 May 2010 10:13:11 +0000 (10:13 +0000)]
Fix kernel panic when calling spa_tryimport() on a corrupted pool.

OpenSolaris onnv revision: 8680:005fe27123ba

Approved by: delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6786321)
MFC after: 1 day

14 years agoFix mutex_exit misorder that can cause a kernel panic.
Martin Matuska [Sun, 23 May 2010 10:08:05 +0000 (10:08 +0000)]
Fix mutex_exit misorder that can cause a kernel panic.

OpenSolaris onnv revision: 8667:5c308a17eb7c

Approved by: delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6795440)
MFC after: 1 day

14 years agoReport relative card address to NewBus as location string.
Alexander Motin [Sun, 23 May 2010 09:44:48 +0000 (09:44 +0000)]
Report relative card address to NewBus as location string.

14 years agoOops, HPET ID optionally stored in _UID, not in _ADR.
Alexander Motin [Sun, 23 May 2010 08:31:15 +0000 (08:31 +0000)]
Oops, HPET ID optionally stored in _UID, not in _ADR.

14 years agoMake acl_get_perm_np(3) work with NFSv4 ACLs.
Edward Tomasz Napierala [Sun, 23 May 2010 08:12:36 +0000 (08:12 +0000)]
Make acl_get_perm_np(3) work with NFSv4 ACLs.

Reviewed by: kientzle@
MFC after: 1 week

14 years agoMake table-based HPET identification more clever. Before creating fake
Alexander Motin [Sun, 23 May 2010 07:53:22 +0000 (07:53 +0000)]
Make table-based HPET identification more clever. Before creating fake
device, make sure we have no real HPET device entry with same ID.
As side effect, it potentially allows several HPETs to be attached.
Use first of them for timecounting, rest (if ever present) could later
be used as event sources.

14 years ago- Use ptpgzone zone to allocate page table pages irrespective of the amount of
Neel Natu [Sat, 22 May 2010 21:38:57 +0000 (21:38 +0000)]
- Use ptpgzone zone to allocate page table pages irrespective of the amount of
  memory on a platform. Tested on the Sibyte with 256MB and 1GB memory
  configurations.

- Replace vtophys() with MIPS_KSEG0_TO_PHYS() to convert a page table
  page's virtual address to physical. We can safely do this because
  page table pages are allocated out of KSEG0.

- Add an assertion to verify that when a page table page is freed it
  contains all zeroes. We can now use it after allocation without
  zeroing it.

14 years agoo Remove EoL w/spaces introduced in the last commit.
Maxim Konovalov [Sat, 22 May 2010 20:19:12 +0000 (20:19 +0000)]
o Remove EoL w/spaces introduced in the last commit.

Spotted by: uqs

14 years agoo Grammar.
Maxim Konovalov [Sat, 22 May 2010 16:30:33 +0000 (16:30 +0000)]
o Grammar.

PR: conf/146827
Submitted by: chris petrik

14 years agoFill rman range start/end values. It makes devinfo output more readable.
Alexander Motin [Sat, 22 May 2010 08:30:47 +0000 (08:30 +0000)]
Fill rman range start/end values. It makes devinfo output more readable.

14 years agoFix more style(9) nits that I missed in the previous commit.
Jung-uk Kim [Sat, 22 May 2010 07:44:33 +0000 (07:44 +0000)]
Fix more style(9) nits that I missed in the previous commit.

14 years agoFix style(9) nits.
Jung-uk Kim [Sat, 22 May 2010 07:38:29 +0000 (07:38 +0000)]
Fix style(9) nits.

14 years agoSuspend screen updates when the video controller is powered down.
Jung-uk Kim [Sat, 22 May 2010 07:35:17 +0000 (07:35 +0000)]
Suspend screen updates when the video controller is powered down.

14 years agoReport ATA/SATA channel number to NewBus at location string.
Alexander Motin [Sat, 22 May 2010 07:32:47 +0000 (07:32 +0000)]
Report ATA/SATA channel number to NewBus at location string.

14 years agoHonor hw.pci.do_power_nodriver on resume. Power-down devices without
Alexander Motin [Sat, 22 May 2010 03:19:30 +0000 (03:19 +0000)]
Honor hw.pci.do_power_nodriver on resume. Power-down devices without
driver attached.

14 years agoFlush all routes before adding the default route in order to allow
Randi Harper [Sat, 22 May 2010 00:43:14 +0000 (00:43 +0000)]
Flush all routes before adding the default route in order to allow
sysinstall to cleanly re-initialize the network.

PR: bin/145553
Submitted by: gcooper
Approved by: cperciva (mentor)
MFC after: 3 days

14 years agoNow that single-threaded access to firmware is enforced by
Nathan Whitehorn [Fri, 21 May 2010 20:46:01 +0000 (20:46 +0000)]
Now that single-threaded access to firmware is enforced by
IPI_RENDEZVOUS, the ofw mutex is irrelevant.

14 years agoFixup order of entries (including mine), reported by yar@freebsd.org
Jayachandran C. [Fri, 21 May 2010 19:08:24 +0000 (19:08 +0000)]
Fixup order of entries (including mine), reported by yar@freebsd.org

Approved by: rrs (mentor)

14 years agoImprove suspend/resume support. Make sure controller is idle on suspend
Alexander Motin [Fri, 21 May 2010 17:26:16 +0000 (17:26 +0000)]
Improve suspend/resume support. Make sure controller is idle on suspend
and reset it on resume.

14 years ago- Adjust the whitespace for the lines that output fields in 'show pcpu' in
John Baldwin [Fri, 21 May 2010 17:17:56 +0000 (17:17 +0000)]
- Adjust the whitespace for the lines that output fields in 'show pcpu' in
  DDB so that all the fields line up.
- Print out the tid of the per-CPU idlethread instead of the pid since
  the idle process is now shared across all idle threads.

MFC after: 1 month

14 years agoAssert that the thread passed to sched_bind() and sched_unbind() is
John Baldwin [Fri, 21 May 2010 17:15:56 +0000 (17:15 +0000)]
Assert that the thread passed to sched_bind() and sched_unbind() is
curthread as those routines are only supported for curthread currently.

MFC after: 1 month

14 years agoAllow a const char * to be passed as the process name to kproc_kthread_add()
John Baldwin [Fri, 21 May 2010 17:14:36 +0000 (17:14 +0000)]
Allow a const char * to be passed as the process name to kproc_kthread_add()
without generating a warning.

MFC after: 1 month

14 years agoAllow sub-second interval timings for iostat and vmstat.
Sean Bruno [Fri, 21 May 2010 17:10:52 +0000 (17:10 +0000)]
Allow sub-second interval timings for iostat and vmstat.
e.g.
vmstat -w.5
iostat -w.5

Reviewed by: jhb
Approved by: scottl (mentor)
Obtained from: Yahoo Inc.
MFC after: 2 weeks

14 years ago- Set 'dmadat' earlier so that we properly setup the heap if we fail to
John Baldwin [Fri, 21 May 2010 16:58:52 +0000 (16:58 +0000)]
- Set 'dmadat' earlier so that we properly setup the heap if we fail to
  locate a high memory area for the heap using the SMAP.
- Read the number of hard drive devices from the BIOS instead of hardcoding
  a limit of 128.  Some BIOSes duplicate disk devices once you get beyond
  the maximum drive number.

MFC after: 1 month

14 years agoAdd interrupt descriptions for mxge's msi-x vectors
Andrew Gallatin [Fri, 21 May 2010 15:57:24 +0000 (15:57 +0000)]
Add interrupt descriptions for mxge's msi-x vectors

14 years agoImprove suspend/resume support. Make sure controller is idle on suspend
Alexander Motin [Fri, 21 May 2010 13:29:28 +0000 (13:29 +0000)]
Improve suspend/resume support. Make sure controller is idle on suspend
and reset it on resume.

14 years agoRemove PIOLLHUP from the flags used to test for to set exceptfsd
Konstantin Belousov [Fri, 21 May 2010 10:36:29 +0000 (10:36 +0000)]
Remove PIOLLHUP from the flags used to test for to set exceptfsd
fd_set bits in select(2). It seems that historical behaviour is to not
reporting exception on EOF, and several applications are broken.

Reported by: Yoshihiko Sarumaru <ysarumaru gmail com>
Discussed with: bde
PR: ports/140934
MFC after: 2 weeks

14 years agoUpdate L2ARC code and fix several bugs.
Martin Matuska [Fri, 21 May 2010 09:52:49 +0000 (09:52 +0000)]
Update L2ARC code and fix several bugs.

- improve ARC memory consumption (Bug ID 6488341)
- ARC/L2ARC metadata accounting (Bug ID 6748019)
- L2ARC turbo warmup (Bud ID 6748023)
- kstats for ARC content (Bug ID 6748023)
- kstats for evicted bytes from ARC by L2ARC state (Bud ID 6871680)
- fix panic on i386 systems (Bug ID 6821260)

OpenSolaris onnv revisions:
8582:df9361868dbe, 8628:97dcded6e556, 9215:7c4584f76b47,
9274:a10f8bd993c1, 10357:29060492b29d

OpenSolaris Bug IDs:
67480196748023674803064883416798268682126067902616871680

Approved by: pjd, delphij (mentor)
Obtained from: OpenSlaris (multiple bug IDs)
MFC after: 3 days

14 years agoReorder some already introduced locking variables.
Martin Matuska [Fri, 21 May 2010 09:35:28 +0000 (09:35 +0000)]
Reorder some already introduced locking variables.

OpenSolaris onnv revision: 8214:d7abf7c1f1c1

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6747934)
MFC after: 3 days

14 years agoFix stack overflow in zfs send.
Martin Matuska [Fri, 21 May 2010 08:55:18 +0000 (08:55 +0000)]
Fix stack overflow in zfs send.

OpenSolaris onnv-revision: 8012:8ea30813950f

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6765626)
MFC after: 3 days

14 years agoFix: vdev_reopen() can lead to failed allocations
Martin Matuska [Fri, 21 May 2010 08:50:34 +0000 (08:50 +0000)]
Fix: vdev_reopen() can lead to failed allocations

OpenSolaris onnv-revision: 7980:589f37f25048

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6764914)
MFC after: 3 days

14 years agoChanges to boot on a subset of threads on an XLR/XLS core.
Jayachandran C. [Fri, 21 May 2010 05:34:19 +0000 (05:34 +0000)]
Changes to boot on a subset of threads on an XLR/XLS core.
- Adds re-partitioning TLB per core for enabled threads.
- Adds hardware thread id to cpuid mapping
- updates rge driver packet distribution and message ring handling
  threads to be started based on hardware thread id.
- remove unused early debugging code to set control registers.
- coding style fixes

Approved by: rrs (mentor)

14 years agoFix a long-standing bug in the PowerPC OFW call function on SMP machines
Nathan Whitehorn [Thu, 20 May 2010 21:07:58 +0000 (21:07 +0000)]
Fix a long-standing bug in the PowerPC OFW call function on SMP machines
where running ofwdump could cause hangs by forcing all secondary CPUs
into a busy wait with interrupts off during the call.

Following section 8.4 of the Open Firmware PowerPC processor binding,
the firmware is free to overwrite the system interrupt handlers during
OF calls, restoring the OS handlers on exit. On single CPU systems, this
process is invisible to the operating system. On multiple CPU systems,
taking any exception on a secondary CPU while an OF call is in progress
ends with that exception vectored into OF, resulting in a slow movement
of the entire system into firmware context and a machine hang.

MFC after: 3 days

14 years agoRevert r208353. It did not work as I expected because WITHOUT_MAN is set
Jung-uk Kim [Thu, 20 May 2010 20:15:56 +0000 (20:15 +0000)]
Revert r208353.  It did not work as I expected because WITHOUT_MAN is set
for bootstrap-tools target and WITHOUT_MAN_UTILS was implied by default.

Pointy hat: jkim

14 years agoRestore part of 200671 which was lost in previous driver changes:
John Baldwin [Thu, 20 May 2010 20:01:54 +0000 (20:01 +0000)]
Restore part of 200671 which was lost in previous driver changes:
- Add interrupt descriptions when using mulitple MSI-X interrupts.

14 years agoDocument NANO_ARCH which is no longer hard coded as of r205980.
Wesley Shields [Thu, 20 May 2010 18:39:33 +0000 (18:39 +0000)]
Document NANO_ARCH which is no longer hard coded as of r205980.

Approved by: imp@

14 years agoRemove invalid assertion.
Navdeep Parhar [Thu, 20 May 2010 18:22:45 +0000 (18:22 +0000)]
Remove invalid assertion.

Holding the adapter lock while changing the LRO settings is sufficient.

PR: kern/146759
MFC after: 3 days

14 years agoAdd jchandra, with rrs as mentor
Jayachandran C. [Thu, 20 May 2010 17:30:55 +0000 (17:30 +0000)]
Add jchandra, with rrs as mentor

Approved by: rrs (mentor)

14 years agoWe do not have to build makewhatis as a bootstrap tool when it is disabled
Jung-uk Kim [Thu, 20 May 2010 16:24:12 +0000 (16:24 +0000)]
We do not have to build makewhatis as a bootstrap tool when it is disabled
by WITHOUT_MAN_UTILS.

14 years agoAdd support for the Perle Speed4 LE.
John Baldwin [Thu, 20 May 2010 13:16:42 +0000 (13:16 +0000)]
Add support for the Perle Speed4 LE.

Submitted by: Douglas K. Rand  rand of meridian-enviro com
MFC after: 3 days

14 years agoChange ad_firmware_geom_adjust() to operate on a struct disk * only and
Marius Strobl [Thu, 20 May 2010 12:46:19 +0000 (12:46 +0000)]
Change ad_firmware_geom_adjust() to operate on a struct disk * only and
hook it up to ada(4) also. While at it, rename *ad_firmware_geom_adjust()
to *ata_disk_firmware_geom_adjust() etc now that these are no longer
limited to ad(4).

Reviewed by: mav
MFC after: 3 days

14 years agoRemove unnecessary headers which were inherited from cam_xpt.c without
Marius Strobl [Thu, 20 May 2010 12:44:06 +0000 (12:44 +0000)]
Remove unnecessary headers which were inherited from cam_xpt.c without
reason.

Reviewed by: mav
MFC after: 3 days

14 years agoAdd new memory days for Russian Federation.
Sergey A. Osokin [Thu, 20 May 2010 10:51:22 +0000 (10:51 +0000)]
Add new memory days for Russian Federation.
Fix date and description.

Obtained from: http://pda.lenta.ru/news/2010/05/19/baptism/
http://www.garant.ru/doc/busref/spr_prazdn/

Thanks to: maxim

14 years agoWith r208341 in place WARNS can be increased.
Marius Strobl [Thu, 20 May 2010 09:00:11 +0000 (09:00 +0000)]
With r208341 in place WARNS can be increased.

14 years agoUpdate to a config.h created by a file 5.03 configure script. This causes
Marius Strobl [Thu, 20 May 2010 08:56:50 +0000 (08:56 +0000)]
Update to a config.h created by a file 5.03 configure script. This causes
file.1 to contain the correct version number and SIZEOF_LONG_LONG to be
defined as appropriate, which is crucial for 64-bit big-endian ELF files
to be handled correctly on big-endian systems.

PR: 146387
Reviewed by: delphij
MFC after: 3 days

14 years agoWhen waiting for the busy page, do not unlock the object unless unlock
Konstantin Belousov [Thu, 20 May 2010 08:51:01 +0000 (08:51 +0000)]
When waiting for the busy page, do not unlock the object unless unlock
cannot be avoided.

Reviewed by: alc
MFC after: 1 week

14 years agoUpgrade to 9.6.2-P2, which addresses the following;
Doug Barton [Thu, 20 May 2010 08:15:06 +0000 (08:15 +0000)]
Upgrade to 9.6.2-P2, which addresses the following;

   Named could return SERVFAIL for negative responses
   from unsigned zones.

14 years agoo DragonFly 2.6.0 added.
Maxim Konovalov [Thu, 20 May 2010 08:07:25 +0000 (08:07 +0000)]
o DragonFly 2.6.0 added.

Submitted by: pluknet

14 years agoRevert r208324. We still need it for installworld as $PATH is overriden.
Jung-uk Kim [Thu, 20 May 2010 06:51:01 +0000 (06:51 +0000)]
Revert r208324.  We still need it for installworld as $PATH is overriden.

14 years agoRename an argument from "exp" to "expect" since the former makes FlexeLint
Poul-Henning Kamp [Thu, 20 May 2010 06:18:03 +0000 (06:18 +0000)]
Rename an argument from "exp" to "expect" since the former makes FlexeLint
uneasy, in case anybody think it might be exp(3) in libm.

This also makes it consistent with other archs.

14 years agoFix some way-past-brucification complaints from FlexeLint.
Poul-Henning Kamp [Thu, 20 May 2010 06:16:13 +0000 (06:16 +0000)]
Fix some way-past-brucification complaints from FlexeLint.

14 years agoAdd support to background fsck to delete zero-length directories.
Kirk McKusick [Thu, 20 May 2010 06:05:40 +0000 (06:05 +0000)]
Add support to background fsck to delete zero-length directories.

14 years agoVendor import of BIND 9.6.2-P2
Doug Barton [Thu, 20 May 2010 05:38:08 +0000 (05:38 +0000)]
Vendor import of BIND 9.6.2-P2

14 years agoo OpenBSD 4.7 added.
Maxim Konovalov [Thu, 20 May 2010 05:03:02 +0000 (05:03 +0000)]
o OpenBSD 4.7 added.

14 years agoRemove makewhatis(1) from bootstrap tools. We no longer support source
Jung-uk Kim [Thu, 20 May 2010 00:13:01 +0000 (00:13 +0000)]
Remove makewhatis(1) from bootstrap tools.  We no longer support source
upgrades from versions prior to 6.0 on head.

14 years agoRegen for r208321.
Jung-uk Kim [Thu, 20 May 2010 00:10:11 +0000 (00:10 +0000)]
Regen for r208321.

14 years agoAdd an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).
Jung-uk Kim [Thu, 20 May 2010 00:07:21 +0000 (00:07 +0000)]
Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).

14 years agoAdd a new build option, MAN_UTILS. This option lets you control building
Jung-uk Kim [Wed, 19 May 2010 23:56:26 +0000 (23:56 +0000)]
Add a new build option, MAN_UTILS.  This option lets you control building
utilities and related support files for manual pages, which were previously
controlled by MAN.  For POLA, the default depends on MAN, i.e., WITHOUT_MAN
implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS.  This patch
is slightly improved by me from:

PR: misc/145212

14 years agoCorrectly identify some twinax cables, which report
Andrew Gallatin [Wed, 19 May 2010 20:00:15 +0000 (20:00 +0000)]
Correctly identify some twinax cables, which report
a media type of 1.

14 years agoAdd constants for the optional EOI suppression support in local APICs and
John Baldwin [Wed, 19 May 2010 19:52:41 +0000 (19:52 +0000)]
Add constants for the optional EOI suppression support in local APICs and
EOI registers in I/O APICs.

14 years agoUpdate mxge firmware to latest available from Myricom.
Andrew Gallatin [Wed, 19 May 2010 19:44:00 +0000 (19:44 +0000)]
Update mxge firmware to latest available from Myricom.

14 years agoThis change does the following for the scripts that run up through
Doug Barton [Wed, 19 May 2010 19:03:19 +0000 (19:03 +0000)]
This change does the following for the scripts that run up through
FILESYSTEMS (the default early_late_divider):
1. Move sysctl to run first
2. Move as many BEFOREs to REQUIREs as possible.
3. Minor effect, move hostid_save from right before mdconfig to right
   after.

A lot of the early scripts make use of sysctl one way or another so
running this first makes a lot of sense given that system-critical
values are often placed in sysctl.conf.

My original purpose for working on this was that while doing some
debugging on other stuff I noticed that the order of execution was
different in the first pass through the early scripts and the second.
In practice that doesn't matter because the scripts are not executed the
second time. However this _can_ result in problems if the difference in
the rcorder moves a script from the late section to the early section in
the second pass (which would mean the script would not get executed).
So, I wanted to make the order of execution of the scripts in the early
section more deterministic.

In the course of debugging the ordering problems I noticed that moving
the BEFOREs to REQUIREs prevented the changes in order from the first
pass to the second pass without having to make any substantial changes.
(Of course it's no secret that I think BEFORE should be avoided as much
as possible, but this is a good example of why.)

Reviewed by: silence on freebsd-rc@
MFC after: 8.1-RELEASE

14 years agoFix a race between ngs_rcvmsg() and soclose() which closes the control
Attilio Rao [Wed, 19 May 2010 15:06:09 +0000 (15:06 +0000)]
Fix a race between ngs_rcvmsg() and soclose() which closes the control
socket while it is still in use.
priv->ctlsock is checked at the top of the function but without any
lock held, which means the control socket state may certainly change.
Add a similar protection to ngs_shutdown() even if a race is unlikely
to be experienced there.

Sponsored by: Sandvine Incorporated
Obtained from: Nima Misaghian @ Sandvine Incorporated
<nmisaghian at sandvine dot com>
MFC after: 10 days

14 years agoffs_mount: accept and drop userland-only options that can be passed from
Andriy Gapon [Wed, 19 May 2010 09:32:11 +0000 (09:32 +0000)]
ffs_mount: accept and drop userland-only options that can be passed from
loader(8)

In r193192 loader(8) has grown an ability to pass root mount options
from fstab via vfs.root.mountfrom.options.  Unfortunately, some options
that can be present in fstab are for userland only and lead to root
mounting failure when seen by kernel.
Rather than teaching loader about FFS-specific options that should be
filtered out, ffs_mount recognizes those options as valid, but ignores
and deletes[1] them.

[1] is suggested by jh.

PR: kern/141050
Reported by: many
Reviewed by: jh, bde
MFC after: 4 days

14 years agomdoc: consistently spell our email addresses <foo@FreeBSD.org>
Ulrich Spörlein [Wed, 19 May 2010 08:57:53 +0000 (08:57 +0000)]
mdoc: consistently spell our email addresses <foo@FreeBSD.org>

Reviewed by: ru

14 years agoGarbage collect unused variable, missed in r200840
Ulrich Spörlein [Wed, 19 May 2010 08:52:59 +0000 (08:52 +0000)]
Garbage collect unused variable, missed in r200840

Found by: clang static analyzer

14 years ago- Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)
Ulrich Spörlein [Wed, 19 May 2010 08:52:51 +0000 (08:52 +0000)]
- Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)
  might be true on some systems [1]
- Rewrite gotos to use return directly
- Some spelling fixes
- Reduce unneeded/non-standard Makefile settings

Requested by: bde, imp [1]
Explanation provided by: bde [1]
Reviewed by: imp

14 years ago - Don't immediately re-run softdepflush if we didn't make any progress
Jeff Roberson [Wed, 19 May 2010 06:18:01 +0000 (06:18 +0000)]
 - Don't immediately re-run softdepflush if we didn't make any progress
   on the last iteration.  This can lead to a deadlock when we have
   worklist items that cannot be immediately satisfied.

Reported by: uqs, Dimitry Andric <dimitry@andric.com>

 - Remove some unnecessary debugging code and place some other under
   SUJ_DEBUG.
 - Examine the journal state in softdep_slowdown().
 - Re-format some comments so I may more easily add flag descriptions.

14 years agoCorrect a typo.
Nathan Whitehorn [Wed, 19 May 2010 01:37:47 +0000 (01:37 +0000)]
Correct a typo.

Pointy hat to: me

14 years agoFix our version of IPv6 address representation.
Alfred Perlstein [Wed, 19 May 2010 00:35:47 +0000 (00:35 +0000)]
Fix our version of IPv6 address representation.

We do not respect rules 3 and 4 in the required list:

1. omit leading zeros

2. "::" used to their maximum extent whenever possible

3. "::" used where shortens address the most

4. "::" used in the former part in case of a tie breaker

5. do not shorten one 16 bit 0 field

6. use lower case

http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04.html

Submitted by: Kalluru Abhiram @ Juniper Networks
Obtained from: Juniper Networks
Reviewed by: hrs, dougb

14 years agoSwitch to C99 exact-width types.
Marcel Moolenaar [Wed, 19 May 2010 00:23:10 +0000 (00:23 +0000)]
Switch to C99 exact-width types.

14 years agoA few changes:
Jack F Vogel [Wed, 19 May 2010 00:03:48 +0000 (00:03 +0000)]
A few changes:
  When not defining header split do not allocate mbufs,
  this can be a BIG savings in the mbuf memory pool.

  Also keep seperate dma maps for the header and
  payload pieces when doing header split. The basis
  of this code was a patch done a while ago by
  yongari, thank you :)

  A number of white space changes.

MFC: in a few days

14 years agoRestore the previous VESA mode after BIOS POST, just in case.
Jung-uk Kim [Tue, 18 May 2010 22:30:55 +0000 (22:30 +0000)]
Restore the previous VESA mode after BIOS POST, just in case.

14 years agoProvide missing members for Book-E pmap (and fix build).
Rafal Jaworowski [Tue, 18 May 2010 21:23:51 +0000 (21:23 +0000)]
Provide missing members for Book-E pmap (and fix build).

14 years agoRemove unnecessary pointer increment. A wrong pointer may be passed to
Jung-uk Kim [Tue, 18 May 2010 18:28:17 +0000 (18:28 +0000)]
Remove unnecessary pointer increment.  A wrong pointer may be passed to
free(9) and it can cause kernel panic when there are multiple graphics
controllers in the system.

Tested by: Brandon Gooch (jamesbrandongooch at gmail dot com)
MFC after: 3 days

14 years agoAdd a sentence to the man page explaining that the -d option
Benedict Reuschling [Tue, 18 May 2010 18:14:12 +0000 (18:14 +0000)]
Add a sentence to the man page explaining that the -d option
can only be used when ntpd is compiled with DEBUG support.

PR:             docs/138206
Submitted by:   Oliver Pinter (oliver dot pntr at gmail dot com)
MFC after:      5 days
Approved by:    roberto

14 years agoAdd a device description.
Rui Paulo [Tue, 18 May 2010 17:01:07 +0000 (17:01 +0000)]
Add a device description.

14 years agoThe page queues lock is no longer required by vm_page_set_invalid(), so
Alan Cox [Tue, 18 May 2010 16:40:29 +0000 (16:40 +0000)]
The page queues lock is no longer required by vm_page_set_invalid(), so
eliminate it.

Assert that the object containing the page is locked in
vm_page_test_dirty().  Perform some style clean up while I'm here.

Reviewed by: kib

14 years agoRetry reads that fail with EINTR. This fixes a problem
Tim Kientzle [Tue, 18 May 2010 14:11:38 +0000 (14:11 +0000)]
Retry reads that fail with EINTR.  This fixes a problem
with bsdtar failing on SIGINT.

14 years agoOnly use the cache after the early stage of loading. This is
Roman Divacky [Tue, 18 May 2010 08:55:23 +0000 (08:55 +0000)]
Only use the cache after the early stage of loading. This is
because calling mmap() etc. may use GOT which is not set up
yet. Use calloc() instead of mmap() in cases where this
was the case before (sparc64, powerpc, arm).

Submitted by: Dimitry Andric (dimitry andric com)
Reviewed by: kan
Approved by: ed (mentor)

14 years agoAllow the experimental NFSv4 client to use cached attributes
Rick Macklem [Tue, 18 May 2010 05:18:21 +0000 (05:18 +0000)]
Allow the experimental NFSv4 client to use cached attributes
when a write delegation is held. Also, add a missing
mtx_unlock() call for the ACL debugging code.

MFC after: 5 days