dim [Tue, 23 Jun 2015 18:44:19 +0000 (18:44 +0000)]
Update llvm/clang to r240225.
dim [Sun, 21 Jun 2015 14:00:56 +0000 (14:00 +0000)]
Vendor import of clang trunk r240225:
https://llvm.org/svn/llvm-project/cfe/trunk@240225
dim [Sun, 21 Jun 2015 13:59:01 +0000 (13:59 +0000)]
Vendor import of llvm trunk r240225:
https://llvm.org/svn/llvm-project/llvm/trunk@240225
dim [Sat, 20 Jun 2015 19:34:50 +0000 (19:34 +0000)]
Merge ^/head r284188 through r284643.
mav [Sat, 20 Jun 2015 13:02:57 +0000 (13:02 +0000)]
Fix REPORT LUNS command output for the case when same LUN mapped to same
port several times. While it is unusual configuration, it is not illegal.
MFC after: 1 week
mav [Sat, 20 Jun 2015 12:43:54 +0000 (12:43 +0000)]
Bring per-port LUN enable/disable code up to date:
- remove last remnants of never implemented multiple targets support;
- implement missing support for LUN mapping in this area.
Due to existing locking constraints LUN mapping code is practically
unlocked at this point. Hopefully it is not racy enough to live until
somebody get idea how to call sleeping fronend methods under lock also
taken by the same frontend in non-sleepable context. :(
mav [Sat, 20 Jun 2015 11:20:25 +0000 (11:20 +0000)]
Introduce separate lock for tokens to reduce ctl_lock scope.
bapt [Sat, 20 Jun 2015 11:11:13 +0000 (11:11 +0000)]
Remove temporary changes that crept in r284417 when it should not have
Reported by: antoine, jbeich
antoine [Sat, 20 Jun 2015 09:06:48 +0000 (09:06 +0000)]
Add more obsolete files
hrs [Sat, 20 Jun 2015 08:59:50 +0000 (08:59 +0000)]
- Add SOCK_SEQPACKET support in UNIX-domain socket.
- Display zoneid using % notation in an IPv6 address.
- Use nitems().
- Use sstos{in,in6,un} macros to simplify casts.
- style(9).
antoine [Sat, 20 Jun 2015 08:52:44 +0000 (08:52 +0000)]
Add more obsolete files
antoine [Sat, 20 Jun 2015 08:24:17 +0000 (08:24 +0000)]
Add miscellaneous obsolete files
antoine [Sat, 20 Jun 2015 07:58:09 +0000 (07:58 +0000)]
Add more nvlist man pages to obsolete files
jmg [Sat, 20 Jun 2015 07:49:08 +0000 (07:49 +0000)]
add SO_REUSEADDR when starting debug port, lets you still bind when
a TIME_WAIT socket is still around...
Reviewed by: grehan
Review: https://reviews.freebsd.org/D2875
antoine [Sat, 20 Jun 2015 07:42:54 +0000 (07:42 +0000)]
Fix a few obsolete files entries, man pages must be listed compressed
antoine [Sat, 20 Jun 2015 07:35:02 +0000 (07:35 +0000)]
Add some files to remove when MK_BSD_GREP=no
mav [Sat, 20 Jun 2015 07:33:06 +0000 (07:33 +0000)]
Remove some dead and duplicate LUN enabling code.
dchagin [Sat, 20 Jun 2015 05:40:35 +0000 (05:40 +0000)]
Add EPOLLRDHUP support.
Tested by: abi at abinet dot ru
imp [Sat, 20 Jun 2015 04:48:53 +0000 (04:48 +0000)]
Use ofw_bus_find_child_device_by_phandle to see if the child we're
adding already exists and if so just return that. The typical use case
is from identify routines, which shouldn't be adding multiple copies
of the same phandle_t to the gpiobus. Only one per phandle_t is needed
(or expected by the current code).
Differential Revision: https://reviews.freebsd.org/D2871
imp [Sat, 20 Jun 2015 04:48:48 +0000 (04:48 +0000)]
Add ofw_bus_find_child_by_phandle, a helper routine to find a device_t
child matchig a given phandle_t.
Differential Revision: https://reviews.freebsd.org/D2871
marcel [Sat, 20 Jun 2015 04:02:33 +0000 (04:02 +0000)]
Add support for the Intel Atom E3800 series SoC (aka Bay Trail).
Sponsored by: XipLink, Inc
mav [Sat, 20 Jun 2015 03:40:19 +0000 (03:40 +0000)]
Remove device queue freeze handling and replace it with dummy.
At this point CTL has no known use case for device queue freezes.
Same time existing (considered to be broken) code was found to cause
modify-after-free issues.
Discussed with: ken
MFC after: 1 week
bapt [Sat, 20 Jun 2015 00:17:57 +0000 (00:17 +0000)]
Use .CURDIR in soelim's include path instead of SRCDIR
This fixes build when a user has defined SRCDIR in make.conf as required by
some ports
bapt [Sat, 20 Jun 2015 00:13:28 +0000 (00:13 +0000)]
Readd merge.awk forgotten while importing the old vi documentation directly into
the tree.
Do not rely on SRCDIR to find the merge.awk script but use .CURDIR
Fix a long standing bug making the generated documents never including the index
cperciva [Sat, 20 Jun 2015 00:02:03 +0000 (00:02 +0000)]
Refactor xbd_queue_cb, extracting the code which converts bus_dma segments
into blkif segments, and moving it into a new function. This will be used
by upcoming support for indirect-segment blkif requests.
This commit should not result in any functional changes.
gjb [Fri, 19 Jun 2015 23:03:05 +0000 (23:03 +0000)]
Fix path to waagent.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
jmg [Fri, 19 Jun 2015 22:42:26 +0000 (22:42 +0000)]
change the KASSERT so it is meaningful, var is unsigned, so even
when it wraps, it's still >= 0...
Reported by: Coverity
CID: 1017564
cperciva [Fri, 19 Jun 2015 22:40:58 +0000 (22:40 +0000)]
Minor clean up to xbd_queue_cb:
* nsegs must be at most BLKIF_MAX_SEGMENTS_PER_REQUEST (since we specify
that limit to bus_dma_tag_create), so KASSERT that rather than silently
adjusting the request.
* block_segs is now a synonym for nsegs, so garbage collect that variable.
* nsegs is never read during or after the while loop, so remove the dead
decrement from the loop.
These were all left behind from the pre-r284296 support for a "segment
block" extension.
sobomax [Fri, 19 Jun 2015 22:24:58 +0000 (22:24 +0000)]
Provide bug4bug workaround for certain dumbiness of the u-boot's API_env_enum
function, which is expected to set returned env to NULL upon reaching the end
of the environment list but fails to do so in certain cases. The respective
u-boot code looks like the following (HEAD at the time of this commit):
--- api.c ---
496 static int API_env_enum(va_list ap)
...
510 *next = last;
511
512 for (i = 0; env_get_char(i) != '\0'; i = n + 1) {
513 for (n = i; env_get_char(n) != '\0'; ++n) {
514 if (n >= CONFIG_ENV_SIZE) {
515 /* XXX shouldn't we set *next = NULL?? */
516 return 0;
517 }
518 }
-------------
The net result is that any unfortunate user of the loader's ub_env_enum()
function hitting this condition would be trapped in the infinite loop, as
the main use pattern of ub_env_enum() is basically the following:
while ((env = ub_env_enum(env)) != NULL) { DO STUFF }
Which would stuck forever with the last element.
tuexen [Fri, 19 Jun 2015 21:55:12 +0000 (21:55 +0000)]
Fix two KTRACE related bugs.
Reported by: Coverity
CID: 1018058, 1018060
MFC after: 3 days
gallatin [Fri, 19 Jun 2015 21:40:26 +0000 (21:40 +0000)]
Fix typo in baudrate initialization that was causing ixl to be seen as
a 4GbE NIC, rather than a 40GbE NIC.
Reviewed by: Eric Joyner <eric.joyner@intel.com>
MFC after: 3 days
Sponsored by: Netflix
delphij [Fri, 19 Jun 2015 21:35:56 +0000 (21:35 +0000)]
Fix markups and change e.g./eg. to e.g.,.
MFC after: 2 weeks
delphij [Fri, 19 Jun 2015 21:35:24 +0000 (21:35 +0000)]
Fix markups.
MFC after: 2 weeks
dteske [Fri, 19 Jun 2015 21:32:20 +0000 (21:32 +0000)]
Interim fix for "Login not found" error.
PR: bin/196514
MFC after: 3 days
X-MFC-to: stable/10
imp [Fri, 19 Jun 2015 21:30:45 +0000 (21:30 +0000)]
Back out contested change until dispute is resolved. This proved to be
more contentious than I expected.
delphij [Fri, 19 Jun 2015 21:26:06 +0000 (21:26 +0000)]
Document kern.cam.ada.legacy_aliases, while I'm there also fix some typos.
MFC after: 2 weeks
sbruno [Fri, 19 Jun 2015 20:35:17 +0000 (20:35 +0000)]
Remove uneeded NULL check since malloc the malloc is now M_WAITOK
Submitted by: mjg
sbruno [Fri, 19 Jun 2015 19:57:39 +0000 (19:57 +0000)]
Must have one of either M_WAITOK or M_NOWAIT, read the man page bruno.
Submitted by: mjg
tuexen [Fri, 19 Jun 2015 19:36:29 +0000 (19:36 +0000)]
Don't leak sockets.
Reported by: Coverity
CID: 1306785
MFC after: 3 days
sbruno [Fri, 19 Jun 2015 18:57:36 +0000 (18:57 +0000)]
Feedback from commit r284535
davide: imgact_binmisc_clear_entry() needs to use atomic ops to remove
the enable bit.
kib: M_NOWAIT is not warranted and comment is invalid.
sjg [Fri, 19 Jun 2015 17:34:59 +0000 (17:34 +0000)]
sx_sunlock for sx_slock
sjg [Fri, 19 Jun 2015 17:19:20 +0000 (17:19 +0000)]
filemon_pid_check needs to hold proctree_lock
Reviewed by: kib
MFC after: few days
sobomax [Fri, 19 Jun 2015 17:00:36 +0000 (17:00 +0000)]
Fix bug in the ubldr introduced in the rev.283035. The new code
fails to properly consider memory regions when the loader is
located below of those regions or engulfs their lower limit. This
results in "not enough RAM to load kernel" panic, which is totally
bogus. On top of that, there are some variables that can be left
unitialized in those cases, which might cause it fail with memory
access violation instead of panic while trying to load kernel to
a wrong or non-existing address of memory.
Augment the code to properly deal with the loader being below or
at the lower bound of the memory region in question. Also, don't
leave ununitialized variables behind.
Reviewed by: ian
sjg [Fri, 19 Jun 2015 14:56:24 +0000 (14:56 +0000)]
Move include of make.conf back to its old position.
This means moving include of local.sys.mk and src.sys.mk too.
Introduce new includes to take the early slot, for the purpose
of being able to influence toolchains and the like.
Differential Revision: D2860
Reviewed by: imp
bapt [Fri, 19 Jun 2015 14:20:21 +0000 (14:20 +0000)]
Fix fallouts from r284590
Reported by: kib
tuexen [Fri, 19 Jun 2015 12:48:22 +0000 (12:48 +0000)]
When setting the primary address, return an error whenever it fails.
MFC after: 3 days
hselasky [Fri, 19 Jun 2015 09:37:37 +0000 (09:37 +0000)]
Regenerate usb.conf .
MFC after: 1 week
kib [Fri, 19 Jun 2015 07:25:15 +0000 (07:25 +0000)]
Restore the td_cookie value for the tmpfs directory entry which was a
dup entry, upon detach from the parent directory. If the node is
renamed, the entry is re-attached at the different directory, and
invalud cookie value triggers assert (or corrupts directory rb tree,
it seems).
Reported by: clusteradm (gjb, antoine)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
avg [Fri, 19 Jun 2015 06:58:05 +0000 (06:58 +0000)]
MFV r284412: 5911 ZFS "hangs" while deleting file
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Reviewed by: Alek Pinchuk <alek@nexenta.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Matthew Ahrens <mahrens@delphix.com>
illumos/illumos-gate@
46e1baa6cf6d5432f5fd231bb588df8f9570c858
https://www.illumos.org/issues/5911
Sometimes ZFS appears to hang while deleting a file. It is actually
making slow progress at the file deletion, but other operations
(administrative and writes via the data path) "hang" until the file
removal completes, which can take a long time if the file has many
blocks. The deletion (or most of it) happens in a single txg, and the
sync thread spends most of its time reading indirect blocks via this
stack trace:
swtch+0x141()
cv_wait+0x70()
zio_wait+0x5b()
dbuf_read+0x2c0()
free_children+0x50()
free_children+0x12a()
free_children+0x12a()
free_children+0x12a()
dnode_sync_free_range_impl+0xdf()
dnode_sync_free_range+0x52()
range_tree_vacate+0x65()
dnode_sync+0x1d8()
dmu_objset_sync_dnodes+0x77()
dmu_objset_sync+0x19f()
dsl_dataset_sync+0x51()
dsl_pool_sync+0x9a()
spa_sync+0x2ff()
txg_sync_thread+0x21f()
thread_start+8()
One way to reproduce the problem is if we are over the arc_meta_limit,
e.g. because lots of indirect blocks are pinned because we have L0
dbufs under them. It could be that most of the L1 indirects are cached,
in which case when dmu_free_long_range_impl() calls dmu_tx_hold_free(),
it will complete very quickly. This allows dmu_free_long_range_impl() to
put many (perhaps all of its) transactions in the same TXG. However,
dmu_free_long_range_impl() calls dnode_evict_dbufs (and
dnode_free_range()), which removes the L0 dbufs, thus reducing the hold
count on the L1 indirect blocks above it, allowing them to be evicted.
Because we are over the arc_meta_limit(), these L1 blocks will be
evicted ASAP. Thus when we get to syncing context, the L1 indirects are
no longer cached and must be read in.
Obtained from: illumos
MFC after: 15 days
hselasky [Fri, 19 Jun 2015 06:48:55 +0000 (06:48 +0000)]
Add USB gold driver to default kernel build.
avg [Fri, 19 Jun 2015 06:41:53 +0000 (06:41 +0000)]
illums compat: use flsl/flsll for highbit/highbit64
Do that only when when fast inline versions are available.
At the moment that can be the case only in the kernel and not for all
platforms.
The original code uses the binary search and that's kept as a fallback.
This is a micro optimization.
Differential Revision: https://reviews.freebsd.org/D2839
Reviewed by: delphij, mahrens, mav
MFC after: 17 days
bapt [Fri, 19 Jun 2015 05:42:24 +0000 (05:42 +0000)]
Install loader(8) and zfsloader(8) only once
Differential Revision: https://reviews.freebsd.org/D2841
Reviewed by: imp
allanjude [Fri, 19 Jun 2015 05:09:02 +0000 (05:09 +0000)]
Add the ability to detect ZFS and GELI encrypted file systems to fstyp(8)
Functionality is hidden behind the -u flag to avoid confusing automounters
PR: 200823
Reviewed by: asomers, eadler, wblock (man page)
Approved by: trasz
MFC after: 10 days
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2045
adrian [Fri, 19 Jun 2015 01:44:17 +0000 (01:44 +0000)]
First cut at attempting to buffer frames until we see a beacon.
The iwn(4) firmware forgets most of its channel state after an RXON
command. This means that any beacons its seen on passive 5GHz channels
are forgotten upon an association/authorisation request.
This unfortuantely means that 5GHz association almost always fails -
the assoc and/or auth frames are dropped with a status of "passive
channel, haven't seen a beacon yet." (0x90.)
So:
* add an xmit queue, global, to buffer frames
* modify the xmit path to use the mbuf tag from net80211
to specify raw frame details
* buffer xmit frames from both raw and non-raw paths
* if a beacon is seen in the RX path, schedule a taskqueue to
send said frames and un-buffer things.
* flush frames during state change back to INIT, or NIC
down/up/detach.
This isn't the final shape I'd like this to be in but it certainly
is better than 5GHz "not working at all".
Tested:
* Intel 5100, STA mode (before spilling coffee)
* Intel 5300, STA mode (after spilling coffee)
Story:
* This has been bugging me at work for months, which I just
worked around by throwing an ath(4) into my Lenovo T400 cardbus
slot.
* Our ops director discovered indeed FreeBSD runs well on the
Lenovo T420p, except for that pesky 5GHz thing. So now developers
also can have a T420p running FreeBSD to do work with.
Their #1 feedback to me - "boy it'd be nice if 5GHz wifi worked."
* .. then, I was at NANOG but stuck with 5GHz only wifi and no ath(4)
NIC to put in a laptop - and I snapped.
Thus, the reason this is actually work related.
MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.
adrian [Fri, 19 Jun 2015 01:21:10 +0000 (01:21 +0000)]
Add in library routines not supplied by gcc-4.9 but required by the kernel.
Reviewed by: imp
rpaulo [Fri, 19 Jun 2015 00:10:30 +0000 (00:10 +0000)]
Synaptics: fix a problem with trackpoint passthrough.
There was a inconsistency which led to enable passthrough commands
being interpreted as actual touchpad commands.
Submitted by: Jan Kokemüller <jan.kokemueller at gmail.com>
MFC after: 1 week
jkim [Thu, 18 Jun 2015 23:14:45 +0000 (23:14 +0000)]
trasz [Thu, 18 Jun 2015 21:55:55 +0000 (21:55 +0000)]
Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
a single space (" ") as a CD9660 label name when no label was present.
Similar problem was also present in msdosfs label recognition.
PR: 200828
Differential Revision: https://reviews.freebsd.org/D2830
Reviewed by: asomers@, emaste@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
jkim [Thu, 18 Jun 2015 21:18:43 +0000 (21:18 +0000)]
Fix a typo introduced in r262209.
MFC after: 3 days
gjb [Thu, 18 Jun 2015 19:20:00 +0000 (19:20 +0000)]
Add Makefile.azure, used to upload VHD images to the
Microsoft Azure environment, similar to the EC2 AMIs.
MFC after: 3 days
Tested with: stable/10@r284517 (patched)
Sponsored by: The FreeBSD Foundation
ae [Thu, 18 Jun 2015 18:28:38 +0000 (18:28 +0000)]
Fix possible use after free in encap[46]_input().
There is small window, when encap_detach() can free matched entry
directly after we release encapmtx. Instead of use pointer to the
matched entry, save pointers to needed variables from this entry
and use them after release mutex.
Pass argument stored in the encaptab entry to encap_fillarg(), instead
of pointer to matched entry. Also do not allocate new mbuf tag, when
argument that we plan to save in this tag is NULL.
Also make encaptab variable static.
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
jkim [Thu, 18 Jun 2015 17:27:40 +0000 (17:27 +0000)]
gonzo [Thu, 18 Jun 2015 16:51:49 +0000 (16:51 +0000)]
Add missing driver for TDA19988 HDMI framer
brueffer [Thu, 18 Jun 2015 16:31:32 +0000 (16:31 +0000)]
Document title should be in CAPS.
brueffer [Thu, 18 Jun 2015 16:29:11 +0000 (16:29 +0000)]
Remove EOL whitespace.
emaste [Thu, 18 Jun 2015 14:29:46 +0000 (14:29 +0000)]
Update libcxxrt upgrade instructions
The typeinfo file no longer exists upstream.
marius [Thu, 18 Jun 2015 14:13:16 +0000 (14:13 +0000)]
Fix yet another comment typo in NetBSD rev. 1.16, missed when merging
it in r284447.
Submitted by: yongari
Sponsored by: genua mbh
emaste [Thu, 18 Jun 2015 14:12:08 +0000 (14:12 +0000)]
Import libcxxrt master
e64e93fe5bba67a6d52cbe5a97f8770c054bfa65.
This includes a number of demangler fixes obtained from upstream
ELF Tool Chain.
PR: 200913
Sponsored by: The FreeBSD Foundation
tuexen [Thu, 18 Jun 2015 13:45:07 +0000 (13:45 +0000)]
Fix a bug reported by coverity. Since AF_UNIX sockets don't
have multiple addresses, the problem didn't show up during testing.
Reported by: Coverity
CID: 1306787
adrian [Thu, 18 Jun 2015 13:40:08 +0000 (13:40 +0000)]
Fix compilation of this macro under gcc-4.9 for MIPS32.
Some point after gcc-4.2 the MIPS inline assembly restrictions changed -
=h (hi register) disappeared from the list of restrictions and can no
longer be used.
So, until someone requires an assembly version of this function,
just use a non-assembly version and let the compiler sort it out.
Suggested by: kan
br [Thu, 18 Jun 2015 10:33:04 +0000 (10:33 +0000)]
Remove duplicate defines.
Sponsored by: HEIF5
gjb [Thu, 18 Jun 2015 10:26:27 +0000 (10:26 +0000)]
Increase the FreeBSD/arm image sizes back to 1G for 11-CURRENT.
While 480M is sufficient for 10-STABLE, 11-CURRENT images at
this size fail due to insufficient space.
This commit is solely for the sake of getting updated snapshot
builds out, after which I'll analyze the resulting images to
figure out what a more sane value is, even if the image size
for 11-CURRENT needs to differ from 10-STABLE.
Sponsored by: The FreeBSD Foundation
trasz [Thu, 18 Jun 2015 10:17:47 +0000 (10:17 +0000)]
Allow '@' in unquoted strings, such as with the "path" statement. Note
that one can use any character they like by using double quotes.
PR: 200895
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
mav [Thu, 18 Jun 2015 09:39:51 +0000 (09:39 +0000)]
Change ATIO/INOT counting to prevent periph destruction while requests
are still running inside CTL.
MFC after: 1 week
mav [Thu, 18 Jun 2015 07:50:27 +0000 (07:50 +0000)]
In case of target mode disable at least ISP2532 return invalid zero
ct_rxid value on CTIO completion. Try to workaround that using tag_id
from the CCB, pointed by still valid ct_syshandle.
I don't know whether this is valid fix or dirty hack, but considering that
alternative is indefinitely stuck command -- it worth trying.
MFC after: 1 week
neel [Thu, 18 Jun 2015 06:00:17 +0000 (06:00 +0000)]
Restructure memory allocation in bhyve to support "devmem".
devmem is used to represent MMIO devices like the boot ROM or a VESA framebuffer
where doing a trap-and-emulate for every access is impractical. devmem is a
hybrid of system memory (sysmem) and emulated device models.
devmem is mapped in the guest address space via nested page tables similar
to sysmem. However the address range where devmem is mapped may be changed
by the guest at runtime (e.g. by reprogramming a PCI BAR). Also devmem is
usually mapped RO or RW as compared to RWX mappings for sysmem.
Each devmem segment is named (e.g. "bootrom") and this name is used to
create a device node for the devmem segment (e.g. /dev/vmm/testvm.bootrom).
The device node supports mmap(2) and this decouples the host mapping of
devmem from its mapping in the guest address space (which can change).
Reviewed by: tychon
Discussed with: grehan
Differential Revision: https://reviews.freebsd.org/D2762
MFC after: 4 weeks
bapt [Thu, 18 Jun 2015 05:58:15 +0000 (05:58 +0000)]
The build and installation of rmail(8) is only related to the SENDMAIL option
bapt [Thu, 18 Jun 2015 05:54:04 +0000 (05:54 +0000)]
Do not remove mailwrapper(8) in case WITHOUT_SENDMAIL is used
It is required for other tools in base and/or ports like dma(8) or any MTA
available in ports. It is also build and installed anyway even if world is built
WITHOUT_SENDMAIL
sbruno [Thu, 18 Jun 2015 02:04:20 +0000 (02:04 +0000)]
This change replaces the mutex with a sx lock for the interpreter list to
avoid the problem of holding a non-sleep lock during a page fault as
reported by witness. It also uses atomics where possible to avoid having
to acquire the exclusive lock. In addition, it consistently uses
memset()/memcpy() instead of bzero()/bcopy().
Differential Revision: https://reviews.freebsd.org/D1971
Submitted by: sson
Reviewed by: jhb
gonzo [Thu, 18 Jun 2015 00:57:52 +0000 (00:57 +0000)]
Add HDMI support to Beaglebone Black:
- Add driver for TDA19988 HDMI framer
- Add simple interface to communicate with HDMI sink: read EDID and set videomode
- Add event-based API to notify LCD controller when HDMI sink is available
- Add HDMI framer node and add refernce to it to lcdc node. This part of
DTS tree is custom and does not match Linux DTS because Linux uses
combination of pseudo-node in DTS and hardcoded driver information
that does not map to our model.
gonzo [Thu, 18 Jun 2015 00:22:14 +0000 (00:22 +0000)]
Add hskew field to struct videomode. It is required by some controllers
that are not 100% VESA-compatible (e.g. TDA19988 HDMI framer)
gonzo [Wed, 17 Jun 2015 23:26:00 +0000 (23:26 +0000)]
- Add clk_set_source_freq field to struct ti_clock_dev so clock device
consumers can configure clock frequency
- Add ti_prcm_clk_set_source_freq wrapper for clk_set_source_freq
- Add am335x_clk_set_arm_disp_freq function to control pixel clock
frequency for LCD and HDMI output. Both of them are sensitive
to frequency skews and we need to get pixel clock matching requested
frequency as close to possible
rmacklem [Wed, 17 Jun 2015 23:24:46 +0000 (23:24 +0000)]
Document that a forced dismount of an NFSv3 mount when the
NLM (rpc.lockd) is running can crash the system.
Unfortunately this is not easy to fix, but I have left
PR#200585 open.
PR: 200585
MFC after: 3 days
glebius [Wed, 17 Jun 2015 22:44:27 +0000 (22:44 +0000)]
o Un-inline vm_pager_get_pages(), vm_pager_get_pages_async().
o Provide an extensive set of assertions for input array of pages.
o Remove now duplicate assertions from different pagers.
Sponsored by: Nginx, Inc.
Sponsored by: Netflix
imp [Wed, 17 Jun 2015 22:06:27 +0000 (22:06 +0000)]
Bump date.
Submitted by: Xin Li
imp [Wed, 17 Jun 2015 21:25:36 +0000 (21:25 +0000)]
Update style.9 to reflect consensus on developer's mailing list
allowing redundant braces.
Differential Revision: https://reviews.freebsd.org/D2842
tuexen [Wed, 17 Jun 2015 19:26:23 +0000 (19:26 +0000)]
Fix a bug related to flow assignment I introduce in
https://svnweb.freebsd.org/base?view=revision&revision=275483
MFC after: 3 days
avg [Wed, 17 Jun 2015 17:16:06 +0000 (17:16 +0000)]
Revert r284511 because it caused build failures on many platforms
The problem is that when inline versions of flsl and flsll are not
available, then libkern.h must be included for their declarations
in kernel sources.
The fix would be trivial, but I would like to figure out first if
it even makes sense to use the libkern provided implementations.
Reported by: bz
Pointyhat to: avg
jkim [Wed, 17 Jun 2015 17:11:44 +0000 (17:11 +0000)]
Remove all internal macros and cast various invocations as necessary.
https://github.com/acpica/acpica/commit/47d22a7
tuexen [Wed, 17 Jun 2015 15:20:14 +0000 (15:20 +0000)]
Add FIB support for SCTP.
This fixes https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200379
MFC after: 3 days
bz [Wed, 17 Jun 2015 13:15:54 +0000 (13:15 +0000)]
Initialise pr_enforce_statfs from the "default" sysctl value and
not from the compile time constant. The sysctl value is seeded
from the compile time constant.
MFC after: 2 weeks
avg [Wed, 17 Jun 2015 12:28:13 +0000 (12:28 +0000)]
l2arc: pass correct size to trim requests
b_size is a logical size of a buffer in memory, b_asize is its physical
size that accounts for possible compression.
Currently the latter is the best approximation for the allocated, on-disk
size.
L2ARC TRIM support was committed a few weeks before L2ARC compression
was imported, so originally the code was correct, because b_size was
the size.
Further thoughts. Given that the cache device is being overwritten
in a circular fashion it is not clear if a TRIM per each evicted L2ARC
buffer has any benefits.
Maybe it would be sufficient to issue a single trim request for the whole
device when it is loaded, e.g. after a bootup, or when it is unloaded, e.g.
before a shutdown. At least as long as L2ARC is not persistent across
reboots.
Discussed with: smh
MFC after: 19 says
eri [Wed, 17 Jun 2015 12:23:04 +0000 (12:23 +0000)]
If there is a system with a bpf consumer running and a packet is wanted
to be transmitted but the arp cache entry expired, which triggers an arp request
to be sent, the bpf code might want to sleep but crash the system due
to a non sleep lock held from the arp entry not released properly.
Release the lock before calling the arp request code to solve the issue
as is done on all the other code paths.
PR: 200323
Approved by: ae, gnn(mentor)
MFC after: 1 week
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D2828
avg [Wed, 17 Jun 2015 12:05:04 +0000 (12:05 +0000)]
illumos compat: use flsl/flsll for highbit/highbit64
This is a micro optimization.
The upstream code uses the binary search.
Differential Revision: https://reviews.freebsd.org/D2839
Reviewed by: delphij, mav
MFC after: 15 days
bz [Wed, 17 Jun 2015 10:20:59 +0000 (10:20 +0000)]
Correct the function name in catch-all error handling case.
MFC after: 1 week
kib [Wed, 17 Jun 2015 04:46:58 +0000 (04:46 +0000)]
vfs_msync(), called from syncer vnode fsync VOP, only iterates over
the active vnode list for the given mount point, with the assumption
that vnodes with dirty pages are active. This is enforced by
vinactive() doing vm_object_page_clean() pass over the vnode pages.
The issue is, if vinactive() cannot be called during vput() due to the
vnode being only shared-locked, we might end up with the dirty pages
for the vnode on the free list. Such vnode is invisible to syncer,
and pages are only cleaned on the vnode reactivation. In other words,
the race results in the broken guarantee that user data, written
through the mmap(2), is written to the disk not later than in 30
seconds after the write.
Fix this by keeping the vnode which is freed but still owing
inactivation, on the active list. When syncer loops find such vnode,
it is deactivated and cleaned by the final vput() call.
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
kan [Wed, 17 Jun 2015 04:26:48 +0000 (04:26 +0000)]
Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''.
File names are in current locale as well.
marcel [Wed, 17 Jun 2015 03:12:08 +0000 (03:12 +0000)]
Unbreak ``env LANG=ru_RU.KOI8-R ls -l''.
Time strings are in the current locale.
acm [Wed, 17 Jun 2015 02:43:20 +0000 (02:43 +0000)]
- Add acm@ entry
allanjude [Tue, 16 Jun 2015 23:57:29 +0000 (23:57 +0000)]
Add compatibility with $2y$ bcrypt hashes
crypt_blowfish and many implementations based on it (Apache, PHP, PostgreSQL) implemented $2y$ before OpenBSD went with $2b$. This changes marks them as equivalent.
http://www.openwall.com/lists/announce/2011/07/17/1
This change is required for applications that use the base crypt() implementation (including nginx) to be able to validate $2y$ hashes
Reviewed by: eadler
Approved by: delphij
MFC after: 1 week
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2742