Commit Graph

184406 Commits

Author SHA1 Message Date
jmallett
c9bf307c6b Use the right USB clock type on the EdgeRouter Lite. This fixes USB. 2013-01-02 23:29:54 +00:00
jmallett
3a218b6e8d Add basic support for the Ubiquiti EdgeRouter Lite.
Note that USB does not currently work, and the flash is connected via USB, so
local storage is not working.
2013-01-02 23:17:50 +00:00
jfv
661fe34689 Add Intel Lynx Point PCH SATA Controller Device IDs 2013-01-02 22:26:46 +00:00
jfv
ef7c36def0 Add Intel Lynx Point PCH SMBus Device IDs 2013-01-02 22:01:26 +00:00
jfv
5b8ff032da Add Intel Lynx Point PCH HD Audio Device IDs 2013-01-02 21:56:58 +00:00
jfv
fae2d9b093 Add support for new Intel Lynx Point PCH - Watchdog Timer Device IDs 2013-01-02 21:45:20 +00:00
delphij
2dfa3a3e47 Indicate that we are using OpenSSL with some local modifications.
X-MFC after:	with r244974
2013-01-02 21:00:00 +00:00
delphij
339eb8a5c4 MFV r244973:
Integrate OpenSSL changeset 22950 (appro):

        bn_word.c: fix overflow bug in BN_add_word.

MFC after:	2 weeks
2013-01-02 20:58:46 +00:00
adrian
c7de6a7866 Disable clang for athstats for now. 2013-01-02 18:49:40 +00:00
adrian
462f8d2008 Add missing err() format string. 2013-01-02 18:33:48 +00:00
adrian
19180edbd9 Fix missing err() format string. 2013-01-02 18:29:54 +00:00
adrian
48278ccb60 Fix some conversions to keep clang happy. 2013-01-02 18:29:11 +00:00
adrian
c3f438d7f8 Fix some clang warnings! 2013-01-02 18:26:32 +00:00
adrian
e2599129bc Fix up some warnings from clang.
This still triggers a bug in clang..
2013-01-02 18:21:24 +00:00
adrian
b01e424a2b Add missing err() format strings.
Thanks to: clang
2013-01-02 18:14:26 +00:00
adrian
61df60ab89 * Add missing err() string formats;
* Fix up a printf() type mismatch.

Thanks to: clang
2013-01-02 18:12:06 +00:00
adrian
0e8a98ac71 * Add missing format specifier for err()
* add missing exit(0)
* Fix some operator evaluation complaints.

Thanks to: clang
2013-01-02 18:09:30 +00:00
adrian
edb42d2f96 Fix some printf() formats.
Found by:	clang
2013-01-02 18:05:31 +00:00
adrian
8ca6035013 Fix incorrect format string. 2013-01-02 18:03:19 +00:00
nwhitehorn
1f71059493 Make sade actually be a symlink to partedit, as per the commit message in
r244859, rather than a hardlink. This fixes installation if /usr/sbin
is on a different filesystem than /usr/libexec.

Submitted by:	se
2013-01-02 13:25:11 +00:00
hselasky
d76f38bbdb Add missing dependancy.
Submitted by:	Michael Butler
MFC after:	1 week
2013-01-02 07:33:43 +00:00
adrian
6c49683490 Add a very skeletal spectral scan control application.
The main use for this is to manually trigger spectral scan operations
(athspectral -i athX start) whilst doing debugging.
2013-01-02 04:02:27 +00:00
adrian
8445fc8dbf Link if_ath_spectral.c into the build. 2013-01-02 04:00:54 +00:00
adrian
5fd18f70ab Add a new (skeleton) spectral mode manager module. 2013-01-02 03:59:02 +00:00
adrian
ab4b4becf0 Fix the short repeat option code to not flip the option to 0 when
we call this w/ NOVAL set.
2013-01-02 03:56:20 +00:00
adrian
8bf1984cd3 Add spectral HAL accessor methods. 2013-01-02 01:40:23 +00:00
adrian
5072c6621d Add a method to explicitly disable radar reporting if required. 2013-01-02 01:36:10 +00:00
adrian
def5e4786f Add missing update to link ar5416_spectral.c into the build. 2013-01-02 01:24:36 +00:00
adrian
b28c06734d Bring over the basic spectral scan framework code from Qualcomm Atheros.
This includes the HAL routines to setup, enable/activate/disable spectral
scan and configure the relevant registers.

This still requires driver interaction to enable spectral scan reporting.
Specifically:

* call ah_spectralConfigure() to configure and enable spectral scan;
* .. there's currently no way to disable spectral scan... that will have
  to follow.
* call ah_spectralStart() to force start a spectral report;
* call ah_spectralStop() to force stop an active spectral report.

The spectral scan results appear as PHY errors (type 0x5 on the AR9280,
same as radar) but with the spectral scan bit set (0x10 in the last byte
of the frame) identifying it as a spectral report rather than a radar
FFT report.

Caveats:

* It's likely quite difficult to run spectral _and_ radar at the same
  time.  Enabling spectral scan disables the radar thresholds but
  leaves radar enabled.  Thus, the driver (for now) needs to ensure
  that only one or the other is enabled.

* .. it needs testing on HT40 mode.

Tested:

* AR9280 in STA mode, HT/20 only

TODO:

* Test on AR9285, AR9287;
* Test in both HT20 and HT40 modes;
* .. all the driver glue.

Obtained from:	Qualcomm Atheros
2013-01-02 00:38:01 +00:00
rwatson
96cc82a0b4 Merge @219932 from Perforce:
FDT headers can't be included if the kernel is compiled without
  FDT support, due to dependence on generated kobj headers.  BERI
  supports both FDT and non-FDT kernels.

  Spotted by:	bz
2013-01-01 19:42:06 +00:00
pfg
ea3d415343 libedit: bind the correct command when using "bind -k".
"ed-argument-digit" (i. e. command 0) was incorrectly used
instead.
This bug comes from the original sources imported in 1994
and has been confirmed in upstream NetBSD.

Reported by:	Yamagi Burmeister
Submitted by:	Christoph Mallon
MFC after:	3 days
2013-01-01 19:20:51 +00:00
kientzle
f78ae91218 Overhauled CPSW driver for TI CPSW Ethernet module
(as used in AM335x SoC for BeagleBone).

Among other things:
 * Watchdog reset doesn't hang the driver.
 * Disconnecting cable doesn't hang the driver.
 * ifconfig up/down doesn't hang the driver
 * Out-of-memory no longer panics the driver.

Known issues:
 * Doesn't have good support for fragmented packets
   (calls m_defrag() on TX, assumes RX packets are never fragmented)
 * Promisc and allmulti still unimplimented
 * addmulti and delmulti still unimplemented
 * TX queue still stalls (but watchdog now consistently recovers in ~5s)
 * No sysctl monitoring
 * Only supports port0
 * No switch configuration support
 * Not tested on anything but BeagleBone

Committed from: BeagleBone
2013-01-01 18:55:04 +00:00
antoine
8b672151d0 Fix a dependency 2013-01-01 18:31:21 +00:00
antoine
388760425c Add missing DPADD 2013-01-01 18:29:25 +00:00
antoine
9e057f2c82 pflogd does not depend on libutil 2013-01-01 18:28:21 +00:00
antoine
9d9bc65ea7 Add missing DPADD. 2013-01-01 18:25:14 +00:00
antoine
1758b2e85b Remove unneeded semicolons.
Reviewed by:	md5 of the object files
2013-01-01 18:16:49 +00:00
kib
a280492f6e The process_deferred_inactive() function locks the vnodes of the ufs
mount, which means that is must not be called while the snaplock is
owned.  The vfs_write_resume(9) does call the function as the
VFS_SUSP_CLEAN() method, which is too early and falls into the region
still protected by snaplock.

Add yet another flag for the vfs_write_resume_flags() to avoid calling
suspension cleanup handler after the suspend is lifted, and use it in
the ffs_snapshot() call to vfs_write_resume.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2013-01-01 16:14:48 +00:00
jilles
2fad9bb720 sh: Fix a Subversion property.
Test scripts should have keywords; only pure output that must match exactly
should have keywords disabled.
2013-01-01 12:48:24 +00:00
andrew
93a0b775d9 Document the known values of the RTL release field in the cache is register 2013-01-01 03:48:39 +00:00
gonzo
f3b51f6e77 Add interrupt for PL310 controller 2012-12-31 22:48:54 +00:00
markj
2286811d7e Explicitly specify that the beforelinking target depends on the
generated object files, ensuring that the beforelinking recipe won't be
executed until compilation has finished.

Also define SHLIB_NAME_FULL to denote ${SHLIB_NAME}.debug if
DEBUG_FILES is set and ${SHLIB_NAME} otherwise, which helps avoid
obfuscating the compilation and linking rules.

Reviewed by:	emaste
Approved by:	emaste (co-mentor)
2012-12-31 21:54:43 +00:00
gonzo
a381b05232 PL310 driver update:
- Add pl310.disable tunable to disable L2 cache altogether. In
    order to make sure that it's 100% disabled we use cache event
    counters for cache line eviction and read allocate events
    and panic if any of these counters increased. This is purely
    for debugging purpose
- Direct access DEBUG_CTRL and CTRL might be unavailable in
    unsecure mode, so use platform-specific functions for
    these registers
- Replace #if 1 with proper erratum numbers
- Add erratum 753970 workaround
- Remove wait function for atomic operations
- Protect cache operations with spin mutex in order to prevent race condition
- Disable instruction cache prefetch and make sure data cache
    prefetch is enabled in OMAP4-specific intialization
2012-12-31 21:19:44 +00:00
gonzo
620905405b Merge r234561 from busdma_machdep.c to ARMv6 version of busdma:
Interrupts must be disabled while handling a partial cache line flush,
as otherwise the interrupt handling code may modify data in the non-DMA
part of the cache line while we have it stashed away in the temporary
stack buffer, then we end up restoring a stale value.

PR:             160431
Submitted by:   Ian Lepore
2012-12-31 21:00:38 +00:00
bz
fd66ebc2d1 Happy New Year 2013! 2012-12-31 11:22:55 +00:00
rwatson
c285310a0b If FDT is compiled into a FreeBSD/beri kernel, initialise OpenFirmware.
Sponsored by:	DARPA, AFRL
2012-12-31 11:06:37 +00:00
rwatson
d91a839079 When a partially initialised FDT-based device instance can't attach,
perhaps due to an interrupt configuration problem, do not try to free
device ivars that have not yet have been allocated.

MFC after:	1 week
Reviewed by:	gonzo
Sponsored by:	DARPA, AFRL
2012-12-30 21:10:48 +00:00
nwhitehorn
1e6b48e616 With the old sade removed, libdisk is no longer used by anything in HEAD
and uses a number of problematic pre-gpart interfaces. Since it has been
entirely obsoleted by interfaces in geom, remove it.
2012-12-30 16:28:06 +00:00
kevlo
7bc5e60204 - Use BN_set_negative() and BN_is_negative() instead of subtracting or
comparing to zero.
- Fix fractional number exponentiation, especially for negative exponents.

Obtained from:	OpenBSD
2012-12-30 15:20:27 +00:00
nwhitehorn
0855954c85 Add a man page for the new sade(8), which is mostly the same uninformative
manpage as the old sade(8).
2012-12-30 14:44:14 +00:00