]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoRewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIO
Konstantin Belousov [Thu, 14 Mar 2013 19:48:25 +0000 (19:48 +0000)]
Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIO
buffers directly, use pmap_zero_page_area(9) for each zeroing page
region instead.

Sponsored by: The FreeBSD Foundation
Tested by: pho
MFC after: 2 weeks

11 years agoFix minor spelling error in a comment.
Joel Dahl [Thu, 14 Mar 2013 19:36:20 +0000 (19:36 +0000)]
Fix minor spelling error in a comment.

11 years agoMinor mdoc fixes.
Joel Dahl [Thu, 14 Mar 2013 18:55:41 +0000 (18:55 +0000)]
Minor mdoc fixes.

11 years agoAdd GEOM_* kernel options to the SYNOPSIS.
Joel Dahl [Thu, 14 Mar 2013 18:46:11 +0000 (18:46 +0000)]
Add GEOM_* kernel options to the SYNOPSIS.

11 years agoMFV r248266:
Martin Matuska [Thu, 14 Mar 2013 10:02:59 +0000 (10:02 +0000)]
MFV r248266:
Import minor ZFS changes from vendor

Illumos ZFS issues:
  3604 zdb should print bpobjs more verbosely (fix zdb hang)
  3606 zpool status -x shouldn't warn about old on-disk format

MFC after: 3 days

11 years agoUpdate vendor/illumos/dist to illumos-gate 13983:fe80600e1f8e
Martin Matuska [Thu, 14 Mar 2013 08:25:10 +0000 (08:25 +0000)]
Update vendor/illumos/dist to illumos-gate 13983:fe80600e1f8e

Illumos ZFS issues:
  3604 zdb should print bpobjs more verbosely (fix zdb hang)
  3606 zpool status -x shouldn't warn about old on-disk format

11 years agoUpdate zfs.8 manpage date (missing in r247585)
Martin Matuska [Thu, 14 Mar 2013 08:18:40 +0000 (08:18 +0000)]
Update zfs.8 manpage date (missing in r247585)

MFC: together with r247585

11 years agoImplement "holding buffers" per TX queue rather than globally.
Adrian Chadd [Thu, 14 Mar 2013 06:20:02 +0000 (06:20 +0000)]
Implement "holding buffers" per TX queue rather than globally.

When working on TDMA, Sam Leffler found that the MAC DMA hardware
would re-read the last TX descriptor when getting ready to transmit
the next one.  Thus the whole ATH_BUF_BUSY came into existance -
the descriptor must be left alone (very specifically the link pointer
must be maintained) until the hardware has moved onto the next frame.

He saw this in TDMA because the MAC would be frequently stopping during
active transmit (ie, when it wasn't its turn to transmit.)

Fast-forward to today.  It turns out that this is a problem not with
a single MAC DMA instance, but with each QCU (from 0->9).  They each
maintain separate descriptor pointers and will re-read the last
descriptor when starting to transmit the next.

So when your AP is busy transmitting from multiple TX queues, you'll
(more) frequently see one QCU stopped, waiting for a higher-priority QCU
to finsh transmitting, before it'll go ahead and continue.  If you mess
up the descriptor (ie by freeing it) then you're short of luck.

Thanks to rpaulo for sticking with me whilst I diagnosed this issue
that he was quite reliably triggering in his environment.

This is a reimplementation; it doesn't have anything in common with
the ath9k or the Qualcomm Atheros reference driver.

Now - it in theory doesn't apply on the EDMA chips, as long as you
push one complete frame into the FIFO at a time.  But the MAC can DMA
from a list of frames pushed into the hardware queue (ie, you concat
'n' frames together with link pointers, and then push the head pointer
into the TXQ FIFO.)  Since that's likely how I'm going to implement
CABQ handling in hostap mode, it's likely that I will end up teaching
the EDMA TX completion code about busy buffers, just to be "sure"
this doesn't creep up.

Tested - iperf ap->sta and sta->ap (with both sides running this code):

* AR5416 STA
* AR9160/AR9220 hostap

To validate that it doesn't break the EDMA (FIFO) chips:

* AR9380, AR9485, AR9462 STA

Using iperf with the -S <tos byte decimal value> to set the TCP client
side DSCP bits, mapping to different TIDs and thus different TX queues.

TODO:

* Make this work on the EDMA chips, if we end up pushing lists of frames
  to the hardware (eg how we eventually will handle cabq in hostap/ibss
  mode.)

11 years agoDisable warning/errors for two files for now - they don't compile clean
Adrian Chadd [Thu, 14 Mar 2013 00:27:53 +0000 (00:27 +0000)]
Disable warning/errors for two files for now - they don't compile clean
with clang.

I'll work on this soon.

11 years agoNo need to call an external program.
David E. O'Brien [Wed, 13 Mar 2013 22:50:14 +0000 (22:50 +0000)]
No need to call an external program.

11 years agovinum isn't a new product.
Joel Dahl [Wed, 13 Mar 2013 22:27:01 +0000 (22:27 +0000)]
vinum isn't a new product.

11 years ago- Fix two possible overflows when testing if ELF program headers are on
Tijl Coosemans [Wed, 13 Mar 2013 22:01:31 +0000 (22:01 +0000)]
- Fix two possible overflows when testing if ELF program headers are on
  the first page:
  1. Cast uint16_t operands in a multiplication to unsigned int because
     otherwise the implicit promotion to int results in a signed
     multiplication that can overflow and the behaviour on integer
     overflow is undefined.
  2. Replace (offset + size > PAGE_SIZE) with (size > PAGE_SIZE - offset)
     because the sum may overflow.
- Use the same tests to see if the path to the interpreter is on the first
  page. There's no overflow here because size is already limited by
  MAXPATHLEN, but the compiler optimises the new tests better. Also fix an
  off-by-one error.
- Simplify tests to see if an ELF note program header is on the first page.
  This also fixes an off-by-one error.

Reviewed by: kib
MFC after: 1 week

11 years agoRevert 195703 and 195821 as this special stop handling in NFS is now
John Baldwin [Wed, 13 Mar 2013 21:06:03 +0000 (21:06 +0000)]
Revert 195703 and 195821 as this special stop handling in NFS is now
implemented via VFCF_SBDRY rather than passing PBDRY to individual
sleep calls.

11 years agoAdd quirk for Lenovo T530 headphone redirection.
Xin LI [Wed, 13 Mar 2013 20:35:51 +0000 (20:35 +0000)]
Add quirk for Lenovo T530 headphone redirection.

MFC after: 2 weeks

11 years agoAdd missed `_load' to the `if_foo_load="YES"' line.
Sergey Kandaurov [Wed, 13 Mar 2013 18:43:25 +0000 (18:43 +0000)]
Add missed `_load' to the `if_foo_load="YES"' line.

PR: docs/176915
MFC after: 1 week

11 years agolibc: Avoid SIGPIPE when nscd closes the connection unexpectedly.
Jilles Tjoelker [Wed, 13 Mar 2013 18:38:18 +0000 (18:38 +0000)]
libc: Avoid SIGPIPE when nscd closes the connection unexpectedly.

It is almost always a bug if nscd closes the connection unexpectedly but
programs should not be killed with SIGPIPE for it.

Reviewed by: bushman
Tested by: Jan Beich
MFC after: 1 week

11 years agoLink getcontextx(3) to getcontext(3).
Sergey Kandaurov [Wed, 13 Mar 2013 18:19:33 +0000 (18:19 +0000)]
Link getcontextx(3) to getcontext(3).

Reviewed by: kib
MFC after: 1 week

11 years agoAdd the getcontextx prototype to SYNOPSIS.
Sergey Kandaurov [Wed, 13 Mar 2013 18:18:16 +0000 (18:18 +0000)]
Add the getcontextx prototype to SYNOPSIS.

Reviewed by: kib
MFC after: 1 week

11 years agoFix typo.
Hans Petter Selasky [Wed, 13 Mar 2013 15:42:04 +0000 (15:42 +0000)]
Fix typo.

11 years ago- Make quirk for reading device descriptor from broken USB devices.
Hans Petter Selasky [Wed, 13 Mar 2013 15:38:01 +0000 (15:38 +0000)]
- Make quirk for reading device descriptor from broken USB devices.
Else they won't enumerate at all:
hw.usb.full_ddesc=1
- Reduce the USB descriptor read timeout from 1000ms to
500ms. Typical value for LOW speed devices is 50-100ms.
- Enumerate USB device a maximum of 3 times when a port
connection change event is detected, before giving up.

MFC after: 1 month

11 years ago- Make the FreeBSD's USB library compile under Linux.
Hans Petter Selasky [Wed, 13 Mar 2013 12:23:14 +0000 (12:23 +0000)]
- Make the FreeBSD's USB library compile under Linux.
- Fix a compile warning where the return value of a call
to a write() function was ignored.
- Remove redundant include files from userland USB header files.
- Add some now needed include files to various C-files.

11 years agoUnlike OpenBSD's, our setusercontext() will intentionally ignore the user's
Dag-Erling Smørgrav [Wed, 13 Mar 2013 09:41:55 +0000 (09:41 +0000)]
Unlike OpenBSD's, our setusercontext() will intentionally ignore the user's
own umask setting (from ~/.login.conf) unless running with the user's UID.
Therefore, we need to call it again with LOGIN_SETUMASK after changing UID.

PR: bin/176740
Submitted by: John Marshall <john.marshall@riverwillow.com.au>
MFC after: 1 week

11 years agoFix incorrect assertion that caused panic when periodic-only timers used.
Alexander Motin [Wed, 13 Mar 2013 06:42:01 +0000 (06:42 +0000)]
Fix incorrect assertion that caused panic when periodic-only timers used.

11 years agoDisable TX IP header checksum offloading on RL_HWREV_8168CP. The
Pyun YongHyeon [Wed, 13 Mar 2013 02:11:45 +0000 (02:11 +0000)]
Disable TX IP header checksum offloading on RL_HWREV_8168CP. The
controller generates wrong checksummed frame if the IP packet has
IP options.

Submitted by: Alexander Bluhm via brad@openbsd

11 years agor241438 broke IPMI access on Sun Fire X2200 M2(BCM5715).
Pyun YongHyeon [Wed, 13 Mar 2013 01:40:01 +0000 (01:40 +0000)]
r241438 broke IPMI access on Sun Fire X2200 M2(BCM5715).
Fix the IPMI regression by sending BGE_FW_DRV_STATE_UNLOAD to
ASF/IPMI firmware in driver attach phase.  Sending heartheat to
ASF/IPMI is enabled only after upping interface so
setting driver state to BGE_FW_DRV_STATE_START in attach phase
broke IPMI access.
While I'm here, add NVRAM arbitration lock before performing
controller reset. ASF/IPMI firmware may be able to access the NVRAM
while controller reset is in progress.  Without the arbitration
lock before resetting the controller, ASF/IPMI may not initialize
properly.

Special thanks to Miroslav Lachman who provided full remote
debugging environments.

11 years agoRemove pav from portmgr whom had also stepped down a few months ago.
Eitan Adler [Tue, 12 Mar 2013 23:14:18 +0000 (23:14 +0000)]
Remove pav from portmgr whom had also stepped down a few months ago.

Thank you for your years of service.

Reported by: rene

11 years agoWelcome Bryan to the team.
Eitan Adler [Tue, 12 Mar 2013 23:07:34 +0000 (23:07 +0000)]
Welcome Bryan to the team.

11 years agoUpdate vendor/illumos/dist and vendor-sys/illumos/dist
Martin Matuska [Tue, 12 Mar 2013 21:46:29 +0000 (21:46 +0000)]
Update vendor/illumos/dist and vendor-sys/illumos/dist
to illumos-gate 13980:d7059eb1884c

Illumos ZFS issues:
  3598 want to dtrace when errors are generated in zfs

11 years agoUpdate vendor-sys/illumos/dist to illumos-gate 13979:b01a4832cdf9
Martin Matuska [Tue, 12 Mar 2013 21:42:55 +0000 (21:42 +0000)]
Update vendor-sys/illumos/dist to illumos-gate 13979:b01a4832cdf9

Illumos ZFS issues:
  3517 importing pool with autoreplace=on and "hole" vdevs crashes syseventd

11 years agoRevert r246917, as it is causing incorrect behaviour as reported on
Mark Johnston [Tue, 12 Mar 2013 19:18:10 +0000 (19:18 +0000)]
Revert r246917, as it is causing incorrect behaviour as reported on
freebsd-current.

PR: bin/175213
Approved by: emaste (co-mentor)

11 years agoBump __FreeBSD_version after r248084, breaking VM KPI to introduce
Attilio Rao [Tue, 12 Mar 2013 14:30:36 +0000 (14:30 +0000)]
Bump __FreeBSD_version after r248084, breaking VM KPI to introduce
read/write lockers.

Sponsored by: EMC / Isilon storage division
Requested by: flo

11 years agoRemove netncp cscope entry missed in r248097
Bryan Venteicher [Tue, 12 Mar 2013 14:21:52 +0000 (14:21 +0000)]
Remove netncp cscope entry missed in r248097

Reviewed by: attilio

11 years agoFunctions m_getm2() and m_get2() have different order of arguments,
Gleb Smirnoff [Tue, 12 Mar 2013 13:42:47 +0000 (13:42 +0000)]
Functions m_getm2() and m_get2() have different order of arguments,
and that can drive someone crazy. While m_get2() is young and not
documented yet, change its order of arguments to match m_getm2().

Sorry for churn, but better now than later.

11 years agoUpdate Ruslan's last name per request.
Eitan Adler [Tue, 12 Mar 2013 13:03:31 +0000 (13:03 +0000)]
Update Ruslan's last name per request.

Submitted by: rm

11 years agoRemove fortunes-o from the base system. Debating what does or does not
John Baldwin [Tue, 12 Mar 2013 12:35:02 +0000 (12:35 +0000)]
Remove fortunes-o from the base system.  Debating what does or does not
belong in this file is not a useful exercise or conducive to producing a
high quality advanced operating system.

While here, simplify the make rules to autocompute BLDS and FILES from a
single DB variable.

Approved by: core
MFC after: 1 week

11 years ago- Use m_get2() instead of nfsm_reqhead().
Gleb Smirnoff [Tue, 12 Mar 2013 12:23:47 +0000 (12:23 +0000)]
- Use m_get2() instead of nfsm_reqhead().
- Use m_get(), m_getcl() instead of historic macros.

Sponsored by: Nginx, Inc.

11 years agoSimplify vm_page_is_valid().
Attilio Rao [Tue, 12 Mar 2013 12:20:49 +0000 (12:20 +0000)]
Simplify vm_page_is_valid().

Sponsored by: EMC / Isilon storage division
Reviewed by: alc

11 years agoUse m_get2() to get mbuf of appropriate size.
Gleb Smirnoff [Tue, 12 Mar 2013 12:19:23 +0000 (12:19 +0000)]
Use m_get2() to get mbuf of appropriate size.

Sponsored by: Nginx, Inc.

11 years agoUse m_get(), m_gethdr() and m_getcl() instead of historic macros.
Gleb Smirnoff [Tue, 12 Mar 2013 12:17:19 +0000 (12:17 +0000)]
Use m_get(), m_gethdr() and m_getcl() instead of historic macros.

Sponsored by: Nginx, Inc.

11 years agoIn kern_sendfile() use m_extadd() instead of MEXTADD() macro, supplying
Gleb Smirnoff [Tue, 12 Mar 2013 12:15:24 +0000 (12:15 +0000)]
In kern_sendfile() use m_extadd() instead of MEXTADD() macro, supplying
appropriate wait argument and checking return value. Before this change
m_extadd() could fail, and kern_sendfile() ignored that.

Sponsored by: Nginx, Inc.

11 years agoThe m_extadd() can fail due to memory allocation failure, thus:
Gleb Smirnoff [Tue, 12 Mar 2013 12:12:16 +0000 (12:12 +0000)]
The m_extadd() can fail due to memory allocation failure, thus:
- Make it return int, not void.
- Add wait parameter.
- Update MEXTADD() macro appropriately, defaults to M_NOWAIT, as
  before this change.

Sponsored by: Nginx, Inc.

11 years agoUse m_get2() to get an mbuf of appropriate size.
Gleb Smirnoff [Tue, 12 Mar 2013 10:05:36 +0000 (10:05 +0000)]
Use m_get2() to get an mbuf of appropriate size.

Reviewed by: marius
Sponsored by: Nginx, Inc.

11 years agoFinish r243882: mechanically substitute flags from historic mbuf
Gleb Smirnoff [Tue, 12 Mar 2013 08:59:51 +0000 (08:59 +0000)]
Finish r243882: mechanically substitute flags from historic mbuf
allocator with malloc(9) flags within sys.

Sponsored by: Nginx, Inc.

11 years agoMore Lenovo headphones redirection quirks: Lenovo T430, Lenovo T430S.
Gleb Smirnoff [Tue, 12 Mar 2013 08:45:42 +0000 (08:45 +0000)]
More Lenovo headphones redirection quirks: Lenovo T430, Lenovo T430S.

Submitted by: Sergey Nasonov <snasonov bcc.ru>, T430
Submitted by: Johannes Dieterich <dieterich.joh gmail.com>, T430S

11 years agoMake kern_nanosleep() and pause_sbt() to use per-CPU sleep queues.
Alexander Motin [Tue, 12 Mar 2013 06:58:49 +0000 (06:58 +0000)]
Make kern_nanosleep() and pause_sbt() to use per-CPU sleep queues.
This removes significant sleep queue lock congestion on multithreaded
microbenchmarks, making them scale to multiple CPUs almost linearly.

11 years agoRemove two members of portmgr that have recently stepped down. Thank
Eitan Adler [Tue, 12 Mar 2013 04:37:04 +0000 (04:37 +0000)]
Remove two members of portmgr that have recently stepped down.  Thank
you for your time on portmgr.

Remove one member from bugmeister that has stepped down recently.  Thank
you for your time on bugmeister.

While here clean up the graph a bit (remove dead cvs repos)

11 years agoUse the correct antenna configuration variable here. "diversity" just
Adrian Chadd [Tue, 12 Mar 2013 03:03:24 +0000 (03:03 +0000)]
Use the correct antenna configuration variable here. "diversity" just
controls whether it's on or off.

Found by: clang

11 years agoShift this over to a new location in contrib/, in preparation to push
Adrian Chadd [Tue, 12 Mar 2013 02:54:49 +0000 (02:54 +0000)]
Shift this over to a new location in contrib/, in preparation to push
this public.

11 years agoTake the inpcb rlock before calculating checksum, it was accidentally
Andrey V. Elsukov [Tue, 12 Mar 2013 02:20:20 +0000 (02:20 +0000)]
Take the inpcb rlock before calculating checksum, it was accidentally
moved in r191672.

Obtained from: Yandex LLC
MFC after: 1 week

11 years agoFix memory leak when one process send descriptor over UNIX domain socket,
Pawel Jakub Dawidek [Mon, 11 Mar 2013 22:59:07 +0000 (22:59 +0000)]
Fix memory leak when one process send descriptor over UNIX domain socket,
but the other process exited before receiving it.

11 years agoAdd support for Optoelectronics USB barcode readers to uftdi(4).
Gavin Atkinson [Mon, 11 Mar 2013 22:17:39 +0000 (22:17 +0000)]
Add support for Optoelectronics USB barcode readers to uftdi(4).
Add entries for other Optoelectronics devices to usbdevs.

MFC after: 1 week

11 years agoReturn an error if sctp_peeloff() fails because a socket can't be allocated.
Michael Tuexen [Mon, 11 Mar 2013 17:43:55 +0000 (17:43 +0000)]
Return an error if sctp_peeloff() fails because a socket can't be allocated.

MFC after: 3 days

11 years agoConvert the offset into the bar that contains the MSI-X table to an offset
Neel Natu [Mon, 11 Mar 2013 17:36:37 +0000 (17:36 +0000)]
Convert the offset into the bar that contains the MSI-X table to an offset
into the MSI-X table before using it to calculate the table index.

In the common case where the MSI-X table is located at the begining of the
BAR these two offsets are identical and thus the code was working by accident.

This change will fix the case where the MSI-X table is located in the middle
or at the end of the BAR that contains it.

Obtained from: NetApp

11 years agoAdd "else" missed at r248154.
Alexander Motin [Mon, 11 Mar 2013 17:29:09 +0000 (17:29 +0000)]
Add "else" missed at r248154.

11 years agoDisconnect files removed in r248151
Baptiste Daroussin [Mon, 11 Mar 2013 17:21:21 +0000 (17:21 +0000)]
Disconnect files removed in r248151

11 years agoFix the 'C' field for a running thread to match the behavior described
John Baldwin [Mon, 11 Mar 2013 16:33:05 +0000 (16:33 +0000)]
Fix the 'C' field for a running thread to match the behavior described
in the manpage by having it display the current CPU (ki_oncpu) rather
than the previously used CPU (ki_lastcpu).  ki_lastcpu is still used for
all other thread states.

Reported by: Chris Ross <cross+freebsd@distal.com>
MFC after: 1 week

11 years agoFix spelling.
Gleb Smirnoff [Mon, 11 Mar 2013 13:08:32 +0000 (13:08 +0000)]
Fix spelling.

PR: 176777
Submitted by: Andrey Simonenko <simon comsys.ntu-kpi.kiev.ua>

11 years agoFix for quite a special case when userland emulates a netgraph node, and
Gleb Smirnoff [Mon, 11 Mar 2013 13:05:11 +0000 (13:05 +0000)]
Fix for quite a special case when userland emulates a netgraph node, and
userland can reply to a message with NGM_HASREPLY bit set. In this case
we should not wait for a response to a responce.

PR: 176771
Submitted by: Keith Reynolds <keith.reynolds tidalscale.com>

11 years agoRemove LIBALIAS_LOCK_ASSERT(), including a couple with an uninitialzed
Gleb Smirnoff [Mon, 11 Mar 2013 12:22:44 +0000 (12:22 +0000)]
Remove LIBALIAS_LOCK_ASSERT(), including a couple with an uninitialzed
argument, in code that isn't compiled in kernel.

PR: kern/176667
Sponsored by: Nginx, Inc.

11 years agoReinitialize eh after pfil(9) processing.
Gleb Smirnoff [Mon, 11 Mar 2013 12:06:57 +0000 (12:06 +0000)]
Reinitialize eh after pfil(9) processing.

PR: 176764
Submitted by: adri

11 years agoReduce HPET eventtimer priority on systems with 8 or more cores. Price of
Alexander Motin [Mon, 11 Mar 2013 12:02:03 +0000 (12:02 +0000)]
Reduce HPET eventtimer priority on systems with 8 or more cores.  Price of
the lock congestion may be too high there (2.5% on 4x4 core AMD Opteron).

11 years agoDon't use an empty struct.
Olivier Houchard [Mon, 11 Mar 2013 10:56:46 +0000 (10:56 +0000)]
Don't use an empty struct.

11 years agoPorts are no more exported via cvsup, remove cvsup examples and documentation referin...
Baptiste Daroussin [Mon, 11 Mar 2013 10:48:26 +0000 (10:48 +0000)]
Ports are no more exported via cvsup, remove cvsup examples and documentation refering to ports

MFC after: 2 days

11 years agoAdd a few new fields to the RX vendor radiotap header:
Adrian Chadd [Mon, 11 Mar 2013 06:54:58 +0000 (06:54 +0000)]
Add a few new fields to the RX vendor radiotap header:

* a flags field that lets me know what's going on;
* the hardware ratecode, unmolested by conversion to a bitrate;
* the HAL rs_flags field, useful for debugging;
* specifically mark aggregate sub-frames.

This stuff sorely needs tidying up - it's missing some important
stuff (eg numdelims) and it would be nice to put the flags at the
beginning rather than at the end.

Tested:

* AR9380, STA mode, 2x2 HT40, monitoring RSSI and EVM values

11 years agoBump the EVM array size up to fit the AR9380 EVM entries.
Adrian Chadd [Mon, 11 Mar 2013 06:01:00 +0000 (06:01 +0000)]
Bump the EVM array size up to fit the AR9380 EVM entries.

11 years agoAdd three-stream EVM values.
Adrian Chadd [Mon, 11 Mar 2013 04:19:10 +0000 (04:19 +0000)]
Add three-stream EVM values.

11 years agoBring back the comment on the sizing of the callout array that got
Andre Oppermann [Sun, 10 Mar 2013 22:55:35 +0000 (22:55 +0000)]
Bring back the comment on the sizing of the callout array that got
lost in r248031.

Requested by: alc, alfred

11 years agoThe kernel pmap is statically allocated, so there is really no need to
Alan Cox [Sun, 10 Mar 2013 21:07:44 +0000 (21:07 +0000)]
The kernel pmap is statically allocated, so there is really no need to
explicitly initialize its pm_root field to zero.

Sponsored by: EMC / Isilon Storage Division

11 years agoCorrect a date, add an obsolete directory.
Antoine Brodin [Sun, 10 Mar 2013 19:14:09 +0000 (19:14 +0000)]
Correct a date, add an obsolete directory.

11 years agoAdd 2 more obsolete files.
Antoine Brodin [Sun, 10 Mar 2013 18:28:01 +0000 (18:28 +0000)]
Add 2 more obsolete files.

11 years agoAdd more obsolete files.
Antoine Brodin [Sun, 10 Mar 2013 17:49:59 +0000 (17:49 +0000)]
Add more obsolete files.

11 years agoFinish portalfs removal.
Antoine Brodin [Sun, 10 Mar 2013 17:33:41 +0000 (17:33 +0000)]
Finish portalfs removal.

11 years agoFix a typo in DPADD.
Antoine Brodin [Sun, 10 Mar 2013 17:10:16 +0000 (17:10 +0000)]
Fix a typo in DPADD.

11 years agoAdd another register definition bit - whether to populate EVM or PLCP
Adrian Chadd [Sun, 10 Mar 2013 09:43:01 +0000 (09:43 +0000)]
Add another register definition bit - whether to populate EVM or PLCP
data in the RX status descriptor.

Obtained from: Qualcomm Atheros

11 years agoAdd __aeabi_memcpy to libkern as clang may generate calls to it.
Andrew Turner [Sun, 10 Mar 2013 07:55:40 +0000 (07:55 +0000)]
Add __aeabi_memcpy to libkern as clang may generate calls to it.

11 years agoKill this, it's not needed at this point and (hopefully) the parent
Adrian Chadd [Sun, 10 Mar 2013 04:38:06 +0000 (04:38 +0000)]
Kill this, it's not needed at this point and (hopefully) the parent
has correctly locked the ic/vap.

11 years ago- Clang doesn't understand the -mno-thumb-interwork. Only use it with gcc.
Andrew Turner [Sun, 10 Mar 2013 03:52:35 +0000 (03:52 +0000)]
- Clang doesn't understand the -mno-thumb-interwork. Only use it with gcc.
- We need to add "-mllvm -arm-enable-ehabi" to clangs CFLAGS when
  generating the unwind tables to tell it to add the required directives to
  the assembly it generates.

11 years agoFix a typo where db_printf was spelt printf.
Andrew Turner [Sun, 10 Mar 2013 02:44:06 +0000 (02:44 +0000)]
Fix a typo where db_printf was spelt printf.

11 years agoUpdate how we read the stack pointer to work on both GCC and clang.
Andrew Turner [Sun, 10 Mar 2013 02:40:50 +0000 (02:40 +0000)]
Update how we read the stack pointer to work on both GCC and clang.

11 years agoTell the unwinder we can't unwind swi_entry. This fixes an infinite loop
Andrew Turner [Sun, 10 Mar 2013 02:38:35 +0000 (02:38 +0000)]
Tell the unwinder we can't unwind swi_entry. This fixes an infinite loop
when the kernel attempts to unwind through this function.

The .fnstart and .fnend in this function should be moved to macros but we
are currently missing an END macro on ARM.

11 years agoCorrectly align the unwind tables. Without this clang may incorrectly align
Andrew Turner [Sun, 10 Mar 2013 00:47:19 +0000 (00:47 +0000)]
Correctly align the unwind tables. Without this clang may incorrectly align
them causing an alignment fault when producing a backtrace.

11 years agoAttach the elf section headers to the loaded kernel as metadata, so
Ian Lepore [Sun, 10 Mar 2013 00:43:01 +0000 (00:43 +0000)]
Attach the elf section headers to the loaded kernel as metadata, so
they can easily be used by later post-processing.  When searching for
a compiled-in fdt blob, use the section headers to get the size and
location of the .dynsym section to do a symbol search.

This fixes a problem where the search could overshoot the symbol
table and wander into the string table.  Sometimes that was harmless
and sometimes it lead to spurious panic messages about an offset
bigger than the module size.

11 years ago__FreeBSD_ARCH_armv6__ is undefined on clang. We can use __ARM_ARCH in
Andrew Turner [Sat, 9 Mar 2013 23:55:23 +0000 (23:55 +0000)]
__FreeBSD_ARCH_armv6__ is undefined on clang. We can use __ARM_ARCH in
it's place. This makes 'uname -p' correctly output 'armv6' on a kernel
built with clang.

11 years agoSince ubldr doesn't necessarily load a kernel at the physical address in the
Ian Lepore [Sat, 9 Mar 2013 23:05:19 +0000 (23:05 +0000)]
Since ubldr doesn't necessarily load a kernel at the physical address in the
elf headers, mask out the high nibble of that address.  This effectly makes
the entry point the offset from the load address, and it gets adjusted for
the actual load address before jumping to it.

Masking the high nibble makes assumptions about memory layout that are true
for all the arm platforms we support right now, but it makes me uneasy.
This needs to be revisited.

11 years agoUpdate a comment: The object lock is no longer a mutex.
Alan Cox [Sat, 9 Mar 2013 21:32:24 +0000 (21:32 +0000)]
Update a comment: The object lock is no longer a mutex.

11 years agoAdd forgotten .El
Alexander V. Chernikov [Sat, 9 Mar 2013 20:04:47 +0000 (20:04 +0000)]
Add forgotten .El

MFC with: r248112

11 years agoFixup r248032:
Davide Italiano [Sat, 9 Mar 2013 20:03:10 +0000 (20:03 +0000)]
Fixup r248032:
Change size requested to malloc(9) now that callwheel buckets are
callout_list and not callout_tailq anymore. This change was already
there but it seems it got lost after code churn in r248032.

Reported by: alc, kib

11 years agoDocument netstat -Q flags meaning.
Alexander V. Chernikov [Sat, 9 Mar 2013 20:01:35 +0000 (20:01 +0000)]
Document netstat -Q flags meaning.

MFC after: 1 week

11 years agoCall make_dev_credf() rather than using the couple make_dev()/dev_ref().
Davide Italiano [Sat, 9 Mar 2013 16:58:19 +0000 (16:58 +0000)]
Call make_dev_credf() rather than using the couple make_dev()/dev_ref().
This closes a race with clone_cleanup().

11 years agoFix another compiler warning issue when invariants are disabled.
Adrian Chadd [Sat, 9 Mar 2013 15:35:31 +0000 (15:35 +0000)]
Fix another compiler warning issue when invariants are disabled.

11 years agoImprove UMTX_PROFILING:
Attilio Rao [Sat, 9 Mar 2013 15:31:19 +0000 (15:31 +0000)]
Improve UMTX_PROFILING:
- Use u_int values for length and max_length values
- Add a way to reset the max_length heuristic in order to have the
  possibility to reuse the mechanism consecutively without rebooting
  the machine
- Add a way to quick display top5 contented buckets in the system for
  the max_length value.
  This should give a quick overview on the quality of the hash table
  distribution.

Sponsored by: EMC / Isilon storage division
Reviewed by: jeff, davide

11 years agoDon't log a message when the watchdog is reloaded. It's not useful to do so
Mark Johnston [Sat, 9 Mar 2013 15:04:44 +0000 (15:04 +0000)]
Don't log a message when the watchdog is reloaded. It's not useful to do so
and these messages flood the log when bootverbose is enabled.

Approved by: rstone (co-mentor)

11 years agocommit correct tested fix for gr_util.c
Diane Bruce [Sat, 9 Mar 2013 13:30:06 +0000 (13:30 +0000)]
commit correct tested fix for gr_util.c

Approved by: theraven

11 years agosmbfs_lookup() in the DOTDOT case operates on dvp->n_parent without
Davide Italiano [Sat, 9 Mar 2013 13:25:45 +0000 (13:25 +0000)]
smbfs_lookup() in the DOTDOT case operates on dvp->n_parent without
proper locking. This doesn't prevent in any case reclaim of the vnode.
Avoid this not going over-the-wire in this case and relying on subsequent
smbfs_getattr() call to restore consistency.
While I'm here, change a couple of SMBVDEBUG() in MPASS().
sbmfs_smb_lookup() doesn't and shouldn't know about '.' and '..'

Reported by: pho's stress2 suite

11 years ago- Initialize variable in smbfs_rename() to silent compiler warning
Davide Italiano [Sat, 9 Mar 2013 13:05:21 +0000 (13:05 +0000)]
- Initialize variable in smbfs_rename() to silent compiler warning
- Fix smbfs_mkdir() return value (in case of error).

Reported by: pho

11 years agoGarbage collect NWFS and NCP bits which are now completely disconnected
Attilio Rao [Sat, 9 Mar 2013 12:45:36 +0000 (12:45 +0000)]
Garbage collect NWFS and NCP bits which are now completely disconnected
from the tree since few months.

This patch is not targeted for MFC.

11 years agoCorrect the lock class for the vm object lock.
Konstantin Belousov [Sat, 9 Mar 2013 10:16:08 +0000 (10:16 +0000)]
Correct the lock class for the vm object lock.

Reported and tested by: joel

11 years agoRework overflow checks of r247898 to not let too "intelligent" compiler to
Alexander Motin [Sat, 9 Mar 2013 09:07:13 +0000 (09:07 +0000)]
Rework overflow checks of r247898 to not let too "intelligent" compiler to
optimize it out.

Submitted by: bde

11 years agoDisable the hw TID != buffer TID check.
Adrian Chadd [Sat, 9 Mar 2013 08:50:17 +0000 (08:50 +0000)]
Disable the hw TID != buffer TID check.

I can 100% reliably trigger this on TID 1 traffic by using iperf -S 32
<client fields> to create traffic that maps to TID 1.

The reference driver doesn't do this check.

11 years agoPrint out the queue flags during a TX DMA shutdown.
Adrian Chadd [Sat, 9 Mar 2013 06:11:58 +0000 (06:11 +0000)]
Print out the queue flags during a TX DMA shutdown.