Commit Graph

201675 Commits

Author SHA1 Message Date
Glen Barber
eb64cd58f5 Add initial support for automatically uploading GCE virtual
machine images to the Google Compute Engine platform.

By default, gcutil/gsutil requires an Oauth2 login generated
from a URL that must be opened in a browser, a verification
code copied back to the terminal from which it was invoked,
etc., etc., making it near impossible for automation.

I've hacked together an evil solution to work around this,
so unless GCE_LOGIN_SKIP is set to a non-empty value, this
Makefile will not do anything useful.

As a result of this commit, remove the gce-package.sh script
that was never, nor will ever be, used.

MFC after:	3 days
X-MFC-Note:	(hopefully)
Sponsored by:	The FreeBSD Foundation
2015-06-27 01:29:59 +00:00
Baptiste Daroussin
9ebcef9a74 short circuit install -l rs
When requesting install(1) to only make relative symlinks, by pass all the
done to actually compute the relative symlink if the path given in argument is
already a relative path
2015-06-26 23:55:02 +00:00
Xin LI
4b1222a215 Reduce warnings:
- Add prototype for boot2 main()
 - Don't make assignment within if statement, split it into two.

No functional or binary change -- verified with sha256(1).

MFC after:	2 weeks
2015-06-26 18:03:19 +00:00
Tycho Nightingale
ea587cd825 verify_gla() needs to account for non-zero segment base addresses.
Reviewed by:	neel
2015-06-26 18:00:29 +00:00
Alexander Motin
0bb4b98984 Plug minor memory leak at r284765.
Reported by:	Coverity
CID:		1308401
MFC after:	3 days
2015-06-26 16:14:00 +00:00
Glen Barber
787c8cb62d Clarify the note about Thumb-2 kernel support.
Submitted by:	andrew
Sponsored by:	The FreeBSD Foundation
2015-06-26 13:33:46 +00:00
Kashyap D Desai
2f2163ab40 Counter part of mfi driver commit in mrsas
Switch from make_dev_alias to make_dev_alias_p since make_dev_alias_p can
gracefully fail if the /dev/megaraid_sas_ioctl_node symlink already exists.
This can happen if mfi(4) and mrsas(4) are both attached to cards and
providing Linux emulation support.  Let the first one win.  An equivalent
change has been done in mfi(4).  Extra credit would be to pass the
Linux emulation call to the other driver when appropriate.  This will
probably be a rare case and the user can manually change where the symlink
points to.

MFC after:  3 days
2015-06-26 12:00:51 +00:00
Kashyap D Desai
5b2490f890 Kernel panic may be observed by user, if MR controller is under Chip reset (OCR)
and there are some pending IOs at the time of OCR. This is mainly because of
recursive mutext in OCR and IO completion function call. Generic IO completion (from ISR) needs
sim_lock to be held before it calls completion to CAM (xpt_done), but in case of OCR path mrsas_ocr thread
itself take sim_lock, so this condition is now handled in this patch.

MFC after:  3 days
2015-06-26 11:58:42 +00:00
Andrew Turner
de50bcd56f pc_curpmap is only in the armv6 pcpu data. 2015-06-26 09:02:40 +00:00
Roger Pau Monné
7e748038cd amd64: set the correct LMA values
The current linker script generates program headers with VMA == LMA:

Entry point 0xffffffff802e7000
There are 6 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0xffffffff80200040 0xffffffff80200040
                 0x0000000000000150 0x0000000000000150  R E    8
  INTERP         0x0000000000000190 0xffffffff80200190 0xffffffff80200190
                 0x000000000000000d 0x000000000000000d  R      1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xffffffff80200000 0xffffffff80200000
                 0x00000000010559b0 0x00000000010559b0  R E    200000
  LOAD           0x0000000001056000 0xffffffff81456000 0xffffffff81456000
                 0x0000000000132638 0x000000000052ecf8  RW     200000
  DYNAMIC        0x0000000001056000 0xffffffff81456000 0xffffffff81456000
                 0x00000000000000d0 0x00000000000000d0  RW     8
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    8

This is fine for the FreeBSD loader, because it completely ignores p_paddr
and instead uses p_vaddr with a hardcoded offset. Other loaders however
acknowledge p_paddr (like the Xen ELF loader), in which case they will try
to load the kernel at the wrong place. Fix this by adding an AT keyword to
the first section specifying the physical address, other sections will
follow suit, so it ends up looking like:

Entry point 0xffffffff802e7000
There are 6 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0xffffffff80200040 0x0000000000200040
                 0x0000000000000150 0x0000000000000150  R E    8
  INTERP         0x0000000000000190 0xffffffff80200190 0x0000000000200190
                 0x000000000000000d 0x000000000000000d  R      1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xffffffff80200000 0x0000000000200000
                 0x00000000010559b0 0x00000000010559b0  R E    200000
  LOAD           0x0000000001056000 0xffffffff81456000 0x0000000001456000
                 0x0000000000132638 0x000000000052ecf8  RW     200000
  DYNAMIC        0x0000000001056000 0xffffffff81456000 0x0000000001456000
                 0x00000000000000d0 0x00000000000000d0  RW     8
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    8

Tested on bare metal using the native FreeBSD loader and grub2 from TRUEOS.

Sponsored by: Citrix Systems R&D
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D2783
2015-06-26 07:12:17 +00:00
Konstantin Belousov
1abfd35537 Split the DMAR unit domains and contexts. Domains carry address space
and related data structures.  Contexts attach requests initiators to
domains.  There is still 1:1 correspondence between contexts and
domains on the running system, since only busdma currently allocates
them, using dmar_get_ctx_for_dev().

Large part of the change is formal rename of the ctx to domain, but
patch also reworks the context allocation and free to allow for
independent domain creation.

The helper dmar_move_ctx_to_domain() is introduced for future use, to
reassign request initiator from one domain to another.  The hard issue
which is not yet resolved with the context move is proper handling (or
reserving) RMRR entries in the destination domain as required by ACPI
DMAR table for moved context.

Tested by:	pho
Sponsored by:	The FreeBSD Foundation
2015-06-26 07:01:29 +00:00
Adrian Chadd
5bbb2169d2 Un-static cpuset_which() - it's useful in other contexts, such as some
CPU set operations in my upcoming NUMA work.

Tested/compiled:

* i386 (run)
* amd64 (run)
* mips (run)
* mips64 (run)
* armv6 (built)

Sponsored by:	Norse Corp, Inc.
2015-06-26 04:14:05 +00:00
Adrian Chadd
f902ea0761 Rename seq_* to mseq_*, to avoid clashes with seq.h (namely, seq_read.) 2015-06-26 04:12:06 +00:00
Cy Schubert
b1cf398e01 Add support for additional architectures in ntp.
Differential Revision:	D2720
Reviewed by:	jmg, reoberto, andrew, ian, imp
2015-06-26 03:29:23 +00:00
Bjoern A. Zeeb
9656119da4 Another attempt to make this compile on more architectures after r284777. 2015-06-25 23:16:01 +00:00
Glen Barber
ac89815f46 Revert r284860. I was looking at the wrong files.
Sigh.

Sponsored by:	The FreeBSD Foundation
2015-06-25 20:46:11 +00:00
John-Mark Gurney
afc6dc3669 If INVARIANTS is specified, add ctor/dtor to junk memory if they are
unspecified...

Submitted by:	Suresh Gumpula at Netapp
Differential Revision:	https://reviews.freebsd.org/D2725
2015-06-25 20:44:46 +00:00
Glen Barber
de5ab6b0ab Fix an incorrect revision number.
Sponsored by:	The FreeBSD Foundation
2015-06-25 20:40:51 +00:00
Tijl Coosemans
6f071e02b8 Enable the use of __builtin_va_* for ICC.
PR:		198822
Submitted by:	Sergey Melnikov <sergey.melnikov@intel.com>
MFC after:	5 days
2015-06-25 19:39:07 +00:00
Glen Barber
695cc321dd Document r284237, file(1) updated to 5.23.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:59 +00:00
Glen Barber
4a1cddceea Document r283092, ACPICA updated to 20150515.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:57 +00:00
Glen Barber
dac680af91 Document r284329, OpenSSL update to 1.0.1o.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:55 +00:00
Glen Barber
23789c2c01 Document r258431, boot-time memory test on amd64 platforms is now
disabled by default.

Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:53 +00:00
Glen Barber
1610583cd3 Document r279955, autofs(5) '-noauto' map addition.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:50 +00:00
Glen Barber
d2b19afb40 Document r275681, autofs(5) '-media' map addition.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:48 +00:00
Glen Barber
5bdf94263a Update the svn revision marker.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:46 +00:00
Glen Barber
9103fff5c6 Document r284746, TSO and checksum offloading support in hv_netvsc(4).
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:44 +00:00
Glen Barber
76e2f33e15 Add missing '-' in Hyper-V.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:42 +00:00
Glen Barber
137fdb968f Document r284702, uart(4) update to support AMT on newer systems.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:40 +00:00
Glen Barber
8db57f8f88 Document r284589, fstyp(8) now recognizes ZFS and GELI filesystems.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:38 +00:00
Glen Barber
8f2fa16335 Move the crypt(3) entries from userland-programs to
userland-libraries.

Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:36 +00:00
Glen Barber
a597a84726 Document r284483, Blowfish crypt(3) now supports $2y$ format.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:34 +00:00
Glen Barber
0fe3d4920c Document r284297, lockstat(1) improvements.
Add ClusterHQ to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:31 +00:00
Glen Barber
9ce56cbcd9 Document r284273, initial ACPI support for aarch64.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:29 +00:00
Glen Barber
1f08cff1b8 Document r284254, bmake updated to 20150606.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:27 +00:00
Glen Barber
d2b74ce141 Document r283959, EM_MULTIQUEUE kernel configuration option.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:25 +00:00
Glen Barber
0a994ce7e8 Document r283766, improved hang detection in em(4).
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:22 +00:00
Glen Barber
fb273beed9 Document r283766, ig4(4) addition.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:20 +00:00
Glen Barber
573d5bf4f6 Document r283136, net.inet.tcp.hostcache.purgenow addition.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:18 +00:00
Glen Barber
f9729e4d58 Document r282988, alloc_align() added to malloc.h and stdlib.h.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:16 +00:00
Glen Barber
bea3671eb6 Document r282973, libgomp no longer built by default, unless building
the base system GCC.

Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:14 +00:00
Glen Barber
5496fccfcb Document r282901, RACCT/RCTL in GENERIC by default.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:12 +00:00
Glen Barber
48ba79fca8 Document r282827, BeagleBone Black power button support added.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:10 +00:00
Glen Barber
9adece2529 Document r282783, freescale PCI Root Complex support added.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:08 +00:00
Glen Barber
c2d3d668ed Document r282779, Thumb-2 support for ARMv7 added.
Sponsored by:	The FreeBSD Foundation
2015-06-25 18:44:06 +00:00
George V. Neville-Neil
54bf2ef806 Fix support for the null encryption algorithm which now requires
a key.

Sponsored by: Rubicon Communications (Netgate)
2015-06-25 18:38:58 +00:00
Andrew Turner
61b9bd2303 Sort the cpu architectures by name rather than a combination of
alphabetical order and appending new architectures to the end of the list.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
2015-06-25 16:47:11 +00:00
Ermal Luçi
cd2bc2ef4e Correct r284777 to use proper includes and remove dead code to unbreak kernel builds.
Differential Revision:	https://reviews.freebsd.org/D2847
2015-06-25 15:05:58 +00:00
Glen Barber
27d233f7cc Change the hour:minute delimiter from ':' to '-', since
the former is an invalid character in EC2 images.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-25 14:24:06 +00:00
Glen Barber
3c3445e8c7 Consider PRERELEASE builds snapshots, in addition to CURRENT and
STABLE.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-25 13:40:00 +00:00