]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoIntroduce two new options MK_INET and MK_INET_SUPPORT analogically
bz [Sat, 30 Apr 2011 17:58:28 +0000 (17:58 +0000)]
Introduce two new options MK_INET and MK_INET_SUPPORT analogically
with INET6 equivalents. Patch reather than re-genenerating src.conf
(given the current problem with the script that does the re-gen).

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoAllow MKMODULESENV being preset from other sources like makeoptions
bz [Sat, 30 Apr 2011 17:51:39 +0000 (17:51 +0000)]
Allow MKMODULESENV being preset from other sources like makeoptions
kernel configurations to apply WITH_* WITHOUT_* knobs we use for
module building as well to restrict or control opt_*.h flags.

Reviewed by: imp, +
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoFix a mismerge from p4 in that in_localaddr() is not available without INET.
bz [Sat, 30 Apr 2011 16:30:18 +0000 (16:30 +0000)]
Fix a mismerge from p4 in that in_localaddr() is not available without INET.

Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoFix deduplicated zfs receive
mm [Sat, 30 Apr 2011 14:52:49 +0000 (14:52 +0000)]
Fix deduplicated zfs receive
(dmu_recv_stream builds incomplete guid_to_ds_map)

Illumos-gate changeset: 13329:c48b8bf84ab7
MFC together with v28

Approved by: pjd
Obtained from: Illumos (Bug #755)

13 years agoFis a problem with r221258 that mac is still needed in case for ient6 only
bz [Sat, 30 Apr 2011 14:22:45 +0000 (14:22 +0000)]
Fis a problem with r221258 that mac is still needed in case for ient6 only
for mac_inet.c.

Reported by: Luiz Otavio O Souza (lists.br gmail.com)
MFC after: 4 days

13 years agoClarify the comment.
kib [Sat, 30 Apr 2011 13:49:03 +0000 (13:49 +0000)]
Clarify the comment.

MFC after: 1 week

13 years agoAfter r221249 allow SCTP to be compiled in an IPv6 only environment as well.
bz [Sat, 30 Apr 2011 12:39:47 +0000 (12:39 +0000)]
After r221249 allow SCTP to be compiled in an IPv6 only environment as well.

Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 10 days

13 years agoAn example configuration file for the Atheros PB92.
adrian [Sat, 30 Apr 2011 12:25:09 +0000 (12:25 +0000)]
An example configuration file for the Atheros PB92.

TODO:

* pcie doesn't yet work properly, I'm working on it.
* if_arge doesn't work - it's likely the phy mask is wrong; again I'm working on it.

13 years agoAdd some more missing optional dependencies on inet6, not only inet,
bz [Sat, 30 Apr 2011 12:07:31 +0000 (12:07 +0000)]
Add some more missing optional dependencies on inet6, not only inet,
to get the files for an IPv6 only kernel as well, remove extra inet6
option where not needed.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoThe AR724x SoC's require the irq status line to be acked/cleared.
adrian [Sat, 30 Apr 2011 12:07:15 +0000 (12:07 +0000)]
The AR724x SoC's require the irq status line to be acked/cleared.

This allows console IO to occur correctly once the kernel is in multi-user
mode.

Submitted by: Luiz Otavio O Souza

13 years agoCall the DDR FIFO flush method when IP2 interrupts occur.
adrian [Sat, 30 Apr 2011 11:56:04 +0000 (11:56 +0000)]
Call the DDR FIFO flush method when IP2 interrupts occur.

13 years agoFlip off debugging for now.
adrian [Sat, 30 Apr 2011 11:40:31 +0000 (11:40 +0000)]
Flip off debugging for now.

13 years agoAdd some initial PCIe bridge support for the AR724x chipsets.
adrian [Sat, 30 Apr 2011 11:36:16 +0000 (11:36 +0000)]
Add some initial PCIe bridge support for the AR724x chipsets.

This is reported to work on the AR7240 based Ubiquiti Rocket M5
but I haven't tested it on that hardware. I also don't yet have
it fully working on the AR7242 based development board here;
probe/attach functions but the register space resource looks like
the endian-ness is wrong (0x10000000 instead of 0x00001000).o

Further digging will be required.

Submitted by: Luiz Otavio O Souza

13 years agoAdd UPDATING entry for the AR71xx config changes
adrian [Sat, 30 Apr 2011 11:30:42 +0000 (11:30 +0000)]
Add UPDATING entry for the AR71xx config changes

13 years agoIn preparation for the AR724x PCIe bus code, make the AR71xx PCI bus
adrian [Sat, 30 Apr 2011 11:28:21 +0000 (11:28 +0000)]
In preparation for the AR724x PCIe bus code, make the AR71xx PCI bus
glue require 'device ar71xx_pci' .

Users of the AR71xx board configs will now require this for functioning
PCI:

device pci
device ar71xx_pci

13 years agoRemove some leftover debug code.
tuexen [Sat, 30 Apr 2011 11:22:30 +0000 (11:22 +0000)]
Remove some leftover debug code.

MFC after: 1 week

13 years agoMake the TCP code compile without INET. Sort #includes and add #ifdef INETs.
bz [Sat, 30 Apr 2011 11:21:29 +0000 (11:21 +0000)]
Make the TCP code compile without INET.  Sort #includes and add #ifdef INETs.
Add some comments at #endifs given more nestedness.  To make the compiler
happy, some default initializations were added in accordance with the style
on the files.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoImprove compilation of SCTP code without INET support.
tuexen [Sat, 30 Apr 2011 11:18:16 +0000 (11:18 +0000)]
Improve compilation of SCTP code without INET support.
Some bugs where fixed while doing this:
* ASCONF-ACK messages might use wrong port number when using
  IPv6.
* Checking for additional addresses takes the correct address
  into account and also does not do more comparisons than
  necessary.

This patch is based on one received from bz@ who was
sponsored by The FreeBSD Foundation and iXsystems.

MFC after: 1 week

13 years agoMake the UDP code compile without INET. Expose udp_usrreq.c to IPv6 only
bz [Sat, 30 Apr 2011 11:17:00 +0000 (11:17 +0000)]
Make the UDP code compile without INET.  Expose udp_usrreq.c to IPv6 only
as well compiling out most functions adding or extending #ifdef INET
coverage.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake the PCB code compile without INET support by adding #ifdef INETs
bz [Sat, 30 Apr 2011 11:04:34 +0000 (11:04 +0000)]
Make the PCB code compile without INET support by adding #ifdef INETs
and correcting few #includes.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoAdd a missing DDR FIFO method for the ar71xx.
adrian [Sat, 30 Apr 2011 02:31:56 +0000 (02:31 +0000)]
Add a missing DDR FIFO method for the ar71xx.

13 years agoImprove the accuracy from a max ULP of ~2000 to max ULP < 0.79
kargl [Fri, 29 Apr 2011 23:13:43 +0000 (23:13 +0000)]
Improve the accuracy from a max ULP of ~2000 to max ULP < 0.79
on i386-class hardware for sinl and cosl.  The hand-rolled argument
reduction have been replaced by e_rem_pio2l() implementations.  To
preserve history the following commands have been executed:

svn cp src/e_rem_pio2.c ld80/e_rem_pio2l.h
mv ${HOME}/bde/ld80/e_rem_pio2l.c ld80/e_rem_pio2l.h

svn cp src/e_rem_pio2.c ld128/e_rem_pio2l.h
mv ${HOME}/bde/ld128/e_rem_pio2l.c ld128/e_rem_pio2l.h

The ld80 version has been tested by bde, das, and kargl over the
last few years (bde, das) and few months (kargl).  An older ld128
version was tested by das.  The committed version has only been
compiled tested via 'make universe'.

Approved by: das (mentor)
Obtained from: bde

13 years agoAdd an -E option to mirror newfs's. The idea is that if you have a system
des [Fri, 29 Apr 2011 23:00:23 +0000 (23:00 +0000)]
Add an -E option to mirror newfs's.  The idea is that if you have a system
that was built before ffs grew support for TRIM, your filesystem will have
plenty of free blocks that the flash chip doesn't know are free, so it
can't take advantage of them for wear leveling.  Once you've upgraded your
kernel, you enable TRIM on the filesystem (tunefs -t enable), then run
fsck_ffs -E on it before mounting it.

I tested this patch by half-filling an mdconfig'ed filesystem image,
running fsck_ffs -E on it, then verifying that the contents were not
damaged by comparing them to a pristine copy using rsync's checksum
functionality.  There is no reliable way to test it on real hardware.

Many thanks to mckusick@, who provided the tricky parts of this patch and
reviewed the final version.

Reviewed by: mckusick@
MFC after: 3 weeks

13 years agoSomewhere around the 473rd time I mistyped "mdconfig file" instead of
des [Fri, 29 Apr 2011 22:40:11 +0000 (22:40 +0000)]
Somewhere around the 473rd time I mistyped "mdconfig file" instead of
"mdconfig -f file", I decided that it would be easier to make mdconfig
DWIM than to teach my fingers to type the correct command line.

MFC after: 3 weeks

13 years agoAdd a new bus method, BUS_ADJUST_RESOURCE() that is intended to be a
jhb [Fri, 29 Apr 2011 21:36:45 +0000 (21:36 +0000)]
Add a new bus method, BUS_ADJUST_RESOURCE() that is intended to be a
wrapper around rman_adjust_resource().  Include a generic implementation,
bus_generic_adjust_resource() which passes the request up to the parent
bus.  There is currently no default implementation.  A
bus_adjust_resource() wrapper is provided for use in drivers.

13 years agoImplement BIO_DELETE for vnode devices by simply overwriting the deleted
des [Fri, 29 Apr 2011 21:18:41 +0000 (21:18 +0000)]
Implement BIO_DELETE for vnode devices by simply overwriting the deleted
sectors with all-zeroes.

The zeroes come from a static buffer; null(4) uses a dynamic buffer for
the same purpose (for /dev/zero).  It might be a good idea to have a
static, shared, read-only all-zeroes page somewhere in the kernel that
md(4), null(4) and any other code that needs zeroes could use.

Reviewed by: kib
MFC after: 3 weeks

13 years agoRather than trusting that nothing is going to sneak in before the
dougb [Fri, 29 Apr 2011 21:10:41 +0000 (21:10 +0000)]
Rather than trusting that nothing is going to sneak in before the
early_late_divider in the second run (and thus be skipped altogether),
keep a list of the scripts run early, and use that list to skip things
in the second run.

This has the primary benefit of not skipping a local script that gets
ordered too early in the second run. It also gives an opportunity to
clean up/simplify the code a bit.

Use a space-separated list rather than the more traditional colon for
maximum insurance against creativity in local naming conventions.

Reviewed by: brooks

13 years agoExtend the rman(9) API to support altering an existing resource.
jhb [Fri, 29 Apr 2011 20:05:19 +0000 (20:05 +0000)]
Extend the rman(9) API to support altering an existing resource.
Specifically, these changes allow a resource to back a relocatable and
resizable resource such as the I/O window decoders in PCI-PCI bridges.
- rman_adjust_resource() can adjust the start and end address of an
  existing resource.  It only succeeds if the newly requested address
  space is already free.  It also supports shrinking a resource in
  which case the freed space will be marked unallocated in the rman.
- rman_first_free_region() and rman_last_free_region() return the
  start and end addresses for the first or last unallocated region in
  an rman, respectively.  This can be used to determine by how much
  the resource backing an rman must be adjusted to accomodate an
  allocation request that does not fit into the existing rman.

While here, document the rm_start and rm_end fields in struct rman,
rman_is_region_manager(), the bound argument to
rman_reserve_resource_bound(), and rman_init_from_resource().

13 years agoChange rman_manage_region() to actually honor the rm_start and rm_end
jhb [Fri, 29 Apr 2011 18:41:21 +0000 (18:41 +0000)]
Change rman_manage_region() to actually honor the rm_start and rm_end
constraints on the rman and reject attempts to manage a region that is out
of range.
- Fix various places that set rm_end incorrectly (to ~0 or ~0u instead of
  ~0ul).
- To preserve existing behavior, change rman_init() to set rm_start and
  rm_end to allow managing the full range (0 to ~0ul) if they are not set by
  the caller when rman_init() is called.

13 years agoAdd the mipsn32eb TARGET_ARCH to the list of mips targets for the
jhb [Fri, 29 Apr 2011 18:27:50 +0000 (18:27 +0000)]
Add the mipsn32eb TARGET_ARCH to the list of mips targets for the
XLRN32 kernel config.

Reviewed by: imp, jmallet

13 years agoAdd the AH_SUPPORT_AR9130 option.
jhb [Fri, 29 Apr 2011 18:26:17 +0000 (18:26 +0000)]
Add the AH_SUPPORT_AR9130 option.

13 years agoDetect VMware guest and set the TSC frequency as reported by the hypervisor.
jkim [Fri, 29 Apr 2011 18:20:12 +0000 (18:20 +0000)]
Detect VMware guest and set the TSC frequency as reported by the hypervisor.
VMware products virtualize TSC and it run at fixed frequency in so-called
"apparent time".  Although virtualized i8254 also runs in apparent time, TSC
calibration always gives slightly off frequency because of the complicated
timer emulation and lost-tick correction mechanism.

13 years agoCosmetic changes to fit 80 character screen width.
adrian [Fri, 29 Apr 2011 16:43:30 +0000 (16:43 +0000)]
Cosmetic changes to fit 80 character screen width.

13 years agoTCP reuses t_rxtshift to determine the backoff timer used for both the
jhb [Fri, 29 Apr 2011 15:40:12 +0000 (15:40 +0000)]
TCP reuses t_rxtshift to determine the backoff timer used for both the
persist state and the retransmit timer.  However, the code that implements
"bad retransmit recovery" only checks t_rxtshift to see if an ACK has been
received in during the first retransmit timeout window.  As a result, if
ticks has wrapped over to a negative value and a socket is in the persist
state, it can incorrectly treat an ACK from the remote peer as a
"bad retransmit recovery" and restore saved values such as snd_ssthresh and
snd_cwnd.  However, if the socket has never had a retransmit timeout, then
these saved values will be zero, so snd_ssthresh and snd_cwnd will be set
to 0.

If the socket is in fast recovery (this can be caused by excessive
duplicate ACKs such as those fixed by 220794), then each ACK that arrives
triggers either NewReno or SACK partial ACK handling which clamps snd_cwnd
to be no larger than snd_ssthresh.  In effect, the socket's send window
is permamently stuck at 0 even though the remote peer is advertising a
much larger window and pending data is only sent via TCP window probes
(so one byte every few seconds).

Fix this by adding a new TCP pcb flag (TF_PREVVALID) that indicates that
the various snd_*_prev fields in the pcb are valid and only perform
"bad retransmit recovery" if this flag is set in the pcb.  The flag is set
on the first retransmit timeout that occurs and is cleared on subsequent
retransmit timeouts or when entering the persist state.

Reviewed by: bz
MFC after: 2 weeks

13 years agoAdd a 'show progress' command that shows a summary of all in-progress
jhb [Fri, 29 Apr 2011 14:06:37 +0000 (14:06 +0000)]
Add a 'show progress' command that shows a summary of all in-progress
commands for a given adapter.  Specifically, it shows the status of any
drive or volume activities currently in progress similar to the
'drive process' and 'volume progress' commands.

Reviewed by: emaste
MFC after: 1 week

13 years agoFix build of this kernel config. The ath(4) bits need the 11n frame format
jhb [Fri, 29 Apr 2011 14:01:49 +0000 (14:01 +0000)]
Fix build of this kernel config.  The ath(4) bits need the 11n frame format
even though ar5416 isn't enabled.

Reviewed by: adrian

13 years agoRemove some holdovers from the AR5212 origin of this code.
adrian [Fri, 29 Apr 2011 12:52:18 +0000 (12:52 +0000)]
Remove some holdovers from the AR5212 origin of this code.
These aren't relevant here.

13 years agoThe build was broken by r221190 for 64bit arches like amd64.
rmacklem [Fri, 29 Apr 2011 12:30:15 +0000 (12:30 +0000)]
The build was broken by r221190 for 64bit arches like amd64.
This patch fixes it.

MFC after: 2 weeks

13 years agoMake CAM_DEBUG_CDB also dump ATA commands in addition to SCSI.
mav [Fri, 29 Apr 2011 07:14:37 +0000 (07:14 +0000)]
Make CAM_DEBUG_CDB also dump ATA commands in addition to SCSI.

13 years agoAdd urtw(4)
kevlo [Fri, 29 Apr 2011 06:36:39 +0000 (06:36 +0000)]
Add urtw(4)

13 years agoGuard against default ni_chan
kevlo [Fri, 29 Apr 2011 06:28:29 +0000 (06:28 +0000)]
Guard against default ni_chan

PR: kern/144642
Submitted by: Arthur Hartwig <a_hartwig at fastmaildot fm>

13 years agoTidy up the naming of the ip2 DDR flush routine, and add an inline
adrian [Fri, 29 Apr 2011 06:25:11 +0000 (06:25 +0000)]
Tidy up the naming of the ip2 DDR flush routine, and add an inline
accessor method (which is currently unused) in there.

13 years agoAnother man page update related to the switchover of the
rmacklem [Fri, 29 Apr 2011 01:14:12 +0000 (01:14 +0000)]
Another man page update related to the switchover of the
NFS clients done by r221124.
This is a content change.

Submitted by: jh

13 years agoFix the new NFS client so that it handles the "nfs_args" value
rmacklem [Thu, 28 Apr 2011 23:21:50 +0000 (23:21 +0000)]
Fix the new NFS client so that it handles the "nfs_args" value
in mnt_optnew. This is needed so that the old mount(2) syscall
works and that is needed so that amd(8) works. The code was
basically just cribbed from sys/nfsclient/nfs_vfsops.c with minor
changes. This patch is mainly to fix the new NFS client so that
amd(8) works with it. Thanks go to Craig Rodrigues for helping with
this.

Tested by: Craig Rodrigues (for amd)
MFC after: 2 weeks

13 years agoAdd a #define for driver portability to older OS
jfv [Thu, 28 Apr 2011 23:21:40 +0000 (23:21 +0000)]
Add a #define for driver portability to older OS

13 years agoDefine "Hypervisor Present" bit. This bit is used by several hypervisors to
jkim [Thu, 28 Apr 2011 22:23:39 +0000 (22:23 +0000)]
Define "Hypervisor Present" bit.  This bit is used by several hypervisors to
identify CPUs running under emulation.  Currently QEMU-KVM, Xen-HVM, VMware,
and MS Hyper-V are known to set this bit.

MFC after: 3 days

13 years agoSmall change to make backporting to stable/7,
jfv [Thu, 28 Apr 2011 22:21:53 +0000 (22:21 +0000)]
Small change to make backporting to stable/7,
thanks to Arnaud Lacombe for suggesting it.

13 years agoUpdate a comment since ext2fs does not use SU.
jhb [Thu, 28 Apr 2011 20:25:15 +0000 (20:25 +0000)]
Update a comment since ext2fs does not use SU.

Reviewed by: kib

13 years agoAdd support for Oxford PCI Express Expresso family devices.
jhb [Thu, 28 Apr 2011 19:19:25 +0000 (19:19 +0000)]
Add support for Oxford PCI Express Expresso family devices.
For these devices, the number of supported ports is read from a register
in BAR 0.

PR: kern/134878
Submitted by: David Wood  david of wood2 org uk
MFC after: 1 week

13 years agoTrim some additional unnecessary <linker_set.h> includes.
jhb [Thu, 28 Apr 2011 17:59:33 +0000 (17:59 +0000)]
Trim some additional unnecessary <linker_set.h> includes.

MFC after: 1 week

13 years agoTurn off periodic recalibration of CPU ticker frequency if it is invariant.
jkim [Thu, 28 Apr 2011 17:56:02 +0000 (17:56 +0000)]
Turn off periodic recalibration of CPU ticker frequency if it is invariant.

13 years agoDue to space constraints, the UFS boot2 and boot1 use an evil hack where
jhb [Thu, 28 Apr 2011 17:44:24 +0000 (17:44 +0000)]
Due to space constraints, the UFS boot2 and boot1 use an evil hack where
boot2 calls back into boot1 to perform disk reads.  The ZFS MBR boot blocks
do not have the same space constraints, so remove this hack for ZFS.
While here, remove commented out code to support C/H/S addressing from
zfsldr.  The ZFS and GPT bootstraps always just use EDD LBA addressing.

MFC after: 2 weeks

13 years agoThe b_dep field of buffers is always empty for ext2fs, it is only used
jhb [Thu, 28 Apr 2011 17:36:26 +0000 (17:36 +0000)]
The b_dep field of buffers is always empty for ext2fs, it is only used
for SU in FFS.

Reported by: kib

13 years agoA diagnostic tool to go along with the vxge(4) 10GbE driver.
gnn [Thu, 28 Apr 2011 16:29:19 +0000 (16:29 +0000)]
A diagnostic tool to go along with the vxge(4) 10GbE driver.
This tool can be used to print statistics, registers, and
other device specific information once the driver is loaded
into the kernel.

Submitted by: Sriram Rapuru from Exar
MFC after: 2 weeks

13 years agoAdd the watchdogs patting during the (shutdown time) disk syncing and
attilio [Thu, 28 Apr 2011 16:02:05 +0000 (16:02 +0000)]
Add the watchdogs patting during the (shutdown time) disk syncing and
disk dumping.
With the option SW_WATCHDOG on, these operations are doomed to let
watchdog fire, fi they take too long.

I implemented the stubs this way because I really want wdog_kern_*
KPI to not be dependant by SW_WATCHDOG being on (and really, the option
only enables watchdog activation in hardclock) and also avoid to
call them when not necessary (avoiding not-volountary watchdog
activations).

Sponsored by: Sandvine Incorporated
Discussed with: emaste, des
MFC after: 2 weeks

13 years agoRemove unused GPL files from tcsh.
obrien [Thu, 28 Apr 2011 14:43:38 +0000 (14:43 +0000)]
Remove unused GPL files from tcsh.

13 years agoExar driver for X3100 10GbE Server/Storage adapters
gnn [Thu, 28 Apr 2011 14:33:15 +0000 (14:33 +0000)]
Exar driver for X3100 10GbE Server/Storage adapters

Features: Jumbo frames (up to 9600), LRO (Large Receive Offload),
          TSO (TCP segmentation offload), RTH (Receive Traffic Hash).

Submitted by: Sriram Rapuru at Exar
MFC after: 2 weeks

13 years agoSync with several changes in UFS/FFS:
jhb [Thu, 28 Apr 2011 14:27:17 +0000 (14:27 +0000)]
Sync with several changes in UFS/FFS:
- 77115: Implement support for O_DIRECT.
- 98425: Fix a performance issue introduced in 70131 that was causing
  reads before writes even when writing full blocks.
- 98658: Rename the BALLOC flags from B_* to BA_* to avoid confusion with
  the struct buf B_ flags.
- 100344: Merge the BA_ and IO_ flags so so that they may both be used in
  the same flags word. This merger is possible by assigning the IO_ flags
  to the low sixteen bits and the BA_ flags the high sixteen bits.
- 105422: Fix a file-rewrite performance case.
- 129545: Implement IO_INVAL in VOP_WRITE() by marking the buffer as
  "no cache".
- Readd the DOINGASYNC() macro and use it to control asynchronous writes.
  Change i-node updates to honor DOINGASYNC() instead of always being
  synchronous.
- Use a PRIV_VFS_RETAINSUGID check instead of checking cr_uid against 0
  directly when deciding whether or not to clear suid and sgid bits.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoRe-enable the wireless build parameters for the AR9130 WMAC.
adrian [Thu, 28 Apr 2011 12:52:01 +0000 (12:52 +0000)]
Re-enable the wireless build parameters for the AR9130 WMAC.

* enable 11n
* add ath_ahb so the AHB<->ath glue is linked in
* disable descriptor order swapping, it isn't needed here
* disable interrupt mitigation, it isn't supported here

13 years agoIntroduce AR9130 (HOWL) WMAC support to the FreeBSD HAL.
adrian [Thu, 28 Apr 2011 12:47:40 +0000 (12:47 +0000)]
Introduce AR9130 (HOWL) WMAC support to the FreeBSD HAL.

The AR9130 is an AR9160/AR5416 family WMAC which is glued directly
to the AR913x SoC peripheral bus (APB) rather than via a PCI/PCIe
bridge.

The specifics:

* A new build option is required to use the AR9130 - AH_SUPPORT_AR9130.
  This is needed due to the different location the RTC registers live
  with this chip; hopefully this will be undone in the future.
  This does currently mean that enabling this option will break non-AR9130
  builds, so don't enable it unless you're specifically building an image
  for the AR913x SoC.

* Add the new probe, attach, EEPROM and PLL methods specific to Howl.

* Add a work-around to ah_eeprom_v14.c which disables some of the checks
  for endian-ness and magic in the EEPROM image if an eepromdata block
  is provided. This'll be fixed at a later stage by porting the ath9k
  probe code and making sure it doesn't break in other setups (which
  my previous attempt at this did.)

* Sprinkle Howl modifications throughput the interrupt path - it doesn't
  implement the SYNC interrupt registers, so ignore those.

* Sprinkle Howl chip powerup/down throughout the reset path; the RTC methods
  were

* Sprinkle some other Howl workarounds in the reset path.

* Hard-code an alternative setup for the AR_CFG register for Howl, that
  sets up things suitable for Big-Endian MIPS (which is the only platform
  this chip is glued to.)

This has been tested on the AR913x based TP-Link WR-1043nd mode, in
legacy, HT/20 and HT/40 modes.

Caveats:

* 2ghz has only been tested. I've not seen any 5ghz radios glued to this
  chipset so I can't test it.

* AR5416_INTERRUPT_MITIGATION is not supported on the AR9130. At least,
  it isn't implemented in ath9k. Please don't enable this.

* This hasn't been tested in MBSS mode or in RX/TX block-aggregation mode.

13 years agoexecutable
des [Thu, 28 Apr 2011 11:21:49 +0000 (11:21 +0000)]
executable

13 years agoAdd the IP2 DDR flush handlers.
adrian [Thu, 28 Apr 2011 11:13:26 +0000 (11:13 +0000)]
Add the IP2 DDR flush handlers.

These aren't yet used in the interrupt handler path but should be.

13 years agoUpdate man pages related to the change in default NFS client
rmacklem [Thu, 28 Apr 2011 00:20:35 +0000 (00:20 +0000)]
Update man pages related to the change in default NFS client
applied by r221124. I also deleted references to idmapd, since that
daemon no longer exists.
This is a content change.

13 years agowhitespace nit - sorry for the churn
des [Wed, 27 Apr 2011 21:40:49 +0000 (21:40 +0000)]
whitespace nit - sorry for the churn

13 years agowhitespace nit
des [Wed, 27 Apr 2011 21:39:59 +0000 (21:39 +0000)]
whitespace nit

13 years agoProtect the reachover built symbols after the SHA256/512 crypt(3) addition.
obrien [Wed, 27 Apr 2011 21:33:56 +0000 (21:33 +0000)]
Protect the reachover built symbols after the SHA256/512 crypt(3) addition.

13 years agoFix module names and dependencies so the NFS clients will
rmacklem [Wed, 27 Apr 2011 20:42:30 +0000 (20:42 +0000)]
Fix module names and dependencies so the NFS clients will
load correctly as modules after r221124.

13 years agoOnly align MSI message groups based on the number of messages being
jhb [Wed, 27 Apr 2011 20:08:44 +0000 (20:08 +0000)]
Only align MSI message groups based on the number of messages being
allocated, not the maximum number of messages the device supports.  The
spec only requires the former, and I believe I implemented the latter due
to misunderstanding an e-mail.  In particular, this fixes an issue where
having several devices that all support 16 messages can run out of
IDT vectors on x86 even though the driver only uses a single message.

Submitted by: Bret Ketchum  bcketchum of gmail
MFC after: 1 week

13 years agoMfP4 CH=192029:
bz [Wed, 27 Apr 2011 19:36:35 +0000 (19:36 +0000)]
MfP4 CH=192029:

Expose ip_icmp.c to INET6 as well and only export badport_bandlim()
along with the two sysctls in the non-INET case.
The bandlim types work for all cases I reviewed in IPv6 as well and
the sysctls are available as we export net.inet.* from in_proto.c.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake pf compile without INET support by adding #ifdef INETs and
bz [Wed, 27 Apr 2011 19:34:01 +0000 (19:34 +0000)]
Make pf compile without INET support by adding #ifdef INETs and
correcting few #includes.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMfP4 CH=192004:
bz [Wed, 27 Apr 2011 19:32:27 +0000 (19:32 +0000)]
MfP4 CH=192004:

Move ip_defttl to raw_ip.c where it is actually used.  In an IPv6
only world we do not want to compile ip_input.c in for that and
it is a shared default with INET6.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake various (pseudo) interfaces compile without INET in the kernel
bz [Wed, 27 Apr 2011 19:30:44 +0000 (19:30 +0000)]
Make various (pseudo) interfaces compile without INET in the kernel
adding appropriate #ifdefs.  For module builds the framework needs
adjustments for at least carp.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake IPsec compile without INET adding appropriate #ifdef checks.
bz [Wed, 27 Apr 2011 19:28:42 +0000 (19:28 +0000)]
Make IPsec compile without INET adding appropriate #ifdef checks.

Unfold the IPSEC_COMMON_INPUT_CB() macro in xform_{ah,esp,ipcomp}.c
to not need three different versions depending on INET, INET6 or both.

Mark two places preparing for not yet supported functionality with IPv6.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoUse a private EXT2_ROOTINO constant instead of redefining ROOTINO.
jhb [Wed, 27 Apr 2011 18:25:35 +0000 (18:25 +0000)]
Use a private EXT2_ROOTINO constant instead of redefining ROOTINO.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoThis patch is believed to fix a problem in the kernel rpc for
rmacklem [Wed, 27 Apr 2011 18:19:26 +0000 (18:19 +0000)]
This patch is believed to fix a problem in the kernel rpc for
non-interruptible NFS mounts, where a kernel thread will seem
to be stuck sleeping on "rpccon". The msleep() in clnt_vc_create()
that was waiting to a TCP connect to complete would return ERESTART,
since PCATCH was specified. Then the tsleep() in clnt_reconnect_call()
would sleep for 1 second and then try again and again and...
The patch changes the msleep() in clnt_vc_create() so it only sets
the PCATCH flag for interruptible cases.

Tested by: pho
Reviewed by: jhb
MFC after: 2 weeks

13 years agoVarious style fixes including using uint*_t instead of u_int*_t.
jhb [Wed, 27 Apr 2011 18:15:34 +0000 (18:15 +0000)]
Various style fixes including using uint*_t instead of u_int*_t.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoThis patch changes head so that the default NFS client is now the new
rmacklem [Wed, 27 Apr 2011 17:51:51 +0000 (17:51 +0000)]
This patch changes head so that the default NFS client is now the new
NFS client (which I guess is no longer experimental). The fstype "newnfs"
is now "nfs" and the regular/old NFS client is now fstype "oldnfs".
Although mounts via fstype "nfs" will usually work without userland
changes, an updated mount_nfs(8) binary is needed for kernels built with
"options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and
mount(8) binaries are needed to do mounts for fstype "oldnfs".
The GENERIC kernel configs have been changed to use options
NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER.
For kernels being used on diskless NFS root systems, "options NFSCL"
must be in the kernel config.
Discussed on freebsd-fs@.

13 years agoRaise rlogin back to a WARNS level of 6.
jhb [Wed, 27 Apr 2011 17:36:37 +0000 (17:36 +0000)]
Raise rlogin back to a WARNS level of 6.

Tested by: make universe

13 years ago- Add the possibility to reuse the already last used timeout when patting
attilio [Wed, 27 Apr 2011 16:43:03 +0000 (16:43 +0000)]
- Add the possibility to reuse the already last used timeout when patting
  the watchdog, via the watchdog(9) interface.
  For that, the WD_LASTVAL bitwise operation is used. It is mutually
  exclusive with any explicit timout passing to the watchdogs.
  The last timeout can be returned via the wdog_kern_last_timeout()
  KPI.
- Add the possibility to pat the watchdogs installed via the watchdog(9)
  interface from the kernel.
  In order to do that the new KPI wdog_kern_pat() is offered and it does
  accept normalized nanoseconds or WD_LASTVAL.
- Avoid to pass WD_ACTIVE down in the watchdog handlers. All the control
  bit processing should over to the upper layer functions and not passed
  down to the handlers at all.

These changes are intended to be used in order to fix up the watchdog
tripping in situation when the userland is busted, but protection is still
wanted (examples: shutdown syncing / disk dumping).

Sponsored by: Sandvine Incorporated
Reviewed by: emaste, des, cognet
MFC after: 2 weeks

13 years agoFix typo in "continuously" argument used in patrol auto command.
pluknet [Wed, 27 Apr 2011 14:58:06 +0000 (14:58 +0000)]
Fix typo in "continuously" argument used in patrol auto command.

Obtained from: Sascha Wildner <saw att online dott de>
Approved by: jhb
MFC after: 3 days

13 years agoAdd DragonFly 2.10.1 release.
pluknet [Wed, 27 Apr 2011 12:12:22 +0000 (12:12 +0000)]
Add DragonFly 2.10.1 release.

13 years agoBe clear of what licensing terms we are using.
obrien [Wed, 27 Apr 2011 08:57:12 +0000 (08:57 +0000)]
Be clear of what licensing terms we are using.

13 years agoAdd obvious note that CAM drivers are required for using CAM ATA.
mav [Wed, 27 Apr 2011 08:53:52 +0000 (08:53 +0000)]
Add obvious note that CAM drivers are required for using CAM ATA.

13 years agoFix copy-paste bug.
marcel [Wed, 27 Apr 2011 04:03:04 +0000 (04:03 +0000)]
Fix copy-paste bug.

13 years agoMechanical whitespace cleanup.
des [Wed, 27 Apr 2011 02:55:03 +0000 (02:55 +0000)]
Mechanical whitespace cleanup.

MFC after: 3 weeks

13 years agoFix boo-boo in previous commit.
des [Wed, 27 Apr 2011 02:35:57 +0000 (02:35 +0000)]
Fix boo-boo in previous commit.

MFC after: 3 weeks

13 years agoAlphabetize the options. No date bump since no actual change to the text.
des [Wed, 27 Apr 2011 02:32:41 +0000 (02:32 +0000)]
Alphabetize the options.  No date bump since no actual change to the text.

MFC after: 3 weeks

13 years agoRename alloc_unr(9) to unr(9) and adjust the links accordingly.
des [Wed, 27 Apr 2011 01:10:15 +0000 (01:10 +0000)]
Rename alloc_unr(9) to unr(9) and adjust the links accordingly.

MFC after: 3 weeks

13 years agoUse ACPI-supplied CPU frequencies instead of estimated ones as we are about
jkim [Wed, 27 Apr 2011 00:32:35 +0000 (00:32 +0000)]
Use ACPI-supplied CPU frequencies instead of estimated ones as we are about
to use other values from the same table anyway.

MFC after: 3 days

13 years agoImplement relaxed comparision for hardcoded provider names to make it
mav [Wed, 27 Apr 2011 00:10:26 +0000 (00:10 +0000)]
Implement relaxed comparision for hardcoded provider names to make it
ignore adX/adaY difference in both directions to simplify migration to
the CAM-based ATA or back.

13 years agoReap old SPL comments.
obrien [Tue, 26 Apr 2011 22:18:53 +0000 (22:18 +0000)]
Reap old SPL comments.

Reviewed by: alc

13 years agoMFV of tzdata2011g, 221089.
edwin [Tue, 26 Apr 2011 22:14:10 +0000 (22:14 +0000)]
MFV of tzdata2011g, 221089.

- Egypt has cancelled the move to DST for now.

13 years agoRevert r221053 by replacing WARNS?= 3 since it's breaking the build on
dougb [Tue, 26 Apr 2011 22:02:51 +0000 (22:02 +0000)]
Revert r221053 by replacing WARNS?= 3 since it's breaking the build on
several arches.

13 years agoIf the 4BSD scheduler tries to schedule a thread that has been pinned or
rstone [Tue, 26 Apr 2011 20:34:30 +0000 (20:34 +0000)]
If the 4BSD scheduler tries to schedule a thread that has been pinned or
bound to an AP before SMP has started, the system will panic when we try
to touch per-CPU state for that AP because that state has not been
initialized yet.  Fix this in the same way as ULE: place all threads in
the global run queue before SMP has started.

Reviewed by: jhb
MFC after: 1 month

13 years agoGenerate the network byte order version of the window size structure in a
jhb [Tue, 26 Apr 2011 20:14:29 +0000 (20:14 +0000)]
Generate the network byte order version of the window size structure in a
temporary variable on the stack and then copy that into the output buffer
so that the htons() conversions use aligned accesses.

MFC after: 1 month

13 years agoAdd missing ifdef. This fixes build with NO_OPENSSL.
trociny [Tue, 26 Apr 2011 19:52:21 +0000 (19:52 +0000)]
Add missing ifdef. This fixes build with NO_OPENSSL.

Reported by: Pawel Tyll <ptyll@nitronet.pl>
Approved by: pjd (mentor)
MFC after: 1 week

13 years agoThe maximum NCM frame size must be so that it
hselasky [Tue, 26 Apr 2011 19:40:37 +0000 (19:40 +0000)]
The maximum NCM frame size must be so that it
will generate a short terminated USB transfer if
the maximum NCM frame size is greater than what
the driver can handle.

Reported by: Matthias Benesch
MFC after: 7 days
Approved by: thompsa (mentor)

13 years agoRename HASTCTL_ defines, which are used for conversion between main
trociny [Tue, 26 Apr 2011 19:38:30 +0000 (19:38 +0000)]
Rename HASTCTL_ defines, which are used for conversion between main
hastd process and workers, remove unused one and set different range
of numbers. This is done in order not to confuse them with HASTCTL_CMD
defines, used for conversation between hastctl and hastd, and to avoid
bugs like the one fixed in in r221075.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoFor conversation between hastctl and hastd we should use HASTCTL_CMD
trociny [Tue, 26 Apr 2011 19:22:54 +0000 (19:22 +0000)]
For conversation between hastctl and hastd we should use HASTCTL_CMD
defines.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoFix assert messages.
trociny [Tue, 26 Apr 2011 19:11:15 +0000 (19:11 +0000)]
Fix assert messages.

Approved by: pjd (mentor)