]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoFix FDT_DTS_FILE parsing to properly retrieve its value. This unbreaks the
raj [Thu, 15 Jul 2010 10:49:07 +0000 (10:49 +0000)]
Fix FDT_DTS_FILE parsing to properly retrieve its value. This unbreaks the
'builddtb' target.

Make the processing more robust against non-existent kernel config files
(pointed out by imp@).

13 years agoAdd support for firmware images in "type-length-value" format.
bschmidt [Thu, 15 Jul 2010 10:37:49 +0000 (10:37 +0000)]
Add support for firmware images in "type-length-value" format.

Obtained from: OpenBSD
MFC after: 2 weeks

13 years agoDetect active chains differently to work around a firmware bug which
bschmidt [Thu, 15 Jul 2010 09:34:00 +0000 (09:34 +0000)]
Detect active chains differently to work around a firmware bug which
would mark non-existing chains as active.

Obtained from: OpenBSD
MFC after: 1 week

13 years ago- Add new IDs for 6000 series devices.
bschmidt [Thu, 15 Jul 2010 09:30:54 +0000 (09:30 +0000)]
- Add new IDs for 6000 series devices.
- The 6000 series WiMAX devices need a separate firmware.
- The b-gen devices are not hooked because the hardware revision type
  is not know.

Obtained from: OpenBSD
MFC after: 1 week

13 years agoFix some small whitespace nits.
bschmidt [Thu, 15 Jul 2010 08:05:20 +0000 (08:05 +0000)]
Fix some small whitespace nits.

MFC after: 3 days

13 years agoRemove duplicate vendor:device entry.
bschmidt [Thu, 15 Jul 2010 07:45:37 +0000 (07:45 +0000)]
Remove duplicate vendor:device entry.

MFC after: 3 days

13 years agoMove TLB definitions to tlb.h
imp [Thu, 15 Jul 2010 03:56:08 +0000 (03:56 +0000)]
Move TLB definitions to tlb.h

13 years agoThis file has been unused for a while now...
imp [Thu, 15 Jul 2010 03:36:50 +0000 (03:36 +0000)]
This file has been unused for a while now...

13 years agoUnbreak xz (liblzma) on strong-aligned architectures (and without
marcel [Thu, 15 Jul 2010 03:11:04 +0000 (03:11 +0000)]
Unbreak xz (liblzma) on strong-aligned architectures (and without
emulation of misaligned memory accesses). We cannot map the unaligned
memory access functions to the ones used for aligned accesses, so do
not define TUKLIB_FAST_UNALIGNED_ACCESS.

13 years agoThis patch fixes a bug in the experimental NFSv4 server where it
rmacklem [Thu, 15 Jul 2010 03:02:10 +0000 (03:02 +0000)]
This patch fixes a bug in the experimental NFSv4 server where it
released a reference count on nfsv4rootfs_lock erroneously when
administrative revocation of state was done.

Submitted by: zack.kirsch at isilon.com
MFC after: 2 weeks

13 years agoSanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPIC
marcel [Thu, 15 Jul 2010 02:22:50 +0000 (02:22 +0000)]
Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPIC
as compiler options resulted in an invalid executable on PowerPC.

13 years agoRemove unused stuff from cpu.h.
imp [Thu, 15 Jul 2010 01:58:20 +0000 (01:58 +0000)]
Remove unused stuff from cpu.h.
Move inappropriate stuff in cpu.h elsewhere:
{s,g}et_intr_mask -> md_var.h
num_tlbentries -> tlb.h
Remove #define clockframe trapframe and fix clock, which was the only place
this was used.
All the rest of this stuff was unused.

# we're not quite minimal yet, since we duplicate a few status register things
# here...

Inspired by: bde@

13 years agoWe don't need sys/cdefs.h for __CONCAT here.
imp [Thu, 15 Jul 2010 01:55:28 +0000 (01:55 +0000)]
We don't need sys/cdefs.h for __CONCAT here.

13 years agoRemove i386-ish sysctls. Also, make the bootinfo sysctl OID_AUTO.
imp [Thu, 15 Jul 2010 01:53:17 +0000 (01:53 +0000)]
Remove i386-ish sysctls.  Also, make the bootinfo sysctl OID_AUTO.

13 years agoGet powerpc64 install CDs a little closer: some powerpc things should be
nwhitehorn [Thu, 15 Jul 2010 01:48:30 +0000 (01:48 +0000)]
Get powerpc64 install CDs a little closer: some powerpc things should be
used on powerpc64 as well (build scripts, for instance), and the MFS root
must be adjusted upward on powerpc64 as well.

This doesn't completely solve things: sysinstall stil needs some
persuasion to deal with a default kernel named GENERIC64.

13 years agoRemove one layer of indirection. No need to call cpu_throw which then
imp [Thu, 15 Jul 2010 01:47:47 +0000 (01:47 +0000)]
Remove one layer of indirection.  No need to call cpu_throw which then
calls mips_cpu_call via an obfuscated assembler call.  Instead, delete
the current cpu_throw, and rename mips_cpu_throw to cpu_throw.  This
is nicer to the cache on each context switch (since fixed jumps can be
prefected, while jumps through a register can't).  Incidentally, it
also saves about 5 or 6 instructions.

Reviewed by: jmallet@

13 years agoAdd -p option to have pom(6) print just the percentage, without extra text.
emaste [Thu, 15 Jul 2010 00:16:04 +0000 (00:16 +0000)]
Add -p option to have pom(6) print just the percentage, without extra text.

PR: bin/51070
Submitted by: Matt Koivisto mkoivisto sandvine com
MFC after: 1 week

13 years agoRemove more extraneous ;s.
emaste [Thu, 15 Jul 2010 00:04:14 +0000 (00:04 +0000)]
Remove more extraneous ;s.

13 years agosh: There cannot be a TNOT in simplecmd(), remove checks.
jilles [Wed, 14 Jul 2010 22:31:45 +0000 (22:31 +0000)]
sh: There cannot be a TNOT in simplecmd(), remove checks.

simplecmd() only handles simple commands and function definitions, neither
of which involves the ! keyword. The initial token on entry to simplecmd()
is one of the following: TSEMI, TAND, TOR, TNL, TEOF, TWORD, TRP.

13 years agoRemove enabling Data FIFO protection with indirect memory access.
yongari [Wed, 14 Jul 2010 21:47:49 +0000 (21:47 +0000)]
Remove enabling Data FIFO protection with indirect memory access.
r165114 added that code and that change ignored the same logic
committed in r135772. In addition, data FIFO protection should be
selectively enabled instead of applying to all PCIe devices.
While I'm here add BCM5785 to devices that do not require this
fix.

13 years agoRename timeevents.c to kern_clocksource.c.
mav [Wed, 14 Jul 2010 18:43:27 +0000 (18:43 +0000)]
Rename timeevents.c to kern_clocksource.c.

Suggested by: jhb@

13 years ago- Sort list of trace points.
jhb [Wed, 14 Jul 2010 18:28:46 +0000 (18:28 +0000)]
- Sort list of trace points.
- Note that 'y' (sysctl requests) is in the default set of trace points.

MFC after: 3 days

13 years agoRework the SMBIOS table walker to make it operate like other table walkers
jhb [Wed, 14 Jul 2010 18:06:21 +0000 (18:06 +0000)]
Rework the SMBIOS table walker to make it operate like other table walkers
and remove a buffer overflow:
- Remove the array of per-type dispatch functions.  Instead, pass each
  structure to a single callback.  The callback should check the type of
  each table entry to take appropriate action.  This matches the behavior
  of other table walkers such as for the MP Table and MADT.
- Don't attempt to save an array of string pointers for each structure
  entry.  Instead, just skip the strings.  If this code is reused to
  provide a generic SMBIOS table walker in the future we could provide
  a method that looks up a specific string N for a given structure record
  instead of pre-populating an array of pointers.  This fixes a buffer
  overflow for structure entries with more than 20 strings.

PR: kern/148546
Reported by: Spencer Minear @ McAfee
MFC after: 3 days

13 years agoFix spelling.
attilio [Wed, 14 Jul 2010 17:46:44 +0000 (17:46 +0000)]
Fix spelling.

Sponsored by: Sandvine Incorporated
Submitted by: b.f. <bf1783 at googlemail dot com>
MFC after: 2 weeks
X-MFC: 210063

13 years ago- Document layout of KTR_STRUCT payload in a comment.
jhb [Wed, 14 Jul 2010 17:38:01 +0000 (17:38 +0000)]
- Document layout of KTR_STRUCT payload in a comment.
- Simplify ktrstruct() calling convention by having ktrstruct() use
  strlen() rather than requiring the caller to hand-code the length of
  constant strings.

MFC after: 1 month

13 years agoFix the way the segments are included in the gcore outputs (with the
attilio [Wed, 14 Jul 2010 17:16:25 +0000 (17:16 +0000)]
Fix the way the segments are included in the gcore outputs (with the
default invokation):
- Right now if segments are not writable are not included. Remove this.
- Right now if a segment is mapped with NOCORE the check is not honoured.
  Change this by checking the newly added flag, from libutil,
  KVME_FLAG_NOCOREDUMP.

Besides that, add a new flag (-f) that forces a 'full' dump of all the
segments excluding just the malformed ones. This might be used very
carefully as, among the reported segments, there could be memory
mapped areas that could be vital to program execution.

Sponsored by: Sandvine Incorporated
Discussed with: kib
Reviewed by: emaste
Tested by: Sandvine Incorporated
MFC after: 2 weeks

13 years agoUpdate some release version numbers. The patch is based on the one
bcr [Wed, 14 Jul 2010 16:01:43 +0000 (16:01 +0000)]
Update some release version numbers. The patch is based on the one
from the PR, but the version numbers reflect the newer ones from
http://security.freebsd.org/#sup

PR:             docs/145227
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by:    cperciva
Mentored by:    jkois
MFC after:      1 week

13 years agoDo not bzero() NULL pointer on malloc() error.
mav [Wed, 14 Jul 2010 15:14:00 +0000 (15:14 +0000)]
Do not bzero() NULL pointer on malloc() error.

Submitted by: Dmitry Luhtionov

13 years agoCorrect logic bug in aicasm's undefined register bit access detection code.
gibbs [Wed, 14 Jul 2010 14:31:18 +0000 (14:31 +0000)]
Correct logic bug in aicasm's undefined register bit access detection code.

The code in question verifies that all register write operations only change
bits that are defined (in the register definition file) for that effected
register.  The bug effectively disabled this checking.

o Fix the check by testing the opcode against all supported read ("and" based)
  operands.

o Add missing bit definitions to the aic7xxx and aic79xx register definition
  files so that the warning (treated as a fatal error) does not spuriously
  fire.

Reported by: Pawel Worach <pawel.worach@gmail.com>
MFC after: 1 week

13 years agoMove timeevents.c to MI code, as it is not x86-specific. I already have
mav [Wed, 14 Jul 2010 13:31:27 +0000 (13:31 +0000)]
Move timeevents.c to MI code, as it is not x86-specific. I already have
it working on Marvell ARM SoCs, and it would be nice to unify timer code
between more platforms.

13 years agoProvide initial man pages for Flattened Device Tree support and the common
raj [Wed, 14 Jul 2010 13:03:00 +0000 (13:03 +0000)]
Provide initial man pages for Flattened Device Tree support and the common
drivers.

Sponsored by: The FreeBSD Foundation

13 years agoRemove some unneeded includes. Code now can be built on ARM.
mav [Wed, 14 Jul 2010 10:49:14 +0000 (10:49 +0000)]
Remove some unneeded includes. Code now can be built on ARM.

13 years agoFixed cache size decoding read from a label.
ru [Wed, 14 Jul 2010 08:22:00 +0000 (08:22 +0000)]
Fixed cache size decoding read from a label.

PR: kern/144732
Submitted by: Eugene Grosbein
MFC after: 3 days

13 years agoMFp4 180933:
pjd [Wed, 14 Jul 2010 06:37:43 +0000 (06:37 +0000)]
MFp4 180933:

Initialize rw_count properly so that zdb(8) doesn't trigger assertion in
rw_enter():

ASSERT(rwlp->rw_count == 0);

While here, assert that rw_count is 0 when destroying the lock.

MFC after: 1 week

13 years agoUse cpuregs.h spellings over the cpu.h spellings.
imp [Wed, 14 Jul 2010 00:52:29 +0000 (00:52 +0000)]
Use cpuregs.h spellings over the cpu.h spellings.

13 years agoImport preliminary support for Atmel AT91SAM9G20 cpu, and the Hot-e HL201.
cognet [Wed, 14 Jul 2010 00:48:53 +0000 (00:48 +0000)]
Import preliminary support for Atmel AT91SAM9G20 cpu, and the Hot-e HL201.
This fine work was done by Yohanes Nugroho <yohanes a gmail dot com>
Many thanks to John Nicholls and Thinlinx for providing sample hardware.

13 years agoRemove the unused part of cpu.h now that the rest of the tree has been
imp [Wed, 14 Jul 2010 00:47:37 +0000 (00:47 +0000)]
Remove the unused part of cpu.h now that the rest of the tree has been
transitioned to use cpuregs.h spellings.  Now we're only 4x too big,
according to the bde-ometer.

13 years agoPrefer the cpuregs.h spellings of register and bit names over cpu.h.
imp [Wed, 14 Jul 2010 00:41:22 +0000 (00:41 +0000)]
Prefer the cpuregs.h spellings of register and bit names over cpu.h.

13 years agoAdd support for packages.
imp [Tue, 13 Jul 2010 23:47:12 +0000 (23:47 +0000)]
Add support for packages.

PR: 148584
Submitted by: John Hixon

13 years agoFor the experimental NFSv4 client, make sure that attributes that
rmacklem [Tue, 13 Jul 2010 23:14:39 +0000 (23:14 +0000)]
For the experimental NFSv4 client, make sure that attributes that
predate the issue of a delegation are not cached once the delegation
is held. This is necessary, since cached attributes remain valid
while the delegation is held.

MFC after: 2 weeks

13 years agoRemove obsolete code that sets SHMMAXPGS to a tiny value by default
nwhitehorn [Tue, 13 Jul 2010 23:10:55 +0000 (23:10 +0000)]
Remove obsolete code that sets SHMMAXPGS to a tiny value by default
on PowerPC.

13 years agoFor the experimental NFSv4 client, do not use cached attributes
rmacklem [Tue, 13 Jul 2010 23:07:32 +0000 (23:07 +0000)]
For the experimental NFSv4 client, do not use cached attributes
that were invalidated, even when a delegation for the file is held.

MFC after: 2 weeks

13 years agoFix a bogus comment that mentions lru lists that don't exist.
rmacklem [Tue, 13 Jul 2010 22:44:14 +0000 (22:44 +0000)]
Fix a bogus comment that mentions lru lists that don't exist.

Reported by: zack.kirsch at isilon.com
MFC after: 2 weeks

13 years agounion cpuprid is also unused now
imp [Tue, 13 Jul 2010 22:36:45 +0000 (22:36 +0000)]
union cpuprid is also unused now

13 years agoAdd INFO config register from mips32/64 land
imp [Tue, 13 Jul 2010 22:35:09 +0000 (22:35 +0000)]
Add INFO config register from mips32/64 land

13 years agoRemove redunant machine/cpuregs.h include.
imp [Tue, 13 Jul 2010 22:30:27 +0000 (22:30 +0000)]
Remove redunant machine/cpuregs.h include.
Also, spell things like in machine/cpuregs.h instead of machine/cpu.h.

13 years agoTemp hack to N32 kernel: turn off debugger since n32 is too weird for ddb
imp [Tue, 13 Jul 2010 22:27:19 +0000 (22:27 +0000)]
Temp hack to N32 kernel: turn off debugger since n32 is too weird for ddb

13 years agoAdd GENERIC kernel config for powerpc64.
nwhitehorn [Tue, 13 Jul 2010 21:24:08 +0000 (21:24 +0000)]
Add GENERIC kernel config for powerpc64.

13 years agoConnect powerpc64 to the build. It is not presently part of make universe,
nwhitehorn [Tue, 13 Jul 2010 21:19:59 +0000 (21:19 +0000)]
Connect powerpc64 to the build. It is not presently part of make universe,
which will be added soon.

Reviewed by: imp

13 years agoAdd a 4 and 7 port USB hub from NEC.
remko [Tue, 13 Jul 2010 20:09:14 +0000 (20:09 +0000)]
Add a 4 and 7 port USB hub from NEC.

PR: 148189
MFC after: 1 week

13 years agoInitialize a variable before its use.
jkim [Tue, 13 Jul 2010 19:58:06 +0000 (19:58 +0000)]
Initialize a variable before its use.

13 years agoPreallocate buffers for palette and state. Do not save DAC registers as
jkim [Tue, 13 Jul 2010 19:48:20 +0000 (19:48 +0000)]
Preallocate buffers for palette and state.  Do not save DAC registers as
we reset DAC mode and restore palette data while we are resuming always.

13 years agoPrefer PCIR_BAR macro over BGE_PCI_BAR0.
yongari [Tue, 13 Jul 2010 19:45:40 +0000 (19:45 +0000)]
Prefer PCIR_BAR macro over BGE_PCI_BAR0.

13 years agoFix error message for jumbo buffer allocation failure.
yongari [Tue, 13 Jul 2010 19:42:55 +0000 (19:42 +0000)]
Fix error message for jumbo buffer allocation failure.

13 years agostyle.
yongari [Tue, 13 Jul 2010 19:39:51 +0000 (19:39 +0000)]
style.

13 years agoFix a panic brought about by writing an MSR without a proper mask.
gnn [Tue, 13 Jul 2010 19:37:45 +0000 (19:37 +0000)]
Fix a panic brought about by writing an MSR without a proper mask.
All of the necessary wrmsr calls are now preceded by a rdmsr
and we leave the reserved bits alone.
Document the bits in the relevant registers for future reference.

Tested by: mdf
MFC after: 1 week

13 years agoMake bge_stop_fw() static.
yongari [Tue, 13 Jul 2010 19:33:46 +0000 (19:33 +0000)]
Make bge_stop_fw() static.
While I'm here use ANSI function definitions.

13 years agoFix build on architectures where PAGE_SIZE is a long (sparc64, powerpc).
nwhitehorn [Tue, 13 Jul 2010 19:27:20 +0000 (19:27 +0000)]
Fix build on architectures where PAGE_SIZE is a long (sparc64, powerpc).

13 years agoDefine break value for ddb.
imp [Tue, 13 Jul 2010 17:24:30 +0000 (17:24 +0000)]
Define break value for ddb.
Use int32/intptr casts for exception vector names.
Define MIPS_SR_INT_MASK again
Change MIPS_XKPHYS_CCA_* to MIPS_CCA_* since we can use them in many contexts
Minor gratuitous whitespace churn

13 years agoUse the cpuregs.h spellings for these registers rather than the cpu.h
imp [Tue, 13 Jul 2010 17:21:15 +0000 (17:21 +0000)]
Use the cpuregs.h spellings for these registers rather than the cpu.h
spelling.

13 years agoDefine SMP unconditionally for amd64 and remove opt_global.h from SRCS.
jkim [Tue, 13 Jul 2010 16:57:52 +0000 (16:57 +0000)]
Define SMP unconditionally for amd64 and remove opt_global.h from SRCS.
Note it is done just for correctness sake because we do not build, ship, or
support acpi.ko on amd64.

Prodded by: bde

13 years agoBump document for content change in r210002.
simon [Tue, 13 Jul 2010 16:47:29 +0000 (16:47 +0000)]
Bump document for content change in r210002.

13 years agoMake SMP code path conditional at run-time.
jkim [Tue, 13 Jul 2010 16:35:41 +0000 (16:35 +0000)]
Make SMP code path conditional at run-time.

13 years agoIn the example for how to create a VLAN, also include an example of
simon [Tue, 13 Jul 2010 16:24:04 +0000 (16:24 +0000)]
In the example for how to create a VLAN, also include an example of
setting the IP address.  While it is documented earlier in rc.conf(5)
that the '.' in the VLAN name becomes a '_' in rc.conf, this may not be
easy to find when just using rc.conf(5) as reference documentation.

MFC after: 1 week

13 years agoo Correct path to include file.
maxim [Tue, 13 Jul 2010 16:16:41 +0000 (16:16 +0000)]
o Correct path to include file.

PR: docs/148545
Submitted by: Anton Shterenlikht
MFC after: 1 week

13 years agocpu_id and fpu_id are unused, except to be set early in the boot code.
imp [Tue, 13 Jul 2010 15:29:37 +0000 (15:29 +0000)]
cpu_id and fpu_id are unused, except to be set early in the boot code.
The problem with setting it there is that the last CPU to come up
wins, it seems.  This also removes one more ifdef in locore.S, a noble
goal too.  Since they are unused, and pollute cpu.h, remove them.

Submitted by: bde.h (cpu.h pollution)
Approved in theory by: jmallet@

13 years agoRemove obsolete undef of COPY_SIGCODE. It appears to have not been
imp [Tue, 13 Jul 2010 15:06:13 +0000 (15:06 +0000)]
Remove obsolete undef of COPY_SIGCODE.  It appears to have not been
used in FreeBSD in quite some time (maybe since before 4.4-lite :)

Submitted by: bde

13 years agoRemove obsolete define "COPY_SIGCODE". This is unused in FreeBSD.
imp [Tue, 13 Jul 2010 15:01:36 +0000 (15:01 +0000)]
Remove obsolete define "COPY_SIGCODE".  This is unused in FreeBSD.

Submitted by: bde@

13 years agoConvert several instances of MACHINE_ARCH to MACHINE_CPUARCH and use the
nwhitehorn [Tue, 13 Jul 2010 13:11:18 +0000 (13:11 +0000)]
Convert several instances of MACHINE_ARCH to MACHINE_CPUARCH and use the
correct compiler flags on 64-bit PowerPC.

13 years agoInstall arch-specific manpages by MACHINE_CPUARCH, not MACHINE_ARCH.
nwhitehorn [Tue, 13 Jul 2010 12:51:02 +0000 (12:51 +0000)]
Install arch-specific manpages by MACHINE_CPUARCH, not MACHINE_ARCH.

13 years agoMake kernel modules build correctly on 64-bit PowerPC.
nwhitehorn [Tue, 13 Jul 2010 12:47:31 +0000 (12:47 +0000)]
Make kernel modules build correctly on 64-bit PowerPC.

13 years agoRise knowledge about curthread->td_intr_frame by one step. Make timer
mav [Tue, 13 Jul 2010 12:46:06 +0000 (12:46 +0000)]
Rise knowledge about curthread->td_intr_frame by one step. Make timer
callback argument really opaque. Not repeat interrupt handler's problem
in case somebody will ever need to have both argument and frame.

13 years agoUT_NAMESIZE is no more.
ed [Tue, 13 Jul 2010 10:32:43 +0000 (10:32 +0000)]
UT_NAMESIZE is no more.

13 years ago- The sum variable used in DPCPU_SUM needs to be of the same type as the
lstewart [Tue, 13 Jul 2010 09:17:30 +0000 (09:17 +0000)]
- The sum variable used in DPCPU_SUM needs to be of the same type as the
  DPCPU variable, rather than a pointer to the type.

- Zero # bytes equivalent to sizeof(object), not sizeof(ptr_to_object).

- Remove an unnecessary __typeof.

Sponsored by: FreeBSD Foundation
Submitted by: jmallet
MFC after: 3 days

13 years agoThe SIFTR DPCPU statistics struct was not being zeroed between enable/disable
lstewart [Tue, 13 Jul 2010 08:23:46 +0000 (08:23 +0000)]
The SIFTR DPCPU statistics struct was not being zeroed between enable/disable
cycles so the values would accumulate rather than reset for each cycle.

Sponsored by: FreeBSD Foundation

13 years agoMacro to simplify zeroing DPCPU variables.
lstewart [Tue, 13 Jul 2010 08:05:48 +0000 (08:05 +0000)]
Macro to simplify zeroing DPCPU variables.

Sponsored by: FreeBSD Foundation
MFC after: 3 days

13 years agoCatch up with the rename of DPCPU_SUM to DPCPU_VARSUM in r209978.
lstewart [Tue, 13 Jul 2010 07:00:57 +0000 (07:00 +0000)]
Catch up with the rename of DPCPU_SUM to DPCPU_VARSUM in r209978.

Sponsored by: FreeBSD Foundation

13 years agoUnify pc98 event timer code with the rest of x86.
mav [Tue, 13 Jul 2010 06:57:27 +0000 (06:57 +0000)]
Unify pc98 event timer code with the rest of x86.

Reviewed by: nyan@

13 years ago- Rename DPCPU_SUM to DPCPU_VARSUM to better reflect the fact it operates on
lstewart [Tue, 13 Jul 2010 06:49:34 +0000 (06:49 +0000)]
- Rename DPCPU_SUM to DPCPU_VARSUM to better reflect the fact it operates on
  member variables of a DPCPU struct.

- Add DPCPU_SUM which sums a DPCPU variable.

Sponsored by: FreeBSD Foundation
MFC after: 3 days

13 years agoDisable multi-sector PIO transfers if ATA_SET_MULTI command failed.
mav [Tue, 13 Jul 2010 06:42:47 +0000 (06:42 +0000)]
Disable multi-sector PIO transfers if ATA_SET_MULTI command failed.

Submitted by: Mikolaj Golub on fs@

13 years agoAdd powerpc64 kernel ldscript.
nwhitehorn [Tue, 13 Jul 2010 05:43:43 +0000 (05:43 +0000)]
Add powerpc64 kernel ldscript.

13 years agoMFppc64:
nwhitehorn [Tue, 13 Jul 2010 05:32:19 +0000 (05:32 +0000)]
MFppc64:

Kernel sources for 64-bit PowerPC, along with build-system changes to keep
32-bit kernels compiling (build system changes for 64-bit kernels are
coming later). Existing 32-bit PowerPC kernel configurations must be
updated after this change to specify their architecture.

13 years agoRemove detect-vmware.sh, recently removed.
imp [Tue, 13 Jul 2010 04:31:19 +0000 (04:31 +0000)]
Remove detect-vmware.sh, recently removed.

13 years agoo Restore missed flag in the synopsis.
maxim [Tue, 13 Jul 2010 04:30:50 +0000 (04:30 +0000)]
o Restore missed flag in the synopsis.

PR: docs/148534
Submitted by: Warren Block
MFC after: 1 week

13 years agoo Add -q flag to usage().
maxim [Tue, 13 Jul 2010 04:13:31 +0000 (04:13 +0000)]
o Add -q flag to usage().

MFC after: 1 week

13 years agoo Add -q flag to the synopsis.
maxim [Tue, 13 Jul 2010 04:11:25 +0000 (04:11 +0000)]
o Add -q flag to the synopsis.

PR: docs/148535
Submitted by: Warren Block
MFC after: 1 week

13 years agoEnhance config to handle MACHINEs with multiple architectures:
nwhitehorn [Tue, 13 Jul 2010 04:08:08 +0000 (04:08 +0000)]
Enhance config to handle MACHINEs with multiple architectures:

- Passing -m to config will now print the MACHINE and MACHINE_ARCH
  given in the passed kernel configuration file and then exit.
- If an option is defined in options.MACHINE with the same name as the
  architecture of the kernel being configured, that option will be
  considered set. This allows conditional compilation based on CPU
  architecture.

Config version is now 600010.

Reviewed by: imp

13 years agoFix comment.
takawata [Tue, 13 Jul 2010 03:56:29 +0000 (03:56 +0000)]
Fix comment.

Pointed out by: hrs

13 years agoOne more Prolific serial device ID.
takawata [Tue, 13 Jul 2010 03:49:30 +0000 (03:49 +0000)]
One more Prolific serial device ID.

Submitted by: Kouichi Hirabayashi on FreeBSD-users-jp
MFC after: 1 week.

13 years agoFix white spaces.
jkim [Tue, 13 Jul 2010 02:48:42 +0000 (02:48 +0000)]
Fix white spaces.

13 years agoAccording to ACPICA User Guide and Programmer Reference, the read data must
jkim [Tue, 13 Jul 2010 02:45:44 +0000 (02:45 +0000)]
According to ACPICA User Guide and Programmer Reference, the read data must
be zero extended to fill the 32-bit return value even if the bit width of
the port is less than 32.

13 years agoCorrectly copy the M_RDONLY flag when duplicating a reference
cperciva [Tue, 13 Jul 2010 02:45:17 +0000 (02:45 +0000)]
Correctly copy the M_RDONLY flag when duplicating a reference
to an mbuf external buffer.

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:07.mbuf

13 years agoAdd a missing architecture declaration to the machine specification
nwhitehorn [Tue, 13 Jul 2010 01:24:02 +0000 (01:24 +0000)]
Add a missing architecture declaration to the machine specification
for sun4v.

13 years agoMerge ZFS version 15 and almost all OpenSolaris bugfixes referenced
mm [Mon, 12 Jul 2010 23:49:04 +0000 (23:49 +0000)]
Merge ZFS version 15 and almost all OpenSolaris bugfixes referenced
in Solaris 10 updates 141445-09 and 142901-14.

Detailed information:
(OpenSolaris revisions and Bug IDs, Solaris 10 patch numbers)

7844:effed23820ae
6755435 zfs_open() and zfs_close() needs to use ZFS_ENTER/ZFS_VERIFY_ZP (141445-01)

7897:e520d8258820
6748436 inconsistent zpool.cache in boot_archive could panic a zfs root filesystem upon boot-up (141445-01)

7965:b795da521357
6740164 zpool attach can create an illegal root pool (141909-02)

8084:b811cc60d650
6769612 zpool_import() will continue to write to cachefile even if altroot is set (N/A)

8121:7fd09d4ebd9c
6757430 want an option for zdb to disable space map loading and leak tracking (141445-01)

8129:e4f45a0bfbb0
6542860 ASSERT: reason != VDEV_LABEL_REMOVE||vdev_inuse(vd, crtxg, reason, 0) (141445-01)

8188:fd00c0a81e80
6761100 want zdb option to select older uberblocks (141445-01)

8190:6eeea43ced42
6774886 zfs_setattr() won't allow ndmp to restore SUNWattr_rw (141445-01)

8225:59a9961c2aeb
6737463 panic while trying to write out config file if root pool import fails (141445-01)

8227:f7d7be9b1f56
6765294 Refactor replay (141445-01)

8228:51e9ca9ee3a5
6572357 libzfs should do more to avoid mnttab lookups (141909-01)
6572376 zfs_iter_filesystems and zfs_iter_snapshots get objset stats twice (141909-01)

8241:5a60f16123ba
6328632 zpool offline is a bit too conservative (141445-01)
6739487 ASSERT: txg <= spa_final_txg due to scrub/export race (141445-01)
6767129 ASSERT: cvd->vdev_isspare, in spa_vdev_detach() (141445-01)
6747698 checksum failures after offline -t / export / import / scrub (141445-01)
6745863 ZFS writes to disk after it has been offlined (141445-01)
6722540 50% slowdown on scrub/resilver with certain vdev configurations (141445-01)
6759999 resilver logic rewrites ditto blocks on both source and destination (141445-01)
6758107 I/O should never suspend during spa_load() (141445-01)
6776548 codereview(1) runs off the page when faced with multi-line comments (N/A)
6761406 AMD errata 91 workaround doesn't work on 64-bit systems (141445-01)

8242:e46e4b2f0a03
6770866 GRUB/ZFS should require physical path or devid, but not both (141445-01)

8269:03a7e9050cfd
6674216 "zfs share" doesn't work, but "zfs set sharenfs=on" does (141445-01)
6621164 $SRC/cmd/zfs/zfs_main.c seems to have a syntax error in the translation note (141445-01)
6635482 i18n problems in libzfs_dataset.c and zfs_main.c (141445-01)
6595194 "zfs get" VALUE column is as wide as NAME (141445-01)
6722991 vdev_disk.c: error checking for ddi_pathname_to_dev_t() must test for NODEV (141445-01)
6396518 ASSERT strings shouldn't be pre-processed (141445-01)

8274:846b39508aff
6713916 scrub/resilver needlessly decompress data (141445-01)

8343:655db2375fed
6739553 libzfs_status msgid table is out of sync (141445-01)
6784104 libzfs unfairly rejects numerical values greater than 2^63 (141445-01)
6784108 zfs_realloc() should not free original memory on failure (141445-01)

8525:e0e0e525d0f8
6788830 set large value to reservation cause core dump (141445-01)
6791064 want sysevents for ZFS scrub (141445-01)
6791066 need to be able to set cachefile on faulted pools (141445-01)
6791071 zpool_do_import() should not enable datasets on faulted pools (141445-01)
6792134 getting multiple properties on a faulted pool leads to confusion (141445-01)

8547:bcc7b46e5ff7
6792884 Vista clients cannot access .zfs (141445-01)

8632:36ef517870a3
6798384 It can take a village to raise a zio (141445-01)

8636:7e4ce9158df3
6551866 deadlock between zfs_write(), zfs_freesp(), and zfs_putapage() (141909-01)
6504953 zfs_getpage() misunderstands VOP_GETPAGE() interface (141909-01)
6702206 ZFS read/writer lock contention throttles sendfile() benchmark (141445-01)
6780491 Zone on a ZFS filesystem has poor fork/exec performance (141445-01)
6747596 assertion failed: DVA_EQUAL(BP_IDENTITY(&zio->io_bp_orig), BP_IDENTITY(zio->io_bp))); (141445-01)

8692:692d4668b40d
6801507 ZFS read aggregation should not mind the gap (141445-01)

8697:e62d2612c14d
6633095 creating a filesystem with many properties set is slow (141445-01)

8768:dfecfdbb27ed
6775697 oracle crashes when overwriting after hitting quota on zfs (141909-01)

8811:f8deccf701cf
6790687 libzfs mnttab caching ignores external changes (141445-01)
6791101 memory leak from libzfs_mnttab_init (141445-01)

8845:91af0d9c0790
6800942 smb_session_create() incorrectly stores IP addresses (N/A)
6582163 Access Control List (ACL) for shares (141445-01)
6804954 smb_search - shortname field should be space padded following the NULL terminator (N/A)
6800184 Panic at smb_oplock_conflict+0x35() (N/A)

8876:59d2e67b4b65
6803822 Reboot after replacement of system disk in a ZFS mirror drops to grub> prompt (141445-01)

8924:5af812f84759
6789318 coredump when issue zdb -uuuu poolname/ (141445-01)
6790345 zdb -dddd -e poolname coredump (141445-01)
6797109 zdb: 'zdb -dddddd pool_name/fs_name inode' coredump if the file with inode was deleted (141445-01)
6797118 zdb: 'zdb -dddddd poolname inum' coredump if I miss the fs name (141445-01)
6803343 shareiscsi=on failed, iscsitgtd failed request to share (141445-01)

9030:243fd360d81f
6815893 hang mounting a dataset after booting into a new boot environment (141445-01)

9056:826e1858a846
6809691 'zpool create -f' no longer overwrites ufs infomation (141445-01)

9179:d8fbd96b79b3
6790064 zfs needs to determine uid and gid earlier in create process (141445-01)

9214:8d350e5d04aa
6604992 forced unmount + being in .zfs/snapshot/<snap1> = not happy (141909-01)
6810367 assertion failed: dvp->v_flag & VROOT, file: ../../common/fs/gfs.c, line: 426 (141909-01)

9229:e3f8b41e5db4
6807765 ztest_dsl_dataset_promote_busy needs to clean up after ENOSPC (141445-01)

9230:e4561e3eb1ef
6821169 offlining a device results in checksum errors (141445-01)
6821170 ZFS should not increment error stats for unavailable devices (141445-01)
6824006 need to increase issue and interrupt taskqs threads in zfs (141445-01)

9234:bffdc4fc05c4
6792139 recovering from a suspended pool needs some work (141445-01)
6794830 reboot command hangs on a failed zfs pool (141445-01)

9246:67c03c93c071
6824062 System panicked in zfs_mount due to NULL pointer dereference when running btts and svvs tests (141909-01)

9276:a8a7fc849933
6816124 System crash running zpool destroy on broken zpool (141445-03)

9355:09928982c591
6818183 zfs snapshot -r is slow due to set_snap_props() doing txg_wait_synced() for each new snapshot (141445-03)

9391:413d0661ef33
6710376 log device can show incorrect status when other parts of pool are degraded (141445-03)

9396:f41cf682d0d3 (part already merged)
6501037 want user/group quotas on ZFS (141445-03)
6827260 assertion failed in arc_read(): hdr == pbuf->b_hdr (141445-03)
6815592 panic: No such hold X on refcount Y from zfs_znode_move (141445-03)
6759986 zfs list shows temporary %clone when doing online zfs recv (141445-03)

9404:319573cd93f8
6774713 zfs ignores canmount=noauto when sharenfs property != off (141445-03)

9412:4aefd8704ce0
6717022 ZFS DMU needs zero-copy support (141445-03)

9425:e7ffacaec3a8
6799895 spa_add_spares() needs to be protected by config lock (141445-03)
6826466 want to post sysevents on hot spare activation (141445-03)
6826468 spa 'allowfaulted' needs some work (141445-03)
6826469 kernel support for storing vdev FRU information (141445-03)
6826470 skip posting checksum errors from DTL regions of leaf vdevs (141445-03)
6826471 I/O errors after device remove probe can confuse FMA (141445-03)
6826472 spares should enjoy some of the benefits of cache devices (141445-03)

9443:2a96d8478e95
6833711 gang leaders shouldn't have to be logical (141445-03)

9463:d0bd231c7518
6764124 want zdb to be able to checksum metadata blocks only (141445-03)

9465:8372081b8019
6830237 zfs panic in zfs_groupmember() (141445-03)

9466:1fdfd1fed9c4
6833162 phantom log device in zpool status (141445-03)

9469:4f68f041ddcd
6824968 add ZFS userquota support to rquotad (141445-03)

9470:6d827468d7b5
6834217 godfather I/O should reexecute (141445-03)

9480:fcff33da767f
6596237 Stop looking and start ganging (141909-02)

9493:9933d599bc93
6623978 lwb->lwb_buf != NULL, file ../../../uts/common/fs/zfs/zil.c, line 787, function zil_lwb_commit (141445-06)

9512:64cafcbcc337
6801810 Commit of aligned streaming rewrites to ZIL device causes unwanted disk reads (N/A)

9515:d3b739d9d043
6586537 async zio taskqs can block out userland commands (142901-09)

9554:787363635b6a
6836768 zfs_userspace() callback has no way to indicate failure (N/A)

9574:1eb6a6ab2c57
6838062 zfs panics when an error is encountered in space_map_load() (141909-02)

9583:b0696cd037cc
6794136 Panic BAD TRAP: type=e when importing degraded zraid pool. (141909-03)

9630:e25a03f552e0
6776104 "zfs import" deadlock between spa_unload() and spa_async_thread() (141445-06)

9653:a70048a304d1
6664765 Unable to remove files when using fat-zap and quota exceeded on ZFS filesystem (141445-06)

9688:127be1845343
6841321 zfs userspace / zfs get userused@ doesn't work on mounted snapshot (N/A)
6843069 zfs get userused@S-1-... doesn't work (N/A)

9873:8ddc892eca6e
6847229 assertion failed: refcount_count(&tx->tx_space_written) + delta <= tx->tx_space_towrite in dmu_tx.c (141445-06)

9904:d260bd3fd47c
6838344 kernel heap corruption detected on zil while stress testing (141445-06)

9951:a4895b3dd543
6844900 zfs_ioc_userspace_upgrade leaks (N/A)

10040:38b25aeeaf7a
6857012 zfs panics on zpool import (141445-06)

10000:241a51d8720c
6848242 zdb -e no longer works as expected (N/A)

10100:4a6965f6bef8
6856634 snv_117 not booting: zfs_parse_bootfs: error2 (141445-07)

10160:a45b03783d44
6861983 zfs should use new name <-> SID interfaces (N/A)
6862984 userquota commands can hang (141445-06)

10299:80845694147f
6696858 zfs receive of incremental replication stream can dereference NULL pointer and crash (N/A)

10302:a9e3d1987706
6696858 zfs receive of incremental replication stream can dereference NULL pointer and crash (fix lint) (N/A)

10575:2a8816c5173b (partial merge)
6882227 spa_async_remove() shouldn't do a full clear (142901-14)

10800:469478b180d9
6880764 fsync on zfs is broken if writes are greater than 32kb on a hard crash and no log attached (142901-09)
6793430 zdb -ivvvv assertion failure: bp->blk_cksum.zc_word[2] == dmu_objset_id(zilog->zl_os) (N/A)

10801:e0bf032e8673 (partial merge)
6822816 assertion failed: zap_remove_int(ds_next_clones_obj) returns ENOENT (142901-09)

10810:b6b161a6ae4a
6892298 buf->b_hdr->b_state != arc_anon, file: ../../common/fs/zfs/arc.c, line: 2849 (142901-09)

10890:499786962772
6807339 spurious checksum errors when replacing a vdev (142901-13)

11249:6c30f7dfc97b
6906110 bad trap panic in zil_replay_log_record (142901-13)
6906946 zfs replay isn't handling uid/gid correctly (142901-13)

11454:6e69bacc1a5a
6898245 suspended zpool should not cause rest of the zfs/zpool commands to hang (142901-10)

11546:42ea6be8961b (partial merge)
6833999 3-way deadlock in dsl_dataset_hold_ref() and dsl_sync_task_group_sync() (142901-09)

Discussed with: pjd
Approved by: delphij (mentor)
Obtained from: OpenSolaris (multiple Bug IDs)
MFC after: 2 months

13 years agoCorrect inverted parent DMA tag parameters.
marius [Mon, 12 Jul 2010 23:01:21 +0000 (23:01 +0000)]
Correct inverted parent DMA tag parameters.

Reviewed by: ken
MFC after: 3 days

13 years ago- Make the maxsize parameter of the data buffer DMA tag match maxio, which
marius [Mon, 12 Jul 2010 22:57:57 +0000 (22:57 +0000)]
- Make the maxsize parameter of the data buffer DMA tag match maxio, which
  was missed in r209599.
  Reported and tested by: Michael Moll
- Declare mpt_dma_buf_alloc() static just like mpt_dma_buf_free(), both are
  used in mpt.c only.

Reviewed by: ken
MFC after: r209599

13 years agoFix for a panic when TX checksum offload is done and
jfv [Mon, 12 Jul 2010 21:47:30 +0000 (21:47 +0000)]
Fix for a panic when TX checksum offload is done and
a packet has only a header in the first mbuf, the
checksum code will dereference a pointer into the
non-existing IP header. Do a check for the size and
pullup if needed. Thanks to Michael Tuexen for this
fix.

MFC: asap - should be in 8.1 IMHO

13 years agoFix printf specifier to allow 32/64 bit builds.
grehan [Mon, 12 Jul 2010 21:09:55 +0000 (21:09 +0000)]
Fix printf specifier to allow 32/64 bit builds.

Obtained from: projects/ppc64

13 years agoMove i386-inherited logic of building ACPI headers for acpi_wakeup.c into
jkim [Mon, 12 Jul 2010 21:08:35 +0000 (21:08 +0000)]
Move i386-inherited logic of building ACPI headers for acpi_wakeup.c into
better places and remove intermediate makefile and shell scripts.  This
makes parallel kernel build little bit safer for amd64.

13 years agoRemove a dead test. We already exclude NMI traps from this code in an
jhb [Mon, 12 Jul 2010 20:45:37 +0000 (20:45 +0000)]
Remove a dead test.  We already exclude NMI traps from this code in an
earlier condition.

MFC after: 1 week