]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAdd option USB_HOST_ALIGN=64 for all SoCs that have 64 byte cache lines.
ian [Fri, 7 Feb 2014 04:05:08 +0000 (04:05 +0000)]
Add option USB_HOST_ALIGN=64 for all SoCs that have 64 byte cache lines.

10 years agoRevert r260440. I didn't realize that most of this change was already
ian [Fri, 7 Feb 2014 03:30:16 +0000 (03:30 +0000)]
Revert r260440.  I didn't realize that most of this change was already
in effect due to r250753.  That is sufficient for all SoCs with a 32 byte
cache line size.  Systems with 64 byte cache lines will need the option;
that will be done in a separate commit.

Thanks to loos@ for pointing out r250753.

10 years agoBuild libstand as a 64-bit library on amd64
emaste [Thu, 6 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Build libstand as a 64-bit library on amd64

The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32,
so there is no need to force /usr/lib/libstand.a to be 32-bit.

Sponsored by: The FreeBSD Foundation

10 years agoBuild a 32-bit libstand under sys/boot/
emaste [Thu, 6 Feb 2014 21:54:21 +0000 (21:54 +0000)]
Build a 32-bit libstand under sys/boot/

A 32-bit libstand is needed on 64-bit platforms for use by various
bootloaders.  Previously only the 32-bit version was built, installed as
/usr/lib/libstand.a.

A new 64-bit libstand consumer will arrive in the near future, so move
the bootloader-specific 32-bit version to sys/boot/libstand32/.

Explicitly link against this version in the 32-bit loaders.

Sponsored by: The FreeBSD Foundation

10 years agoUse CAP_EVENT instead of the deprecated CAP_POLL_EVENT.
brueffer [Thu, 6 Feb 2014 21:36:14 +0000 (21:36 +0000)]
Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.

PR: 185382 (based on)
Submitted by: Loganaden Velvindron
Reviewed by: pjd
MFC after: 1 week

10 years agoUse abp_physaddr for the physical address over KERNPHYSADDR. This helps us
andrew [Thu, 6 Feb 2014 20:35:33 +0000 (20:35 +0000)]
Use abp_physaddr for the physical address over KERNPHYSADDR. This helps us
remove the need to load the kernel at a fixed address.

10 years agoFix __syscall on armeb EABI. As it returns a 64-bit value it needs to place
andrew [Thu, 6 Feb 2014 20:26:36 +0000 (20:26 +0000)]
Fix __syscall on armeb EABI. As it returns a 64-bit value it needs to place
32-bit data in r1, not r0. 64-bit data is already packed correctly.

10 years agoMake functions only used in this file static, and remove vfp_enable as it
andrew [Thu, 6 Feb 2014 20:23:35 +0000 (20:23 +0000)]
Make functions only used in this file static, and remove vfp_enable as it
is unused.

10 years agoPass the kernel physical address to initarm through the boot param struct.
andrew [Thu, 6 Feb 2014 20:17:58 +0000 (20:17 +0000)]
Pass the kernel physical address to initarm through the boot param struct.

10 years agoAdd a new sysctl, dev.cxgbe.N.rsrv_noflow, and a companion tunable,
scottl [Thu, 6 Feb 2014 18:40:38 +0000 (18:40 +0000)]
Add a new sysctl, dev.cxgbe.N.rsrv_noflow, and a companion tunable,
hw.cxgbe.rsrv_noflow.  When set, queue 0 of the port is reserved for
TX packets without a flowid.  The hash value of packets with a flowid
is bumped up by 1.  The intent is to provide a private queue for
link-level packets like LACP that is unlikely to overflow or suffer
deep queue latency.

Reviewed by: np
Obtained from: Netflix
MFC after: 3 days

10 years agoLet units deal with Gas Mark and Stufe.
dwmalone [Thu, 6 Feb 2014 15:55:29 +0000 (15:55 +0000)]
Let units deal with Gas Mark and Stufe.

10 years agoAdd vt_set_border function to help to change border color.
ray [Thu, 6 Feb 2014 15:16:38 +0000 (15:16 +0000)]
Add vt_set_border function to help to change border color.
Use vt_set_border to reset color after font changed (different font size may
change border sizes)

Sponsored by: The FreeBSD Foundation

10 years agoAdd two new vt(9) driver methods: vd_drawrect and vd_setpixel.
ray [Thu, 6 Feb 2014 15:12:44 +0000 (15:12 +0000)]
Add two new vt(9) driver methods: vd_drawrect and vd_setpixel.
Implement vd_drawrect and vd_setpixel for vt_fb driver.

Sponsored by: The FreeBSD Foundation

10 years agoFix typo.
ray [Thu, 6 Feb 2014 13:28:06 +0000 (13:28 +0000)]
Fix typo.

Pointed by: Ronald Klop
Pointy hat: ray

Sponsored by: The FreeBSD Foundation

10 years agoAdd test case for kern/181741. Right now test fails.
glebius [Thu, 6 Feb 2014 13:18:10 +0000 (13:18 +0000)]
Add test case for kern/181741. Right now test fails.

PR: 181741
Sponsored by: Nginx, Inc.

10 years agoAdd a manpage for the urndis driver.
brueffer [Thu, 6 Feb 2014 12:43:06 +0000 (12:43 +0000)]
Add a manpage for the urndis driver.

Obtained from: OpenBSD

10 years agoFix crash on load of bigger font. It reduce width and height of terminal, but
ray [Thu, 6 Feb 2014 11:38:39 +0000 (11:38 +0000)]
Fix crash on load of bigger font. It reduce width and height of terminal, but
current cursor position stay bigger that terminal window size, so next input
triggers assert.

Reported by: emaste

Sponsored by: The FreeBSD Foundation

10 years agoRegenerate usb.conf
hselasky [Thu, 6 Feb 2014 10:52:51 +0000 (10:52 +0000)]
Regenerate usb.conf

MFC after: 2 weeks

10 years agoResolve probe conflict for now.
hselasky [Thu, 6 Feb 2014 10:47:47 +0000 (10:47 +0000)]
Resolve probe conflict for now.

MFC after: 2 weeks

10 years agoFix kernelbuild when full debugging features are enabled.
hselasky [Thu, 6 Feb 2014 10:38:40 +0000 (10:38 +0000)]
Fix kernelbuild when full debugging features are enabled.

Pointyhat: hselasky @
MFC after: 2 weeks

10 years agoAdd -p to the example (why isn't this the default?)
des [Thu, 6 Feb 2014 09:57:27 +0000 (09:57 +0000)]
Add -p to the example (why isn't this the default?)

MFC after: 1 week

10 years agoImport USB RNDIS driver to FreeBSD from OpenBSD.
hselasky [Thu, 6 Feb 2014 08:47:14 +0000 (08:47 +0000)]
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

Obtained from: OpenBSD
Requested by: eadler @
MFC after: 2 weeks

10 years agoMake CTL block backend return proper error code for operations unsupposed
mav [Thu, 6 Feb 2014 03:54:58 +0000 (03:54 +0000)]
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

MFC after: 2 weeks

10 years agocxgbe(4): Use the rx channel map (instead of the tx channel map) as the
np [Thu, 6 Feb 2014 03:30:12 +0000 (03:30 +0000)]
cxgbe(4): Use the rx channel map (instead of the tx channel map) as the
congestion channel map.

MFC after: 1 week

10 years agocxgbe(4): The T5 allows for a different freelist starvation threshold
np [Thu, 6 Feb 2014 03:21:43 +0000 (03:21 +0000)]
cxgbe(4): The T5 allows for a different freelist starvation threshold
for queues with buffer packing.  Use the correct value to calculate a
freelist's low water mark.

MFC after: 1 week

10 years agoAdd support for MegaRAID Fury cards. The main change needed to boot from a
markj [Thu, 6 Feb 2014 02:54:04 +0000 (02:54 +0000)]
Add support for MegaRAID Fury cards. The main change needed to boot from a
9341-4i controller was to ensure that scatter/gather lists are ended with
an end-of-list marker. Both the mrsas and Linux megaraid_sas drivers use
this marker with Invader cards as well, so we do the same thing, though
it is apparently not strictly necessary.

Reviewed by: ambrisko
Tested by: ambrisko (Invader card)
MFC after: 3 weeks
Sponsored by: Sandvine Inc.

10 years agocxgbetool: Display the congestion channel map in hex.
np [Thu, 6 Feb 2014 02:36:12 +0000 (02:36 +0000)]
cxgbetool: Display the congestion channel map in hex.

MFC after: 1 week

10 years agocxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.
np [Thu, 6 Feb 2014 02:34:29 +0000 (02:34 +0000)]
cxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.

MFC after: 3 days

10 years ago- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
marius [Wed, 5 Feb 2014 23:13:40 +0000 (23:13 +0000)]
- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8111B. This
  makes reception of packets work with the RTL8168G (HW rev. 0x4c000000) in
  my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

MFC after: 5 days

10 years agoSet the malloc alignment to 64 bytes on platforms that use the U-Boot API
ian [Wed, 5 Feb 2014 22:53:58 +0000 (22:53 +0000)]
Set the malloc alignment to 64 bytes on platforms that use the U-Boot API
device drivers.  Recent versions of u-boot run with the MMU enabled, and
require DMA-based I/O to be aligned to cache line boundaries.

These changes are based on a patch originally submitted by Juergen Weiss,
but I reworked them and thus any problems are purely my fault.

Submitted by: "Juergen Weiss" <weiss@uni-mainz.de>
Reviewed by: imp, nwhitehorn, jhb

10 years agoTry to make the style used here consistent.
marius [Wed, 5 Feb 2014 22:27:49 +0000 (22:27 +0000)]
Try to make the style used here consistent.

10 years agoAdd bus space barriers for page switches missed in r260050.
marius [Wed, 5 Feb 2014 22:21:08 +0000 (22:21 +0000)]
Add bus space barriers for page switches missed in r260050.

10 years agoAdd two tunables to ignore certain firmware-assigned resources. These
jhb [Wed, 5 Feb 2014 20:52:12 +0000 (20:52 +0000)]
Add two tunables to ignore certain firmware-assigned resources.  These
are mostly useful for debugging.
- hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
  set.
- hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
  bridge I/O windows when set.

MFC after: 1 week

10 years agoSimplify pci_reserve_map() by calling resource_list_reserve() to allocate
jhb [Wed, 5 Feb 2014 20:47:49 +0000 (20:47 +0000)]
Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
the resource after creating a resource list entry rather than reimplementing
it by hand.

MFC after: 1 week

10 years agoPrint the MD5 signature information introduced in r221023 in the
bz [Wed, 5 Feb 2014 20:43:03 +0000 (20:43 +0000)]
Print the MD5 signature information introduced in r221023 in the
TCP statistics output.

MFC after: 3 weeks

10 years agoProperly set the alignment flags when allocating the initial range for a
jhb [Wed, 5 Feb 2014 19:24:16 +0000 (19:24 +0000)]
Properly set the alignment flags when allocating the initial range for a
BAR.  This only really matters when pci_do_realloc_bars is enabled and
the initial allocation of a specific range fails.

MFC after: 1 week

10 years agoFix a typo.
jhb [Wed, 5 Feb 2014 19:23:05 +0000 (19:23 +0000)]
Fix a typo.

10 years agoDescribe the use of a freebsd-boot GPT partition, brought up by Scot
wblock [Wed, 5 Feb 2014 18:26:30 +0000 (18:26 +0000)]
Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.

MFC after: 3 days

10 years agoAdd files to remove WITHOUT_NIS
antoine [Wed, 5 Feb 2014 18:16:18 +0000 (18:16 +0000)]
Add files to remove WITHOUT_NIS

PR: 186412

10 years agoDrop the 3rd clause from all 3 clause BSD licenses where I am the sole
jhb [Wed, 5 Feb 2014 18:13:27 +0000 (18:13 +0000)]
Drop the 3rd clause from all 3 clause BSD licenses where I am the sole
holder to convert them to 2 clause BSD licenses.

MFC after: 1 week

10 years agoMove a warning about LINT pins configured with a level trigger under
jhb [Wed, 5 Feb 2014 18:11:46 +0000 (18:11 +0000)]
Move a warning about LINT pins configured with a level trigger under
bootverbose.

10 years ago- Update a few places to account for va_copy().
jhb [Wed, 5 Feb 2014 17:41:00 +0000 (17:41 +0000)]
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

MFC after: 1 week

10 years agoSimilar to r130943 for cdboot.S, update the license on this file to a
jhb [Wed, 5 Feb 2014 17:22:54 +0000 (17:22 +0000)]
Similar to r130943 for cdboot.S, update the license on this file to a
stock 2-clause BSD license.

MFC after: 1 week

10 years agoAdd the missing ')' at end of sentence. Reword it to use a more common
loos [Wed, 5 Feb 2014 17:08:55 +0000 (17:08 +0000)]
Add the missing ')' at end of sentence.  Reword it to use a more common
idiom.

Reviewed by: imp (on freebsd-embedded@)
Approved by: adrian (mentor, implicit)

10 years agoFix I/O freezes in some cases, caused by r257916.
mav [Wed, 5 Feb 2014 16:22:02 +0000 (16:22 +0000)]
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.

MFC after: 3 days

10 years agoUse the DELTA() macro to tidy the server-side interval stats code a bit.
jhb [Wed, 5 Feb 2014 14:44:59 +0000 (14:44 +0000)]
Use the DELTA() macro to tidy the server-side interval stats code a bit.

MFC after: 2 weeks

10 years agoMove Open Firmware device root on PowerPC, ARM, and MIPS systems to
nwhitehorn [Wed, 5 Feb 2014 14:44:22 +0000 (14:44 +0000)]
Move Open Firmware device root on PowerPC, ARM, and MIPS systems to
a sub-node of nexus (ofwbus) rather than direct attach under nexus. This
fixes FDT on x86 and will make coexistence with ACPI on ARM systems easier.
SPARC is unchanged.

Reviewed by: imp, ian

10 years agoPartially revert r52493 and change client side interval statistics to
jhb [Wed, 5 Feb 2014 14:33:22 +0000 (14:33 +0000)]
Partially revert r52493 and change client side interval statistics to
report the actual number of RPCs issued, not the theoretical number
that would be issued if all caching was disabled.

Reviewed by: rmacklem
MFC after: 2 weeks

10 years agoAdd an example of the most common use case.
des [Wed, 5 Feb 2014 09:28:02 +0000 (09:28 +0000)]
Add an example of the most common use case.

MFC after: 1 week

10 years agoUse system macro instead of own hand-rolled one.
hselasky [Wed, 5 Feb 2014 08:29:24 +0000 (08:29 +0000)]
Use system macro instead of own hand-rolled one.

10 years agoAdd more quirks for making builtin audio speakers work with more
hselasky [Wed, 5 Feb 2014 08:27:02 +0000 (08:27 +0000)]
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from: Linux
MFC after: 1 week

10 years agoCorrect setting R92C_TXAGC_MCS11_MCS08 register.
kevlo [Wed, 5 Feb 2014 08:09:02 +0000 (08:09 +0000)]
Correct setting R92C_TXAGC_MCS11_MCS08 register.

10 years agoFix a regression issue. Contiguous single segment allocations above
hselasky [Wed, 5 Feb 2014 08:02:52 +0000 (08:02 +0000)]
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.

MFC after: 2 days

10 years agoAdd support for FreeBSD/i386 guests under bhyve.
jhb [Wed, 5 Feb 2014 04:39:03 +0000 (04:39 +0000)]
Add support for FreeBSD/i386 guests under bhyve.
- Similar to the hack for bootinfo32.c in userboot, define
  _MACHINE_ELF_WANT_32BIT in the load_elf32 file handlers in userboot.
  This allows userboot to load 32-bit kernels and modules.
- Copy the SMAP generation code out of bootinfo64.c and into its own
  file so it can be shared with bootinfo32.c to pass an SMAP to the i386
  kernel.
- Use uint32_t instead of u_long when aligning module metadata in
  bootinfo32.c in userboot, as otherwise the metadata used 64-bit
  alignment which corrupted the layout.
- Populate the basemem and extmem members of the bootinfo struct passed
  to 32-bit kernels.
- Fix the 32-bit stack in userboot to start at the top of the stack
  instead of the bottom so that there is room to grow before the
  kernel switches to its own stack.
- Push a fake return address onto the 32-bit stack in addition to the
  arguments normally passed to exec() in the loader.  This return
  address is needed to convince recover_bootinfo() in the 32-bit
  locore code that it is being invoked from a "new" boot block.
- Add a routine to libvmmapi to setup a 32-bit flat mode register state
  including a GDT and TSS that is able to start the i386 kernel and
  update bhyveload to use it when booting an i386 kernel.
- Use the guest register state to determine the CPU's current instruction
  mode (32-bit vs 64-bit) and paging mode (flat, 32-bit, PAE, or long
  mode) in the instruction emulation code.  Update the gla2gpa() routine
  used when fetching instructions to handle flat mode, 32-bit paging, and
  PAE paging in addition to long mode paging.  Don't look for a REX
  prefix when the CPU is in 32-bit mode, and use the detected mode to
  enable the existing 32-bit mode code when decoding the mod r/m byte.

Reviewed by: grehan, neel
MFC after: 1 month

10 years agoAdd support for emulating the byte move and zero extend instructions:
tychon [Wed, 5 Feb 2014 02:01:08 +0000 (02:01 +0000)]
Add support for emulating the byte move and zero extend instructions:
"mov r/m8, r32" and "mov r/m8, r64".

Approved by: neel (co-mentor)

10 years agolibc/net: fix a portability issue
eadler [Wed, 5 Feb 2014 02:00:31 +0000 (02:00 +0000)]
libc/net: fix a portability issue

* POSIX does not require socklen_t to be  unsigned

Submitted by: bde
MFC After: 1 week (with r261454)

10 years agoFix ! by not clearing not at the bottom of the loop.
imp [Wed, 5 Feb 2014 00:26:11 +0000 (00:26 +0000)]
Fix ! by not clearing not at the bottom of the loop.
Add a blank line

Submitted by: bde (blank line)

10 years agoAdd a license (1) and do some cleanup.
brueffer [Tue, 4 Feb 2014 22:20:17 +0000 (22:20 +0000)]
Add a license (1) and do some cleanup.

Approved by: Stefan Bethke (original author, by private mail) (1)
MFC after: 1 week

10 years agoFix installations that use kernels without CAPABILITIES support.
pjd [Tue, 4 Feb 2014 21:48:09 +0000 (21:48 +0000)]
Fix installations that use kernels without CAPABILITIES support.

Approved by: des

10 years agoProtect ping(8) using Capsicum and Casper. This is protection against malicious
pjd [Tue, 4 Feb 2014 21:43:53 +0000 (21:43 +0000)]
Protect ping(8) using Capsicum and Casper. This is protection against malicious
network packets that we parse and not against local users trying to gain root
access through ping's set-uid bit - this is handled by dropping privileges very
early in ping.

Submitted by: Mikhail <mp@lenta.ru>

10 years agoAbort when firmware isn't present in R600+ models.
rmh [Tue, 4 Feb 2014 21:23:12 +0000 (21:23 +0000)]
Abort when firmware isn't present in R600+ models.

More details at:
http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux/debian/patches/bugfix/all/radeon-firmware-is-required-for-drm-and-kms-on-r600-onward.patch?revision=20909&view=co

Reviewed by: dumbbell
MFC after: 1 week

10 years agoUnbreak mount_udf by passing the correct iovec length into
brueffer [Tue, 4 Feb 2014 21:15:15 +0000 (21:15 +0000)]
Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247856.

PR: bin/186193
Submitted by: Arnot Belohlavek
MFC after: 1 week

10 years agoUse right buffer to print to.
ed [Tue, 4 Feb 2014 20:52:33 +0000 (20:52 +0000)]
Use right buffer to print to.

PR: kern/176597
Submitted by: Christoph Mallon <christoph mallon gmx de>
MFC after: 2 weeks

10 years agoActually install acpi_rapidstart.4.
brueffer [Tue, 4 Feb 2014 18:54:33 +0000 (18:54 +0000)]
Actually install acpi_rapidstart.4.

MFC after: 1 week

10 years agoImplement the '!' operator for files* files. It means 'include this
imp [Tue, 4 Feb 2014 18:28:58 +0000 (18:28 +0000)]
Implement the '!' operator for files* files. It means 'include this
only if the specified option is NOT specified.' Bump version because
old config won't be able to cope with files* files that have this
construct in them.

10 years agoBump the version of config to the latest (3 year old, so upgrade
imp [Tue, 4 Feb 2014 18:24:25 +0000 (18:24 +0000)]
Bump the version of config to the latest (3 year old, so upgrade
worries are long past). Also remove redundant MACHINE= declarations
and passing MACHINE/MACHINE_ARCH to module builds. That's now done in
common code.

10 years agoAdd a tunable "hw.mfi.mrsas_enable" to allow mfi(4) to drop priority and
ambrisko [Tue, 4 Feb 2014 17:35:41 +0000 (17:35 +0000)]
Add a tunable "hw.mfi.mrsas_enable" to allow mfi(4) to drop priority and
allow mrsas(4) from LSI to attach to newer LSI cards that are support by
mrsas(4).  If mrsas(4) is not loaded into the system at boot then mfi(4)
will always attach.  If a modified mrsas(4) is loaded in the system.  That
modification is return "-30" in it's probe since that is between
BUS_PROBE_DEFAULT and BUS_PROBE_LOW_PRIORITY.

This option is controller by a new probe flag "MFI_FLAGS_MRSAS" in mfi_ident
that denotes cards that should work with mrsas(4).  New entries that should
have this option.

This is the first step to get mrsas(4) checked into FreeBSD and to avoid
collision with people that use mrsas(4) from LSI.  Since mfi(4) takes
priority, then mrsas(4) users need to rebuild GENERIC.  Using the
.disabled="1" method doesn't work since that blocks attaching and the
probe gave it to mfi(4).

Discussed with: LSI (Kashyap Desai)

10 years agoAdd qlxgbe(4) and qlxge(4) to the hardware notes.
brueffer [Tue, 4 Feb 2014 12:34:08 +0000 (12:34 +0000)]
Add qlxgbe(4) and qlxge(4) to the hardware notes.

MFC after: 1 week

10 years agoRegenerate usb.conf
hselasky [Tue, 4 Feb 2014 09:11:50 +0000 (09:11 +0000)]
Regenerate usb.conf

MFC after: 2 days

10 years agoPass MACHINE and MACHINE_ARCH down into the modules
imp [Tue, 4 Feb 2014 05:35:04 +0000 (05:35 +0000)]
Pass MACHINE and MACHINE_ARCH down into the modules

10 years agoRemove trailing tabs causing false grep positives
imp [Tue, 4 Feb 2014 05:26:12 +0000 (05:26 +0000)]
Remove trailing tabs causing false grep positives

10 years agos/standard/optional/ for ohci and echi, since these files are optional
imp [Tue, 4 Feb 2014 05:21:57 +0000 (05:21 +0000)]
s/standard/optional/ for ohci and echi, since these files are optional
and not standard.

10 years agoAdd a prior version compat define.
imp [Tue, 4 Feb 2014 03:59:35 +0000 (03:59 +0000)]
Add a prior version compat define.

10 years agolibc/net: Fix some issues in inet6_opt_init() (from RFC 3542):
eadler [Tue, 4 Feb 2014 03:01:33 +0000 (03:01 +0000)]
libc/net: Fix some issues in inet6_opt_init() (from RFC 3542):

* The RFC says (in section 10.1) that only when extbuf is not NULL,
extlen shall be checked, so don't perform this check when NULL is
passed.

* socklen_t is unsigned, so checking extlen for less than zero is
not needed.

Submitted by: swildner@dragonflybsd.org
Reviewed by: Mark Martinec <Mark.Martinec+freebsd@ijs.si>
Reviewed by: hrs
Obtained by: DragonFlyBSD

10 years agoAvoid doing unnecessary nested TLB invalidations.
neel [Tue, 4 Feb 2014 02:45:08 +0000 (02:45 +0000)]
Avoid doing unnecessary nested TLB invalidations.

Prior to this change the cached value of 'pm_eptgen' was tracked per-vcpu
and per-hostcpu. In the degenerate case where 'N' vcpus were sharing
a single hostcpu this could result in 'N - 1' unnecessary TLB invalidations.
Since an 'invept' invalidates mappings for all VPIDs the first 'invept'
is sufficient.

Fix this by moving the 'eptgen[MAXCPU]' array from 'vmxctx' to 'struct vmx'.

If it is known that an 'invept' is going to be done before entering the
guest then it is safe to skip the 'invvpid'. The stat VPU_INVVPID_SAVED
counts the number of 'invvpid' invalidations that were avoided because
they were subsumed by an 'invept'.

Discussed with: grehan

10 years agoFix lock acquisition in case no request space available, missed in r260097.
mav [Tue, 4 Feb 2014 00:00:01 +0000 (00:00 +0000)]
Fix lock acquisition in case no request space available, missed in r260097.

MFC after: 3 days

10 years agoFix a typo.
brueffer [Mon, 3 Feb 2014 22:16:46 +0000 (22:16 +0000)]
Fix a typo.

MFC after: 1 week

10 years agoConvert the loop by gotos into a for loop to improve readability. I
imp [Mon, 3 Feb 2014 19:14:36 +0000 (19:14 +0000)]
Convert the loop by gotos into a for loop to improve readability. I
did this only with the inner loop for the token parsing, and not the
outer loop which was understandable enough when the extra layers of
looping went away...

10 years agoFix a bug introduced in r261437 that failed to honor "optional
imp [Mon, 3 Feb 2014 19:10:33 +0000 (19:10 +0000)]
Fix a bug introduced in r261437 that failed to honor "optional
profiling-routine" to work, since profiling-routine is not really an
option or a device, but a special case elsewhere in the code.

10 years agoSlight cleanup to the error messaging to compress code vertically...
imp [Mon, 3 Feb 2014 18:56:41 +0000 (18:56 +0000)]
Slight cleanup to the error messaging to compress code vertically...

10 years agoOpenSSH been updated to 6.5p1.
skreuzer [Mon, 3 Feb 2014 18:44:36 +0000 (18:44 +0000)]
OpenSSH been updated to 6.5p1.
bmake has been updated to version 20140101.

Approved by: hrs (mentor)

10 years agoBetter error messages when EOF is hit in the middle of a phrase.
imp [Mon, 3 Feb 2014 18:31:51 +0000 (18:31 +0000)]
Better error messages when EOF is hit in the middle of a phrase.

10 years agoFix a logic error. Because of this inflateReset() wasn't being called and
loos [Mon, 3 Feb 2014 17:25:36 +0000 (17:25 +0000)]
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

Reviewed by: ray
Approved by: adrian (mentor)

10 years agoRemove some unnecessary code. The offsets read from the first block are
loos [Mon, 3 Feb 2014 17:21:36 +0000 (17:21 +0000)]
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

Reviewed by: ray
Approved by: adrian (mentor)

10 years agoMove the check for standard keyword + optional inclusion specifier to
imp [Mon, 3 Feb 2014 16:54:53 +0000 (16:54 +0000)]
Move the check for standard keyword + optional inclusion specifier to
its proper location. Otherwise you could have 'file.c standard pci'
without an error. This construct isn't in our tree, and has no well
defined meaning.

10 years agoDon't believe we have a requirement until after we've checked all the
imp [Mon, 3 Feb 2014 16:47:10 +0000 (16:47 +0000)]
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in
weird corner cases, but should otherwise be a nop.

10 years agoIn the 17 years since r30796, the mandatory keyword has never been used
imp [Mon, 3 Feb 2014 16:46:01 +0000 (16:46 +0000)]
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.

10 years agoSlightly deobfuscate read_file() and likely pessimize the runtime
imp [Mon, 3 Feb 2014 15:10:44 +0000 (15:10 +0000)]
Slightly deobfuscate read_file() and likely pessimize the runtime
performance by epsilon.
(Translation: elminate bogus macros that hid 'returns' making it hard
 to read and moved a block of code inline rather than at the end of the
 fuction where it was effectively a 'gosub' kind of goto).

10 years agoFix the definition of hg_cmd.
rpaulo [Mon, 3 Feb 2014 08:15:09 +0000 (08:15 +0000)]
Fix the definition of hg_cmd.

MFC after: 3 days

10 years agoApply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
bapt [Mon, 3 Feb 2014 08:13:44 +0000 (08:13 +0000)]
Apply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
parsing YAML tags.
Also apply a patch for hardenning the guards againt the issue

The only user in base in yaml is pkg(7) which uses the library a way that it is not affected

Submitted by: delphij
Obtained from: https://bugzilla.redhat.com/show_bug.cgi?id=1033990
MFC after: 3 days
Security: CVE-2013-6393

10 years agodhclient: change the pidfile's permissions to 644
eadler [Mon, 3 Feb 2014 04:22:29 +0000 (04:22 +0000)]
dhclient: change the pidfile's permissions to 644

This change permits non-root users to determine if dhclient is running
('service dhclient status wlan0').

Discussed with: mjg, cperciva

10 years agoSort the list.
ian [Mon, 3 Feb 2014 02:56:23 +0000 (02:56 +0000)]
Sort the list.

10 years agoAdd the imx sdhci controller.
ian [Mon, 3 Feb 2014 02:52:07 +0000 (02:52 +0000)]
Add the imx sdhci controller.

10 years agoMake gas accept any PowerPC instruction by default. This is a local change,
jhibbits [Mon, 3 Feb 2014 01:45:07 +0000 (01:45 +0000)]
Make gas accept any PowerPC instruction by default.  This is a local change,
and will not be submitted upstream.

Discussed with: nwhitehorn,rdivacky
MFC after: 1 month

10 years agoAdd driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
jhibbits [Mon, 3 Feb 2014 01:22:50 +0000 (01:22 +0000)]
Add driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
and iBooks.  Original work by andreast.

MFC after: 1 month

10 years agoAdd missing file to Makefile.
jhibbits [Mon, 3 Feb 2014 01:16:32 +0000 (01:16 +0000)]
Add missing file to Makefile.

MFC after: 1 month
X-MFC-with: 261342

10 years agoOnly use the CPU ID register if SMP is defined. Some non-MPCore armv6 cpu,
cognet [Sun, 2 Feb 2014 23:29:51 +0000 (23:29 +0000)]
Only use the CPU ID register if SMP is defined. Some non-MPCore armv6 cpu,
such as the one found in the RPi, don't have it, and just hang when we try
to access it.

10 years agoInvalidate cachelines for bounce pages on PREREAD too, there may still be
cognet [Sun, 2 Feb 2014 22:26:30 +0000 (22:26 +0000)]
Invalidate cachelines for bounce pages on PREREAD too, there may still be
stale entries from a previous transfer.

10 years agoAdd missing semicolon.
ian [Sun, 2 Feb 2014 21:44:04 +0000 (21:44 +0000)]
Add missing semicolon.

10 years agoo Add prototype for tcon_bypass() used by dcu4
br [Sun, 2 Feb 2014 21:10:40 +0000 (21:10 +0000)]
o Add prototype for tcon_bypass() used by dcu4
o Add register definition