]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoDo not increment bio_data in case of BIO_DELETE.
mav [Thu, 10 Apr 2014 10:12:56 +0000 (10:12 +0000)]
Do not increment bio_data in case of BIO_DELETE.

This fixes KASSERT() panic in g_io_request().

10 years agoFix build breakage caused by r264295
smh [Thu, 10 Apr 2014 05:04:23 +0000 (05:04 +0000)]
Fix build breakage caused by r264295

X-MFC-With: r264295
MFC after: 1 week

10 years agoAdd kqueue support for devctl.
davidxu [Thu, 10 Apr 2014 02:30:51 +0000 (02:30 +0000)]
Add kqueue support for devctl.

Reviewed by: kib,mjg

10 years agoRestore the pX part to the version number printed in debugging mode.
des [Wed, 9 Apr 2014 20:42:00 +0000 (20:42 +0000)]
Restore the pX part to the version number printed in debugging mode.

10 years agoFix three refcounter leaks and lock recursion they covered.
mav [Wed, 9 Apr 2014 19:16:40 +0000 (19:16 +0000)]
Fix three refcounter leaks and lock recursion they covered.

MFC after: 1 week

10 years agoReally, really, really only allow this option for amd64/i386 builds.
sbruno [Wed, 9 Apr 2014 18:44:54 +0000 (18:44 +0000)]
Really, really, really only allow this option for amd64/i386 builds.

Submitted by: imp@ and tinderbox

10 years agoConstrain the amount of data returned to what is actually available
tychon [Wed, 9 Apr 2014 14:50:55 +0000 (14:50 +0000)]
Constrain the amount of data returned to what is actually available
not the size of the buffer.

Approved by: grehan (co-mentor)

10 years agoIntroduce new serialization type CTL_SERIDX_UNMAP.
mav [Wed, 9 Apr 2014 10:58:52 +0000 (10:58 +0000)]
Introduce new serialization type CTL_SERIDX_UNMAP.

Unfortunately we can't check range collisions for UNMAP commands alike
to writes, because they include multiple ranges, which are also passed
in data block, not in CDB.  As result, UNMAP commands have to be treated
as colliding with any other command accessing the media.

From the other side all UNMAPs are equal (we don't support ANCHOR flag),
so we can execute several UNMAPs same time.

10 years agoWhen splitting huge unmap requests, do it on sector boundary.
mav [Wed, 9 Apr 2014 10:44:09 +0000 (10:44 +0000)]
When splitting huge unmap requests, do it on sector boundary.

10 years agoRemove support of LUN-based CD changers from cd(4) driver.
mav [Wed, 9 Apr 2014 08:57:57 +0000 (08:57 +0000)]
Remove support of LUN-based CD changers from cd(4) driver.

This code was heavily broken few months ago during CAM locking changes.
Fixing it would require almost complete rewrite.  Since there are no
known devices on market using this interface younger then ~15 years, and
they are CD, not even DVD, I don't see much reason to rewrite it.

This change does not mean those devices won't work.  They will just work
slower due to inefficient disks load/unload schedule if several LUNs
accessed same time.

Discussed with: ken@
Silence on: scsi@, hardware@
MFC after: 1 week

10 years agoFix for infinite XHCI reset loops when the set address USB request fails.
hselasky [Wed, 9 Apr 2014 06:27:04 +0000 (06:27 +0000)]
Fix for infinite XHCI reset loops when the set address USB request fails.

MFC after: 2 days

10 years agoAdd workaround for MCP61 Ethernet controller found on MSI K9
yongari [Wed, 9 Apr 2014 05:15:40 +0000 (05:15 +0000)]
Add workaround for MCP61 Ethernet controller found on MSI K9
motherboard.  PHY hardware used for the controller responded at
all possible addresses which in turn resulted in having 32 PHYs
for the controller.  If driver detects "MSI K9N6PGM2-V2 (MS-7309)"
motherboard, tell miibus(4) PHY is located at 0.

Tested by: Chris H

10 years agoAdd a function to check whether the given register can be accessed whilst
adrian [Wed, 9 Apr 2014 03:51:05 +0000 (03:51 +0000)]
Add a function to check whether the given register can be accessed whilst
the chip is asleep.

It's AR5416 and later specific; I'll add a HAL method to generalise it
later.

Tested:

* AR5416, STA mode

10 years agoSpell imgact_binmisc correctly
sbruno [Wed, 9 Apr 2014 03:46:04 +0000 (03:46 +0000)]
Spell imgact_binmisc correctly

10 years agoBump osreldate for tracking SA-14:06
peter [Wed, 9 Apr 2014 01:26:58 +0000 (01:26 +0000)]
Bump osreldate for tracking SA-14:06

10 years agoAnother fix for r264274. Last moment cosmetic changes are evil!
mav [Tue, 8 Apr 2014 22:36:39 +0000 (22:36 +0000)]
Another fix for r264274.  Last moment cosmetic changes are evil!

10 years agosys/kern/imgact_binmisc.c -- free the right pointer mask vs magic
sbruno [Tue, 8 Apr 2014 22:12:01 +0000 (22:12 +0000)]
sys/kern/imgact_binmisc.c -- free the right pointer mask vs magic

sys/sys/imagact_binmisc.h -- cleanup white space tabs vs spaces
                          -- remove stray " in comment

Submitted by: jmallett@

10 years agoAlso ignore files from Murcirial (.hg) and git (.git) when copying
imp [Tue, 8 Apr 2014 21:58:04 +0000 (21:58 +0000)]
Also ignore files from Murcirial (.hg) and git (.git) when copying
file trees.

10 years agoActually, since this is what I thought I was doing, only allow the
sbruno [Tue, 8 Apr 2014 21:39:51 +0000 (21:39 +0000)]
Actually, since this is what I thought I was doing, only allow the
binmisc code to be build on amd64/i386 for the kernel.

Update NOTES with some indication of what this code is used for.

Pointed out by jhb@ ... thanks!

Submitted by: jhb@

10 years agoOops! Few quick fixes for r264274.
mav [Tue, 8 Apr 2014 21:30:10 +0000 (21:30 +0000)]
Oops! Few quick fixes for r264274.

10 years agoMerge OpenSSL 1.0.1g.
jkim [Tue, 8 Apr 2014 21:06:58 +0000 (21:06 +0000)]
Merge OpenSSL 1.0.1g.

Approved by: benl (maintainer)

10 years agoHandle single-byte reads from the bvmcons port (0x220) by returning
jhb [Tue, 8 Apr 2014 21:02:03 +0000 (21:02 +0000)]
Handle single-byte reads from the bvmcons port (0x220) by returning
0xff.  Some guests may attempt to read from this port to identify
psuedo-PNP ISA devices.  (The ie(4) driver in FreeBSD/i386 is one
example.)

Reviewed by: grehan

10 years agoQuick mdoc/whitespace/spelling pass, this needs some more work.
brueffer [Tue, 8 Apr 2014 20:59:02 +0000 (20:59 +0000)]
Quick mdoc/whitespace/spelling pass, this needs some more work.

10 years agoExplicitly initialize 'vmname' to NULL.
jhb [Tue, 8 Apr 2014 20:54:13 +0000 (20:54 +0000)]
Explicitly initialize 'vmname' to NULL.

Reviewed by: grehan

10 years agoAdd support for SCSI UNMAP commands to CTL.
mav [Tue, 8 Apr 2014 20:50:48 +0000 (20:50 +0000)]
Add support for SCSI UNMAP commands to CTL.

This patch adds support for three new SCSI commands: UNMAP, WRITE SAME(10)
and WRITE SAME(16).  WRITE SAME commands support both normal write mode
and UNMAP flag.  To properly report UNMAP capabilities this patch also adds
support for reporting two new VPD pages: Block limits and Logical Block
Provisioning.

UNMAP support can be enabled per-LUN by adding "-o unmap=on" to `ctladm
create` command line or "option unmap on" to lun sections of /etc/ctl.conf.

At this moment UNMAP supported for ramdisks and device-backed block LUNs.
It was tested to work great with ZFS ZVOLs.  For file-backed LUNs UNMAP
support is unfortunately missing due to absence of respective VFS KPI.

Reviewed by: ken
MFC after: 1 month
Sponsored by: iXsystems, Inc

10 years agoPut proper ${} around variable expansion. This fixes the build on 9.2
imp [Tue, 8 Apr 2014 20:10:57 +0000 (20:10 +0000)]
Put proper ${} around variable expansion.  This fixes the build on 9.2
with fmake (which complained). Not sure why bmake didn't complain though...

10 years agoAdd Stacey Son's binary activation patches that allow remapping of
sbruno [Tue, 8 Apr 2014 20:10:22 +0000 (20:10 +0000)]
Add Stacey Son's binary activation patches that allow remapping of
execution to a emumation program via parsing of ELF header information.

With this kernel module and userland tool, poudriere is able to build
ports packages via the QEMU userland tools (or another emulator program)
in a different architecture chroot, e.g. TARGET=mips TARGET_ARCH=mips

I'm not connecting this to GENERIC for obvious reasons, but this should
allow the kernel module to be built by default and enable the building
of the userland tool (which automatically loads the kernel module).

Submitted by: sson@
Reviewed by: jhb@

10 years ago(Re)connect sys/boot/amd64 to the build
emaste [Tue, 8 Apr 2014 19:19:58 +0000 (19:19 +0000)]
(Re)connect sys/boot/amd64 to the build

Sponsored by: The FreeBSD Foundation

10 years agoFix NFS deadlock vulnerability. [SA-14:05]
delphij [Tue, 8 Apr 2014 18:27:32 +0000 (18:27 +0000)]
Fix NFS deadlock vulnerability. [SA-14:05]

Fix "Heartbleed" vulnerability and ECDSA Cache Side-channel
Attack in OpenSSL. [SA-14:06]

10 years agoWakeup only one thread of added in r263978i at a time.
mav [Tue, 8 Apr 2014 18:22:03 +0000 (18:22 +0000)]
Wakeup only one thread of added in r263978i at a time.

This slightly reduces lock congestion between threads.

Submitted by: trasz

10 years agoAdd explicit casts to quiet warnings in libefi
emaste [Tue, 8 Apr 2014 18:21:38 +0000 (18:21 +0000)]
Add explicit casts to quiet warnings in libefi

Sponsored by: The FreeBSD Foundation

10 years agoFix printf args for 64-bit archs
emaste [Tue, 8 Apr 2014 18:02:32 +0000 (18:02 +0000)]
Fix printf args for 64-bit archs

Sponsored by: The FreeBSD Foundation

10 years agoCorrect a variable's type for 64-bit Ficl
emaste [Tue, 8 Apr 2014 17:50:27 +0000 (17:50 +0000)]
Correct a variable's type for 64-bit Ficl

FICL_INT is long.

10 years agoRevert r264132, disconnecting sys/boot/amd64 for now
emaste [Tue, 8 Apr 2014 17:40:09 +0000 (17:40 +0000)]
Revert r264132, disconnecting sys/boot/amd64 for now

Some 64-bit Ficl warnings broke tinderbox builds.

10 years agoUpdate to fix at r264244.
ray [Tue, 8 Apr 2014 14:18:39 +0000 (14:18 +0000)]
Update to fix at r264244.
o Unmute terminal when done with driver replacement.
o Move init fonts to early point.
o Minor cleanup.

MFC after: 6 days
X-MFC-with: r264244 r264242
Sponsored by: The FreeBSD Foundation

10 years agoFix cursor color in reverse video mode.
ray [Tue, 8 Apr 2014 14:14:25 +0000 (14:14 +0000)]
Fix cursor color in reverse video mode.

PR: kern/188196
Submitted by: Claude Buisson <clbuisson@orange.fr> (original version)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

10 years agoDistinguish between the different variants and configurations of Sunix
marius [Tue, 8 Apr 2014 07:32:32 +0000 (07:32 +0000)]
Distinguish between the different variants and configurations of Sunix
{MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S.
Among others, this fixes the hang seen when trying to probe the none-
existent second UART on an actually 1-port chip.

Obtained from: NetBSD (BAR layouts)
MFC after: 3 days
Sponsored by: Bally Wulff Games & Entertainment GmbH

10 years agoAdd some debugging and forcing of the BAW to match what the current
adrian [Tue, 8 Apr 2014 07:14:14 +0000 (07:14 +0000)]
Add some debugging and forcing of the BAW to match what the current
tracked BAW actually is.

The net80211 code that completes a BAR will set tid->txa_start (the
BAW start) to whatever value was called when sending the BAR.
Now, in case there's bugs in my driver code that cause the BAW
to slip along, we should make sure that the new BAW we start
at is actually what we currently have it at, not what we've sent.

This totally breaks the specification and so this stays a printf().
If it happens then I need to know and fix it.

Whilst here, add some debugging updates:

* add TID logging to places where it's useful;
* use SEQNO().

10 years agoDon't do continue inside the scheduler loop; we really need to check
adrian [Tue, 8 Apr 2014 07:10:52 +0000 (07:10 +0000)]
Don't do continue inside the scheduler loop; we really need to check
if we've hit the end of the list and cycled around to the first
node again.

Obtained from: DragonflyBSD

10 years agoCorrect the actual definition of ath_tx_tid_filt_comp_single() to
adrian [Tue, 8 Apr 2014 07:08:59 +0000 (07:08 +0000)]
Correct the actual definition of ath_tx_tid_filt_comp_single() to
match how it's used.

This is another bug that led to aggregate traffic hanging because
the BAW tracking stopped being accurate.  In this instance, a filtered
frame that exceeded retries would return a non-error, which would
mean the caller would never remove it from the BAW.  But it wouldn't
be added to the filtered list, so it would be lost forever.  There'd
thus be a hole in the BAW that would never get transmitted and
this leads to a traffic hang.

Tested:

* Routerstation Pro, AR9220 AP

10 years agoAdd a comment explaining the obvious.
adrian [Tue, 8 Apr 2014 07:01:27 +0000 (07:01 +0000)]
Add a comment explaining the obvious.

10 years agoDon't resume a TID on each filtered frame completion - only do it if
adrian [Tue, 8 Apr 2014 07:00:43 +0000 (07:00 +0000)]
Don't resume a TID on each filtered frame completion - only do it if
we did suspend it.

The whole suspend/resume TID queue thing is supposed to be a matched
reference count - a subsystem (eg addba negotiation, BAR transmission,
filtered frames, etc) is supposed to call pause() once and then resume()
once.

ath_tx_tid_filt_comp_complete() is called upon the completion of any
filtered frame, regardless of whether the driver had aleady seen
a filtered frame and called pause().

So only call resume() if tid->isfiltered = 1, which indicates that
we had called pause() once.

This fixes a seemingly whacked and different problem - traffic hangs.

What was actually going on:

* There'd be some marginal link with crappy behaviour, causing filtered
  frames and BAR TXing to occur;
* A BAR TX would occur, setting the new BAW (block-ack window) to seqno n;
* .. and pause() would be called, blocking further transmission;
* A filtered frame completion would occur from the hardware, but with
  tid->isfiltered = 0 which indiciates we haven't actually marked
  the queue yet as filtered;
* ath_tx_tid_filt_comp_complete() would call resume(), continuing
  transmission;
* Some frames would be queued to the hardware, since the TID is now no
  longer paused;
* .. and if some make it out and ACked successfully, the new BAW
  may be seqno n+1 or more;
* .. then the BAR TX completes and sets the new seqno back to n.

At this point the BAW tracking would be loopy because the BAW
start was modified but the BAW ring buffer wasn't updated in lock
step.

Tested:

* Routerstation Pro + AR9220 AP

10 years agoUpdates to i.MX53:
rpaulo [Tue, 8 Apr 2014 04:05:04 +0000 (04:05 +0000)]
Updates to i.MX53:

* Define support for the SDHCI driver, although it doesn't work yet
* Fix the memory mappings for IPU [1]

Reviewed by: ray [1]

10 years agoAdd a basic set of data points which count the number of sleep entries
adrian [Tue, 8 Apr 2014 02:36:27 +0000 (02:36 +0000)]
Add a basic set of data points which count the number of sleep entries
that are being done by the OS.

For now this'll match up with the "wakeups"; although I'll dig deeper into
this to see if we can determine which sleep state the CPU managed to get
into.  Most things I've seen these days only expose up to C2 or C3 via
ACPI even though the CPU goes all the way down to C6 or C7.

10 years agoRemove a bogus re-assignment.
kevlo [Tue, 8 Apr 2014 01:54:50 +0000 (01:54 +0000)]
Remove a bogus re-assignment.

10 years agoFix panic on load new driver while vt(4) is in VGA textmode.
ray [Mon, 7 Apr 2014 22:49:41 +0000 (22:49 +0000)]
Fix panic on load new driver while vt(4) is in VGA textmode.
o Mute terminal while vt(4) driver change in progress.
o Reset VDF_TEXTMODE before init new driver.
o Assign default font, if new driver is not in TEXTMODE.
o Do not update screen while driver changing.

Resolved by: adrian
Reported by: tyler
MFC after: 7 days
Sponsored by: The FreeBSD Foundation

10 years agoLoosen the processing of *_IF_aliasN vars to be less strict. Previously,
dteske [Mon, 7 Apr 2014 22:40:29 +0000 (22:40 +0000)]
Loosen the processing of *_IF_aliasN vars to be less strict. Previously,
the first alias had to be _alias0 and processing stopped at the first non-
defined variable (preventing gaps). Allowing gaps gives the administrator
the ability to group aliases in an adhoc manner and also lifts the
requirement to renumber aliases simply to comment-out an existing one.
Aliases are processed in numerical ascending order.

Discussed on: -rc
MFC after: 1 week

10 years agoDo not fill screen, while muted.
ray [Mon, 7 Apr 2014 22:37:13 +0000 (22:37 +0000)]
Do not fill screen, while muted.

Sponsored by: The FreeBSD Foundation

10 years agoCall sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),
tuexen [Mon, 7 Apr 2014 21:28:21 +0000 (21:28 +0000)]
Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),
since rt_addrmsg() gets also called from other functions.

MFC after: 3 days

10 years agoThinko: don't forget to apply 'howto' in case init(8) isn't running.
ed [Mon, 7 Apr 2014 21:18:12 +0000 (21:18 +0000)]
Thinko: don't forget to apply 'howto' in case init(8) isn't running.

10 years agoNeed to test .MAKE.LEVEL everywhere before using it for bootstrapping
imp [Mon, 7 Apr 2014 21:16:51 +0000 (21:16 +0000)]
Need to test .MAKE.LEVEL everywhere before using it for bootstrapping
issues between fmake and bmake.

10 years agoFor GNU as, add two missing modes for each of the fcomip and fucomip
dim [Mon, 7 Apr 2014 21:12:09 +0000 (21:12 +0000)]
For GNU as, add two missing modes for each of the fcomip and fucomip
instructions.  Partially obtained from OpenBSD by Pedro Giffuni, while I
added the fcomip variants.

Apparently this should help with compiling certain variants of WebKit.

MFC after: 3 days

10 years agoClean up shutdown_nice(). Just send the right signal to init(8).
ed [Mon, 7 Apr 2014 21:11:29 +0000 (21:11 +0000)]
Clean up shutdown_nice(). Just send the right signal to init(8).

Right now, init(8) cannot distinguish between an ACPI power button press
or a Ctrl+Alt+Del sequence on the keyboard. This is because
shutdown_nice() sends SIGINT to init(8) unconditionally, but later
modifies the arguments to reboot(2) to force a certain behaviour.

Instead of doing this, patch up the code to just forward the appropriate
signal to userspace. SIGUSR1 and SIGUSR2 can already be used to halt the
system.

While there, move waittime to the function where it's used; kern_reboot().

10 years agoIFp4 @1192291:
pjd [Mon, 7 Apr 2014 20:44:00 +0000 (20:44 +0000)]
IFp4 @1192291:

- Don't include sys/caprights.h, leverage the fact that cap_rights_t
  is also defined in sys/types.h.
- Include sys/types.h directly.
- For systems that do not have cap_rights_t, define it, so we can use
  it in au_to_rights() prototype.

Discussed with: rwatson

10 years agoImplement the final missing sysctls by moving ipf_auth_softc_t from
cy [Mon, 7 Apr 2014 19:32:56 +0000 (19:32 +0000)]
Implement the final missing sysctls by moving ipf_auth_softc_t from
ip_auth.c to ip_auth.h. ip_frag_soft_t moves from ip_frag.c to
ip_frag.h. mlfk_ipl.c creates sysctl MIBs that reference control blocks
that are dynamically created when IP Filter is loaded. This necessitated
creating them on-the-fly rather than statically at compile time.

Approved by: glebius (mentor)

10 years agoFix table alignment. EVFILT_PROCDESC is longer than the existing filters.
ed [Mon, 7 Apr 2014 18:17:31 +0000 (18:17 +0000)]
Fix table alignment. EVFILT_PROCDESC is longer than the existing filters.

10 years agoImplement kqueue(2) for procdesc(4).
ed [Mon, 7 Apr 2014 18:10:49 +0000 (18:10 +0000)]
Implement kqueue(2) for procdesc(4).

kqueue(2) already supports EVFILT_PROC. Add an EVFILT_PROCDESC that
behaves the same, but operates on a procdesc(4) instead. Only implement
NOTE_EXIT for now. The nice thing about NOTE_EXIT is that it also
returns the exit status of the process, meaning that we can now obtain
this value, even if pdwait4(2) is still unimplemented.

Notes:

- Simply reuse EVFILT_NETDEV for EVFILT_PROCDESC. As both of these will
  be used on totally different descriptor types, this should not clash.

- Let procdesc_kqops_event() reuse the same structure as filt_proc().
  The only difference is that procdesc_kqops_event() should also be able
  to deal with the case where the process was already terminated after
  registration. Simply test this when hint == 0.

- Fix some style(9) issues in filt_proc() to keep it consistent with the
  newly added procdesc_kqops_event().

- Save the exit status of the process in pd->pd_xstat, as we cannot pick
  up the proctree_lock from within procdesc_kqops_event().

Discussed on: arch@
Reviewed by: kib@

10 years agoThese were bogusly placed in the arm directory. Move them to their
imp [Mon, 7 Apr 2014 16:38:31 +0000 (16:38 +0000)]
These were bogusly placed in the arm directory. Move them to their
proper location in powerpc directory.

10 years agoAdd some assertions to ensure that the target array doesn't get accessed
scottl [Mon, 7 Apr 2014 15:13:24 +0000 (15:13 +0000)]
Add some assertions to ensure that the target array doesn't get accessed
out of bounds.

Obtained from: Netflix, Inc.
MFC after: 3 days

10 years agoMerge from projects/pf r264198:
mm [Mon, 7 Apr 2014 07:06:13 +0000 (07:06 +0000)]
Merge from projects/pf r264198:
Execute pf_overload_task() in vnet context. Fixes a vnet kernel panic.

Reviewed by: trociny
MFC after: 1 week

10 years agoMove sys/arm/econa to sys/arm/cavium/cns11xx.
rpaulo [Mon, 7 Apr 2014 05:33:30 +0000 (05:33 +0000)]
Move sys/arm/econa to sys/arm/cavium/cns11xx.

10 years agoUse a more professional device description.
rpaulo [Mon, 7 Apr 2014 05:18:27 +0000 (05:18 +0000)]
Use a more professional device description.

10 years agounits(1): make -V print version instead of -v
eadler [Mon, 7 Apr 2014 02:31:10 +0000 (02:31 +0000)]
units(1): make -V print version instead of -v

The units program is likely little used.  It is even less likely that a script
will want the units program to print out its version number by passing -v.

GNU units uses -V for version and -v for verbosity.

Increase compatibility between these two versions (written by the same author)
by switching our flag as well.

Take this opportunity to remove bogus information about the version number and
just call it 'FreeBSD units'.

Discussed with: cperciva, rwatson

10 years agoAdd man page for udplite(4).
kevlo [Mon, 7 Apr 2014 01:57:51 +0000 (01:57 +0000)]
Add man page for udplite(4).

10 years agoMinor style cleanups.
kevlo [Mon, 7 Apr 2014 01:55:53 +0000 (01:55 +0000)]
Minor style cleanups.

10 years agoAdd support for UDP-Lite protocol (RFC 3828) to IPv4 and IPv6 stacks.
kevlo [Mon, 7 Apr 2014 01:53:03 +0000 (01:53 +0000)]
Add support for UDP-Lite protocol (RFC 3828) to IPv4 and IPv6 stacks.
Tested with vlc and a test suite [1].

[1] http://www.erg.abdn.ac.uk/~gerrit/udp-lite/files/udplite_linux.tar.gz

Reviewed by: jhb, glebius, adrian

10 years agounits(1): fix spelling
eadler [Mon, 7 Apr 2014 01:52:35 +0000 (01:52 +0000)]
units(1): fix spelling

Pointyhat to: me

10 years agounits(1): Add some some additional units
eadler [Mon, 7 Apr 2014 01:46:30 +0000 (01:46 +0000)]
units(1): Add some some additional units

Most of these are also recognized by GNU units

10 years agoDo not build the amd64 UEFI loader with GCC
emaste [Mon, 7 Apr 2014 00:49:15 +0000 (00:49 +0000)]
Do not build the amd64 UEFI loader with GCC

The UEFI loader causes buildworld to fail when building with (in-tree)
GCC, due to a typedef redefinition.  As it happens the in-tree GCC
cannot successfully build the UEFI loader anyhow, as it does not support
__attribute__((ms_abi)).  Thus, just avoid trying to build it with GCC,         rather than disconnecting it from the build until the underlying issue
is fixed.

Sponsored by: The FreeBSD Foundation

10 years agoClear the backlight level when it's turned off. Also, reduce the delay times to
jhibbits [Sun, 6 Apr 2014 23:57:19 +0000 (23:57 +0000)]
Clear the backlight level when it's turned off.  Also, reduce the delay times to
less conservative values, also found in the radeonkms driver.

MFC after: 2 weeks
X-MFC-with: r264205

10 years agoFix the memory region. This board has two memory regions.
rpaulo [Sun, 6 Apr 2014 23:22:42 +0000 (23:22 +0000)]
Fix the memory region.  This board has two memory regions.

10 years agoFix the ATI backlight driver off/on handling. Now this driver works correctly
jhibbits [Sun, 6 Apr 2014 21:48:45 +0000 (21:48 +0000)]
Fix the ATI backlight driver off/on handling.  Now this driver works correctly
with the ATI Radeon 9700 in the PowerBook G4 1.67GHz.

Code shamelessly taken in spirit from the radeonkms driver, which I hope will
make this driver redundant in the future.

MFC after: 2 weeks

10 years agoDefine the full 1024M of ram on the imx53 QSB board.
ian [Sun, 6 Apr 2014 21:45:38 +0000 (21:45 +0000)]
Define the full 1024M of ram on the imx53 QSB board.

10 years agoTell VM we now have ARM platforms with physically discontiguous memory.
ian [Sun, 6 Apr 2014 21:40:39 +0000 (21:40 +0000)]
Tell VM we now have ARM platforms with physically discontiguous memory.

10 years agoFix a typo. The function name is pdfork; not pfork.
ed [Sun, 6 Apr 2014 20:20:07 +0000 (20:20 +0000)]
Fix a typo. The function name is pdfork; not pfork.

10 years agofind: Treat errno from fts_read() more carefully.
jilles [Sun, 6 Apr 2014 20:04:33 +0000 (20:04 +0000)]
find: Treat errno from fts_read() more carefully.

fts_read() leaves errno unchanged on EOF and sets it on error, so set errno
to 0 before calling it. Also, don't trust finish_execplus() to leave errno
unchanged.

10 years agoNit: fix locking of p->p_state in procdesc_close().
ed [Sun, 6 Apr 2014 20:00:42 +0000 (20:00 +0000)]
Nit: fix locking of p->p_state in procdesc_close().

According to <sys/proc.h>, this field needs to be locked with either the
p_mtx or the p_slock. In this case the damage was quite small. Instead
of being reaped, the process would just be reparented to init, so it
could be reaped from there.

10 years agoFix the mips64el build: mips64el should use the mips64 directory, not the mips64el...
imp [Sun, 6 Apr 2014 19:51:57 +0000 (19:51 +0000)]
Fix the mips64el build: mips64el should use the mips64 directory, not the mips64el directory.

10 years agoPartially revert r264083.
loos [Sun, 6 Apr 2014 17:09:51 +0000 (17:09 +0000)]
Partially revert r264083.

While it is the recommended initialization procedure, it hangs on the reset
of the second GPIO module on pandaboard.

Removes the module reset for now as more investigation would be needed.

Reported by: jceel

10 years agoMove definitions out of rpc_com so that the linker doesn't complain about
theraven [Sun, 6 Apr 2014 17:06:27 +0000 (17:06 +0000)]
Move definitions out of rpc_com so that the linker doesn't complain about
multiple definitions.

Reported by: sbruno

10 years agoThis should have been obvious, but make it so.
grehan [Sun, 6 Apr 2014 16:48:00 +0000 (16:48 +0000)]
This should have been obvious, but make it so.

10 years agoFork a child process and wait until the process terminates when the -P
jh [Sun, 6 Apr 2014 16:35:49 +0000 (16:35 +0000)]
Fork a child process and wait until the process terminates when the -P
option is specified. This behavior is documented on the manual page.

PR: bin/187265
Submitted by: Kimo R
MFC after: 2 weeks

10 years agoIn addition to r264077, tell GEOM that we do support BIO_DELETE now.
mav [Sun, 6 Apr 2014 16:31:28 +0000 (16:31 +0000)]
In addition to r264077, tell GEOM that we do support BIO_DELETE now.

10 years agoReport stripe size and offset of the backing device in READ CAPACITY (16)
mav [Sun, 6 Apr 2014 10:13:14 +0000 (10:13 +0000)]
Report stripe size and offset of the backing device in READ CAPACITY (16)
as physical sector size and offset.

MFC after: 2 weeks

10 years agoMark __fixdfdi/__aeabi_d2lz with COMPILER_RT_ABI so it uses the correct
andrew [Sun, 6 Apr 2014 09:14:11 +0000 (09:14 +0000)]
Mark __fixdfdi/__aeabi_d2lz with COMPILER_RT_ABI so it uses the correct
calling convention for __aeabi_* functions.

10 years agoCorrect the SRR1 mask, it's 10-15 not 10-11.
jhibbits [Sun, 6 Apr 2014 06:18:43 +0000 (06:18 +0000)]
Correct the SRR1 mask, it's 10-15 not 10-11.

X-MFC-with: r263464,r263752

10 years agoTimestamps may not have a decimal point.
marcel [Sun, 6 Apr 2014 02:57:49 +0000 (02:57 +0000)]
Timestamps may not have a decimal point.
While here, consistently use sbuf_new_auto().

10 years agoAn all-or-nothing approach to labels isn't flexible enough. Embedded
marcel [Sun, 6 Apr 2014 02:44:37 +0000 (02:44 +0000)]
An all-or-nothing approach to labels isn't flexible enough. Embedded
systems need fine-grained control over what's in and what's out.
That's ideal. For now, separate GPT labels from the rest and allow
g_label to be built with just GPT labels.

Obtained from: Juniper Networks, Inc.

10 years agoMake sure we don't free memory that's already been freed by setting
marcel [Sun, 6 Apr 2014 02:20:42 +0000 (02:20 +0000)]
Make sure we don't free memory that's already been freed by setting
the geom->softc pounter to NULL before freeing the g_slicer softc.
In g_slicer_free() the pointer is checked first.

Obtained from: Juniper Networks, Inc.

10 years agoAdd a couple more required TLB flushes.
ian [Sun, 6 Apr 2014 00:17:41 +0000 (00:17 +0000)]
Add a couple more required TLB flushes.

These should have been part of r264129, they are part of the overall set
of changes that got several weeks of testing.  I must have fumbled them
while merging various patchsets.

10 years agoNeed to include machine/fdt.h.
rpaulo [Sat, 5 Apr 2014 23:20:49 +0000 (23:20 +0000)]
Need to include machine/fdt.h.

10 years agoAdd fsl,imx53.
rpaulo [Sat, 5 Apr 2014 23:20:04 +0000 (23:20 +0000)]
Add fsl,imx53.

10 years agoFollow files.imx51 and add vt support.
rpaulo [Sat, 5 Apr 2014 23:16:51 +0000 (23:16 +0000)]
Follow files.imx51 and add vt support.

10 years agoMake the vmm code compile with gcc too. Not entirely sure things are
imp [Sat, 5 Apr 2014 22:43:23 +0000 (22:43 +0000)]
Make the vmm code compile with gcc too. Not entirely sure things are
correct for the pirbase test (since I'd have thought we'd need to do
something even when the offset is 0 and that test looks like a
misguided attempt to not use an uninitialized variable), but it is at
least the same as today.

10 years agoMake this compile with gcc.
imp [Sat, 5 Apr 2014 22:43:18 +0000 (22:43 +0000)]
Make this compile with gcc.

Submitted by: royger@

10 years agoMake some unwise casts. On i386 these casts wind up being safe. Rather
imp [Sat, 5 Apr 2014 22:42:00 +0000 (22:42 +0000)]
Make some unwise casts. On i386 these casts wind up being safe. Rather
than disturb the API, go with these casts to shut gcc up.

10 years agoFix typo (s/teh/the/) in previous commit.
marcel [Sat, 5 Apr 2014 22:28:46 +0000 (22:28 +0000)]
Fix typo (s/teh/the/) in previous commit.

Pointed out by: rpaulo (thanks!)

10 years agoDo not prevent processes from making changes to the baudrate or the
marcel [Sat, 5 Apr 2014 22:25:10 +0000 (22:25 +0000)]
Do not prevent processes from making changes to the baudrate or the
CLOCAL and HUPCL control flags. There are legit reasons for allowing
those to be changed. When /etc/ttys has the "3wire" type (without a
baudrate) for the serial port that is the low-level console, then
this change has no effect.

Obtained from: Juniper Networks, Inc.

10 years agoSpeed up the lookup of interfaces when there are a large number
gnn [Sat, 5 Apr 2014 22:13:32 +0000 (22:13 +0000)]
Speed up the lookup of interfaces when there are a large number
of them, such in a system with a large number of VLANs.

Submitted by: Nick Rogers
MFC after: 2 weeks

10 years agoUse realloc(9) instead of doing the reallocation inline.
kib [Sat, 5 Apr 2014 20:44:52 +0000 (20:44 +0000)]
Use realloc(9) instead of doing the reallocation inline.

Submitted by: bde
MFC after: 1 week