]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoUpdate information on obtaining libarchive sources and FreeBSD-Xlist
mm [Fri, 27 Jul 2012 08:28:44 +0000 (08:28 +0000)]
Update information on obtaining libarchive sources and FreeBSD-Xlist

11 years agoMigrate the descriptor allocation function to not care about the number
adrian [Fri, 27 Jul 2012 05:48:42 +0000 (05:48 +0000)]
Migrate the descriptor allocation function to not care about the number
of buffers, only the number of descriptors.

This involves:

* Change the allocation function to not use nbuf at all;
* When calling it, pass in "nbuf * ndesc" to correctly update how many
  descriptors are being allocated.

Whilst here, fix the descriptor allocation code to correctly allocate
a larger buffer size if the Merlin 4KB WAR is required.  It overallocates
descriptors when allocating a block that doesn't ever have a 4KB boundary
being crossed, but that can be fixed at a later stage.

11 years agoDocument the dataflash/mmc-sd issue. Add umass driver and usb. Boot
imp [Fri, 27 Jul 2012 05:37:01 +0000 (05:37 +0000)]
Document the dataflash/mmc-sd issue.  Add umass driver and usb.  Boot
off da0s1a instead of ate0.  Note that MMC/SD is slot B.  Until I
switch over to NAND boot, dataflash booting will preclude having SD
cards inserted at boot, so this last bit is untested.

My SAM9260-EK not boots to multi-user prompt.

11 years agoRefactor out the descriptor allocation code from the buffer allocation
adrian [Fri, 27 Jul 2012 05:34:45 +0000 (05:34 +0000)]
Refactor out the descriptor allocation code from the buffer allocation
code.

The TX EDMA completion path is going to need descriptors allocated but
not any buffers.  This code will form the basis for that.

11 years agoTurns out the ETHERNUT5 isn't anything like the SAM9260-EK. Make this
imp [Fri, 27 Jul 2012 05:33:55 +0000 (05:33 +0000)]
Turns out the ETHERNUT5 isn't anything like the SAM9260-EK.  Make this
board init match better: UART1 instead of UART2, No RMMI, no SPI0, SPI1
comments.

11 years agoAdd (back?) ohci atmel attachment.
imp [Fri, 27 Jul 2012 05:28:02 +0000 (05:28 +0000)]
Add (back?) ohci atmel attachment.

11 years agoMinor style(9) nit.
imp [Fri, 27 Jul 2012 05:24:09 +0000 (05:24 +0000)]
Minor style(9) nit.

11 years agodefine prefetch as a noop on !x86
luigi [Thu, 26 Jul 2012 21:37:58 +0000 (21:37 +0000)]
define prefetch as a noop on !x86

11 years agoDocument -g option in the usage string.
pluknet [Thu, 26 Jul 2012 20:41:36 +0000 (20:41 +0000)]
Document -g option in the usage string.

11 years agoThe ad(4) driver no longer exists in FreeBSD CURRENT or 9, so change the
issyl0 [Thu, 26 Jul 2012 17:30:34 +0000 (17:30 +0000)]
The ad(4) driver no longer exists in FreeBSD CURRENT or 9, so change the
references to it in gsched(8) to the existing ada(4) driver.

PR: docs/170085
Submitted by: olgeni
Approved by: gavin
MFC after: 5 days

11 years agoAdd support for VALE bridges to the netmap core, see
luigi [Thu, 26 Jul 2012 16:45:28 +0000 (16:45 +0000)]
Add support for VALE bridges to the netmap core, see

    http://info.iet.unipi.it/~luigi/vale/

VALE lets you dynamically instantiate multiple software bridges
that talk the netmap API (and are *extremely* fast), so you can test
netmap applications without the need for high end hardware.

This is particularly useful as I am completing a netmap-aware
version of ipfw, and VALE provides an excellent testing platform.

Also, I also have netmap backends for qemu mostly ready for commit
to the port, and this too will let you interconnect virtual machines
at high speed without fiddling with bridges, tap or other slow solutions.

The API for applications is unchanged, so you can use the code
in tools/tools/netmap (which i will update soon) on the VALE ports.

This commit also syncs the code with the one in my internal repository,
so you will see some conditional code for other platforms.
The code should run mostly unmodified on stable/9 so people interested
in trying it can just copy sys/dev/netmap/ and sys/net/netmap*.h
from HEAD

VALE is joint work with my colleague Giuseppe Lettieri, and
is partly supported by the EU Projects CHANGE and OPENLAB

11 years agoTrim read/write sizes to 128 bytes. Pages are only 128 bytes in size.
imp [Thu, 26 Jul 2012 16:34:21 +0000 (16:34 +0000)]
Trim read/write sizes to 128 bytes.  Pages are only 128 bytes in size.
Writes larger than this will wrap to the same page.  Reads larger than
this are permitted, but why take chances.

11 years agoDrop non-portable libedit's el_data_set() and el_data_get() for
pfg [Thu, 26 Jul 2012 15:48:07 +0000 (15:48 +0000)]
Drop non-portable libedit's el_data_set() and el_data_get() for
private data.

We can set/get private data with the documented el_get() and
el_set() so there's no need for our local extensions, which
never received much use anyway.

While here, also re-arrange the call to term_init_arrow. This
was left over from r89735 but is not required anymore.

This changes reduce differences against NetBSD's libedit.

MFC after: 2 months

11 years agoStart manpage with Dd macro and also remove a trailing whitespace
joel [Thu, 26 Jul 2012 14:46:19 +0000 (14:46 +0000)]
Start manpage with Dd macro and also remove a trailing whitespace
while here.

11 years agoSwitch to using FC-Tape firmware.
mjacob [Thu, 26 Jul 2012 13:58:43 +0000 (13:58 +0000)]
Switch to using FC-Tape firmware.
Sponsered by: Spectralogic
MFC after: 1 week

11 years agoRefactor enclosure manegement support in ahci(4). Move it out into separate
mav [Thu, 26 Jul 2012 13:44:48 +0000 (13:44 +0000)]
Refactor enclosure manegement support in ahci(4). Move it out into separate
subdevice ahciem. Emulate SEMB SES device from AHCI LED interface to expose
it to users in form of ses(4) CAM device. If we ever see AHCI controllers
supporting SES of SAF-TE over I2C as described by specification, they should
fit well into this new picture.

Sponsored by: iXsystems, Inc.

11 years agoImprove descriptions for several devices supported by uslcom(4).
gavin [Thu, 26 Jul 2012 12:18:23 +0000 (12:18 +0000)]
Improve descriptions for several devices supported by uslcom(4).
Correct the spelling of the company Telegesis.
Move MpMan to the correct location alphabetically.

MFC after: 2 weeks

11 years agoAdd support for more devices to uslcom(4). This commit syncronises the
gavin [Thu, 26 Jul 2012 12:10:19 +0000 (12:10 +0000)]
Add support for more devices to uslcom(4).  This commit syncronises the
list of supported devices with the union of:

NetBSD  src/sys/dev/usb/uslsa.c 1.18
OpenBSD src/sys/dev/usb/uslcom.c 1.24
Linux   source/drivers/usb/serial/cp210x.c HEAD

Remove duplicate JABLOTRON PC60B entry.

Note that some of the devices added here are multi-port devices.  The
uslcom(4) driver currently only supports the first port on such devices.

Update the man page to reflect the full list of supported devices.
Remove two caveats from the CAVEATS section, as both listed caveats no
longer apply.  Add a caveat about multi-port devices.

MFC after: 2 weeks

11 years agoUpdate the 'C1x draft' reference to '.St -isoC-2011' mdoc macro.
pluknet [Thu, 26 Jul 2012 12:04:11 +0000 (12:04 +0000)]
Update the 'C1x draft' reference to '.St -isoC-2011' mdoc macro.

Reviewed by: theraven
MFC after: 1 week

11 years agoAdd OS X 10.8.
pluknet [Thu, 26 Jul 2012 11:51:29 +0000 (11:51 +0000)]
Add OS X 10.8.
Although they dropped the 'Mac' in this version,
prefer to stick with it for consistency.

Reviewed by: maxim

11 years agoPull up vendor changes to mdoc(7).
ru [Thu, 26 Jul 2012 11:12:38 +0000 (11:12 +0000)]
Pull up vendor changes to mdoc(7).

11 years agoBacked out r228904, and added libstdthreads support to mdoc(7) to where
ru [Thu, 26 Jul 2012 11:10:25 +0000 (11:10 +0000)]
Backed out r228904, and added libstdthreads support to mdoc(7) to where
it belongs.

11 years agoBacked out r236255, and added FreeBSD 9.1 support to mdoc(7) to where
ru [Thu, 26 Jul 2012 10:58:30 +0000 (10:58 +0000)]
Backed out r236255, and added FreeBSD 9.1 support to mdoc(7) to where
it belongs.

11 years agoTry to avoid all files dependence on the modification time of the large and
ache [Thu, 26 Jul 2012 10:10:54 +0000 (10:10 +0000)]
Try to avoid all files dependence on the modification time of the large and
often modified directory created symbolic links points to - it cause
unnecessary full rebuilds each time make runs when directory is changed.
So do it only if symbolic link does not exists, which usually means that
objdir is clean anyway.

MFC after:      1 week

11 years agoMFamd64 r238623:
kib [Thu, 26 Jul 2012 09:11:37 +0000 (09:11 +0000)]
MFamd64 r238623:
Introduce curpcb magic variable.

Requested and reviewed by: bde
MFC after: 3 weeks

11 years agoDo not requeue held page or page for which locking failed, just leave
kib [Thu, 26 Jul 2012 09:06:48 +0000 (09:06 +0000)]
Do not requeue held page or page for which locking failed, just leave
them alone.

Process the act_count updates for the held pages in the vm_pageout
loop over the inactive queue, instead of refusing to do anything with
such page.

Clarify the intent of the addl_page_shortage counter and change its
use for pages which are not processed in the loop according to the
description.

Reviewed by: alc
MFC after: 2 weeks

11 years agoFix the sctp_sockstore union such that userland programs don't depend
tuexen [Thu, 26 Jul 2012 08:10:29 +0000 (08:10 +0000)]
Fix the sctp_sockstore union such that userland programs don't depend
on INET and/or INET6 to be defined and in-tune with how the kernel
was compiled.

MFC after: 3 days
Discussed with: rrs

11 years agoAdd support for the DesignA Electronics Snapper9g45 System on Module.
andrew [Thu, 26 Jul 2012 08:05:28 +0000 (08:05 +0000)]
Add support for the DesignA Electronics Snapper9g45 System on Module.

Reviewed by: imp

11 years agoAdd support for the Atmel AT91SAM9G45 CPU.
andrew [Thu, 26 Jul 2012 08:01:25 +0000 (08:01 +0000)]
Add support for the Atmel AT91SAM9G45 CPU.

Reviewed by: imp

11 years agoSome models have 6 USARTS + DBGU. Set a consistent name.
imp [Thu, 26 Jul 2012 05:46:56 +0000 (05:46 +0000)]
Some models have 6 USARTS + DBGU.  Set a consistent name.

11 years agoFix typo in comment.
imp [Thu, 26 Jul 2012 05:37:36 +0000 (05:37 +0000)]
Fix typo in comment.
spibus uses cs= rather than addr=, so fix hints to use that (nop since
spibus cs defaults to 0, and at91_spi assumes 0).

11 years agoUpdate partitions to reflect "sam9 demo" defaults.
imp [Thu, 26 Jul 2012 05:35:10 +0000 (05:35 +0000)]
Update partitions to reflect "sam9 demo" defaults.
Update i2c devices to just include the eeprom.
Update dataflash chip select to be CS 1 (this doesn't work yet and
needs changes to at91_spi and the spibus infrastructure).
Fix typo in comment.

11 years agoReplace the macro name NUM with INTERVALS. This change provides
kargl [Thu, 26 Jul 2012 04:05:08 +0000 (04:05 +0000)]
Replace the macro name NUM with INTERVALS.  This change provides
compatibility with the INTERVALS macro used in the soon-to-be-commmitted
expm1l() and someday-to-be-committed log*l() functions.

Add a comment into ld128/s_expl.c noting at gcc issue that was
deleted when rewriting ld80/e_expl.c as ld128/s_expl.c.

Requested by: bde
Approved by: das (mentor)

11 years ago* ld80/expl.c:
kargl [Thu, 26 Jul 2012 03:59:33 +0000 (03:59 +0000)]
* ld80/expl.c:
  . Remove a few #ifdefs that should have been removed in the initial
    commit.
  . Sort fpmath.h to its rightful place.

* ld128/s_expl.c:
  . Replace EXPMASK with its actual value.
  . Sort fpmath.h to its rightful place.

Requested by: bde
Approved by: das (mentor)

11 years agoReplace code that toggles between 53 and 64 bits on i386
kargl [Thu, 26 Jul 2012 03:50:24 +0000 (03:50 +0000)]
Replace code that toggles between 53 and 64 bits on i386
class hardware with the ENTERI and RETURNI macros, which
are now available in math_private.h.

Suggested by: bde
Approved by: das (mentor)

11 years agoAdd a new man page containing details of new locale-specific functions for
issyl0 [Wed, 25 Jul 2012 22:17:44 +0000 (22:17 +0000)]
Add a new man page containing details of new locale-specific functions for
wctype.h, iswalnum_l(3).  Add it and its functions to the Makefile.

Reviewed by: gavin, jilles
Approved by: theraven
MFC after: 5 days

11 years agofind: Implement real -ignore_readdir_race.
jilles [Wed, 25 Jul 2012 21:59:10 +0000 (21:59 +0000)]
find: Implement real -ignore_readdir_race.

If -ignore_readdir_race is present, [ENOENT] errors caused by deleting a
file after find has read its name from a directory are ignored.

Formerly, -ignore_readdir_race did nothing.

PR: bin/169723
Submitted by: Valery Khromov and Andrey Ignatov

11 years agoAdd vendor.product for a mouse I have laying around
gavin [Wed, 25 Jul 2012 21:32:55 +0000 (21:32 +0000)]
Add vendor.product for a mouse I have laying around

11 years agoThe baud rate on CP1201/2/3 devices can be set in one of two ways:
gavin [Wed, 25 Jul 2012 20:46:22 +0000 (20:46 +0000)]
The baud rate on CP1201/2/3 devices can be set in one of two ways:
 - The USLCOM_SET_BAUD_DIV command (0x01)
 - The USLCOM_SET_BAUD_RATE command (0x13)

Devices based on the CP1204 will only accept the latter command, and ignore
the former.  As the latter command works on all chips that this driver
supports, switch to always using it.

A slight confusion here is that the previously used command was incorrectly
named USLCOM_BAUD_RATE - even though we no longer use it, rename it to
USLCOM_SET_BAUD_DIV to closer match the name used in the datasheet.

This change reflects a similar change made in the Linux driver, which was
submitted by preston.fick at silabs.com, and has been tested on all of the
uslcom(4) devices I have to hand.

MFC after: 2 weeks

11 years agoRevert previous commit. The bug was actually caused by an issue
gnn [Wed, 25 Jul 2012 17:49:01 +0000 (17:49 +0000)]
Revert previous commit.  The bug was actually caused by an issue
in pre 1.8.5 versions of sudo which were sending too many
SIGINTs to processes when the user hit Ctrl-C.

Pointed out by: avg@, rpaulo@, sbruno@

11 years agoUpdate supported hardware list after r238766.
gavin [Wed, 25 Jul 2012 17:25:44 +0000 (17:25 +0000)]
Update supported hardware list after r238766.

MFC after: 1 week

11 years agoremove some extra testing code that slipped into the previous commit
luigi [Wed, 25 Jul 2012 12:51:33 +0000 (12:51 +0000)]
remove some extra testing code that slipped into the previous commit

Reported-by: Alexander Motin
11 years agoFix a problem when CARP is enabled on the interface for IPv4
bz [Wed, 25 Jul 2012 12:14:39 +0000 (12:14 +0000)]
Fix a problem when CARP is enabled on the interface for IPv4
but not for IPv6.  The current checks in nd6_nbr.c along with the
old version will result in ifa being NULL and subsequently the
packet will be dropped.  This prevented NS/NA, from working and
with that IPv6.

Now return the ifa from the carp lookup function in two cases:
1) if the address matches, is a carp address, and we are MASTER
   (as before),
2) if the address matches but it is not a carp address at all (new).

Reported by: Peter Wemm (new Y! FreeBSD cluster, eating our own dogfood)
Tested on: New Y! FreeBSD cluster machines
Reviewed by: glebius

11 years agoUpdate the list of devices supported by uplcom. Although this only adds
gavin [Wed, 25 Jul 2012 11:33:43 +0000 (11:33 +0000)]
Update the list of devices supported by uplcom.  Although this only adds
one device (support for Motorola cables), this syncronises us with:

OpenBSD src/sys/dev/usb/uplcom.c 1.56
NetBSD  src/sys/dev/usb/uplcom.c 1.73
Linux   kernel.org HEAD

MFC after: 1 week

11 years agoUse legacy interrupts as a default. This gives up to 10% speedup
luigi [Wed, 25 Jul 2012 11:28:15 +0000 (11:28 +0000)]
Use legacy interrupts as a default. This gives up to 10% speedup
when used in qemu (and this driver is for non-PCIe cards,
so probably its largest use is in virtualized environments).

Approved by: Jack Vogel
MFC after: 3 days

11 years agoPreen unused Makefiles, programs and ftdump.c which has been renamed
imp [Wed, 25 Jul 2012 06:04:38 +0000 (06:04 +0000)]
Preen unused Makefiles, programs and ftdump.c which has been renamed
to fdtdump.c in the upstream repo.  This escaped my attention in the
import.

11 years agoAdd rmb() to tsc_read_##x to enforce serialization of rdtsc captures.
jimharris [Tue, 24 Jul 2012 22:10:11 +0000 (22:10 +0000)]
Add rmb() to tsc_read_##x to enforce serialization of rdtsc captures.

Intel Architecture Manual specifies that rdtsc instruction is not serialized,
so without this change, TSC synchronization test would periodically fail,
resulting in use of HPET timecounter instead of TSC-low.  This caused
severe performance degradation (40-50%) when running high IO/s workloads due to
HPET MMIO reads and GEOM stat collection.

Tests on Xeon E5-2600 (Sandy Bridge) 8C systems were seeing TSC synchronization
fail approximately 20% of the time.

Sponsored by: Intel
Reviewed by: kib
MFC after: 3 days

11 years agoAlign the header with output.
trociny [Tue, 24 Jul 2012 19:40:12 +0000 (19:40 +0000)]
Align the header with output.

MFC after: 3 days

11 years agoHeavy DNSSEC Validation Load Can Cause a "Bad Cache" Assertion Failure
dougb [Tue, 24 Jul 2012 18:53:28 +0000 (18:53 +0000)]
Heavy DNSSEC Validation Load Can Cause a "Bad Cache" Assertion Failure
in BIND9

High numbers of queries with DNSSEC validation enabled can cause an
assertion failure in named, caused by using a "bad cache" data structure
before it has been initialized.

CVE: CVE-2012-3817
Posting date: 24 July, 2012

11 years agoFix a bug in interrupt handling so that we're only considered
gnn [Tue, 24 Jul 2012 18:01:28 +0000 (18:01 +0000)]
Fix a bug in interrupt handling so that we're only considered
impatient if we sent more than 2 INT signals.  This fixes a bug where
we wouldn't see aggregations print on the command line if we Ctrl-C'd
a dtrace script or command line invocation.

MFC after: 2 weeks

11 years agoUpdate to latest git version of dtc to get new dtsv2 support,
imp [Tue, 24 Jul 2012 16:29:33 +0000 (16:29 +0000)]
Update to latest git version of dtc to get new dtsv2 support,
including the include directive.

Fix minor build issue corrected by converting yypush_buffer_state and
yypop_buffer_state to yy_set_buffer_state and a hard-coded 100-deep
stack.  It was easier to fix it here than to import that support into
our flex.

The new tools and test hardness remain unsupported at the moment.

11 years agoDon't ever build files depending on the directory where they are placed in.
ache [Tue, 24 Jul 2012 16:03:28 +0000 (16:03 +0000)]
Don't ever build files depending on the directory where they are placed in.
It is obvious that its modification time will change with each such file
builded.
This bug cause whole libelf to rebuild itself each second make run
(and relink that files on each first make run) in the loop.

11 years agoFix off by one error in ses_enc_desc_last_byte().
mav [Tue, 24 Jul 2012 13:32:49 +0000 (13:32 +0000)]
Fix off by one error in ses_enc_desc_last_byte().

11 years agoDo not call ses_softc_cleanup() in case of configuration read failure.
mav [Tue, 24 Jul 2012 13:08:43 +0000 (13:08 +0000)]
Do not call ses_softc_cleanup() in case of configuration read failure.
Just free inclomplete daemon cache instead to let it retry next time.
Premature ses_softc_cleanup() caused NULL dereference when freed softc
was accessed later.

11 years agoAdd missing files in f807af192828222dee7a5c9f94d999673bb4d8a1 import.
imp [Tue, 24 Jul 2012 04:12:44 +0000 (04:12 +0000)]
Add missing files in f807af192828222dee7a5c9f94d999673bb4d8a1 import.

11 years agoImport dtc from git://git.jdl.com/software/dtc
imp [Tue, 24 Jul 2012 02:58:10 +0000 (02:58 +0000)]
Import dtc from git://git.jdl.com/software/dtc
hash f807af192828222dee7a5c9f94d999673bb4d8a1

11 years agoAddendum to r238604. If the inactive queue scan isn't restarted, then
alc [Tue, 24 Jul 2012 02:35:30 +0000 (02:35 +0000)]
Addendum to r238604.  If the inactive queue scan isn't restarted, then
the variable "addl_page_shortage_init" isn't needed.

X-MFC after: r238604

11 years agoAdd a new HAL method - the AR93xx and later NICs have a separate
adrian [Tue, 24 Jul 2012 01:18:19 +0000 (01:18 +0000)]
Add a new HAL method - the AR93xx and later NICs have a separate
TX descriptor ring for TX status completion. This API call will pass
the allocated buffer details to the HAL.

11 years agoMFV: less v451.
delphij [Tue, 24 Jul 2012 01:09:11 +0000 (01:09 +0000)]
MFV: less v451.

11 years agoModify ath_descdma_setup() to take a descriptor size parameter.
adrian [Mon, 23 Jul 2012 23:40:13 +0000 (23:40 +0000)]
Modify ath_descdma_setup() to take a descriptor size parameter.

The AR9300 and later descriptors are 128 bytes, however I'd like to make
sure that isn't used for earlier chips.

* Populate the TX descriptor length field in the softc with
  sizeof(ath_desc)

* Use this field when allocating the TX descriptors

* Pre-AR93xx TX/RX descriptors will use the ath_desc size; newer ones will
  query the HAL for these sizes.

11 years agoHook ld80/s_expl.c or ld128/s_expl.c into the building of libm.
kargl [Mon, 23 Jul 2012 19:23:49 +0000 (19:23 +0000)]
Hook ld80/s_expl.c or ld128/s_expl.c into the building of libm.

PR: standards/152415
Approved by: das (mentor)

11 years agoForcibly shut up clang warning about NULL pointer dereference.
kib [Mon, 23 Jul 2012 19:16:31 +0000 (19:16 +0000)]
Forcibly shut up clang warning about NULL pointer dereference.

MFC after: 3 weeks

11 years agoCompute the exponential of x for Intel 80-bit format and IEEE 128-bit
kargl [Mon, 23 Jul 2012 19:13:55 +0000 (19:13 +0000)]
Compute the exponential of x for Intel 80-bit format and IEEE 128-bit
format.  These implementations are based on

PTP Tang, "Table-driven implementation of the exponential function
in IEEE floating-point arithmetic," ACM Trans. Math. Soft., 15,
144-157 (1989).

PR: standards/152415
Submitted by: kargl
Reviewed by: bde, das
Approved by: das (mentor)

11 years agoWhen WITHOUT_CLANG is being used, also clean out the clang 3.1 headers
dim [Mon, 23 Jul 2012 16:36:13 +0000 (16:36 +0000)]
When WITHOUT_CLANG is being used, also clean out the clang 3.1 headers
in OptionalObsoleteFiles.inc.

PR: misc/169902
Submitted by: Thomas Eberhardt <sneakywumpus@googlemail.com>
MFC after: 3 days

11 years agoQuirk MS keyboard so that function keys work
emaste [Mon, 23 Jul 2012 15:14:28 +0000 (15:14 +0000)]
Quirk MS keyboard so that function keys work

The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been
repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is
required to return them to their normal purpose.

This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000
keyboard to get the keys working again.  More extensive changes to the USB
keyboard infrastructure would be needed to fully support the "F Lock" mode
and the extended keys on this keyboard.

PR: usb/116947
Approved by: hselasky@

11 years agou3g: add support for Huawei E392 LTE modem
rea [Mon, 23 Jul 2012 14:22:45 +0000 (14:22 +0000)]
u3g: add support for Huawei E392 LTE modem

I am using it rebranded and it carries the label "Megafon"
(it is Russian mobile operator); works fine with my 3G network.

Approved by: hselasky

11 years agoRevert this; it wasn't supposed to be part of this commit.
adrian [Mon, 23 Jul 2012 03:55:19 +0000 (03:55 +0000)]
Revert this; it wasn't supposed to be part of this commit.

11 years agoBegin separating out the TX DMA setup in preparation for TX EDMA support.
adrian [Mon, 23 Jul 2012 03:52:18 +0000 (03:52 +0000)]
Begin separating out the TX DMA setup in preparation for TX EDMA support.

* Introduce TX DMA setup/teardown methods, mirroring what's done in
  the RX path.

  Although the TX DMA descriptor is setup via ath_desc_alloc() /
  ath_desc_free(), there TX status descriptor ring will be allocated
  in this path.

* Remove some of the TX EDMA capability probing from the RX path and
  push it into the new TX EDMA path.

11 years agoFlesh out a new DMA map for the EDMA TX completion status, as well
adrian [Mon, 23 Jul 2012 02:49:25 +0000 (02:49 +0000)]
Flesh out a new DMA map for the EDMA TX completion status, as well
as a lock to go with that whole code path.

11 years agoBegin modifying the descriptor allocation functions to support a variable
adrian [Mon, 23 Jul 2012 02:26:33 +0000 (02:26 +0000)]
Begin modifying the descriptor allocation functions to support a variable
sized TX descriptor.

This is required for the AR93xx EDMA support which requires 128 byte
TX descriptors (which is significantly larger than the earlier
hardware.)

11 years agoDocument the following in rc.conf.5:
gjb [Sun, 22 Jul 2012 23:21:21 +0000 (23:21 +0000)]
Document the following in rc.conf.5:
 - rtsold_enable
 - rtsold_flags
 - rtsol_flags

MFC after: 1 week

11 years agoCorrect ugen.4 to show that it has been integrated into usb(4). Also fix
wblock [Sun, 22 Jul 2012 21:43:46 +0000 (21:43 +0000)]
Correct ugen.4 to show that it has been integrated into usb(4).  Also fix
some punctuation errors.

Approved by: hps
MFC after: 3 days

11 years agoDerive FREEBSD_PART from /etc/fstab, and make it full device name.
phk [Sun, 22 Jul 2012 20:55:42 +0000 (20:55 +0000)]
Derive FREEBSD_PART from /etc/fstab, and make it full device name.

Give suggestion for next steps when done.

Inspired by patches from: Flemming "F3" Jacobsen

11 years agoPut struct ostat and struct nstat under #ifdef _KERNEL. The
kib [Sun, 22 Jul 2012 20:08:38 +0000 (20:08 +0000)]
Put struct ostat and struct nstat under #ifdef _KERNEL. The
compatibility definitions are only needed for implementation of the
syscalls, they cause namespace pollution and are not useful for
applications.

Noted by: bde
MFC after: 1 week

11 years agoReplace hardcoded /mnt with ${SBMNT} which defaults to /mnt.sysbuild
phk [Sun, 22 Jul 2012 19:32:27 +0000 (19:32 +0000)]
Replace hardcoded /mnt with ${SBMNT} which defaults to /mnt.sysbuild

Submitted by: Flemming "F3" Jacobsen

11 years agoFix a bug which prevents "nfsstat -W" for server statistics from working.
hrs [Sun, 22 Jul 2012 18:59:31 +0000 (18:59 +0000)]
Fix a bug which prevents "nfsstat -W" for server statistics from working.

11 years agoFix a bug introduced in r221129 that leads to a panic wen using bundled
bz [Sun, 22 Jul 2012 17:46:05 +0000 (17:46 +0000)]
Fix a bug introduced in r221129 that leads to a panic wen using bundled
SAs.  For now allow same address family bundles.  While discovered with
ESP and AH, which does not make a lot of sense, IPcomp could be a possible
problematic candidate.

PR: kern/164400
MFC after: 3 days

11 years agoUpdate some stale comments regarding tcbinfo locking in the TCP input
rwatson [Sun, 22 Jul 2012 17:31:36 +0000 (17:31 +0000)]
Update some stale comments regarding tcbinfo locking in the TCP input
path: read locks on tcbinfo are no longer used, so won't happen.  No
functional change.

MFC after: 3 days

11 years agoUse NULL instead of 0 for pointers
kevlo [Sun, 22 Jul 2012 15:40:31 +0000 (15:40 +0000)]
Use NULL instead of 0 for pointers

11 years agoCosmetics: define FREEBSD32_MINUSER and AOUT32_MINUSER for struct
kib [Sun, 22 Jul 2012 13:41:45 +0000 (13:41 +0000)]
Cosmetics: define FREEBSD32_MINUSER and AOUT32_MINUSER for struct
sysentvec .sv_minuser. Also improve style.

Submitted by: Oliver Pinter <oliver.pinter@gmail.com>
MFC after: 1 week

11 years agoMFCamd64 r238598:
kib [Sat, 21 Jul 2012 21:52:48 +0000 (21:52 +0000)]
MFCamd64 r238598:
Provide siginfo.si_code for floating point errors when error occurs
using the SSE math processor.

MFC after:    3 weeks

11 years agoMFamd64 r238668:
kib [Sat, 21 Jul 2012 21:49:05 +0000 (21:49 +0000)]
MFamd64 r238668:
Stop clearing x87 exceptions in the #MF handler.

Requested by: bde
MFC after: 1 week

11 years agoMFamd64 r238597:
kib [Sat, 21 Jul 2012 21:39:23 +0000 (21:39 +0000)]
MFamd64 r238597:
Add stmxcsr.

MFC after: 3 weeks

11 years agoMFamd64 r238669:
kib [Sat, 21 Jul 2012 21:39:02 +0000 (21:39 +0000)]
MFamd64 r238669:
Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS.

Reported by: bde
MFC after: 1 week

11 years agoUse 16bit PIO instead of 32bit in case of misaligned buffer.
mav [Sat, 21 Jul 2012 14:59:43 +0000 (14:59 +0000)]
Use 16bit PIO instead of 32bit in case of misaligned buffer.
It fixes kernel panic during CD write with cdrecord on sparc64.

11 years agoFix typo in comment, should be MHz here.
glebius [Sat, 21 Jul 2012 14:07:43 +0000 (14:07 +0000)]
Fix typo in comment, should be MHz here.

Submitted by: Daan Vreeken <Daan vitsch.nl>

11 years agoConstently use 2-space sentence breaks.
kib [Sat, 21 Jul 2012 13:53:00 +0000 (13:53 +0000)]
Constently use 2-space sentence breaks.

Submitted by:  bde
MFC after:  1 week

11 years agoStop caching curpcb in the local variable.
kib [Sat, 21 Jul 2012 13:47:37 +0000 (13:47 +0000)]
Stop caching curpcb in the local variable.

Requested by:     bde
MFC after:     1 week

11 years agoThe PT_I386_{GET,SET}XMMREGS and PT_{GET,SET}XSTATE operate on the
kib [Sat, 21 Jul 2012 13:06:37 +0000 (13:06 +0000)]
The PT_I386_{GET,SET}XMMREGS and PT_{GET,SET}XSTATE operate on the
stopped threads. Implementation assumes that the thread's FPU context
is spilled into the PCB due to stop. This is mostly true, except when
FPU state for the thread is not initialized. Then the requests operate
on the garbage state which is currently left in the PCB, causing
confusion.

The situation is indeed observed after a signal delivery and before
#NM fault on execution of any FPU instruction in the signal handler,
since sendsig(9) drops FPU state for current thread, clearing
PCB_FPUINITDONE. When inspecting context state for the signal handler,
debugger sees the FPU state of the main program context instead of the
clear state supposed to be provided to handler.

Fix this by forcing clean FPU state in PCB user FPU save area by
performing getfpuregs(9) before accessing user FPU save area in
ptrace_machdep.c.

Note: this change will be merged to i386 kernel as well, where it is
much more important, since e.g. gdb on i386 uses PT_I386_GETXMMREGS to
inspect FPU context on CPUs that support SSE. Amd64 version of gdb
uses PT_GETFPREGS to inspect both 64 and 32 bit processes, which does
not exhibit the bug.

Reported by: bde
MFC after: 1 week

11 years agoStop clearing x87 exceptions in the #MF handler on amd64. If user code
kib [Sat, 21 Jul 2012 13:05:34 +0000 (13:05 +0000)]
Stop clearing x87 exceptions in the #MF handler on amd64. If user code
understands FPU hardware enough to catch SIGFPE and unmask exceptions
in control word, then it may as well properly handle return from
SIGFPE without causing an infinite loop of #MF exceptions due to
faulting instruction restart, when needed.

Clearing exceptions causes information loss for handlers which do
understand FPU hardware, and struct siginfo si_code member cannot be
considered adequate replacement for en_sw content due to translation.

Supposed reason for clearing the exceptions, which is IRQ13 handling
oddities, were never applicable to amd64.

Note: this change will be merged to i386 kernel as well, since we do
not support IRQ13 delivery of #MF notifications for some time.

Requested by: bde
MFC after: 1 week

11 years ago(Incomplete) fixes for symbols visibility issues and style in fcntl.h.
kib [Sat, 21 Jul 2012 13:02:11 +0000 (13:02 +0000)]
(Incomplete) fixes for symbols visibility issues and style in fcntl.h.

Append '__' prefix to the tag of struct oflock, and put it under BSD
namespace. Structure is needed both by libc and kernel, thus cannot be
hidden under #ifdef _KERNEL.

Move a set of non-standard F_* and O_* constants into BSD namespace.
SUSv4 explicitely allows implemenation to pollute F_* and O_* names
after fcntl.h is included, but it costs us nothing to adhere
to the specification if exact POSIX compliance level is requested by
user code.

Change some spaces after #define to tabs.

Noted by and discussed with:      bde
MFC after:   1 week

11 years agoFix typo in bzero length argument during sense fetching.
mav [Sat, 21 Jul 2012 08:19:43 +0000 (08:19 +0000)]
Fix typo in bzero length argument during sense fetching.
For me it at least fixed CD burning in PIO mode.

MFC after: 3 days

11 years agoRemove copy/pasteo in the copyright notice.
gnn [Sat, 21 Jul 2012 07:14:52 +0000 (07:14 +0000)]
Remove copy/pasteo in the copyright notice.

11 years agoAdd a new script, hotopen, which shows what uid is opening files
gnn [Fri, 20 Jul 2012 23:56:23 +0000 (23:56 +0000)]
Add a new script, hotopen, which shows what uid is opening files
on a per second basis.  While here clean up the Makefile as well.

MFC after: 1 week

11 years agoMake it possible to resize opened partitions.
trasz [Fri, 20 Jul 2012 17:51:20 +0000 (17:51 +0000)]
Make it possible to resize opened partitions.

Sponsored by: FreeBSD Foundation

11 years agoMake ZVOL resizing ('zfs set volsize') properly resize the GEOM provider.
trasz [Fri, 20 Jul 2012 16:56:34 +0000 (16:56 +0000)]
Make ZVOL resizing ('zfs set volsize') properly resize the GEOM provider.

Sponsored by: FreeBSD Foundation

11 years agoUse proper error message when fstat(2) fails on stdout.
jh [Fri, 20 Jul 2012 08:33:23 +0000 (08:33 +0000)]
Use proper error message when fstat(2) fails on stdout.

PR: bin/159746
Submitted by: Alex K.

11 years agostyle(9).
jh [Fri, 20 Jul 2012 08:31:36 +0000 (08:31 +0000)]
style(9).

11 years agoAdd a needed #include due to my recent change.
adrian [Fri, 20 Jul 2012 07:49:26 +0000 (07:49 +0000)]
Add a needed #include due to my recent change.

11 years agoAdd missing SRCS.
adrian [Fri, 20 Jul 2012 07:38:11 +0000 (07:38 +0000)]
Add missing SRCS.