]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMake the virtual ioapic available unconditionally in a bhyve virtual machine.
neel [Thu, 31 Oct 2013 05:44:45 +0000 (05:44 +0000)]
Make the virtual ioapic available unconditionally in a bhyve virtual machine.

This is in preparation for moving the ioapic device model from userspace to
vmm.ko.

Reviewed by: grehan

10 years agoRename the VMM_CTRx() family of macros to VCPU_CTRx() to highlight that these
neel [Thu, 31 Oct 2013 05:20:11 +0000 (05:20 +0000)]
Rename the VMM_CTRx() family of macros to VCPU_CTRx() to highlight that these
tracepoints are vcpu-specific.

Add support for tracepoints that are global to the virtual machine - these
tracepoints are called VM_CTRx().

10 years agoProvide a crutch that prevents watchdog to interrupt dumping
glebius [Thu, 31 Oct 2013 05:13:53 +0000 (05:13 +0000)]
Provide a crutch that prevents watchdog to interrupt dumping
on a box with IPMI enabled.

Okay from: jhb
Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoFix some lingering build failures caused by fixing implicit inclusion of
markj [Thu, 31 Oct 2013 05:00:50 +0000 (05:00 +0000)]
Fix some lingering build failures caused by fixing implicit inclusion of
if_var.h. Also explicitly include lock.h and mutex.h in if_kr.c rather than
depending on if_var.h to bring them in.

10 years agoDo not EOI an interrupt until the point after the filter handlers / before
ian [Thu, 31 Oct 2013 03:23:25 +0000 (03:23 +0000)]
Do not EOI an interrupt until the point after the filter handlers / before
threaded handlers.

It's not easy to see from the diffs of this change exactly how it
accomplishes the above.  The arm_mask_irq() and arm_unmask_irq() functions
are, respectively, the pre_thread and post_thread hooks.  Not seen in
these diffs, the arm_post_filter() routine also EOIs.  The post_filter
routine runs after filter handlers if there will be no threaded handlers,
so it just EOIs.  The pre_thread routine masks the interrupt (at the
controller, not the source) and EOIs.  So one way or another, the EOI
happens at the point where filter handlers are done.

10 years agoDon't iterate through the bits of the pending interrupt register if the
ian [Thu, 31 Oct 2013 03:12:48 +0000 (03:12 +0000)]
Don't iterate through the bits of the pending interrupt register if the
whole register is zero.  Most of the registers will be zero most of the time.

10 years agoRemove references to an unused fasttrap probe hook, and remove the
markj [Thu, 31 Oct 2013 02:35:00 +0000 (02:35 +0000)]
Remove references to an unused fasttrap probe hook, and remove the
corresponding x86 trap type. Userland DTrace probes are currently handled
by the other fasttrap hooks (dtrace_pid_probe_ptr and
dtrace_return_probe_ptr).

Discussed with: rpaulo

10 years agoFix a typo introduced in r257338.
markj [Thu, 31 Oct 2013 02:27:16 +0000 (02:27 +0000)]
Fix a typo introduced in r257338.

10 years agoDon't base the rate table selection based on the channel mode;
adrian [Thu, 31 Oct 2013 02:21:48 +0000 (02:21 +0000)]
Don't base the rate table selection based on the channel mode;
it needs to check whether there are rate entries in there or not.

PR: kern/183428

10 years agoEnable USB.
rpaulo [Thu, 31 Oct 2013 02:14:28 +0000 (02:14 +0000)]
Enable USB.

10 years agoReset the timer interrupt status register at the top rather than bottom of
ian [Thu, 31 Oct 2013 02:11:35 +0000 (02:11 +0000)]
Reset the timer interrupt status register at the top rather than bottom of
the interrupt handler.  If the event callback starts a new short timeout,
the timer can fire before returning from the event callback, and clearing
the interrupt status after that loses the interrupt and hangs until the
counter wraps.  Fixing all of this removes the need for the do-nothing
loop at the top of the handler which really just waited for the counter to
roll over and reach the one-shot count again.

Also add a missing return(0) in the periodic timer start case.

10 years agoDon't treat the node as an 11n node if 11n rates are disabled.
adrian [Thu, 31 Oct 2013 02:04:53 +0000 (02:04 +0000)]
Don't treat the node as an 11n node if 11n rates are disabled.

For now, the AMRR code only knows about _either_ MCS or non-MCS rates.
It doesn't know how to downgrade (ie, doing 11b CCK rates if MCS0 isn't
reliable.)

PR: kern/183428

10 years agoAdd RT2860_BCN_OFFSET1 and RT2860_MAX_LEN_CFG register initialization to
kevlo [Thu, 31 Oct 2013 02:03:30 +0000 (02:03 +0000)]
Add RT2860_BCN_OFFSET1 and RT2860_MAX_LEN_CFG register initialization to
match with the vendor driver.  While here, remove unused RT2860_DEF_MAC
definition.

10 years agoInitialize BBP68 to improve rx sensitivity.
kevlo [Thu, 31 Oct 2013 02:02:14 +0000 (02:02 +0000)]
Initialize BBP68 to improve rx sensitivity.

10 years agoEnable DC filter in RT3071 Version E.
kevlo [Thu, 31 Oct 2013 02:00:58 +0000 (02:00 +0000)]
Enable DC filter in RT3071 Version E.

10 years agoAdd manpage for urtwnfw, the Realtek RTL8188CU/RTL8192CU firmware
kevlo [Thu, 31 Oct 2013 01:57:05 +0000 (01:57 +0000)]
Add manpage for urtwnfw, the Realtek RTL8188CU/RTL8192CU firmware
module.  Also fix a few nits in urtwn.4.

Reviewed by: rpaulo

10 years agoExpand the list of compatible devices this driver works with. Increase
ian [Thu, 31 Oct 2013 01:45:55 +0000 (01:45 +0000)]
Expand the list of compatible devices this driver works with.  Increase
the target frequency from 1 to 10 MHz because these SoCs are plenty fast
enough to benefit from the extra event timer resolution.

10 years agoQueisce warning about undeclared function usage.
sbruno [Wed, 30 Oct 2013 22:45:35 +0000 (22:45 +0000)]
Queisce warning about undeclared function usage.

yp_get_default_domain is defined in workaround.c but is not declared
in any header file.  Tie the declaration to the same #define conditional
used when the function is called, NETGROUP

10 years agoQuiesce warning, which could be a bug IMO, by correctly defining the host_info
sbruno [Wed, 30 Oct 2013 22:43:40 +0000 (22:43 +0000)]
Quiesce warning, which could be a bug IMO, by correctly defining the host_info
structure name

10 years agoQuiesce two warnings:
sbruno [Wed, 30 Oct 2013 22:41:18 +0000 (22:41 +0000)]
Quiesce two warnings:

1.  define the CODE * as const
2.  restructure function to eliminate warning about exiting with no return.
    severity_map() never returns when it can't find an appropriate sysylog
    facility, and it longjmp()'s away into error code handling.  Keep this
    behavior by stashing the facility value found during our search and
    checking for -1 if found.

10 years ago/etc/keys was moved to /usr/share/keys in r257344
bdrewery [Wed, 30 Oct 2013 22:04:48 +0000 (22:04 +0000)]
/etc/keys was moved to /usr/share/keys in r257344

Approved by: bapt
MFC after: 2 days
X-MFC-With: r257344

10 years agoAdd forgotten pkg.7
bdrewery [Wed, 30 Oct 2013 22:03:51 +0000 (22:03 +0000)]
Add forgotten pkg.7

Approved by: bapt
MFC after: 2 days
X-MFC-with: r257378

10 years agomdoc: document title should be all caps.
joel [Wed, 30 Oct 2013 21:52:31 +0000 (21:52 +0000)]
mdoc: document title should be all caps.

10 years agoA few minor mdoc improvements.
joel [Wed, 30 Oct 2013 21:49:38 +0000 (21:49 +0000)]
A few minor mdoc improvements.

10 years agosh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.
jilles [Wed, 30 Oct 2013 21:36:15 +0000 (21:36 +0000)]
sh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.

If job control is not enabled, background jobs started with  ... &  ignore
SIGINT and SIGQUIT so that they are not affected by such signals that are
intended for the foreground job. However, this should not prevent
reassigning a different action for these signals (as if the shell invocation
inherited these signal actions from its parent).

Austin group issue #751

Example:
  { trap - INT; exec sleep 10; } & wait
A Ctrl+C should terminate the sleep command.

10 years agoQuiesce warnings by updating headerfile includes
sbruno [Wed, 30 Oct 2013 21:18:14 +0000 (21:18 +0000)]
Quiesce warnings by updating headerfile includes

10 years agorevert sign changes to buffers used in invocation of digest_update()
sbruno [Wed, 30 Oct 2013 18:40:55 +0000 (18:40 +0000)]
revert sign changes to buffers used in invocation of digest_update()

Instead, change arguments of internal function digest_update() to accept
signed char arguments.

Remove MAP_FAILED fallback definition and casts of MAP_FAILED.

Thanks to bde@ for looking over this and doing the code analysis.

10 years agoRevert to upstream literal $FreeBSD tag
emaste [Wed, 30 Oct 2013 18:33:40 +0000 (18:33 +0000)]
Revert to upstream literal $FreeBSD tag

radiotap.h in upstream wpa originally came from the FreeBSD CVS
repository.  The copy in vendor/ matched the upstream one; with this
change the contrib copy now matches too.

Discussed with: jhb@

10 years agoRework the imx ehci driver so that it's four separate ehci units rather
ian [Wed, 30 Oct 2013 18:26:18 +0000 (18:26 +0000)]
Rework the imx ehci driver so that it's four separate ehci units rather
than one unit with four busses attached to it.  This allows us to use
existing fdt data which describes separate devices with separate resources.
It also allows any combination of the units to be en/disabled in the
board dts files.

Adjust our dts code to match what's used by linux and u-boot now that
we're structured to do so.

Document lots of interesting stuff learned whiling doing this with a big
comment block in the driver, so I don't have to re-learn it for the next
round of changes.

10 years agoInclude the now missing headers after untangling if.h and if_var.h.
pluknet [Wed, 30 Oct 2013 17:55:31 +0000 (17:55 +0000)]
Include the now missing headers after untangling if.h and if_var.h.
This fixes pc98 build.

Reviewed by: andre

10 years agonclude missing net/if_var.h.
andre [Wed, 30 Oct 2013 16:56:46 +0000 (16:56 +0000)]
nclude missing net/if_var.h.

Due to header pollution it wasn't noticed before.

10 years agoAdd a vendor entry for Freescale Semiconductor.
ian [Wed, 30 Oct 2013 16:34:26 +0000 (16:34 +0000)]
Add a vendor entry for Freescale Semiconductor.

10 years agoAdd missing header.
nwhitehorn [Wed, 30 Oct 2013 15:46:50 +0000 (15:46 +0000)]
Add missing header.

Submitted by: Sean Bruno

10 years agoRevert r257385; was testing a shell script to automatically append the proper
trasz [Wed, 30 Oct 2013 14:48:46 +0000 (14:48 +0000)]
Revert r257385; was testing a shell script to automatically append the proper
"Sponsored by" and failed at error handling.

Sponsored by: The FreeBSD Foundation

10 years agoSponsored by: The FreeBSD Foundation
trasz [Wed, 30 Oct 2013 14:45:02 +0000 (14:45 +0000)]
Sponsored by: The FreeBSD Foundation

10 years agoAdd a "no-op" USB PHY driver for imx-family SoCs. This is used when the
ian [Wed, 30 Oct 2013 14:38:24 +0000 (14:38 +0000)]
Add a "no-op" USB PHY driver for imx-family SoCs.  This is used when the
phy clocks need to be enabled, but no other hardware setup is needed to
make the phy work.

10 years agoAdd some bare-bones support for enabling usb and usbphy clocks. This
ian [Wed, 30 Oct 2013 14:33:15 +0000 (14:33 +0000)]
Add some bare-bones support for enabling usb and usbphy clocks.  This
is temporary code to keep imx development moving forward for now.  In
the long run we need a SoC-independant clock management API.

10 years agoprintf() specifier updates to CAM to handle either 32-bit or 64-bit lun_id_t.
nwhitehorn [Wed, 30 Oct 2013 14:13:15 +0000 (14:13 +0000)]
printf() specifier updates to CAM to handle either 32-bit or 64-bit lun_id_t.

MFC after: 2 weeks

10 years agoAdjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t,
nwhitehorn [Wed, 30 Oct 2013 14:04:47 +0000 (14:04 +0000)]
Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t,
mostly by adjustments to debugging printf() format specifiers. For high
numbered LUNs, also switch to printing them in hex as per SAM-5.

MFC after: 2 weeks

10 years agoBump .Dd after r257379.
trasz [Wed, 30 Oct 2013 11:41:28 +0000 (11:41 +0000)]
Bump .Dd after r257379.

MFC after: 3 days

10 years agoRename '-h' option to '-p', and use "portal" instead of "host" or "address",
trasz [Wed, 30 Oct 2013 11:38:46 +0000 (11:38 +0000)]
Rename '-h' option to '-p', and use "portal" instead of "host" or "address",
in order to be consistent with iSCSI terminology.  Besides, calling the
option '-h' was just wrong.

This changes usage for newly added iscsictl(8), and two newly added
subcommands to ctladm(8).  This breaks POLA between CURRENT and 10,
but since 10.0 has not been released yet, it's still ok to do.

MFC after: 3 days
Discussed with: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoAdd a pkg(7) manpage for bootstrap
bdrewery [Wed, 30 Oct 2013 10:39:14 +0000 (10:39 +0000)]
Add a pkg(7) manpage for bootstrap

Approved by: bapt
MFC after: 2 days

10 years agoAdd a 'pkg bootstrap' command which will bootstrap pkg(8) without
bdrewery [Wed, 30 Oct 2013 10:17:16 +0000 (10:17 +0000)]
Add a 'pkg bootstrap' command which will bootstrap pkg(8) without
forwarding any command to it after installation.

This is useful if the only goal is to install pkg(8) without any extra
output.

Requested by: cperciva
Approved by: bapt
MFC after: 2 days

10 years ago'netstat -i' no longer supports working on a vmcore.
glebius [Wed, 30 Oct 2013 08:13:42 +0000 (08:13 +0000)]
'netstat -i' no longer supports working on a vmcore.

10 years agoFix typo. Sorry!
nwhitehorn [Tue, 29 Oct 2013 23:55:17 +0000 (23:55 +0000)]
Fix typo. Sorry!

10 years agoDon't reference pointer before testing whether it is
delphij [Tue, 29 Oct 2013 22:42:30 +0000 (22:42 +0000)]
Don't reference pointer before testing whether it is
NULL.

Submitted by: Clement Lecigne <clecigne google com>
Reviewed by: grehan
MFC after: 3 days

10 years agoThe ofw_bus() routines invoke the device's parent, not the device itself,
nwhitehorn [Tue, 29 Oct 2013 21:08:20 +0000 (21:08 +0000)]
The ofw_bus() routines invoke the device's parent, not the device itself,
so cease iterating when the parent is NULL, not when the device is.

MFC after: 5 days

10 years agoQuiesce warnings regarding assignement of loop conditionals by implementing
sbruno [Tue, 29 Oct 2013 20:53:09 +0000 (20:53 +0000)]
Quiesce warnings regarding assignement of loop conditionals by implementing
the solution from the compiler to wrap the statement in parens.

10 years agoPanics about how things can't be attached should probably happen in the
nwhitehorn [Tue, 29 Oct 2013 20:38:58 +0000 (20:38 +0000)]
Panics about how things can't be attached should probably happen in the
attach method rather than probe.

Submitted by: brooks

10 years agoFix indentation.
jlh [Tue, 29 Oct 2013 20:38:19 +0000 (20:38 +0000)]
Fix indentation.

MFC after:     4 days

10 years agoQueisce sign errors by using unsigned char * and casting MAP_FAILED as unsigned
sbruno [Tue, 29 Oct 2013 20:38:00 +0000 (20:38 +0000)]
Queisce sign errors by using unsigned char * and casting MAP_FAILED as unsigned
char *

Reviewed by: brooks@

10 years agoQuiesce warning by including appropriate header file
sbruno [Tue, 29 Oct 2013 20:36:04 +0000 (20:36 +0000)]
Quiesce warning by including appropriate header file

10 years agoFix compatibility function for old daily_status_security_${name}_enable
jlh [Tue, 29 Oct 2013 20:35:35 +0000 (20:35 +0000)]
Fix compatibility function for old daily_status_security_${name}_enable
variable

PR:         conf/183137
Reported by:    Adam McDougall <mcdouga9 at egr msu edu>
MFC after: 3 days

10 years agoQueisce warning about empty bodies in these loops by bumping the ;; to the
sbruno [Tue, 29 Oct 2013 20:35:28 +0000 (20:35 +0000)]
Queisce warning about empty bodies in these loops by bumping the ;; to the
next line.

10 years agoTerminate a debug output with a \n.
tuexen [Tue, 29 Oct 2013 20:04:50 +0000 (20:04 +0000)]
Terminate a debug output with a \n.

10 years agoMove all interface queue related structures, macros and definitions
andre [Tue, 29 Oct 2013 17:48:08 +0000 (17:48 +0000)]
Move all interface queue related structures, macros and definitions
from net/if_var to it own new net/ifq.h.

For now net/ifq.h is unconditionally included through net/if_var.h.

This is a mechanical change in preparation to make struct ifnet and
the individual interface queue mechanisms opaque.

Discussed with: glebius
Sponsored by: The FreeBSD Foundation

10 years agoIn r257079, SRCDIR is pointed to ${.CURDIR} when not set. However,
delphij [Tue, 29 Oct 2013 17:46:26 +0000 (17:46 +0000)]
In r257079, SRCDIR is pointed to ${.CURDIR} when not set.  However,
Makefile.inc1 is being called in sub-make's where make(1) would,
by default, implicitly chdir(2) to ${.OBJDIR} before executing any
targets.  This would make some targets, like delete-old, when trying
to derive various variables introduced by change r256921 using
``make -f Makefile.inc1'' that also rely on SRCDIR to fail.

This changeset adds an explicit cd ${.CURDIR} before these unwrapped
make calls, making them in line with the other ones that are already
being wrapped with the explicit chdir's.

Tested by: gjb
MFC after: 5 days

10 years agoMake userland tools honor WITHOUT_PF build option.
glebius [Tue, 29 Oct 2013 17:38:13 +0000 (17:38 +0000)]
Make userland tools honor WITHOUT_PF build option.

Tested by: dt71@gmx.com

10 years agoDon't call arc4random_stir() explicitly. To quote arc4random(3)
delphij [Tue, 29 Oct 2013 17:34:15 +0000 (17:34 +0000)]
Don't call arc4random_stir() explicitly.  To quote arc4random(3)
manual page:

    There is no need to call arc4random_stir() before using
    arc4random() functions family, since they automatically
    initialize themselves.

No objection: des
MFC after: 2 weeks

10 years agoUpdate copyright to include the author of the LPC bridge emulation code.
neel [Tue, 29 Oct 2013 17:31:16 +0000 (17:31 +0000)]
Update copyright to include the author of the LPC bridge emulation code.

10 years agoFix the build of TP-WN1043ND kernel. Provide necessary includes and remove
loos [Tue, 29 Oct 2013 15:45:11 +0000 (15:45 +0000)]
Fix the build of TP-WN1043ND kernel.  Provide necessary includes and remove
unnecessary includes for rtl8366rb.

Approved by: adrian (mentor)

10 years agoImplement extended LUN support. If PIM_EXTLUNS is set by a SIM, encode
nwhitehorn [Tue, 29 Oct 2013 15:36:58 +0000 (15:36 +0000)]
Implement extended LUN support. If PIM_EXTLUNS is set by a SIM, encode
the upper 32-bits of the LUN, if possible, into the target_lun field as
passed directly from the REPORT LUNs response. This allows extended LUN
support to work for all LUNs with zeros in the lower 32-bits, which covers
most addressing modes without breaking KBI. Behavior for drivers not
setting PIM_EXTLUNS is unchanged. No user-facing interfaces are modified.

Extended LUNs are stored with swizzled 16-bit word order so that, for
devices implementing LUN addressing (like SCSI-2), the numerical
representation of the LUN is identical with and without PIM_EXTLUNS. Thus
setting PIM_EXTLUNS keeps most behavior, and user-facing LUN IDs, unchanged.
This follows the strategy used in Solaris. A macro (CAM_EXTLUN_BYTE_SWIZZLE)
is provided to transform a lun_id_t into a uint64_t ordered for the wire.

This is the second part of work for full 64-bit extended LUN support and is
designed to a bridge for stable/10 to the final 64-bit LUN code. The
third and final part will involve widening lun_id_t to 64 bits and will
not be MFCed. This third part will break the KBI but will keep the KPI
unchanged so that all drivers that will care about this can be updated now
and not require code changes between HEAD and stable/10.

Reviewed by: scottl
MFC after: 2 weeks

10 years agoMove /etc/keys to /usr/share/keys where users are less likely to modify them.
bdrewery [Tue, 29 Oct 2013 15:07:54 +0000 (15:07 +0000)]
Move /etc/keys to /usr/share/keys where users are less likely to modify them.

Requested by: secteam (cperciva, des)
Approved by: bapt

10 years agoA last BUS_PROBE_NOWILDCARD. Move setting the postfilter function into the
nwhitehorn [Tue, 29 Oct 2013 14:44:36 +0000 (14:44 +0000)]
A last BUS_PROBE_NOWILDCARD. Move setting the postfilter function into the
attach function probe shouldn't actually set anything up but just bid
on the device.

10 years agoA few last BUS_PROBE_NOWILDCARDs are in order.
nwhitehorn [Tue, 29 Oct 2013 14:32:33 +0000 (14:32 +0000)]
A few last BUS_PROBE_NOWILDCARDs are in order.

10 years agoMore BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba)
nwhitehorn [Tue, 29 Oct 2013 14:19:42 +0000 (14:19 +0000)]
More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba)
resist easy conversion since they implement a great deal of their attach
logic inside probe(). Some of this could be fixed by moving it to attach(),
but some requires something more subtle than BUS_PROBE_NOWILDCARD.

10 years agoFixed typo.
pluknet [Tue, 29 Oct 2013 14:15:09 +0000 (14:15 +0000)]
Fixed typo.

Submitted by: Nikolai Lifanov
Pointyhat: pluknet

10 years agoDevices that rely on hints or identify routines for discovery need to
nwhitehorn [Tue, 29 Oct 2013 14:07:31 +0000 (14:07 +0000)]
Devices that rely on hints or identify routines for discovery need to
return BUS_PROBE_NOWILDCARD from their probe routines to avoid claiming
wildcard devices on their parent bus. Do a sweep through the MIPS tree.

MFC after: 2 weeks

10 years agoHints-only devices should return BUS_PROBE_NOWILDCARD from their probe
nwhitehorn [Tue, 29 Oct 2013 13:52:05 +0000 (13:52 +0000)]
Hints-only devices should return BUS_PROBE_NOWILDCARD from their probe
methods.

10 years agoThese nexus attachments do not execute a real probe and so need
nwhitehorn [Tue, 29 Oct 2013 13:48:41 +0000 (13:48 +0000)]
These nexus attachments do not execute a real probe and so need
BUS_PROBE_NOWILDCARD set.

10 years agoOS X 10.9 added.
pluknet [Tue, 29 Oct 2013 13:44:19 +0000 (13:44 +0000)]
OS X 10.9 added.

10 years agoHints-only devices should have BUS_PROBE_NOWILDCARD set. We probably need
nwhitehorn [Tue, 29 Oct 2013 13:43:09 +0000 (13:43 +0000)]
Hints-only devices should have BUS_PROBE_NOWILDCARD set. We probably need
a better flag for this (in the driver metadata, for example).

10 years agoAdd missing ARMv6 CPU functions to ARM Makefile
zbb [Tue, 29 Oct 2013 13:16:05 +0000 (13:16 +0000)]
Add missing ARMv6 CPU functions to ARM Makefile

Will fix RPI-B kernel build failure since it adds missing
armv6_idcache_wbinv_all which was previously taken from cpufunc_asm_pj4b.S.

Reviewed by: gber

10 years agoFix build. Both clang and gcc are required on pc98.
nyan [Tue, 29 Oct 2013 12:34:11 +0000 (12:34 +0000)]
Fix build.  Both clang and gcc are required on pc98.

X-MFC with: r256915

10 years agoOpps, my kirkwood fix for the dreamplug missed this.
rrs [Tue, 29 Oct 2013 11:28:11 +0000 (11:28 +0000)]
Opps, my kirkwood fix for the dreamplug missed this.

10 years agoUninline inm_lookup_locked(). Now in_var.h doesn't dereference
glebius [Tue, 29 Oct 2013 11:21:31 +0000 (11:21 +0000)]
Uninline inm_lookup_locked(). Now in_var.h doesn't dereference
fields of struct ifnet.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years ago- Provide necessary includes.
glebius [Tue, 29 Oct 2013 11:17:49 +0000 (11:17 +0000)]
- Provide necessary includes.
- Remove unnecessary includes.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoSetting WARNS=6 is useless, as it is already the default
bapt [Tue, 29 Oct 2013 08:55:09 +0000 (08:55 +0000)]
Setting WARNS=6 is useless, as it is already the default

Reported by: Sascha Wildner

10 years agoChange warning level to 6
bapt [Tue, 29 Oct 2013 08:22:38 +0000 (08:22 +0000)]
Change warning level to 6

10 years agoMerge byacc 20130925
bapt [Tue, 29 Oct 2013 08:21:22 +0000 (08:21 +0000)]
Merge byacc 20130925

2 changes:
- Increase default stack-size so that used to be our default stack-size prior byacc import
- fix two loop-limits found by clang 3.3

10 years agoImport byacc version 20130925
bapt [Tue, 29 Oct 2013 08:08:57 +0000 (08:08 +0000)]
Import byacc version 20130925

10 years agoRemove redundand declaration, fixing the build with gcc.
kib [Tue, 29 Oct 2013 07:25:54 +0000 (07:25 +0000)]
Remove redundand declaration, fixing the build with gcc.

Reported and tested by: Michael Butler <imb@protected-networks.net>
Sponsored by: The FreeBSD Foundation
MFC after: 1 month

10 years agoFix regression introduced in r235816.
yongari [Tue, 29 Oct 2013 06:37:27 +0000 (06:37 +0000)]
Fix regression introduced in r235816.
r235816 triggered kernel panic or hang after warm boot.
Don't blindly restore BCE_EMAC_MODE media configuration in
bce_reset().  If driver is about to shutdown it will invoke
bce_reset() which in turn results in restoring BCE_EMAC_MODE
media configuration.  This operation seems to confuse controller
firmware.

Reported by: Paul Herman (herman <> cleverbridge dot com)
Tested by: sbruno, Paul Herman (herman <> cleverbridge dot com)

10 years agoAdd preliminary support for RTL8168EP.
yongari [Tue, 29 Oct 2013 05:37:05 +0000 (05:37 +0000)]
Add preliminary support for RTL8168EP.

Submitted by: Edward O'Callaghan (eocallaghan <> alterapraxis dot com)

10 years agoAdd preliminary support for RTL8168G, RTL8168GU and RTL8411B.
yongari [Tue, 29 Oct 2013 05:30:21 +0000 (05:30 +0000)]
Add preliminary support for RTL8168G, RTL8168GU and RTL8411B.
RTL8168GU has two variants(GMII and MII) but it uses the same chip
revision id.  Driver checks PCI device id of controller and
sets internal capability flag(i.e. jumbo frame and link speed down
in WOL).

H/W donated by: RealTek Semiconductor Corp.

10 years agoAdd support for new Gigabit PHY of RealTek.
yongari [Tue, 29 Oct 2013 05:14:38 +0000 (05:14 +0000)]
Add support for new Gigabit PHY of RealTek.
I don't have a copy of data sheet so I'm not sure exact PHY model
name. Vendor's web page indicates RTL8251 is latest PHY so I used
the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B.

10 years agobinutils/bfd: fix printf-like format strings for "bfd *" arguments
rea [Tue, 29 Oct 2013 04:25:49 +0000 (04:25 +0000)]
binutils/bfd: fix printf-like format strings for "bfd *" arguments

There is a special format argument '%B' that directly handles values
of type 'bfd *', they must be used instead of '%s'.  Manifestations
of this bug can be seen in ld(1) error messages, for example,
  http://lists.freebsd.org/pipermail/freebsd-current/2013-August/043580.html
  http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045404.html

Approved by: dim
MFC after: 2 weeks

10 years agoFix the PLCP lookup code in iwn(4) to base the 11n decision on whether
adrian [Tue, 29 Oct 2013 04:03:00 +0000 (04:03 +0000)]
Fix the PLCP lookup code in iwn(4) to base the 11n decision on whether
the rate is 11n, rather than whether the channel is 11n.

This correctly allows the PLCP lookup code to return the legacy rates
even on an 11n channel.

PR: kern/183430

10 years agoFix an off-by-one error when checking whether a given address is within
markj [Tue, 29 Oct 2013 03:52:05 +0000 (03:52 +0000)]
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in>
Reviewed by: rpaulo
MFC after: 1 week

10 years agoDigi-CCWMX53: enable ffec and uart.
rpaulo [Tue, 29 Oct 2013 03:42:43 +0000 (03:42 +0000)]
Digi-CCWMX53: enable ffec and uart.

10 years agoRevert r257248 and fix the problem in a way that doesn't violate style(9).
markj [Tue, 29 Oct 2013 03:12:31 +0000 (03:12 +0000)]
Revert r257248 and fix the problem in a way that doesn't violate style(9).

Suggested by: jmg

10 years agoRemove unnecessary includes of <machine/pmap.h>
neel [Tue, 29 Oct 2013 02:25:18 +0000 (02:25 +0000)]
Remove unnecessary includes of <machine/pmap.h>

Requested by: alc@

10 years agoReturn NOKEY instead of 0 if there are no more key presses queued. This
nwhitehorn [Tue, 29 Oct 2013 00:53:17 +0000 (00:53 +0000)]
Return NOKEY instead of 0 if there are no more key presses queued. This
worked by accident if and only if akbd was part of a kbdmux (which it
always was in practice).

MFC after: 1 week

10 years agoAdd support for PCI-to-ISA LPC bridge emulation. If the LPC bus is attached
neel [Tue, 29 Oct 2013 00:18:11 +0000 (00:18 +0000)]
Add support for PCI-to-ISA LPC bridge emulation. If the LPC bus is attached
to a virtual machine then we implicitly create COM1 and COM2 ISA devices.

Prior to this change the only way of attaching a COM port to the virtual
machine was by presenting it as a PCI device that is mapped at the legacy
I/O address 0x3F8 or 0x2F8.

There were some issues with the original approach:
- It did not work at all with UEFI because UEFI will reprogram the PCI device
  BARs and remap the COM1/COM2 ports at non-legacy addresses.
- OpenBSD GENERIC kernel does not create a /dev/console because it expects
  the uart device at the legacy 0x3F8/0x2F8 address to be an ISA device.
- It was functional with a FreeBSD guest but caused the console to appear
  on /dev/ttyu2 which was not intuitive.

The uart emulation is now independent of the bus on which it resides. Thus it
is possible to have uart devices on the PCI bus in addition to the legacy
COM1/COM2 devices behind the LPC bus.

The command line option to attach ISA COM1/COM2 ports to a virtual machine is
"-s <bus>,lpc -l com1,stdio".

The command line option to create a PCI-attached uart device is:
"-s <bus>,uart[,stdio]"

The command line option to create PCI-attached COM1/COM2 device is:
"-S <bus>,uart[,stdio]". This style of creating COM ports is deprecated.

Discussed with: grehan
Reviewed by: grehan
Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)

M    share/examples/bhyve/vmrun.sh
AM   usr.sbin/bhyve/legacy_irq.c
AM   usr.sbin/bhyve/legacy_irq.h
M    usr.sbin/bhyve/Makefile
AM   usr.sbin/bhyve/uart_emul.c
M    usr.sbin/bhyve/bhyverun.c
AM   usr.sbin/bhyve/uart_emul.h
M    usr.sbin/bhyve/pci_uart.c
M    usr.sbin/bhyve/pci_emul.c
M    usr.sbin/bhyve/inout.c
M    usr.sbin/bhyve/pci_emul.h
M    usr.sbin/bhyve/inout.h
AM   usr.sbin/bhyve/pci_lpc.c
AM   usr.sbin/bhyve/pci_lpc.h

10 years agoFix condition that determines PMAP_NEEDS_PTE_SYNC value for ARM
zbb [Mon, 28 Oct 2013 23:42:44 +0000 (23:42 +0000)]
Fix condition that determines PMAP_NEEDS_PTE_SYNC value for ARM

Use values of the correct defines to determine statement's result.
ARM_ARCH_ symbols are always defined, hence only values are relevant.

Reviewed by: cognet

10 years agoProvide necessary includes.
glebius [Mon, 28 Oct 2013 23:34:05 +0000 (23:34 +0000)]
Provide necessary includes.

10 years agoProvide necessary includes that before came via if.h.
glebius [Mon, 28 Oct 2013 23:17:41 +0000 (23:17 +0000)]
Provide necessary includes that before came via if.h.

10 years agoClean up a spurious "." in SEE ALSO.
brueffer [Mon, 28 Oct 2013 23:02:12 +0000 (23:02 +0000)]
Clean up a spurious "." in SEE ALSO.

MFC after: 3 days

10 years agoNew sentence -> new line and some mdoc cleanup.
brueffer [Mon, 28 Oct 2013 22:54:28 +0000 (22:54 +0000)]
New sentence -> new line and some mdoc cleanup.

MFC after: 3 days

10 years ago- Provide necessary includes, that before came via if.h pollution.
glebius [Mon, 28 Oct 2013 22:26:03 +0000 (22:26 +0000)]
- Provide necessary includes, that before came via if.h pollution.
- Remove unnecessary ones.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.