]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoUpdate copyright following last commit.
Devin Teske [Mon, 7 Jan 2013 00:18:03 +0000 (00:18 +0000)]
Update copyright following last commit.

11 years agoAdd nonInteractive support to f_dialog_yesno/noyes().
Devin Teske [Mon, 7 Jan 2013 00:15:52 +0000 (00:15 +0000)]
Add nonInteractive support to f_dialog_yesno/noyes().

11 years agotmpfs: Replace directory entry linked list with RB-Tree.
Gleb Kurtsou [Sun, 6 Jan 2013 22:15:44 +0000 (22:15 +0000)]
tmpfs: Replace directory entry linked list with RB-Tree.

Use file name hash as a tree key, handle duplicate keys.  Both VOP_LOOKUP
and VOP_READDIR operations utilize same tree for search.  Directory
entry offset (cookie) is either file name hash or incremental id in case
of hash collisions (duplicate-cookies).  Keep sorted per directory list
of duplicate-cookie entries to facilitate cookie number allocation.

Don't fail if previous VOP_READDIR() offset is no longer valid, start
with next dirent instead.  Other file system handle it similarly.

Workaround race prone tn_readdir_last[pn] fields update.

Add tmpfs_dir_destroy() to free all dirents.

Set NFS cookies in tmpfs_dir_getdents(). Return EJUSTRETURN from
tmpfs_dir_getdents() instead of hard coded -1.

Mark directory traversal routines static as they are no longer
used outside of tmpfs_subr.c

11 years agopw: free group returned by gr_add
Mateusz Guzik [Sun, 6 Jan 2013 21:56:58 +0000 (21:56 +0000)]
pw: free group returned by gr_add

11 years agolockmgr: unlock interlock (if requested) when dealing with upgrade/downgrade
Mateusz Guzik [Sun, 6 Jan 2013 21:47:59 +0000 (21:47 +0000)]
lockmgr: unlock interlock (if requested) when dealing with upgrade/downgrade
requests for LK_NOSHARE locks, just like for shared locks.

PR: kern/174969
Reviewed by: attilio
MFC after: 1 week

11 years agoMips Atheros AR71XX: make PCI base slot configurable through hints.
Monthadar Al Jaberi [Sun, 6 Jan 2013 20:50:31 +0000 (20:50 +0000)]
Mips Atheros AR71XX: make PCI base slot configurable through hints.

* Mikrotik RouterBoard 433AH have PCI slot 18 wired to INT0 on the PCI Bus.
  This is different from e.g. Atheros PB42 and Ubiquiti boards.
* Check for hint hint.pcib.0.baseslot=X, where X is number of base slot;
* If hint not supplied print a warning and use default AR71XX_PCI_BASE_SLOT;

PR: kern/174978
Approved by: adrian (mentor)

11 years agoNot using the full domain was a really bad idea.
Peter Wemm [Sun, 6 Jan 2013 19:25:42 +0000 (19:25 +0000)]
Not using the full domain was a really bad idea.

11 years agoUpdate copyrights and dates following last commit.
Devin Teske [Sun, 6 Jan 2013 18:18:09 +0000 (18:18 +0000)]
Update copyrights and dates following last commit.

11 years agoProtect the p->p_pgrp dereference with the process lock.
Konstantin Belousov [Sun, 6 Jan 2013 15:10:10 +0000 (15:10 +0000)]
Protect the p->p_pgrp dereference with the process lock.

MFC after: 3 days

11 years agoJuggle some internal symbols from our antique zlib (that originally came
Peter Wemm [Sun, 6 Jan 2013 14:59:59 +0000 (14:59 +0000)]
Juggle some internal symbols from our antique zlib (that originally came
in from kernel-pppd which is long gone) so that ZFS and DTRACE play nice.

This is a horrible hack to get freefall to compile, and is in dire need
of reconciliation.  This antique zlib-1.04 code needs to go away.

11 years agoSet the correct relocation type for R_ARM_TARGET2 to R_ARM_GOT_PREL. The
Andrew Turner [Sun, 6 Jan 2013 07:14:04 +0000 (07:14 +0000)]
Set the correct relocation type for R_ARM_TARGET2 to R_ARM_GOT_PREL. The
TARGET2 relocation is unused in the current ABI but this change is
required for EABI support.

11 years agoHandle ps-poll data frame if_transmit() failure.
Adrian Chadd [Sun, 6 Jan 2013 04:40:07 +0000 (04:40 +0000)]
Handle ps-poll data frame if_transmit() failure.

If the data frame transmission failures, it may have a node reference
that needs cleaning up.

If the frame is marked as M_ENCAP then it should treat recvif as a node
reference and clear it.

Now - since the mbuf has been freed by calling if_transmit() (even on
failure), the mbuf has to be treated as invalid.  Hence why the ifp is
used.

11 years agoHandle HWMP if_transmit() failure gracefully.
Adrian Chadd [Sun, 6 Jan 2013 04:38:31 +0000 (04:38 +0000)]
Handle HWMP if_transmit() failure gracefully.

If if_transmit() fails, the node ref may need freeing.

This is based on the same logic used by the ageq, which the mesh code
(re) uses for frames which need to be staged before transmitting.
It also does the same thing - if M_ENCAP is set on the mbuf, it treats
the recvif pointer as a node reference and derefs it.

11 years agoFix a signed/unsigned comparison when wchar_t is unsigned by casting the
Andrew Turner [Sun, 6 Jan 2013 03:08:27 +0000 (03:08 +0000)]
Fix a signed/unsigned comparison when wchar_t is unsigned by casting the
wchar_t to a wint_t.

11 years agoWhen WCHAR_MIN == 0 the check if a wchar_t value will always be true. In
Andrew Turner [Sun, 6 Jan 2013 02:50:38 +0000 (02:50 +0000)]
When WCHAR_MIN == 0 the check if a wchar_t value will always be true. In
this case skip the test as gcc complains it is always true.

11 years agoFix the build:
Andrew Turner [Sun, 6 Jan 2013 01:17:36 +0000 (01:17 +0000)]
Fix the build:

 * Use pl310_softc when the softc is otherwise unavailable.
 * Use the correct spelling of sc_rtl_revision.

11 years agoSilence a clang warning by telling it we are only interested in left
Andrew Turner [Sun, 6 Jan 2013 00:49:06 +0000 (00:49 +0000)]
Silence a clang warning by telling it we are only interested in left
shifting the lower 32bits of the floating point value when we demangle it.

11 years agoOnly work around errata when we are on a part where the erratum applies.
Andrew Turner [Sun, 6 Jan 2013 00:42:09 +0000 (00:42 +0000)]
Only work around errata when we are on a part where the erratum applies.

Reviewed by: gonzo

11 years agoExport board serial and board revision obtained from FDT blob
Oleksandr Tymoshenko [Sat, 5 Jan 2013 23:08:58 +0000 (23:08 +0000)]
Export board serial and board revision obtained from FDT blob

11 years agoAdd hw.board.serial and hw.board.revision for exporting board-specific info
Oleksandr Tymoshenko [Sat, 5 Jan 2013 23:08:10 +0000 (23:08 +0000)]
Add hw.board.serial and hw.board.revision for exporting board-specific info

11 years agoFix a segfault when bsdgrep -i is given an empty pattern string.
Mark Johnston [Sat, 5 Jan 2013 22:04:40 +0000 (22:04 +0000)]
Fix a segfault when bsdgrep -i is given an empty pattern string.

PR: bin/172865
Reviewed by: gabor
Approved by: emaste (co-mentor)
MFC after: 1 week

11 years agoUse tabs for indentation.
Konstantin Belousov [Sat, 5 Jan 2013 21:52:38 +0000 (21:52 +0000)]
Use tabs for indentation.

MFC after: 2 weeks

11 years agoDo not round up the size of the UFS filesystem to the fragment size
Konstantin Belousov [Sat, 5 Jan 2013 21:42:14 +0000 (21:42 +0000)]
Do not round up the size of the UFS filesystem to the fragment size
when comparing its size with the size of the media, to determine if
the last disk block is unused.

Submitted by: Andreas Longwitz <longwitz@incore.de>
Reviewed by: pjd
MFC after: 2 weeks

11 years agoFix background color calculation
Oleksandr Tymoshenko [Sat, 5 Jan 2013 21:05:16 +0000 (21:05 +0000)]
Fix background color calculation

Spotted by: ray@

11 years agoShuffle the TX underrun to work the same way as the RX underrun,
Tim Kientzle [Sat, 5 Jan 2013 20:37:40 +0000 (20:37 +0000)]
Shuffle the TX underrun to work the same way as the RX underrun,
as suggested by YongHyeon PYUN.

11 years agoPrefer the new NFS modules
Tim Kientzle [Sat, 5 Jan 2013 20:30:10 +0000 (20:30 +0000)]
Prefer the new NFS modules

11 years agoTeach the kernel to recognize that it is executing inside a bhyve virtual
Neel Natu [Sat, 5 Jan 2013 19:18:50 +0000 (19:18 +0000)]
Teach the kernel to recognize that it is executing inside a bhyve virtual
machine.

Obtained from: NetApp

11 years agoAdd quirk to indicate that the bhyve hostbridge is capable of supporting
Neel Natu [Sat, 5 Jan 2013 18:48:23 +0000 (18:48 +0000)]
Add quirk to indicate that the bhyve hostbridge is capable of supporting
MSI and MSI-X even though it does not advertise the PCI-E capability
itself.

Obtained from: NetApp

11 years agoWhile trying to track down the root cause for
Tim Kientzle [Sat, 5 Jan 2013 17:59:44 +0000 (17:59 +0000)]
While trying to track down the root cause for
TX stalls in this driver, I've also had some
time to evaluate the effectiveness of different
watchdog strategies.

This is the latest attempt, which consolidates
all of the watchdog logic in one place and
consistently detects TX stalls and resets within
a couple of seconds.

11 years ago- Fix handling of the case when multiple patterns are specified in a single
Gabor Kovesdan [Sat, 5 Jan 2013 14:52:31 +0000 (14:52 +0000)]
- Fix handling of the case when multiple patterns are specified in a single
  command line argument, separated by newlines

PR: bin/173673
Submitted by: ache
MFC after: 1 week

11 years agoAdd macros required to enable VMX operation on Intel processors.
Neel Natu [Sat, 5 Jan 2013 04:20:14 +0000 (04:20 +0000)]
Add macros required to enable VMX operation on Intel processors.

Obtained from: NetApp

11 years agoAdd support for scripting (sysinstall style).
Devin Teske [Sat, 5 Jan 2013 02:08:47 +0000 (02:08 +0000)]
Add support for scripting (sysinstall style).

Reviewed by: jilles

11 years agoGrammar fixes and some wordsmithing
Benjamin Kaduk [Sat, 5 Jan 2013 00:27:08 +0000 (00:27 +0000)]
Grammar fixes and some wordsmithing

Discussed with: rmacklem
Approved by: hrs (mentor)
MFC after: 2 weeks

11 years agoFollow calloc convention in other code, this is functionally identical
Xin LI [Sat, 5 Jan 2013 00:23:58 +0000 (00:23 +0000)]
Follow calloc convention in other code, this is functionally identical
to its previous form.

11 years agoFix some minor inaccuracies introduced in r243251.
Benjamin Kaduk [Sat, 5 Jan 2013 00:23:26 +0000 (00:23 +0000)]
Fix some minor inaccuracies introduced in r243251.
Also correct the comment in kern_synch.c which was the source of the
problematic text.

Reviewed by: kib (previous version)
Approved by: hrs (mentor)

11 years agoConstify arguments. While I'm there, also add a static for usage().
Xin LI [Fri, 4 Jan 2013 23:44:22 +0000 (23:44 +0000)]
Constify arguments.  While I'm there, also add a static for usage().

MFC after: 2 weeks

11 years agoFix for "run0: wcid=xx out of range" error message.
Hans Petter Selasky [Fri, 4 Jan 2013 20:44:17 +0000 (20:44 +0000)]
Fix for "run0: wcid=xx out of range" error message.

MFC after: 1 week
PR: usb/174963
Submitted by: PseudoCylon <moonlightakkiy@yahoo.ca>

11 years agoRemove firewire devices missed in r244992.
Hiroki Sato [Fri, 4 Jan 2013 15:29:50 +0000 (15:29 +0000)]
Remove firewire devices missed in r244992.

11 years agoRevert revision 244760 because strncpy pads trailing space with zero,
David Xu [Fri, 4 Jan 2013 11:11:12 +0000 (11:11 +0000)]
Revert revision 244760 because strncpy pads trailing space with zero,
this prevents kernel data from being leaked.

Noticed by: Joerg Sonnenberger &lt; joerg at britannica dot bec dot de &gt;

11 years agoMFi386: r232521
Yoshihiro Takahashi [Fri, 4 Jan 2013 09:52:09 +0000 (09:52 +0000)]
MFi386: r232521

  Exclude USB drivers (except umass and ukbd) from main kernel image.

11 years agoUpdate with new IPv4 address for D root.
Erwin Lansing [Fri, 4 Jan 2013 09:15:59 +0000 (09:15 +0000)]
Update with new IPv4 address for D root.

Approved by: delphij (mentor)

11 years agoFix reversed condition in the assertion.
Konstantin Belousov [Fri, 4 Jan 2013 07:52:47 +0000 (07:52 +0000)]
Fix reversed condition in the assertion.

Pointy hat to: kib
MFC after: 13 days

11 years agoFor PHY error frames, populate the configured channel flags rather than
Adrian Chadd [Fri, 4 Jan 2013 06:28:34 +0000 (06:28 +0000)]
For PHY error frames, populate the configured channel flags rather than
based on the received frame.

PHY errors don't have the relevant HT or 40MHz MCS flag set.

11 years agoRevert bogus part of r241740.
Marius Strobl [Thu, 3 Jan 2013 23:12:08 +0000 (23:12 +0000)]
Revert bogus part of r241740.
Reported by: Michael Moll

MFC after: 3 days

11 years ago- Print scopeid for link-local scope addresses.
Hiroki Sato [Thu, 3 Jan 2013 22:27:57 +0000 (22:27 +0000)]
- Print scopeid for link-local scope addresses.
- Do not print the flags= part when flags == 0.

11 years agoFix r244604 so that it builds when MK_KERBEROS_SUPPORT == "no".
Rick Macklem [Thu, 3 Jan 2013 22:24:39 +0000 (22:24 +0000)]
Fix r244604 so that it builds when MK_KERBEROS_SUPPORT == "no".

Reported by: bf
Tested by: bf
Reviewed by: gcooper
MFC after: 3 days

11 years agoRecord my ports commit bit.
Marius Strobl [Thu, 3 Jan 2013 22:05:20 +0000 (22:05 +0000)]
Record my ports commit bit.

11 years agoDocument the output of the show command. Modified version of patch
Warren Block [Thu, 3 Jan 2013 21:58:28 +0000 (21:58 +0000)]
Document the output of the show command.  Modified version of patch
provided by Bas Smeelen <b.smeelen@ose.nl>.  Use of 'gpart list'
suggested by by Andrey V. Elsukov <ae@FreeBSD.org>.

PR: docs/174270
Submitted by: Ronald F.Guilmette <rfg@tristatelogic.com>
Reviewed by: ae (block sizes)
MFC after: 1 week

11 years agoSync with driver.
Xin LI [Thu, 3 Jan 2013 20:31:45 +0000 (20:31 +0000)]
Sync with driver.

MFC after: 2 weeks

11 years agoAllow to specify "cache" and "nocache" as an option for
Konstantin Belousov [Thu, 3 Jan 2013 19:18:46 +0000 (19:18 +0000)]
Allow to specify "cache" and "nocache" as an option for
mount_nullfs(8).

Tested by: pho
MFC after: 2 weeks

11 years agoAdd the "nocache" nullfs mount option, which disables the caching of
Konstantin Belousov [Thu, 3 Jan 2013 19:17:57 +0000 (19:17 +0000)]
Add the "nocache" nullfs mount option, which disables the caching of
the free nullfs vnodes, switching nullfs behaviour to pre-r240285.
The option is mostly intended as the last-resort when higher pressure
on the vnode cache due to doubling of the vnode counts is not
desirable.

Note that disabling the cache costs more than 2x wall time in the
metadata-hungry scenarious.  The default is "cache".

Tested and benchmarked by: pho (previous version)
MFC after: 2 weeks

11 years agoEnable the UFS quotas for big-iron GENERIC kernels.
Konstantin Belousov [Thu, 3 Jan 2013 19:03:41 +0000 (19:03 +0000)]
Enable the UFS quotas for big-iron GENERIC kernels.

Discussed with:       mckusick
MFC after:       2 weeks

11 years agoDon't call the spectral methods for NICS that don't implement them.
Adrian Chadd [Thu, 3 Jan 2013 19:03:03 +0000 (19:03 +0000)]
Don't call the spectral methods for NICS that don't implement them.

11 years agoRemove the deprecated MNT_VNODE_FOREACH interface. Use the
Konstantin Belousov [Thu, 3 Jan 2013 19:02:52 +0000 (19:02 +0000)]
Remove the deprecated MNT_VNODE_FOREACH interface.  Use the
MNT_VNODE_FOREACH_ALL instead.

11 years agoRemove the last use of the deprecated MNT_VNODE_FOREACH interface in
Konstantin Belousov [Thu, 3 Jan 2013 19:01:56 +0000 (19:01 +0000)]
Remove the last use of the deprecated MNT_VNODE_FOREACH interface in
the tree.

With the help from: mjg
Tested by: Ronald Klop <ronald-freebsd8@klop.yi.org>
MFC after: 2 weeks

11 years agoTone down the encouragement to use cvsup. Add directions to the handbook
Peter Wemm [Thu, 3 Jan 2013 16:15:35 +0000 (16:15 +0000)]
Tone down the encouragement to use cvsup.  Add directions to the handbook
pages that cover the more current methods and bring closer to reality.

11 years agoMake sure to update the mtime of a logfile after archiving it. This
Mark Johnston [Thu, 3 Jan 2013 16:14:51 +0000 (16:14 +0000)]
Make sure to update the mtime of a logfile after archiving it. This
ensures that the next rotation happens at the correct time when using
interval-based rotations.

PR: bin/174438
Reviewed by: gad
Approved by: rstone (co-mentor)
MFC after: 1 week

11 years agoHave -n imply -r, since dry-run mode obviously doesn't require root
Mark Johnston [Thu, 3 Jan 2013 16:12:48 +0000 (16:12 +0000)]
Have -n imply -r, since dry-run mode obviously doesn't require root
privileges.

Approved by: rstone (co-mentor)
MFC after: 1 week

11 years agoFix a typo in an error message.
Mark Johnston [Thu, 3 Jan 2013 16:11:24 +0000 (16:11 +0000)]
Fix a typo in an error message.

Approved by: rstone (co-mentor)
MFC after: 1 week

11 years agoComments.
Devin Teske [Thu, 3 Jan 2013 15:48:00 +0000 (15:48 +0000)]
Comments.

11 years agoRemove files not connected to the build. It's confusing enough that
Marius Strobl [Thu, 3 Jan 2013 15:31:23 +0000 (15:31 +0000)]
Remove files not connected to the build. It's confusing enough that
we still have two not quite the same evtchn.c left over.

MFC after: 3 day

11 years agoAs discussed on -current last October, remove the firewire drivers from
Dag-Erling Smørgrav [Thu, 3 Jan 2013 14:30:24 +0000 (14:30 +0000)]
As discussed on -current last October, remove the firewire drivers from
GENERIC.

11 years ago- Replace partially incorrect function names in panic(9) strings with
Marius Strobl [Thu, 3 Jan 2013 13:44:25 +0000 (13:44 +0000)]
- Replace partially incorrect function names in panic(9) strings with
  __func__ and add some missing ones.
- Remove a stale comment.
- Remove unused NUM_ELEMENTS macro.
- Remove extra empty lines.
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.

MFC after: 3 days

11 years ago- Fix !SMP build.
Marius Strobl [Thu, 3 Jan 2013 13:42:45 +0000 (13:42 +0000)]
- Fix !SMP build.
- Replace incorrect function names in printf(9) strings with __func__.
- Make xctrl_shutdown_reasons table const.
- Use nitems() rather than rolling an own version.
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.

MFC after: 3 days

11 years agoTemporarily revert rev 244678. This is causing loopback problems with
Peter Wemm [Thu, 3 Jan 2013 10:21:28 +0000 (10:21 +0000)]
Temporarily revert rev 244678.  This is causing loopback problems with
the lo (loopback) interfaces.

11 years agoMFV: one-true-awk 20121220.
Xin LI [Thu, 3 Jan 2013 07:25:30 +0000 (07:25 +0000)]
MFV: one-true-awk 20121220.

MFC after: 1 month

11 years agoFix !INVARIANTS && !SMP build.
Marius Strobl [Thu, 3 Jan 2013 01:09:50 +0000 (01:09 +0000)]
Fix !INVARIANTS && !SMP build.

MFC after: 3 days

11 years agoRemove bogus '-' from getopt(3) string hit when porting daemon(8) to
Marius Strobl [Thu, 3 Jan 2013 00:49:11 +0000 (00:49 +0000)]
Remove bogus '-' from getopt(3) string hit when porting daemon(8) to
GNU/Linux *duck*.

MFC after: 1 week

11 years agoUse the right USB clock type on the EdgeRouter Lite. This fixes USB.
Juli Mallett [Wed, 2 Jan 2013 23:29:54 +0000 (23:29 +0000)]
Use the right USB clock type on the EdgeRouter Lite.  This fixes USB.

11 years agoAdd basic support for the Ubiquiti EdgeRouter Lite.
Juli Mallett [Wed, 2 Jan 2013 23:17:50 +0000 (23:17 +0000)]
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.

11 years agoAdd Intel Lynx Point PCH SATA Controller Device IDs
Jack F Vogel [Wed, 2 Jan 2013 22:26:46 +0000 (22:26 +0000)]
Add Intel Lynx Point PCH SATA Controller Device IDs

11 years agoAdd Intel Lynx Point PCH SMBus Device IDs
Jack F Vogel [Wed, 2 Jan 2013 22:01:26 +0000 (22:01 +0000)]
Add Intel Lynx Point PCH SMBus Device IDs

11 years agoAdd Intel Lynx Point PCH HD Audio Device IDs
Jack F Vogel [Wed, 2 Jan 2013 21:56:58 +0000 (21:56 +0000)]
Add Intel Lynx Point PCH HD Audio Device IDs

11 years agoVendor import of bwk's Dec 20, 2012 version.
Xin LI [Wed, 2 Jan 2013 21:53:45 +0000 (21:53 +0000)]
Vendor import of bwk's Dec 20, 2012 version.

11 years agoAdd support for new Intel Lynx Point PCH - Watchdog Timer Device IDs
Jack F Vogel [Wed, 2 Jan 2013 21:45:20 +0000 (21:45 +0000)]
Add support for new Intel Lynx Point PCH - Watchdog Timer Device IDs

11 years agoIndicate that we are using OpenSSL with some local modifications.
Xin LI [Wed, 2 Jan 2013 21:00:00 +0000 (21:00 +0000)]
Indicate that we are using OpenSSL with some local modifications.

X-MFC after: with r244974

11 years agoMFV r244973:
Xin LI [Wed, 2 Jan 2013 20:58:46 +0000 (20:58 +0000)]
MFV r244973:

  Integrate OpenSSL changeset 22950 (appro):

        bn_word.c: fix overflow bug in BN_add_word.

MFC after: 2 weeks

11 years agoIntegrate OpenSSL changeset 22950 (appro):
Xin LI [Wed, 2 Jan 2013 20:56:53 +0000 (20:56 +0000)]
Integrate OpenSSL changeset 22950 (appro):

bn_word.c: fix overflow bug in BN_add_word.

11 years agoDisable clang for athstats for now.
Adrian Chadd [Wed, 2 Jan 2013 18:49:40 +0000 (18:49 +0000)]
Disable clang for athstats for now.

11 years agoAdd missing err() format string.
Adrian Chadd [Wed, 2 Jan 2013 18:33:48 +0000 (18:33 +0000)]
Add missing err() format string.

11 years agoFix missing err() format string.
Adrian Chadd [Wed, 2 Jan 2013 18:29:54 +0000 (18:29 +0000)]
Fix missing err() format string.

11 years agoFix some conversions to keep clang happy.
Adrian Chadd [Wed, 2 Jan 2013 18:29:11 +0000 (18:29 +0000)]
Fix some conversions to keep clang happy.

11 years agoFix some clang warnings!
Adrian Chadd [Wed, 2 Jan 2013 18:26:32 +0000 (18:26 +0000)]
Fix some clang warnings!

11 years agoFix up some warnings from clang.
Adrian Chadd [Wed, 2 Jan 2013 18:21:24 +0000 (18:21 +0000)]
Fix up some warnings from clang.

This still triggers a bug in clang..

11 years agoAdd missing err() format strings.
Adrian Chadd [Wed, 2 Jan 2013 18:14:26 +0000 (18:14 +0000)]
Add missing err() format strings.

Thanks to: clang

11 years ago* Add missing err() string formats;
Adrian Chadd [Wed, 2 Jan 2013 18:12:06 +0000 (18:12 +0000)]
* Add missing err() string formats;
* Fix up a printf() type mismatch.

Thanks to: clang

11 years ago* Add missing format specifier for err()
Adrian Chadd [Wed, 2 Jan 2013 18:09:30 +0000 (18:09 +0000)]
* Add missing format specifier for err()
* add missing exit(0)
* Fix some operator evaluation complaints.

Thanks to: clang

11 years agoFix some printf() formats.
Adrian Chadd [Wed, 2 Jan 2013 18:05:31 +0000 (18:05 +0000)]
Fix some printf() formats.

Found by: clang

11 years agoFix incorrect format string.
Adrian Chadd [Wed, 2 Jan 2013 18:03:19 +0000 (18:03 +0000)]
Fix incorrect format string.

11 years agoMake sade actually be a symlink to partedit, as per the commit message in
Nathan Whitehorn [Wed, 2 Jan 2013 13:25:11 +0000 (13:25 +0000)]
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

11 years agoAdd missing dependancy.
Hans Petter Selasky [Wed, 2 Jan 2013 07:33:43 +0000 (07:33 +0000)]
Add missing dependancy.

Submitted by: Michael Butler
MFC after: 1 week

11 years agoAdd a very skeletal spectral scan control application.
Adrian Chadd [Wed, 2 Jan 2013 04:02:27 +0000 (04:02 +0000)]
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.

11 years agoLink if_ath_spectral.c into the build.
Adrian Chadd [Wed, 2 Jan 2013 04:00:54 +0000 (04:00 +0000)]
Link if_ath_spectral.c into the build.

11 years agoAdd a new (skeleton) spectral mode manager module.
Adrian Chadd [Wed, 2 Jan 2013 03:59:02 +0000 (03:59 +0000)]
Add a new (skeleton) spectral mode manager module.

11 years agoFix the short repeat option code to not flip the option to 0 when
Adrian Chadd [Wed, 2 Jan 2013 03:56:20 +0000 (03:56 +0000)]
Fix the short repeat option code to not flip the option to 0 when
we call this w/ NOVAL set.

11 years agoAdd spectral HAL accessor methods.
Adrian Chadd [Wed, 2 Jan 2013 01:40:23 +0000 (01:40 +0000)]
Add spectral HAL accessor methods.

11 years agoAdd a method to explicitly disable radar reporting if required.
Adrian Chadd [Wed, 2 Jan 2013 01:36:10 +0000 (01:36 +0000)]
Add a method to explicitly disable radar reporting if required.

11 years agoAdd missing update to link ar5416_spectral.c into the build.
Adrian Chadd [Wed, 2 Jan 2013 01:24:36 +0000 (01:24 +0000)]
Add missing update to link ar5416_spectral.c into the build.

11 years agoBring over the basic spectral scan framework code from Qualcomm Atheros.
Adrian Chadd [Wed, 2 Jan 2013 00:38:01 +0000 (00:38 +0000)]
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

11 years agoMerge @219932 from Perforce:
Robert Watson [Tue, 1 Jan 2013 19:42:06 +0000 (19:42 +0000)]
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