]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoWhen we switched to the gpart backend, and provided selection between
Warner Losh [Wed, 10 Nov 2010 05:32:36 +0000 (05:32 +0000)]
When we switched to the gpart backend, and provided selection between
MBR & GPT, the MBR full-disk init failed to stamp boot1, and results
in a boot not found error. This patch fixes the issue.

PR: 151990
Submitted by: Kris Moore

13 years agoRefactor acpi_machdep.c for amd64 and i386, move APM emulation into a new
Jung-uk Kim [Wed, 10 Nov 2010 01:29:56 +0000 (01:29 +0000)]
Refactor acpi_machdep.c for amd64 and i386, move APM emulation into a new
file acpi_apm.c, and place it on sys/x86/acpica.

13 years agoBuild make.conf when the world is not selected to build, but the
Warner Losh [Wed, 10 Nov 2010 00:56:44 +0000 (00:56 +0000)]
Build make.conf when the world is not selected to build, but the
kernel is.

PR: 151696
Submitted by: lev@

13 years agoDocument NANO_CFGDIR and NANO_DATADIR
Warner Losh [Wed, 10 Nov 2010 00:39:42 +0000 (00:39 +0000)]
Document NANO_CFGDIR and NANO_DATADIR

Submitted by: n_hibma@

13 years agorename SWARM_COMMON to std.SWARM so universe doesn't try to build it standalone
Warner Losh [Wed, 10 Nov 2010 00:28:20 +0000 (00:28 +0000)]
rename SWARM_COMMON to std.SWARM so universe doesn't try to build it standalone

13 years agoMake AIM early-boot code function correctly without Open Firmware.
Nathan Whitehorn [Tue, 9 Nov 2010 23:53:47 +0000 (23:53 +0000)]
Make AIM early-boot code function correctly without Open Firmware.

13 years agoMerge from tbemd:
Warner Losh [Tue, 9 Nov 2010 22:32:09 +0000 (22:32 +0000)]
Merge from tbemd:
o TARGET=mips --> little endian 32-bit mips build
o mipsel and mipseb TARGET_ARCH are both mips TARGETs
o Add some more architecture combinations

13 years ago- Remove <machine/mutex.h>. Most of the headers were empty, and the
John Baldwin [Tue, 9 Nov 2010 20:46:41 +0000 (20:46 +0000)]
- Remove <machine/mutex.h>.  Most of the headers were empty, and the
  contents of the ones that were not empty were stale and unused.
- Now that <machine/mutex.h> no longer exists, there is no need to allow it
  to override various helper macros in <sys/mutex.h>.
- Rename various helper macros for low-level operations on mutexes to live
  in the _mtx_* or __mtx_* namespaces.  While here, change the names to more
  closely match the real API functions they are backing.
- Drop support for including <sys/mutex.h> in assembly source files.

Suggested by: bde (1, 2)

13 years agoRemove unused includes of <sys/mutex.h> and <machine/mutex.h>.
John Baldwin [Tue, 9 Nov 2010 20:41:10 +0000 (20:41 +0000)]
Remove unused includes of <sys/mutex.h> and <machine/mutex.h>.

13 years agoMove the mptable.h under x86/include/.
Attilio Rao [Tue, 9 Nov 2010 20:28:09 +0000 (20:28 +0000)]
Move the mptable.h under x86/include/.

Sponsored by: Sandvine Incorporated
MFC after: 14 days

13 years agoMake all OF client interface calls return the maximum kind of
Nathan Whitehorn [Tue, 9 Nov 2010 19:45:29 +0000 (19:45 +0000)]
Make all OF client interface calls return the maximum kind of
does-not-exist error when no client interface module is installed instead
of dereferencing NULL pointers. This eases implementation of platforms
that may or may not have Open Firmware.

13 years ago- Save errno values before calling warn(3) so that errors are correctly
John Baldwin [Tue, 9 Nov 2010 19:28:06 +0000 (19:28 +0000)]
- Save errno values before calling warn(3) so that errors are correctly
  reported.
- Check for malloc() failures.

Submitted by: gcooper
MFC after: 1 week

13 years agoHide 460.chkportsum in MK_PKGTOOLS != no case.
Xin LI [Tue, 9 Nov 2010 18:46:44 +0000 (18:46 +0000)]
Hide 460.chkportsum in MK_PKGTOOLS != no case.

Submitted by: Alex Kozlov <spam rm-rf kiev ua>
MFC after: 2 weeks

13 years agoUpgrade to Bzip2 version 1.0.6.
David E. O'Brien [Tue, 9 Nov 2010 18:32:57 +0000 (18:32 +0000)]
Upgrade to Bzip2 version 1.0.6.

Reviewed by: SO (cperciva)

13 years agoUnbreak the test target by re-generating the initial scanner
Ulrich Spörlein [Tue, 9 Nov 2010 18:28:11 +0000 (18:28 +0000)]
Unbreak the test target by re-generating the initial scanner
using an updated flex(1) binary.

Also ignore the changing $FreeBSD$ ID lines when doing the diff.
This needs additional obfuscation, to not upset the svn precommit
hooks :/

13 years agoImprove the scalability by using the local and remote port when
Michael Tuexen [Tue, 9 Nov 2010 16:18:32 +0000 (16:18 +0000)]
Improve the scalability by using the local and remote port when
putting inps in the tcpephash.

MFC after: 3 days.

13 years agoFix a bug which resulted in kevent() reporting an event twice on
Michael Tuexen [Tue, 9 Nov 2010 12:00:39 +0000 (12:00 +0000)]
Fix a bug which resulted in kevent() reporting an event twice on
1-to-1 style sockets when an ABORT was received.

MFC after: 3 days.

13 years agoFix typos.
Rebecca Cran [Tue, 9 Nov 2010 10:59:09 +0000 (10:59 +0000)]
Fix typos.

PR: bin/148894
Submitted by: olgeni

13 years agoMinor cosmetic changes
Kevin Lo [Tue, 9 Nov 2010 09:34:21 +0000 (09:34 +0000)]
Minor cosmetic changes

13 years agoFix the build on 64-bit hosts. WARNS=6 fails on them.
David E. O'Brien [Tue, 9 Nov 2010 02:51:38 +0000 (02:51 +0000)]
Fix the build on 64-bit hosts.  WARNS=6 fails on them.

13 years agoOnly moderate TX completion interrupts. Relying on taskqueue to
Pyun YongHyeon [Tue, 9 Nov 2010 01:52:09 +0000 (01:52 +0000)]
Only moderate TX completion interrupts. Relying on taskqueue to
suppress RX interrupts seems to give better RX performance than
RX interrupt moderation.

13 years agoNow OsdEnvironment.c is identical on amd64 and i386. Move it to a new home.
Jung-uk Kim [Tue, 9 Nov 2010 00:27:18 +0000 (00:27 +0000)]
Now OsdEnvironment.c is identical on amd64 and i386.  Move it to a new home.

13 years agoReduce diff between platforms and fix style(9) bugs.
Jung-uk Kim [Tue, 9 Nov 2010 00:14:39 +0000 (00:14 +0000)]
Reduce diff between platforms and fix style(9) bugs.

13 years agotest: Move tests to tools/regression/bin/test.
Jilles Tjoelker [Mon, 8 Nov 2010 23:15:10 +0000 (23:15 +0000)]
test: Move tests to tools/regression/bin/test.
Convert the tests to the perl prove format.
Remove obsolete TEST.README (results of an old TEST.sh for some old Unices)
and TEST.csh (old tests without correct values, far less complete than
TEST.sh).

MFC after: 1 week

13 years agoUse macros rather than inline functions to lock and unlock mutexes, so that
Juli Mallett [Mon, 8 Nov 2010 22:12:25 +0000 (22:12 +0000)]
Use macros rather than inline functions to lock and unlock mutexes, so that
line number information is preserved in witness.

Reviewed by: jhb

13 years agoRemove standard PCI configuration space register definitions.
Pyun YongHyeon [Mon, 8 Nov 2010 22:10:51 +0000 (22:10 +0000)]
Remove standard PCI configuration space register definitions.

13 years agoRemove trailing white spaces.
Pyun YongHyeon [Mon, 8 Nov 2010 22:05:11 +0000 (22:05 +0000)]
Remove trailing white spaces.

13 years agoConsistently use tab character instead of using space character.
Pyun YongHyeon [Mon, 8 Nov 2010 22:03:40 +0000 (22:03 +0000)]
Consistently use tab character instead of using space character.
No functional changes.

13 years agoFollow the lead of vendor's interrupt moderation mechanism.
Pyun YongHyeon [Mon, 8 Nov 2010 21:50:50 +0000 (21:50 +0000)]
Follow the lead of vendor's interrupt moderation mechanism.
It seems RTL8169/RTL8168/RTL810xE has a kind of interrupt
moderation mechanism but it is not documented at all. The magic
value dramatically reduced number of interrupts without noticeable
performance drops so apply it to all RTL8169/RTL8169 controllers.
Vendor's FreeBSD driver also applies it to RTL810xE controllers but
their Linux driver explicitly cleared the register, so do not
enable interrupt moderation for RTL810xE controllers.

While I'm here sort 8169 specific registers.

Obtained from: RealTek FreeBSD driver

13 years agoRemove support for autoloading ACPI from the loader. Leave in the code to
John Baldwin [Mon, 8 Nov 2010 21:50:45 +0000 (21:50 +0000)]
Remove support for autoloading ACPI from the loader.  Leave in the code to
detect ACPI and export info such as the location of the RSDP via hints as
that is still useful.

13 years agoRecognize the BCM5482S.
Juli Mallett [Mon, 8 Nov 2010 21:23:28 +0000 (21:23 +0000)]
Recognize the BCM5482S.

13 years agoo) Recognize the Lanner MR-730.
Juli Mallett [Mon, 8 Nov 2010 21:22:55 +0000 (21:22 +0000)]
o) Recognize the Lanner MR-730.
o) Fix enumeration of PHY addresses on the MR-955.
o) Parse link state for the MR-730 using the Broadcom PHY support in the SDK.
   It's not clear that this is entirely-correct, but it seems to work.  Since
   this board uses a BCM5482S, this may mean that we work correctly for copper
   but not SFI, which is untested.

13 years agoWhitespace and other aspects of style(9). No functional changes.
Matthew D Fleming [Mon, 8 Nov 2010 20:57:08 +0000 (20:57 +0000)]
Whitespace and other aspects of style(9).  No functional changes.

MFC after:  3 days

13 years agoMove the MADT parser for amd64 and i386 to sys/x86/acpica now that it is
John Baldwin [Mon, 8 Nov 2010 20:57:02 +0000 (20:57 +0000)]
Move the MADT parser for amd64 and i386 to sys/x86/acpica now that it is
identical on both platforms.

13 years agoAdd a taskqueue_cancel(9) to cancel a pending task without waiting for
Matthew D Fleming [Mon, 8 Nov 2010 20:56:31 +0000 (20:56 +0000)]
Add a taskqueue_cancel(9) to cancel a pending task without waiting for
it to run as taskqueue_drain(9) does.

Requested by: hselasky
Original code: jeff
Reviewed by: jhb
MFC after: 2 weeks

13 years agoDon't mention 'device acpi' or loading ACPI as a kernel module since the
John Baldwin [Mon, 8 Nov 2010 20:44:11 +0000 (20:44 +0000)]
Don't mention 'device acpi' or loading ACPI as a kernel module since the
latter is not supported.  This is also more consistent with manpages for
other vendor-specific drivers such as acpi_ibm(4) and acpi_sony(4).

13 years agoSync the APIC startup sequence with amd64:
John Baldwin [Mon, 8 Nov 2010 20:35:09 +0000 (20:35 +0000)]
Sync the APIC startup sequence with amd64:
- Register APIC enumerators at SI_SUB_TUNABLES - 1 instead of SI_SUB_CPU - 1.
- Probe CPUs at SI_SUB_TUNABLES - 1.  This allows i386 to set a truly
  accurate mp_maxid value rather than always setting it to MAXCPU - 1.

13 years agoRemove stub symbols for APIC-related functions when 'device apic' is not
John Baldwin [Mon, 8 Nov 2010 20:32:35 +0000 (20:32 +0000)]
Remove stub symbols for APIC-related functions when 'device apic' is not
included in a kernel config.  These stubs had existed previously so that
acpi.ko could always include the MADT parsing code and still link with a
kernel that did not include 'device apic'.

13 years agoDisconnect acpi.ko from the build on i386. ACPI is now only supported when
John Baldwin [Mon, 8 Nov 2010 20:30:59 +0000 (20:30 +0000)]
Disconnect acpi.ko from the build on i386.  ACPI is now only supported when
compiled into the kernel, not as a loadable module.

13 years agoA few small style and whitespace fixes.
John Baldwin [Mon, 8 Nov 2010 20:05:22 +0000 (20:05 +0000)]
A few small style and whitespace fixes.

13 years agoOnly dump the values of the PMC and CMCI local vector table entries on a
John Baldwin [Mon, 8 Nov 2010 20:03:51 +0000 (20:03 +0000)]
Only dump the values of the PMC and CMCI local vector table entries on a
local APIC if those LVT entries are valid.  This quiets spurious illegal
register local APIC errors during boot on a CPU that doesn't support those
vectors.

MFC after: 1 week

13 years agoProvide support for IIC_M_NOSTOP/IIC_M_NOSTART for bit-banging and
Nathan Whitehorn [Mon, 8 Nov 2010 19:53:16 +0000 (19:53 +0000)]
Provide support for IIC_M_NOSTOP/IIC_M_NOSTART for bit-banging and
otherwise low-level controllers.

Reviewed by: thompsa

13 years agoConsistently use padding `_' in the comment.
Jung-uk Kim [Mon, 8 Nov 2010 19:52:14 +0000 (19:52 +0000)]
Consistently use padding `_' in the comment.

13 years agoReduce spin wait time consumed in GMII register access routine.
Pyun YongHyeon [Mon, 8 Nov 2010 19:15:31 +0000 (19:15 +0000)]
Reduce spin wait time consumed in GMII register access routine.
There were a couple of attempts in the past to reduce it since it
took more than 1ms. Because mii_tick() periodically polls link
status, waiting more than 1ms for each GMII register access was
overkill. Unfortunately all previous attempts were failed with
various ways on different controllers.
This time, add additional 20us dealy at the end of GMII register
access which seems to requirement of all RealTek controllers to
issue next GMII register access request. This is the same way what
Linux does.

13 years agoBack out r214961 for skeleton.c -- it broke the groff build.
David E. O'Brien [Mon, 8 Nov 2010 19:00:22 +0000 (19:00 +0000)]
Back out r214961 for skeleton.c -- it broke the groff build.

13 years agoWhen requesting sense data for SIM not doing it automatically (such as
Alexander Motin [Mon, 8 Nov 2010 15:59:41 +0000 (15:59 +0000)]
When requesting sense data for SIM not doing it automatically (such as
ATAPI or USB), request only as much data as requested by consumer.
On the way back -- report how much sense data we have actually received.

13 years agoTeach ahci(4), siis(4) and ATA_CAM ata(4) wrapper report to CAM residual
Alexander Motin [Mon, 8 Nov 2010 15:36:15 +0000 (15:36 +0000)]
Teach ahci(4), siis(4) and ATA_CAM ata(4) wrapper report to CAM residual
I/O length on underruns, that often happens for some SCSI commands.

13 years agoOn APs startup skip hard-/statclock events, which time passed before CPU
Alexander Motin [Mon, 8 Nov 2010 15:25:12 +0000 (15:25 +0000)]
On APs startup skip hard-/statclock events, which time passed before CPU
was lauched. Few seconds event burst, accumulated during long startup,
reported to cause panic in SCHED_ULE priority calculation logic.

13 years agoBreak long line.
Dag-Erling Smørgrav [Mon, 8 Nov 2010 15:14:14 +0000 (15:14 +0000)]
Break long line.

13 years agoFix CPU ID in /proc/cpuinfo.
Dag-Erling Smørgrav [Mon, 8 Nov 2010 12:04:41 +0000 (12:04 +0000)]
Fix CPU ID in /proc/cpuinfo.

PR: kern/56451
Submitted by: arundel@
MFC after: 3 weeks

13 years agoAdd/expand country/state.
Ruslan Ermilov [Mon, 8 Nov 2010 09:50:47 +0000 (09:50 +0000)]
Add/expand country/state.

13 years agoA traditional (once per three years) sort by month/day/year/login.
Ruslan Ermilov [Mon, 8 Nov 2010 09:26:56 +0000 (09:26 +0000)]
A traditional (once per three years) sort by month/day/year/login.
While here, fixed badly formatted lines.

13 years agoIntel IXP425 SoC is based on the ARMv5TE architecture
Kevin Lo [Mon, 8 Nov 2010 07:54:24 +0000 (07:54 +0000)]
Intel IXP425 SoC is based on the ARMv5TE architecture

MFC after: 3 days

13 years agoSet the pin to output on attach, we can't assume it already is.
Andrew Thompson [Mon, 8 Nov 2010 03:08:01 +0000 (03:08 +0000)]
Set the pin to output on attach, we can't assume it already is.

Reviewed by: gonzo

13 years agoUse shorten model name instead of showing all controller model
Pyun YongHyeon [Mon, 8 Nov 2010 01:15:42 +0000 (01:15 +0000)]
Use shorten model name instead of showing all controller model
numbers. bge(4) supports too many models such that it's
unreasonable to list all these controllers in one line description
of name. While I'm here mention that BCM590x/BCM5779x is Fast
Ethernet controller.
bge(4) still lacks support for some controllers but supporting
these controllers should be easy now and adding new controllers
do not require touching .Nd any more.

Obtained from: OpenBSD

13 years ago- Provide more registers for GDB
Oleksandr Tymoshenko [Mon, 8 Nov 2010 00:26:49 +0000 (00:26 +0000)]
- Provide more registers for GDB

13 years agoAdd '-y' for bison compatibility.
David E. O'Brien [Sun, 7 Nov 2010 23:44:40 +0000 (23:44 +0000)]
Add '-y' for bison compatibility.

Obtained from: http://invisible-island.net

13 years agoInherit WARNS from parent directory.
David E. O'Brien [Sun, 7 Nov 2010 23:34:05 +0000 (23:34 +0000)]
Inherit WARNS from parent directory.

Submitted by: marius

13 years agoFix cross-debugger build
Oleksandr Tymoshenko [Sun, 7 Nov 2010 23:23:48 +0000 (23:23 +0000)]
Fix cross-debugger build

13 years agoDirectly use memory allocation functions and remove needless casts in
David E. O'Brien [Sun, 7 Nov 2010 23:22:42 +0000 (23:22 +0000)]
Directly use memory allocation functions and remove needless casts in
their usage.  Also use associated modern types instead of k&r ones.

13 years agoFix initialization order:_initialize_svr4_solib should
Oleksandr Tymoshenko [Sun, 7 Nov 2010 23:22:22 +0000 (23:22 +0000)]
Fix initialization order:_initialize_svr4_solib should
be called before _initialize_thread_db

13 years agoChange to ANSI-C function definitions.
David E. O'Brien [Sun, 7 Nov 2010 22:51:54 +0000 (22:51 +0000)]
Change to ANSI-C function definitions.

13 years ago- Set -x flag when executing customisation scripts to aid in debugging them.
Nick Hibma [Sun, 7 Nov 2010 21:57:57 +0000 (21:57 +0000)]
- Set -x flag when executing customisation scripts to aid in debugging them.
- Use KERNCONFDIR with KERNCONF instead of copying the kernel config into the source tree
  so included kernel configs work.
- Put more stuff in the _.bk/_.ik log file, not just make statements.
- Add the kernel config name to the pprint during kernel installation.
- Add NANO_MODULES providing a list of modules to build and install.

Reviewed by: imp
MFC after: 2 weeks

13 years agoDon't call pmap_demote_DMAP() on MTRR entries from the BIOS that are marked
Alan Cox [Sun, 7 Nov 2010 21:48:49 +0000 (21:48 +0000)]
Don't call pmap_demote_DMAP() on MTRR entries from the BIOS that are marked
as "bogus".

Reported by: Jia-Shiun Li

13 years agoIn case the stack size reaches its limit and its growth must be restricted,
Alan Cox [Sun, 7 Nov 2010 21:40:34 +0000 (21:40 +0000)]
In case the stack size reaches its limit and its growth must be restricted,
ensure that grow_amount is a multiple of the page size.  Otherwise, the
kernel may crash in swap_reserve_by_uid() on HEAD and FreeBSD 8.x, and
produce a core file with a missing stack on FreeBSD 7.x.

Diagnosed and reported by: jilles
Reviewed by: kib
MFC after: 1 week

13 years ago- Use proper constant for accessing PCB intead of hardcoded numbers
Oleksandr Tymoshenko [Sun, 7 Nov 2010 20:56:41 +0000 (20:56 +0000)]
- Use proper constant for accessing PCB intead of hardcoded numbers
- Minor clean-up

13 years agoLink threads support to the build
Oleksandr Tymoshenko [Sun, 7 Nov 2010 20:53:19 +0000 (20:53 +0000)]
Link threads support to the build

13 years agoPrevent endless loop by detecting broken MIPS.options
Oleksandr Tymoshenko [Sun, 7 Nov 2010 20:44:46 +0000 (20:44 +0000)]
Prevent endless loop by detecting broken MIPS.options

13 years agoChange register numbers according to current struct reg and
Oleksandr Tymoshenko [Sun, 7 Nov 2010 20:40:00 +0000 (20:40 +0000)]
Change register numbers according to current struct reg and
struct fpreg in src/sys/mips/include/reg.h

13 years agoRemove line for the uncommitted Cambria gpio drive that snuck in with r214946.
Andrew Thompson [Sun, 7 Nov 2010 20:38:14 +0000 (20:38 +0000)]
Remove line for the uncommitted Cambria gpio drive that snuck in with r214946.

13 years agoCalculate offset from frame top for registers saved on a stack frame.
Oleksandr Tymoshenko [Sun, 7 Nov 2010 20:37:25 +0000 (20:37 +0000)]
Calculate offset from frame top for registers saved on a stack frame.

13 years agoHook up the five gpio pins on the Avila board to the gpio framework. There are
Andrew Thompson [Sun, 7 Nov 2010 20:33:39 +0000 (20:33 +0000)]
Hook up the five gpio pins on the Avila board to the gpio framework. There are
actually 16 I/O lines but the other ones are used for system devices and
interrupts.

The IXP4XX platform can set interrupts on these pins for
high/low/rising/falling/transitional but this is not implemented yet.

The Cambria has the same interface but as all the pins are assigned to system
functions the gpio header is toggled via a PLD on the i2c bus and is not
supported by this commit.

13 years agoAdd gpart and glabel to the release CD mfsroot.
Marius Strobl [Sun, 7 Nov 2010 19:23:25 +0000 (19:23 +0000)]
Add gpart and glabel to the release CD mfsroot.

13 years agoDo not have the MTU table twice in the code. Therefore move the
Michael Tuexen [Sun, 7 Nov 2010 18:50:35 +0000 (18:50 +0000)]
Do not have the MTU table twice in the code. Therefore move the
function from the timer code to util, rename it appropriately and
also fix a bug in sctp_get_prev_mtu(), where calling it with a
value existing in the MTU table did not return a smaller one.

MFC after: 3 days.

13 years agoEliminate a possible race between pmap_pinit() and pmap_kenter_pde() on
Alan Cox [Sun, 7 Nov 2010 18:42:37 +0000 (18:42 +0000)]
Eliminate a possible race between pmap_pinit() and pmap_kenter_pde() on
superpage promotion or demotion.

Micro-optimize pmap_kenter_pde().

Reviewed by: kib, jhb (an earlier version)
MFC after: 1 week

13 years agoRemove two functions which are not used.
Michael Tuexen [Sun, 7 Nov 2010 17:50:56 +0000 (17:50 +0000)]
Remove two functions which are not used.

MFC after: 3 days.

13 years ago* Use exponential backoff for retransmission of SHUTDOWN and
Michael Tuexen [Sun, 7 Nov 2010 17:44:04 +0000 (17:44 +0000)]
* Use exponential backoff for retransmission of SHUTDOWN and
  SHUTDOWN-ACK chunks.
* While there, do some cleanups.

MFC after: 3 days.

13 years agoRemove useless comment.
Edward Tomasz Napierala [Sun, 7 Nov 2010 17:33:04 +0000 (17:33 +0000)]
Remove useless comment.

13 years agoSync with the latest version from NetBSD. It notably addds ISO9660 support.
Olivier Houchard [Sun, 7 Nov 2010 16:05:04 +0000 (16:05 +0000)]
Sync with the latest version from NetBSD. It notably addds ISO9660 support.

Submitted by: bapt

13 years agoBugfix: Set the bit that marks a device number in use.
Nick Hibma [Sun, 7 Nov 2010 15:36:07 +0000 (15:36 +0000)]
Bugfix: Set the bit that marks a device number in use.
This would cause a panic when disconnecting the second serial device.

Submitted by: Lucius Windschuh

13 years agoNot only stop all timers when entering the SHUTDOWN_SENT state,
Michael Tuexen [Sun, 7 Nov 2010 14:39:40 +0000 (14:39 +0000)]
Not only stop all timers when entering the SHUTDOWN_SENT state,
but also when entering the SHUTDOWN_ACK_SEND state.

MFC after: 3 days.

13 years agoAdd missing curly brackets. By chance, the missing brackets didn't alter
Jaakko Heinonen [Sun, 7 Nov 2010 14:28:01 +0000 (14:28 +0000)]
Add missing curly brackets. By chance, the missing brackets didn't alter
the code behavior.

Submitted by: Lucius Windschuh

13 years agoFix indentation in r213894.
Marius Strobl [Sun, 7 Nov 2010 12:29:26 +0000 (12:29 +0000)]
Fix indentation in r213894.

13 years agoRetire objformat(1), take two.
Ulrich Spörlein [Sun, 7 Nov 2010 10:49:40 +0000 (10:49 +0000)]
Retire objformat(1), take two.

It's been almost four years, and this placeholder has not been needed.

13 years agoRemove extraneous Aq.
Joel Dahl [Sun, 7 Nov 2010 07:16:35 +0000 (07:16 +0000)]
Remove extraneous Aq.

13 years agoIf the Zip reader doesn't see a PK signature block
Tim Kientzle [Sun, 7 Nov 2010 03:40:37 +0000 (03:40 +0000)]
If the Zip reader doesn't see a PK signature block
because there's inter-entry garbage, just scan forward
to find the next one.  This allows us to handle a lot
of Zip archives that have been modified in-place.

Thanks to: Gleb Kurtsou for sending me a sample archive

13 years agoAdd minidump support for MIPS
Oleksandr Tymoshenko [Sun, 7 Nov 2010 03:26:22 +0000 (03:26 +0000)]
Add minidump support for MIPS

13 years ago- Add minidump support for FreeBSD/mips
Oleksandr Tymoshenko [Sun, 7 Nov 2010 03:09:02 +0000 (03:09 +0000)]
- Add minidump support for FreeBSD/mips

13 years agoFix a long standing bug in programming station address for Yukon
Pyun YongHyeon [Sat, 6 Nov 2010 22:07:22 +0000 (22:07 +0000)]
Fix a long standing bug in programming station address for Yukon
controllers. sk(4) never reprogrammed station address for Yukon
controllers so overriding station address with ifconfig(8) was not
possible.
Fix the bug by reprogramming all registers that control station
address, flow-control and virtual station address. Virtual station
address has no use at this moment since driver does not make use of
fail over feature.

Tested by: "Mikhail T." <mi+thun <> aldan.algebra.com>
MFC after: 1 week

13 years agoIf we got an invalid station address, generate random address. This
Pyun YongHyeon [Sat, 6 Nov 2010 21:54:32 +0000 (21:54 +0000)]
If we got an invalid station address, generate random address. This
might be caused by broken BIOS.

Reported by: "Mikhail T." <mi+thun <> aldan.algebra.com>
MFC after: 1 week

13 years agoMark command submission timeouts as timeouts. This should trigger device
Alexander Motin [Sat, 6 Nov 2010 19:11:49 +0000 (19:11 +0000)]
Mark command submission timeouts as timeouts. This should trigger device
resets and increase chances of getting device back again.

13 years agoInstead of using the AMRR ratectl algo as default for drivers which have
Bernhard Schmidt [Sat, 6 Nov 2010 18:17:20 +0000 (18:17 +0000)]
Instead of using the AMRR ratectl algo as default for drivers which have
the IEEE80211_C_RATECTL flag set, default to NONE for all drivers. Only if
a driver calls ieee80211_ratectl_init() check if the NONE algo is still
selected and try to use AMRR in that case. Drivers are still free to use
any other algo by calling ieee80211_ratectl_set() prior to the
ieee80211_ratectl_init() call.

After this change it is now safe to assume that a ratectl algo is always
available and selected, which renders the IEEE80211_C_RATECTL flag pretty
much useless. Therefore revert r211314 and 211546.

Reviewed by: rpaulo
MFC after: 2 weeks

13 years agoFix a segmentation fault in argument processing.
Jean-Sébastien Pédron [Sat, 6 Nov 2010 17:48:46 +0000 (17:48 +0000)]
Fix a segmentation fault in argument processing.

The crash was caused by a command line such as this one:
# foldl -b1

PR: bin/151592
Reported by: Marcus Reid <marcus@blazingdot.com>
Tested by: Marcus Reid <marcus@blazingdot.com>
MFC after: 3 days

13 years agoApply style(9) and unbreak build.
Ulrich Spörlein [Sat, 6 Nov 2010 15:04:56 +0000 (15:04 +0000)]
Apply style(9) and unbreak build.

This went unnoticed during the WARNS bump, as this tool is not connected
to the build.

13 years agoPut string in quotes, like is done everywhere.
Ulrich Spörlein [Sat, 6 Nov 2010 15:04:48 +0000 (15:04 +0000)]
Put string in quotes, like is done everywhere.

13 years agoAdd support for odd-sized PIO transfers, sometimes used by ATAPI.
Alexander Motin [Sat, 6 Nov 2010 14:22:50 +0000 (14:22 +0000)]
Add support for odd-sized PIO transfers, sometimes used by ATAPI.

13 years agoImplement pmap_is_prefaultable().
Marius Strobl [Sat, 6 Nov 2010 13:58:24 +0000 (13:58 +0000)]
Implement pmap_is_prefaultable().

Reviewed by: alc (with bugfix)

13 years agoDo not resend DATA chunks without delay when dropped by the peer and
Michael Tuexen [Sat, 6 Nov 2010 13:43:18 +0000 (13:43 +0000)]
Do not resend DATA chunks without delay when dropped by the peer and
the CRC was correct.

MFC after: 3 days.

13 years ago* Fix an accounting bug regarding SACK/NR-SACK chunks.
Michael Tuexen [Sat, 6 Nov 2010 13:30:54 +0000 (13:30 +0000)]
* Fix an accounting bug regarding SACK/NR-SACK chunks.
* Fix the generation of the SACK/NR-SACK gap lists.

MFC after: 3 days.

13 years ago- Move Sun Fire V240 to the list of known working machines.
Marius Strobl [Sat, 6 Nov 2010 11:38:49 +0000 (11:38 +0000)]
- Move Sun Fire V240 to the list of known working machines.
- For the parallel stable/7 and stable/8 branches mention both releases that
  first supported a particular sparc64 machine and update the sparc64 hardware
  list regarding machines that will be supported beginning with 7.4-RELEASE.