freebsd-src.git
5 years agoMFC r314365origin/stable/7
davidcs [Fri, 24 Mar 2017 03:37:58 +0000 (24 03:37 +0000)]
MFC r314365
        1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to
           sync threads during interface down or detach.
        2. add sysctl to set pause frame parameters
        3. increase max segs for TSO packets to BXE_TSO_MAX_SEGMENTS (32)
        4. add debug messages for PHY
        5. HW LRO support restricted to FreeBSD versions 8.x and above.

Submitted by: Vaishali.Kulkarni@cavium.com

6 years agoMFC r298591
davidcs [Tue, 10 May 2016 03:22:31 +0000 (10 03:22 +0000)]
MFC r298591

1. Removed -Wno-shift-negative-value from Makefile
2. Fixed warning its absence caused in bxe_elink.c

6 years agoMFC r298496
davidcs [Tue, 10 May 2016 03:19:09 +0000 (10 03:19 +0000)]
MFC r298496

Remove Unused/Dead Code

6 years agoMFC r298294
davidcs [Tue, 10 May 2016 03:17:04 +0000 (10 03:17 +0000)]
MFC r298294

1. modify fwdump (a.k.a grcdump) so that grcdump memory is allocated
     and freed on as needed basis.
2. grcdump can be taken at failure points by invoking bxe_grc_dump()
     when trigger_grcdump sysctl flag is set. When grcdump is taken
     grcdump_done sysctl flag is set.
3. grcdump_done can be monitored by the user to retrieve the grcdump

6 years agoMFC r297884
davidcs [Tue, 19 Apr 2016 19:22:07 +0000 (19 19:22 +0000)]
MFC r297884
Add support for Flash Update

Submitted by:nrapendra.singh@qlogic.com;vaishali.kulkarni@qlogic.com;davidcs@freebsd.org

6 years agoMFC r297873
davidcs [Tue, 19 Apr 2016 19:18:59 +0000 (19 19:18 +0000)]
MFC r297873

1. Process tx completions in bxe_periodic_callout_func() and
   restart transmissions if possible.
2. For SIOCSIFFLAGS call bxe_init_locked() only if !BXE_STATE_DISABLED
3. remove code not needed in bxe_init_internal_common()

Submitted by:vaishali.kulkarni@qlogic.com;venkata.bhavaraju@qlogic.com

6 years agoMFC r297155
davidcs [Wed, 6 Apr 2016 21:59:52 +0000 (6 21:59 +0000)]
MFC r297155
Modifications to achieve a common source base from FreeBSD7.x thru 10.x

6 years agoMFC r296579
davidcs [Mon, 14 Mar 2016 23:49:16 +0000 (14 23:49 +0000)]
MFC r296579
Fix code so that buf_ring allocation for Tx Queues and their mutexes
is done during during bxe_attach() and freed during bxe_detach()

6 years agoMFC r296071
davidcs [Wed, 9 Mar 2016 21:50:39 +0000 (9 21:50 +0000)]
MFC r296071
Upgrade the firmware carried in driver and loaded during hardware
initialization (a.k.a STORM firmware) to version 7.13.1 (latest version)

6 years agoMFC r295830
davidcs [Thu, 25 Feb 2016 18:12:09 +0000 (25 18:12 +0000)]
MFC r295830
Remove dead code. Code Cleanup. Improve clarity in debug messages

6 years agoMFC r295823
davidcs [Thu, 25 Feb 2016 18:08:10 +0000 (25 18:08 +0000)]
MFC r295823
Modified the use of bxe_grc_dump() function so that it can be invoked directly at any potential error path, where a fwdump is needed. The fwdump (a.k.a grcdump) is stored in a driver buffer. The sysctl grcdump_done indicates if a fwdump was taken and waiting to be retrieved.
The sysctl trigger_grcdump can be used to manually trigger a fwdump.

6 years agoReturn the timestamps from the corresponding namecache entry on a negative
jhb [Tue, 2 Feb 2016 19:29:29 +0000 (2 19:29 +0000)]
Return the timestamps from the corresponding namecache entry on a negative
namecache hit.  This was ommitted due to a merging error in r238913.  The
effect was to usually break caching of negative name lookups in the NFS
client.

Submitted by: bde

6 years agoMFC r292639
davidcs [Wed, 13 Jan 2016 01:16:10 +0000 (13 01:16 +0000)]
MFC r292639
    Add support for firmware dump (a.k.a grcdump)

6 years agoMFC r292638
davidcs [Wed, 13 Jan 2016 01:11:32 +0000 (13 01:11 +0000)]
MFC r292638
      Check for packet_length is greater than 60 bytes as well as packet_length is
      greater than len_on_bd, before invoking the routine to handle jumbo over SGL
      (bxe_service_rxsgl()).
      Add counters for number of jumbo_over_SGL packets (rx_bxe_service_rxsgl) and
      erroneous jumbo_over_SGL packets (rx_erroneous_jumbo_sge_pkts)

      Fix formatting in bxe_sysctl_state()

6 years agoMFC r289199
davidcs [Wed, 13 Jan 2016 01:09:32 +0000 (13 01:09 +0000)]
MFC r289199

    Add support for reading device temperature

6 years agoMFC of 290697,tzdata7:
edwin [Thu, 12 Nov 2015 03:30:04 +0000 (12 03:30 +0000)]
MFC of 290697,tzdata7:

Update to tzdata2015g:

Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.

Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.

Fiji's 2016 fall-back transition is scheduled for January 17, not 24.

Fort Nelson, British Columbia will not fall back on 2015-11-01.  It has
effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
New zone America/Fort_Nelson.

6 years agoMFC r287698: Fixing a memory leak on module unloading.
avatar [Mon, 26 Oct 2015 03:48:38 +0000 (26 03:48 +0000)]
MFC r287698: Fixing a memory leak on module unloading.

6 years agoMFC r238980:
avatar [Sat, 24 Oct 2015 19:40:27 +0000 (24 19:40 +0000)]
MFC r238980:

  Just like the other file systems found in /sys/fs, g_vfs_open()
should be paried with g_vfs_close().  Though g_vfs_close() is a wrapper
around g_wither_geom_close(), r206130 added the following test in
g_vfs_open():

if (bo->bo_private != vp)
return (EBUSY);

  Which will cause a 'Device busy' error inside reiserfs_mountfs() if
the same file system is re-mounted again after umount or mounting failure:

(case 1, /dev/ad4s3 is not a valid REISERFS partition)
# mount -t reiserfs -o ro /dev/ad4s3 /mnt
mount: /dev/ad4s3: Invalid argument
# mount -t msdosfs -o ro /dev/ad4s3 /mnt
mount: /dev/ad4s3: Device busy

(case 2, /dev/ad4s3 is a valid REISERFS partition)
# mount -t reiserfs -o ro /dev/ad4s3 /mnt
# umount /mnt
# mount -t reiserfs -o ro /dev/ad4s3 /mnt
mount: /dev/ad4s3: Device busy

  On the other hand, g_vfs_close() 'fixed' the above cases by doing an
extra step to keep 'sc->sc_bo->bo_private' and 'cp->private' pointers
synchronised.

Reviewed by: kib

6 years agoMFC r286888: Using consistent coding style to deal with error inside the loop.
avatar [Wed, 7 Oct 2015 09:41:17 +0000 (7 09:41 +0000)]
MFC r286888: Using consistent coding style to deal with error inside the loop.

6 years agoMFC r286887: Using the error return code documented in the comment.
avatar [Thu, 17 Sep 2015 00:19:27 +0000 (17 00:19 +0000)]
MFC r286887: Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

6 years agoMFC r286886: Fixing typo as well as improving readability of a few comments.
avatar [Wed, 16 Sep 2015 11:32:28 +0000 (16 11:32 +0000)]
MFC r286886: Fixing typo as well as improving readability of a few comments.

6 years agoMFC of 286750,tzdata7:
edwin [Fri, 14 Aug 2015 00:01:45 +0000 (14 00:01 +0000)]
MFC of 286750,tzdata7:

Update to tzdata2015f:

Changes affecting future time stamps

    North Korea switches to +0830 on 2015-08-15.  (Thanks to Steffen Thorsen.)
    The abbreviation remains "KST".  (Thanks to Robert Elz.)
    Uruguay no longer observes DST.  (Thanks to Steffen Thorsen and Pablo Camargo.)
    Changes affecting past and future time stamps
    Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC. (Thanks to Roman Tudos.)

6 years agoMFC r286519:
dim [Wed, 12 Aug 2015 19:18:54 +0000 (12 19:18 +0000)]
MFC r286519:

In GNU as, avoid left-shifting negative integers, which is undefined.

6 years agoMFC r285973
davidcs [Wed, 5 Aug 2015 02:16:11 +0000 (5 02:16 +0000)]
MFC r285973
      - Avoid lock contention in the if_transmit callback by using trylock and
       enqueueing the frames when it fails. This way there is some latency
       removed from the transmitting path.
      - If IFF_DRV_OACTIVE is set (and also if IFF_DRV_RUNNING is not) just
       enqueue the desired frames and return successful transmit. This way we
       avoid to return errors on transmit side and resulting in
       possible out-of-order frames. Please note that IFF_DRV_OACTIVE is set
       everytime we get the threshold ring hit, so this can be happening quite
       often.

Submitted by: Attilio.Rao@isilon.com

6 years agoMFC r285340:
dim [Tue, 28 Jul 2015 09:19:04 +0000 (28 09:19 +0000)]
MFC r285340:

Fix swapped copyin(9) arguments in cxgb's iwch_arm_cq() function.
Detected by clang 3.7.0 with the warning:

sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c:309:18: error: variable
'rptr' is uninitialized when used here [-Werror,-Wuninitialized]
chp->cq.rptr = rptr;
       ^~~~

7 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 20:45:41 +0000 (30 20:45 +0000)]
MFC r284739
tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by: Attilio.Rao@isilon.com

7 years agoMFC r284470
davidcs [Tue, 30 Jun 2015 20:40:38 +0000 (30 20:40 +0000)]
MFC r284470
In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK()
In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING

Submitted by:gary.zambrano@qlogic.com

7 years agoMFC r284335
davidcs [Tue, 30 Jun 2015 20:37:04 +0000 (30 20:37 +0000)]
MFC r284335

PHY LOCK acquires the hardware lock via bxe_acquire_phy_lock() and releases it via bxe_release_phy_lock(). It was simply acquiring a mutex earlier which can cause the PHY to use bogus values. Fixes intermittent link failures.

bxe_ioctl() completes all functions within its context as opposed to a taskqueue earlier.

bxe_handle_rx_mode_tq() no longer required. bxe_set_rx_mode() handles the functionality within its context

Submitted by:gary.zambrano@qlogic.com

7 years agoMFC r284346:
dim [Sat, 20 Jun 2015 13:30:09 +0000 (20 13:30 +0000)]
MFC r284346:

Fix the following clang 3.7.0 warnings in lib/libfetch/http.c:

    lib/libfetch/http.c:1628:26: error: address of array 'purl->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = purl->user ?
                                                   ~~~~~~^~~~ ~
    lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = purl->pwd?
                                                       ~~~~~~^~~~
    lib/libfetch/http.c:1657:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1659:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~
    lib/libfetch/http.c:1669:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1671:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~

Since url->user and url->pwd are arrays, they can never be NULL, so the
checks can be removed.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D2673

7 years agoMFC of 284397,tzdata7:
edwin [Mon, 15 Jun 2015 01:03:40 +0000 (15 01:03 +0000)]
MFC of 284397,tzdata7:

Update to tzdata2015e:

  Changes affecting future time stamps

    Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
    not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

    Assume Cayman Islands will observe DST starting next year, using US rules.
    Although it isn't guaranteed, it is the most likely.

7 years agoMFC 281887:
jhb [Tue, 2 Jun 2015 19:20:39 +0000 (2 19:20 +0000)]
MFC 281887:
Reassign copyright statements on several files from Advanced
Computing Technologies LLC to Hudson River Trading LLC.

7 years agoMFC r283274
davidcs [Sat, 30 May 2015 04:49:19 +0000 (30 04:49 +0000)]
MFC r283274
Add stat counters for Jumbo Frames using SGE ring.
Also remove the checks for IFCAP_LRO in bxe_alloc_fp_buffers() and bxe_pf_rx_q_prep() since both TPA and Jumbo can use SGE ring.

Submitted by:gary.zambrano@qlogic.com

7 years agoMFC r283269
davidcs [Fri, 29 May 2015 23:37:27 +0000 (29 23:37 +0000)]
MFC r283269

Submitted by: gary.zambrano@qlogic.com

7 years agoMFC r283254:
dim [Thu, 28 May 2015 06:45:13 +0000 (28 06:45 +0000)]
MFC r283254:

Ensure that the static structs emitted by the MODULE_DEPEND() and
MODULE_VERSION() macros don't end up as .comm symbols, when all the
version fields are zero.

Normally, such symbols will end up in .bss, but for kernel module
version objects, this can lead to "garbage" version numbers.

Fix this by instructing the compiler to always put these structs in the
.data segment instead.

Reported by: delphij, ae

7 years agoMFC of 283079,tzdata7:
edwin [Mon, 18 May 2015 22:12:50 +0000 (18 22:12 +0000)]
MFC of 283079,tzdata7:

Update to tzdata2015d:

Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.

7 years agoMFC of 283042,tzdata7:
edwin [Mon, 18 May 2015 02:10:45 +0000 (18 02:10 +0000)]
MFC of 283042,tzdata7:

Update to tzdata2015c:

    Release 2015c - 2015-04-11 08:55:55 -0700

    Changes affecting future time stamps

    Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore be on
    Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
    apply to 2026, 2037, 2043, etc.  (Thanks to Steffen Thorsen.)

7 years agoMFC r281006
davidcs [Tue, 7 Apr 2015 18:14:01 +0000 (7 18:14 +0000)]
MFC r281006
When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host network stack and is reused again on the receive ring.  Remaining received packets in the ring are not processed in that invocation of bxe_rxeof() and defered to the task thread

7 years agoMFC of 280413,tzdata7:
edwin [Tue, 24 Mar 2015 06:12:59 +0000 (24 06:12 +0000)]
MFC of 280413,tzdata7:

Release 2015b - 2015-03-19 23:28:11 -0700

  Changes affecting future time stamps

    Mongolia will start observing DST again this year, from the last
    Saturday in March at 02:00 to the last Saturday in September at 00:00.
    (Thanks to Ganbold Tsagaankhuu.)

    Palestine will start DST on March 28, not March 27.  Also,
    correct the fall 2014 transition from September 26 to October 24.
    Adjust future predictions accordingly.  (Thanks to Steffen Thorsen.)

  Changes affecting past time stamps

    The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a
    regression.  (Thanks to Stuart Bishop for reporting the problem.)

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: America/Antigua, America/Cayman,
    Pacific/Midway, and Pacific/Saipan.

  Changes affecting time zone abbreviations

    Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD".
    (Thanks to Hank W.)

7 years agoMFC of 279706,tzdata7:
edwin [Fri, 6 Mar 2015 22:10:13 +0000 (6 22:10 +0000)]
MFC of 279706,tzdata7:

Release 2015a - 2015-01-29

Changes affecting future time stamps

    The Mexican state of Quintana Roo, represented by America/Cancun,
    will shift from Central Time with DST to Eastern Time without DST
    on 2015-02-01 at 02:00.  (Thanks to Steffen Thorsen and Gwillim Law.)

    Chile will not change clocks in April or thereafter; its new standard time
    will be its old daylight saving time.  This affects America/Santiago,
    Pacific/Easter, and Antarctica/Palmer.  (Thanks to Juan Correa.)

    New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49.
    (Thanks to Tim Parenti.)

  Changes affecting past time stamps

    Iceland observed DST in 1919 and 1921, and its 1939 fallback
    transition was Oct. 29, not Nov. 29.  Remove incorrect data from
    Shanks about time in Iceland between 1837 and 1908.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait,
    and Asia/Muscat.

7 years agoMFC r276346:
dim [Wed, 31 Dec 2014 16:28:16 +0000 (31 16:28 +0000)]
MFC r276346:

In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security
warnings.

7 years agoMFC r275477:
dim [Thu, 11 Dec 2014 08:05:59 +0000 (11 08:05 +0000)]
MFC r275477:

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.

7 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (25 13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

7 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (25 12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

7 years agoMFC of 274559,tzdata7:
edwin [Sun, 16 Nov 2014 04:13:09 +0000 (16 04:13 +0000)]
MFC of 274559,tzdata7:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.

7 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (1 13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

7 years agoMFC of 273718, tzdata2014i
edwin [Mon, 27 Oct 2014 06:13:22 +0000 (27 06:13 +0000)]
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.

7 years agoMFC r271728
davidcs [Mon, 22 Sep 2014 18:36:37 +0000 (22 18:36 +0000)]
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message.

7 years agoMFC r271727
davidcs [Mon, 22 Sep 2014 18:31:40 +0000 (22 18:31 +0000)]
MFC r271727
Remove clean option form Makefile

7 years agoMFC r271726
davidcs [Mon, 22 Sep 2014 18:29:14 +0000 (22 18:29 +0000)]
MFC r271726
Remove clean option in Makefile

7 years agoMFC r257658 (modified to apply to stable/7):
dim [Thu, 18 Sep 2014 06:47:48 +0000 (18 06:47 +0000)]
MFC r257658 (modified to apply to stable/7):

For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools,
cross-tools), since it is not possible to know in advance which C++
library is available on the host system.

Instead, just use the bootstrap compiler's built-in default.  This
should eventually make it possible to build stable/9 on head, or on
stable/10, which ship without libstdc++ by default.

[Note: this should get the stable/7 tinderbox at least a bit further in
buildworld.]

7 years ago MFC r268854
davidcs [Fri, 12 Sep 2014 18:31:44 +0000 (12 18:31 +0000)]
MFC r268854
      Initiate error recovery stats fail to update after 3 retries.
      Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
      panic only if ECORE_STOP_ON_ERROR is defined.

7 years agoMFC r270728, tzdata2014f
pluknet [Fri, 29 Aug 2014 13:24:49 +0000 (29 13:24 +0000)]
MFC r270728, tzdata2014f

- Parts of Russia will change times on 2014-10-26.
- Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
  and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
- Australia will now use Axxx.
- New zone tab data format.

And lots of historical changes (See
http://mm.icann.org/pipermail/tz-announce/2014-August/000023.html
for the full details.)

8 years agoMFC of i267473,tzdata2013b
edwin [Sat, 14 Jun 2014 11:37:01 +0000 (14 11:37 +0000)]
MFC of i267473,tzdata2013b

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

8 years agoMFC r237398:
mav [Wed, 4 Jun 2014 12:24:53 +0000 (4 12:24 +0000)]
MFC r237398:
In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIM
done queue. Clearing it before caused extra SIM queueing in some cases.
It was invisible during normal operation, but during USB device unplug and
respective SIM destruction it could keep pointer on SIM without having
counted reference and as result crash the system by use afer free.

PR: usb/168743

8 years agoNote merge for sendmail 8.14.9.
gshapiro [Mon, 26 May 2014 16:01:45 +0000 (26 16:01 +0000)]
Note merge for sendmail 8.14.9.

8 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Mon, 26 May 2014 15:47:26 +0000 (26 15:47 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.9/cf tree.

8 years agoMFC: Update for sendmail 8.14.9 import
gshapiro [Mon, 26 May 2014 15:36:57 +0000 (26 15:36 +0000)]
MFC: Update for sendmail 8.14.9 import

8 years agoMFC: Merge sendmail 8.14.9 to HEAD
gshapiro [Mon, 26 May 2014 15:31:26 +0000 (26 15:31 +0000)]
MFC: Merge sendmail 8.14.9 to HEAD

8 years agoMFC of 265978, tzdata2014c
edwin [Tue, 13 May 2014 21:29:19 +0000 (13 21:29 +0000)]
MFC of 265978, tzdata2014c

- Egypt will go into DST on 15 May 2014.

8 years agoMFC r265703
davidcs [Mon, 12 May 2014 16:10:14 +0000 (12 16:10 +0000)]
MFC r265703
Modify Copyright information and other strings to reflect
Qlogic Corporation's purchase of Broadcom's NetXtreme business.
Added clean option to Makefile

Submitted by: David C Somayajulu (davidcs@freebsd.org) QLogic Corporation

8 years agoMFC r265411
davidcs [Sat, 10 May 2014 02:06:46 +0000 (10 02:06 +0000)]
MFC r265411
Modify Copyright information to reflect Qlogic Corporation's purchase
of Broadcom's NetXtreme business

Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation

8 years agoMFC of 263901, tzdata2014b
edwin [Sat, 29 Mar 2014 04:19:48 +0000 (29 04:19 +0000)]
MFC of 263901, tzdata2014b

 - Update antartica.
 - Comments about historical data for Hawaii.
 - Update details for Crimea on 30 March
 - Move location data Simferopol.

8 years agoTurn off warnings for building aicasm. Various versions of yacc exist,
dim [Sun, 23 Mar 2014 14:18:40 +0000 (23 14:18 +0000)]
Turn off warnings for building aicasm.  Various versions of yacc exist,
which can result in different warnings-as-errors in this tool, but these
are all completely harmless.

This is a direct commit to stable/7, stable/8, stable/9 and stable/10,
since this kernel build tool has already been removed in head.

8 years agoMFC 262999
edavis [Fri, 21 Mar 2014 23:56:38 +0000 (21 23:56 +0000)]
MFC 262999
Fixed MSI interrupt allocation and handling.
Fixed a DMA mapping leak that occurs when defragmenting packet chains.

Approved by: davidch (mentor)

8 years agoMFC of 263041, tzdata2014a:
edwin [Tue, 11 Mar 2014 20:36:22 +0000 (11 20:36 +0000)]
MFC of 263041, tzdata2014a:

- Fix historical info about asia/Zion, Ukraine
- Fiji starts DST at 02:00 instead of 03:00
- Turkey will move to DST at 31 March this year.

8 years agoMFC r261618:
delphij [Sat, 22 Feb 2014 00:41:03 +0000 (22 00:41 +0000)]
MFC r261618:

In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by: Serge van den Boom <serge vdboom.org>
Reviewed by: pjd

8 years agoMFC r256557 - kernel and userland osreldate helpers.
peter [Tue, 11 Feb 2014 17:07:45 +0000 (11 17:07 +0000)]
MFC r256557 - kernel and userland osreldate helpers.

8 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sun, 2 Feb 2014 00:30:29 +0000 (2 00:30 +0000)]
MFC: Note merge of sendmail 8.14.8.

8 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sun, 2 Feb 2014 00:29:48 +0000 (2 00:29 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

8 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sun, 2 Feb 2014 00:29:04 +0000 (2 00:29 +0000)]
MFC: Add missing svn:keywords property to new files

8 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sun, 2 Feb 2014 00:28:39 +0000 (2 00:28 +0000)]
MFC: Update for sendmail 8.14.8 import

8 years agoMFC: Remove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sun, 2 Feb 2014 00:28:12 +0000 (2 00:28 +0000)]
MFC: Remove local FreeBSD workaround now that upstream project has a better fix.

8 years agoMFC: Add new sendmail 8.14.8 file
gshapiro [Sun, 2 Feb 2014 00:27:38 +0000 (2 00:27 +0000)]
MFC: Add new sendmail 8.14.8 file

8 years agoMFC: Merge sendmail 8.14.8
gshapiro [Sun, 2 Feb 2014 00:26:48 +0000 (2 00:26 +0000)]
MFC: Merge sendmail 8.14.8

8 years agoMFC: Update link to vendor import instructions
gshapiro [Sat, 1 Feb 2014 22:06:39 +0000 (1 22:06 +0000)]
MFC: Update link to vendor import instructions

8 years agoRevert MFC of r258821 - it was already handled by MFC of r239672.
peter [Wed, 8 Jan 2014 03:17:11 +0000 (8 03:17 +0000)]
Revert MFC of r258821 - it was already handled by MFC of r239672.

Pointy hat to: peter

8 years agoMerged r260415 from head.
edavis [Tue, 7 Jan 2014 23:50:15 +0000 (7 23:50 +0000)]
Merged r260415 from head.

Approved by: davidch

8 years agoMFC r258821 - fix tcp simultaneous close
peter [Tue, 7 Jan 2014 23:02:50 +0000 (7 23:02 +0000)]
MFC r258821 - fix tcp simultaneous close

PR:             kern/99188

8 years agoMFC Broadcom 10Gb bxe driver
edavis [Sun, 5 Jan 2014 23:13:18 +0000 (5 23:13 +0000)]
MFC Broadcom 10Gb bxe driver
Merged r255736, r255861, r256299, r256341, r258187, r259928, r260113

Approved by:  davidch (mentor)

8 years agoMFC r260112:
dim [Sat, 4 Jan 2014 23:12:01 +0000 (4 23:12 +0000)]
MFC r260112:

In sys/dev/sound/pci/maestro.c, #if 0 two unused static functions.

8 years agoMFC r260095:
dim [Sat, 4 Jan 2014 22:00:07 +0000 (4 22:00 +0000)]
MFC r260095:

For sys/boot/i386 and sys/boot/pc98, separate flags to be passed
directly to the linker (LD_FLAGS) from flags passed indirectly, via the
compiler driver (LDFLAGS).

This is because several Makefiles under sys/boot/i386 and sys/boot/pc98
use ${LD} directly to link, and the normal LDFLAGS value should not be
used in these cases.

8 years agoMFC r260103:
dim [Sat, 4 Jan 2014 21:45:52 +0000 (4 21:45 +0000)]
MFC r260103:

In sys/amd64/amd64/pmap.c, remove static function pmap_is_current(),
which has been unused since r189415.

Reviewed by: alc

8 years agoMFC r260057:
dim [Sat, 4 Jan 2014 21:32:53 +0000 (4 21:32 +0000)]
MFC r260057:

In sys/dev/scc, remove unused static function scc_setmreg().  While
here, invoke scc_getmreg() in two more places where it can be used.

Reviewed by: marcel

8 years agoMFC r260048:
dim [Sat, 4 Jan 2014 19:04:53 +0000 (4 19:04 +0000)]
MFC r260048:

In sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].

8 years agoMFC r260042:
dim [Sat, 4 Jan 2014 18:58:18 +0000 (4 18:58 +0000)]
MFC r260042:

Remove superfluous old-style rcsid[] from if_my.c.  There is already an
__FBSDID() at the top of the file.

8 years agoMFC r260040:
dim [Sat, 4 Jan 2014 18:53:31 +0000 (4 18:53 +0000)]
MFC r260040:

In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
so it ends up in the object file, and no warnings are emitted about it
being actually unused.

8 years agoMFC r260038:
dim [Sat, 4 Jan 2014 18:48:29 +0000 (4 18:48 +0000)]
MFC r260038:

In sys/dev/en/midway.c, #if 0 an unused static function.

8 years agoMFC r260016:
dim [Sat, 4 Jan 2014 17:33:05 +0000 (4 17:33 +0000)]
MFC r260016:

Remove superfluous old-style rcsid[] from if_sk.c.  There is already an
__FBSDID() at the top of the file.

8 years agoMFC of 259626, tzdata2013i:
edwin [Thu, 19 Dec 2013 20:25:55 +0000 (19 20:25 +0000)]
MFC of 259626, tzdata2013i:

Removed support for solar-time-based time zones
Jordan stays at summer time this year.
Fix historical data for Cuba

8 years agoMFC of 257681
edwin [Tue, 5 Nov 2013 06:40:35 +0000 (5 06:40 +0000)]
MFC of 257681

tzdata2013f
- Jordan goes to winter time on the last Friday in October.
- Tocantins in Brazil will not go into summer time in October.
- Indonesian time zones renames.
- Lots of cleanups in with regarding to links and historical data.

tzdata2013h
- Libya didn't go back to DST.
- Fix Morocco 2038 issue.
- Brazil/Acre and ?Western Amazonas are chaning timezones.

8 years agoMFC r255931:
dim [Sat, 12 Oct 2013 16:11:57 +0000 (12 16:11 +0000)]
MFC r255931:

Fix a bug in ld, where indirect symbols are not handled properly during
linking of a shared library, leading to corrupt indexes in the dynamic
symbol table.  This should fix the multimedia/ffmpegthumbnailer port.

Reported by: swills

8 years agoMFC: Temporarily revert sendmail 8.14.7 change to getipnodebyname() flags
gshapiro [Thu, 15 Aug 2013 01:42:46 +0000 (15 01:42 +0000)]
MFC: Temporarily revert sendmail 8.14.7 change to getipnodebyname() flags
     to prevent problems between the resolver and Microsoft DNS servers with
     AAAA lookups.  The upstream open source project will work on a more
     permanent fix for the next release.  Issue noted by Pavel Timofeev.

9 years agoMFC of tzdata2013d, 253009
edwin [Sun, 7 Jul 2013 22:27:58 +0000 (7 22:27 +0000)]
MFC of tzdata2013d, 253009

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

9 years agoMFC r252387:
dim [Thu, 4 Jul 2013 22:09:14 +0000 (4 22:09 +0000)]
MFC r252387:

Make libsupc++'s __cxa_call_terminate() prototype consistent with the
definition.

Submitted by: dt71@gmx.com

9 years agoMFC r252262:
jimharris [Wed, 3 Jul 2013 23:24:53 +0000 (3 23:24 +0000)]
MFC r252262:

  For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA
  by treating it as UDMA.

  This fixes a problem introduced in r249933/r249939, where CAM sends
  ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16.  scsi_ata_trim()
  sets protocol as DMA (not UDMA) which is for multi-word DMA, even
  though no such mode is selected for the device.  isci(4) would fail
  these commands which is the correct behavior but not consistent with
  other HBAs, namely LSI's.

  smh@ did some further testing on an LSI controller, which rejected
  ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only
  a UDMA mode was selected on the device.  So this precludes adding
  any kind of mode detection in CAM to determine which mode to use on
  a per-device basis.

Note: The reasons behind this change do not apply to stable/7.  This MFC
is to keep the driver consistent across stable branches and current.

Sponsored by: Intel

9 years agoMF8: r252639
obrien [Wed, 3 Jul 2013 23:03:28 +0000 (3 23:03 +0000)]
MF8: r252639
     MF9: r252635, r252638:
     MFC: r252348, r252363: sysconf(3) returns a long, not an int.

9 years agoMFC r250393:
dim [Wed, 15 May 2013 20:59:00 +0000 (15 20:59 +0000)]
MFC r250393:

When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> was
not added to the list of intrinsics headers to install, so belatedly (5
years :) add it.

9 years agoTidy up some CVS workarounds.
peter [Sun, 12 May 2013 01:53:47 +0000 (12 01:53 +0000)]
Tidy up some CVS workarounds.

9 years agoMFC r250392:
dim [Sat, 11 May 2013 16:47:42 +0000 (11 16:47 +0000)]
MFC r250392:

For some reason, the gcc intrinsics header tmmintrin.h was imported with
two copies of itself pasted together.  Remove the extraneous copy.

9 years agoMFC r249815
sbruno [Wed, 8 May 2013 15:50:24 +0000 (8 15:50 +0000)]
MFC r249815

Return a lun count of 1 and a lun id of 0 when CAM attempts a REPORT_LUNS
command on a disk device.  This quieseces some noise on the console that
recently appeared.