]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoUse define from if_var.h to access a field inside struct if_data,
glebius [Sat, 30 Aug 2014 19:55:54 +0000 (19:55 +0000)]
Use define from if_var.h to access a field inside struct if_data,
that resides in struct ifnet.

Sponsored by: Nginx, Inc.

9 years agoSet the 'inst_length' to '0' early on before any error conditions are detected
neel [Sat, 30 Aug 2014 18:35:16 +0000 (18:35 +0000)]
Set the 'inst_length' to '0' early on before any error conditions are detected
in the emulation of the task switch. If any exceptions are triggered then the
guest %rip should point to instruction that caused the task switch as opposed
to the one after it.

9 years agoReplace cvsweb link wihg svnweb URL in bktr(4) release notes.
gavin [Sat, 30 Aug 2014 18:01:45 +0000 (18:01 +0000)]
Replace cvsweb link wihg svnweb URL in bktr(4) release notes.

9 years agoSave and restore FPU state across suspend and resume. In earlier revisions
jhb [Sat, 30 Aug 2014 17:48:38 +0000 (17:48 +0000)]
Save and restore FPU state across suspend and resume.  In earlier revisions
of this patch, resumectx() called npxresume() directly, but that doesn't
work because resumectx() runs with a non-standard %cs selector.  Instead,
all of the FPU suspend/resume handling is done in C.

MFC after: 1 week

9 years agoFix the order of "const volatile" to be consistent with
kargl [Sat, 30 Aug 2014 17:31:53 +0000 (17:31 +0000)]
Fix the order of "const volatile" to be consistent with
the rest of msun.

9 years agoMake tiny volatile to prevent the compiler(s) from
kargl [Sat, 30 Aug 2014 17:14:47 +0000 (17:14 +0000)]
Make tiny volatile to prevent the compiler(s) from
constant folding expressions of the form "1 - tiny",
which are used to raise FE_INEXACT.

9 years agoMinor space/tab cleanups.
pfg [Sat, 30 Aug 2014 15:41:07 +0000 (15:41 +0000)]
Minor space/tab cleanups.

Most of them were ripped from the GSoC 2104
SMAP + kpatch project.
This is only a cosmetic change.

Taken from: Oliver Pinter (op@)
MFC after: 5 days

9 years agoAllow the iwn(4) fw 100 to be compiled into the kernel and update the
brueffer [Sat, 30 Aug 2014 13:47:05 +0000 (13:47 +0000)]
Allow the iwn(4) fw 100 to be compiled into the kernel and update the
relevant manpages.

9 years agoUse ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
hrs [Sat, 30 Aug 2014 07:08:10 +0000 (07:08 +0000)]
Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.

Discussed on: -net@

9 years agoAdd missing proctree locking to fill_kinfo_proc consumers.
mjg [Sat, 30 Aug 2014 03:10:55 +0000 (03:10 +0000)]
Add missing proctree locking to fill_kinfo_proc consumers.

This fixes r270444.

Pointy hat: mjg
Reported by: many
MFC after: 1 week

9 years agoWe were returning 20 bytes as the FIS size to send, but only
imp [Sat, 30 Aug 2014 02:13:09 +0000 (02:13 +0000)]
We were returning 20 bytes as the FIS size to send, but only
initializing 16. Initialize all 20 so we don't send garbage in the
Auxiliary register. The SATA standard mandates a 5 dword length for
the Host to Device FIS.

Sponsored by: Netflix

9 years agoAdd a few defines and packet types for SATA 3.2 and FPDMA (First Party
imp [Sat, 30 Aug 2014 02:13:04 +0000 (02:13 +0000)]
Add a few defines and packet types for SATA 3.2 and FPDMA (First Party
DMA).

Sponsored by: Netflix

9 years agoUpdate the date for last example.
imp [Sat, 30 Aug 2014 02:12:58 +0000 (02:12 +0000)]
Update the date for last example.

Sponsored by: Netflix

9 years agoWhen anouncing link state changes on an 802.11 interface with a vap,
jhb [Fri, 29 Aug 2014 22:01:47 +0000 (22:01 +0000)]
When anouncing link state changes on an 802.11 interface with a vap,
announce the change on the vap's ifnet instead of the main ifnet.  This
matches the behavior of other wireless drivers in the tree and allows the
default devd configuration to correctly start dhclient automatically after
an ndis wireless device associates.

MFC after: 2 weeks

9 years agoRename shm_dict_init to shm_init to fix a compiler warning.
andreast [Fri, 29 Aug 2014 21:50:32 +0000 (21:50 +0000)]
Rename shm_dict_init to shm_init to fix a compiler warning.

Reviewed by: jhb

9 years ago- Add a new structure type for the ACPI 3.0 SMAP entry that includes the
jhb [Fri, 29 Aug 2014 21:25:47 +0000 (21:25 +0000)]
- Add a new structure type for the ACPI 3.0 SMAP entry that includes the
  optional attributes field.
- Add a 'machdep.smap' sysctl that exports the SMAP table of the running
  system as an array of the ACPI 3.0 structure.  (On older systems, the
  attributes are given a value of zero.)  Note that the sysctl only
  exports the SMAP table if it is available via the metadata passed from
  the loader to the kernel.  If an SMAP is not available, an empty array
  is returned.
- Add a format handler for the ACPI 3.0 SMAP structure to the sysctl(8)
  binary to format the SMAP structures in a readable format similar to
  the format found in boot messages.

MFC after: 2 weeks

9 years agoFix a typo.
jhb [Fri, 29 Aug 2014 21:20:36 +0000 (21:20 +0000)]
Fix a typo.

9 years agoMFamd64: Add a machdep.bootmethod sysctl to inform the installer which
jhb [Fri, 29 Aug 2014 21:08:40 +0000 (21:08 +0000)]
MFamd64: Add a machdep.bootmethod sysctl to inform the installer which
firmware method was used for booting.  This is hardcoded to BIOS on i386.

PR: 192962
Reviewed by: nwhitehorn
MFC after: 1 week

9 years agoAdd the new shm_ino field to struct shmfd. Missed in 270823.
jhb [Fri, 29 Aug 2014 20:50:49 +0000 (20:50 +0000)]
Add the new shm_ino field to struct shmfd.  Missed in 270823.

Reported by: peter
Pointy hat to: jhb

9 years agoUse a unit number allocator to provide suitable st_dev and st_ino values
jhb [Fri, 29 Aug 2014 18:18:29 +0000 (18:18 +0000)]
Use a unit number allocator to provide suitable st_dev and st_ino values
for POSIX shared memory descriptors.  The implementation is similar to
that used for pipes.

MFC after: 1 week

9 years ago* Add SIOCGI2C driver ioctl used to retrieve i2c info.
melifaro [Fri, 29 Aug 2014 18:02:58 +0000 (18:02 +0000)]
* Add SIOCGI2C driver ioctl used to retrieve i2c info.
* Convert ixgbe to use this ioctl
* Convert ifconfig to use generic i2c handler for  "ix" interfaces.

Approved by: Eric Joyner (ixgbe part)
MFC after: 2 weeks
Sponsored by: Yandex LLC

9 years agoForward declare struct kiocb, which is only used for an unsued function
bz [Fri, 29 Aug 2014 14:47:05 +0000 (14:47 +0000)]
Forward declare struct kiocb, which is only used for an unsued function
argument but not actually defined anywhere.

This fixes the compile complaining about
"declaration of 'struct kiocb' will not be visible outside of this function".

MFC after: 2 weeks
X-MFC with: whatever changed caused the breakage ;-)

9 years agoTry to also unbreak powerpc complaining about
bz [Fri, 29 Aug 2014 14:38:57 +0000 (14:38 +0000)]
Try to also unbreak powerpc complaining about
"cast from pointer to integer of different size".

MFC after: 3 days
X-MFC with: r270755

9 years agoThese functions are #defined to "osdep" specific names without the "_mem"
bz [Fri, 29 Aug 2014 12:48:38 +0000 (12:48 +0000)]
These functions are #defined to "osdep" specific names without the "_mem"
extension.  Provide prototypes for the actual implementations.
Correct function arguments to match the implementations.

MFC after: 3 days
X-MFC with: r270755

9 years agoProperly place #ifdef INET and #ifdef INET6 around variable declarations
bz [Fri, 29 Aug 2014 12:45:14 +0000 (12:45 +0000)]
Properly place #ifdef INET and #ifdef INET6 around variable declarations
and code to make the code compile.

Give the function seems to be slightly mixed with csum and tso,
make it non-fatal if we try to setup thing on a kernel without IP
support.  In practise the printf on the console will probably still
make your machine unhappy.

MFC after: 3 days
X-MFC with: r270755

9 years agoProperly handle prefetch only for amd64 and i386 as we do elsewhere.
bz [Fri, 29 Aug 2014 12:40:01 +0000 (12:40 +0000)]
Properly handle prefetch only for amd64 and i386 as we do elsewhere.

In general theraven is right that we should factr this out and provide
a general and per-arch implementation that everything can use.

MFC after: 3 days
X-MFC with: r270755

9 years agoDocument the whole settings needed to build a debug version of rtld.
kib [Fri, 29 Aug 2014 10:44:58 +0000 (10:44 +0000)]
Document the whole settings needed to build a debug version of rtld.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoOptimize r270798, only do the second pass over non-plt relocations
kib [Fri, 29 Aug 2014 10:43:56 +0000 (10:43 +0000)]
Optimize r270798, only do the second pass over non-plt relocations
when the first pass found IFUNCs.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoFirst try on fixing some more compile errors without actually testing:
bz [Fri, 29 Aug 2014 09:37:18 +0000 (09:37 +0000)]
First try on fixing some more compile errors without actually testing:
- use proper __FreeBSD_version check and more importantly check for __am64__
  to be defined.  Whether the FreeBSD(_version) checks are needed is a
  different question.
- cast uint64_t to uintmax_t and use %jx for printing.

Note: there are more values that could be printed in that status function
but leave that for the future;  printf doesn't seem to be the right
way to do it anyway.
Note: there is more breakage related to i40e_allocate_dma*() having
conflicting declarations, so more fixes to come.

PR: 193112
MFC after: 3 days
X-MFC with: r270755

9 years agoIFUNC symbol type shall be processed for non-PLT relocations,
kib [Fri, 29 Aug 2014 09:29:10 +0000 (09:29 +0000)]
IFUNC symbol type shall be processed for non-PLT relocations,
e.g. when a global variable is initialized with a pointer to ifunc.
Add symbol type check and call resolver for STT_GNU_IFUNC symbol types
when processing non-PLT relocations, but only after non-IFUNC
relocations are done.  The two-phase proceessing is required since
resolvers may reference other symbols, which must be ready to use when
resolver calls are done.

Restructure reloc_non_plt() on x86 to call find_symdef() and handle
IFUNC in single place.

For non-x86 reloc_non_plt(), check for call for IFUNC relocation and
do nothing, to avoid processing relocs twice.

PR: 193048
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoDirect access to the quota files, in particular, lookup, causes lock
kib [Fri, 29 Aug 2014 09:04:24 +0000 (09:04 +0000)]
Direct access to the quota files, in particular, lookup, causes lock
conflict with the quota metadata access.  Mark quota vnode lock as
recursive and always exclusive to avoid the problem.

Reported by: hrs
Tested by: hrs, pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoAdd function and wrapper to switch lockmgr and vnode lock back to
kib [Fri, 29 Aug 2014 09:02:01 +0000 (09:02 +0000)]
Add function and wrapper to switch lockmgr and vnode lock back to
auto-promotion of shared to exclusive.

Tested by: hrs, pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agovt(4): Indicate that KDSETRAD case falls through the next case
dumbbell [Fri, 29 Aug 2014 08:20:03 +0000 (08:20 +0000)]
vt(4): Indicate that KDSETRAD case falls through the next case

CID: 1229953
MFC after: 1 week

9 years agovt(4): Change vb_history_size from "int" to "unsigned int"
dumbbell [Fri, 29 Aug 2014 08:16:31 +0000 (08:16 +0000)]
vt(4): Change vb_history_size from "int" to "unsigned int"

CID: 12300021230003
MFC after: 1 week

9 years agoReturn false status only when adding a route is failed. It could
hrs [Fri, 29 Aug 2014 08:02:35 +0000 (08:02 +0000)]
Return false status only when adding a route is failed.  It could
erroneously return false due to an afexists() check loop in routing_start().

9 years agoRestructure rc.d scripts for kerberos5 daemons:
hrs [Fri, 29 Aug 2014 07:51:47 +0000 (07:51 +0000)]
Restructure rc.d scripts for kerberos5 daemons:

- Rename $kerberos5_server_enable with $kdc_enable and rename
  rc.d/kerberos with rc.d/kdc.

- Rename $kadmin5_server_enable with $kadmind_enable.

- Rename ${kerberos5,kpasswdd}_server with ${kdc,kpasswdd}_program.

- Fix rc.d/{kadmind,kerberos,kpasswdd,kfd} scripts not to change variables
  after load_rc_config().

- Add rc.d/ipropd_master and rc.d/ipropd_slave scripts.  These are
  for iprop-master(8) and iprop-slave(8).  Keytab used for iprop service is
  defined in ipropd_{master,slave}_keytab (/etc/krb5.keytab by default).

- Add dependency on rc.d/kdc to SERVERS.  rc.d/kdc must be invoked as early
  as possible before scripts divided by rc.d/SERVERS.

Note that changes to rc.d/{kdc,kpasswdd,kadmind} are backward-compatible
with the old configuration variables:
${kerberos5,kpasswdd,kadmin5}_server{,_enable,_flags}.

9 years ago- Add a warning message when an IPv6 address is specified with no prefixlen.
hrs [Fri, 29 Aug 2014 06:31:18 +0000 (06:31 +0000)]
- Add a warning message when an IPv6 address is specified with no prefixlen.
- Use a parameter argument in jls(8) instead of doing grep.

9 years agoFix rc.d/gssd script to define the default values in a standard way.
hrs [Fri, 29 Aug 2014 06:23:00 +0000 (06:23 +0000)]
Fix rc.d/gssd script to define the default values in a standard way.

9 years agoFix the NOINET and NOINET6 builds.
jfv [Fri, 29 Aug 2014 00:33:31 +0000 (00:33 +0000)]
Fix the NOINET and NOINET6 builds.

MFC after:3 days

9 years agoAdd Alonso Schaich to ports developers. Mentors: makc@, rakuco@
alonso [Thu, 28 Aug 2014 23:32:56 +0000 (23:32 +0000)]
Add Alonso Schaich to ports developers. Mentors: makc@, rakuco@

Approved by: rakuco (mentor)

9 years agoRemove the DEV_NETMAP code from the ixl drivers, it was a placeholder
jfv [Thu, 28 Aug 2014 22:52:20 +0000 (22:52 +0000)]
Remove the DEV_NETMAP code from the ixl drivers, it was a placeholder
and not yet ready to be defined, and its causing build errors.

MFC after: 3 days

9 years agoSome corrections, reformating, and additional info about the VF
jfv [Thu, 28 Aug 2014 21:45:07 +0000 (21:45 +0000)]
Some corrections, reformating, and additional info about the VF
driver in the README.

MFC after: 1 day

9 years agoAdd canonical population of a disk / thumb drive from an image
imp [Thu, 28 Aug 2014 21:30:39 +0000 (21:30 +0000)]
Add canonical population of a disk / thumb drive from an image
example.

9 years agoRefactor ZFS ARC reclaim logic to be more VM cooperative
smh [Thu, 28 Aug 2014 19:50:08 +0000 (19:50 +0000)]
Refactor ZFS ARC reclaim logic to be more VM cooperative

Prior to this change we triggered ARC reclaim when kmem usage passed 3/4
of the total available, as indicated by vmem_size(kmem_arena, VMEM_ALLOC).

This could lead large amounts of unused RAM e.g. on a 192GB machine with
ARC the only major RAM consumer, 40GB of RAM would remain unused.

The old method has also been seen to result in extreme RAM usage under
certain loads, causing poor performance and stalls.

We now trigger ARC reclaim when the number of free pages drops below the
value defined by the new sysctl vfs.zfs.arc_free_target, which defaults
to the value of vm.v_free_target.

Credit to Karl Denninger for the original patch on which this update was
based.

PR: 191510 and 187594
Tested by: dteske
MFC after: 1 week
Relnotes: yes
Sponsored by: Multiplay

9 years agoFix build breakage caused by ixl driver
smh [Thu, 28 Aug 2014 18:59:39 +0000 (18:59 +0000)]
Fix build breakage caused by ixl driver

Fix missing includes and invalid vars in ixl / ixlv driver added by r270346
which caused build failures for GENERIC kernel after it was made default
by r270755.

X-MFC-With: r270346 / r270755
Sponsored by: Multiplay

9 years agoIn r253839 the default behaviour of ld(1) was changed such that all
tijl [Thu, 28 Aug 2014 18:33:42 +0000 (18:33 +0000)]
In r253839 the default behaviour of ld(1) was changed such that all
libraries that need to be linked into an executable or library have to be
listed on the command line explicitly.  This commit fixes a bug in ld(1)
where it would scan dependencies of the libraries on the command line and
link them if needed if they were also found in ld.so.cache.

The important bit of the patch is the initialisation of needed.by such that
libraries found by scanning dependencies are marked as such and not used in
the link.

The patch is a backport of binutils git commit
d5c8b1f8561426b41aa5330ed60f578178fe6be2

The author gave permission to use it under GPLv2 terms.

PR: 192062
Exp-run by: antoine
MFC after: 1 week

9 years agoAdd XL710 device entries to NOTES, and directories to the module
jfv [Thu, 28 Aug 2014 17:40:19 +0000 (17:40 +0000)]
Add XL710 device entries to NOTES, and directories to the module
Makefile so they will be built.

MFC after: 1 day

9 years agoUse "file -s", so that we can run vmrun.sh against special devices such
rodrigc [Thu, 28 Aug 2014 16:26:13 +0000 (16:26 +0000)]
Use "file -s", so that we can run vmrun.sh against special devices such
as /dev/md memory file systems

Reviewed by: neel

9 years agodrm/radeon: Fix a memory leak when radeonkms is unloaded
dumbbell [Thu, 28 Aug 2014 12:40:31 +0000 (12:40 +0000)]
drm/radeon: Fix a memory leak when radeonkms is unloaded

MFC after: 1 week

9 years agoUnlock the right lock.
ed [Thu, 28 Aug 2014 11:50:52 +0000 (11:50 +0000)]
Unlock the right lock.

The adist_remote_lock is not held in this place, whereas the
adist_recv_list_lock lock is and is picked up during the next iteration.

I found this by annotating our libpthread with Clang's -Wthread-safety
attributes. I will send out a patch for this in the nearby future,
because it's awesome.

MFC after: 2 weeks

9 years agoReturn real parent pid in kinfo (used by e.g. ps)
mjg [Thu, 28 Aug 2014 08:41:11 +0000 (08:41 +0000)]
Return real parent pid in kinfo (used by e.g. ps)

Add a separate field which exports tracer pid and add a new keyword
("tracer") for ps to display it.

This is a follow up to r270444.

Reviewed by: kib
MFC after: 1 week
Relnotes: yes

9 years agoInform the rate control code if a single frame AMPDU transmission succeeds
adrian [Thu, 28 Aug 2014 07:44:59 +0000 (07:44 +0000)]
Inform the rate control code if a single frame AMPDU transmission succeeds
but has some retries.

Without this, single frame transmission in AMPDU will always look like
it succeeded fine, and thus AMRR will think it's totally fine to just
keep upping the rate upwards.

Now, this is still not quite right!  For multi-frame aggregates the
completion happens in two parts - the TX done and the BA received.
The driver is currently double accounting those a little - there's no
way to say to the rate control code "I completed X frames, Y worked fine,
there were Z retries." And it's a bit odd with iwn, as the firmware
retransmits frames for us so we don't get to see how many retransmits
happened; only that it took longer than normal.  I may have to extend
the rate control API to properly track that.

So this may keep the rate lower than it should be, but that's better
than keeping it higher than it should be.

Tested:

* 5100, STA mode

9 years agoAdd description of "sysctl_remove_name()" function.
hselasky [Thu, 28 Aug 2014 04:35:38 +0000 (04:35 +0000)]
Add description of "sysctl_remove_name()" function.

9 years agoFix antenna configuration, microcode version checks and rate selection
adrian [Thu, 28 Aug 2014 03:18:27 +0000 (03:18 +0000)]
Fix antenna configuration, microcode version checks and rate selection
in preparation for the 5300 3x3 NIC.

During this particular adventure, I did indeed discover that a whole
swath of things made little to no sense.

Those included, and are fixed here:

* A lot of the antenna configuration bits assume the NIC has two receive
  chains.  That's blatantly untrue for NICs that don't.
* There was some disconnect between the antenna configuration when
  forming a PLCP rate DWORD (which includes the transmit antenna
  configuration), separate to the link quality antenna configuration.

  So now there's helper functions to return which antenna configurations
  to use and those are used wherever an antenna config is required.

* The 5300 does up to three stream TX/RX (so MCS0->23), however
  the link quality table has only 16 slots.  This means all of the
  rate entries are .. well, dual-stream rates.  If this is the case,
  the "last MIMO" parameter can't be 16 or it panics the firmware.
  Set it to 15.

* .. and since yes it has 16 slots, it only would try retransmitting
  from MCS8->MCS23, which can be quite .. terrible.  Hard-code the last
  two retry slots to be the lowest configured rate.

* I noticed some transmit configuration command stuff is different
  based on firmware API version, so I lifted that code from Linux.

* Add / augment some more logging to make it easier to capture this
  stuff.

Now, 3x3 is still terrible because the link quality configuration is
plainly not good enough.  I'll have to think about that.
However, the original goal of this - 3x3 operation on the Intel
5300 NIC - actually worked.

There are also rate control bugs in the way this driver handles
notifying the net80211 rate control code when AMPDU is enabled.
It always steps the rate up to the maximum rate possible - and
this eventually ends in much sadness.  I'll fix that later.

As a side note - 2GHz HT40 now works on all the NICs I have tested.

As a second side note - this exposed some bad 3x3 behaviour in
the ath(4) rate control code where it starts off at a 3-stream rate
and doesn't downgrade quickly enough.  This makes the initial
dhcp exchange take a long time.  I'll fix the ath(4) rate code
to start at a low fixed 1x1 MCS rate and step up if everything
works out.

Tested:

* Intel 2200
* Intel 2230
* Intel 5300
* Intel 5100
* Intel 6205
* Intel 100

TODO:

* Test the other NICs more thoroughly!

Thank you to Michael Kosarev <russiane39@gmail.com> for donating the
Intel 5300 NIC and pestering me about it since last year to try and
make it all work.

9 years agoAdd iwn-100 firmware.
adrian [Thu, 28 Aug 2014 00:05:02 +0000 (00:05 +0000)]
Add iwn-100 firmware.

The firmware is from the Linux firmware git repository; the intel
licence is the same as other firmware blobs.

Tested: iwn1: <Intel Centrino Wireless-N 100> mem 0xf4800000-0xf4801fff irq 19 at device 0.0 on pci5

9 years agoFix comments on updating tzdata releases.
pluknet [Wed, 27 Aug 2014 19:34:49 +0000 (19:34 +0000)]
Fix comments on updating tzdata releases.

9 years agoMFV of r270725, tzdata2014f
pluknet [Wed, 27 Aug 2014 19:26:35 +0000 (19:26 +0000)]
MFV of r270725, tzdata2014f

- Russia time zone changes.
- New zones: Asia/Chita and Asia/Srednekolymsk.
- Lots of changes wrt. time zone abbreviations and historical data.
- New zone tab data format.

9 years agoadd scripts for generating a diff from p4...
jmg [Wed, 27 Aug 2014 18:56:12 +0000 (18:56 +0000)]
add scripts for generating a diff from p4...

awkdiff is the script from scottl that he got from ken a long time
ago...  It no longer lives in his home dir, so give it a new home...
This does simple massaging of p4 output to create a useful diff...

The script p4diffbranch will create a diff that includes new and
deleted files unlike the normal diff2 -b command...  So will be useful
for extracting patches from p4...  It does take a changeset that will
be used to diff against...

9 years agoVendor import of tzdata2014f.
pluknet [Wed, 27 Aug 2014 18:49:41 +0000 (18:49 +0000)]
Vendor import of tzdata2014f.

- Russia time zone changes.
- New zones: Asia/Chita and Asia/Srednekolymsk.
- Lots of changes wrt. time zone abbreviations and historical data.
- New zone tab data format.

Obtained from: ftp://ftp.iana.org/tz/releases/

9 years agoCorrect the destroy example. The -n argument is not needed (and is not
jhb [Wed, 27 Aug 2014 17:44:59 +0000 (17:44 +0000)]
Correct the destroy example.  The -n argument is not needed (and is not
valid).

Reported by: mwlucas
Reviewed by: phk
MFC after: 1 week

9 years agovt(4): If the terminal shrinks, make sure the mouse is inside the new area
dumbbell [Wed, 27 Aug 2014 17:16:52 +0000 (17:16 +0000)]
vt(4): If the terminal shrinks, make sure the mouse is inside the new area

MFC after: 1 week

9 years agovt(4): Fix mouse cursor handling in vt_fb/creator_vt/ofwfb
dumbbell [Wed, 27 Aug 2014 15:10:28 +0000 (15:10 +0000)]
vt(4): Fix mouse cursor handling in vt_fb/creator_vt/ofwfb

There were two issues:
    1. The area given to vt_is_cursor_in_area() was adding the drawable
       area offset, something already handled by this function.
    2. The cursor was shifted on the screen by the offset of this area
       and thus was misplaced or not erased. Furthermore, when reaching
       the bottom or right borders, the cursor was either totally
       removed or not erased correctly.

MFC after: 1 week

9 years ago- Update the OFED Linux Emulation layer as a preparation for a
hselasky [Wed, 27 Aug 2014 13:21:53 +0000 (13:21 +0000)]
- Update the OFED Linux Emulation layer as a preparation for a
hardware driver update from Mellanox Technologies.
- Remove empty files from the OFED Linux Emulation layer.
- Fix compile warnings related to printf() and the "%lld" and "%llx"
format specifiers.
- Add some missing 2-clause BSD copyrights.
- Add "Mellanox Technologies, Ltd." to list of copyright holders.
- Add some new compatibility files.
- Fix order of uninit in the mlx4ib module to avoid crash at unload
using the new module_exit_order() function.

MFC after: 1 week
Sponsored by: Mellanox Technologies

9 years agovt(4): Recompute the drawable area when the resolution changes
dumbbell [Wed, 27 Aug 2014 11:27:48 +0000 (11:27 +0000)]
vt(4): Recompute the drawable area when the resolution changes

This was only done when the font changed.

MFC after: 1 week

9 years agovt(4): Pause the vt_flush() timer when the screen is up-to-date
dumbbell [Wed, 27 Aug 2014 11:08:09 +0000 (11:08 +0000)]
vt(4): Pause the vt_flush() timer when the screen is up-to-date

The timer is restarted whenever a window buffer is marked as dirty or
the mouse cursor moves.

There's still room for improvement. For instance, we should not mark a
window buffer as dirty when this window isn't displayed.

Review: https://reviews.freebsd.org/D683
Reviewed by: ray@
Approved by: ray@
MFC after: 1 week

9 years agodrm: Don't "taskqueue" vt-switch if under DDB/panic situation
dumbbell [Wed, 27 Aug 2014 10:07:08 +0000 (10:07 +0000)]
drm: Don't "taskqueue" vt-switch if under DDB/panic situation

If DDB is active, we can't use a taskqueue thread to switch away from
the X window, because this thread can't run.

Reviewed by: ray@
Approved by: ray@
MFC after: 1 week

9 years agovt(4): Add cngrab() and cnungrab() callbacks
dumbbell [Wed, 27 Aug 2014 10:04:10 +0000 (10:04 +0000)]
vt(4): Add cngrab() and cnungrab() callbacks

They are used when a panic occurs or when entering a DDB session for
instance.

cngrab() forces a vt-switch to the console window, no matter if the
original window is another terminal or an X session. However, cnungrab()
doesn't vt-switch back to the original window currently.

MFC after: 1 week

9 years agovt(4): Implement basic support for KDSETMODE ioctl
dumbbell [Wed, 27 Aug 2014 09:34:41 +0000 (09:34 +0000)]
vt(4): Implement basic support for KDSETMODE ioctl

With the current implementation, this allows an X11 server to tell
the console it switches a particular window in "graphics mode". This
information is used by the mouse handling code to ignore sysmouse events
in the window taken by the X server: only him should receive those
events.

Reported by: flo@, glebius@, kan@
Tested by: flo@
Reviewed by: kan@
MFC after: 1 week

9 years ago- Use $local_startup to load rc.conf.d/* scripts.
hrs [Wed, 27 Aug 2014 09:19:22 +0000 (09:19 +0000)]
- Use $local_startup to load rc.conf.d/* scripts.
- Document support of rc.conf.d/<dir>/* introduced in r270392.

Discussed with: bapt

9 years agoRegen.
kib [Wed, 27 Aug 2014 01:02:19 +0000 (01:02 +0000)]
Regen.

9 years agoFix handling of the third argument for fcntl(2). The native syscall
kib [Wed, 27 Aug 2014 01:02:02 +0000 (01:02 +0000)]
Fix handling of the third argument for fcntl(2).  The native syscall
uses long for arg, which needs translation.

Discussed with and tested by: mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoImplement the 0x2B SUB instruction, and the OR variant of 0x81.
grehan [Wed, 27 Aug 2014 00:53:56 +0000 (00:53 +0000)]
Implement the 0x2B SUB instruction, and the OR variant of 0x81.

Found with local APIC accesses from bitrig/amd64 bsd.rd, 07/15-snap.

Reviewed by: neel
MFC after: 3 days

9 years agoRemove stray newline.
kib [Wed, 27 Aug 2014 00:48:09 +0000 (00:48 +0000)]
Remove stray newline.

9 years agoDocument the new ${LOCALBASE}/etc/rc.conf.d in rc.conf(5)
bapt [Tue, 26 Aug 2014 22:54:54 +0000 (22:54 +0000)]
Document the new ${LOCALBASE}/etc/rc.conf.d in rc.conf(5)

MFC after: 1 week

9 years agoFix xref, pam(8) -> pam(3)
gavin [Tue, 26 Aug 2014 22:39:24 +0000 (22:39 +0000)]
Fix xref, pam(8) -> pam(3)

PR: 193045
Submitted by: rsimmons0 gmail com
MFC after: 3 days

9 years agoAllow to configure services from ${LOCALBASE}/etc/rc.conf.d
bapt [Tue, 26 Aug 2014 22:33:34 +0000 (22:33 +0000)]
Allow to configure services from ${LOCALBASE}/etc/rc.conf.d

Reviewed by: bdrewery
MFC after: 1 week
Relnotes: yes

9 years agoAllow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var...
bapt [Tue, 26 Aug 2014 22:20:02 +0000 (22:20 +0000)]
Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set)

Phabric: https://reviews.freebsd.org/D412
Reviewed by: bdrewery
MFC after: 2 weeks
Relnotes: yes

9 years agoClarify that the -c argument clears the list of tracepoints specified by
jhb [Tue, 26 Aug 2014 21:21:57 +0000 (21:21 +0000)]
Clarify that the -c argument clears the list of tracepoints specified by
-t (it does not clear all tracepoints).

Submitted by: jmg, Eric van Gyzen <eric@vangyzen.net>
MFC after: 1 week

9 years agoAnnounce SCTP support in the kern.features sysctl variables.
tuexen [Tue, 26 Aug 2014 21:15:34 +0000 (21:15 +0000)]
Announce SCTP support in the kern.features sysctl variables.

MFC after: 3 days

9 years agoAdd svnlite.1 to CLEANFILES.
gjb [Tue, 26 Aug 2014 20:40:12 +0000 (20:40 +0000)]
Add svnlite.1 to CLEANFILES.

MFC after: 3 days
X-MFC-To: stable/10 only
Sponsored by: The FreeBSD Foundation

9 years agoAdd host.1 to CLEANFILES.
gjb [Tue, 26 Aug 2014 19:36:47 +0000 (19:36 +0000)]
Add host.1 to CLEANFILES.

MFC after: 3 days
X-MFC-To: stable/10 only
Sponsored by: The FreeBSD Foundation

9 years agoAdd gnugrep.1 to CLEANFILES.
gjb [Tue, 26 Aug 2014 19:36:34 +0000 (19:36 +0000)]
Add gnugrep.1 to CLEANFILES.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agovt(4): When creating a window buffer, fill it entirely
dumbbell [Tue, 26 Aug 2014 17:48:05 +0000 (17:48 +0000)]
vt(4): When creating a window buffer, fill it entirely

... not just the visible part.

This fixes a bug where, when switching from eg. vt_vga to vt_fb (ie. the
resolution goes up), the originally hidden, uninitialized area of the
buffer is displayed on the screen. This leads to a missing text cursor
when it's over an unitialized area.

This was also visible when selecting text: the uninitialized area was
not highlighted.

Internally, this area was zeroed: characters were all 0x00000000,
meaning the foreground and background color was black. Now, everything
is filled with a space with a gray foreground color, like the visible
area.

While here, remove the check for the mute flag and always use
TERMINAL_NORM_ATTR as the character attribute (ie. gray foreground,
black background).

MFC after: 1 week

9 years agoBack in the days when the kernel was single threaded, testing
alc [Tue, 26 Aug 2014 16:40:20 +0000 (16:40 +0000)]
Back in the days when the kernel was single threaded, testing
"vm_paging_target() > 0" was a reasonable way of determining if the
inactive queue scan met its target.  However, now that other threads
can be allocating pages while the inactive queue scan is running, it's
an unreliable method.  The effect of it being unreliable is that we
can start swapping out processes when we didn't intend to.

This issue has existed since the kernel was multithreaded, but the
changes to the inactive queue target in 10.0-RELEASE have made its
effects visible.

This change introduces a more direct method for determining if the
inactive queue scan met its target that is not affected by the actions
of other threads.

Reported by: Steve Polyack
Tested by: pho, Steve Polyack (an earlier version)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Remove socket file operations declaration from sys/file.h.
glebius [Tue, 26 Aug 2014 14:44:08 +0000 (14:44 +0000)]
- Remove socket file operations declaration from sys/file.h.
- Make them static in sys_socket.c.
- Provide generic invfo_truncate() instead of soo_truncate().

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoRemove leading '/' from hardlink name when removing them from the
ae [Tue, 26 Aug 2014 13:11:38 +0000 (13:11 +0000)]
Remove leading '/' from hardlink name when removing them from the
regular file name. This fixes the problem, when bsdtar can not create
hardlinks to extracted files.

Silence from: kientzle@
MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoBack-out the references to vt(4) from this man-page. It appears that the
se [Tue, 26 Aug 2014 11:13:07 +0000 (11:13 +0000)]
Back-out the references to vt(4) from this man-page. It appears that the
splash support in vt is implemented within the vt driver and does not
depend on splash(4).

Submitted by: marius@alchemy.franken.de

9 years agoMissed comma.
pluknet [Tue, 26 Aug 2014 11:04:51 +0000 (11:04 +0000)]
Missed comma.

9 years agoMore man pages that need to know about vt in addition to syscons.
se [Tue, 26 Aug 2014 10:55:08 +0000 (10:55 +0000)]
More man pages that need to know about vt in addition to syscons.

MFC after: 3 dayS

9 years agoUpdate man-pages to correctly refer to changed pathes and naming conventions
se [Tue, 26 Aug 2014 09:40:14 +0000 (09:40 +0000)]
Update man-pages to correctly refer to changed pathes and naming conventions
for systems with vt(4) consoles.

MFC after: 3 days

9 years agoRemove band.aid that made kbdcontrol lookup keymap files in the syscons
se [Tue, 26 Aug 2014 09:37:43 +0000 (09:37 +0000)]
Remove band.aid that made kbdcontrol lookup keymap files in the syscons
path even under vt, which is no longer useful, since the syscons keymap
files have been converted and committed for use by vt.

9 years agoIntroduce missing definition for LIBTERMCAPW
ngie [Tue, 26 Aug 2014 09:12:41 +0000 (09:12 +0000)]
Introduce missing definition for LIBTERMCAPW

Some Makefiles expect this value to exist

Approved by: rpaulo (mentor)
MFC after: 5 days
Phabric: D675 (as part of a larger diff)
PR: 192762

9 years agoConvert LIBCURSES to LIBNCURSES to fix "make checkdpadd"
ngie [Tue, 26 Aug 2014 09:10:28 +0000 (09:10 +0000)]
Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"

Also, add a missing LIBPANEL dependency for lldb

Approved by: rpaulo (mentor)
Suggested by: brooks
MFC after: 5 days
Phabric: D675 (as part of a larger diff)
PR: 192762

9 years agoFix "make checkdpadd" by "spoofing" DPADD
ngie [Tue, 26 Aug 2014 09:01:11 +0000 (09:01 +0000)]
Fix "make checkdpadd" by "spoofing" DPADD

Approved by: jmmv (mentor)
Phabric: D631
PR: 192769

9 years agoFix up races with f_seqcount handling.
mjg [Tue, 26 Aug 2014 08:17:22 +0000 (08:17 +0000)]
Fix up races with f_seqcount handling.

It was possible that the kernel would overwrite user-supplied hint.

Abuse vnode lock for this purpose.

In collaboration with: kib
MFC after: 1 week

9 years agoAdd references to vt(4) and the configuration files in /usr7share/vt where
se [Tue, 26 Aug 2014 08:13:30 +0000 (08:13 +0000)]
Add references to vt(4) and the configuration files in /usr7share/vt where
appropriate (i.e. where syscons was already mentioned and vt supports the
feature). Comments in defaults/rc.conf are updated to match the contents
of the modified man-page rc.conf(5).

Reviewed by: pluknet, emaste
MFC after: 3 days

9 years agoFix typo: s/mac_rev/mac_ver/
kevlo [Tue, 26 Aug 2014 02:20:37 +0000 (02:20 +0000)]
Fix typo: s/mac_rev/mac_ver/

Submitted by: Stefan Sperling <stsp at openbsd dot org>

9 years agovt_vga: Use Write Mode 0 to draw group of 8 pixels using 3 or more colors
dumbbell [Mon, 25 Aug 2014 20:15:19 +0000 (20:15 +0000)]
vt_vga: Use Write Mode 0 to draw group of 8 pixels using 3 or more colors

This replaces the method based on Write Mode 3, which required reads
from the video memory to load the latches.

MFC after: 1 week

9 years agovt(4): Intialize drawable area rectangle each time a font is loaded
dumbbell [Mon, 25 Aug 2014 19:52:13 +0000 (19:52 +0000)]
vt(4): Intialize drawable area rectangle each time a font is loaded

This also fixes a problem where early in boot, the area was zero,
leading to nothing displayed for a few seconds.

MFC after: 1 week

9 years agovt(4): Store a rectangle for the drawable area, not just the top-left corner
dumbbell [Mon, 25 Aug 2014 19:06:31 +0000 (19:06 +0000)]
vt(4): Store a rectangle for the drawable area, not just the top-left corner

This allows backends to verify they do not draw outside of this area.
This fixes a bug in vt_vga where the text was happily drawn over the
right and bottom margins, when using the Gallant font.

MFC after: 1 week