]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoEnsure that error is set.
adrian [Sat, 14 Jul 2012 05:51:54 +0000 (05:51 +0000)]
Ensure that error is set.

Noticed by: rui

12 years agoCreate common routines for configuring the serial ports and use them
imp [Sat, 14 Jul 2012 05:46:52 +0000 (05:46 +0000)]
Create common routines for configuring the serial ports and use them
on all the at91rm9200 boards.

12 years agoImport bsdconfig(8) as a replacement for the post-install abilities of
dteske [Sat, 14 Jul 2012 03:16:57 +0000 (03:16 +0000)]
Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org>
Reviewed by: Ron McDowell <rcm@fuzzwad.org>
Approved by: Ed Maste (emaste)

12 years agoThe call to disk_resize causes a panic if DIAGNOSTIC is set.
mjacob [Sat, 14 Jul 2012 02:59:11 +0000 (02:59 +0000)]
The call to disk_resize causes a panic if DIAGNOSTIC is set.
Coping with that while the finest minds of our generation
figure out why.

12 years agoChange the RX EDMA path to first complete the FIFO, then re-populate it
adrian [Sat, 14 Jul 2012 02:52:48 +0000 (02:52 +0000)]
Change the RX EDMA path to first complete the FIFO, then re-populate it
with fresh descriptors, before handling the frames.

Wrap it all in the RX locks.

Since the FIFO is very shallow (16 for HP, 128 for LP) it needs to be
drained and replenished very quickly.  Ideally, I'll eventually move this
RX FIFO drain/fill into the interrupt handler, only deferring the actual
frame completion.

12 years agoDon't free the descriptor allocation/map if it doesn't exist.
adrian [Sat, 14 Jul 2012 02:47:16 +0000 (02:47 +0000)]
Don't free the descriptor allocation/map if it doesn't exist.

I missed this in my previous commit.

12 years agoCreate an RX queue lock.
adrian [Sat, 14 Jul 2012 02:22:17 +0000 (02:22 +0000)]
Create an RX queue lock.

Ideally these locks would go away and there'd be a single driver lock,
like what iwn(4) does.  I'll worry about that later.

12 years agoFix EDMA RX to actually work without panicing the machine.
adrian [Sat, 14 Jul 2012 02:07:51 +0000 (02:07 +0000)]
Fix EDMA RX to actually work without panicing the machine.

I was setting up the RX EDMA buffer to be 4096 bytes rather than the
RX data buffer portion.  The hardware was likely getting very confused
and DMAing descriptor portions into places it shouldn't, leading to
memory corruption and occasional panics.

Whilst here, don't bother allocating descriptors for the RX EDMA case.
We don't use those descriptors. Instead, just allocate ath_buf entries.

12 years agoFix domain.
dteske [Sat, 14 Jul 2012 01:45:35 +0000 (01:45 +0000)]
Fix domain.

Approved by: emaste

12 years agosh: Add tests where "export" does not parse differently.
jilles [Fri, 13 Jul 2012 22:29:02 +0000 (22:29 +0000)]
sh: Add tests where "export" does not parse differently.

It is planned to expand variable assignments as assignments (no word
splitting, different tilde expansion) when they follow a "declaration
utility" (export, readonly or local). However, a quoted character cannot be
part of a "name" so things like \v=~ are not assignments, and the existing
behaviour applies.

12 years agoPull in r159895 from upstream clang trunk:
dim [Fri, 13 Jul 2012 21:48:01 +0000 (21:48 +0000)]
Pull in r159895 from upstream clang trunk:

  When marking virtual functions as used for a class' vtable, mark all functions
  which will appear in the vtable as used, not just those ones which were
  declared within the class itself. Fixes an issue reported as comment#3 in
  PR12763 -- we sometimes assert in codegen if we try to emit a reference to a
  function declaration which we've not marked as referenced. This also matches
  gcc's observed behavior.

This should fix clang assertions when building certain components of the
LibreOffice port.

MFC after: 3 days

12 years agoAdd HISTORY section.
joel [Fri, 13 Jul 2012 21:27:18 +0000 (21:27 +0000)]
Add HISTORY section.

12 years agoMFP4 214344:
brooks [Fri, 13 Jul 2012 20:10:59 +0000 (20:10 +0000)]
MFP4 214344:
Tighten the regular expression that checks for an md /tmp such that
no /tmp mount and an md / isn't improperly matched.

Sponsored by: DARPA/AFRL

12 years agoMinor mdoc, spelling and end of line whitespace fixes.
joel [Fri, 13 Jul 2012 15:25:10 +0000 (15:25 +0000)]
Minor mdoc, spelling and end of line whitespace fixes.

12 years agoMake the interval timings for EVFILT_TIMER more accurate. tvtohz() always
jhb [Fri, 13 Jul 2012 13:24:33 +0000 (13:24 +0000)]
Make the interval timings for EVFILT_TIMER more accurate.  tvtohz() always
adds an extra tick to account for the current partial clock tick.  However,
that is not appropriate for a repeating timer when the exact tvtohz() value
should be used for subsequent intervals.  Fix repeating callouts for
EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the
fix used in realitexpire() for interval timers.

While here, update a few comments to note that if the EVFILT_TIMER code
were to move out of kern_event.c, it should move to kern_time.c (where the
interval timer code it mimics lives) rather than kern_timeout.c.

MFC after: 1 month

12 years agoThe etcupdate utility is a tool for managing updates to files that are
jhb [Fri, 13 Jul 2012 13:23:48 +0000 (13:23 +0000)]
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

The primary difference from mergemaster is that etcupdate requires less
manual work.  The primary difference from etcmerge is that etcupdate
updates files in-place similar to mergemaster rather than building a
separate /etc tree.

Requested by: obrien, kib, theraven, joeld (among others)

12 years agoMerge illumos commit 13749:df4cd82e2b60
mm [Fri, 13 Jul 2012 12:37:34 +0000 (12:37 +0000)]
Merge illumos commit 13749:df4cd82e2b60

1796 "ZFS HOLD" should not be used when doing "ZFS SEND" froma read-only pool
2871 support for __ZFS_POOL_RESTRICT used by ZFS test suite
2903 zfs destroy -d does not work
2957 zfs destroy -R/r sometimes fails when removing defer-destroyed snapshot

References:
https://www.illumos.org/issues/1796
https://www.illumos.org/issues/2871
https://www.illumos.org/issues/2903
https://www.illumos.org/issues/2957

MFC after: 1 week

12 years agoacpi_cpu: separate a notion of current deepest allowed+available Cx level
avg [Fri, 13 Jul 2012 08:11:55 +0000 (08:11 +0000)]
acpi_cpu: separate a notion of current deepest allowed+available Cx level

... from a user-set persistent limit on the said level.
Allow to set the user-imposed limit below current deepest available level
as the available levels may be dynamically changed by ACPI platform
in both directions.
Allow "Cmax" as an input value for cx_lowest sysctls to mean that there
is not limit and OS can use all available C-states.
Retire global cpu_cx_count as it no longer serves any meaningful
purpose.

Reviewed by: jhb, gianni, sbruno
Tested by: sbruno, Vitaly Magerya <vmagerya@gmail.com>
MFC after: 2 weeks

12 years agoWhitespace nit
kevlo [Fri, 13 Jul 2012 06:46:09 +0000 (06:46 +0000)]
Whitespace nit

12 years agoFor our at91rm9200 boards, register which subtype of SoC is on the
imp [Fri, 13 Jul 2012 04:22:08 +0000 (04:22 +0000)]
For our at91rm9200 boards, register which subtype of SoC is on the
board.  We'll use this later to control the differences between these
two variants' pins.

12 years agoWring a few cycles out of pmap_enter(). In particular, on a user-space
alc [Fri, 13 Jul 2012 04:10:41 +0000 (04:10 +0000)]
Wring a few cycles out of pmap_enter().  In particular, on a user-space
pmap, avoid walking the page table twice.

12 years agoFix the previous commit. Obsolete libraries must be added to OLD_LIBS.
jkim [Thu, 12 Jul 2012 23:11:30 +0000 (23:11 +0000)]
Fix the previous commit.  Obsolete libraries must be added to OLD_LIBS.

Pointyhat to: me

12 years agoSort ASM definitions by crypto module for slightly easier maintenance.
jkim [Thu, 12 Jul 2012 21:31:53 +0000 (21:31 +0000)]
Sort ASM definitions by crypto module for slightly easier maintenance.
Specifically, GHASH_ASM belongs to crypto/modes.

12 years agoMerge OpenSSL 1.0.1c.
jkim [Thu, 12 Jul 2012 19:30:53 +0000 (19:30 +0000)]
Merge OpenSSL 1.0.1c.

Approved by: benl (maintainer)

12 years agoThis file is no longer AT91RM9200 specific, but now is generic to all
imp [Thu, 12 Jul 2012 19:15:38 +0000 (19:15 +0000)]
This file is no longer AT91RM9200 specific, but now is generic to all
Atmel AT91 SoC's we support.  Rename to reflect that.

12 years agoRemember where we found the DBGU and use that for our console.
imp [Thu, 12 Jul 2012 19:11:37 +0000 (19:11 +0000)]
Remember where we found the DBGU and use that for our console.

12 years agoDocument the behavior of mount with failok specified.
eadler [Thu, 12 Jul 2012 15:20:20 +0000 (15:20 +0000)]
Document the behavior of mount with failok specified.

PR: docs/163742
Submitted by: gcooper
Discussion by: gcooper
Discussion by: bjk
Approved by: gabor
MFC after: 3 days

12 years agoFix whitespace divot.
imp [Thu, 12 Jul 2012 13:54:24 +0000 (13:54 +0000)]
Fix whitespace divot.

12 years agoComplete the transition away from newbus to populate the children to
imp [Thu, 12 Jul 2012 13:45:58 +0000 (13:45 +0000)]
Complete the transition away from newbus to populate the children to
the linker set of CPU modules.  The newbus method, although clever,
had many flaws: it didn't really support multiple SoC, many of the
comments about order were just wrong, and it did a few things far too
late to be useful.  delay and cpu_reset now work much earlier in the
boot process.

12 years agoUpdate for new core team. Looks like this file was not updated two years
gavin [Thu, 12 Jul 2012 12:11:32 +0000 (12:11 +0000)]
Update for new core team.  Looks like this file was not updated two years
ago for the last core team.

MFC after: 3 days

12 years agoAdd and utilize defines for the ATA device register.
brueffer [Thu, 12 Jul 2012 10:09:34 +0000 (10:09 +0000)]
Add and utilize defines for the ATA device register.

PR: 169764
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav
MFC after: 2 weeks

12 years agoDocument the sysctl/tunable changes in r238379 and r238382.
brueffer [Thu, 12 Jul 2012 07:34:09 +0000 (07:34 +0000)]
Document the sysctl/tunable changes in r238379 and r238382.

Suggested by: mjacob

12 years agoChange behavior introduced in r237119 to vendor solution
mm [Thu, 12 Jul 2012 06:29:54 +0000 (06:29 +0000)]
Change behavior introduced in r237119 to vendor solution

References:
https://www.illumos.org/issues/2883

PR: 167905
Obtained from: illumos (issue #2883)
MFC after: 2 weeks

12 years agoCreate the children devices for the SoC in atmelarm bus node, not in
imp [Thu, 12 Jul 2012 04:23:11 +0000 (04:23 +0000)]
Create the children devices for the SoC in atmelarm bus node, not in
the identify routine of the CPU.

12 years agoExport the interrupt status vector via soc_data. Set the interrupt
imp [Thu, 12 Jul 2012 02:58:45 +0000 (02:58 +0000)]
Export the interrupt status vector via soc_data.  Set the interrupt
priorities in the AIC in the atmelarm driver before attaching the
children.  Delete redunant copies of the code.

12 years agoImport OpenSSL 1.0.1c.
jkim [Wed, 11 Jul 2012 23:31:36 +0000 (23:31 +0000)]
Import OpenSSL 1.0.1c.

Approved by: benl (maintainer)

12 years agoApply similar same change as in r238379:
brueffer [Wed, 11 Jul 2012 23:22:09 +0000 (23:22 +0000)]
Apply similar same change as in r238379:

Renamed the kern.cam.ada.ada_send_ordered sysctl and tunable to
kern.cam.ada.send_ordered, more in line with the other da sysctls/tunables.

Suggested by: kib

12 years agoMerge ACPICA 20120711.
jkim [Wed, 11 Jul 2012 23:18:35 +0000 (23:18 +0000)]
Merge ACPICA 20120711.

12 years agoRenamed the kern.cam.da.da_send_ordered sysctl and tunable to
brueffer [Wed, 11 Jul 2012 23:00:26 +0000 (23:00 +0000)]
Renamed the kern.cam.da.da_send_ordered sysctl and tunable to
kern.cam.da.send_ordered, more in line with the other da sysctls/tunables.

PR: 169765
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav

12 years agoRe-merge a couple of changes from NetBSD's libedit.
pfg [Wed, 11 Jul 2012 22:20:19 +0000 (22:20 +0000)]
Re-merge a couple of changes from NetBSD's libedit.

bin/sh has been taught about el_gets setting the count to -1
on error, so now we can partially revert r238173 to reduce
differences with NetBSD's implementation.

Unfortunately NetBSD's libedit handling of EINTR (Revision
1.44 in read.c + SIGWINCH fixes) still causes trouble in
bin/sh and other utilities and has to be avoided.

MFC after: 1 month

12 years agoMerge libedit adjustment from NetBSD.
pfg [Wed, 11 Jul 2012 22:17:58 +0000 (22:17 +0000)]
Merge libedit adjustment from NetBSD.

On recent versions of NetBSD's libedit, el_gets
now sets el_len to -1 on error so we can
distinguish between a NULL string and an error.

This fixes sh from exiting with newer versions
of libedit now allowing EINTR to return.

Obtained from: NetBSD
Reviewed by: jilles
MFC after: 3 weeks

12 years agoMake the SoC stuff a little more modular, and start to move away from
imp [Wed, 11 Jul 2012 20:17:14 +0000 (20:17 +0000)]
Make the SoC stuff a little more modular, and start to move away from
having the CPU device that's a child of atmelarm that does stuff.

o Create a linker_set for the support fucntions for the SoCs.
o Rename soc_data to soc_info.
o Move the delay and reset function pointers to new soc_data struct
o Create elements for all known SoCs
o Add lookup of the SoC we found, and print a warning if it isn't one
  we know about.

12 years agoAdd a test program, written by Stephan Uphoff, which demonstrates the
kib [Wed, 11 Jul 2012 19:12:10 +0000 (19:12 +0000)]
Add a test program, written by Stephan Uphoff, which demonstrates the
deadlock due to i/o performed over the buffers backed by file mappings.

MFC after: 2 weeks
Approved by: ups

12 years agosys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless...
sbruno [Wed, 11 Jul 2012 19:08:23 +0000 (19:08 +0000)]
sys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless the file also includes opt_mfi.h.

Submitted by: Andrew Boyer aboyer@averesystems.com
MFC after: 2 weeks

12 years agoFix build for kernels with dtrace hooks.
kib [Wed, 11 Jul 2012 18:50:50 +0000 (18:50 +0000)]
Fix build for kernels with dtrace hooks.

MFC after: 1 month

12 years agoWhen an MFI command fails, the driver needs to set bio->bio_resid so that
sbruno [Wed, 11 Jul 2012 18:16:54 +0000 (18:16 +0000)]
When an MFI command fails, the driver needs to set bio->bio_resid so that
the upper levels notice.  Otherwise we see commands silently failing leading
to data corruption.  This mirrors dadone()

Submitted by: Andrew Boyer aboyer@averesystems.com
Reviewed by: scottl@freebsd.org
MFC after: 2 weeks

12 years agoat91pit->at91_pit for consistnecy with other drivers.
imp [Wed, 11 Jul 2012 17:11:54 +0000 (17:11 +0000)]
at91pit->at91_pit for consistnecy with other drivers.

12 years agoat91$DEV->at91_$DEV to match other Atmel drivers. Also, export
imp [Wed, 11 Jul 2012 17:11:07 +0000 (17:11 +0000)]
at91$DEV->at91_$DEV to match other Atmel drivers.  Also, export
at91_rst_cpu_reset.

12 years agoImport ACPICA 20120711.
jkim [Wed, 11 Jul 2012 16:51:47 +0000 (16:51 +0000)]
Import ACPICA 20120711.

12 years agoInitial commit of an I/O provider for DTrace on FreeBSD.
gnn [Wed, 11 Jul 2012 16:27:02 +0000 (16:27 +0000)]
Initial commit of an I/O provider for DTrace on FreeBSD.

These probes are most useful when looking into the structures
they provide, which are listed in io.d.  For example:

dtrace -n 'io:genunix::start { printf("%d\n", args[0]->bio_bcount); }'

Note that the I/O systems in FreeBSD and Solaris/Illumos are sufficiently
different that there is not a 1:1 mapping from scripts that work
with one to the other.
MFC after: 1 month

12 years agoCast a bus address to a uintmax_t for a debug printf to fix the build on
jhb [Wed, 11 Jul 2012 15:04:20 +0000 (15:04 +0000)]
Cast a bus address to a uintmax_t for a debug printf to fix the build on
arm.

12 years agoMap ATH_KTR_* to 0 when ATH_DEBUG is not defined. This effectively NOPs
jhb [Wed, 11 Jul 2012 12:10:13 +0000 (12:10 +0000)]
Map ATH_KTR_* to 0 when ATH_DEBUG is not defined.  This effectively NOPs
out their use in that case.

12 years ago- fix description of SECURITY_FREEZE_LOCK (1)
brueffer [Wed, 11 Jul 2012 08:24:30 +0000 (08:24 +0000)]
- fix description of SECURITY_FREEZE_LOCK (1)
- add missing underscores to SECURITY_DISABLE_PASSWORD

PR: 169763 (1)
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav
MFC after: 1 week

12 years agoMerge from r234532:
hrs [Wed, 11 Jul 2012 02:57:32 +0000 (02:57 +0000)]
Merge from r234532:

- Fix an ifname matching issue which prevented "ifconfig wlan0 create" from
  working.
- Return non-zero status when unit < 0.

Spotted by: dhw

12 years agoVarious VirtIO improvements
grehan [Wed, 11 Jul 2012 02:57:19 +0000 (02:57 +0000)]
Various VirtIO improvements

      PCI:
        - Properly handle interrupt fallback from MSIX to MSI to legacy.
          The host may not have sufficient resources to support MSIX,
          so we must be able to fallback to legacy interrupts.
        - Add interface to get the (sub) vendor and device IDs.
        - Rename flags to VTPCI_FLAG_* like other VirtIO drivers.
      Block:
        - No longer allocate vtblk_requests from separate UMA zone.
          malloc(9) from M_DEVBUF is sufficient. Assert segment counts
          at allocation.
        - More verbose error and debug messages.
      Network:
        - Remove stray write once variable.
      Virtqueue:
        - Shuffle code around in preparation of converting the mb()s to
          the appropriate atomic(9) operations.
        - Only walk the descriptor chain when freeing if INVARIANTS is
          defined since the result is only KASSERT()ed.

Submitted by: Bryan Venteicher (bryanv@daemoninthecloset.org)

12 years agoDocument the object type movements, related to swp_pager_copy(),
attilio [Wed, 11 Jul 2012 01:04:59 +0000 (01:04 +0000)]
Document the object type movements, related to swp_pager_copy(),
in vm_object_collapse() and vm_object_split().

In collabouration with: alc
MFC after: 3 days

12 years agoRemove some more unused code.
imp [Tue, 10 Jul 2012 23:11:52 +0000 (23:11 +0000)]
Remove some more unused code.

12 years agoAvoid recursion on the pvh global lock in the aim oea pmap.
alc [Tue, 10 Jul 2012 22:10:21 +0000 (22:10 +0000)]
Avoid recursion on the pvh global lock in the aim oea pmap.

Correct the return type of the pmap_ts_referenced() implementations.

Reported by: jhibbits [1]
Tested by: andreast

12 years agoChange a duplicated check to clarify that we really want to set a
brueffer [Tue, 10 Jul 2012 21:02:59 +0000 (21:02 +0000)]
Change a duplicated check to clarify that we really want to set a
reasonable default timeout.

PR: 163135
Submitted by: Sascha Wildner <saw@online.de>
Suggested by: bp
Reviewed by: bp

12 years agoSimplify error case
emaste [Tue, 10 Jul 2012 20:59:35 +0000 (20:59 +0000)]
Simplify error case

Submitted by: thompsa@

12 years agoGo ahead and disable the interrupts for the DBGU the boot loader may
imp [Tue, 10 Jul 2012 19:48:42 +0000 (19:48 +0000)]
Go ahead and disable the interrupts for the DBGU the boot loader may
have left enabled after we detect the CPU, and remove the multiplely
copied code from the SoC modules.

12 years agoFix build when ATH_DEBUG is not defined.
jhb [Tue, 10 Jul 2012 18:57:05 +0000 (18:57 +0000)]
Fix build when ATH_DEBUG is not defined.

12 years agoCommit missing flags for the high/low priority (HP/LP) RX queues.
adrian [Tue, 10 Jul 2012 18:30:20 +0000 (18:30 +0000)]
Commit missing flags for the high/low priority (HP/LP) RX queues.

Noticed by: everyone

12 years agoRemove a useless bit of indirection. On all Atmel ARM products, irq 1
imp [Tue, 10 Jul 2012 15:02:29 +0000 (15:02 +0000)]
Remove a useless bit of indirection.  On all Atmel ARM products, irq 1
is the system IRQ, so use the define for it and get on with life.

12 years agoRevert committal of local change accidentally swept up in r238329.
imp [Tue, 10 Jul 2012 14:21:25 +0000 (14:21 +0000)]
Revert committal of local change accidentally swept up in r238329.

12 years agoPlug potential mbuf leak when bridging fragments
emaste [Tue, 10 Jul 2012 13:17:32 +0000 (13:17 +0000)]
Plug potential mbuf leak when bridging fragments

If an error occurs when transmitting one mbuf in a chain of fragments,
free the subsequent fragments instead of leaking them.

Sponsored by:   ADARA Networks

12 years agoMove the ffclock symbols from FBSD_1.2 to FBSD_1.3 where they should have been
lstewart [Tue, 10 Jul 2012 08:31:28 +0000 (08:31 +0000)]
Move the ffclock symbols from FBSD_1.2 to FBSD_1.3 where they should have been
put initially. They were added to head during development of 10-CURRENT, not
9-CURRENT.

Submitted by: glebius
Reviewed by: kib

12 years agoAdd some debugging and comments about what's going on when reinitialising
adrian [Tue, 10 Jul 2012 07:45:47 +0000 (07:45 +0000)]
Add some debugging and comments about what's going on when reinitialising
the FIFO.

I still see some corner cases where no RX occurs when it should be
occuring.  It's quite possible that there's a subtle race condition
somewhere; or maybe I'm not programming the RX queues right.

There's also no locking here yet, so any reset/configuration path
state change (ie, enabling/disabling receive from the ioctl, net80211
taskqueue, etc) could quite possibly confuse things.

12 years agoFlip on EDMA RX of both HP and LP queue frames.
adrian [Tue, 10 Jul 2012 07:43:31 +0000 (07:43 +0000)]
Flip on EDMA RX of both HP and LP queue frames.

Yes, this is in the legacy interrupt path.  The NIC does support
MSI but I haven't yet sat down and written that code.

12 years agoPure style mischief. at91_$DEV_ rather than at91$DEV_ to match
imp [Tue, 10 Jul 2012 06:21:42 +0000 (06:21 +0000)]
Pure style mischief.  at91_$DEV_ rather than at91$DEV_ to match
others.

12 years agoMinor rework to eliminate at91rm9200reg.h dependency and possibly set the
imp [Tue, 10 Jul 2012 06:18:53 +0000 (06:18 +0000)]
Minor rework to eliminate at91rm9200reg.h dependency and possibly set the
stage for a detach routine (unlikely to be useful, but while I was here..)

12 years agoMigrate the ATH_KTR_* fields out to if_ath_debug.h .
adrian [Tue, 10 Jul 2012 06:11:39 +0000 (06:11 +0000)]
Migrate the ATH_KTR_* fields out to if_ath_debug.h .

12 years agoPrint the TX buffer if this error condition is asserted.
adrian [Tue, 10 Jul 2012 06:10:49 +0000 (06:10 +0000)]
Print the TX buffer if this error condition is asserted.

I need to figure out why this is occuring.  Hopefully I can get enough
descriptor dumps to figure it out.

12 years agoAdd/fix EDMA RX behaviour.
adrian [Tue, 10 Jul 2012 06:05:42 +0000 (06:05 +0000)]
Add/fix EDMA RX behaviour.

* For now, kickpcu should hopefully just do nothing - the PCU doesn't need
  'kicking' for Osprey and later NICs. The PCU will just restart once
  the next FIFO entry is pushed in.

* Teach "proc" about "dosched", so it can be used to just flush the
  FIFO contents without adding new FIFO entries.

* .. and now, implement the RX "flush" routine.

* Re-initialise the FIFO contents if the FIFO is empty (the DP is NULL.)
  When PCU RX is disabled (ie, writing RX_D to the RX configuration
  register) then the FIFO will be completely emptied.  If the software FIFO
  is full, then no further descriptors are pushed into the FIFO and
  things stall.

This all requires much, much more thorough stress testing.

12 years agoAlways clear p_xthread if current thread no longer needs it, in theory, if
davidxu [Tue, 10 Jul 2012 05:45:13 +0000 (05:45 +0000)]
Always clear p_xthread if current thread no longer needs it, in theory, if
debugger exited without calling ptrace(PT_DETACH), there is a time window
that the p_xthread may be pointing to non-existing thread, in practical,
this is not a problem because child process soon will be killed by parent
process.

12 years agoRevert last change. It was accidental.
imp [Tue, 10 Jul 2012 05:39:06 +0000 (05:39 +0000)]
Revert last change.  It was accidental.

12 years agoCollapse all copies of at91_add_child into at91.c. They were
imp [Tue, 10 Jul 2012 04:17:49 +0000 (04:17 +0000)]
Collapse all copies of at91_add_child into at91.c.  They were
logically identical before today, and actually identical after today's
changes.

12 years agoReorder these so they match the capability enum order.
adrian [Tue, 10 Jul 2012 03:48:07 +0000 (03:48 +0000)]
Reorder these so they match the capability enum order.

12 years agoMissed one of the special AT91SAM9xxx_BASE defines. This should be
imp [Tue, 10 Jul 2012 02:44:15 +0000 (02:44 +0000)]
Missed one of the special AT91SAM9xxx_BASE defines.  This should be
AT91_BASE.

12 years agoThe system IRQ is always IRQ 1. Make it so.
imp [Tue, 10 Jul 2012 02:39:03 +0000 (02:39 +0000)]
The system IRQ is always IRQ 1.  Make it so.

12 years agoEliminate the AT91XXXX_BASE for each SoC. AT91_BASE is the right way
imp [Tue, 10 Jul 2012 02:14:50 +0000 (02:14 +0000)]
Eliminate the AT91XXXX_BASE for each SoC.  AT91_BASE is the right way
to spell this since we only have one AT91_BASE for all Atmel arm9 SoCs.

12 years agoRemove some unused variables/externs that have been copied too many times...
imp [Tue, 10 Jul 2012 01:49:50 +0000 (01:49 +0000)]
Remove some unused variables/externs that have been copied too many times...

12 years agoExecuting CPUID with EAX set to 1 to actually get feature flags.
davidxu [Tue, 10 Jul 2012 01:47:11 +0000 (01:47 +0000)]
Executing CPUID with EAX set to 1 to actually get feature flags.
PR: 169730

12 years agoNot quite ready for this yet, so comment it out.
imp [Tue, 10 Jul 2012 01:32:52 +0000 (01:32 +0000)]
Not quite ready for this yet, so comment it out.

12 years agoThere's nothing AT91RM9200 specific about this file at all.
imp [Tue, 10 Jul 2012 01:13:00 +0000 (01:13 +0000)]
There's nothing AT91RM9200 specific about this file at all.

12 years agoRemove a check on MNTK_UPDATE that is not really necessary as it is
attilio [Tue, 10 Jul 2012 00:23:25 +0000 (00:23 +0000)]
Remove a check on MNTK_UPDATE that is not really necessary as it is
handled in a code snippet above.

12 years agoImplement EDMA RX for AR93xx and later chips.
adrian [Tue, 10 Jul 2012 00:08:39 +0000 (00:08 +0000)]
Implement EDMA RX for AR93xx and later chips.

This is inspired by ath9k and the reference driver, but it's a new
implementation of the RX FIFO handling.

This has some issues - notably the FIFO needs to be reprogrammed when
the chip is reset.

12 years agoConvert sc_rxpending to a per-EDMA queue, and use that for the legacy code.
adrian [Tue, 10 Jul 2012 00:02:19 +0000 (00:02 +0000)]
Convert sc_rxpending to a per-EDMA queue, and use that for the legacy code.

Prepare ath_rx_pkt() to handle multiple RX queues, and default the legacy
RX queue to use the HP queue.

12 years ago- Remove the unused and not completed write support for NTFS.
attilio [Tue, 10 Jul 2012 00:01:00 +0000 (00:01 +0000)]
- Remove the unused and not completed write support for NTFS.
- Fix a bug where vfs_mountedfrom() is called also when the filesystem
  is not mounted successfully.

Tested by: pho

12 years agoAdd some AR9300 HAL descriptor definition changes.
adrian [Mon, 9 Jul 2012 23:58:22 +0000 (23:58 +0000)]
Add some AR9300 HAL descriptor definition changes.

* Add a couple of RX errors;
* Add the spectral scan PHY error code;
* extend the RX flags to be a 16 bit field, rather than an 8 bit field;
* Add a new RX flag.

Obtained from: Qualcomm Atheros

12 years agoFix a bug in code that calculates the number of the first interrupt
np [Mon, 9 Jul 2012 21:53:50 +0000 (21:53 +0000)]
Fix a bug in code that calculates the number of the first interrupt
vector for a port.  This affected the gigabit ports of T422 cards (the
ones with 2x10G ports and 2x1G ports).

MFC after: will check with re@

12 years agoAdd a clts() wrapper around the 'clts' instruction to <machine/cpufunc.h>
jhb [Mon, 9 Jul 2012 20:55:39 +0000 (20:55 +0000)]
Add a clts() wrapper around the 'clts' instruction to <machine/cpufunc.h>
on x86 and use that to implement stop_emulating() in the fpu/npx code.
Reimplement start_emulating() in the non-XEN case by using load_cr0() and
rcr0() instead of the 'lmsw' and 'smsw' instructions.  Intel explicitly
discourages the use of 'lmsw' and 'smsw' on 80386 and later processors in
the description of these instructions in Volume 2 of the ADM.

Reviewed by: kib
MFC after: 1 month

12 years agoPartially revert r217515 so that the mem_range_softc variable is always
jhb [Mon, 9 Jul 2012 20:42:08 +0000 (20:42 +0000)]
Partially revert r217515 so that the mem_range_softc variable is always
present on x86 kernels.  This fixes the build of kernels that include
'device acpi' but do not include 'device mem'.

MFC after: 1 month

12 years agoIn epair_clone_destroy(), when destroying the second half, we have to
trociny [Mon, 9 Jul 2012 20:38:18 +0000 (20:38 +0000)]
In epair_clone_destroy(), when destroying the second half, we have to
switch to its vnet before calling ether_ifdetach(). Otherwise if the
second half resides in a different vnet, if_detach() silently fails
leaving a stale pointer in V_ifnet list, and the system crashes trying
to access this pointer later.

Another solution could be not to allow to destroy epair unless both
ends are in the home vnet.

Discussed with: bz
Tested by: delphij

12 years agoFix a missing ";".
hrs [Mon, 9 Jul 2012 20:11:32 +0000 (20:11 +0000)]
Fix a missing ";".

12 years agoRevert revision 238172 of agp_i810.c. Correctness is considered more
marcel [Mon, 9 Jul 2012 16:23:59 +0000 (16:23 +0000)]
Revert revision 238172 of agp_i810.c.  Correctness is considered more
important than avoiding confusion.

Feedback from: kib, jhb

12 years agoRemove end of line whitespace.
joel [Mon, 9 Jul 2012 15:44:35 +0000 (15:44 +0000)]
Remove end of line whitespace.

12 years agoRestore error handling lost in r191603
emaste [Mon, 9 Jul 2012 14:16:49 +0000 (14:16 +0000)]
Restore error handling lost in r191603

This was missed in the change from IFQ_ENQUEUE to if_transmit.

Sponsored by:   ADARA Networks

12 years agoFix a bug introduced in r237715.
tuexen [Mon, 9 Jul 2012 10:59:39 +0000 (10:59 +0000)]
Fix a bug introduced in r237715.

MFC after:i 3 days.

12 years agoSupport Netlogic XLP 8xx B1 revisions in xlpge.
jchandra [Mon, 9 Jul 2012 10:39:57 +0000 (10:39 +0000)]
Support Netlogic XLP 8xx B1 revisions in xlpge.

Updates to the MDIO access code for the new revision of the
XLP chip.