]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoRemove variables which are initialized but never used thereafter reported by gcc46...
Eitan Adler [Tue, 19 Jun 2012 06:09:58 +0000 (06:09 +0000)]
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva
MFC After: 3 days

12 years agoRemove variables which are initialized but never used thereafter reported by gcc46...
Eitan Adler [Tue, 19 Jun 2012 06:09:47 +0000 (06:09 +0000)]
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva
MFC After: 3 days

12 years agoRemove end of line whitespace.
Joel Dahl [Tue, 19 Jun 2012 05:55:14 +0000 (05:55 +0000)]
Remove end of line whitespace.

12 years agoMinor mdoc fixes.
Joel Dahl [Tue, 19 Jun 2012 05:53:47 +0000 (05:53 +0000)]
Minor mdoc fixes.

12 years agoDocument support for Intel Enhanced Speedstep Tech interface
Sean Bruno [Mon, 18 Jun 2012 23:18:49 +0000 (23:18 +0000)]
Document support for Intel Enhanced Speedstep Tech interface
of cpufreq(4) via a new man page est(4)

Document the two exposed tuneables of est(4).

I'd appreciate more reviews of content if possible.  I gleaned
the information contained herein from sys/x86/cpufreq/est.c and
the Intel reference documentation

Reviewed by:    wblock hrs gjb
MFC after:      2 weeks

12 years agoFix the NFSv4 client for the case where mmap'd files are
Rick Macklem [Mon, 18 Jun 2012 22:17:28 +0000 (22:17 +0000)]
Fix the NFSv4 client for the case where mmap'd files are
written, but not msync'd by a process. A VOP_PUTPAGES()
called when VOP_RECLAIM() happens will usually fail, since
the NFSv4 Open has already been closed by VOP_INACTIVE().
Add a vm_object_page_clean() call to the NFSv4 client's
VOP_INACTIVE(), so that the write happens before the NFSv4
Open is closed. kib@ suggested using vgone() instead and
I will explore this, but this patch fixes things in the
meantime. For some reason, the VOP_PUTPAGES() is still
attaempted in VOP_RECLAIM(), but having this fail doesn't
cause any problems except a "stateid0 in write" being logged.

Reviewed by: kib
MFC after: 1 week

12 years agoAdjust the fix in r236953, by not generating the signal manually, but
Konstantin Belousov [Mon, 18 Jun 2012 21:08:48 +0000 (21:08 +0000)]
Adjust the fix in r236953, by not generating the signal manually, but
performing the return to usermode using full return path.  This
consolidates the handling of exceptional situations in less number of
places, and is less code as well.

Reviewed by:   jhb
MFC after:     1 week

12 years agoRevert r236529, re-enabling verification of the flashed content as
Marius Strobl [Mon, 18 Jun 2012 20:19:07 +0000 (20:19 +0000)]
Revert r236529, re-enabling verification of the flashed content as
the underlying problem was dealt with in r237239 (in fact, disabling
verification also actually only made the problem less likely to occur).

12 years agoRevert the part of r236495 that introduced checking of SPI_SR_TXEMPTY
Marius Strobl [Mon, 18 Jun 2012 20:14:42 +0000 (20:14 +0000)]
Revert the part of r236495 that introduced checking of SPI_SR_TXEMPTY
for TX transfer completion as for reasons unknown this occasionally
causes SPI_SR_RXBUFF and SPI_SR_ENDRX to not rise.
In any case, once the RX part of the transfer is done it's obvious
that the preceding TX part had finished and checking of SPI_SR_TXEMPTY
was introduced to rule out a possible cause for the data corruption
mentioned in r236495 but which didn't turn out to be the problem
anyway.

MFC after: 3 days

12 years agoTry to bring this file closer to style(9).
Marius Strobl [Mon, 18 Jun 2012 19:47:25 +0000 (19:47 +0000)]
Try to bring this file closer to style(9).

12 years agoUnbreak after r236658 by comparing the right things.
Marius Strobl [Mon, 18 Jun 2012 19:22:10 +0000 (19:22 +0000)]
Unbreak after r236658 by comparing the right things.

12 years agoRefine r237102 a bit:
Marius Strobl [Mon, 18 Jun 2012 19:18:31 +0000 (19:18 +0000)]
Refine r237102 a bit:
- Anounce JTAG interfaces deliberately skipped.
- Bring back empty lines too eagerly removed.

MFC after: 3 days

12 years agoDocument the hw.ahci.force tunable here, too, as it's also used by
Marius Strobl [Mon, 18 Jun 2012 19:14:06 +0000 (19:14 +0000)]
Document the hw.ahci.force tunable here, too, as it's also used by
ataahci(4) and atanvidia(4).

MFC after: 3 days

12 years agoAvoid hard sentence break.
Marius Strobl [Mon, 18 Jun 2012 19:11:07 +0000 (19:11 +0000)]
Avoid hard sentence break.

MFC after: 3 days

12 years agoAdd rate limitation for SCTP OOTB responses.
Michael Tuexen [Mon, 18 Jun 2012 17:11:24 +0000 (17:11 +0000)]
Add rate limitation for SCTP OOTB responses.

MFC after: 3 days

12 years agoCleanup the UDP decapsulation code.
Michael Tuexen [Mon, 18 Jun 2012 17:09:39 +0000 (17:09 +0000)]
Cleanup the UDP decapsulation code.

MFC after: 3 days

12 years agoAdd PV chunk and list locking to pmap_page_exists_quick(),
Alan Cox [Mon, 18 Jun 2012 16:21:59 +0000 (16:21 +0000)]
Add PV chunk and list locking to pmap_page_exists_quick(),
pmap_page_is_mapped(), and pmap_remove_pages().  These functions
are no longer serialized by the pvh global lock.

12 years agoMake radix lookup on src and dst flow addresses optional
Alexander V. Chernikov [Mon, 18 Jun 2012 13:56:36 +0000 (13:56 +0000)]
Make radix lookup on src and dst flow addresses optional
and configurable on per-interface basis.
Remove __inline__ for several functions being called once per
flow (e.g once per 10-20 packets on common traffic flows).
Update manual page to simplify search for BPF data link types.

Sponsored by Yandex LLC

Reviewed by:      glebius
Approved by:      ae(mentor)
MFC after:        2 weeks

12 years agoSimplify IP pointer recovery in case of mbuf reallocation.
Alexander V. Chernikov [Mon, 18 Jun 2012 13:50:41 +0000 (13:50 +0000)]
Simplify IP pointer recovery in case of mbuf reallocation.

Reviewed by:     glebius (previous version)
Approved by:     ae(mentor)
MFC after:       2 weeks

12 years agoRemove never used CD/DA_FLAG_TAGGED_QUEUING flags.
Alexander Motin [Mon, 18 Jun 2012 12:45:35 +0000 (12:45 +0000)]
Remove never used CD/DA_FLAG_TAGGED_QUEUING flags.

MFC after: 1 week

12 years agoFix the previous commit to only copy the data we were asked to and not
Poul-Henning Kamp [Mon, 18 Jun 2012 07:54:10 +0000 (07:54 +0000)]
Fix the previous commit to only copy the data we were asked to and not
twice as much.

Spotted by: Taku YAMAMOTO

12 years agoIn tty_makedev() the following construction:
Peter Holm [Mon, 18 Jun 2012 07:34:38 +0000 (07:34 +0000)]
In tty_makedev() the following construction:

dev = make_dev_cred();
dev->si_drv1 = tp;

leaves a small window where the newly created device may be opened
and si_drv1 is NULL.

As this is a vary rare situation, using a lock to close the window
seems overkill. Instead just wait for the assignment of si_drv1.

Suggested by: kib
MFC after: 1 week

12 years agoExtend the radiotap code to be aware of the size of any extra vendor
Adrian Chadd [Mon, 18 Jun 2012 02:08:04 +0000 (02:08 +0000)]
Extend the radiotap code to be aware of the size of any extra vendor
bitmaps that may occur.

The way this works is:

* the beginning of the radiotap frame has a 32 bit "radiotap" namespace
  bitmap;
* if the vendor bitmap bit is set, then the next bitmap will be interpreted
  as a vendor bitmap;
* this can keep going on and on (ie, more vendor and radiotap namespace
  bitmaps can be added) until the last bitmap with no "more bitmaps" set.

Now, the radiotap code gets its grubby fingers into the supplied
radiotap rx/tx buffer and replaces the channel configuration
for each frame.  I don't know why it's not up to the drivers themselves
to do this, but I digress.  So, if a vendor bitmap (or two, etc) exists,
the offset calculations will be all completely wrong.

This particular patch introduces ieee80211_radiotap_attachv(), which
includes the number of vendor bitmaps (well, any other bitmaps, vendor
or otherwise) between the end of the bitmap/header and the start of the
actual radiotap field entries.  This makes the radiotap calculations
"right", so it correctly calculates where to overwrite the channel
configuration.

The long term fix is to go through and make each driver update the channel
configuration, as some of the fields are already being updated.

That, however, is a longer term fix that will need each driver fixed.

I leave that as an exercise to someone in the future.

12 years agoRoll to the latest 2400/2500 firmware available from the public QLogic
Matt Jacob [Sun, 17 Jun 2012 21:47:24 +0000 (21:47 +0000)]
Roll to the latest 2400/2500 firmware available from the public QLogic
website.

Sponsored by: Spectralogic
MFC after: 1 week

12 years agolibc: Reduce relative relocations in strftime().
Jilles Tjoelker [Sun, 17 Jun 2012 21:40:13 +0000 (21:40 +0000)]
libc: Reduce relative relocations in strftime().

12 years agoPrepare for FC-Tape support. This involved doing a lot of little cleanups
Matt Jacob [Sun, 17 Jun 2012 21:39:40 +0000 (21:39 +0000)]
Prepare for FC-Tape support. This involved doing a lot of little cleanups
and crosschecks against firmware documentation. We now check and report
FC firmware attributes and at least are now prepared for the upper 48 bits
of f/w attributes (which are probably for the 8100 or later cards). This
involed changing how inbits and outbits are calculated for varios commands,
hopefully clearer and cleaner. This also caused me to clean up the actual
mailbox register usage. Finally, we are now unconditionally using a CRN
for initiator mode.

A longstanding issue with the 2400/2500 is that they do *not* support
a "Prefer PTP followed by loop", which explains why enabling that
caused the f/w to crash.

A slightly more invasive change is to let the firmware load entirely
drive whether multi_id support is enabled or not.

Sponsored by: Spectralogic
MFC after: 1 week

12 years agoDon't check for race with close on advisory unlock (there is nothing smart we
Pawel Jakub Dawidek [Sun, 17 Jun 2012 21:04:22 +0000 (21:04 +0000)]
Don't check for race with close on advisory unlock (there is nothing smart we
can do when such a race occurs). This saves lock/unlock cycle for the filedesc
lock for every advisory unlock operation.

MFC after: 1 month

12 years agoOn certain newer Intel Atom based motherboards, for instance the
Poul-Henning Kamp [Sun, 17 Jun 2012 21:02:48 +0000 (21:02 +0000)]
On certain newer Intel Atom based motherboards, for instance the
D2500CC which I have, syscons in text-mode fails to show the expected
contents due to write errors into video-memory.

At least one of the causes is that we copy from syscons internal buffer
to the video memory with optimized bcopy(9) which uses >16bit operations.

Until now, 32bit and wider operations have always worked on the video
memory, but since I cannot find a single source which says that this
SHALL work, and since these chipsets/bugs are now out there, this
commit changes syscons to always use 16bit copies on i386 & amd64.

This may be relevevant for PR's:
166262
166639
and various other bug reports floating elsewhere on the net, but
I lack hardware to test those.

12 years agoMove the nfsrpc_close() call in ncl_reclaim() for the NFSv4 client
Rick Macklem [Sun, 17 Jun 2012 18:34:04 +0000 (18:34 +0000)]
Move the nfsrpc_close() call in ncl_reclaim() for the NFSv4 client
to below the vnode_destroy_vobject() call, since that is where
writes are flushed.

Suggested by: kib
MFC after: 1 week

12 years agoExtend the comment about checking for a race with close to explain why
Pawel Jakub Dawidek [Sun, 17 Jun 2012 16:59:37 +0000 (16:59 +0000)]
Extend the comment about checking for a race with close to explain why
it is done and why we don't return an error in such case.

Discussed with: kib
MFC after: 1 month

12 years agoIf VOP_ADVLOCK() call or earlier checks failed don't check for a race with
Pawel Jakub Dawidek [Sun, 17 Jun 2012 16:32:32 +0000 (16:32 +0000)]
If VOP_ADVLOCK() call or earlier checks failed don't check for a race with
close, because even if we had a race there is nothing to unlock.

Discussed with: kib
MFC after: 1 month

12 years agoResotre LCD brightness level on resuming.
Mitsuru IWASAKI [Sun, 17 Jun 2012 16:19:09 +0000 (16:19 +0000)]
Resotre LCD brightness level on resuming.

MFC after: 3 days

12 years agoDisable hwpmc(4) support for Intel Xeon Sandy Bridge (Model 0x2D).
Davide Italiano [Sun, 17 Jun 2012 13:48:39 +0000 (13:48 +0000)]
Disable hwpmc(4) support for Intel Xeon Sandy Bridge (Model 0x2D).
Due to some differences in MSRs between Xeon Sandy Bridge and Core Sandy
Bridge (Model 0x2A), wrmsr() may generate in a GP# fault exception and so a
panic of the machine.

Approved by: gnn (mentor)
MFC after: 3 days

12 years agoThe variable 'error' in sys_poll() is initialized in declaration to value
Davide Italiano [Sun, 17 Jun 2012 13:03:50 +0000 (13:03 +0000)]
The variable 'error' in sys_poll() is initialized in declaration to value
zero but in any case is overwritten by successive copyin(), making the
previous initialization useless. Remove this.
As an added bonus this fixes a style(9) bug.

Discussed with: kib
Approved by: gnn (mentor)
MFC after: 3 days

12 years agoRemove end of line whitespace.
Joel Dahl [Sun, 17 Jun 2012 11:36:28 +0000 (11:36 +0000)]
Remove end of line whitespace.

12 years agoMinor mdoc fixes.
Joel Dahl [Sun, 17 Jun 2012 11:33:55 +0000 (11:33 +0000)]
Minor mdoc fixes.

12 years agoRemove superfluous paragraph macro.
Joel Dahl [Sun, 17 Jun 2012 11:04:38 +0000 (11:04 +0000)]
Remove superfluous paragraph macro.

12 years agoAR9287 tidyups:
Adrian Chadd [Sun, 17 Jun 2012 05:56:27 +0000 (05:56 +0000)]
AR9287 tidyups:

* Add an OS_A_REG_WRITE() routine - analog writes require a 100usec delay
  on AR9280 and later, so create a method to do it.

* Use it for the AR9287 analog writes.

* Re-indent and style(9) the code.

12 years agoAdd an disabled workaround for the AR9285SE.
Adrian Chadd [Sun, 17 Jun 2012 05:34:41 +0000 (05:34 +0000)]
Add an disabled workaround for the AR9285SE.

This just requires a little HAL change (add a new config parameter) and
some glue in if_ath_pci.c, however I'm leaving this up for someone else
to do.

Obtained from: Qualcomm Atheros

12 years agoBring over the AR9285 specific PCIe suspend/resume/ASPM workarounds.
Adrian Chadd [Sun, 17 Jun 2012 04:48:47 +0000 (04:48 +0000)]
Bring over the AR9285 specific PCIe suspend/resume/ASPM workarounds.

Obtained from: Qualcomm Atheros, Linux ath9k

12 years agoFix mdoc style nits
Eitan Adler [Sun, 17 Jun 2012 03:54:10 +0000 (03:54 +0000)]
Fix mdoc style nits

PR: kern/168910
Submitted by: gjb
Approved by: gjb
MFC after: 3 days
X-MFC-With: r237178

12 years agoAfter some discussion with bschmidt@, it's likely better to just go
Adrian Chadd [Sun, 17 Jun 2012 03:08:33 +0000 (03:08 +0000)]
After some discussion with bschmidt@, it's likely better to just go
through ieee80211_suspend_all() and ieee80211_resume_all().
All the other wireless drivers are doing that particular dance.

PR: kern/169084

12 years agoattach_generic causes missing devices in /dev when the driver
Eitan Adler [Sun, 17 Jun 2012 02:46:27 +0000 (02:46 +0000)]
attach_generic causes missing devices in /dev when the driver
interacts with some non-highpoint controollers. Change attach_generic to
be off by default.

PR: kern/168910
Submitted by: Richard Yao <ryao@gentoo.org>
Approved by: cperciva
No objections by: -hackers
Obtained from: Gentoo FreeBSD
MFC after: 2 weeks

12 years ago.. and this wasn't supposed to be in the previous commit either.
Adrian Chadd [Sat, 16 Jun 2012 22:28:36 +0000 (22:28 +0000)]
.. and this wasn't supposed to be in the previous commit either.

12 years agooops, remove this, it wasn't supposed to be committed.
Adrian Chadd [Sat, 16 Jun 2012 22:26:45 +0000 (22:26 +0000)]
oops, remove this, it wasn't supposed to be committed.

12 years agoDo a more targeted check on the page cache and avoid to check the cache
Attilio Rao [Sat, 16 Jun 2012 21:39:00 +0000 (21:39 +0000)]
Do a more targeted check on the page cache and avoid to check the cache
pointer directly in vnode_pager_setsize() by using newly introduced
vm_page_is_cached() function.

Reviewed by: alc
MFC after: 2 weeks
X-MFC: r234039,234064

12 years agoA few nitpicks:
Adrian Chadd [Sat, 16 Jun 2012 21:37:15 +0000 (21:37 +0000)]
A few nitpicks:

* Use ATH_RC_NUM instead of '4' when iterating over the ratecontrol series
  array.

* A few style(9) fixes, hopefully no regressions here.

* Add some comments that better describe what's going on.

12 years agoFix build.
Konstantin Belousov [Sat, 16 Jun 2012 20:49:08 +0000 (20:49 +0000)]
Fix build.

12 years agoThe page flag PGA_WRITEABLE is set and cleared exclusively by the pmap
Alan Cox [Sat, 16 Jun 2012 18:56:19 +0000 (18:56 +0000)]
The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap
layer, but it is read directly by the MI VM layer.  This change introduces
pmap_page_is_write_mapped() in order to completely encapsulate all direct
access to PGA_WRITEABLE in the pmap layer.

Aesthetics aside, I am making this change because amd64 will likely begin
using an alternative method to track write mappings, and having
pmap_page_is_write_mapped() in place allows me to make such a change
without further modification to the MI VM layer.

As an added bonus, tidy up some nearby comments concerning page flags.

Reviewed by: kib
MFC after: 6 weeks

12 years agoIn CTFCONVERT_CMD initialization, check that ${MAKE_VERSION} is defined
Robert Millan [Sat, 16 Jun 2012 16:51:42 +0000 (16:51 +0000)]
In CTFCONVERT_CMD initialization, check that ${MAKE_VERSION} is defined
before using it. Bootstrap make (as built by usr.bin/make/Makefile.dist)
does not define this variable, but it needs to parse bsd.own.mk in order
to build a complete make.

12 years agoUse time_uptime instead of getnanotime for accouting integer number of seconds.
Alexander V. Chernikov [Sat, 16 Jun 2012 13:55:31 +0000 (13:55 +0000)]
Use time_uptime instead of getnanotime for accouting integer number of seconds.

Reviewed by:     glebius
Approved by:     ae(mentor)
MFC after:       1 week

12 years agoSet netflow v9 observation domain value to fib number instead of node id.
Alexander V. Chernikov [Sat, 16 Jun 2012 13:53:14 +0000 (13:53 +0000)]
Set netflow v9 observation domain value to fib number instead of node id.
This fixes multi-fib netflow v9 export.

Reviewed by:     glebius
Approved by:     kib(mentor)
MFC after:       1 week

12 years agoFix improper L4 header handling for IPv6 packets passed via DLT_RAW.
Alexander V. Chernikov [Sat, 16 Jun 2012 13:51:01 +0000 (13:51 +0000)]
Fix improper L4 header handling for IPv6 packets passed via DLT_RAW.

Reported by:     Emil Muratov <gpm@hotplug.ru>
Reviewed by:     glebius
Approved by:     ae(mentor)
MFC after:       1 week

12 years agoMore style.
Konstantin Belousov [Sat, 16 Jun 2012 13:11:10 +0000 (13:11 +0000)]
More style.

MFC after: 3 days

12 years agoRevert part of the r235740 which changed separate allocation of the
Konstantin Belousov [Sat, 16 Jun 2012 13:10:22 +0000 (13:10 +0000)]
Revert part of the r235740 which changed separate allocation of the
string buffer for each linelist l_line into one large string. Since
linelists parsed out during the previous passes store the pointers to
previously allocated l_lines, the reallocation caused undefined
behaviour on accessing the buffers, and quite deterministic fault on
freeing them (in mountd(8) startup).

This fixes reading of netgroup(5) file which contains more then one
netgroup.

Discussed with: ghelmer
MFC after: 3 days

12 years agoRevert r237073. 'td' can be NULL here.
Pawel Jakub Dawidek [Sat, 16 Jun 2012 12:56:36 +0000 (12:56 +0000)]
Revert r237073. 'td' can be NULL here.

MFC after: 1 month

12 years agomandoc fixes.
Joel Dahl [Sat, 16 Jun 2012 06:38:11 +0000 (06:38 +0000)]
mandoc fixes.

Obtained from: OpenBSD

12 years agoShuffle some more fields in ath_buf so it's not too big.
Adrian Chadd [Sat, 16 Jun 2012 04:41:35 +0000 (04:41 +0000)]
Shuffle some more fields in ath_buf so it's not too big.

This shaves off 20 bytes - from 288 bytes to 268 bytes.

However, it's still too big.

12 years agoShave four (or eight) bytes off of ath_buf - this field isn't used.
Adrian Chadd [Sat, 16 Jun 2012 04:36:08 +0000 (04:36 +0000)]
Shave four (or eight) bytes off of ath_buf - this field isn't used.

12 years agoThrow this debug behind bootverbose. The information isn't all that
Warner Losh [Sat, 16 Jun 2012 04:34:46 +0000 (04:34 +0000)]
Throw this debug behind bootverbose.  The information isn't all that
exciting once the initial board bring up is over.

12 years agoConvert athdebug to use the 64 bit dev.ath.X.debug sysctl.
Adrian Chadd [Fri, 15 Jun 2012 20:08:13 +0000 (20:08 +0000)]
Convert athdebug to use the 64 bit dev.ath.X.debug sysctl.

12 years agoMinor wording change. The previous commit message should have included:
Brooks Davis [Fri, 15 Jun 2012 19:42:49 +0000 (19:42 +0000)]
Minor wording change.  The previous commit message should have included:

Sponsored by: DARPA, AFRL

12 years agoMFP4: 212854, 212854
Brooks Davis [Fri, 15 Jun 2012 19:40:59 +0000 (19:40 +0000)]
MFP4: 212854, 212854

Add a LOCAL_LIB_DIRS variable to complement the existing LOCAL_DIRS
and LOCAL_TOOL_DIRS variables.  Directories in LOCAL_LIB_DIRS are
built at the end of the _generic_libs target.

Reviewed by: imp (212854)

12 years agoRemove stray line from merge.
Warner Losh [Fri, 15 Jun 2012 16:50:32 +0000 (16:50 +0000)]
Remove stray line from merge.

12 years agoOops - use the actual 11n enable option.
Adrian Chadd [Fri, 15 Jun 2012 15:32:16 +0000 (15:32 +0000)]
Oops - use the actual 11n enable option.

12 years agoIf debug values were set, the default from tval floated
Matt Jacob [Fri, 15 Jun 2012 15:28:15 +0000 (15:28 +0000)]
If debug values were set, the default from tval floated
down and triggered an attempt to set multiple virtual
ports whether you wanted them or not.

MFC after: 3 days

12 years agoOne more attempt to make prototypes formated according to style(9), which
Pawel Jakub Dawidek [Fri, 15 Jun 2012 10:00:29 +0000 (10:00 +0000)]
One more attempt to make prototypes formated according to style(9), which
holefully recovers from the "worse than useless" state.

Reported by: bde
MFC after: 1 month

12 years agoFixed an example that set IP_ONESBCAST socket option to actually work,
Ruslan Ermilov [Fri, 15 Jun 2012 09:12:47 +0000 (09:12 +0000)]
Fixed an example that set IP_ONESBCAST socket option to actually work,
and not return EINVAL.

12 years agoUse right size when freeing unneeded GTT mapping.
Konstantin Belousov [Fri, 15 Jun 2012 08:50:44 +0000 (08:50 +0000)]
Use right size when freeing unneeded GTT mapping.

MFC after: 3 days

12 years agoMake it possible to link together a sam and an rm kernel. The results
Warner Losh [Fri, 15 Jun 2012 08:37:50 +0000 (08:37 +0000)]
Make it possible to link together a sam and an rm kernel.  The results
aren't very pretty yet, but this takes DELAY and cpu_reset and makes
them pointers.

# I worry that these are set too late in the boot, especially cpu_reset.

12 years agoAdd the AMPDU BAR TX statistics to the "ampdu" tag.
Adrian Chadd [Fri, 15 Jun 2012 08:37:46 +0000 (08:37 +0000)]
Add the AMPDU BAR TX statistics to the "ampdu" tag.

12 years agoThese options are unused, and can safely be retired.
Warner Losh [Fri, 15 Jun 2012 08:01:16 +0000 (08:01 +0000)]
These options are unused, and can safely be retired.

12 years agoThis hints file doesn't actually do anything, and besides it is commented
Warner Losh [Fri, 15 Jun 2012 07:56:53 +0000 (07:56 +0000)]
This hints file doesn't actually do anything, and besides it is commented
out here.  Remove it.

12 years agoCollapse the files.at91 and files.at91sam9 back into files.at91.
Warner Losh [Fri, 15 Jun 2012 07:50:26 +0000 (07:50 +0000)]
Collapse the files.at91 and files.at91sam9 back into files.at91.
Create a new option for at91rm9200 support.  Set this option in
std.at91.  Create a new option for the at91sam9 standard devices.  Set
this option in std.at91sam9.  Retire files.at91sam9.  Add options for
at91sam9x25 SoC and SAM9X25EK board, but don't connect it just yet as
the supporting files aren't quite ready.

Note: device at91rm9200 and device at91sam9 are presently mutually
exclusive.

12 years agoDo not remount ZFS dataset if changing canmount property to "on" and
Martin Matuska [Fri, 15 Jun 2012 07:38:21 +0000 (07:38 +0000)]
Do not remount ZFS dataset if changing canmount property to "on" and
dataset is already mounted.

PR: 167905
Submitted by: Bryan Drewery <bryan@shatow.net>
MFC after: 1 week

12 years agoFix a global shadowing problem when LINUX_BOOT_ABI was defined.
Warner Losh [Fri, 15 Jun 2012 07:26:39 +0000 (07:26 +0000)]
Fix a global shadowing problem when LINUX_BOOT_ABI was defined.

12 years agoTake half a step closer towards having a unified atmel kernel by
Warner Losh [Fri, 15 Jun 2012 06:38:55 +0000 (06:38 +0000)]
Take half a step closer towards having a unified atmel kernel by
rearranging where we initialize the time counter and putting the
common stubs into a central place.

12 years agoPer kib, since __flt_rounds is being added to FreeBSD 10, it
Tim Kientzle [Fri, 15 Jun 2012 03:57:16 +0000 (03:57 +0000)]
Per kib, since __flt_rounds is being added to FreeBSD 10, it
belongs in FBSD_1.3.

MFC after: 1 week

12 years agoOk, ok. 802.11n can be on by default in GENERIC in -HEAD.
Adrian Chadd [Fri, 15 Jun 2012 02:16:29 +0000 (02:16 +0000)]
Ok, ok. 802.11n can be on by default in GENERIC in -HEAD.

God help me.

12 years agoConvert ath(4) to just use ieee80211_suspend_all() and ieee80211_resume_all().
Adrian Chadd [Fri, 15 Jun 2012 01:15:59 +0000 (01:15 +0000)]
Convert ath(4) to just use ieee80211_suspend_all() and ieee80211_resume_all().

The existing code tries to use the beacon miss timer to signal that the AP
has gone away.  Unfortunately this doesn't seem to be behaving itself.
I'll try to investigate why this is for the sake of completeness.

The result is the STA will stay "associated" to the AP it was associated
with when it suspended.  It never receives a bmiss notification so it
never tries reassociating.

PR: kern/169084

12 years ago- As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
Marius Strobl [Thu, 14 Jun 2012 22:19:23 +0000 (22:19 +0000)]
- As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
  as well as it causes the kernel to hang during boot.
  Reported and tested by: Kevin Oberman
- Use NULL instead of 0 for a pointer.

MFC after: 3 days

12 years ago- Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter.
Marius Strobl [Thu, 14 Jun 2012 21:16:19 +0000 (21:16 +0000)]
- Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter.
  This includes adding support for skipping FTDI interfaces used for JTAG
  leaving them for userland and just attaching to the RS232 half, similarly
  to how the corresponding Linux drivers handles these kind of adapters.
  While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because
  uftdi_probe() alters the instance variables for better or worse as do
  other probe routines of USB drivers) instead of 0.
- Remove duplicated entries for BeagleBone.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Remove some stray lines.

MFC after: 3 days

12 years agoFix a braino in r236469; the number of DMA tags required for handling
Marius Strobl [Thu, 14 Jun 2012 20:49:22 +0000 (20:49 +0000)]
Fix a braino in r236469; the number of DMA tags required for handling
MAXPHYS should be based on PAGE_SIZE rather than SYM_CONF_DMA_BOUNDARY.
While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum
number of DMA tags so sym(4) itself doesn't size memory beyond what's
required for handling MAXPHYS.

PR: 168928
MFC after: 3 days

12 years agoMerge r236137 from x86:
Marius Strobl [Thu, 14 Jun 2012 20:29:49 +0000 (20:29 +0000)]
Merge r236137 from x86:
Enable GNU hash generation for dynamic ELF binaries.

12 years agoTurn on TLS support for arm on here as it is supported since r231618/
Marius Strobl [Thu, 14 Jun 2012 20:27:28 +0000 (20:27 +0000)]
Turn on TLS support for arm on here as it is supported since r231618/
r231619 and working since r233106.

12 years agoImprove the functionality of the PORTS_MODULES knob by adding
Doug Barton [Thu, 14 Jun 2012 19:30:31 +0000 (19:30 +0000)]
Improve the functionality of the PORTS_MODULES knob by adding
LOCALBASE/bin and sbin to PATH, allowing dependencies to be found;
adding SRC_BASE and OSVERSION to match the new kernel, and putting
the related builds under MAKEOBJDIRPREFIX so that they only need
to be built once per kernel.

In addition to the PR this includes ideas/contributions from crees
and matthew.

PR: ports/161452
Submitted by: Garrett Cooper <yanegomi@gmail.com>

12 years agoFix missing straggler for the move to parse_boot_param()
Warner Losh [Thu, 14 Jun 2012 18:37:00 +0000 (18:37 +0000)]
Fix missing straggler for the move to parse_boot_param()

12 years agoUpdate a couple comments to reflect r235598.
Alan Cox [Thu, 14 Jun 2012 17:47:54 +0000 (17:47 +0000)]
Update a couple comments to reflect r235598.

X-MFC after: r235598

12 years agoCorrectly identify the function in a KASSERT().
Alan Cox [Thu, 14 Jun 2012 17:40:49 +0000 (17:40 +0000)]
Correctly identify the function in a KASSERT().

MFC after: 3 days

12 years agoUpdate comment.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 17:32:58 +0000 (17:32 +0000)]
Update comment.

MFC after: 1 month

12 years agoRemove fdtofp() function and use fget_locked(), which works exactly the same.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 16:25:10 +0000 (16:25 +0000)]
Remove fdtofp() function and use fget_locked(), which works exactly the same.

MFC after: 1 month

12 years agoExplicitly assert that the filedesc lock is held when the fget_locked()
Pawel Jakub Dawidek [Thu, 14 Jun 2012 16:24:03 +0000 (16:24 +0000)]
Explicitly assert that the filedesc lock is held when the fget_locked()
function is called.

MFC after: 1 month

12 years agoAssert that the filedesc lock is being held when the fdunwrap() function
Pawel Jakub Dawidek [Thu, 14 Jun 2012 16:23:16 +0000 (16:23 +0000)]
Assert that the filedesc lock is being held when the fdunwrap() function
is called.

MFC after: 1 month

12 years agoAdd more quirks for USB MIDI adapters.
Hans Petter Selasky [Thu, 14 Jun 2012 16:20:19 +0000 (16:20 +0000)]
Add more quirks for USB MIDI adapters.

Obtained from: Clemens Ladisch
MFC after: 1 week

12 years agoSimplify the code by making more use of the fdtofp() function.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:37:15 +0000 (15:37 +0000)]
Simplify the code by making more use of the fdtofp() function.

MFC after: 1 month

12 years ago- Assert that the filedesc lock is being held when fdisused() is called.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:35:14 +0000 (15:35 +0000)]
- Assert that the filedesc lock is being held when fdisused() is called.
- Fix white spaces.

MFC after: 1 month

12 years agoStyle fixes and assertions improvements.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:34:10 +0000 (15:34 +0000)]
Style fixes and assertions improvements.

MFC after: 1 month

12 years agoAssert that the filedesc lock is not held when closef() is called.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:26:23 +0000 (15:26 +0000)]
Assert that the filedesc lock is not held when closef() is called.

MFC after: 1 month

12 years agoAdd FILEDESC_UNLOCK_ASSERT() macro which asserts that the filedesc is not
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:24:45 +0000 (15:24 +0000)]
Add FILEDESC_UNLOCK_ASSERT() macro which asserts that the filedesc is not
being held by the current thread (at least exclusively).

MFC after: 1 month

12 years agoExplicitly check if 'fd' is less than 0 instead of using cast-to-unsinged hack.
Pawel Jakub Dawidek [Thu, 14 Jun 2012 15:23:51 +0000 (15:23 +0000)]
Explicitly check if 'fd' is less than 0 instead of using cast-to-unsinged hack.

MFC after: 1 month