]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoUsa a globally visible region of zeros for both /dev/zero and the md
Matthew D Fleming [Fri, 13 May 2011 18:48:00 +0000 (18:48 +0000)]
Usa a globally visible region of zeros for both /dev/zero and the md
device.  There are likely other kernel uses of "blob of zeros" than can
be converted.

Reviewed by: alc
MFC after: 1 week

13 years agoAdd ${} around variable dereference...
Warner Losh [Fri, 13 May 2011 18:46:20 +0000 (18:46 +0000)]
Add ${} around variable dereference...

Submitted by: garrett coopper

13 years agoImplement -f to inhibit copying s1 partition out for speed.
Warner Losh [Fri, 13 May 2011 18:36:24 +0000 (18:36 +0000)]
Implement -f to inhibit copying s1 partition out for speed.
(-z not taken from PR, it is no longer needed since we basically always
 do that now)

PR: misc/151698
Submitted by: lev@

13 years agoCopy symbolic links as files rather than recreating the links.
Warner Losh [Fri, 13 May 2011 18:28:25 +0000 (18:28 +0000)]
Copy symbolic links as files rather than recreating the links.

PR: misc/151697
Submitted by: lev@
MFC after: 2 weeks

13 years agoUpdate sticky(7) cross references.
Sergey Kandaurov [Fri, 13 May 2011 16:29:57 +0000 (16:29 +0000)]
Update sticky(7) cross references.

PR: docs/124468
X-MFC with: r218998

13 years agoIn pmap_change_wiring(), use the right argument for pmap_modify_pv().
Olivier Houchard [Fri, 13 May 2011 15:54:12 +0000 (15:54 +0000)]
In pmap_change_wiring(), use the right argument for pmap_modify_pv().
It only worked because the only consumer calls pmap_change_wiring() to remove
the wiring.

13 years agoNote that the _SWAP operation is supported for all list/queue types.
Matthew D Fleming [Fri, 13 May 2011 15:49:23 +0000 (15:49 +0000)]
Note that the _SWAP operation is supported for all list/queue types.
Also place STAILQ_REMOVE_HEAD in alphabetical order.  Lastly, document
the _SWAP macros.

PR: kern/143033
MFC after: 1 week

13 years agoAllow direct children of PCI-ISA bridges to allocate resources from
Henrik Brix Andersen [Fri, 13 May 2011 15:06:35 +0000 (15:06 +0000)]
Allow direct children of PCI-ISA bridges to allocate resources from
the parent PCI bus.

Heavily inspired by jhb@ and a similar implementation present in
sys/dev/pci/vga_pci.c.

Reviewed by: jhb
Approved by: jhb

13 years agoOnly do open loop power control and temperature compensation
Adrian Chadd [Fri, 13 May 2011 14:33:45 +0000 (14:33 +0000)]
Only do open loop power control and temperature compensation
for the AR9280 based NICs if it's actually enabled.

Some of the OLC code was erroneously called during setup
and calibration. This may have caused some incorrect behaviour.

13 years agoCorrectly use INOUT for the offset/len parameters to vop_allocate. As
Matthew D Fleming [Fri, 13 May 2011 14:29:28 +0000 (14:29 +0000)]
Correctly use INOUT for the offset/len parameters to vop_allocate.  As
far as I can tell this is for documentation only at the moment.

13 years agoRefactor Xen PV code to use new event timers subsystem. That uses one-shot
Alexander Motin [Fri, 13 May 2011 12:39:37 +0000 (12:39 +0000)]
Refactor Xen PV code to use new event timers subsystem. That uses one-shot
Xen timer and time counter to provide one-shot and periodic time events.

On my tests this reduces idle interruts rate down to about 30Hz, and accor-
ding to Xen VM Manager reduces host CPU load by three times comparing to
the previous periodic 100Hz clock. Also now, when needed, it is possible to
increase HZ rate without useless CPU burning during idle periods.

Now only ia64 and some ARMs left not migrated to the new event timers.

13 years agoRemove duplicate code - add a function which calculates the ratesArray[]
Adrian Chadd [Fri, 13 May 2011 10:36:38 +0000 (10:36 +0000)]
Remove duplicate code - add a function which calculates the ratesArray[]
table which contains the per-rate target TX power.

This code is shared between the v14 eeprom board setup (AR5416, AR9160,
AR9280) and will also be used by the upcoming Kite (AR9287) support.

13 years agoSome diversity changes relating to AR9285.
Adrian Chadd [Fri, 13 May 2011 09:57:12 +0000 (09:57 +0000)]
Some diversity changes relating to AR9285.

* grab the main, alt and selected LNA config
* add some optional / disabled logging code
* add a check to reject packets with an invalid main rssi too,
  in case the alt is the active receive chain and main is -ve.

Note: The software-controlled combined diversity code is still disabled.

13 years agoFixed an embedded shell script.
Ruslan Ermilov [Fri, 13 May 2011 09:55:48 +0000 (09:55 +0000)]
Fixed an embedded shell script.

Reviewed by: sobomax

13 years agoMark all socket and file descriptors close-on-exec.
Dag-Erling Smørgrav [Fri, 13 May 2011 07:21:41 +0000 (07:21 +0000)]
Mark all socket and file descriptors close-on-exec.

PR: bin/151866
MFC after: 3 weeks

13 years agoUse a name instead of a magic number for kern_yield(9) when the priority
Matthew D Fleming [Fri, 13 May 2011 05:27:58 +0000 (05:27 +0000)]
Use a name instead of a magic number for kern_yield(9) when the priority
should not change.  Fetch the td_user_pri under the thread lock.  This
is probably not necessary but a magic number also seems preferable to
knowing the implementation details here.

Requested by: Jason Behmer < jason DOT behmer AT isilon DOT com >

13 years agoFix msleep() usage in Xen balloon driver to not wake up on every HZ tick.
Alexander Motin [Fri, 13 May 2011 03:40:16 +0000 (03:40 +0000)]
Fix msleep() usage in Xen balloon driver to not wake up on every HZ tick.

13 years ago- Use bus_describe_intr() to describe interrupt usage.
David Christensen [Thu, 12 May 2011 23:26:53 +0000 (23:26 +0000)]
- Use bus_describe_intr() to describe interrupt usage.
- Use bus_bind_intr() to bind interrupt to a CPU when RSS/TSS is used.
- Use M_DONTWAIT for RSS/TSS buffer allocation.
- Add statistic to track max DRBR queue depth.
- Fix problem in bxe_change_mtu() which referenced the old MTU size
  in a debug print statement.

MFC after: Two weeks

13 years agoFix pSeries/PAPR boot CD construction after actual testing. It seems that
Nathan Whitehorn [Thu, 12 May 2011 22:31:13 +0000 (22:31 +0000)]
Fix pSeries/PAPR boot CD construction after actual testing. It seems that
IBM SLOF is (a) case-sensitive and (b) accepts only booting files in
certain subdirectories of the CD.

13 years ago- Don't try to build NWFS support module if NCP/IPX is disabled in the build.
Stanislav Sedov [Thu, 12 May 2011 22:21:39 +0000 (22:21 +0000)]
- Don't try to build NWFS support module if NCP/IPX is disabled in the build.
- Rename ZFS definition to LIBPROCSTAT_ZFS to be consistent with NWFS and to
  prevent possible collisions.

Reported by: many

13 years agoBuilds cleanly at the default WARNS level (WARNS=6).
Dag-Erling Smørgrav [Thu, 12 May 2011 21:30:46 +0000 (21:30 +0000)]
Builds cleanly at the default WARNS level (WARNS=6).

13 years agoIncrease WARNS to 4.
Dag-Erling Smørgrav [Thu, 12 May 2011 21:26:42 +0000 (21:26 +0000)]
Increase WARNS to 4.

13 years agoMechanical whitespace cleanup.
Dag-Erling Smørgrav [Thu, 12 May 2011 21:18:55 +0000 (21:18 +0000)]
Mechanical whitespace cleanup.

13 years agoIncrease WARNS to 3.
Dag-Erling Smørgrav [Thu, 12 May 2011 21:12:24 +0000 (21:12 +0000)]
Increase WARNS to 3.

13 years agouintmax_t is a better type here...
Warner Losh [Thu, 12 May 2011 19:10:00 +0000 (19:10 +0000)]
uintmax_t is a better type here...

Submitted by: avg@

13 years agoAdd initial BCM5719 support. TSO and jumbo frame was intentionally
Pyun YongHyeon [Thu, 12 May 2011 17:15:57 +0000 (17:15 +0000)]
Add initial BCM5719 support. TSO and jumbo frame was intentionally
disabled for BCM5719 A0 revision due to known hardware errata.
Many thanks to Broadcom for continuing support of FreeBSD.

Submitted by: Geans Pin at Broadcom

13 years agoExplicitly clear 1000baseT control register for F1 PHY used in
Pyun YongHyeon [Thu, 12 May 2011 17:11:31 +0000 (17:11 +0000)]
Explicitly clear 1000baseT control register for F1 PHY used in
AR8132 FastEthernet controller. The PHY has no ability to
establish a gigabit link. Previously only link parters which
support down-shifting was able to establish link.
This change should fix a long standing link establishment issue of
AR8132.

PR: kern/156935
MFC after: 1 week

13 years agoFix printf int mismatch on 32-bit architectures...
Warner Losh [Thu, 12 May 2011 17:02:56 +0000 (17:02 +0000)]
Fix printf int mismatch on 32-bit architectures...

13 years agoAdd (somewhat speculative) bootable CD support for PAPR/pSeries-type
Nathan Whitehorn [Thu, 12 May 2011 15:03:17 +0000 (15:03 +0000)]
Add (somewhat speculative) bootable CD support for PAPR/pSeries-type
systems. In principle, FreeBSD should run on at least some of these
already, and support for the remainder will hopefully show up eventually,
so add this while I'm thinking about it.

13 years agoRemove some hacks to handle strange behavior of LXT 970 PHYs now better
Nathan Whitehorn [Thu, 12 May 2011 14:27:28 +0000 (14:27 +0000)]
Remove some hacks to handle strange behavior of LXT 970 PHYs now better
handled in miibus after r221812. Thanks to marius@ for piecing this
together!

13 years agoSome PHYs like the Level One LXT970 optionally can default to isolation
Marius Strobl [Thu, 12 May 2011 14:16:07 +0000 (14:16 +0000)]
Some PHYs like the Level One LXT970 optionally can default to isolation
after rest, in which case we may need to deisolate it.
Tested by: nwhitehorn

MFC after 1 week

13 years agoNow that the devices with functioning ps-poll hardware support have
Adrian Chadd [Thu, 12 May 2011 14:03:29 +0000 (14:03 +0000)]
Now that the devices with functioning ps-poll hardware support have
been enumerated (merlin and later), flick this on.

13 years agofix build on 32-bit platforms for r221803
Andriy Gapon [Thu, 12 May 2011 12:18:01 +0000 (12:18 +0000)]
fix build on 32-bit platforms for r221803

Casting a pointer to a wide integer is probably not that bad, but I am
still guilty of not testing this.

Pointyhat to: avg
MFC after: 1 week
X-MFC with: r221803

13 years ago- Do no try to drop a NULL filedesc pointer.
Stanislav Sedov [Thu, 12 May 2011 10:56:33 +0000 (10:56 +0000)]
- Do no try to drop a NULL filedesc pointer.

13 years ago- Commit work from libprocstat project. These patches add support for runtime
Stanislav Sedov [Thu, 12 May 2011 10:11:39 +0000 (10:11 +0000)]
- Commit work from libprocstat project.  These patches add support for runtime
  file and processes information retrieval from the running kernel via sysctl
  in the form of new library, libprocstat.  The library also supports KVM backend
  for analyzing memory crash dumps.  Both procstat(1) and fstat(1) utilities have
  been modified to take advantage of the library (as the bonus point the fstat(1)
  utility no longer need superuser privileges to operate), and the procstat(1)
  utility is now able to display information from memory dumps as well.

  The newly introduced fuser(1) utility also uses this library and able to operate
  via sysctl and kvm backends.

  The library is by no means complete (e.g. KVM backend is missing vnode name
  resolution routines, and there're no manpages for the library itself) so I
  plan to improve it further.  I'm commiting it so it will get wider exposure
  and review.

  We won't be able to MFC this work as it relies on changes in HEAD, which
  was introduced some time ago, that break kernel ABI.  OTOH we may be able
  to merge the library with KVM backend if we really need it there.

Discussed with: rwatson

13 years agoBreak out the AR9285 analog registers from ar5416/ar5416phy.h and put
Adrian Chadd [Thu, 12 May 2011 10:11:24 +0000 (10:11 +0000)]
Break out the AR9285 analog registers from ar5416/ar5416phy.h and put
them in a new header file, ar9002/ar9285_an.h.

Shuffle the AR9280 analog registers in ar5416/ar541phy.h into a contiguous
spot.

13 years agodsp/pcm: allow to mmap both read and write buffers using the same fd
Andriy Gapon [Thu, 12 May 2011 07:44:41 +0000 (07:44 +0000)]
dsp/pcm: allow to mmap both read and write buffers using the same fd

This brings our implementation in line with OSS specification for
systems that support mmap.  The change should also improve compatibility
with OSS software not specifically written for FreeBSD, e.g. PulseAudio
OSS plugin.

Reviewed by: kib, jhb
MFC after: 1 week

13 years agoFix the half/quater rate PLL setup for AR5416, AR9160 and
Adrian Chadd [Thu, 12 May 2011 03:25:24 +0000 (03:25 +0000)]
Fix the half/quater rate PLL setup for AR5416, AR9160 and
(beta?) AR9280 chips.

Note: This doesn't "fix" half/quarter rate support for these
chips; it merely fixes an oversight.

Obtained from: Atheros

13 years agoFixes from Atheros:
Adrian Chadd [Thu, 12 May 2011 03:15:21 +0000 (03:15 +0000)]
Fixes from Atheros:

* If AR9130, give the chip extra time to reset
* If AR5416, don't shutdown the chip during reset

13 years agoCorrect a typo
Jack F Vogel [Thu, 12 May 2011 00:10:29 +0000 (00:10 +0000)]
Correct a typo

13 years agoMFV: nc(1) from OpenBSD 4.9.
Xin LI [Wed, 11 May 2011 21:52:26 +0000 (21:52 +0000)]
MFV: nc(1) from OpenBSD 4.9.

MFC after: 1 month
Obtained from: OpenBSD

13 years agoMove the three geom kprocs as threads under a single pid.
Andrew Thompson [Wed, 11 May 2011 21:47:30 +0000 (21:47 +0000)]
Move the three geom kprocs as threads under a single pid.

Reviewed by: julian

13 years agoChipset support for the new Intel Panther Point PCH, thanks
Jack F Vogel [Wed, 11 May 2011 20:31:27 +0000 (20:31 +0000)]
Chipset support for the new Intel Panther Point PCH, thanks
to Seth Heasley for preparing the changes.

13 years agoAdd basic metadata integrity check. In case when partition table was
Andrey V. Elsukov [Wed, 11 May 2011 19:59:43 +0000 (19:59 +0000)]
Add basic metadata integrity check. In case when partition table was
probed and read successfull, but it contains invalid values (e.g.
overlapped partitions, offset or size is out of bounds), then table
will be rejected.

MFC after: 1 month

13 years agoImport nc from OpenBSD 4.9.
Xin LI [Wed, 11 May 2011 18:57:17 +0000 (18:57 +0000)]
Import nc from OpenBSD 4.9.

13 years agoRemove wrong comment.
Dmitry Chagin [Wed, 11 May 2011 17:57:15 +0000 (17:57 +0000)]
Remove wrong comment.

MFC after: 1 week.

13 years ago+ DTrace as a bootstrap tool is only needed on certain older systems.
David E. O'Brien [Wed, 11 May 2011 17:50:19 +0000 (17:50 +0000)]
+ DTrace as a bootstrap tool is only needed on certain older systems.
+ Be more consistent between BMAKE and TMAKE.
+ Add NO_CTF to crosstools as is done for bootstrap and build tools.

Reviewed by: marcel

13 years agoFix up the net80211 alq logging - this commit makes it usable.
Adrian Chadd [Wed, 11 May 2011 17:20:35 +0000 (17:20 +0000)]
Fix up the net80211 alq logging - this commit makes it usable.

* revert a local path change that shouldn't have made it to the commit
* fix some indenting/wrapping

* Fix the ale data copy - i should be copying into the ale data pointer,
  not over the ale entry itself.

13 years agonet80211 alq bugfixes:
Adrian Chadd [Wed, 11 May 2011 16:44:19 +0000 (16:44 +0000)]
net80211 alq bugfixes:

* Track number of logged operations
* call alq_post() so things are logged
* network order things

13 years agoMake freebsd-update(8) smarter in how it handles $FreeBSD$ tags in
Colin Percival [Wed, 11 May 2011 15:23:27 +0000 (15:23 +0000)]
Make freebsd-update(8) smarter in how it handles $FreeBSD$ tags in
configuration files.

If the current file differs from the canonical version from the old release
only due to differences in the $FreeBSD$ tag (which can happen if the system
was installed from source code, depending on how the src tree was checked out)
then freebsd-update will treat the file as "unmodified" and silently update
it to the "clean" version in the new release.

If the only change being made to a configuration file is in the $FreeBSD$
tag (e.g., for any configuration files which have been modified locally, now
that we're using SVN and the $FreeBSD$ tag changes when a branch is created),
freebsd-update will no longer print the diff and prompt "Does this look
reasonable (y/n)?".

Nagged by: pgollucci
MFC after: 1 month

13 years agoMake the NF calibration logic (hopefully!) more resistive to noisy
Adrian Chadd [Wed, 11 May 2011 13:40:13 +0000 (13:40 +0000)]
Make the NF calibration logic (hopefully!) more resistive to noisy
environments.

In setups where NF calibration can take a while, don't load the CCA
and kick off a new NF calibration if the previous one hasn't yet
completed. This shouldn't happen unless the environment is noisy but
those exist (hi phk!).

Here, if the previous NF hasn't completed when ar5416LoadNf() is run
(which reads the NF), it skips updating the history buffer, loading
the NF CCA array and kicking off the next NF cal. It's hoped it'll
occur in the next long calibration interval.

Obtained from: Atheros, ath9k, my local HAL

13 years agoAlways log if the NF CCA load fails; so users with debugging enabled
Adrian Chadd [Wed, 11 May 2011 13:25:43 +0000 (13:25 +0000)]
Always log if the NF CCA load fails; so users with debugging enabled
can see they're likely in a very noisy environment.

13 years agoMake sure the chip is awake before writing to it to finally detach
Adrian Chadd [Wed, 11 May 2011 13:24:17 +0000 (13:24 +0000)]
Make sure the chip is awake before writing to it to finally detach
it.

Obtained from: Atheros

13 years agoAdd a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message
Adrian Chadd [Wed, 11 May 2011 13:22:41 +0000 (13:22 +0000)]
Add a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message
(when debug is enabled) no matter what.

13 years agoRemove unused variable
Adrian Chadd [Wed, 11 May 2011 13:20:25 +0000 (13:20 +0000)]
Remove unused variable

13 years agoRemove the initial NF completion check.
Adrian Chadd [Wed, 11 May 2011 11:02:20 +0000 (11:02 +0000)]
Remove the initial NF completion check.

This is taking quite a while for some people in some situations
(eg AR5418 in phk's Abusive Radio Environment).

Instead, the rest of the calibration related code should
ensure that a NF calibration has occured before reading NF
values and kicking off another NF calibration.

The channel should also likely be marked as "noisy" (CWINT)
if the NF calibration takes too long.

13 years agoRemove a now unneeded comment..
Adrian Chadd [Wed, 11 May 2011 10:30:31 +0000 (10:30 +0000)]
Remove a now unneeded comment..

13 years agoRestore the RSSI threshold after writing the board values.
Adrian Chadd [Wed, 11 May 2011 09:47:48 +0000 (09:47 +0000)]
Restore the RSSI threshold after writing the board values.

This would be overwritten by the board initvals written in ah->writeIni().

13 years agoUse new option names for NFS client and NFS server
Oleksandr Tymoshenko [Wed, 11 May 2011 00:52:41 +0000 (00:52 +0000)]
Use new option names for NFS client and NFS server

See UPDATING entry for 20110427

13 years agoAdd an ATOMIC_CLEAR_LONG.
Marius Strobl [Tue, 10 May 2011 21:18:45 +0000 (21:18 +0000)]
Add an ATOMIC_CLEAR_LONG.

13 years agoFix whitespace.
Marius Strobl [Tue, 10 May 2011 18:41:46 +0000 (18:41 +0000)]
Fix whitespace.

13 years agoFix a bug in r221407; this driver doesn't add the media itself.
Marius Strobl [Tue, 10 May 2011 18:38:01 +0000 (18:38 +0000)]
Fix a bug in r221407; this driver doesn't add the media itself.

PR: 156893

13 years agoAdd SC_PIXEL_MODE to GENERIC for amd64 and i386.
Jung-uk Kim [Tue, 10 May 2011 16:44:16 +0000 (16:44 +0000)]
Add SC_PIXEL_MODE to GENERIC for amd64 and i386.

Requested by: many

13 years agobitcount32: replace lengthy comment with a reference to SWAR
Andriy Gapon [Tue, 10 May 2011 15:08:13 +0000 (15:08 +0000)]
bitcount32: replace lengthy comment with a reference to SWAR

MFC after: 5 days

13 years agodtrace: remove unused code
Andriy Gapon [Tue, 10 May 2011 15:05:27 +0000 (15:05 +0000)]
dtrace: remove unused code

Which is also useless, IMO.

MFC after: 5 days

13 years agoOnly try to set up IPIs at boot on systems that actually have more than one
Nathan Whitehorn [Tue, 10 May 2011 14:03:05 +0000 (14:03 +0000)]
Only try to set up IPIs at boot on systems that actually have more than one
CPU. This fixes a panic observed on Heathrow-based systems without
SMP-capable PICs when the kernel had both options SMP and INVARIANTS.

MFC after: 5 days

13 years agoRegen.
Ruslan Ermilov [Tue, 10 May 2011 13:25:42 +0000 (13:25 +0000)]
Regen.

13 years agoReassurance for impatient.
Ruslan Ermilov [Tue, 10 May 2011 13:01:11 +0000 (13:01 +0000)]
Reassurance for impatient.

13 years agoStyle.
Ruslan Ermilov [Tue, 10 May 2011 12:57:39 +0000 (12:57 +0000)]
Style.

13 years agoAdd an entry for the SIIG Quartet Serial 850 which uses an Oxford
John Baldwin [Tue, 10 May 2011 12:40:35 +0000 (12:40 +0000)]
Add an entry for the SIIG Quartet Serial 850 which uses an Oxford
chip with a non-default clock.

PR: kern/147583
MFC after: 1 week

13 years ago- There now exist options that have different defaults depending on
Ruslan Ermilov [Tue, 10 May 2011 11:14:40 +0000 (11:14 +0000)]
- There now exist options that have different defaults depending on
  the architecture, reflect this in documentation.  For such
  options, both WITH_FOO and WITHOUT_FOO description files should
  be provided.

  Prodded by: des

- Setting a build option may enforce other build options, try harder
  to detect this case.

- Setting a build option may change other option's default value,
  try harder to detect this case.

13 years agoThe Objective C support was removed in r220755.
Ruslan Ermilov [Tue, 10 May 2011 11:06:14 +0000 (11:06 +0000)]
The Objective C support was removed in r220755.

Submitted by: des

13 years agoRemoved unsupported options MK_BINUTILS and MK_GCC that were
Ruslan Ermilov [Tue, 10 May 2011 11:00:40 +0000 (11:00 +0000)]
Removed unsupported options MK_BINUTILS and MK_GCC that were
silently added in r218936.

13 years agoFlush the scriptfile whenever we see a non-graphical character to get
Poul-Henning Kamp [Tue, 10 May 2011 10:58:57 +0000 (10:58 +0000)]
Flush the scriptfile whenever we see a non-graphical character to get
more real-time logging, without forcing a write(2) on every single
character.

13 years agoAnother fallout from r220359: MK_GNU_CPIO was mistakenly re-added
Ruslan Ermilov [Tue, 10 May 2011 10:48:43 +0000 (10:48 +0000)]
Another fallout from r220359: MK_GNU_CPIO was mistakenly re-added
after being removed in r205702.  Remove it again.

13 years agoAR9285 (Kite) fixes.
Adrian Chadd [Tue, 10 May 2011 04:32:27 +0000 (04:32 +0000)]
AR9285 (Kite) fixes.

* Correct some of the silicon revision checks to match what
  the Atheros HAL does. (See [1] below.)

* Move the PA cal and init cal method assignment to -after-
  the mac version/revision IDs are stored. The AR9285 init
  cal was never being called.

* Enable ANI.

Note Kite 1.0 and 1.1 were prototypes that shouldn't be seen
in the wild. Linux ath9k simply removed the prototype code from
their codebase. I'm going to leave it in there for now but
make it conditionally compilable in the future.

Obtained from: Atheros

13 years agoAdd VID for Simtec Electronics.
Bruce M Simpson [Tue, 10 May 2011 02:38:44 +0000 (02:38 +0000)]
Add VID for Simtec Electronics.
Add PID for Simtec Electronics EntropyKey, a hardware random number generator.

13 years agoTypo. For USB devices, 'serial' should be 'sernum'.
Bruce M Simpson [Tue, 10 May 2011 02:34:11 +0000 (02:34 +0000)]
Typo. For USB devices, 'serial' should be 'sernum'.
See sys/dev/usb/usb_device.c for what devctl_notify() gets.

13 years agoRegenerated with latest configure script.
Xin LI [Tue, 10 May 2011 01:05:41 +0000 (01:05 +0000)]
Regenerated with latest configure script.

MFC after: 1 month

13 years agoMFV: Update to less v443.
Xin LI [Mon, 9 May 2011 21:51:59 +0000 (21:51 +0000)]
MFV: Update to less v443.

MFC after: 1 month

13 years agoAnother long standing vm bug found at Isilon:
Max Laier [Mon, 9 May 2011 20:27:49 +0000 (20:27 +0000)]
Another long standing vm bug found at Isilon:
 Fix a race between vm_object_collapse and vm_fault.

Reviewed by: alc@
MFC after: 3 days

13 years agoRecognize BCM5719C PHY.
Pyun YongHyeon [Mon, 9 May 2011 20:20:43 +0000 (20:20 +0000)]
Recognize BCM5719C PHY.

Submitted by: Geans Pin at Broadcom

13 years agoSince r117657, bge(4) does not enable buffer manager for BCM5705 or
Pyun YongHyeon [Mon, 9 May 2011 20:10:46 +0000 (20:10 +0000)]
Since r117657, bge(4) does not enable buffer manager for BCM5705 or
newer controllers.  However, all data sheet I have access has no
indication that buffer manager should not be touched on these
controllers.  It seems the buffer manager always runs on BCM5705 or
newer controllers. Some controller(e.g. BCM5719) needs other buffer
manager configuration so driver should enable buffer manager for
all controllers.  Both Linux and OpenBSD/NetBSD use the same
approach.
This change polls enable bit of block to know whether specified
block was really stopped as well as enabling buffer manager for all
controllers in driver initialization.

Obtained from: NetBSD

13 years ago- Simplify multicast address programming.
David Christensen [Mon, 9 May 2011 18:46:53 +0000 (18:46 +0000)]
- Simplify multicast address programming.
- Fix an incorrect "uint32_t *" cast in bxe_set_rx_mode().

Submitted by:   yongari@
Approved by:    davidch@
MFC after:      Two weeks

13 years agoMove VT switching hack for suspend/resume from bus drivers to syscons.c
Jung-uk Kim [Mon, 9 May 2011 18:46:49 +0000 (18:46 +0000)]
Move VT switching hack for suspend/resume from bus drivers to syscons.c
using event handlers.  A different version was

Submitted by: Taku YAMAMOTO (taku at tackymt dot homeip dot net)

13 years agoVendor import of less v443.
Xin LI [Mon, 9 May 2011 18:30:23 +0000 (18:30 +0000)]
Vendor import of less v443.

13 years agoImplement boot-time TSC synchronization test for SMP. This test is executed
Jung-uk Kim [Mon, 9 May 2011 17:34:00 +0000 (17:34 +0000)]
Implement boot-time TSC synchronization test for SMP.  This test is executed
when the user has indicated that the system has synchronized TSCs or it has
P-state invariant TSCs.  For the former case, we may clear the tunable if it
fails the test to prevent accidental foot-shooting.  For the latter case, we
may set it if it passes the test to notify the user that it may be usable.

13 years agoDisable diversity combining support until I can get a firm answer
Adrian Chadd [Mon, 9 May 2011 17:30:25 +0000 (17:30 +0000)]
Disable diversity combining support until I can get a firm answer
from Atheros as to what/when this is supposed to be enabled.

Using the default RX fast diversity settings seems to help quite
a bit.

Whilst I'm here, change the prototype to return HAL_BOOL rather than int.

13 years agoFix a regression I introduced - only swap analog chains if the RX chainmask
Adrian Chadd [Mon, 9 May 2011 17:10:48 +0000 (17:10 +0000)]
Fix a regression I introduced - only swap analog chains if the RX chainmask
is 0x5.

13 years agoDisable TX STBC - it isn't used for now, but it isn't supported on Kite.
Adrian Chadd [Mon, 9 May 2011 16:49:40 +0000 (16:49 +0000)]
Disable TX STBC - it isn't used for now, but it isn't supported on Kite.

13 years agoAdd proper build infrastructure for teken.
Ed Schouten [Mon, 9 May 2011 16:27:39 +0000 (16:27 +0000)]
Add proper build infrastructure for teken.

I'm not sure whether we should install teken as a library on any stock
FreeBSD installation, but I can imagine people want to tinker around
with it now and then. Create a /sys/teken/libteken, which holds a
Makefile to install a shared library version of the terminal emulator,
complete with a manpage.

Also add Makefiles for the demo/stress applications, to build it against
the shared library.

13 years agoWorkaround for broken no-name USB audio devices sold by dealextreme
Hans Petter Selasky [Mon, 9 May 2011 15:57:04 +0000 (15:57 +0000)]
Workaround for broken no-name USB audio devices sold by dealextreme
called "3D sound" and the alike.

MFC after: 14 days

13 years agoImport some initial Kite fixed diversity code from Atheros.
Adrian Chadd [Mon, 9 May 2011 15:19:49 +0000 (15:19 +0000)]
Import some initial Kite fixed diversity code from Atheros.

For now, the diversity settings are controlled by 'txantenna',
-not- rxantenna. This is because the earlier chipsets had
controllable TX diversity; the RX antenna setting twiddles
the default antenna register. I'll try sort that stuff out at
some point.

Call the antenna switch function from the board setup function
so scans, channel changes, mode changes, etc don't set the
diversity back to a default state too far from what's intended.

Things to todo:

* Squirrel away the last antenna diversity/combining parameters
  and restore them during board setup if HAL_ANT_VARIABLE is
  defined. That way scans, etc don't reset the diversity settings.

* Add some more public facing statistics, rather than what's
  simply logged under HAL_DEBUG_DIVERSITY.

For now, the fixed antenna settings behave better than variable
settings for me. I have some further fiddling to do..

Obtained from: Atheros

13 years agoRemove an un-needed PA cal call here.
Adrian Chadd [Mon, 9 May 2011 14:04:49 +0000 (14:04 +0000)]
Remove an un-needed PA cal call here.

13 years agoRelease SP's refcount in key_get_spdbyid().
VANHULLEBUS Yvan [Mon, 9 May 2011 13:16:21 +0000 (13:16 +0000)]
Release SP's refcount in key_get_spdbyid().

PR: 156676
Submitted by: Tobias Brunner (tobias@strongswan.org)
MFC after: 1 week

13 years agoThis is a full 32 bit field for kite.
Adrian Chadd [Mon, 9 May 2011 10:39:15 +0000 (10:39 +0000)]
This is a full 32 bit field for kite.

13 years agoRefactor TCP ISN increment logic. Instead of firing callout at 100Hz to
Alexander Motin [Mon, 9 May 2011 07:37:47 +0000 (07:37 +0000)]
Refactor TCP ISN increment logic. Instead of firing callout at 100Hz to
keep constant ISN growth rate, do the same directly inside tcp_new_isn(),
taking into account how much time (ticks) passed since the last call.

On my test systems this decreases idle interrupt rate from 140Hz to 70Hz.

13 years agosh: Add \u/\U support (in $'...') for UTF-8.
Jilles Tjoelker [Sun, 8 May 2011 17:40:10 +0000 (17:40 +0000)]
sh: Add \u/\U support (in $'...') for UTF-8.

Because we have no iconv in base, support for other charsets is not
possible.

Note that \u/\U are processed using the locale that was active when the
shell started. This is necessary to avoid behaviour that depends on the
parse/execute split (for example when placing braces around an entire
script). Therefore, UTF-8 encoding is implemented manually.

13 years agosh: Optimize variable code by storing the length of the name.
Jilles Tjoelker [Sun, 8 May 2011 16:15:50 +0000 (16:15 +0000)]
sh: Optimize variable code by storing the length of the name.

Obtained from: NetBSD

13 years agoFix the 5ghz fast clock logic.
Adrian Chadd [Sun, 8 May 2011 15:55:52 +0000 (15:55 +0000)]
Fix the 5ghz fast clock logic.

The macro which I incorrectly copied into ah_internal.h assumed
that it'd be called with an AR_SREV_MERLIN_20() check to ensure
it was only enabled for Merlin (AR9280) silicon revision 2.0 or
later.

Trouble is, the 5GHz fast clock EEPROM flag is only valid for
EEPROM revision 16 or greater; it's assumed to be enabled
by default for Merlin rev >= 2.0. This meant it'd be incorrectly
set for AR5416 and AR9160 in 5GHz mode.

This would have affected non-default clock timings such as SIFS,
ACK and slot time. The incorrect slot time was very likely wrong
for 5ghz mode.