]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFV (r255364): move the code around in preparation for Nummularia.
des [Sat, 7 Sep 2013 18:46:35 +0000 (18:46 +0000)]
MFV (r255364): move the code around in preparation for Nummularia.

10 years agoNetlogic XLP network driver update
jchandra [Sat, 7 Sep 2013 18:26:16 +0000 (18:26 +0000)]
Netlogic XLP network driver update

Changes are to
- update board and network interface detection logic
- fix reading onboard CPLD in little-endian config
- print NAE frequency conrrectly for Bx chips
- update XAUI config to disable Rx/Tx until interface is up

Submitted by: Venkatesh J V <venkatesh.vivekanandan@broadcom.com>

10 years agoUse a better version of memcpy/bcopy for mips kernel.
jchandra [Sat, 7 Sep 2013 16:31:30 +0000 (16:31 +0000)]
Use a better version of memcpy/bcopy for mips kernel.

Use a variant of mips libc memcpy for kernel. This implementation uses
64-bit operations when compiled for 64-bit, and is significantly faster
in that case.

Submitted by: Tanmay Jagdale <tanmayj@broadcom.com>

10 years agoPrepare for OpenPAM Nummularia by reorganizing to match its new directory
des [Sat, 7 Sep 2013 16:10:15 +0000 (16:10 +0000)]
Prepare for OpenPAM Nummularia by reorganizing to match its new directory
structure.

10 years agoMicro-optimize cpu_search(), allowing compiler to use more efficient inline
mav [Sat, 7 Sep 2013 15:16:30 +0000 (15:16 +0000)]
Micro-optimize cpu_search(), allowing compiler to use more efficient inline
ffsl() implementation, when it is available, instead of homegrown iteration.

On dual-E5645 amd64 system (2x6x2 cores) under heavy I/O load that reduces
time spent inside cpu_search() from 19% to 13%, while IOPS increased by 5%.

10 years agoBring in some behind-the-scenes development, mainly By Arthur Mesh,
markm [Sat, 7 Sep 2013 14:15:13 +0000 (14:15 +0000)]
Bring in some behind-the-scenes development, mainly By Arthur Mesh,
the rest by me.

o Namespace cleanup; the Yarrow name is now restricted to where it
  really applies; this is in anticipation of being augmented or
  replaced by Fortuna in the future. Fortuna is mentioned, but behind
  #if logic, and is ignorable for now.

o The harvest queue is pulled out into its own modules.

o Entropy harvesting is emproved, both by being made more conservative,
  and by separating (a bit!) the sources. Available entropy crumbs are
  marginally improved.

o Selection of sources is made clearer. With recent revelations,
  this will receive more work in the weeks and months to come.

Submitted by:  Arthur Mesh (partly) <arthurmesh@gmail.com>

10 years agoOn ARM EABI double precision floating point values are stored in the
andrew [Sat, 7 Sep 2013 14:04:10 +0000 (14:04 +0000)]
On ARM EABI double precision floating point values are stored in the
endian the CPU is in, i.e. little-endian on most ARM cores.

This allows ARMv4 and ARMv5 boards to boot with the ARM EABI.

10 years agoDon't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().
davide [Sat, 7 Sep 2013 13:50:13 +0000 (13:50 +0000)]
Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().

Reviewed by: kib

10 years ago- Use make_dev_credf(MAKEDEV_REF) instead of the race-prone make_dev()+
davide [Sat, 7 Sep 2013 13:45:44 +0000 (13:45 +0000)]
- Use make_dev_credf(MAKEDEV_REF) instead of the race-prone make_dev()+
dev_ref() in the clone handlers that still use it.
- Don't set SI_CHEAPCLONE flag, it's not used anywhere neither in devfs
(for anything real)

Reviewed by: kib

10 years agowait(2): Add some possible caveats to standards section.
jilles [Sat, 7 Sep 2013 11:41:52 +0000 (11:41 +0000)]
wait(2): Add some possible caveats to standards section.

10 years agoDo not try to remove directories that are part of BSD.include.dist
antoine [Sat, 7 Sep 2013 11:02:38 +0000 (11:02 +0000)]
Do not try to remove directories that are part of BSD.include.dist

10 years agoRevert parts of r245132 and r245175. We don't need to write to the
hselasky [Sat, 7 Sep 2013 10:42:00 +0000 (10:42 +0000)]
Revert parts of r245132 and r245175. We don't need to write to the
IMAN register to clear the pending interrupt status bits. This patch
tries to solve problems seen on the MacBook Air, as reported by
Johannes Lundberg <johannes@brilliantservice.co.jp>

MFC after: 1 week

10 years agoFix !INET6 build.
glebius [Sat, 7 Sep 2013 09:47:18 +0000 (09:47 +0000)]
Fix !INET6 build.

10 years agoAdd more leftovers from gcc.
glebius [Sat, 7 Sep 2013 09:45:43 +0000 (09:45 +0000)]
Add more leftovers from gcc.

10 years agoMFC
markm [Sat, 7 Sep 2013 07:58:29 +0000 (07:58 +0000)]
MFC

10 years agoFix of r255318: move sf_buf_alloc()/sf_buf_free() out of #ifdef
glebius [Sat, 7 Sep 2013 07:56:55 +0000 (07:56 +0000)]
Fix of r255318: move sf_buf_alloc()/sf_buf_free() out of #ifdef
ARM_USE_SMALL_ALLOC.

10 years agoAdd a vtprintf. It is to tprintf what vprintf is to printf.
np [Sat, 7 Sep 2013 07:53:21 +0000 (07:53 +0000)]
Add a vtprintf.  It is to tprintf what vprintf is to printf.

Reviewed by: kib

10 years agoAdd note in UPDATING about the no-gcc-by-default switch.
theraven [Sat, 7 Sep 2013 07:26:51 +0000 (07:26 +0000)]
Add note in UPDATING about the no-gcc-by-default switch.

10 years agoDisable USB 3.0 streams mode by default, hence not all XHCI chipsets
hselasky [Sat, 7 Sep 2013 06:53:59 +0000 (06:53 +0000)]
Disable USB 3.0 streams mode by default, hence not all XHCI chipsets
implement it to avoid undefined behaviour.

10 years ago- Begin sentence on a new line.
joel [Sat, 7 Sep 2013 05:44:53 +0000 (05:44 +0000)]
- Begin sentence on a new line.
- Minor language fixes.

10 years agoAllocate VPIDs by using the unit number allocator to keep do the bookkeeping.
neel [Sat, 7 Sep 2013 05:30:34 +0000 (05:30 +0000)]
Allocate VPIDs by using the unit number allocator to keep do the bookkeeping.

Also deal with VPID exhaustion by allocating out of a reserved range as the
last resort.

10 years agoMask off the vector from the MSI-x data word.
grehan [Sat, 7 Sep 2013 03:33:36 +0000 (03:33 +0000)]
Mask off the vector from the MSI-x data word.
Some o/s's set the trigger-mode level bit which
results in an invalid vector and pass-thru interrupts
not being delivered.

10 years agoRemove unnecessary mediaClose (FTP operations are done with either ftp(1)
dteske [Sat, 7 Sep 2013 03:27:13 +0000 (03:27 +0000)]
Remove unnecessary mediaClose (FTP operations are done with either ftp(1)
or fetch(1), neither of which are stateful, compared to how sysinstall(8)
did FTP operations, maintaining an open session until mediaClose).

10 years agoLong URLs don't always appear even with autosizing and other tricks. So,
dteske [Sat, 7 Sep 2013 03:24:22 +0000 (03:24 +0000)]
Long URLs don't always appear even with autosizing and other tricks. So,
add some whitespace to put the URL on a line by itself, maximizing view.

10 years agonewfs_msdos: fix inaccurate comments.
pfg [Sat, 7 Sep 2013 03:10:12 +0000 (03:10 +0000)]
newfs_msdos: fix inaccurate comments.

The fields from deMTime and deMDate in the DOS directory entry
are actually the last-modified time/date.

According to some online documentation these are the only
timestamps available in FAT12/FAT16.

MFC after: 3 days

10 years agoext2fs: temporarily disable htree directory index.
pfg [Sat, 7 Sep 2013 02:45:51 +0000 (02:45 +0000)]
ext2fs: temporarily disable htree directory index.

Our code does not consider yet the case of hash collisions. This
is a rather annoying situation where two or more files that
happen to have the same hash value will not appear accessible.

The situation is not difficult to work-around but given that things
will just work without enabling htree we will save possible
embarrassments for the next release.

Reported by: Kevin Lo

10 years agoWhen computing the partial delivery point, take the
tuexen [Sat, 7 Sep 2013 00:45:24 +0000 (00:45 +0000)]
When computing the partial delivery point, take the
receiver socket buffer size correctly into account.

MFC after: 1 week

10 years agolibc: Make resolver sockets close-on-exec (SOCK_CLOEXEC).
jilles [Fri, 6 Sep 2013 23:49:54 +0000 (23:49 +0000)]
libc: Make resolver sockets close-on-exec (SOCK_CLOEXEC).

Although the resolver's sockets are exposed to applications via res_state,
I do not expect them to pass the sockets across execve().

10 years agoRemove the hardcoded limit for the number of gpio_pins that can be used.
loos [Fri, 6 Sep 2013 23:47:50 +0000 (23:47 +0000)]
Remove the hardcoded limit for the number of gpio_pins that can be used.
Allocate it dynamically.

Approved by: adrian (mentor)

10 years agoFix an off-by-one bug in ar71xx_gpio and bcm2835_gpio which makes the last
loos [Fri, 6 Sep 2013 23:39:56 +0000 (23:39 +0000)]
Fix an off-by-one bug in ar71xx_gpio and bcm2835_gpio which makes the last
pin unavailable.

Reported and tested by: sbruno (ar71xx)
Approved by: adrian (mentor)
Pointy hat to: loos

10 years agoIntermittent crashes in the NLM (rpc.lockd) code during system
rmacklem [Fri, 6 Sep 2013 23:14:31 +0000 (23:14 +0000)]
Intermittent crashes in the NLM (rpc.lockd) code during system
shutdown was reporetd via email. The crashes occurred because the
client side NLM would attempt to use its socket after it had been
destroyed. Looking at the code, it would soclose() once the reference
count on the socket handling structure went to 0. Unfortunately,
nlm_host_get_rpc() will simply allocate a new socket handling structure
when none exists and use the now soclose()d socket. Since there doesn't
seem to be a safe way to determine when the socket is no longer needed,
this patch modifies the code so that it never soclose()es the socket.
Since there is only one socket ever created, this does not introduce a
leak when the rpc.lockd is stopped/restarted. The patch also disables
unloading of the nfslockd module, since it is not safe to do so (and
has never been safe to do so, from what I can see).

Reported by: mav
Tested by: mav
MFC after: 2 weeks

10 years agoUpdate ipfilter 4.1.28 --> 5.1.2.
cy [Fri, 6 Sep 2013 23:11:19 +0000 (23:11 +0000)]
Update ipfilter 4.1.28 --> 5.1.2.

Approved by: glebius (mentor)
BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)

10 years agoImplement PV IPIs for PVHVM guests and further converge PV and HVM
gibbs [Fri, 6 Sep 2013 22:17:02 +0000 (22:17 +0000)]
Implement PV IPIs for PVHVM guests and further converge PV and HVM
IPI implmementations.

Submitted by: Roger Pau MonnĂ©
Sponsored by: Citrix Systems R&D
Submitted by: gibbs (misc cleanup, table driven config)
Reviewed by:  gibbs
MFC after: 2 weeks

sys/amd64/include/cpufunc.h:
sys/amd64/amd64/pmap.c:
Move invltlb_globpcid() into cpufunc.h so that it can be
used by the Xen HVM version of tlb shootdown IPI handlers.

sys/x86/xen/xen_intr.c:
sys/xen/xen_intr.h:
Rename xen_intr_bind_ipi() to xen_intr_alloc_and_bind_ipi(),
and remove the ipi vector parameter.  This api allocates
an event channel port that can be used for ipi services,
but knows nothing of the actual ipi for which that port
will be used.  Removing the unused argument and cleaning
up the comments surrounding its declaration helps clarify
its actual role.

sys/amd64/amd64/mp_machdep.c:
sys/amd64/include/cpu.h:
sys/i386/i386/mp_machdep.c:
sys/i386/include/cpu.h:
Implement a generic framework for amd64 and i386 that allows
the implementation of certain CPU management functions to
be selected at runtime.  Currently this is only used for
the ipi send function, which we optimize for Xen when running
on a Xen hypervisor, but can easily be expanded to support
more operations.

sys/x86/xen/hvm.c:
Implement Xen PV IPI handlers and operations, replacing native
send IPI.

sys/amd64/include/pcpu.h:
sys/i386/include/pcpu.h:
sys/i386/include/smp.h:
Remove NR_VIRQS and NR_IPIS from FreeBSD headers.  NR_VIRQS
is defined already for us in the xen interface files.
NR_IPIS is only needed in one file per Xen platform and is
easily inferred by the IPI vector table that is defined in
those files.

sys/i386/xen/mp_machdep.c:
Restructure to more closely match the HVM implementation by
performing table driven IPI setup.

10 years agoBump .Dd after r255307 and r255310
bryanv [Fri, 6 Sep 2013 21:26:36 +0000 (21:26 +0000)]
Bump .Dd after r255307 and r255310

Requested by: joel

10 years agoRetire netisr.netisr_direct and netisr.netisr_direct_force sysctls.
davide [Fri, 6 Sep 2013 21:02:43 +0000 (21:02 +0000)]
Retire netisr.netisr_direct and netisr.netisr_direct_force sysctls.
These were used to control/export dispatch policy but they're not anymore.
This commit cannot be MFC'ed to 9 because old netstat(9) binary relies
on such sysctl to work. On the other hand, there's no real reason to
keep'em around in 10.

10 years agolibc: Use SOCK_CLOEXEC for various internal file descriptors.
jilles [Fri, 6 Sep 2013 21:02:06 +0000 (21:02 +0000)]
libc: Use SOCK_CLOEXEC for various internal file descriptors.

This change avoids undesirably passing some internal file descriptors to a
process created (fork+exec) by another thread.

Kernel support for SOCK_CLOEXEC was added in r248534, March 19, 2013.

10 years agoRegenerate after unhooking gcc/g++ from the default build for some arches.
zeising [Fri, 6 Sep 2013 20:51:15 +0000 (20:51 +0000)]
Regenerate after unhooking gcc/g++ from the default build for some arches.

10 years agoAdd WITH_GCC alongside WITHOUT_GCC.
zeising [Fri, 6 Sep 2013 20:49:48 +0000 (20:49 +0000)]
Add WITH_GCC alongside WITHOUT_GCC.
Remove the comment from WITHOUT_GCC about this not working without an
alternate toolchain, we have clang now.

10 years agoDon't delete c++filt when doing a make delete-old if GCC is not built but
theraven [Fri, 6 Sep 2013 20:46:07 +0000 (20:46 +0000)]
Don't delete c++filt when doing a make delete-old if GCC is not built but
C++ is.

10 years agoOnly set -Wno-c++11-extensions if we're building with clang, so bootstrapping
theraven [Fri, 6 Sep 2013 20:42:14 +0000 (20:42 +0000)]
Only set -Wno-c++11-extensions if we're building with clang, so bootstrapping
clang with gcc doesn't fail.

10 years agoAdd vmx device to the i386 and amd64 NOTES files
bryanv [Fri, 6 Sep 2013 20:24:21 +0000 (20:24 +0000)]
Add vmx device to the i386 and amd64 NOTES files

10 years agoFix use of MACHINE_ARCH where MACHINE was intended for pc98 detection.
theraven [Fri, 6 Sep 2013 20:23:15 +0000 (20:23 +0000)]
Fix use of MACHINE_ARCH where MACHINE was intended for pc98 detection.

Reported by: nwhitehorn

10 years agoOn platforms where clang is the default compiler, don't build gcc or libstdc++.
theraven [Fri, 6 Sep 2013 20:08:03 +0000 (20:08 +0000)]
On platforms where clang is the default compiler, don't build gcc or libstdc++.
To enable them, set WITH_GCC and WITH_GNUCXX in src.conf.
Make clang default to using libc++ on FreeBSD 10.
Bumped __FreeBSD_version for the change.

GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build
(or, at least, hard-codes the use of gcc into its build).

Thanks to everyone who helped make the ports tree ready for this (and bapt
for coordinating them all).  Also to imp for reviewing this and working on the
forward-porting of the changes in our gcc so that we're getting to a much
better place with regard to external toolchains.

Sorry to all of the people who helped who I forgot to mention by name.

Reviewed by: bapt, imp, dim, ...

10 years agoReturn BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC.
delphij [Fri, 6 Sep 2013 18:41:57 +0000 (18:41 +0000)]
Return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC.

This change is a 9.2-RELEASE candidate.

Approved by: HighPoint Technologies

10 years agoYarrow wants entropy estimations to be conservative; the usual idea
markm [Fri, 6 Sep 2013 17:51:52 +0000 (17:51 +0000)]
Yarrow wants entropy estimations to be conservative; the usual idea
is that if you are certain you have N bits of entropy, you declare
N/2.

10 years agoFix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations
glebius [Fri, 6 Sep 2013 17:44:13 +0000 (17:44 +0000)]
Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations
to MD headers.

10 years agoMFC
markm [Fri, 6 Sep 2013 17:42:12 +0000 (17:42 +0000)]
MFC

10 years agoKeep PRIV_KMEM_READ permitted inside jails as it is on the outside.
jamie [Fri, 6 Sep 2013 17:32:29 +0000 (17:32 +0000)]
Keep PRIV_KMEM_READ permitted inside jails as it is on the outside.

10 years agocomment out some stale loader configurations.
luigi [Fri, 6 Sep 2013 17:19:57 +0000 (17:19 +0000)]
comment out some stale loader configurations.

10 years agogenerate multiple host keys and do that unconditionally
luigi [Fri, 6 Sep 2013 17:18:43 +0000 (17:18 +0000)]
generate multiple host keys and do that unconditionally

10 years agor253616 nuked BINMAKE so we need to adapt to the new definition
luigi [Fri, 6 Sep 2013 17:16:33 +0000 (17:16 +0000)]
r253616 nuked BINMAKE so we need to adapt to the new definition

10 years agoOnly lock pvh_global_lock read-only for pmap_page_wired_mappings(),
kib [Fri, 6 Sep 2013 16:53:48 +0000 (16:53 +0000)]
Only lock pvh_global_lock read-only for pmap_page_wired_mappings(),
pmap_is_modified() and pmap_is_referenced(), same as it was done for
pmap_ts_referenced().

Consolidate identical code for pmap_is_modified() and
pmap_is_referenced() into helper pmap_page_test_mappings().

Reviewed by: alc
Tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation

10 years agoIn pmap_ts_referenced(), when restarting the loop due to pv list
kib [Fri, 6 Sep 2013 16:48:34 +0000 (16:48 +0000)]
In pmap_ts_referenced(), when restarting the loop due to pv list
generation changed, do not drop and immediately relock the pv list.

Suggested and reviewed by: alc
Sponsored by: The FreeBSD Foundation

10 years agoAdd firmware downloading support for Samsung drives
bryanv [Fri, 6 Sep 2013 16:34:09 +0000 (16:34 +0000)]
Add firmware downloading support for Samsung drives

Tested on Samsung SM1625 SSDs.

10 years agoMake SES driver adequately react on simple enclosure devices -- read Short
mav [Fri, 6 Sep 2013 15:41:37 +0000 (15:41 +0000)]
Make SES driver adequately react on simple enclosure devices -- read Short
Enclosure status to enclosure status field, clear previous state and exit.

10 years agoAdd camcontrol support for the SCSI sanitize command
bryanv [Fri, 6 Sep 2013 15:19:57 +0000 (15:19 +0000)]
Add camcontrol support for the SCSI sanitize command

Reviewed by: ken, mjacob (eariler version)
Sponsored by: Netapp

10 years agoBump __FreeBSD_version to 1000053 after cap_rights_t change.
pjd [Fri, 6 Sep 2013 14:34:20 +0000 (14:34 +0000)]
Bump __FreeBSD_version to 1000053 after cap_rights_t change.

Suggested by: danfe

10 years agoFix kernel panic if cache->nelms is zero.
mav [Fri, 6 Sep 2013 14:31:52 +0000 (14:31 +0000)]
Fix kernel panic if cache->nelms is zero.

MFC after: 2 weeks

10 years agolibc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a).
jilles [Fri, 6 Sep 2013 13:47:16 +0000 (13:47 +0000)]
libc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a).

Austin Group issue #411 requires 'e' to be accepted before and after 'x',
and encourages accepting the characters in any order, except the initial
'r', 'w' or 'a'.

Given that glibc accepts the characters after r/w/a in any order and that
diagnosing this problem may be hard, change our libc to behave that way as
well.

10 years agolibc/stdio: Run mkostemp test using prove.
jilles [Fri, 6 Sep 2013 12:59:48 +0000 (12:59 +0000)]
libc/stdio: Run mkostemp test using prove.

10 years agolibc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream.
jilles [Fri, 6 Sep 2013 12:56:49 +0000 (12:56 +0000)]
libc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream.

A *.t file should provide Test Anything Protocol output so that it can be
run using the Perl "prove" tool.

10 years agoFix the leakage of dma tags on if_arge. The leak occur when arge_start()
loos [Fri, 6 Sep 2013 12:47:14 +0000 (12:47 +0000)]
Fix the leakage of dma tags on if_arge.  The leak occur when arge_start()
add some packet(s) to tx ring and arge_stop() is called before receive the
sent packet interrupt from hardware.  Fix arge_stop() to unload the in use
dma tags and free the associated mbuf.

PR: 178319, 163670
Approved by: adrian (mentor)

10 years agoUse Makefile.inc instead of .export.
theraven [Fri, 6 Sep 2013 10:40:38 +0000 (10:40 +0000)]
Use Makefile.inc instead of .export.

10 years agoFix the namespace pollution caused by iconv.h including stdbool.h
theraven [Fri, 6 Sep 2013 09:46:44 +0000 (09:46 +0000)]
Fix the namespace pollution caused by iconv.h including stdbool.h
This broke any C89 ports that defined bool themselves, including things
like gcc, gtk, and so on.

10 years agoUpdate some signal man pages for multithreading.
jilles [Fri, 6 Sep 2013 09:08:40 +0000 (09:08 +0000)]
Update some signal man pages for multithreading.

10 years agoAdd stub implementations of the missing C++11 math functions.
theraven [Fri, 6 Sep 2013 07:58:23 +0000 (07:58 +0000)]
Add stub implementations of the missing C++11 math functions.
These are weak and so can be replaced by other versions in applications
that choose to do so, and will give a linker warning when used so that
applications that rely on the extra precision can avoid them.

Note that since the C/C++ specs only guarantee that long double has
precision equal to double, code that actually relies on these functions
having greater precision is unportable at best and broken at worst.

10 years agoFix spelling.
grehan [Fri, 6 Sep 2013 05:58:10 +0000 (05:58 +0000)]
Fix spelling.

10 years agoAllow level-triggered interrupt sources. While this isn't
grehan [Fri, 6 Sep 2013 05:55:43 +0000 (05:55 +0000)]
Allow level-triggered interrupt sources. While this isn't
precisely emulated, it is good enough for the single consumer
i.e. irq4, the serial port on Linux.

10 years agoFix build.
glebius [Fri, 6 Sep 2013 05:38:20 +0000 (05:38 +0000)]
Fix build.

10 years agoOn those machines, where sf_bufs do not represent any real object, make
glebius [Fri, 6 Sep 2013 05:37:49 +0000 (05:37 +0000)]
On those machines, where sf_bufs do not represent any real object, make
sf_buf_alloc()/sf_buf_free() inlines, to save two calls to an absolutely
empty functions.

Reviewed by: alc, kib, scottl
Sponsored by: Nginx, Inc.
Sponsored by: Netflix

10 years agoEmulate reading of the IA32_MISC_ENABLE MSR, by returning
grehan [Fri, 6 Sep 2013 05:20:11 +0000 (05:20 +0000)]
Emulate reading of the IA32_MISC_ENABLE MSR, by returning
the host MSR and masking off features that aren't supported.
Linux reads this MSR to detect if NX has been disabled via
BIOS.

10 years agoAllow CPUID leaf 0xD to be read as zeroes.
grehan [Fri, 6 Sep 2013 05:16:10 +0000 (05:16 +0000)]
Allow CPUID leaf 0xD to be read as zeroes.
Linux reads this even though extended features
aren't exposed.

Support for 0xD will be expanded once AVX[2]
is exposed to the guest in upcoming work.

10 years agoDuring universe/tinderbox export MAKE_JOB_ERROR_TOKEN=no
sjg [Fri, 6 Sep 2013 02:57:15 +0000 (02:57 +0000)]
During universe/tinderbox export MAKE_JOB_ERROR_TOKEN=no
This avoids aborting everything when one kernel fails.

Reviewed by: obrien

10 years agoIf MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E")
sjg [Fri, 6 Sep 2013 02:55:51 +0000 (02:55 +0000)]
If MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E")
into the job queue.
This avoids closing down an entire build on failure of one branch.
Probably has no use outside the context of universe/tinderbox.

Reviewed by: obrien

10 years agoIt was reported via email that the cu_sent field used by the
rmacklem [Fri, 6 Sep 2013 02:34:34 +0000 (02:34 +0000)]
It was reported via email that the cu_sent field used by the
krpc client side UDP was observed as way out of range and
caused the rpc.lockd daemon to hang trying to do an RPC.
Inspection of the code found two places where the RPC request
is re-queued, but the value of cu_sent was not incremented.
Since cu_sent is always decremented when the RPC request is
dequeued, I think this could have caused cu_sent to go out of
range. This patch adds lines to increment cu_sent for these
two cases.

Reported by: dwhite@ixsystems.com
Discussed with: dwhite@ixsystems.com
MFC after: 2 weeks

10 years agoAlso align the 32-bit PowerPC stacks.
nwhitehorn [Thu, 5 Sep 2013 23:28:50 +0000 (23:28 +0000)]
Also align the 32-bit PowerPC stacks.

10 years agoRemove contractions.
carl [Thu, 5 Sep 2013 23:14:27 +0000 (23:14 +0000)]
Remove contractions.

Approved by: jimharris
Sponsored by: Intel

10 years agoOnly tear down interface and transport if they've been successfully setup.
carl [Thu, 5 Sep 2013 23:12:58 +0000 (23:12 +0000)]
Only tear down interface and transport if they've been successfully setup.

Approved by: jimharris
Sponsored by: Intel

10 years agoWorkaround an issue with hardware by accessing remote device through mem
carl [Thu, 5 Sep 2013 23:11:11 +0000 (23:11 +0000)]
Workaround an issue with hardware by accessing remote device through mem
window.

Approved by: jimharris
Sponsored by: Intel

10 years agoSimplify register access macros by removing one level of indirection.
carl [Thu, 5 Sep 2013 23:08:22 +0000 (23:08 +0000)]
Simplify register access macros by removing one level of indirection.

Approved by: jimharris
Sponsored by: Intel

10 years agoCleaning up spacing and making hex value case consistent.
carl [Thu, 5 Sep 2013 23:06:25 +0000 (23:06 +0000)]
Cleaning up spacing and making hex value case consistent.

Approved by: jimharris
Sponsored by: Intel

10 years agoImplement workaround for IvyTown 4K BAR size issue.
carl [Thu, 5 Sep 2013 23:04:36 +0000 (23:04 +0000)]
Implement workaround for IvyTown 4K BAR size issue.

Approved by: jimharris
Sponsored by: Intel

10 years agoSimplifying bus alloc resource call since we only need the default values.
carl [Thu, 5 Sep 2013 23:02:43 +0000 (23:02 +0000)]
Simplifying bus alloc resource call since we only need the default values.

Approved by: jimharris
Sponsored by: Intel

10 years agoAdd support for per device features and workarounds.
carl [Thu, 5 Sep 2013 23:00:59 +0000 (23:00 +0000)]
Add support for per device features and workarounds.

Approved by: jimharris
Sponsored by: Intel

10 years agoAlign stacks of kernel threads correctly at 16-byte boundaries rather than
nwhitehorn [Thu, 5 Sep 2013 23:00:24 +0000 (23:00 +0000)]
Align stacks of kernel threads correctly at 16-byte boundaries rather than
making sure they are all misaligned at +8 bytes. This fixes clang builds
of powerpc64 kernels (aside from a required increase in KSTACK_PAGES which
will come later).

This commit from FreeBSD/powerpc64 with a clang-built kernel.

MFC after: 2 weeks

10 years agoRestructure the PCI bar initialization code in anticipation of upcoming
carl [Thu, 5 Sep 2013 22:59:18 +0000 (22:59 +0000)]
Restructure the PCI bar initialization code in anticipation of upcoming
bug fixes.

Approved by: jimharris
Sponsored by: Intel

10 years agoFix name change from ntb_transport to if_ntb. A few places were
carl [Thu, 5 Sep 2013 22:56:52 +0000 (22:56 +0000)]
Fix name change from ntb_transport to if_ntb. A few places were
overlooked.

Approved by: jimharris
Sponsored by: Intel

10 years agoFix a typo.
carl [Thu, 5 Sep 2013 22:55:08 +0000 (22:55 +0000)]
Fix a typo.

Approved by: jimharris
Sponsored by: Intel

10 years agoThrow a bit to enable the link to come up on Xeon.
carl [Thu, 5 Sep 2013 22:52:40 +0000 (22:52 +0000)]
Throw a bit to enable the link to come up on Xeon.

Approved by: jimharris
Sponsored by: Intel

10 years agoAdd some logging to ntb link up.
carl [Thu, 5 Sep 2013 22:46:48 +0000 (22:46 +0000)]
Add some logging to ntb link up.

Approved by: jimharris
Sponsored by: Intel

10 years agoStyle clean-ups.
hrs [Thu, 5 Sep 2013 21:19:16 +0000 (21:19 +0000)]
Style clean-ups.

Reviewed by: md5

10 years agoEnable "late" option when a file= option is specified in /etc/fstab.
hrs [Thu, 5 Sep 2013 20:50:52 +0000 (20:50 +0000)]
Enable "late" option when a file= option is specified in /etc/fstab.
The file= option requires rw mount where the backing store exists but
it does not work because rc.d/swap runs before rc.d/fsck.
Reported by: wblock

10 years agowatch: Do not mess up the tty modes on early error.
jilles [Thu, 5 Sep 2013 19:02:03 +0000 (19:02 +0000)]
watch: Do not mess up the tty modes on early error.

Record the initial state earlier, so it is always safe to restore it.

One way this happens is if watch(8) is started by a user that does not have
access to /dev/snp. The result is "staircase effect" during later commands.

PR: bin/153052
MFC after: 1 week

10 years agoFixing a small typo.
hiren [Thu, 5 Sep 2013 18:18:23 +0000 (18:18 +0000)]
Fixing a small typo.

Reviewed by: gjb
Approved by: sbruno (mentor)

10 years agoMinor printf nit to keep out clean
sbruno [Thu, 5 Sep 2013 16:38:26 +0000 (16:38 +0000)]
Minor printf nit to keep out clean

10 years agoMerge bmake-20130904
sjg [Thu, 5 Sep 2013 15:57:26 +0000 (15:57 +0000)]
Merge bmake-20130904

10 years agoTag bmake-20130904
sjg [Thu, 5 Sep 2013 15:49:51 +0000 (15:49 +0000)]
Tag bmake-20130904

10 years agoImport bmake-20130904
sjg [Thu, 5 Sep 2013 15:49:22 +0000 (15:49 +0000)]
Import bmake-20130904

10 years agoUse LIST_FOREACH_SAFE() instead of doing it by hand.
jhb [Thu, 5 Sep 2013 14:26:37 +0000 (14:26 +0000)]
Use LIST_FOREACH_SAFE() instead of doing it by hand.

10 years agoUse an unsigned long when indexing into mfchashtbl[] and mf6ctable[]. This
jhb [Thu, 5 Sep 2013 14:16:37 +0000 (14:16 +0000)]
Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[].  This
matches the types used when computing hash indices and the type of the
maximum size of mfchashtbl[].

PR: kern/181821
Submitted by: Sven-Thorsten Dietrich <sven@vyatta.com> (IPv4)
MFC after: 1 week