205729 Commits

Author SHA1 Message Date
loos
8e5fb35624 Add support to turn off Beaglebone with poweroff(8) or shutdown(8) -p.
To cut off the power we need to start the shutdown sequence by writing
the OFF bit on PMIC.

Once the PMIC is programmed the SoC needs to toggle the PMIC_PWR_ENABLE
pin when it is ready for the PMIC to cut off the power.  This is done by
triggering the ALARM2 interrupt on SoC RTC.

The RTC driver only works in power management mode which means it won't
provide any kind of time keeping functionality.  It only implements a way
to trigger the ALARM2 interrupt when requested.

Differential Revision:	https://reviews.freebsd.org/D1489
Reviewed by:	rpaulo
MFC after:	2 weeks
2015-01-12 03:23:16 +00:00
emaste
17bc7b8765 Add ELF Tool Chain release notes
Most recent import in r276398 and switch to ELF Tool Chain tools by
default in r276796.

Reviewed by:	gjb
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1501
2015-01-12 03:06:29 +00:00
ian
8ba6450bef Handle dma mappings with more than one segment for rpi sdhci.
The driver inherently does dma in 512 byte chunks, but it's possible that
such a buffer can span two physically discontiguous pages (such as when
a userland program does IO on the raw /dev/mmcsdN devices).  Now the driver
can handle a buffer that's split across two pages.

It could in theory handle any number of segments now, but as long as IO is
being done in 512 byte blocks it will never need more than two.
2015-01-12 02:42:33 +00:00
ian
e99b3a8d1a Enable ALT_BREAK_TO_DEBUGGER for rpi. 2015-01-12 02:29:23 +00:00
gjb
2eeb1230c4 Split the <orgname> tag out of being a single-line.
Sponsored by:	The FreeBSD Foundation
2015-01-12 02:10:45 +00:00
gjb
a6f2877d5a Document r276881, libedit UTF-8 support and sh(1) unicode
support.

Sponsored by:	The FreeBSD Foundation
2015-01-12 02:08:13 +00:00
tuexen
b7186e1b6e Remove dead code.
Reported by:	Coverity
CID:		748663
MFC after:	1 week
2015-01-11 22:49:20 +00:00
tuexen
f30e2ae152 Remove dead code.
Reported by:	Coverity
CID:		748660, 748661
MFC after:	1 week
2015-01-11 22:23:39 +00:00
kib
aa476ee143 Reduce the size of the interposing table and amount of
cancellation-handling code in the libthr.  Translate some syscalls
into their more generic counterpart, and remove translated syscalls
from the table.

List of the affected syscalls:
creat, open -> openat
raise -> thr_kill
sleep, usleep -> nanosleep
pause -> sigsuspend
wait, wait3, waitpid -> wait4

Suggested and reviewed by:	jilles (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-01-11 22:16:31 +00:00
tuexen
cdb24d0c72 Remove dead code.
Reported by:	Coverity
CID:		748665
MFC after:	1 week
2015-01-11 21:55:30 +00:00
tuexen
78bec32537 Remove dead code.
Reported by:	Coverity
CID:		748666
MFC after:	1 week
2015-01-11 21:44:56 +00:00
ian
fa39733c3f Check for and handle failures of bus_dmamap_load(). The driver currently
requires that each 512 byte IO be in a single contiguous buffer, but if a
buffer crosses a page boundary and the physical pages aren't contiguous
you can get an EFBIG failure (too many segments).

The driver really should handle multiple segment IO, but before adding that
I wanted to make sure that it's handling failure properly while the failure
is easily recreatable.
2015-01-11 21:27:46 +00:00
ian
3dadde3823 Handle the possibility that SDHCI_PLATFORM_START_TRANSFER() can fail, by
moving the handling of curcmd->error != 0 to the end of the interrupt
handler.  Also make sdhci_finish_data() idempotent by moving the setting
of slot->data_done = 1 down past the point where the busdma buffer is
unmapped.  This allows for the possibility that the finish routine can
get called from multiple places when handling errors.
2015-01-11 21:25:03 +00:00
ian
b0834e3103 Rate-limit error logging to 5 lines per second, so that when an sdcard
goes bad it doesn't lock up the console with continuous output.
2015-01-11 20:55:16 +00:00
ian
f0876ef9ac Fix an off by one in ppsratecheck(). If you asked for N=1 you'd get one,
but for any N>1 you'd get N-1 packets/events per second.
2015-01-11 20:48:29 +00:00
kib
5757b9b9b2 Right now, for non-coherent DMARs, page table update code flushes the
cache for whole page containing modified pte, and more, only last page
in the series of the consequtive pages is flushed (i.e. the affected
mappings should be larger than 2MB).

Avoid excessive flushing and do missed neccessary flushing, by
splitting invalidation and unmapping.  For now, flush exactly the
range of the changed pte.  This is still somewhat bigger than
neccessary, since pte is 8 bytes, while cache flush line is at least
32 bytes.

The originator of the issue reports that after the change,
'dmar_bus_dmamap_unload went from 13,288 cycles down to
3,257. dmar_bus_dmamap_load_buffer went from 9,686 cycles down to
3,517.  and I am now able to get line 1GbE speed with Netperf TCP
(even with 1K message size).'

Diagnosed and tested by:	Nadav Amit <nadav.amit@gmail.com>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-01-11 20:27:15 +00:00
gjb
bbb557713e Fix ordering by SVN revision.
Sponsored by:	The FreeBSD Foundation
2015-01-11 20:07:07 +00:00
gjb
c6309d1014 Document r271539, bsdinstall(8) parition editor and sade(8)
now support ZFS natively.

Sponsored by:	The FreeBSD Foundation
2015-01-11 20:04:35 +00:00
gjb
81de0526e8 Fix the release notes article.xml file to confirm with
FDP style, specifically reindenting the entire file for
tag alignment, rewrapping lines where necessary.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:28 +00:00
gjb
2aed6b9b42 Add a comment in the release notes XML file to note the
last revision, to make it easier to keep track of where
the last update(s) left off.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:25 +00:00
gjb
26d9069534 Document r276551, texinfo and info page removal.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:23 +00:00
gjb
41a05c3836 Document r275963, CPU frequency/voltage control driver for
RPI.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:20 +00:00
gjb
cae81f64c0 Document r275874, bsdinstall(8) now uses dpv(3) when extracting
the distribution packages.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:17 +00:00
gjb
9cacff6267 Document r275748, arc_meta_limit now exposed through kernel
statistics.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:15 +00:00
gjb
e05dcfab5a Document r275732, OpenCrypto support for AES-ICM and AES-GCM.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:12 +00:00
gjb
59403fb87a Document r275718, binutils PowerPC relocations update.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:09 +00:00
gjb
6c4f609533 Fix indentation for r270096 entry.
While here, remove the leading 'r' from the revision tag.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:07 +00:00
gjb
cd09caf486 Document r275680, fstyp(8) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:04 +00:00
gjb
711044a22d Document r275461, CTL port/LUN limits increased.
Add iXsystems to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:01 +00:00
gjb
e19b1097f8 Document r275299, mrouted rc(8) script removal from base.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:58 +00:00
gjb
786f3de4fa Document r275171, r275190: hpwmc(4) performance counter
sampling fixes for G4 and G5 class processors.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:55 +00:00
gjb
e063790da9 Document r274987, gpio(3) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:52 +00:00
gjb
00665116cc Document r274960, elfdump(1) cap_limits support.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:49 +00:00
gjb
b2d4c1116e Document r274733, PMU power-button event support for certain
PowerBooks.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:47 +00:00
gjb
56043366c0 Document r274394, bsdconfig(8) skips initial tzetup(8) screen
if run within a VM.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:44 +00:00
gjb
d9ab9fc857 Document r274386, apci(4) and pci(4) fix for ACPI S3 state.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:41 +00:00
gjb
5cd085de0e Document r274246, gre(4) overhaul, me(4) addition.
Add Yandex LLC to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:38 +00:00
gjb
d95d8655c6 Document r274085, vt(4) is now default.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:35 +00:00
adrian
6211c8c929 Switch around the order of static inline to be in line with how it's
used elsewhere, and to keep gcc-4.7 happy.

This is a request from the DragonflyBSD project.
2015-01-11 18:43:45 +00:00
ian
a097accadf Store the shadow command/mode register in the softc, not a local static var.
Submitted by:	Michal Meloun
2015-01-11 17:00:24 +00:00
andrew
1b85e73844 Rename gic_init_secondary to arm_init_secondary_ic to help with the merge
of the arm_intrng project branch.
2015-01-11 16:46:43 +00:00
mav
dbc5bca893 When aggregating TRIM segments, move the new one to the list end.
New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.

MFC after:	2 weeks
2015-01-11 16:36:39 +00:00
hselasky
8b3e48c9c5 Remove no longer used "M_FLOWID" flag and update the netisr manpage.
This patch completes process started by r275358.

Sponsored by:	Mellanox Technologies
2015-01-11 16:15:31 +00:00
hselasky
2cb62f75ed Fix support for ConnectX2 hardware.
MFC after:	3 days
Sponsored by:	Mellanox Technologies
2015-01-11 15:00:08 +00:00
andrew
77e42966ca Rework the GIC driver to ease the import of the arm_intrng branch. The
common code has been pulled out to static functions.
2015-01-11 10:26:49 +00:00
bapt
20b777f8e8 Do not regenerate and install liblzma.pc when only build libraries
aka do not regenerate while generating 32bits libs

Reported by:	antoine
2015-01-11 09:25:01 +00:00
np
8b5dabe5de cxgb: replace r273280 with a more comprehensive fix.
Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.

MFC after:	1 week
2015-01-11 07:51:58 +00:00
mav
76f4c8c5ee Add LBA as secondary sort key for synchronous I/O requests.
On FreeBSD gethrtime() implemented via getnanouptime(), that has 1ms (1/hz)
precision.  It makes primary sort key (timestamp) collision very possible.
In such situations sorting by secondary key of LBA is much more reasonable
then by totally meaningless zio pointer value.

With this change on multi-threaded synchronous ZVOL read I've measured 10%
throughput increase and average latency reduction.

MFC after:	2 weeks
2015-01-11 00:26:18 +00:00
imp
8e1bb3f438 Use .MAKE.LEVEL being defined as a bootstrap aid when providing
fallback targets to build the aic generated files. fmake doesn't like
the current construct, and since it doesn't have .MAKE.LEVEL, just
don't provide the fallback targets for fmake. This gives a little
extra compatibility to old systems trying to build new kernels at
almost no cost to the current code.
2015-01-10 23:43:39 +00:00
imp
468944352a Take out some more no-error warnings, as the build is clean without
them.
2015-01-10 23:43:37 +00:00