svn commit: r212662 - svnadmin/conf

2010-09-15 Thread Philip Paeps
Author: philip
Date: Wed Sep 15 15:17:54 2010
New Revision: 212662
URL: http://svn.freebsd.org/changeset/base/212662

Log:
  Take piso's and benjsc's commit bits into safekeeping per their request (a 
while ago now).
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessWed Sep 15 14:24:21 2010(r212661)
+++ svnadmin/conf/accessWed Sep 15 15:17:54 2010(r212662)
@@ -33,7 +33,6 @@ attilio
 avatar
 avg
 bde
-benjsc
 benno
 bms
 brian  freebsd-committ...@awfulhak.org
@@ -177,7 +176,6 @@ phantom
 philip
 phk
 pho
-piso
 pjd
 ps
 qingli
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r212995 - svnadmin/conf

2010-09-22 Thread Philip Paeps
Author: philip
Date: Wed Sep 22 08:41:30 2010
New Revision: 212995
URL: http://svn.freebsd.org/changeset/base/212995

Log:
  Take dds' commit bit for safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessWed Sep 22 06:45:07 2010(r212994)
+++ svnadmin/conf/accessWed Sep 22 08:41:30 2010(r212995)
@@ -57,7 +57,6 @@ davidch
 davidxu
 dchagin
 dd
-dds
 deischen
 delphij
 des
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r227699 - head/sys/dev/sfxge

2011-11-19 Thread Philip Paeps
Author: philip
Date: Sat Nov 19 09:13:58 2011
New Revision: 227699
URL: http://svn.freebsd.org/changeset/base/227699

Log:
  sfxge: Fix if_baudrate reports
  
  This field is supposed to be set to the interface bit rate, but for some
  reason I thought it was denominated in kilobits.  Multiply the values up
  accordingly, taking care to saturate rather than overflow on 32-bit
  architectures.
  
  Submitted by: Ben Hutchings 
  MFC after:3 weeks

Modified:
  head/sys/dev/sfxge/sfxge_port.c

Modified: head/sys/dev/sfxge/sfxge_port.c
==
--- head/sys/dev/sfxge/sfxge_port.c Sat Nov 19 07:52:39 2011
(r227698)
+++ head/sys/dev/sfxge/sfxge_port.c Sat Nov 19 09:13:58 2011
(r227699)
@@ -31,6 +31,7 @@
 __FBSDID("$FreeBSD$");
 
 #include 
+#include 
 #include 
 #include 
 
@@ -219,14 +220,14 @@ sfxge_port_link_fc_handler(SYSCTL_HANDLE
 
 #endif /* SFXGE_HAVE_PAUSE_MEDIAOPTS */
 
-static const int sfxge_link_speed_kbit[EFX_LINK_NMODES] = {
-   [EFX_LINK_10HDX]= 1,
-   [EFX_LINK_10FDX]= 1,
-   [EFX_LINK_100HDX]   = 10,
-   [EFX_LINK_100FDX]   = 10,
-   [EFX_LINK_1000HDX]  = 100,
-   [EFX_LINK_1000FDX]  = 100,
-   [EFX_LINK_1FDX] = 1000,
+static const u_long sfxge_link_baudrate[EFX_LINK_NMODES] = {
+   [EFX_LINK_10HDX]= IF_Mbps(10),
+   [EFX_LINK_10FDX]= IF_Mbps(10),
+   [EFX_LINK_100HDX]   = IF_Mbps(100),
+   [EFX_LINK_100FDX]   = IF_Mbps(100),
+   [EFX_LINK_1000HDX]  = IF_Gbps(1),
+   [EFX_LINK_1000FDX]  = IF_Gbps(1),
+   [EFX_LINK_1FDX] = MIN(IF_Gbps(10ULL), ULONG_MAX),
 };
 
 void
@@ -245,7 +246,7 @@ sfxge_mac_link_update(struct sfxge_softc
/* Push link state update to the OS */
link_state = (port->link_mode != EFX_LINK_DOWN ?
  LINK_STATE_UP : LINK_STATE_DOWN);
-   sc->ifnet->if_baudrate = sfxge_link_speed_kbit[port->link_mode];
+   sc->ifnet->if_baudrate = sfxge_link_baudrate[port->link_mode];
if_link_state_change(sc->ifnet, link_state);
 }
 
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r227700 - head/sys/dev/sfxge

2011-11-19 Thread Philip Paeps
Author: philip
Date: Sat Nov 19 09:16:52 2011
New Revision: 227700
URL: http://svn.freebsd.org/changeset/base/227700

Log:
  sfxge: Remove interrupt self-test code
  
  It's not currently used; it didn't build on 32-bit and the previous build fix
  is incorrect.  If we really implement self-tests we can do this again
  properly.
  
  Submitted by: Ben Hutchings 
  MFC after:3 weeks

Modified:
  head/sys/dev/sfxge/sfxge.h
  head/sys/dev/sfxge/sfxge_intr.c

Modified: head/sys/dev/sfxge/sfxge.h
==
--- head/sys/dev/sfxge/sfxge.h  Sat Nov 19 09:13:58 2011(r227699)
+++ head/sys/dev/sfxge/sfxge.h  Sat Nov 19 09:16:52 2011(r227700)
@@ -144,7 +144,6 @@ struct sfxge_intr {
int n_alloc;
int type;
efsys_mem_t status;
-   uint64_tmask;
uint32_tzero_count;
 };
 

Modified: head/sys/dev/sfxge/sfxge_intr.c
==
--- head/sys/dev/sfxge/sfxge_intr.c Sat Nov 19 09:13:58 2011
(r227699)
+++ head/sys/dev/sfxge/sfxge_intr.c Sat Nov 19 09:16:52 2011
(r227700)
@@ -65,15 +65,9 @@ sfxge_intr_line_filter(void *arg)
KASSERT(intr->type == EFX_INTR_LINE,
("intr->type != EFX_INTR_LINE"));
 
-   if (intr->state != SFXGE_INTR_STARTED &&
-   intr->state != SFXGE_INTR_TESTING)
+   if (intr->state != SFXGE_INTR_STARTED)
return FILTER_STRAY;
 
-   if (intr->state == SFXGE_INTR_TESTING) {
-   intr->mask |= 1;/* only one interrupt */
-   return FILTER_HANDLED;
-   }
-
(void)efx_intr_status_line(enp, &fatal, &qmask);
 
if (fatal) {
@@ -137,21 +131,9 @@ sfxge_intr_message(void *arg)
KASSERT(intr->type == EFX_INTR_MESSAGE,
("intr->type != EFX_INTR_MESSAGE"));
 
-   if (intr->state != SFXGE_INTR_STARTED &&
-   intr->state != SFXGE_INTR_TESTING)
+   if (intr->state != SFXGE_INTR_STARTED)
return;
 
-   if (intr->state == SFXGE_INTR_TESTING) {
-   uint64_t mask;
-
-   do {
-   mask = intr->mask;
-   } while (atomic_cmpset_ptr(&intr->mask, mask,
-   mask | (1 << index)) == 0);
-
-   return;
-   }
-
(void)efx_intr_status_message(enp, index, &fatal);
 
if (fatal) {
@@ -447,7 +429,6 @@ sfxge_intr_stop(struct sfxge_softc *sc)
intr->state = SFXGE_INTR_INITIALIZED;
 
/* Disable interrupts at the NIC */
-   intr->mask = 0;
efx_intr_disable(sc->enp);
 
/* Disable interrupts at the bus */
@@ -480,13 +461,11 @@ sfxge_intr_start(struct sfxge_softc *sc)
if ((rc = sfxge_intr_bus_enable(sc)) != 0)
goto fail;
 
-   intr->state = SFXGE_INTR_TESTING;
+   intr->state = SFXGE_INTR_STARTED;
 
/* Enable interrupts at the NIC */
efx_intr_enable(sc->enp);
 
-   intr->state = SFXGE_INTR_STARTED;
-
return (0);
 
 fail:
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r228077 - head/share/man/man4

2011-11-28 Thread Philip Paeps
Author: philip
Date: Mon Nov 28 16:25:27 2011
New Revision: 228077
URL: http://svn.freebsd.org/changeset/base/228077

Log:
  Only install the sfxge(4) manpage on amd64, while the driver is amd64-only.
  
  Pointed out by:   bz

Modified:
  head/share/man/man4/Makefile

Modified: head/share/man/man4/Makefile
==
--- head/share/man/man4/MakefileMon Nov 28 16:07:26 2011
(r228076)
+++ head/share/man/man4/MakefileMon Nov 28 16:25:27 2011
(r228077)
@@ -378,7 +378,7 @@ MAN=aac.4 \
send.4 \
ses.4 \
sf.4 \
-   sfxge.4 \
+   ${_sfxge.4} \
sge.4 \
si.4 \
siba.4 \
@@ -718,6 +718,7 @@ MLINKS+=lindev.4 full.4
 
 .if ${MACHINE_CPUARCH} == "amd64"
 _qlxgb.4=  qlxgb.4
+_sfxge.4=  sfxge.4
 .endif
 
 .if ${MACHINE_CPUARCH} == "powerpc"
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r228078 - head/sys/dev/sfxge/common

2011-11-28 Thread Philip Paeps
Author: philip
Date: Mon Nov 28 17:19:05 2011
New Revision: 228078
URL: http://svn.freebsd.org/changeset/base/228078

Log:
  sfxge: Add $FreeBSD$ tags to common code files.
  
  Requested by: bz

Modified:
  head/sys/dev/sfxge/common/efsys.h
  head/sys/dev/sfxge/common/efx.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_bootcfg.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_ev.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_filter.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_impl.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_intr.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_mac.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_mcdi.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_mcdi.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_mon.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_nic.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_nvram.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_phy.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_port.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_regs.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_regs_ef10.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_regs_mcdi.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_regs_pci.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_rx.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_sram.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_tx.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_types.h   (contents, props changed)
  head/sys/dev/sfxge/common/efx_vpd.c   (contents, props changed)
  head/sys/dev/sfxge/common/efx_wol.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_flash.h   (contents, props changed)
  head/sys/dev/sfxge/common/siena_impl.h   (contents, props changed)
  head/sys/dev/sfxge/common/siena_mac.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_mon.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_nic.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_nvram.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_phy.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_sram.c   (contents, props changed)
  head/sys/dev/sfxge/common/siena_vpd.c   (contents, props changed)

Modified: head/sys/dev/sfxge/common/efsys.h
==
--- head/sys/dev/sfxge/common/efsys.h   Mon Nov 28 16:25:27 2011
(r228077)
+++ head/sys/dev/sfxge/common/efsys.h   Mon Nov 28 17:19:05 2011
(r228078)
@@ -25,14 +25,13 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
+ *
+ * $FreeBSD$
  */
 
 #ifndef_SYS_EFSYS_H
 #define_SYS_EFSYS_H
 
-#include 
-__FBSDID("$FreeBSD$");
-
 #ifdef __cplusplus
 extern "C" {
 #endif

Modified: head/sys/dev/sfxge/common/efx.h
==
--- head/sys/dev/sfxge/common/efx.h Mon Nov 28 16:25:27 2011
(r228077)
+++ head/sys/dev/sfxge/common/efx.h Mon Nov 28 17:19:05 2011
(r228078)
@@ -21,6 +21,8 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
+ *
+ * $FreeBSD$
  */
 
 #ifndef_SYS_EFX_H

Modified: head/sys/dev/sfxge/common/efx_bootcfg.c
==
--- head/sys/dev/sfxge/common/efx_bootcfg.c Mon Nov 28 16:25:27 2011
(r228077)
+++ head/sys/dev/sfxge/common/efx_bootcfg.c Mon Nov 28 17:19:05 2011
(r228078)
@@ -23,6 +23,9 @@
  * SUCH DAMAGE.
  */
 
+#include 
+__FBSDID("$FreeBSD$");
+
 #include "efsys.h"
 #include "efx.h"
 #include "efx_types.h"

Modified: head/sys/dev/sfxge/common/efx_ev.c
==
--- head/sys/dev/sfxge/common/efx_ev.c  Mon Nov 28 16:25:27 2011
(r228077)
+++ head/sys/dev/sfxge/common/efx_ev.c  Mon Nov 28 17:19:05 2011
(r228078)
@@ -23,6 +23,9 @@
  * SUCH DAMAGE.
  */
 
+#include 
+__FBSDID("$FreeBSD$");
+
 #include "efsys.h"
 #include "efx.h"
 #include "efx_types.h"

Modified: head/sys/dev/sfxge/common/efx_filter.c
==
--- head/sys/dev/sfxge/common/efx_filter.c  Mon Nov 28 16:25:27 2011
(r228077)
+++ head/sys/dev/sfxge/common/efx_filter.c  Mon Nov 28 17:19:05 2011
(r228078)
@@ -23,6 +23,9 @@
  * SUCH DAMAGE.
  */
 
+#include 
+__FBSDID("$FreeBSD$");
+
 #include "efsys.h"
 #include "efx.h"
 #include "efx_types.h"

Modified: head/sy

svn commit: r228085 - in head/sys: amd64/conf conf

2011-11-28 Thread Philip Paeps
Author: philip
Date: Mon Nov 28 18:51:40 2011
New Revision: 228085
URL: http://svn.freebsd.org/changeset/base/228085

Log:
  Limit building sfxge(4) in-kernel to amd64 for the time being.  We can put it
  back after I fix the breakages on some of our more exotic platforms.
  
  While here, add the driver to the amd64 NOTES, so it can be picked up in LINT
  builds.

Modified:
  head/sys/amd64/conf/NOTES
  head/sys/conf/files
  head/sys/conf/files.amd64

Modified: head/sys/amd64/conf/NOTES
==
--- head/sys/amd64/conf/NOTES   Mon Nov 28 18:32:35 2011(r228084)
+++ head/sys/amd64/conf/NOTES   Mon Nov 28 18:51:40 2011(r228085)
@@ -294,6 +294,7 @@ options DRM_DEBUG   # Include debug print
 #  Requires the mwl firmware module
 # nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source)
 # nve: nVidia nForce MCP on-board Ethernet Networking
+# sfxge: Solarflare SFC9000 family 10Gb Ethernet adapters
 # wpi: Intel 3945ABG Wireless LAN controller
 #  Requires the wpi firmware module
 
@@ -307,6 +308,7 @@ device  iwn
 device mwl
 device nfe
 device nve
+device sfxge
 device wpi
 
 # IEEE 802.11 adapter firmware modules

Modified: head/sys/conf/files
==
--- head/sys/conf/files Mon Nov 28 18:32:35 2011(r228084)
+++ head/sys/conf/files Mon Nov 28 18:51:40 2011(r228085)
@@ -1674,37 +1674,6 @@ dev/scd/scd.coptional scd isa
 dev/scd/scd_isa.c  optional scd isa
 dev/sdhci/sdhci.c  optional sdhci pci
 dev/sf/if_sf.c optional sf pci
-dev/sfxge/common/efx_bootcfg.c optional sfxge inet pci
-dev/sfxge/common/efx_ev.c  optional sfxge inet pci
-dev/sfxge/common/efx_filter.c  optional sfxge inet pci
-dev/sfxge/common/efx_intr.coptional sfxge inet pci
-dev/sfxge/common/efx_mac.c optional sfxge inet pci
-dev/sfxge/common/efx_mcdi.coptional sfxge inet pci
-dev/sfxge/common/efx_mon.c optional sfxge inet pci
-dev/sfxge/common/efx_nic.c optional sfxge inet pci
-dev/sfxge/common/efx_nvram.c   optional sfxge inet pci
-dev/sfxge/common/efx_phy.c optional sfxge inet pci
-dev/sfxge/common/efx_port.coptional sfxge inet pci
-dev/sfxge/common/efx_rx.c  optional sfxge inet pci
-dev/sfxge/common/efx_sram.coptional sfxge inet pci
-dev/sfxge/common/efx_tx.c  optional sfxge inet pci
-dev/sfxge/common/efx_vpd.c optional sfxge inet pci
-dev/sfxge/common/efx_wol.c optional sfxge inet pci
-dev/sfxge/common/siena_mac.c   optional sfxge inet pci
-dev/sfxge/common/siena_mon.c   optional sfxge inet pci
-dev/sfxge/common/siena_nic.c   optional sfxge inet pci
-dev/sfxge/common/siena_nvram.c optional sfxge inet pci
-dev/sfxge/common/siena_phy.c   optional sfxge inet pci
-dev/sfxge/common/siena_sram.c  optional sfxge inet pci
-dev/sfxge/common/siena_vpd.c   optional sfxge inet pci
-dev/sfxge/sfxge.c  optional sfxge inet pci
-dev/sfxge/sfxge_dma.c  optional sfxge inet pci
-dev/sfxge/sfxge_ev.c   optional sfxge inet pci
-dev/sfxge/sfxge_intr.c optional sfxge inet pci
-dev/sfxge/sfxge_mcdi.c optional sfxge inet pci
-dev/sfxge/sfxge_port.c optional sfxge inet pci
-dev/sfxge/sfxge_rx.c   optional sfxge inet pci
-dev/sfxge/sfxge_tx.c   optional sfxge inet pci
 dev/sge/if_sge.c   optional sge pci
 dev/si/si.coptional si
 dev/si/si2_z280.c  optional si

Modified: head/sys/conf/files.amd64
==
--- head/sys/conf/files.amd64   Mon Nov 28 18:32:35 2011(r228084)
+++ head/sys/conf/files.amd64   Mon Nov 28 18:51:40 2011(r228085)
@@ -214,6 +214,37 @@ dev/qlxgb/qla_ioctl.c  optionalqlxgb pc
 dev/qlxgb/qla_isr.coptionalqlxgb pci
 dev/qlxgb/qla_misc.c   optionalqlxgb pci
 dev/qlxgb/qla_os.c optionalqlxgb pci
+dev/sfxge/common/efx_bootcfg.c optional sfxge inet pci
+dev/sfxge/common/efx_ev.c  optional sfxge inet pci
+dev/sfxge/common/efx_filter.c  optional sfxge inet pci
+dev/sfxge/common/efx_intr.coptional sfxge inet pci
+dev/sfxge/common/efx_mac.c optional sfxge inet pci
+dev/sfxge/common/efx_mcdi.coptional sfxge inet pci
+dev/sfxge/common/efx_mon.c optional sfxge inet pci
+dev/sfxge/common/efx_nic.c optional sfxge inet pci
+dev/sfxge/common/efx_nvram.c   optional sfxge inet pci
+dev/sfxge/common/efx_phy.c optional sfxge inet pci
+dev/sfxge/common/efx_port.coptional sfxge inet pci
+dev/sfxge/common/efx_rx.c  optional sfxge inet pci
+dev/sfxge/common/efx_sram.coptional sfxge inet pci
+dev/sfxge/common/efx_tx.c  optional sfxge inet pci
+dev/sfxge/common/efx_vpd.c optional sfxge inet pci
+dev/sfxg

svn commit: r228100 - in stable/9: share/man/man4 sys/amd64/conf sys/conf sys/dev/sfxge sys/dev/sfxge/common sys/modules sys/modules/sfxge

2011-11-28 Thread Philip Paeps
Author: philip
Date: Mon Nov 28 20:28:23 2011
New Revision: 228100
URL: http://svn.freebsd.org/changeset/base/228100

Log:
  MFC r227569,227633,227640-227641,227662,227699-227700,228077-228078,228085
  
  Add the sfxge(4) driver providing support for 10Gb Ethernet adapters
  based on Solarflare SFC9000 family controllers.  The driver supports jumbo
  frames, transmit/receive checksum offload, TCP Segmentation Offload (TSO),
  Large Receive Offload (LRO), VLAN checksum offload, VLAN TSO, and Receive Side
  Scaling (RSS) using MSI-X interrupts.
  
  This work was sponsored by Solarflare Communications, Inc.
  
  My sincere thanks to Ben Hutchings for doing a lot of the hard work!
  
  Sponsored by: Solarflare Communications, Inc.
  Approved by:  re (bz)

Added:
  stable/9/share/man/man4/sfxge.4
 - copied, changed from r227569, head/share/man/man4/sfxge.4
  stable/9/sys/dev/sfxge/
 - copied from r227569, head/sys/dev/sfxge/
  stable/9/sys/modules/sfxge/
 - copied from r227569, head/sys/modules/sfxge/
Modified:
  stable/9/share/man/man4/Makefile
  stable/9/sys/amd64/conf/NOTES
  stable/9/sys/conf/files.amd64
  stable/9/sys/dev/sfxge/common/efsys.h
  stable/9/sys/dev/sfxge/common/efx.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_bootcfg.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_ev.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_filter.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_impl.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_intr.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_mac.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_mcdi.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_mcdi.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_mon.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_nic.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_nvram.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_phy.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_port.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_regs.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_regs_ef10.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_regs_mcdi.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_regs_pci.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_rx.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_sram.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_tx.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_types.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_vpd.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/efx_wol.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_flash.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_impl.h   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_mac.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_mon.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_nic.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_nvram.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_phy.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_sram.c   (contents, props changed)
  stable/9/sys/dev/sfxge/common/siena_vpd.c   (contents, props changed)
  stable/9/sys/dev/sfxge/sfxge.h
  stable/9/sys/dev/sfxge/sfxge_dma.c
  stable/9/sys/dev/sfxge/sfxge_intr.c
  stable/9/sys/dev/sfxge/sfxge_port.c
  stable/9/sys/dev/sfxge/sfxge_tx.c
  stable/9/sys/modules/Makefile
Directory Properties:
  stable/9/share/man/man4/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/conf/   (props changed)

Modified: stable/9/share/man/man4/Makefile
==
--- stable/9/share/man/man4/MakefileMon Nov 28 20:16:55 2011
(r228099)
+++ stable/9/share/man/man4/MakefileMon Nov 28 20:28:23 2011
(r228100)
@@ -378,6 +378,7 @@ MAN=aac.4 \
send.4 \
ses.4 \
sf.4 \
+   ${_sfxge.4} \
sge.4 \
si.4 \
siba.4 \
@@ -717,6 +718,7 @@ MLINKS+=lindev.4 full.4
 
 .if ${MACHINE_CPUARCH} == "amd64"
 _qlxgb.4=  qlxgb.4
+_sfxge.4=  sfxge.4
 .endif
 
 .if ${MACHINE_CPUARCH} == "powerpc"

Copied and modified: stable/9/share/man/man4/sfxge.4 (from r227569, 
head/share/man/man4/sfxge.4)
==
--- head/share/man/man4/sfxge.4 Wed Nov 16 17:11:13 2011(r227569, copy 
source)
+++ stable/9/share/man/man4/sfxge.4 Mon Nov 28 20:28:23 2011
(r228100)
@@ -48,25 +48,29 @@ sfxge_load="YES"
 The
 .Nm
 driver provides support for 10Gb Ethernet adapters based on
-Solarflare SFC9000 family co

svn commit: r228101 - in releng/9.0: share/man/man4 sys/amd64/conf sys/conf sys/dev/sfxge sys/dev/sfxge/common sys/modules sys/modules/sfxge

2011-11-28 Thread Philip Paeps
Author: philip
Date: Mon Nov 28 20:43:50 2011
New Revision: 228101
URL: http://svn.freebsd.org/changeset/base/228101

Log:
  Add the sfxge(4) device driver, providing support for 10Gb Ethernet adapters
  based on Solarflare SFC9000 family controllers.  The driver supports jumbo
  frames, transmit/receive checksum offload, TCP Segmentation Offload (TSO),
  Large Receive Offload (LRO), VLAN checksum offload, VLAN TSO, and Receive Side
  Scaling (RSS) using MSI-X interrupts.
  
  This work was sponsored by Solarflare Communications, Inc.
  
  My sincere thanks to Ben Hutchings for doing a lot of the hard work!
  
  Sponsored by: Solarflare Communications, Inc.
  Approved by:  re (bz)

Added:
  releng/9.0/share/man/man4/sfxge.4
 - copied, changed from r227569, head/share/man/man4/sfxge.4
  releng/9.0/sys/dev/sfxge/
 - copied from r227569, head/sys/dev/sfxge/
  releng/9.0/sys/modules/sfxge/
 - copied from r227569, head/sys/modules/sfxge/
Modified:
  releng/9.0/share/man/man4/Makefile
  releng/9.0/sys/amd64/conf/NOTES
  releng/9.0/sys/conf/files.amd64
  releng/9.0/sys/dev/sfxge/common/efsys.h
  releng/9.0/sys/dev/sfxge/common/efx.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_bootcfg.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_ev.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_filter.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_impl.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_intr.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_mac.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_mcdi.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_mcdi.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_mon.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_nic.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_nvram.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_phy.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_port.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_regs.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_regs_ef10.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_regs_mcdi.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_regs_pci.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_rx.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_sram.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_tx.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_types.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_vpd.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/efx_wol.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_flash.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_impl.h   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_mac.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_mon.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_nic.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_nvram.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_phy.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_sram.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/common/siena_vpd.c   (contents, props changed)
  releng/9.0/sys/dev/sfxge/sfxge.h
  releng/9.0/sys/dev/sfxge/sfxge_dma.c
  releng/9.0/sys/dev/sfxge/sfxge_intr.c
  releng/9.0/sys/dev/sfxge/sfxge_port.c
  releng/9.0/sys/dev/sfxge/sfxge_tx.c
  releng/9.0/sys/modules/Makefile
Directory Properties:
  releng/9.0/share/man/man4/   (props changed)
  releng/9.0/sys/   (props changed)
  releng/9.0/sys/conf/   (props changed)

Modified: releng/9.0/share/man/man4/Makefile
==
--- releng/9.0/share/man/man4/Makefile  Mon Nov 28 20:28:23 2011
(r228100)
+++ releng/9.0/share/man/man4/Makefile  Mon Nov 28 20:43:50 2011
(r228101)
@@ -377,6 +377,7 @@ MAN=aac.4 \
send.4 \
ses.4 \
sf.4 \
+   ${_sfxge.4} \
sge.4 \
si.4 \
siba.4 \
@@ -716,6 +717,7 @@ MLINKS+=lindev.4 full.4
 
 .if ${MACHINE_CPUARCH} == "amd64"
 _qlxgb.4=  qlxgb.4
+_sfxge.4=  sfxge.4
 .endif
 
 .if ${MACHINE_CPUARCH} == "powerpc"

Copied and modified: releng/9.0/share/man/man4/sfxge.4 (from r227569, 
head/share/man/man4/sfxge.4)
==
--- head/share/man/man4/sfxge.4 Wed Nov 16 17:11:13 2011(r227569, copy 
source)
+++ releng/9.0/share/man/man4/sfxge.4   Mon Nov 28 20:43:50 2011
(r228101)
@@ -48,25 +48,29 @@ sfxge_load="YES"
 The
 .Nm
 driver provides support for 10Gb Ethernet adapters based on

svn commit: r214793 - svnadmin/conf

2010-11-04 Thread Philip Paeps
Author: philip
Date: Thu Nov  4 18:00:25 2010
New Revision: 214793
URL: http://svn.freebsd.org/changeset/base/214793

Log:
  Take snb's and rink's commit bits for safekeeping per their request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessThu Nov  4 17:25:40 2010(r214792)
+++ svnadmin/conf/accessThu Nov  4 18:00:25 2010(r214793)
@@ -188,7 +188,6 @@ randi
 rdivacky
 remko
 rik
-rink
 rmacklem
 rnoland
 roberto
@@ -211,7 +210,6 @@ sepotvin
 silby
 simokawa
 simon
-snb
 sobomax
 soscom...@deepcore.dk
 sson
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r216146 - svnadmin/conf

2010-12-03 Thread Philip Paeps
Author: philip
Date: Fri Dec  3 09:26:56 2010
New Revision: 216146
URL: http://svn.freebsd.org/changeset/base/216146

Log:
  Take rpaulo's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessFri Dec  3 07:39:29 2010(r216145)
+++ svnadmin/conf/accessFri Dec  3 09:26:56 2010(r216146)
@@ -192,7 +192,6 @@ rmacklem
 rnoland
 roberto
 rodrigc
-rpaulo
 rrs
 rse
 rstone
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r197166 - svnadmin/conf

2009-09-13 Thread Philip Paeps
Author: philip
Date: Sun Sep 13 15:42:19 2009
New Revision: 197166
URL: http://svn.freebsd.org/changeset/base/197166

Log:
  Take bmah's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessSun Sep 13 15:08:19 2009(r197165)
+++ svnadmin/conf/accessSun Sep 13 15:42:19 2009(r197166)
@@ -31,7 +31,6 @@ avg
 bde
 benjsc
 benno
-bmah
 bms
 brian  freebsd-committ...@awfulhak.org
 brooks
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r197655 - svnadmin/conf

2009-10-01 Thread Philip Paeps
Author: philip
Date: Thu Oct  1 08:16:46 2009
New Revision: 197655
URL: http://svn.freebsd.org/changeset/base/197655

Log:
  Take thomas's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessThu Oct  1 02:43:51 2009(r197654)
+++ svnadmin/conf/accessThu Oct  1 08:16:46 2009(r197655)
@@ -209,7 +209,6 @@ suz
 syrinx
 takawata
 tanimura
-thomas
 thompsa
 ticso
 trasz
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r198352 - head/sbin/dhclient

2009-10-21 Thread Philip Paeps
Author: philip
Date: Wed Oct 21 23:50:35 2009
New Revision: 198352
URL: http://svn.freebsd.org/changeset/base/198352

Log:
  Make dhclient use bootpc (68) as the source port for unicast DHCPREQUEST
  packets instead of allowing the protocol stack to pick a random source port.
  
  This fixes the behaviour where dhclient would never transition from RENEWING
  to BOUND without going through REBINDING in networks which are paranoid about
  DHCP spoofing, such as most mainstream cable-broadband ISP networks.
  
  Reviewed by:  brooks
  Obtained from:OpenBSD (partly - I'm not convinced their solution can 
work)
  MFC after:1 week (pending re approval)

Modified:
  head/sbin/dhclient/bpf.c
  head/sbin/dhclient/dhcpd.h
  head/sbin/dhclient/packet.c

Modified: head/sbin/dhclient/bpf.c
==
--- head/sbin/dhclient/bpf.cWed Oct 21 20:59:12 2009(r198351)
+++ head/sbin/dhclient/bpf.cWed Oct 21 23:50:35 2009(r198352)
@@ -90,11 +90,23 @@ if_register_bpf(struct interface_info *i
 void
 if_register_send(struct interface_info *info)
 {
+   int sock, on = 1;
+
/*
 * If we're using the bpf API for sending and receiving, we
 * don't need to register this interface twice.
 */
info->wfdesc = info->rfdesc;
+
+   /*
+* Use raw socket for unicast send.
+*/
+   if ((sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) == -1)
+   error("socket(SOCK_RAW): %m");
+   if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on,
+   sizeof(on)) == -1)
+   error("setsockopt(IP_HDRINCL): %m");
+   info->ufdesc = sock;
 }
 
 /*
@@ -244,35 +256,32 @@ send_packet(struct interface_info *inter
 {
unsigned char buf[256];
struct iovec iov[2];
+   struct msghdr msg;
int result, bufp = 0;
-   int sock;
-
-   if (to->sin_addr.s_addr != INADDR_BROADCAST) {
-   note("SENDING DIRECT");
-   /* We know who the server is, send the packet via
-  normal socket interface */
-
-   if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0) {
-   result = sendto (sock, (char *)raw, len, 0,
-(struct sockaddr *)to, sizeof *to);
-   close(sock);
-   if (result > 0)
-   return result;
-   }
-   }
 
/* Assemble the headers... */
-   assemble_hw_header(interface, buf, &bufp, hto);
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   assemble_hw_header(interface, buf, &bufp, hto);
assemble_udp_ip_header(buf, &bufp, from.s_addr,
to->sin_addr.s_addr, to->sin_port, (unsigned char *)raw, len);
 
-   /* Fire it off */
iov[0].iov_base = (char *)buf;
iov[0].iov_len = bufp;
iov[1].iov_base = (char *)raw;
iov[1].iov_len = len;
 
-   result = writev(interface->wfdesc, iov, 2);
+   /* Fire it off */
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   result = writev(interface->wfdesc, iov, 2);
+   else {
+   memset(&msg, 0, sizeof(msg));
+   msg.msg_name = (struct sockaddr *)to;
+   msg.msg_namelen = sizeof(*to);
+   msg.msg_iov = iov;
+   msg.msg_iovlen = 2;
+   result = sendmsg(interface->ufdesc, &msg, 0);
+   }
+
if (result < 0)
warning("send_packet: %m");
return (result);

Modified: head/sbin/dhclient/dhcpd.h
==
--- head/sbin/dhclient/dhcpd.h  Wed Oct 21 20:59:12 2009(r198351)
+++ head/sbin/dhclient/dhcpd.h  Wed Oct 21 23:50:35 2009(r198352)
@@ -37,6 +37,8 @@
  * Enterprises.  To learn more about the Internet Software Consortium,
  * see ``http://www.vix.com/isc''.  To learn more about Vixie
  * Enterprises, see ``http://www.vix.com''.
+ *
+ * $FreeBSD$
  */
 
 #include 
@@ -194,6 +196,7 @@ struct interface_info {
char name[IFNAMSIZ];
int  rfdesc;
int  wfdesc;
+   int  ufdesc;
unsigned char   *rbuf;
size_t   rbuf_max;
size_t   rbuf_offset;

Modified: head/sbin/dhclient/packet.c
==
--- head/sbin/dhclient/packet.c Wed Oct 21 20:59:12 2009(r198351)
+++ head/sbin/dhclient/packet.c Wed Oct 21 23:50:35 2009(r198352)
@@ -135,6 +135,17 @@ assemble_udp_ip_header(unsigned char *bu
ip.ip_dst.s_addr = to;
 
ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0));
+
+   /*
+* While the BPF -- used for broadcasts -- expects a "true" IP header
+

svn commit: r198405 - stable/8/sbin/dhclient

2009-10-23 Thread Philip Paeps
Author: philip
Date: Fri Oct 23 14:43:17 2009
New Revision: 198405
URL: http://svn.freebsd.org/changeset/base/198405

Log:
  MFC r198352
  
Make dhclient use bootpc (68) as the source port for unicast
DHCPREQUEST packets instead of allowing the protocol stack to pick
a random source port.
  
This fixes the behaviour where dhclient would never transition
from RENEWING to BOUND without going through REBINDING in networks
which are paranoid about DHCP spoofing, such as most mainstream
cable-broadband ISP networks.
  
  Obtained from:OpenBSD
  Reviewed by:  brooks
  Approved by:  re (kib)

Modified:
  stable/8/sbin/dhclient/   (props changed)
  stable/8/sbin/dhclient/bpf.c
  stable/8/sbin/dhclient/dhcpd.h
  stable/8/sbin/dhclient/packet.c

Modified: stable/8/sbin/dhclient/bpf.c
==
--- stable/8/sbin/dhclient/bpf.cFri Oct 23 14:40:38 2009
(r198404)
+++ stable/8/sbin/dhclient/bpf.cFri Oct 23 14:43:17 2009
(r198405)
@@ -90,11 +90,23 @@ if_register_bpf(struct interface_info *i
 void
 if_register_send(struct interface_info *info)
 {
+   int sock, on = 1;
+
/*
 * If we're using the bpf API for sending and receiving, we
 * don't need to register this interface twice.
 */
info->wfdesc = info->rfdesc;
+
+   /*
+* Use raw socket for unicast send.
+*/
+   if ((sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) == -1)
+   error("socket(SOCK_RAW): %m");
+   if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on,
+   sizeof(on)) == -1)
+   error("setsockopt(IP_HDRINCL): %m");
+   info->ufdesc = sock;
 }
 
 /*
@@ -244,35 +256,32 @@ send_packet(struct interface_info *inter
 {
unsigned char buf[256];
struct iovec iov[2];
+   struct msghdr msg;
int result, bufp = 0;
-   int sock;
-
-   if (to->sin_addr.s_addr != INADDR_BROADCAST) {
-   note("SENDING DIRECT");
-   /* We know who the server is, send the packet via
-  normal socket interface */
-
-   if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0) {
-   result = sendto (sock, (char *)raw, len, 0,
-(struct sockaddr *)to, sizeof *to);
-   close(sock);
-   if (result > 0)
-   return result;
-   }
-   }
 
/* Assemble the headers... */
-   assemble_hw_header(interface, buf, &bufp, hto);
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   assemble_hw_header(interface, buf, &bufp, hto);
assemble_udp_ip_header(buf, &bufp, from.s_addr,
to->sin_addr.s_addr, to->sin_port, (unsigned char *)raw, len);
 
-   /* Fire it off */
iov[0].iov_base = (char *)buf;
iov[0].iov_len = bufp;
iov[1].iov_base = (char *)raw;
iov[1].iov_len = len;
 
-   result = writev(interface->wfdesc, iov, 2);
+   /* Fire it off */
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   result = writev(interface->wfdesc, iov, 2);
+   else {
+   memset(&msg, 0, sizeof(msg));
+   msg.msg_name = (struct sockaddr *)to;
+   msg.msg_namelen = sizeof(*to);
+   msg.msg_iov = iov;
+   msg.msg_iovlen = 2;
+   result = sendmsg(interface->ufdesc, &msg, 0);
+   }
+
if (result < 0)
warning("send_packet: %m");
return (result);

Modified: stable/8/sbin/dhclient/dhcpd.h
==
--- stable/8/sbin/dhclient/dhcpd.h  Fri Oct 23 14:40:38 2009
(r198404)
+++ stable/8/sbin/dhclient/dhcpd.h  Fri Oct 23 14:43:17 2009
(r198405)
@@ -37,6 +37,8 @@
  * Enterprises.  To learn more about the Internet Software Consortium,
  * see ``http://www.vix.com/isc''.  To learn more about Vixie
  * Enterprises, see ``http://www.vix.com''.
+ *
+ * $FreeBSD$
  */
 
 #include 
@@ -194,6 +196,7 @@ struct interface_info {
char name[IFNAMSIZ];
int  rfdesc;
int  wfdesc;
+   int  ufdesc;
unsigned char   *rbuf;
size_t   rbuf_max;
size_t   rbuf_offset;

Modified: stable/8/sbin/dhclient/packet.c
==
--- stable/8/sbin/dhclient/packet.c Fri Oct 23 14:40:38 2009
(r198404)
+++ stable/8/sbin/dhclient/packet.c Fri Oct 23 14:43:17 2009
(r198405)
@@ -135,6 +135,17 @@ assemble_udp_ip_header(unsigned char *bu
ip.ip_dst.s_addr = to;
 
ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0));
+
+  

svn commit: r198410 - stable/7/sbin/dhclient

2009-10-23 Thread Philip Paeps
Author: philip
Date: Fri Oct 23 15:12:05 2009
New Revision: 198410
URL: http://svn.freebsd.org/changeset/base/198410

Log:
  MFC r198352
  
Make dhclient use bootpc (68) as the source port for unicast
DHCPREQUEST packets instead of allowing the protocol stack to pick
a random source port.
  
This fixes the behaviour where dhclient would never transition
from RENEWING to BOUND without going through REBINDING in networks
which are paranoid about DHCP spoofing, such as most mainstream
cable-broadband ISP networks.
  
  Obtained from:OpenBSD
  Reviewed by:  brooks

Modified:
  stable/7/sbin/dhclient/   (props changed)
  stable/7/sbin/dhclient/bpf.c
  stable/7/sbin/dhclient/dhcpd.h
  stable/7/sbin/dhclient/packet.c

Modified: stable/7/sbin/dhclient/bpf.c
==
--- stable/7/sbin/dhclient/bpf.cFri Oct 23 15:10:41 2009
(r198409)
+++ stable/7/sbin/dhclient/bpf.cFri Oct 23 15:12:05 2009
(r198410)
@@ -90,11 +90,23 @@ if_register_bpf(struct interface_info *i
 void
 if_register_send(struct interface_info *info)
 {
+   int sock, on = 1;
+
/*
 * If we're using the bpf API for sending and receiving, we
 * don't need to register this interface twice.
 */
info->wfdesc = info->rfdesc;
+
+   /*
+* Use raw socket for unicast send.
+*/
+   if ((sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) == -1)
+   error("socket(SOCK_RAW): %m");
+   if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on,
+   sizeof(on)) == -1)
+   error("setsockopt(IP_HDRINCL): %m");
+   info->ufdesc = sock;
 }
 
 /*
@@ -244,35 +256,32 @@ send_packet(struct interface_info *inter
 {
unsigned char buf[256];
struct iovec iov[2];
+   struct msghdr msg;
int result, bufp = 0;
-   int sock;
-
-   if (to->sin_addr.s_addr != INADDR_BROADCAST) {
-   note("SENDING DIRECT");
-   /* We know who the server is, send the packet via
-  normal socket interface */
-
-   if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0) {
-   result = sendto (sock, (char *)raw, len, 0,
-(struct sockaddr *)to, sizeof *to);
-   close(sock);
-   if (result > 0)
-   return result;
-   }
-   }
 
/* Assemble the headers... */
-   assemble_hw_header(interface, buf, &bufp, hto);
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   assemble_hw_header(interface, buf, &bufp, hto);
assemble_udp_ip_header(buf, &bufp, from.s_addr,
to->sin_addr.s_addr, to->sin_port, (unsigned char *)raw, len);
 
-   /* Fire it off */
iov[0].iov_base = (char *)buf;
iov[0].iov_len = bufp;
iov[1].iov_base = (char *)raw;
iov[1].iov_len = len;
 
-   result = writev(interface->wfdesc, iov, 2);
+   /* Fire it off */
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   result = writev(interface->wfdesc, iov, 2);
+   else {
+   memset(&msg, 0, sizeof(msg));
+   msg.msg_name = (struct sockaddr *)to;
+   msg.msg_namelen = sizeof(*to);
+   msg.msg_iov = iov;
+   msg.msg_iovlen = 2;
+   result = sendmsg(interface->ufdesc, &msg, 0);
+   }
+
if (result < 0)
warning("send_packet: %m");
return (result);

Modified: stable/7/sbin/dhclient/dhcpd.h
==
--- stable/7/sbin/dhclient/dhcpd.h  Fri Oct 23 15:10:41 2009
(r198409)
+++ stable/7/sbin/dhclient/dhcpd.h  Fri Oct 23 15:12:05 2009
(r198410)
@@ -37,6 +37,8 @@
  * Enterprises.  To learn more about the Internet Software Consortium,
  * see ``http://www.vix.com/isc''.  To learn more about Vixie
  * Enterprises, see ``http://www.vix.com''.
+ *
+ * $FreeBSD$
  */
 
 #include 
@@ -194,6 +196,7 @@ struct interface_info {
char name[IFNAMSIZ];
int  rfdesc;
int  wfdesc;
+   int  ufdesc;
unsigned char   *rbuf;
size_t   rbuf_max;
size_t   rbuf_offset;

Modified: stable/7/sbin/dhclient/packet.c
==
--- stable/7/sbin/dhclient/packet.c Fri Oct 23 15:10:41 2009
(r198409)
+++ stable/7/sbin/dhclient/packet.c Fri Oct 23 15:12:05 2009
(r198410)
@@ -135,6 +135,17 @@ assemble_udp_ip_header(unsigned char *bu
ip.ip_dst.s_addr = to;
 
ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0));
+
+   /*
+* While the 

svn commit: r198412 - stable/6/sbin/dhclient

2009-10-23 Thread Philip Paeps
Author: philip
Date: Fri Oct 23 15:42:23 2009
New Revision: 198412
URL: http://svn.freebsd.org/changeset/base/198412

Log:
  MFC r198352
  
Make dhclient use bootpc (68) as the source port for unicast
DHCPREQUEST packets instead of allowing the protocol stack to pick
a random source port.
  
This fixes the behaviour where dhclient would never transition
from RENEWING to BOUND without going through REBINDING in networks
which are paranoid about DHCP spoofing, such as most mainstream
cable-broadband ISP networks.
  
  Obtained from:OpenBSD
  Reviewed by:  brooks
  Approved by:  re (kib)

Modified:
  stable/6/sbin/dhclient/   (props changed)
  stable/6/sbin/dhclient/bpf.c
  stable/6/sbin/dhclient/dhcpd.h
  stable/6/sbin/dhclient/packet.c

Modified: stable/6/sbin/dhclient/bpf.c
==
--- stable/6/sbin/dhclient/bpf.cFri Oct 23 15:14:54 2009
(r198411)
+++ stable/6/sbin/dhclient/bpf.cFri Oct 23 15:42:23 2009
(r198412)
@@ -90,11 +90,23 @@ if_register_bpf(struct interface_info *i
 void
 if_register_send(struct interface_info *info)
 {
+   int sock, on = 1;
+
/*
 * If we're using the bpf API for sending and receiving, we
 * don't need to register this interface twice.
 */
info->wfdesc = info->rfdesc;
+
+   /*
+* Use raw socket for unicast send.
+*/
+   if ((sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) == -1)
+   error("socket(SOCK_RAW): %m");
+   if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on,
+   sizeof(on)) == -1)
+   error("setsockopt(IP_HDRINCL): %m");
+   info->ufdesc = sock;
 }
 
 /*
@@ -244,35 +256,32 @@ send_packet(struct interface_info *inter
 {
unsigned char buf[256];
struct iovec iov[2];
+   struct msghdr msg;
int result, bufp = 0;
-   int sock;
-
-   if (to->sin_addr.s_addr != INADDR_BROADCAST) {
-   note("SENDING DIRECT");
-   /* We know who the server is, send the packet via
-  normal socket interface */
-
-   if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0) {
-   result = sendto (sock, (char *)raw, len, 0,
-(struct sockaddr *)to, sizeof *to);
-   close(sock);
-   if (result > 0)
-   return result;
-   }
-   }
 
/* Assemble the headers... */
-   assemble_hw_header(interface, buf, &bufp, hto);
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   assemble_hw_header(interface, buf, &bufp, hto);
assemble_udp_ip_header(buf, &bufp, from.s_addr,
to->sin_addr.s_addr, to->sin_port, (unsigned char *)raw, len);
 
-   /* Fire it off */
iov[0].iov_base = (char *)buf;
iov[0].iov_len = bufp;
iov[1].iov_base = (char *)raw;
iov[1].iov_len = len;
 
-   result = writev(interface->wfdesc, iov, 2);
+   /* Fire it off */
+   if (to->sin_addr.s_addr == INADDR_BROADCAST)
+   result = writev(interface->wfdesc, iov, 2);
+   else {
+   memset(&msg, 0, sizeof(msg));
+   msg.msg_name = (struct sockaddr *)to;
+   msg.msg_namelen = sizeof(*to);
+   msg.msg_iov = iov;
+   msg.msg_iovlen = 2;
+   result = sendmsg(interface->ufdesc, &msg, 0);
+   }
+
if (result < 0)
warning("send_packet: %m");
return (result);

Modified: stable/6/sbin/dhclient/dhcpd.h
==
--- stable/6/sbin/dhclient/dhcpd.h  Fri Oct 23 15:14:54 2009
(r198411)
+++ stable/6/sbin/dhclient/dhcpd.h  Fri Oct 23 15:42:23 2009
(r198412)
@@ -37,6 +37,8 @@
  * Enterprises.  To learn more about the Internet Software Consortium,
  * see ``http://www.vix.com/isc''.  To learn more about Vixie
  * Enterprises, see ``http://www.vix.com''.
+ *
+ * $FreeBSD$
  */
 
 #include 
@@ -194,6 +196,7 @@ struct interface_info {
char name[IFNAMSIZ];
int  rfdesc;
int  wfdesc;
+   int  ufdesc;
unsigned char   *rbuf;
size_t   rbuf_max;
size_t   rbuf_offset;

Modified: stable/6/sbin/dhclient/packet.c
==
--- stable/6/sbin/dhclient/packet.c Fri Oct 23 15:14:54 2009
(r198411)
+++ stable/6/sbin/dhclient/packet.c Fri Oct 23 15:42:23 2009
(r198412)
@@ -135,6 +135,17 @@ assemble_udp_ip_header(unsigned char *bu
ip.ip_dst.s_addr = to;
 
ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0));
+
+  

svn commit: r227569 - in head: share/man/man4 sys/conf sys/dev/sfxge sys/dev/sfxge/common sys/modules sys/modules/sfxge

2011-11-16 Thread Philip Paeps
copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd November 16, 2011
+.Dt SFXGE 4
+.Os
+.Sh NAME
+.Nm sfxge
+.Nd "Solarflare 10Gb Ethernet adapter driver"
+.Sh SYNOPSIS
+To compile this driver into the kernel,
+place the following lines in your
+kernel configuration file:
+.Bd -ragged -offset indent
+.Cd "device sfxge"
+.Ed
+.Pp
+To load the driver as a
+module at boot time, place the following line in
+.Xr loader.conf 5 :
+.Bd -literal -offset indent
+sfxge_load="YES"
+.Ed
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for 10Gb Ethernet adapters based on
+Solarflare SFC9000 family controllers.  The driver supports jumbo
+frames, transmit/receive checksum offload, TCP Segmentation Offload
+(TSO), Large Receive Offload (LRO), VLAN checksum offload, VLAN TSO,
+and Receive Side Scaling (RSS) using MSI-X interrupts.  
+.Pp
+The driver allocates 1 receive queue, transmit queue, event queue and
+IRQ per CPU up to a maximum of 64.  IRQ affinities should be spread
+out using
+.Xr cpuset 8 .
+Interrupt moderation may be controlled through the sysctl
+dev.sfxge.\fIindex\fR.int_mod (units are microseconds).
+.Pp
+For more information on configuring this device, see
+.Xr ifconfig 8 .
+.Pp
+A large number of MAC, PHY and data path statistics are available
+under the sysctl dev.sfxge.\fIindex\fR.stats.  The adapter's VPD
+fields including its serial number are available under the sysctl
+dev.sfxge.\fIindex\fR.vpd.
+.Sh HARDWARE
+The
+.Nm
+driver supports all 10Gb Ethernet adapters based on Solarflare SFC9000
+family controllers.
+.Sh SUPPORT
+For general information and support,
+go to the Solarflare support website at:
+.Pa https://support.solarflare.com .
+.Sh SEE ALSO
+.Xr arp 4 ,
+.Xr netintro 4 ,
+.Xr ng_ether 4 ,
+.Xr vlan 4 ,
+.Xr cpuset 8 ,
+.Xr ifconfig 8
+.Sh AUTHORS
+The
+.Nm
+driver was written by
+.An Philip Paeps
+and
+.An Solarflare Communications, Inc.

Modified: head/sys/conf/files
==
--- head/sys/conf/files Wed Nov 16 16:46:09 2011(r227568)
+++ head/sys/conf/files Wed Nov 16 17:11:13 2011(r227569)
@@ -1671,6 +1671,37 @@ dev/scd/scd.coptional scd isa
 dev/scd/scd_isa.c  optional scd isa
 dev/sdhci/sdhci.c  optional sdhci pci
 dev/sf/if_sf.c optional sf pci
+dev/sfxge/common/efx_bootcfg.c optional sfxge inet pci
+dev/sfxge/common/efx_ev.c  optional sfxge inet pci
+dev/sfxge/common/efx_filter.c  optional sfxge inet pci
+dev/sfxge/common/efx_intr.coptional sfxge inet pci
+dev/sfxge/common/efx_mac.c optional sfxge inet pci
+dev/sfxge/common/efx_mcdi.coptional sfxge inet pci
+dev/sfxge/common/efx_mon.c optional sfxge inet pci
+dev/sfxge/common/efx_nic.c optional sfxge inet pci
+dev/sfxge/common/efx_nvram.c   optional sfxge inet pci
+dev/sfxge/common/efx_phy.c optional sfxge inet pci
+dev/sfxge/common/efx_port.coptional sfxge inet pci
+dev/sfxge/common/efx_rx.c  optional sfxge inet pci
+dev/sfxge/common/efx_sram.coptional sfxge inet pci
+dev/sfxge/common/efx_tx.c  optional sfxge inet pci
+dev/sfxge/common/efx_vpd.c optional sfxge inet pci
+dev/sfxge/common/efx_wol.c optional sfxge inet pci
+dev/sfxge/common/siena_mac.c   optional sfxge inet pci
+dev/sfxge/common/siena_mon.c   optional sfxge inet pci
+dev/sfxge/common/siena_nic.c   optional sfxge inet pci
+dev/sfxge/common/siena_nvram.c optional sfxge inet pci
+dev/sfxge/common/siena_phy.c   optional sfxge inet pci
+dev/sfxge/common/siena_sram.c  optional sfxge inet pci
+dev/sfxge/common/siena_vpd.c   optional sfxge inet pci
+dev/sfxge/sfxge.c  optional sfxge inet pci
+dev/sfxge/sfxge_dma.c  optional sfxge inet pci
+dev/sfxge/sfxge

svn commit: r227662 - head/sys/modules

2011-11-18 Thread Philip Paeps
Author: philip
Date: Fri Nov 18 11:10:14 2011
New Revision: 227662
URL: http://svn.freebsd.org/changeset/base/227662

Log:
  Limit building sfxge(4) to amd64 only to unbreak the tinderboxen.  The driver
  should also work on (at least) i386 but hasn't been built/tested for a while.
  
  MFC after:3 weeks

Modified:
  head/sys/modules/Makefile

Modified: head/sys/modules/Makefile
==
--- head/sys/modules/Makefile   Fri Nov 18 09:56:40 2011(r227661)
+++ head/sys/modules/Makefile   Fri Nov 18 11:10:14 2011(r227662)
@@ -275,7 +275,7 @@ SUBDIR= ${_3dfx} \
sem \
send \
sf \
-   sfxge \
+   ${_sfxge} \
sge \
siba_bwn \
siftr \
@@ -630,6 +630,7 @@ _rdma=  rdma
 _s3=   s3
 _safe= safe
 _scsi_low= scsi_low
+_sfxge=sfxge
 _smbfs=smbfs
 _sound=sound
 _speaker=  speaker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r224099 - vendor/pciids/dist

2011-07-16 Thread Philip Paeps
Author: philip
Date: Sat Jul 16 14:49:57 2011
New Revision: 224099
URL: http://svn.freebsd.org/changeset/base/224099

Log:
  Import today's snapshot of the PCI ID Repository.

Modified:
  vendor/pciids/dist/pci.ids

Modified: vendor/pciids/dist/pci.ids
==
--- vendor/pciids/dist/pci.ids  Sat Jul 16 14:07:44 2011(r224098)
+++ vendor/pciids/dist/pci.ids  Sat Jul 16 14:49:57 2011(r224099)
@@ -1,8 +1,8 @@
 #
 #  List of PCI ID's
 #
-#  Version: 2011.04.04
-#  Date:2011-04-04 03:15:03
+#  Version: 2011.07.14
+#  Date:2011-07-14 03:15:06
 #
 #  Maintained by Martin Mares  and other volunteers from the
 #  PCI ID Project at http://pciids.sf.net/.
@@ -74,7 +74,6 @@
 02ac  SpeedStream
1012  1012 PCMCIA 10/100 Ethernet Card [RTL81xx]
 02e0  XFX Pine Group Inc
-0303  Hewlett-Packard Company (Wrong ID)
 0308  ZyXEL Communications Corporation
 0315  SK-Electronics Co., Ltd.
 0357  TTTech AG
@@ -83,15 +82,10 @@
 0403  Future Technology Devices International Ltd
 0432  SCM Microsystems, Inc.
0001  Pluto2 DVB-T Receiver for PCMCIA [EasyWatch MobilSet]
-045e  Microsoft
-   006e  MN-510 802.11b wireless USB paddle
-   00c2  MN-710 wireless USB paddle
 0482  Kyocera
 # vendor code used for (at a minimum) RSA cards
 04b3  IBM Corp.
4001  Remote System Administration device [RSA2]
-04cf  Myson Century, Inc
-   8818  CS8818 USB2.0-to-ATAPI Bridge Controller with Embedded PHY
 050d  Belkin
 058f  Alcor Micro Corporation
 05a9  OmniVision
@@ -109,13 +103,18 @@
 069d  Hughes Network Systems (HNS)
 0721  Sapphire, Inc.
 0777  Ubiquiti Networks, Inc.
+# Atheros, 6th Generation, AR5414, 802.11a, 5GHz
+   3005  XtremeRange5
 0795  Wired Inc.
6663  Butane II (MPEG2 encoder board)
  MediaPress (MPEG2 encoder board)
 07ca  AVerMedia Technologies Inc.
+# Expresscard DVB-T tuner sold by Fujitsu for notebooks
+   534a  Slim mobile Express DVB-T (Fujitsu)
a301  AVerTV 301
b808  AVerTV DVB-T Volar (USB 2.0)
 07d0  ITT Geospatial Systems
+07d1  D-Link System Inc
 07e2  ELMEG Communication Systems GmbH
 0842  NPG, Personal Grand Technology
 # Nee Gemplus International, SA
@@ -136,8 +135,6 @@
 09c1  Arris
0704  CM 200E Cable Modem
 0a89  BREA Technologies Inc
-0ace  ZyDAS
-   1211  ZD1211 IEEE 802.11b+g USB Adapter
 0b0b  Rhino Equipment Corp.
0105  Rhino R1T1
0205  Rhino R4FXO
@@ -366,6 +363,7 @@
0055  SAS1068 PCI-X Fusion-MPT SAS
1033 8336  SAS1068
0056  SAS1064ET PCI-Express Fusion-MPT SAS
+   1014 03bb  ServeRAID BR10il SAS/SATA Controller v2
0057  M1064E MegaRAID SAS
8086 346c  Embedded Software RAID Technology II (ESTRII)
0058  SAS1068E PCI-Express Fusion-MPT SAS
@@ -379,12 +377,13 @@
005a  SAS1066E PCI-Express Fusion-MPT SAS
005b  MegaRAID SAS 2208 [Thunderbolt]
1028 1f2d  PERC H810 Adapter
-   1028 1f31  PERC H710 Adapter
-   1028 1f33  PERC H710 Mini (for blades)
-   1028 1f34  PERC H710 Mini (for monolithics)
-   1028 1f35  PERC H510 Adapter
-   1028 1f37  PERC H510 Mini (for blades)
-   1028 1f38  PERC H510 Mini (for monolithics)
+   1028 1f30  PERC H710 Embedded
+   1028 1f31  PERC H710P Adapter
+   1028 1f33  PERC H710P Mini (for blades)
+   1028 1f34  PERC H710P Mini (for monolithics)
+   1028 1f35  PERC H710 Adapter
+   1028 1f37  PERC H710 Mini (for blades)
+   1028 1f38  PERC H710 Mini (for monolithics)
005c  SAS1064A PCI-X Fusion-MPT SAS
005d  MegaRAID SAS-3 3108 [Invader]
005e  SAS1066 PCI-X Fusion-MPT SAS
@@ -432,8 +431,9 @@
1028 1f1f  PERC H200 Modular
1028 1f20  PERC H200 Embedded
1028 1f22  Internal Tape Adapter
+   8086 350f  RMS2LL040 RAID Controller
0073  MegaRAID SAS 9240
-   1000 9240  MegaRAID SAS 9240-4i
+   1000 9240  MegaRAID SAS 9240-8i
1000 9241  MegaRAID SAS 9240-4i
1014 03b1  ServeRAID M1015 SAS/SATA Controller
1028 1f4e  PERC H310 Adapter
@@ -448,6 +448,7 @@
1137 0073  2008 ROMB
15d9 0400  Supermicro SMC2008-iMR
1734 1177  RAID Ctrl SAS 6G 0/1 (D2607)
+   8086 350d  RMS2AF040 RAID Controller
8086 9240  RAID Controller RS2WC080
8086 9241  RAID Controller RS2WC040
0074  SAS2108 PCI-Express Fusion-MPT SAS-2 [Liberator]
@@ -456,6 +457,8 @@
0079  MegaRAID SAS 2108 [Liberator]
1000 9251  MegaRAID SAS 9260-4ix
1000 9256  MegaRAID SAS 9260-8ix
+   1000 9260  MegaRAID SAS 9260-4i
+   1000 9261  MegaRAID SAS

svn commit: r224100 - vendor/pciids/pciids-20110716

2011-07-16 Thread Philip Paeps
Author: philip
Date: Sat Jul 16 14:51:28 2011
New Revision: 224100
URL: http://svn.freebsd.org/changeset/base/224100

Log:
  Tag today's snapshot of the PCI ID Repository.

Added:
  vendor/pciids/pciids-20110716/
 - copied from r224099, vendor/pciids/dist/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r224102 - head/share/misc

2011-07-16 Thread Philip Paeps
Author: philip
Date: Sat Jul 16 15:40:26 2011
New Revision: 224102
URL: http://svn.freebsd.org/changeset/base/224102

Log:
  MFV pciids-20110716, r224099
  
  Update to use the latest version of the PCI IDs Repository.
  As discussed on -current@ in May, this brings in a new source of the database,
  which is also used by other operating systems.  Our previous sources no longer
  exist and this database is actively maintained and more complete in general.

Modified:
  head/share/misc/pci_vendors

Modified: head/share/misc/pci_vendors
==
--- head/share/misc/pci_vendors Sat Jul 16 15:10:43 2011(r224101)
+++ head/share/misc/pci_vendors Sat Jul 16 15:40:26 2011(r224102)
@@ -1,11103 +1,20099 @@
-; $FreeBSD$
-;
-; Automatically generated by src/tools/tools/pciid/mk_pci_vendors.pl
-; (with the -l option), using the following source lists:
-;
-;  http://www.pcidatabase.com/reports.php?type=csv
-;  http://members.datafast.net.au/dft0802/downloads/pcidevs.txt
-;
-; Manual edits on this file will be lost!
-;
-   Gammagraphx Inc
-001A   Ascend Communications Inc
-0033   Paradyne Corp
-003D   Real 3D (Was: Lockheed Martin-Marietta Corp)
-   00D1i740 PCI Graphics Accelerator
-0070   Hauppauge Computer Works Inc.
-   4000WinTV PVR-350
-   4001WinTV PVR-250 (v1)
-   4009WinTV PVR-250
-   4801WinTV PVR-250 MCE
-   6800Hauppage Nova -TD-500 DVB-T Tuner Device ( 
PCIVEN_1131&DEV_7130&SUBSYS_4051&REV_014&3B)
-0071   Nebula Electronics Ltd
-0100   Ncipher Corp Ltd
-0123   General Dynamics
-0246   Addtron(??)
-0315   SK - Electronics Co Ltd
-0357   TTTech AG
-   000ATTP-Monitoring Card V2.0
-0403   Future Technology Devices International Ltd
-0432   SCM Microsystems Inc
-   0001Pluto2 DVB-T Receiver for PCMCIA [EasyWatch MobilSet]
-045E   Microsoft
-   006EMN-510 802.11b wireless USB paddle
-   00C2MN-710 wireless USB paddle
-0482   Kyocera
-04CF   Myson Century Inc
-   8818CS8818 USB2.0-to-ATAPI Bridge Controller with Embedded PHY
-050D   Belkin
-   001AFSD7000 802.11g PCI Wireless card
-   0109F5U409-CU USB/Serial Portable Adapter
-   7050F5D7050 802.11g Wireless USB Adapter
-   705CF5D7050 v4
-05A9   OmniVision
-   8519OV519 series
-05E3   CyberDoor
-   0701CBD516
-064E   SUYIN Corporation
-   A101Acer Crystal Eye Webcam (suYin)
-   A103WebCam (SuYin)
-   D101Web Cam (SuYin)
-066F   Sigmatel Inc
-   3410SMTP3410
-   3500SMTP3500
-0675   Dynalink
-   1700IS64PH ISDN Adapter
-   1702IS64PH ISDN Adapter
-   1703ISDN Adapter (PCI Bus, DV, W)
-   1704ISDN Adapter (PCI Bus, D, C)
-067B   Prolific Technology Inc
-   2303PL-2303 USB-to-Serial Converter
-   2305USB-to-Printer Bridge Controller (PL-2305)
-   2393prolific (prolific)
-   3507PL-3507 Hi-Speed USB & IEEE 1394 Combo to IDE Bridge Controller
-069D   Hughes Network Systems (HNS)
-0700   Stream Machine
-0721   Sapphire Inc
-07CA   AVerMedia Technologies Inc
-   B808AVerTV DVB-T Volar (USB 2.0)
-0815   LinTech GmbH
-   0002ELKA SO-PCI
-0871   Berkom
-   FFA1A1T HCF-PCI Card
-   FFA2T-Concept HCF-PCI Card
-   FFA4A4T
-   FFA8Scitel Quadro
-09C1   Arris
-   0704CM 200E Cable Modem
-0A5C   Broadcom Corporation
-   0201Broadcom USB iLine10(tm) Network Adapter (Broadcom NetXtreme 
BCM5782 Gigabie Ethernet Contro)
-   2000Broadcom Bluetooth Firmware Upgrade Device
-   2009Broadcom Bluetooth Controller
-   200ABroadcom Bluetooth Controller
-   200FBroadcom Bluetooth Controller
-   201DBROADCOM Bluetooth Device
-   201EIBM Integrated Bluetooth IV
-   2020Broadcom Bluetooth Dongle
-   2021BCM2035B3 ROM Adapter Generic
-   2033Broadcom Blutonium Device Firmware Downloader
-   2035BCM2035 Bluetooth
-   2038Broadcom Blutonium Device Firmware Downloader (BCM2038)
-   2039BROADCOM Bluetooth Device
-   2045Broadcom Bluetooth Controller
-   2046Broadcom USB Bluetooth Device ( 5738z)
-   2047Broadcom USB Bluetooth Device
-   205EBroadcom Bluetooth Firmware Upgrade Device
-   2100Broadcom Bluetooth 2.0+eDR USB dongle (BT 50)
-   2101Broadcom Bluetooth 2.0+EDR USB dongle ( 5&11BBCF3F&0&2)
-   2102ANYCOM Blue USB-200/250 ( USBVID_04B4&PID_21025&38CD4C16&0&6)
-   2110Broadcom Bluetooth Controller
-   2111ANYCOM Blue USB-UHE 200/250
-   2120Broadcom 2045 Bluetooth 2.0 USB-UHE Device with trace filter ( 
2045)
-   2121Broadcom 2045 Bluetooth 2.0 USB Device with trace filter
-   2122Broadcom Bluetooth 2.0+EDR USB dongle ( BCM92045B3)
-   21242045B3ROM Bluetooth Dongle
-   2130Broadcom 2045 Bl

svn commit: r224103 - head/tools/tools/pciid

2011-07-16 Thread Philip Paeps
Author: philip
Date: Sat Jul 16 15:43:14 2011
New Revision: 224103
URL: http://svn.freebsd.org/changeset/base/224103

Log:
  Garbage-collect the tools for maintaining the previous PCI vendors list.  The
  sources this tool collates are no longer available and the format of the
  current database is directly usable by pciconf(8) without needing any special
  processing.

Deleted:
  head/tools/tools/pciid/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r220417 - vendor/pciids

2011-04-07 Thread Philip Paeps
Author: philip
Date: Thu Apr  7 11:41:00 2011
New Revision: 220417
URL: http://svn.freebsd.org/changeset/base/220417

Log:
  Add a directory for the PCI ID Repository to the vendor space.

Added:
  vendor/pciids/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r220418 - vendor/pciids/dist

2011-04-07 Thread Philip Paeps
Author: philip
Date: Thu Apr  7 11:45:15 2011
New Revision: 220418
URL: http://svn.freebsd.org/changeset/base/220418

Log:
  Import today's snapshot of the PCI ID Repository.

Added:
  vendor/pciids/dist/
  vendor/pciids/dist/pci.ids

Added: vendor/pciids/dist/pci.ids
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/pciids/dist/pci.ids  Thu Apr  7 11:45:15 2011(r220418)
@@ -0,0 +1,19818 @@
+#
+#  List of PCI ID's
+#
+#  Version: 2011.04.04
+#  Date:2011-04-04 03:15:03
+#
+#  Maintained by Martin Mares  and other volunteers from the
+#  PCI ID Project at http://pciids.sf.net/.
+#
+#  New data are always welcome, especially if they are accurate. If you 
have
+#  anything to contribute, please follow the instructions at the web site.
+#
+#  This file can be distributed under either the GNU General Public License
+#  (version 2 or higher) or the 3-clause BSD License.
+#
+
+# Vendors, devices and subsystems. Please keep sorted.
+
+# Syntax:
+# vendor  vendor_name
+#  device  device_name <-- single tab
+#  subvendor subdevice  subsystem_name <-- two tabs
+
+  Gammagraphx, Inc. (or missing ID)
+0010  Allied Telesis, Inc
+# This is a relabelled RTL-8139
+   8139  AT-2500TX V3 Ethernet
+001a  Ascend Communications, Inc.
+001c  PEAK-System Technik GmbH
+   0001  PCAN-PCI CAN-Bus controller
+   001c 0004  2 Channel CAN Bus SJC1000
+   001c 0005  2 Channel CAN Bus SJC1000 (Optically Isolated)
+0033  Paradyne corp.
+003d  Lockheed Martin-Marietta Corp
+# Real TJN ID is e159, but they got it wrong several times --mj
+0059  Tiger Jet Network Inc. (Wrong ID)
+0070  Hauppauge computer works Inc.
+   0003  WinTV PVR-250
+   0009  WinTV PVR-150
+   0801  WinTV PVR-150
+   0807  WinTV PVR-150
+   4000  WinTV PVR-350
+   4001  WinTV PVR-250 (v1)
+   4009  WinTV PVR-250
+   4800  WinTV PVR-350
+   4801  WinTV PVR-250 MCE
+   4803  WinTV PVR-250
+   7444  WinTV HVR-1600
+   7801  WinTV HVR-1800 MCE
+   8003  WinTV PVR-150
+   8801  WinTV PVR-150
+   c108  WinTV-HVR-4400-HD model 1278
+   c801  WinTV PVR-150
+   e807  WinTV PVR-500 MCE (1st tuner)
+   e817  WinTV PVR-500 MCE (2nd tuner)
+0071  Nebula Electronics Ltd.
+0095  Silicon Image, Inc. (Wrong ID)
+   0680  Ultra ATA/133 IDE RAID CONTROLLER CARD
+# Wrong ID used in subsystem ID of the TELES.S0/PCI 2.x ISDN adapter
+00a7  Teles AG (Wrong ID)
+00f5  BFG Technologies, Inc.
+0100  Ncipher Corp Ltd
+0123  General Dynamics
+# 018a is not LevelOne but there is a board misprogrammed
+018a  LevelOne
+   0106  FPC-0106TX misprogrammed [RTL81xx]
+# 021b is not Compaq but there is a board misprogrammed
+021b  Compaq Computer Corporation
+   8139  HNE-300 (RealTek RTL8139c) [iPaq Networking]
+0270  Hauppauge computer works Inc. (Wrong ID)
+0291  Davicom Semiconductor, Inc.
+   8212  DM9102A(DM9102AE, SM9102AF) Ethernet 100/10 MBit(Rev 40)
+# SpeedStream is Efficient Networks, Inc, a Siemens Company
+02ac  SpeedStream
+   1012  1012 PCMCIA 10/100 Ethernet Card [RTL81xx]
+02e0  XFX Pine Group Inc
+0303  Hewlett-Packard Company (Wrong ID)
+0308  ZyXEL Communications Corporation
+0315  SK-Electronics Co., Ltd.
+0357  TTTech AG
+   000a  TTP-Monitoring Card V2.0
+036f  Trigem Computer Inc.
+0403  Future Technology Devices International Ltd
+0432  SCM Microsystems, Inc.
+   0001  Pluto2 DVB-T Receiver for PCMCIA [EasyWatch MobilSet]
+045e  Microsoft
+   006e  MN-510 802.11b wireless USB paddle
+   00c2  MN-710 wireless USB paddle
+0482  Kyocera
+# vendor code used for (at a minimum) RSA cards
+04b3  IBM Corp.
+   4001  Remote System Administration device [RSA2]
+04cf  Myson Century, Inc
+   8818  CS8818 USB2.0-to-ATAPI Bridge Controller with Embedded PHY
+050d  Belkin
+058f  Alcor Micro Corporation
+05a9  OmniVision
+   8519  OV519 series
+05e3  CyberDoor
+   0701  CBD516
+066f  Sigmatel Inc.
+   3410  SMTP3410
+   3500  SMTP3500
+0675  Dynalink
+   1700  IS64PH ISDN Adapter
+   1702  IS64PH ISDN Adapter
+   1703  ISDN Adapter (PCI Bus, DV, W)
+   1704  ISDN Adapter (PCI Bus, D, C)
+069d  Hughes Network Systems (HNS)
+0721  Sapphire, Inc.
+0777  Ubiquiti Networks, Inc.
+0795  Wired Inc.
+   6663  Butane II (MPEG2 encoder board)
+     MediaPress (MPEG2 encoder board)
+07ca  AVerMedia Technologies Inc.
+   a301  AVerTV 301
+   b808  AVerTV DVB-T Volar (USB 2.0)
+07d0  ITT Geospatial Systems
+07e2  ELMEG Communication Systems GmbH
+0842  NPG, Personal Grand Technology
+# Nee Gemplus International, SA
+08e6  Gemalto NV
+08ff  AuthenTec
+   afe4  [Anchor] AF-S2 FingerLoc Sensor Module
+0925  First International Computer, Inc.
+   1234  VA-502 Mainboard
+093a  PixArt Imaging Inc.
+  

svn commit: r220419 - vendor/pciids/pciids-20110407

2011-04-07 Thread Philip Paeps
Author: philip
Date: Thu Apr  7 11:47:27 2011
New Revision: 220419
URL: http://svn.freebsd.org/changeset/base/220419

Log:
  Tag today's snapshot of the PCI ID Repository.

Added:
  vendor/pciids/pciids-20110407/
 - copied from r220418, vendor/pciids/dist/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r220653 - in head/sys: . arm/mv/orion boot/fdt/dts

2011-04-15 Thread Philip Paeps
Author: philip
Date: Fri Apr 15 13:37:43 2011
New Revision: 220653
URL: http://svn.freebsd.org/changeset/base/220653

Log:
  Add basic support for the Marvell Orion TS-7800.
  
  Submitted by: Kristof Provost 

Added:
  head/sys/arm/mv/orion/files.ts7800   (contents, props changed)
  head/sys/arm/mv/orion/std.ts7800   (contents, props changed)
  head/sys/boot/fdt/dts/ts7800.dts   (contents, props changed)
  head/sys/files.ts7800   (contents, props changed)

Added: head/sys/arm/mv/orion/files.ts7800
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/arm/mv/orion/files.ts7800  Fri Apr 15 13:37:43 2011
(r220653)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+arm/mv/orion/orion.c   standard
+

Added: head/sys/arm/mv/orion/std.ts7800
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/arm/mv/orion/std.ts7800Fri Apr 15 13:37:43 2011
(r220653)
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+include"../mv/std.mv"
+files  "../mv/orion/files.ts7800"
+
+makeoptionsKERNPHYSADDR=0x0090
+makeoptionsKERNVIRTADDR=0xc090
+
+optionsKERNPHYSADDR=0x0090
+optionsKERNVIRTADDR=0xc090
+optionsPHYSADDR=0x
+optionsSTARTUP_PAGETABLE_ADDR=0x0010
+options   LOADERRAMADDR=0x
+options   FLASHADDR=0x8000
+

Added: head/sys/boot/fdt/dts/ts7800.dts
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/boot/fdt/dts/ts7800.dtsFri Apr 15 13:37:43 2011
(r220653)
@@ -0,0 +1,161 @@
+/*
+ * Copyright (c) 2010 The FreeBSD Foundation
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * Technologic Systems TS-7800 Device Tree Source.
+ *
+ * $FreeBSD$
+ */
+
+/dts-v1/;
+
+/ {
+   model = "mrvl,TS-7800";
+   compatible = "DB-88F5182-BP", "DB-88F5182-BP-A";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   aliases {
+   ethernet0 = &mge0;
+   serial0 = &serial0;
+   serial1 = &serial1;
+   mpp = &MPP;
+   };
+
+   cpus {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   cpu@0 {
+   device_type = "cpu";
+   compatible = "ARM,88FR531";
+   reg = <0x0>;
+   d-cache-line-size = <32>;   // 32 bytes
+   i-cache-line-size = <32>;   // 32 bytes
+   d-cache-size = <0x8000>;// L1, 32K
+   i-cache-size = <0x8000>;// L1, 32K
+   timebase-frequency = <0>;
+   bus-frequency = <0>;
+   clock-frequency = <0>;
+   };
+   };
+
+   memory {
+   device_type = "memory";
+   reg = <0x0 0x0800>; // 128M at 0x0
+   };
+
+   localbus@f100 {
+   #address-cells = <2>;
+   #size-cells = <1>;
+   compatible = "mrvl,lbc";
+
+   /* This reflects CPU decode windows setup. */
+   ranges = <0x0 0x0f 0xf930 0x0010
+ 0x1 0x1e 0xfa00 0x0010
+ 0x2 0x1d 0xfa10 0x0200>;
+   };
+
+   soc88f5182@f100 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "simple-bus";
+   ranges = <0x0 0xf100

svn commit: r220774 - in head/sys: . arm/conf

2011-04-18 Thread Philip Paeps
Author: philip
Date: Mon Apr 18 12:27:57 2011
New Revision: 220774
URL: http://svn.freebsd.org/changeset/base/220774

Log:
  Delete mistakenly added sys/files.ts7800
  Add mistakenly forgotten sys/arm/conf/TS7800
  
  Not sure how this happened.  Apologies for the repo-churn.
  
  Submitted by: glebius
  Pointy hat to:philip

Added:
  head/sys/arm/conf/TS7800   (contents, props changed)
Deleted:
  head/sys/files.ts7800

Added: head/sys/arm/conf/TS7800
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/arm/conf/TS7800Mon Apr 18 12:27:57 2011(r220774)
@@ -0,0 +1,80 @@
+#
+# Custom kernel for the TS-7800 board.
+#
+# $FreeBSD$
+#
+
+ident  TS7800
+include"../mv/orion/std.ts7800"
+
+optionsSOC_MV_ORION
+makeoptionsMODULES_OVERRIDE=""
+
+#makeoptions   DEBUG=-g#Build kernel with gdb(1) debug symbols
+makeoptionsWERROR="-Werror"
+
+optionsSCHED_4BSD  #4BSD scheduler
+optionsINET#InterNETworking
+optionsINET6   #IPv6 communications protocols
+optionsFFS #Berkeley Fast Filesystem
+optionsSOFTUPDATES # Enable FFS soft updates support
+optionsNFSCLIENT   #Network Filesystem Client
+optionsNFSLOCKD#Network Lock Manager
+optionsNFS_ROOT#NFS usable as /, requires NFSCLIENT
+optionsBOOTP
+optionsBOOTP_NFSROOT
+optionsBOOTP_NFSV3
+optionsBOOTP_WIRED_TO=mge0
+
+optionsSYSVSHM #SYSV-style shared memory
+optionsSYSVMSG #SYSV-style message queues
+optionsSYSVSEM #SYSV-style semaphores
+options_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
+optionsMUTEX_NOINLINE
+optionsRWLOCK_NOINLINE
+optionsNO_FFS_SNAPSHOT
+optionsNO_SWAPPING
+
+# Debugging
+optionsALT_BREAK_TO_DEBUGGER
+optionsDDB
+optionsKDB
+optionsGDB # Support remote GDB.
+
+device mvs
+device pci
+
+# Pseudo devices
+device md
+device loop
+device pty
+device random
+
+# Serial ports
+device uart
+
+# Networking
+device ether
+device mge # Marvell Gigabit Ethernet controller
+device mii
+device e1000phy
+device bpf
+optionsHZ=1000
+
+# USB
+device usb
+device ehci
+device umass
+device scbus
+device pass
+device da
+
+# SATA
+device ata
+device atadisk
+
+# Flattened Device Tree
+optionsFDT
+optionsFDT_DTB_STATIC
+makeoptionsFDT_DTS_FILE=ts7800.dts
+
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r221902 - svnadmin/conf

2011-05-14 Thread Philip Paeps
Author: philip
Date: Sat May 14 18:09:08 2011
New Revision: 221902
URL: http://svn.freebsd.org/changeset/base/221902

Log:
  Welcome Ben Laurie (benl@) to the committer zoo.  Ben's commit bit was
  actually approved way back in 2008, but we never got around to setting
  it up.  Simon and I will be Ben's mentors.
  
  Approved by:  core

Modified:
  svnadmin/conf/access
  svnadmin/conf/mentors

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessSat May 14 17:56:13 2011(r221901)
+++ svnadmin/conf/accessSat May 14 18:09:08 2011(r221902)
@@ -35,6 +35,7 @@ attilio
 avatar
 avg
 bde
+benl
 benno
 bms
 brian  freebsd-committ...@awfulhak.org

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Sat May 14 17:56:13 2011(r221901)
+++ svnadmin/conf/mentors   Sat May 14 18:09:08 2011(r221902)
@@ -14,6 +14,7 @@ anchiebz
 andreast   nwhitehorn
 andrew imp
 artavg Co-mentor: marcel
+benl   philip  Co-mentor: simon
 erimlaier  Co-mentor: thompsa
 gabor  delphij
 jinmei gnn
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r191894 - head/sys/dev/ubsec

2009-05-07 Thread Philip Paeps
Author: philip
Date: Thu May  7 18:03:47 2009
New Revision: 191894
URL: http://svn.freebsd.org/changeset/base/191894

Log:
  Add PCI IDs for the Broadcom 5825 incarnation.
  
  Submitted by: Brian A. Seklecki 
  MFC after:1 day

Modified:
  head/sys/dev/ubsec/ubsec.c
  head/sys/dev/ubsec/ubsecreg.h

Modified: head/sys/dev/ubsec/ubsec.c
==
--- head/sys/dev/ubsec/ubsec.c  Thu May  7 17:39:23 2009(r191893)
+++ head/sys/dev/ubsec/ubsec.c  Thu May  7 18:03:47 2009(r191894)
@@ -220,7 +220,8 @@ ubsec_probe(device_t dev)
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5820 ||
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
-pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823
+pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 ||
+pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5825
 ))
return (BUS_PROBE_DEFAULT);
return (ENXIO);
@@ -240,6 +241,7 @@ ubsec_partname(struct ubsec_softc *sc)
case PCI_PRODUCT_BROADCOM_5821: return "Broadcom 5821";
case PCI_PRODUCT_BROADCOM_5822: return "Broadcom 5822";
case PCI_PRODUCT_BROADCOM_5823: return "Broadcom 5823";
+   case PCI_PRODUCT_BROADCOM_5825: return "Broadcom 5825";
}
return "Broadcom unknown-part";
case PCI_VENDOR_BLUESTEEL:
@@ -301,7 +303,8 @@ ubsec_attach(device_t dev)
if ((pci_get_vendor(dev) == PCI_VENDOR_BROADCOM &&
 (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
  pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
- pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823)) ||
+ pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 ||
+ pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5825)) ||
(pci_get_vendor(dev) == PCI_VENDOR_SUN &&
 (pci_get_device(dev) == PCI_PRODUCT_SUN_SCA1K ||
  pci_get_device(dev) == PCI_PRODUCT_SUN_5821))) {

Modified: head/sys/dev/ubsec/ubsecreg.h
==
--- head/sys/dev/ubsec/ubsecreg.h   Thu May  7 17:39:23 2009
(r191893)
+++ head/sys/dev/ubsec/ubsecreg.h   Thu May  7 18:03:47 2009
(r191894)
@@ -62,6 +62,7 @@
 #definePCI_PRODUCT_BROADCOM_5821   0x5821  /* 5821 */
 #definePCI_PRODUCT_BROADCOM_5822   0x5822  /* 5822 */
 #definePCI_PRODUCT_BROADCOM_5823   0x5823  /* 5823 */
+#definePCI_PRODUCT_BROADCOM_5825   0x5825  /* 5825 */
 
 /* Sun Microsystems */
 #define PCI_PRODUCT_SUN_5821   0x5454  /* Crypto 5821 */
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r191913 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb dev/ubsec

2009-05-08 Thread Philip Paeps
Author: philip
Date: Fri May  8 14:01:40 2009
New Revision: 191913
URL: http://svn.freebsd.org/changeset/base/191913

Log:
  MFC r191894: Add PCI IDs for the Broadcom 5825 incarnation.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/dev/ubsec/ubsec.c
  stable/7/sys/dev/ubsec/ubsecreg.h

Modified: stable/7/sys/dev/ubsec/ubsec.c
==
--- stable/7/sys/dev/ubsec/ubsec.c  Fri May  8 13:44:33 2009
(r191912)
+++ stable/7/sys/dev/ubsec/ubsec.c  Fri May  8 14:01:40 2009
(r191913)
@@ -220,7 +220,8 @@ ubsec_probe(device_t dev)
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5820 ||
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
-pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823
+pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 ||
+pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5825
 ))
return (BUS_PROBE_DEFAULT);
return (ENXIO);
@@ -240,6 +241,7 @@ ubsec_partname(struct ubsec_softc *sc)
case PCI_PRODUCT_BROADCOM_5821: return "Broadcom 5821";
case PCI_PRODUCT_BROADCOM_5822: return "Broadcom 5822";
case PCI_PRODUCT_BROADCOM_5823: return "Broadcom 5823";
+   case PCI_PRODUCT_BROADCOM_5825: return "Broadcom 5825";
}
return "Broadcom unknown-part";
case PCI_VENDOR_BLUESTEEL:
@@ -301,7 +303,8 @@ ubsec_attach(device_t dev)
if ((pci_get_vendor(dev) == PCI_VENDOR_BROADCOM &&
 (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
  pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
- pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823)) ||
+ pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 ||
+ pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5825)) ||
(pci_get_vendor(dev) == PCI_VENDOR_SUN &&
 (pci_get_device(dev) == PCI_PRODUCT_SUN_SCA1K ||
  pci_get_device(dev) == PCI_PRODUCT_SUN_5821))) {

Modified: stable/7/sys/dev/ubsec/ubsecreg.h
==
--- stable/7/sys/dev/ubsec/ubsecreg.h   Fri May  8 13:44:33 2009
(r191912)
+++ stable/7/sys/dev/ubsec/ubsecreg.h   Fri May  8 14:01:40 2009
(r191913)
@@ -62,6 +62,7 @@
 #definePCI_PRODUCT_BROADCOM_5821   0x5821  /* 5821 */
 #definePCI_PRODUCT_BROADCOM_5822   0x5822  /* 5822 */
 #definePCI_PRODUCT_BROADCOM_5823   0x5823  /* 5823 */
+#definePCI_PRODUCT_BROADCOM_5825   0x5825  /* 5825 */
 
 /* Sun Microsystems */
 #define PCI_PRODUCT_SUN_5821   0x5454  /* Crypto 5821 */
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r191914 - head/share/man/man4

2009-05-08 Thread Philip Paeps
Author: philip
Date: Fri May  8 14:09:31 2009
New Revision: 191914
URL: http://svn.freebsd.org/changeset/base/191914

Log:
  Sync ubsec(4) with reality, note BCM5825 support.
  
  Pointed out by:   brueffer
  MFC after:1 minute

Modified:
  head/share/man/man4/ubsec.4

Modified: head/share/man/man4/ubsec.4
==
--- head/share/man/man4/ubsec.4 Fri May  8 14:01:40 2009(r191913)
+++ head/share/man/man4/ubsec.4 Fri May  8 14:09:31 2009(r191914)
@@ -102,6 +102,8 @@ Faster version of the BCM5820.
 Faster version of the BCM5820.
 .It Broadcom BCM5823
 A BCM5822 with AES capability.
+.It Broadcom BCM5825
+Faster version of the BCM5823.
 .El
 .Sh SEE ALSO
 .Xr crypt 3 ,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r253779 - in head: . share/man/man4 sys/amd64/conf sys/arm/conf sys/conf sys/dev/random sys/i386/conf sys/ia64/conf sys/mips/conf sys/modules sys/modules/random sys/pc98/conf sys/power

2013-07-31 Thread Philip Paeps
On 2013-07-29 20:26:27 (+), David E. O'Brien  wrote:
> Author: obrien
> Date: Mon Jul 29 20:26:27 2013
> New Revision: 253779
> URL: http://svnweb.freebsd.org/changeset/base/253779
> 
> Log:
>   Decouple yarrow from random(4) device.

As Dag-Erling already pointed out in relpy to r253789: please submit any
RNG changes to secteam@ to review before committing them.  That aside,
it would have been easier to review this if it were split into more than
two commits.

>   * Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" 
> option.
> The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

I would really prefer to see this logic reversed.  Of course, we expect
people to read UPDATING, but disabling functionality that has been
enabled by default "forever" without any warning, especially in a
security-related context is not cool.  Please change YARROW_RNG to
RNG_NO_YARROW or something similar and keep it in by default.  If you
think there's a really good reason to kick support out by default, there
are mailing lists to discuss this.

>   * Add random_adaptors.[ch] which is basically a store of random_adaptor's.
> random_adaptor is basically an adapter that plugs in to random(4).

This is a good idea.  I've briefly read through the code (ie: not a
thorough review) and it looks okay at first glance.  It would have been
good if this were a separate commit and given a chance to be reviewed by
people familiar with the RNG code.

> Unplugging random_adaptor from random(4) is not supported, and is 
> probably a
> bad idea anyway, due to potential loss of entropy pools.

I agree.

But what happens to the adaptors if you kldunload random?

>   * If the kernel doesn't have any random_adaptor adapters present then the
> creation of /dev/random is postponed until next random_adaptor is 
> kldload'ed.

This worries me.  A fast-booting system might want random numbers in
userland before a random_adaptor is loaded (and properly seeded?).  We
don't have particularly stellar support for early random numbers, but we
should be careful not to make it worse.

Also: what happens to in-kernel consumers of random (like TCP) before
the first random_adaptor is attached (and properly seeded)?

I'd really like to see this get some more review.

Philip

-- 
Philip Paeps
Senior Reality Engineer
Ministry of Information
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r253779 - in head: . share/man/man4 sys/amd64/conf sys/arm/conf sys/conf sys/dev/random sys/i386/conf sys/ia64/conf sys/mips/conf sys/modules sys/modules/random sys/pc98/conf sys/power

2013-08-01 Thread Philip Paeps
On 2013-07-31 11:15:55 (-0700), Adrian Chadd  wrote:
> On 31 July 2013 03:40, Philip Paeps  wrote:
> >>   * Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" 
> >> option.
> >> The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise 
> >> yarrow.
> >
> > I would really prefer to see this logic reversed.  Of course, we expect
> > people to read UPDATING, but disabling functionality that has been
> > enabled by default "forever" without any warning, especially in a
> > security-related context is not cool.  Please change YARROW_RNG to
> > RNG_NO_YARROW or something similar and keep it in by default.  If you
> > think there's a really good reason to kick support out by default, there
> > are mailing lists to discuss this.
> 
> I'm 100% against this. I'm getting extremely fed up with the "default
> is on" bloat that is everywhere in our sub-systems. David is actually
> _tidying things up_ by making optional devices be standalone devices -
> that way they show up as very simple to include and expand when making
> modules of things. Otherwise you turn this into a single, monolithic
> module that has compile options.. and that sucks.

I'm absolutely not against "removing bloat" in general.  This particular
change, however, potentially leaves anyone who builds a custom kernel
("to remove bloat") and doesn't have a hardware PRNG without any PRNG.
We don't make changes like that without warning people.

While everyone should read UPDATING, many people only read it when stuff
(visibly) breaks, which could cause this change to slip under the radar
for them.

> David's way is clean, simple and architecturally well-designed. It's
> how it should've been done in the first place.

Sure.  I agree.  I read through the random_adaptors code and I like the
design and couldn't see any immediate issues.  The reasons I wanted this
backed out for now, are firstly that we have a policy that changes
affecting random should be reviewed by secteam before being committed
and secondly that I don't feel we should potentially be leaving a large
group of people without any functional random.

As soon as secteam can do a more thorough review of the random_adaptors
code, it should definitely come back.  It's an architectural change in
the right direction.  I am a lot less sure about removing Yarrow by
default, but that's something we can discuss as a separate issue - it
doesn't block the architectural improvement as far as I'm concerned.

> > I'd really like to see this get some more review.
> 
> I'd like to see the architectural changes needed for a cleanup like
> this take place, rather than getting lost in discussion.

I think we are enthusiastically agreeing with each other for the most
part. :)  I also want the architectural improvement and I'm all in
favour of removing bloat.

> For the MIPS boards I hack on/for, I don't have any guaranteed random
> number generator. So it's Yarrow or bust. So we need to "properly
> seed" things as best as we can before any hardware random number
> generators are loaded. The same problem exists for i386/amd64 with
> hardware PRNGs.. we should ensure yarrow is properly seeded here.

Right.  And had you not seen this discussion, when would you have
noticed that Yarrow was gone?  How long would you have run with poor
random before you found the entry in UPDATING that told you that you
needed to add an option to your kernel configuration?

I agree that this change is generally good.  I just want to see it
more thoroughly reviewed by secteam, and a discussion about whether we
want Yarrow to be default, and if not, when we throw that switch.

Philip

-- 
Philip Paeps
Senior Reality Engineer
Ministry of Information
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r255928 - head/sys/netpfil/ipfw

2013-09-28 Thread Philip Paeps
Author: philip
Date: Sat Sep 28 15:49:36 2013
New Revision: 255928
URL: http://svnweb.freebsd.org/changeset/base/255928

Log:
  Use the correct EtherType for logging IPv6 packets.
  
  Reviewed by:  melifaro
  Approved by:  re (kib, glebius)
  MFC after:3 days

Modified:
  head/sys/netpfil/ipfw/ip_fw_log.c

Modified: head/sys/netpfil/ipfw/ip_fw_log.c
==
--- head/sys/netpfil/ipfw/ip_fw_log.c   Sat Sep 28 15:46:03 2013
(r255927)
+++ head/sys/netpfil/ipfw/ip_fw_log.c   Sat Sep 28 15:49:36 2013
(r255928)
@@ -255,11 +255,18 @@ ipfw_log(struct ip_fw *f, u_int hlen, st
 
if (args->eh) /* layer2, use orig hdr */
BPF_MTAP2(log_if, args->eh, ETHER_HDR_LEN, m);
-   else
+   else {
/* Add fake header. Later we will store
 * more info in the header.
 */
-   BPF_MTAP2(log_if, "DDSS\x08\x00", 
ETHER_HDR_LEN, m);
+   if (ip->ip_v == 4)
+   BPF_MTAP2(log_if, "DDSS\x08\x00", 
ETHER_HDR_LEN, m);
+   else if  (ip->ip_v == 6)
+   BPF_MTAP2(log_if, "DDSS\x86\xdd", 
ETHER_HDR_LEN, m);
+   else
+   /* Obviously bogus EtherType. */
+   BPF_MTAP2(log_if, "DDSS\xff\xff", 
ETHER_HDR_LEN, m);
+   }
LOGIF_RUNLOCK();
 #endif /* !WITHOUT_BPF */
return;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r255936 - head/sys/modules/sfxge

2013-09-29 Thread Philip Paeps
Author: philip
Date: Sun Sep 29 13:05:22 2013
New Revision: 255936
URL: http://svnweb.freebsd.org/changeset/base/255936

Log:
  DEBUG_FLAGS -g is default for GENERIC and its presence interferes with
  disabling the sfxge.ko.symbols build for embedded systems.
  
  Approved by:  re (marius)
  MFC after:3 days

Modified:
  head/sys/modules/sfxge/Makefile

Modified: head/sys/modules/sfxge/Makefile
==
--- head/sys/modules/sfxge/Makefile Sun Sep 29 10:14:16 2013
(r255935)
+++ head/sys/modules/sfxge/Makefile Sun Sep 29 13:05:22 2013
(r255936)
@@ -20,6 +20,6 @@ SRCS+=efx_vpd.c efx_wol.c
 SRCS+= siena_mac.c siena_nic.c siena_nvram.c siena_phy.c
 SRCS+= siena_sram.c siena_vpd.c 
 
-DEBUG_FLAGS= -g -DDEBUG=1
+DEBUG_FLAGS= -DDEBUG=1
 
 .include 
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r255987 - stable/9/sys/netpfil/ipfw

2013-10-02 Thread Philip Paeps
Author: philip
Date: Wed Oct  2 12:35:03 2013
New Revision: 255987
URL: http://svnweb.freebsd.org/changeset/base/255987

Log:
  MFC r255928:
   Use the correct EtherType for logging IPv6 packets.

Modified:
  stable/9/sys/netpfil/ipfw/ip_fw_log.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netpfil/ipfw/ip_fw_log.c
==
--- stable/9/sys/netpfil/ipfw/ip_fw_log.c   Wed Oct  2 06:00:34 2013
(r255986)
+++ stable/9/sys/netpfil/ipfw/ip_fw_log.c   Wed Oct  2 12:35:03 2013
(r255987)
@@ -173,11 +173,18 @@ ipfw_log(struct ip_fw *f, u_int hlen, st
 
if (args->eh) /* layer2, use orig hdr */
BPF_MTAP2(log_if, args->eh, ETHER_HDR_LEN, m);
-   else
+   else {
/* Add fake header. Later we will store
 * more info in the header.
 */
-   BPF_MTAP2(log_if, "DDSS\x08\x00", 
ETHER_HDR_LEN, m);
+   if (ip->ip_v == 4)
+   BPF_MTAP2(log_if, "DDSS\x08\x00", 
ETHER_HDR_LEN, m);
+   else if  (ip->ip_v == 6)
+   BPF_MTAP2(log_if, "DDSS\x86\xdd", 
ETHER_HDR_LEN, m);
+   else
+   /* Obviously bogus EtherType. */
+   BPF_MTAP2(log_if, "DDSS\xff\xff", 
ETHER_HDR_LEN, m);
+   }
 #endif /* !WITHOUT_BPF */
return;
}
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r242469 - vendor/pciids/dist

2012-11-02 Thread Philip Paeps
Author: philip
Date: Fri Nov  2 10:51:48 2012
New Revision: 242469
URL: http://svn.freebsd.org/changeset/base/242469

Log:
  Import a recent snapshot of the PCI ID Repository.

Modified:
  vendor/pciids/dist/pci.ids

Modified: vendor/pciids/dist/pci.ids
==
--- vendor/pciids/dist/pci.ids  Fri Nov  2 07:36:16 2012(r242468)
+++ vendor/pciids/dist/pci.ids  Fri Nov  2 10:51:48 2012(r242469)
@@ -1,8 +1,8 @@
 #
 #  List of PCI ID's
 #
-#  Version: 2012.05.07
-#  Date:2012-05-07 03:15:01
+#  Version: 2012.10.24
+#  Date:2012-10-24 03:15:01
 #
 #  Maintained by Martin Mares  and other volunteers from the
 #  PCI ID Project at http://pci-ids.ucw.cz/.
@@ -88,7 +88,6 @@
 04b3  IBM Corp.
4001  Remote System Administration device [RSA2]
 050d  Belkin
-058f  Alcor Micro Corporation
 05a9  OmniVision
8519  OV519 series
 05e3  CyberDoor
@@ -122,8 +121,8 @@
 08e6  Gemalto NV
 08ff  AuthenTec
afe4  [Anchor] AF-S2 FingerLoc Sensor Module
-0925  First International Computer, Inc.
-   1234  VA-502 Mainboard
+0925  VIA Technologies, Inc. (Wrong ID)
+   1234  VT82C686/A/B USB Controller
 093a  PixArt Imaging Inc.
010e  Innovage Mini Digital Camera
010f  SDC-300 Webcam
@@ -202,6 +201,7 @@
7020  USB Controller
a0ec  Fibre Channel Host Controller
a0f0  Advanced System Management Controller
+   0e11 b0f3  ProLiant DL360
a0f3  Triflex PCI to ISA Bridge
a0f7  PCI Hotplug Controller
8086 002a  PCI Hotplug Controller A
@@ -325,6 +325,8 @@
4c53 1080  CT8 mainboard
4c53 1300  P017 mezzanine (32-bit PMC)
4c53 1310  P017 mezzanine (64-bit PMC)
+   002f  MegaRAID SAS 2208 IOV [Thunderbolt]
+   1028 1f3e  SPERC 8
0030  53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI
0e11 00da  ProLiant ML 350
1028 0123  LSI Logic 1020/1030
@@ -375,6 +377,9 @@
0059  MegaRAID SAS 8208ELP/8208ELP
005a  SAS1066E PCI-Express Fusion-MPT SAS
005b  MegaRAID SAS 2208 [Thunderbolt]
+   1000 9265  MegaRAID SAS 9265-8i
+   1000 9266  MegaRAID SAS 9266-8i
+   1000 9268  MegaRAID SAS 9265CV-8i / 9270CV-8i
1014 040b  ServeRAID M5110 SAS/SATA Controller
1014 0412  ServeRAID M5110e SAS/SATA Controller
1028 1f2d  PERC H810 Adapter
@@ -385,10 +390,11 @@
1028 1f35  PERC H710 Adapter
1028 1f37  PERC H710 Mini (for blades)
1028 1f38  PERC H710 Mini (for monolithics)
-   8086 3513  RMS25PB080 RAID Controller
+   8086 3513  RMS25CB080 RAID Controller
005c  SAS1064A PCI-X Fusion-MPT SAS
005d  MegaRAID SAS-3 3108 [Invader]
005e  SAS1066 PCI-X Fusion-MPT SAS
+   005f  MegaRAID SAS-3 3008 [Fury]
0060  MegaRAID SAS 1078
1000 1006  MegaRAID SAS ELP
1000 100a  MegaRAID SAS 8708ELP
@@ -438,6 +444,7 @@
0073  MegaRAID SAS 2008 [Falcon]
1000 9240  MegaRAID SAS 9240-8i
1000 9241  MegaRAID SAS 9240-4i
+   1000 92a0  MegaRAID SAS 9220-8i
1014 03b1  ServeRAID M1015 SAS/SATA Controller
1028 1f4e  PERC H310 Adapter
1028 1f4f  PERC H310 Integrated
@@ -612,6 +619,7 @@
1314  Wrestler HDMI Audio [Radeon HD 6250/6310]
174b 1001  Sapphire PURE Fusion Mini
1714  BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
+   103c 168b  ProBook 4535s
3150  M24 1P [Radeon Mobility X600]
103c 0934  nx8220
3151  M24 [FireMV 2400]
@@ -1423,6 +1431,7 @@
5a1e  RD890 PCI to PCI bridge (external gfx1 port B)
5a1f  RD890 PCI to PCI bridge (NB-SB link)
15d9 a811  H8DGU
+   5a20  RD890S PCI Express bridge for GPP2 port 1
5a23  RD990 I/O Memory Management Unit (IOMMU)
5a33  Radeon Xpress 200 Host Bridge
5a34  RS480 PCI-X Root Port
@@ -1504,17 +1513,25 @@
5e6d  RV410 [Radeon X700 (PCIE)] (Secondary)
148c 2117  PowerColor Bravo X700
5f57  R423 [Radeon X800XT (PCIE)]
+   6600  Mars [Radeon HD 8600/8700M Series]
+   6601  Mars [Radeon HD 8500/8700M Series]
+   6606  Mars [Radeon HD 8790M]
+   6610  Oland [Radeon HD 8600 Series]
+   6611  Oland [Radeon HD 8500 Series]
+   6704  Cayman PRO GL [FirePro V7900]
6707  Cayman LE GL [FirePro V5900]
6718  Cayman XT [Radeon HD 6970]
6719  Cayman PRO [Radeon HD 6950]
671d  Antilles [AMD Radeon HD 6990]
671f  Cayman [Radeon HD 6900 Series]
6720  Blackcomb [Radeon HD 6900M series]
-   6738  Barts XT [ATI Radeon HD 6800 Series]
-   6739  Barts PRO [ATI Radeo

svn commit: r242470 - vendor/pciids/pciids-20121024

2012-11-02 Thread Philip Paeps
Author: philip
Date: Fri Nov  2 10:53:42 2012
New Revision: 242470
URL: http://svn.freebsd.org/changeset/base/242470

Log:
  Tag current snapshot of the PCI ID Repository.

Added:
  vendor/pciids/pciids-20121024/
 - copied from r242469, vendor/pciids/dist/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r242471 - head/share/misc

2012-11-02 Thread Philip Paeps
Author: philip
Date: Fri Nov  2 11:13:44 2012
New Revision: 242471
URL: http://svn.freebsd.org/changeset/base/242471

Log:
  MFV pciids-20121024, r242469
  
  Update to use the latest version of the PCI IDs Repository.
  
  MFC after:1 week

Modified:
  head/share/misc/pci_vendors

Modified: head/share/misc/pci_vendors
==
--- head/share/misc/pci_vendors Fri Nov  2 10:53:42 2012(r242470)
+++ head/share/misc/pci_vendors Fri Nov  2 11:13:44 2012(r242471)
@@ -3,11 +3,11 @@
 #
 #  List of PCI ID's
 #
-#  Version: 2011.07.14
-#  Date:2011-07-14 03:15:06
+#  Version: 2012.10.24
+#  Date:2012-10-24 03:15:01
 #
 #  Maintained by Martin Mares  and other volunteers from the
-#  PCI ID Project at http://pciids.sf.net/.
+#  PCI ID Project at http://pci-ids.ucw.cz/.
 #
 #  New data are always welcome, especially if they are accurate. If you 
have
 #  anything to contribute, please follow the instructions at the web site.
@@ -76,6 +76,7 @@
 02ac  SpeedStream
1012  1012 PCMCIA 10/100 Ethernet Card [RTL81xx]
 02e0  XFX Pine Group Inc
+0303  Hewlett-Packard Company (Wrong ID)
 0308  ZyXEL Communications Corporation
 0315  SK-Electronics Co., Ltd.
 0357  TTTech AG
@@ -89,12 +90,11 @@
 04b3  IBM Corp.
4001  Remote System Administration device [RSA2]
 050d  Belkin
-058f  Alcor Micro Corporation
 05a9  OmniVision
8519  OV519 series
 05e3  CyberDoor
0701  CBD516
-066f  Sigmatel Inc.
+066f  SigmaTel
3410  SMTP3410
3500  SMTP3500
 0675  Dynalink
@@ -123,8 +123,8 @@
 08e6  Gemalto NV
 08ff  AuthenTec
afe4  [Anchor] AF-S2 FingerLoc Sensor Module
-0925  First International Computer, Inc.
-   1234  VA-502 Mainboard
+0925  VIA Technologies, Inc. (Wrong ID)
+   1234  VT82C686/A/B USB Controller
 093a  PixArt Imaging Inc.
010e  Innovage Mini Digital Camera
010f  SDC-300 Webcam
@@ -153,8 +153,6 @@
0906  RCB24FXX 24-channel modular analog telphony card
0a06  RCB672FXX 672-channel modular analog telphony card
 0b3d  Brontes Technologies
-0b49  ASCII Corporation
-   064f  Trance Vibrator
 0ccd  TerraTec Electronic GmbH
0038  Cinergy T^2 DVB-T Receiver
 0e11  Compaq Computer Corporation
@@ -205,6 +203,7 @@
7020  USB Controller
a0ec  Fibre Channel Host Controller
a0f0  Advanced System Management Controller
+   0e11 b0f3  ProLiant DL360
a0f3  Triflex PCI to ISA Bridge
a0f7  PCI Hotplug Controller
8086 002a  PCI Hotplug Controller A
@@ -328,6 +327,8 @@
4c53 1080  CT8 mainboard
4c53 1300  P017 mezzanine (32-bit PMC)
4c53 1310  P017 mezzanine (64-bit PMC)
+   002f  MegaRAID SAS 2208 IOV [Thunderbolt]
+   1028 1f3e  SPERC 8
0030  53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI
0e11 00da  ProLiant ML 350
1028 0123  LSI Logic 1020/1030
@@ -378,6 +379,11 @@
0059  MegaRAID SAS 8208ELP/8208ELP
005a  SAS1066E PCI-Express Fusion-MPT SAS
005b  MegaRAID SAS 2208 [Thunderbolt]
+   1000 9265  MegaRAID SAS 9265-8i
+   1000 9266  MegaRAID SAS 9266-8i
+   1000 9268  MegaRAID SAS 9265CV-8i / 9270CV-8i
+   1014 040b  ServeRAID M5110 SAS/SATA Controller
+   1014 0412  ServeRAID M5110e SAS/SATA Controller
1028 1f2d  PERC H810 Adapter
1028 1f30  PERC H710 Embedded
1028 1f31  PERC H710P Adapter
@@ -386,9 +392,11 @@
1028 1f35  PERC H710 Adapter
1028 1f37  PERC H710 Mini (for blades)
1028 1f38  PERC H710 Mini (for monolithics)
+   8086 3513  RMS25CB080 RAID Controller
005c  SAS1064A PCI-X Fusion-MPT SAS
005d  MegaRAID SAS-3 3108 [Invader]
005e  SAS1066 PCI-X Fusion-MPT SAS
+   005f  MegaRAID SAS-3 3008 [Fury]
0060  MegaRAID SAS 1078
1000 1006  MegaRAID SAS ELP
1000 100a  MegaRAID SAS 8708ELP
@@ -419,13 +427,14 @@
8086 1010  RAID Controller SRCSATA28E
8086 34cc  Integrated RAID Controller SROMBSAS28E
8086 34cd  Integrated RAID Controller SROMBSAS28E
+   8086 3505  Integrated RAID Controller SROMBSASMP2
0062  SAS1078 PCI-Express Fusion-MPT SAS
1000 0062  SAS1078 PCI-Express Fusion-MPT SAS
0064  SAS2116 PCI-Express Fusion-MPT SAS-2 [Meteor]
0065  SAS2116 PCI-Express Fusion-MPT SAS-2 [Meteor]
006e  SAS2308 PCI-Express Fusion-MPT SAS-2
0070  SAS2004 PCI-Express Fusion-MPT SAS-2 [Spitfire]
-   0071  MR SAS HBA
+   0071  MR SAS HBA 2004
0072  SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]
1028 1f1c  6Gbps SAS HBA Adapter
1028 1f1d  PERC H200 Adap

svn commit: r235420 - vendor/pciids/dist

2012-05-13 Thread Philip Paeps
Author: philip
Date: Mon May 14 00:59:44 2012
New Revision: 235420
URL: http://svn.freebsd.org/changeset/base/235420

Log:
  Import a recent snapshot of the PCI ID Repository.

Modified:
  vendor/pciids/dist/pci.ids

Modified: vendor/pciids/dist/pci.ids
==
--- vendor/pciids/dist/pci.ids  Sun May 13 23:27:06 2012(r235419)
+++ vendor/pciids/dist/pci.ids  Mon May 14 00:59:44 2012(r235420)
@@ -1,11 +1,11 @@
 #
 #  List of PCI ID's
 #
-#  Version: 2011.07.14
-#  Date:2011-07-14 03:15:06
+#  Version: 2012.05.07
+#  Date:2012-05-07 03:15:01
 #
 #  Maintained by Martin Mares  and other volunteers from the
-#  PCI ID Project at http://pciids.sf.net/.
+#  PCI ID Project at http://pci-ids.ucw.cz/.
 #
 #  New data are always welcome, especially if they are accurate. If you 
have
 #  anything to contribute, please follow the instructions at the web site.
@@ -74,6 +74,7 @@
 02ac  SpeedStream
1012  1012 PCMCIA 10/100 Ethernet Card [RTL81xx]
 02e0  XFX Pine Group Inc
+0303  Hewlett-Packard Company (Wrong ID)
 0308  ZyXEL Communications Corporation
 0315  SK-Electronics Co., Ltd.
 0357  TTTech AG
@@ -92,7 +93,7 @@
8519  OV519 series
 05e3  CyberDoor
0701  CBD516
-066f  Sigmatel Inc.
+066f  SigmaTel
3410  SMTP3410
3500  SMTP3500
 0675  Dynalink
@@ -151,8 +152,6 @@
0906  RCB24FXX 24-channel modular analog telphony card
0a06  RCB672FXX 672-channel modular analog telphony card
 0b3d  Brontes Technologies
-0b49  ASCII Corporation
-   064f  Trance Vibrator
 0ccd  TerraTec Electronic GmbH
0038  Cinergy T^2 DVB-T Receiver
 0e11  Compaq Computer Corporation
@@ -376,6 +375,8 @@
0059  MegaRAID SAS 8208ELP/8208ELP
005a  SAS1066E PCI-Express Fusion-MPT SAS
005b  MegaRAID SAS 2208 [Thunderbolt]
+   1014 040b  ServeRAID M5110 SAS/SATA Controller
+   1014 0412  ServeRAID M5110e SAS/SATA Controller
1028 1f2d  PERC H810 Adapter
1028 1f30  PERC H710 Embedded
1028 1f31  PERC H710P Adapter
@@ -384,6 +385,7 @@
1028 1f35  PERC H710 Adapter
1028 1f37  PERC H710 Mini (for blades)
1028 1f38  PERC H710 Mini (for monolithics)
+   8086 3513  RMS25PB080 RAID Controller
005c  SAS1064A PCI-X Fusion-MPT SAS
005d  MegaRAID SAS-3 3108 [Invader]
005e  SAS1066 PCI-X Fusion-MPT SAS
@@ -417,13 +419,14 @@
8086 1010  RAID Controller SRCSATA28E
8086 34cc  Integrated RAID Controller SROMBSAS28E
8086 34cd  Integrated RAID Controller SROMBSAS28E
+   8086 3505  Integrated RAID Controller SROMBSASMP2
0062  SAS1078 PCI-Express Fusion-MPT SAS
1000 0062  SAS1078 PCI-Express Fusion-MPT SAS
0064  SAS2116 PCI-Express Fusion-MPT SAS-2 [Meteor]
0065  SAS2116 PCI-Express Fusion-MPT SAS-2 [Meteor]
006e  SAS2308 PCI-Express Fusion-MPT SAS-2
0070  SAS2004 PCI-Express Fusion-MPT SAS-2 [Spitfire]
-   0071  MR SAS HBA
+   0071  MR SAS HBA 2004
0072  SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]
1028 1f1c  6Gbps SAS HBA Adapter
1028 1f1d  PERC H200 Adapter
@@ -432,7 +435,7 @@
1028 1f20  PERC H200 Embedded
1028 1f22  Internal Tape Adapter
8086 350f  RMS2LL040 RAID Controller
-   0073  MegaRAID SAS 9240
+   0073  MegaRAID SAS 2008 [Falcon]
1000 9240  MegaRAID SAS 9240-8i
1000 9241  MegaRAID SAS 9240-4i
1014 03b1  ServeRAID M1015 SAS/SATA Controller
@@ -446,6 +449,8 @@
1054 3035  LSI MegaRAID SAS 9240-8i
1137 0072  2004 iMR ROMB
1137 0073  2008 ROMB
+   1137 00b0  UCSC RAID SAS 2008M-8i
+   1137 00b1  UCSC RAID SAS 2008M-8i
15d9 0400  Supermicro SMC2008-iMR
1734 1177  RAID Ctrl SAS 6G 0/1 (D2607)
8086 350d  RMS2AF040 RAID Controller
@@ -462,6 +467,8 @@
1000 9262  MegaRAID SAS 9262-8i
1000 9263  MegaRAID SAS 9261-8i
1000 9264  MegaRAID SAS 9264-8i
+   1000 9267  MegaRAID SAS 9260CV-4i
+   1000 9268  MegaRAID SAS 9260CV-8i
1000 9275  MegaRAID SAS 9280-8ex
1000 9276  MR9260-16i
1000 9280  MegaRAID SAS 9280-8e
@@ -496,6 +503,7 @@
0085  SAS2208 PCI-Express Fusion-MPT SAS-2
0086  SAS2308 PCI-Express Fusion-MPT SAS-2
0087  SAS2308 PCI-Express Fusion-MPT SAS-2
+   1590 0044  H220i
008f  53c875J
1092 8000  FirePort 40 SCSI Controller
1092 8760  FirePort 40 Dual SCSI Host Adapter
@@ -531,7 +539,7 @@
8086 3008  MegaRAID RAID Cont

svn commit: r235421 - vendor/pciids/pciids-20120507

2012-05-13 Thread Philip Paeps
Author: philip
Date: Mon May 14 01:01:39 2012
New Revision: 235421
URL: http://svn.freebsd.org/changeset/base/235421

Log:
  Tag current snapshot of the PCI ID Repository.

Added:
  vendor/pciids/pciids-20120507/
 - copied from r235420, vendor/pciids/dist/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Philip Paeps
On 2009-11-11 21:30:58 (+), Xin LI  wrote:
> Log:
>   Add interface description capability as inspired by OpenBSD.

In addition to the comments already made, I'd also like to note that it would
make a lot of sense to announce changes in interface descriptions to the
routing socket.  That way, SNMP or other userspace consumers (a daemon sending
CDP announcements, for instance - though arguably the kernel could send those)
can be notified of changes rather than having to poll for them.

 - Philip

-- 
Philip PaepsPlease don't Cc me, I am
phi...@freebsd.org   subscribed to the list.

  BOFH Excuse #363:
Out of cards on drive D:
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r200574 - svnadmin/conf

2009-12-15 Thread Philip Paeps
Author: philip
Date: Tue Dec 15 12:32:00 2009
New Revision: 200574
URL: http://svn.freebsd.org/changeset/base/200574

Log:
  Take jb's commit bit into safekeeping.
  
  Rest in peace.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessTue Dec 15 10:43:20 2009(r200573)
+++ svnadmin/conf/accessTue Dec 15 12:32:00 2009(r200574)
@@ -98,7 +98,6 @@ ivoras
 iwasaki
 jamie
 jasone
-jb
 jeff
 jfv
 jh
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r201198 - head/sys/dev/mge

2009-12-29 Thread Philip Paeps
Author: philip
Date: Tue Dec 29 14:00:17 2009
New Revision: 201198
URL: http://svn.freebsd.org/changeset/base/201198

Log:
  Fix autonegotiation: tell the MAC where to find the PHY.
  Fix crashes in the detach path.
  
  Submitted by: Kristof Provost 
  MFC after:1 month

Modified:
  head/sys/dev/mge/if_mge.c

Modified: head/sys/dev/mge/if_mge.c
==
--- head/sys/dev/mge/if_mge.c   Tue Dec 29 13:55:15 2009(r201197)
+++ head/sys/dev/mge/if_mge.c   Tue Dec 29 14:00:17 2009(r201198)
@@ -611,6 +611,7 @@ static int
 mge_attach(device_t dev)
 {
struct mge_softc *sc;
+   struct mii_softc *miisc;
struct ifnet *ifp;
uint8_t hwaddr[ETHER_ADDR_LEN];
int i, error ;
@@ -689,13 +690,15 @@ mge_attach(device_t dev)
error = mii_phy_probe(dev, &sc->miibus, mge_ifmedia_upd, 
mge_ifmedia_sts);
if (error) {
device_printf(dev, "MII failed to find PHY\n");
-   if_free(ifp);
-   sc->ifp = NULL;
mge_detach(dev);
return (error);
}
sc->mii = device_get_softc(sc->miibus);
 
+   /* Tell the MAC where to find the PHY so autoneg works */
+   miisc = LIST_FIRST(&sc->mii->mii_phys);
+   MGE_WRITE(sc, MGE_REG_PHYDEV, miisc->mii_phy);
+
/* Attach interrupt handlers */
for (i = 0; i < 2; ++i) {
error = bus_setup_intr(dev, sc->res[1 + i],
@@ -704,7 +707,7 @@ mge_attach(device_t dev)
if (error) {
device_printf(dev, "could not setup %s\n",
mge_intrs[i].description);
-   ether_ifdetach(sc->ifp);
+   mge_detach(dev);
return (error);
}
}
@@ -729,6 +732,9 @@ mge_detach(device_t dev)
 
/* Stop and release all interrupts */
for (i = 0; i < 2; ++i) {
+   if (!sc->ih_cookie[i])
+   continue;
+
error = bus_teardown_intr(dev, sc->res[1 + i], 
sc->ih_cookie[i]);
if (error)
device_printf(dev, "could not release %s\n",
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r210462 - svnadmin/conf

2010-07-25 Thread Philip Paeps
Author: philip
Date: Sun Jul 25 10:06:56 2010
New Revision: 210462
URL: http://svn.freebsd.org/changeset/base/210462

Log:
  Take murray's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessSun Jul 25 08:42:18 2010(r210461)
+++ svnadmin/conf/accessSun Jul 25 10:06:56 2010(r210462)
@@ -158,7 +158,6 @@ mp
 mpp
 mr
 mtm
-murray
 mux
 n_hibmadevnull
 neel
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r210685 - svnadmin/conf

2010-07-31 Thread Philip Paeps
Author: philip
Date: Sat Jul 31 14:57:38 2010
New Revision: 210685
URL: http://svn.freebsd.org/changeset/base/210685

Log:
  Take cbzimmer's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access
  svnadmin/conf/mentors

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessSat Jul 31 14:57:33 2010(r210684)
+++ svnadmin/conf/accessSat Jul 31 14:57:38 2010(r210685)
@@ -42,7 +42,6 @@ brueffer
 bruno
 bschmidt
 bz
-cbzimmer
 ceri
 charnier
 cognet

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Sat Jul 31 14:57:33 2010(r210684)
+++ svnadmin/conf/mentors   Sat Jul 31 14:57:38 2010(r210685)
@@ -14,7 +14,6 @@ aemav Co-mentor: kib
 anchie bz
 andrew imp
 brucec rrs
-cbzimmer   sam
 dchaginkib
 erimlaier  Co-mentor: thompsa
 gabor  delphij
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r212255 - svnadmin/conf

2010-09-06 Thread Philip Paeps
Author: philip
Date: Mon Sep  6 12:55:07 2010
New Revision: 212255
URL: http://svn.freebsd.org/changeset/base/212255

Log:
  Restore Thomas Quinot's (thomas) commit bit per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessMon Sep  6 11:02:50 2010(r212254)
+++ svnadmin/conf/accessMon Sep  6 12:55:07 2010(r212255)
@@ -221,6 +221,7 @@ suz
 syrinx
 takawata
 tanimura
+thomas
 thompsa
 ticso
 tijl
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: moving sctp to a separate directory ? (Re: svn commit: r201523 - head/sys/netinet)

2010-01-07 Thread Philip Paeps
On 2010-01-04 23:23:23 (+0100), Luigi Rizzo  wrote:
> This was the reason why I moved ipfw-related stuff out of the way
> and plan to do the same with tcp unless someone precedes me.

Please discuss this on -net or so first.  I have worked in an environment
where tcp was moved out of netinet when it was imported (around 2.2.8-time)
and it opens the door to a number of strange phenomena.

What do you do with udp, for instance?  Compared to tcp and sctp, it's
trivial in terms of code, but it's an upper layer protocol from the
perspective of netinet/netinet6 - do we put it in its own directory too?

Also note that this won't only cause churn for people who have patches against
or (out-of-tree) branches from netinet/, but also in other kernel subsystems
which rely on tcp -- nfs, for instance.

I would be very hesitant to do this...

> Just checked, in 2.2 (which was some 12 years ago) netinet/
> had 46 files and 21k lines, of which tcp accounted for 13 files/6K lines.
> Compare with 156 files/153k lines (tcp: 24 files, 16k lines) in HEAD now.

TCP has got a bit more complicated in its old age. :-)

I think the naming convention we have under netinet/ is clear enough...  We
don't pay per dirent these days.

 - Philip

-- 
Philip PaepsPlease don't Cc me, I am
phi...@freebsd.org   subscribed to the list.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r203111 - svnadmin/conf

2010-01-28 Thread Philip Paeps
Author: philip
Date: Thu Jan 28 10:50:09 2010
New Revision: 203111
URL: http://svn.freebsd.org/changeset/base/203111

Log:
  Add Ulrich Spörlein (uqs) as a src committer.  I will be his mentor.
  
  Approved by:  core

Modified:
  svnadmin/conf/access
  svnadmin/conf/mentors

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessThu Jan 28 09:25:34 2010(r203110)
+++ svnadmin/conf/accessThu Jan 28 10:50:09 2010(r203111)
@@ -218,6 +218,7 @@ truckman
 tuexen
 ume
 ups
+uqs
 vanhu
 versus
 weongyo

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Thu Jan 28 09:25:34 2010(r203110)
+++ svnadmin/conf/mentors   Thu Jan 28 10:50:09 2010(r203111)
@@ -26,5 +26,6 @@ sbrunoscottl
 snbdwmalone
 sson   gnn
 versus dds
+uqsphilip
 will   ken
 zmldfr
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r207932 - svnadmin/conf

2010-05-11 Thread Philip Paeps
Author: philip
Date: Tue May 11 21:07:47 2010
New Revision: 207932
URL: http://svn.freebsd.org/changeset/base/207932

Log:
  Release uqs from mentorship.  He is now free to collect his own pointy hats!

Modified:
  svnadmin/conf/mentors

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Tue May 11 19:26:17 2010(r207931)
+++ svnadmin/conf/mentors   Tue May 11 21:07:47 2010(r207932)
@@ -26,7 +26,6 @@ rstoneemaste  Co-mentor: jkoshy
 sbruno scottl
 snbdwmalone
 sson   gnn
-uqsphilip  Co-mentor: ed
 versus dds
 will   ken
 zmldfr
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r187296 - svnadmin/conf

2009-01-15 Thread Philip Paeps
Author: philip
Date: Thu Jan 15 09:12:41 2009
New Revision: 187296
URL: http://svn.freebsd.org/changeset/base/187296

Log:
  Restore Martin Cracauer's src commit bit per his request to core.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessThu Jan 15 08:01:50 2009(r187295)
+++ svnadmin/conf/accessThu Jan 15 09:12:41 2009(r187296)
@@ -43,6 +43,7 @@ charnier
 cognet
 cokane
 cperciva
+cracauer
 csjp
 daichi
 darrenr
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r183975 - head/share/syscons/keymaps

2008-10-17 Thread Philip Paeps
Author: philip
Date: Fri Oct 17 14:07:39 2008
New Revision: 183975
URL: http://svn.freebsd.org/changeset/base/183975

Log:
  Add the nordic keyboard layout for Asus eee devices.
  
  PR:   126841
  Submitted by: Peter 
  MFC after:3 days

Added:
  head/share/syscons/keymaps/eee_nordic.kbd   (contents, props changed)
Modified:
  head/share/syscons/keymaps/INDEX.keymaps

Modified: head/share/syscons/keymaps/INDEX.keymaps
==
--- head/share/syscons/keymaps/INDEX.keymapsFri Oct 17 13:28:53 2008
(r183974)
+++ head/share/syscons/keymaps/INDEX.keymapsFri Oct 17 14:07:39 2008
(r183975)
@@ -99,6 +99,8 @@ danish.cp865.kbd:fr:Danois Code page 865
 danish.cp865.kbd:pt:Dinamarqu�s Codepage 865
 danish.cp865.kbd:es:Dan�s Codepage 865
 
+eee_nordic.kbd:en:Nordic layout on Asus eeePC
+
 el.iso07.kbd:en:Greek ISO-8859-7 (104 keys)
 el.iso07.kbd:el: ISO-8859-7 (104 )
 

Added: head/share/syscons/keymaps/eee_nordic.kbd
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/share/syscons/keymaps/eee_nordic.kbd   Fri Oct 17 14:07:39 2008
(r183975)
@@ -0,0 +1,131 @@
+# $FreeBSD$
+# alt
+# scan   cntrl  altalt   cntrl lock
+# code  base   shift  cntrl  shift  altshift  cntrl  shift state
+# --
+  000   nopnopnopnopnopnopnopnop O
+  001   escescescescescescdebug  esc O
+  002   '1''!'nopnopnopnopnopnop O
+  003   '2''"'nulnul'@''@'nulnul O
+  004   '3''#'nopnop163nopnopnop O
+  005   '4'164nopnop'$'nopnopnop O
+  006   '5''%'nopnopnopnopnopnop O
+  007   '6''&'nopnopnopnopnopnop O
+# Alt + Shift + 7 = ÷
+  008   '7''/'nopnop'{''÷'nopnop O
+  009   '8''('nopnop'['nopnopnop O
+  010   '9'')'nopnop']'nopgs nop O
+  011   '0''='nopnop'}'nopnopnop O
+  012   '+''?'nopnop'\'nopfs nop O
+# For left of backspace key, gives with Alt=' and Alt+Shift+Key=|
+  013   128'`'nopnop39 '|'nopnop O
+  014   bs bs deldelbs bs deldel O
+  015   ht btab   nopnopht btab   nopnop O
+  016   'q''Q'dc1dc1'q''Q'dc1dc1 C
+  017   'w''W'etbetb'w''W'etbetb C
+# Alt + Ctrl + E = French e (as in café)
+  018   'e''E'enqenq164'E''é'enq C
+# Alt + R = Copyright sign
+  019   'r''R'dc2dc2'®''R'dc2dc2 C
+  020   't''T'dc4dc4't''T'dc4dc4 C
+  021   'y''Y'em em 'y''Y'em em  C
+# Alt + U = Mikro,  Alt + Shift + U = German u
+  022   'u''U'naknak'µ''U''ü''Ü' C
+  023   'i''I'ht ht 'i''I'ht ht  C
+# Alt + O = Norwegian/Danish Ö
+  024   'o''O'si si 'ø''Ø'si si  C
+# Alt + P = Pi
+  025   'p''P'dledle'¶''P'dledle C
+  026   229197nopnop'}'']'nopnop C
+  027   168'^'nopnop'~'nopnopnop O
+  028   cr cr nl nl cr cr nl nl  O
+  029   lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl   O
+# Alt + A = At sign,  Ctrl+Alt = ae,  Ctrl+Alt+Shift = AE
+  030   'a''A'sohsoh'@''A''æ''Æ' C
+  031   's''S'dc3dc3's''S'dc3dc3 C
+  032   'd''D'eoteot'd''D'eoteot C
+  033   'f''F'ackack'f''F'ackack C
+  034   'g''G'belbel'g''G'belbel C
+  035   'h''H'bs bs 'h''H'bs bs  C
+  036   'j''J'nl nl 'j''J'nl nl  C
+  037   'k''K'vt vt 'k''K'vt vt  C
+  038   'l''L'ff ff 'l''L'ff ff  C
+  039   246214nopnop'|''\'nopnop C
+  040   228196nopnop'{''['nopnop C
+  041   167189nopnop'\''|'nopnop O
+  042   lshift lshift lshift lshift lshift lshift lshift lshift  O
+  043   ''''*'nopnopnopnopnopnop O
+# Alt + Z = Pipe
+  044   'z''Z'subsub'|''Z'subsub C
+  045   'x''X'

svn commit: r183977 - head/usr.sbin/sysinstall

2008-10-17 Thread Philip Paeps
Author: philip
Date: Fri Oct 17 14:40:03 2008
New Revision: 183977
URL: http://svn.freebsd.org/changeset/base/183977

Log:
  Adjust default keymaps for Ireland and Channel Islands.  They use the UK
  keymap.  You can learn some interesting things in the PR database!
  
  PR:   conf/124411
  Submitted by: Doctor Modiford 
  MFC after:3 days

Modified:
  head/usr.sbin/sysinstall/keymap.c

Modified: head/usr.sbin/sysinstall/keymap.c
==
--- head/usr.sbin/sysinstall/keymap.c   Fri Oct 17 14:37:58 2008
(r183976)
+++ head/usr.sbin/sysinstall/keymap.c   Fri Oct 17 14:40:03 2008
(r183977)
@@ -82,6 +82,10 @@ keymapMenuSelect(dialogMenuItem *self)
{"se", "swedish"},
{"ch", "swiss"},
{"gb", "uk"},
+   {"gg", "uk"},
+   {"ie", "uk"},
+   {"im", "uk"},
+   {"je", "uk"},
{NULL, NULL}
 };
 const char *country, *lang;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


svn commit: r184175 - stable/7/usr.sbin/sysinstall

2008-10-22 Thread Philip Paeps
Author: philip
Date: Wed Oct 22 19:27:40 2008
New Revision: 184175
URL: http://svn.freebsd.org/changeset/base/184175

Log:
  MFC r183977: Adjust default keymaps for Ireland and Channel Islands.
  
  PR:   conf/124411
  Submitted by: Doctor Modiford 
  Approved by:  re (gnn)

Modified:
  stable/7/usr.sbin/sysinstall/   (props changed)
  stable/7/usr.sbin/sysinstall/keymap.c

Modified: stable/7/usr.sbin/sysinstall/keymap.c
==
--- stable/7/usr.sbin/sysinstall/keymap.c   Wed Oct 22 18:25:13 2008
(r184174)
+++ stable/7/usr.sbin/sysinstall/keymap.c   Wed Oct 22 19:27:40 2008
(r184175)
@@ -82,6 +82,10 @@ keymapMenuSelect(dialogMenuItem *self)
{"se", "swedish"},
{"ch", "swiss"},
{"gb", "uk"},
+   {"gg", "uk"},
+   {"ie", "uk"},
+   {"im", "uk"},
+   {"je", "uk"},
{NULL, NULL}
 };
 const char *country, *lang;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


svn commit: r185021 - head/sys/dev/glxsb

2008-11-16 Thread Philip Paeps
Author: philip
Date: Mon Nov 17 07:09:40 2008
New Revision: 185021
URL: http://svn.freebsd.org/changeset/base/185021

Log:
  Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).
  
  Spotted by:   Coverity
  MFC after:1 week

Modified:
  head/sys/dev/glxsb/glxsb.c

Modified: head/sys/dev/glxsb/glxsb.c
==
--- head/sys/dev/glxsb/glxsb.c  Mon Nov 17 07:03:05 2008(r185020)
+++ head/sys/dev/glxsb/glxsb.c  Mon Nov 17 07:09:40 2008(r185021)
@@ -358,7 +358,8 @@ glxsb_detach(device_t dev)
return (EBUSY);
}
}
-   while ((ses = TAILQ_FIRST(&sc->sc_sessions)) != NULL) {
+   while (!TAILQ_EMPTY(&sc->sc_sessions)) {
+   ses = TAILQ_FIRST(&sc->sc_sessions);
TAILQ_REMOVE(&sc->sc_sessions, ses, ses_next);
free(ses, M_GLXSB);
}
@@ -867,8 +868,11 @@ glxsb_crypto_process(device_t dev, struc
 
enccrd = maccrd = NULL;
 
-   if (crp == NULL ||
-   crp->crp_callback == NULL || crp->crp_desc == NULL) {
+   /* Sanity check. */
+   if (crp == NULL)
+   return (EINVAL);
+
+   if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
error = EINVAL;
goto fail;
}
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: svn commit: r185021 - head/sys/dev/glxsb

2008-11-17 Thread Philip Paeps
On 2008-11-17 17:51:52 (+0100), Pawel Jakub Dawidek <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 17, 2008 at 07:09:40AM +0000, Philip Paeps wrote:
> > Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).
> >
> > [...]
> >
> > -   while ((ses = TAILQ_FIRST(&sc->sc_sessions)) != NULL) {
> > +   while (!TAILQ_EMPTY(&sc->sc_sessions)) {
> > +   ses = TAILQ_FIRST(&sc->sc_sessions);
> 
> This is perfectly valid, and if it was reported by coverity, it is a
> false positive.

True.  Sorry for the noise.
Reminds me to find a way to get Coverity not to complain about this.

> > -   if (crp == NULL ||
> > -   crp->crp_callback == NULL || crp->crp_desc == NULL) {
> > +   /* Sanity check. */
> > +   if (crp == NULL)
> > +   return (EINVAL);
> > +
> > +   if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
> > error = EINVAL;
> >     goto fail;
> > }
> 
> This one is ok. The same one exists in padlock(4), could you fix it too?

Will do.  Thanks.

 - Philip

-- 
Philip PaepsPlease don't Cc me, I am
[EMAIL PROTECTED]   subscribed to the list.

  The worse your line is tangled, the better is the
  fishing around you.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


svn commit: r185026 - head/sys/crypto/via

2008-11-17 Thread Philip Paeps
Author: philip
Date: Mon Nov 17 19:00:36 2008
New Revision: 185026
URL: http://svn.freebsd.org/changeset/base/185026

Log:
  Fix a potential NULL-pointer dereference in padlock(4).
  
  Spotted by:   Coverity (via pjd)
  MFC after:1 week

Modified:
  head/sys/crypto/via/padlock.c

Modified: head/sys/crypto/via/padlock.c
==
--- head/sys/crypto/via/padlock.c   Mon Nov 17 18:45:07 2008
(r185025)
+++ head/sys/crypto/via/padlock.c   Mon Nov 17 19:00:36 2008
(r185026)
@@ -297,7 +297,11 @@ padlock_process(device_t dev, struct cry
 
enccrd = maccrd = NULL;
 
-   if (crp == NULL || crp->crp_callback == NULL || crp->crp_desc == NULL) {
+   /* Sanity check. */
+   if (crp == NULL)
+   return (EINVAL);
+
+   if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
error = EINVAL;
goto out;
}
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


svn commit: r185762 - svnadmin/conf

2008-12-08 Thread Philip Paeps
Author: philip
Date: Mon Dec  8 12:04:00 2008
New Revision: 185762
URL: http://svn.freebsd.org/changeset/base/185762

Log:
  Take dhartmei's commit bit into safekeeping per his request.
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessMon Dec  8 11:04:17 2008(r185761)
+++ svnadmin/conf/accessMon Dec  8 12:04:00 2008(r185762)
@@ -57,7 +57,6 @@ delphij
 des
 dfr
 dg
-dhartmei
 dougb
 dumbbell
 dwhite
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


svn commit: r207389 - svnadmin/conf

2010-04-29 Thread Philip Paeps
Author: philip
Date: Thu Apr 29 21:22:21 2010
New Revision: 207389
URL: http://svn.freebsd.org/changeset/base/207389

Log:
  Take bushman's commit bit into safekeeping per his request (a while ago now).
  
  Approved by:  core

Modified:
  svnadmin/conf/access

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessThu Apr 29 20:08:49 2010(r207388)
+++ svnadmin/conf/accessThu Apr 29 21:22:21 2010(r207389)
@@ -39,7 +39,6 @@ brucec
 brueffer
 bruno
 bschmidt
-bushman
 bz
 cbzimmer
 ceri
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r207436 - head/tools/tools/nanobsd

2010-04-30 Thread Philip Paeps
Author: philip
Date: Fri Apr 30 15:12:30 2010
New Revision: 207436
URL: http://svn.freebsd.org/changeset/base/207436

Log:
  Fix typo in usage message.  Add -n to the list of valid arguments.
  
  MFC after:1 day

Modified:
  head/tools/tools/nanobsd/nanobsd.sh

Modified: head/tools/tools/nanobsd/nanobsd.sh
==
--- head/tools/tools/nanobsd/nanobsd.sh Fri Apr 30 13:54:18 2010
(r207435)
+++ head/tools/tools/nanobsd/nanobsd.sh Fri Apr 30 15:12:30 2010
(r207436)
@@ -682,12 +682,12 @@ pprint() {
 
 usage () {
(
-   echo "Usage: $0 [-bikqvw] [-c config_file]"
+   echo "Usage: $0 [-biknqvw] [-c config_file]"
echo "  -b  suppress builds (both kernel and world)"
echo "  -i  suppress disk image build"
echo "  -k  suppress buildkernel"
echo "  -n  add -DNO_CLEAN to buildworld, buildkernel, etc"
-   echo "  -q  make output more quite"
+   echo "  -q  make output more quiet"
echo "  -v  make output more verbose"
echo "  -w  suppress buildworld"
echo "  -c  specify config file"
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r274966 - head/sys/net

2014-11-24 Thread Philip Paeps
Author: philip
Date: Mon Nov 24 14:00:27 2014
New Revision: 274966
URL: https://svnweb.freebsd.org/changeset/base/274966

Log:
  Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
  should delete configured addresses and routes when the interface is
  closed.  Default is enabled (preserve current behaviour).
  
  MFC after:1 week

Modified:
  head/sys/net/if_tap.c

Modified: head/sys/net/if_tap.c
==
--- head/sys/net/if_tap.c   Mon Nov 24 13:02:39 2014(r274965)
+++ head/sys/net/if_tap.c   Mon Nov 24 14:00:27 2014(r274966)
@@ -156,6 +156,7 @@ static int  tapdebug = 0;/* deb
 static int tapuopen = 0;/* allow user open() */
 static int tapuponopen = 0;/* IFF_UP on open() */
 static int tapdclone = 1;  /* enable devfs cloning */
+static int tapclosedeladdrs = 1; /* del addrs on close */
 static SLIST_HEAD(, tap_softc) taphead; /* first device */
 static struct clonedevs*tapclones;
 
@@ -172,6 +173,9 @@ SYSCTL_INT(_net_link_tap, OID_AUTO, up_o
"Bring interface up when /dev/tap is opened");
 SYSCTL_INT(_net_link_tap, OID_AUTO, devfs_cloning, CTLFLAG_RWTUN, &tapdclone, 
0,
"Enably legacy devfs interface creation");
+SYSCTL_INT(_net_link_tap, OID_AUTO, deladdrs_on_close, CTLFLAG_RW,
+   &tapclosedeladdrs, 0, "Delete addresses and routes when /dev/tap is "
+   "closed");
 SYSCTL_INT(_net_link_tap, OID_AUTO, debug, CTLFLAG_RW, &tapdebug, 0, "");
 
 DEV_MODULE(if_tap, tapmodevent, NULL);
@@ -536,7 +540,8 @@ tapclose(struct cdev *dev, int foo, int 
 * interface, if we are in VMnet mode. just close the device.
 */
 
-   if (((tp->tap_flags & TAP_VMNET) == 0) && (ifp->if_flags & IFF_UP)) {
+   if (tapclosedeladdrs == 1 && ((tp->tap_flags & TAP_VMNET) == 0) &&
+   (ifp->if_flags & IFF_UP)) {
mtx_unlock(&tp->tap_mtx);
if_down(ifp);
mtx_lock(&tp->tap_mtx);
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r274966 - head/sys/net

2014-11-24 Thread Philip Paeps
On 2014-11-24 22:40:22 (+0300), Gleb Smirnoff  wrote:
> On Mon, Nov 24, 2014 at 02:00:28PM +0000, Philip Paeps wrote:
> P> Author: philip
> P> Date: Mon Nov 24 14:00:27 2014
> P> New Revision: 274966
> P> URL: https://svnweb.freebsd.org/changeset/base/274966
> P> 
> P> Log:
> P>   Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
> P>   should delete configured addresses and routes when the interface is
> P>   closed.  Default is enabled (preserve current behaviour).
> P> 
> P>   MFC after:   1 week
> 
> Any time I see yet another sysctl knob added I ask myself: what if I want
> this feature on tap0 but doesn't want it on tap1? What if want it on host,
> but doesn't want it on vmnet-enabled jail? Where from could I learn about
> this sysctl if I am not subscribed to svn-src-*@?

I admit that this one was a hack written in anger a while back.  When I
hacked this, I was struggling with a bunch of bhyve instances with
fiddly point to point routes and every time I restarted a bhyve, I'd
have to fix my routing table again.  That got frustrating quickly.  Not
an excuse.  Just an explanation.

> Of course adding a sysctl knob is faster and easier for a FreeBSD hacker.
> But is it a better for a FreeBSD user? Are we making OS for just ourselves?
> 
> Look, we've got tapifioctl(). If you are too lazy to introduce new
> ioctl command and code it support in ifconfig, in this case you can just
> use any of IFF_LINK0, IFF_LINK1, IFF_LINK2 flag to toggle this feature
> via SIOCSIFFLAGS.  And then document it in tap(4).

Note that I semi-purposely didn't document this in tap(4).  I should
have pointed that out in the commit message, sorry.  When I wrote this,
this summer, I meant to ask about the magical and very legacy-looking
VMware vmnet hacks in the driver.  Are those still relevant?  Is there
still a VMWare port that relies on this?  What about the comment that
legacy devfs cloning interferes with ssh(1) (added seven years ago), is
that still true?

> Finally, if later some developer comes and does it in a proper way, then
> he would have a burden of supporting your sysctl for backwards compatibility,
> because you very quickly MFCed it.
> 
> P.S. I am sorry if my email sounds like old man's grumbling.

No problem.  I'm happy to fix this 'better'.  Old men often grumble
sense (I keep telling myself as I get older...).

Philip

-- 
Philip Paeps
Senior Reality Engineer
Ministry of Information
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r280367 - svnadmin/conf

2015-03-23 Thread Philip Paeps
Author: philip
Date: Mon Mar 23 12:59:13 2015
New Revision: 280367
URL: https://svnweb.freebsd.org/changeset/base/280367

Log:
  Welcome Kristof Provost (kp) as a new src committer.  His relentless attacks
  on bugs in pf and ipv6 couldn't possibly continue unpunished!
  
  gnn and I will be his mentors.
  
  Approved by:  core

Modified:
  svnadmin/conf/access
  svnadmin/conf/mentors

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessMon Mar 23 12:50:35 2015(r280366)
+++ svnadmin/conf/accessMon Mar 23 12:59:13 2015(r280367)
@@ -137,6 +137,7 @@ ken
 kensmith
 kevlo
 kib
+kp
 kuriyama
 loos
 lstewart

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Mon Mar 23 12:50:35 2015(r280366)
+++ svnadmin/conf/mentors   Mon Mar 23 12:59:13 2015(r280367)
@@ -25,6 +25,7 @@ jkh   rwatson
 jonathan   rwatson
 jwdrmacklem
 kadesaiken Co-mentor: scottl, ambrisko
+kp philip  Co-mentor: gnn
 mahrensmckusick
 miwi   rwatson
 monthadar  adrian
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r349597 - stable/12/contrib/tzdata

2019-07-02 Thread Philip Paeps
Author: philip
Date: Tue Jul  2 12:22:27 2019
New Revision: 349597
URL: https://svnweb.freebsd.org/changeset/base/349597

Log:
  MFC r349592: Import tzdata 2019b

Modified:
  stable/12/contrib/tzdata/Makefile
  stable/12/contrib/tzdata/NEWS
  stable/12/contrib/tzdata/africa
  stable/12/contrib/tzdata/antarctica
  stable/12/contrib/tzdata/asia
  stable/12/contrib/tzdata/australasia
  stable/12/contrib/tzdata/backzone
  stable/12/contrib/tzdata/checktab.awk
  stable/12/contrib/tzdata/europe
  stable/12/contrib/tzdata/factory
  stable/12/contrib/tzdata/northamerica
  stable/12/contrib/tzdata/pacificnew
  stable/12/contrib/tzdata/southamerica
  stable/12/contrib/tzdata/systemv
  stable/12/contrib/tzdata/theory.html
  stable/12/contrib/tzdata/version
  stable/12/contrib/tzdata/zishrink.awk
  stable/12/contrib/tzdata/zone.tab
  stable/12/contrib/tzdata/zone1970.tab
  stable/12/contrib/tzdata/zoneinfo2tdf.pl
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/tzdata/Makefile
==
--- stable/12/contrib/tzdata/Makefile   Tue Jul  2 08:47:18 2019
(r349596)
+++ stable/12/contrib/tzdata/Makefile   Tue Jul  2 12:22:27 2019
(r349597)
@@ -35,11 +35,13 @@ DATAFORM=   main
 
 LOCALTIME= GMT
 
-# If you want something other than Eastern United States time as a template
-# for handling ruleless POSIX-style timezone environment variables,
+# The POSIXRULES macro controls interpretation of nonstandard and obsolete
+# POSIX-like TZ settings like TZ='EET-2EEST' that lack DST transition rules.
+# In the reference implementation, if you want something other than Eastern
+# United States time as a template for handling these settings, you can
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# A setting like TZ='EET-2EEST' is supposed to use the rules in the
 # template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
@@ -49,6 +51,17 @@ LOCALTIME=   GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
+#
+# If POSIXRULES is empty, no template is installed; this is the intended
+# future default for POSIXRULES.
+#
+# Nonempty POSIXRULES is obsolete and should not be relied on, because:
+# * It does not work correctly in popular implementations such as GNU/Linux.
+# * It does not work in the tzdb implementation for timestamps after 2037.
+# * It is incompatible with 'zic -b slim' if POSIXRULES specifies transitions
+#   at standard time or UT rather than at local time.
+# In short, software should avoid ruleless settings like TZ='EET-2EEST'
+# and so should not depend on the value of POSIXRULES.
 
 POSIXRULES=America/New_York
 
@@ -231,6 +244,13 @@ LDLIBS=
 #  other than simply getting garbage data
 #  -DUSE_LTZ=0 to build zdump with the system time zone library
 #  Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
+#  -DZIC_BLOAT_DEFAULT=\"slim\" to default zic's -b option to "slim", and
+#  similarly for "fat".  Fat TZif files work around incompatibilities
+#  and bugs in some TZif readers, notably readers that mishandle 64-bit
+#  data in TZif files.  Slim TZif files are more efficient and do not
+#  work around these incompatibilities and bugs.  If not given, the
+#  current default is "fat" but this is intended to change as readers
+#  requiring fat files often mishandle timestamps after 2037 anyway.
 #  -DZIC_MAX_ABBR_LEN_WO_WARN=3
 #  (or some other number) to set the maximum time zone abbreviation length
 #  that zic will accept without a warning (the default is 6)
@@ -364,7 +384,9 @@ ZIC=$(zic) $(ZFLAGS)
 
 # To shrink the size of installed TZif files,
 # append "-r @N" to omit data before N-seconds-after-the-Epoch.
-# See the zic man page for more about -r.
+# You can also append "-b slim" if that is not already the default;
+# see ZIC_BLOAT_DEFAULT above.
+# See the zic man page for more about -b and -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -388,6 +410,9 @@ KSHELL= /bin/bash
 # Name of curl , used for HTML validation.
 CURL=  curl
 
+# Name of GNU Privacy Guard , used to sign distributions.
+GPG=   gpg
+
 # The path where SGML DTDs are kept and the catalog file(s) to use when
 # validating HTML 4.01.  The default should work on both Debian and Red Hat.
 SGML_TOPDIR= /usr
@@ -562,7 +587,9 @@ install:all $(DATA) $(REDO) $(MANS)
'$(DESTDIR)$(LIBDIR)' \
'$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \
'$(DESTDIR)$(MANDIR)/man8'
-

svn commit: r349598 - stable/11/contrib/tzdata

2019-07-02 Thread Philip Paeps
Author: philip
Date: Tue Jul  2 12:22:54 2019
New Revision: 349598
URL: https://svnweb.freebsd.org/changeset/base/349598

Log:
  MFC r349592: Import tzdata 2019b

Modified:
  stable/11/contrib/tzdata/Makefile
  stable/11/contrib/tzdata/NEWS
  stable/11/contrib/tzdata/africa
  stable/11/contrib/tzdata/antarctica
  stable/11/contrib/tzdata/asia
  stable/11/contrib/tzdata/australasia
  stable/11/contrib/tzdata/backzone
  stable/11/contrib/tzdata/checktab.awk
  stable/11/contrib/tzdata/europe
  stable/11/contrib/tzdata/factory
  stable/11/contrib/tzdata/northamerica
  stable/11/contrib/tzdata/pacificnew
  stable/11/contrib/tzdata/southamerica
  stable/11/contrib/tzdata/systemv
  stable/11/contrib/tzdata/theory.html
  stable/11/contrib/tzdata/version
  stable/11/contrib/tzdata/zishrink.awk
  stable/11/contrib/tzdata/zone.tab
  stable/11/contrib/tzdata/zone1970.tab
  stable/11/contrib/tzdata/zoneinfo2tdf.pl
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/tzdata/Makefile
==
--- stable/11/contrib/tzdata/Makefile   Tue Jul  2 12:22:27 2019
(r349597)
+++ stable/11/contrib/tzdata/Makefile   Tue Jul  2 12:22:54 2019
(r349598)
@@ -35,11 +35,13 @@ DATAFORM=   main
 
 LOCALTIME= GMT
 
-# If you want something other than Eastern United States time as a template
-# for handling ruleless POSIX-style timezone environment variables,
+# The POSIXRULES macro controls interpretation of nonstandard and obsolete
+# POSIX-like TZ settings like TZ='EET-2EEST' that lack DST transition rules.
+# In the reference implementation, if you want something other than Eastern
+# United States time as a template for handling these settings, you can
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# A setting like TZ='EET-2EEST' is supposed to use the rules in the
 # template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
@@ -49,6 +51,17 @@ LOCALTIME=   GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
+#
+# If POSIXRULES is empty, no template is installed; this is the intended
+# future default for POSIXRULES.
+#
+# Nonempty POSIXRULES is obsolete and should not be relied on, because:
+# * It does not work correctly in popular implementations such as GNU/Linux.
+# * It does not work in the tzdb implementation for timestamps after 2037.
+# * It is incompatible with 'zic -b slim' if POSIXRULES specifies transitions
+#   at standard time or UT rather than at local time.
+# In short, software should avoid ruleless settings like TZ='EET-2EEST'
+# and so should not depend on the value of POSIXRULES.
 
 POSIXRULES=America/New_York
 
@@ -231,6 +244,13 @@ LDLIBS=
 #  other than simply getting garbage data
 #  -DUSE_LTZ=0 to build zdump with the system time zone library
 #  Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
+#  -DZIC_BLOAT_DEFAULT=\"slim\" to default zic's -b option to "slim", and
+#  similarly for "fat".  Fat TZif files work around incompatibilities
+#  and bugs in some TZif readers, notably readers that mishandle 64-bit
+#  data in TZif files.  Slim TZif files are more efficient and do not
+#  work around these incompatibilities and bugs.  If not given, the
+#  current default is "fat" but this is intended to change as readers
+#  requiring fat files often mishandle timestamps after 2037 anyway.
 #  -DZIC_MAX_ABBR_LEN_WO_WARN=3
 #  (or some other number) to set the maximum time zone abbreviation length
 #  that zic will accept without a warning (the default is 6)
@@ -364,7 +384,9 @@ ZIC=$(zic) $(ZFLAGS)
 
 # To shrink the size of installed TZif files,
 # append "-r @N" to omit data before N-seconds-after-the-Epoch.
-# See the zic man page for more about -r.
+# You can also append "-b slim" if that is not already the default;
+# see ZIC_BLOAT_DEFAULT above.
+# See the zic man page for more about -b and -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -388,6 +410,9 @@ KSHELL= /bin/bash
 # Name of curl , used for HTML validation.
 CURL=  curl
 
+# Name of GNU Privacy Guard , used to sign distributions.
+GPG=   gpg
+
 # The path where SGML DTDs are kept and the catalog file(s) to use when
 # validating HTML 4.01.  The default should work on both Debian and Red Hat.
 SGML_TOPDIR= /usr
@@ -562,7 +587,9 @@ install:all $(DATA) $(REDO) $(MANS)
'$(DESTDIR)$(LIBDIR)' \
'$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \
'$(DESTDIR)$(MANDIR)/man8'
-

svn commit: r349766 - stable/12/sys/dev/atkbdc

2019-07-05 Thread Philip Paeps
Author: philip
Date: Fri Jul  5 16:43:41 2019
New Revision: 349766
URL: https://svnweb.freebsd.org/changeset/base/349766

Log:
  MFC r349098:
Add macOS-like three finger drag trackpad gesture to psm(4)

Modified:
  stable/12/sys/dev/atkbdc/psm.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/atkbdc/psm.c
==
--- stable/12/sys/dev/atkbdc/psm.c  Fri Jul  5 12:35:49 2019
(r349765)
+++ stable/12/sys/dev/atkbdc/psm.c  Fri Jul  5 16:43:41 2019
(r349766)
@@ -235,6 +235,7 @@ typedef struct synapticsinfo {
int  softbutton3_x;
int  max_x;
int  max_y;
+   int  three_finger_drag;
int  natural_scroll;
 } synapticsinfo_t;
 
@@ -571,6 +572,7 @@ enum {
SYNAPTICS_SYSCTL_SOFTBUTTONS_Y =SYN_OFFSET(softbuttons_y),
SYNAPTICS_SYSCTL_SOFTBUTTON2_X =SYN_OFFSET(softbutton2_x),
SYNAPTICS_SYSCTL_SOFTBUTTON3_X =SYN_OFFSET(softbutton3_x),
+   SYNAPTICS_SYSCTL_THREE_FINGER_DRAG =SYN_OFFSET(three_finger_drag),
SYNAPTICS_SYSCTL_NATURAL_SCROLL =   SYN_OFFSET(natural_scroll),
 #defineSYNAPTICS_SYSCTL_LAST   SYNAPTICS_SYSCTL_NATURAL_SCROLL
 };
@@ -3784,6 +3786,7 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
int vscroll_hor_area, vscroll_ver_area;
int two_finger_scroll;
int max_x, max_y;
+   int three_finger_drag;
 
/* Read sysctl. */
/* XXX Verify values? */
@@ -3798,7 +3801,7 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
two_finger_scroll = sc->syninfo.two_finger_scroll;
max_x = sc->syninfo.max_x;
max_y = sc->syninfo.max_y;
-
+   three_finger_drag = sc->syninfo.three_finger_drag;
/* Read current absolute position. */
x0 = f->x;
y0 = f->y;
@@ -3887,8 +3890,8 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
~MOUSE_BUTTON1DOWN) | center_button;
}
 
-   /* If in tap-hold, add the recorded button. */
-   if (gest->in_taphold)
+   /* If in tap-hold or three fingers, add the recorded button. */
+   if (gest->in_taphold || (nfingers == 3 && three_finger_drag))
ms->button |= gest->tap_button;
 
/*
@@ -5754,6 +5757,7 @@ synaptics_sysctl(SYSCTL_HANDLER_ARGS)
return (EINVAL);
break;
 case SYNAPTICS_SYSCTL_TOUCHPAD_OFF:
+   case SYNAPTICS_SYSCTL_THREE_FINGER_DRAG:
case SYNAPTICS_SYSCTL_NATURAL_SCROLL:
if (arg < 0 || arg > 1)
return (EINVAL);
@@ -6146,6 +6150,14 @@ synaptics_sysctl_create_tree(struct psm_softc *sc, con
sc, SYNAPTICS_SYSCTL_TOUCHPAD_OFF,
synaptics_sysctl, "I",
"Turn off touchpad");
+
+   sc->syninfo.three_finger_drag = 0;
+   SYSCTL_ADD_PROC(&sc->syninfo.sysctl_ctx,
+   SYSCTL_CHILDREN(sc->syninfo.sysctl_tree), OID_AUTO,
+   "three_finger_drag", CTLTYPE_INT|CTLFLAG_RW|CTLFLAG_ANYBODY,
+   sc, SYNAPTICS_SYSCTL_THREE_FINGER_DRAG,
+   synaptics_sysctl, "I",
+   "Enable dragging with three fingers");
 
/* hw.psm.synaptics.natural_scroll. */
sc->syninfo.natural_scroll = 0;
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r349890 - head/contrib/telnet/telnet

2019-07-10 Thread Philip Paeps
Author: philip
Date: Wed Jul 10 17:42:04 2019
New Revision: 349890
URL: https://svnweb.freebsd.org/changeset/base/349890

Log:
  telnet: fix a couple of snprintf() buffer overflows
  
  Obtained from:Juniper Networks
  MFC after:1 week

Modified:
  head/contrib/telnet/telnet/commands.c
  head/contrib/telnet/telnet/telnet.c
  head/contrib/telnet/telnet/utilities.c

Modified: head/contrib/telnet/telnet/commands.c
==
--- head/contrib/telnet/telnet/commands.c   Wed Jul 10 17:21:59 2019
(r349889)
+++ head/contrib/telnet/telnet/commands.c   Wed Jul 10 17:42:04 2019
(r349890)
@@ -1655,10 +1655,11 @@ env_init(void)
char hbuf[256+1];
char *cp2 = strchr((char *)ep->value, ':');
 
-   gethostname(hbuf, 256);
-   hbuf[256] = '\0';
-   cp = (char *)malloc(strlen(hbuf) + strlen(cp2) + 1);
-   sprintf((char *)cp, "%s%s", hbuf, cp2);
+   gethostname(hbuf, sizeof(hbuf));
+   hbuf[sizeof(hbuf)-1] = '\0';
+unsigned int buflen = strlen(hbuf) + strlen(cp2) + 1;
+   cp = (char *)malloc(sizeof(char)*buflen);
+   snprintf((char *)cp, buflen, "%s%s", hbuf, cp2);
free(ep->value);
ep->value = (unsigned char *)cp;
}

Modified: head/contrib/telnet/telnet/telnet.c
==
--- head/contrib/telnet/telnet/telnet.c Wed Jul 10 17:21:59 2019
(r349889)
+++ head/contrib/telnet/telnet/telnet.c Wed Jul 10 17:42:04 2019
(r349890)
@@ -785,7 +785,7 @@ suboption(void)
name = gettermname();
len = strlen(name) + 4 + 2;
if (len < NETROOM()) {
-   sprintf(temp, "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
+   snprintf(temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, 
TELOPT_TTYPE,
TELQUAL_IS, name, IAC, SE);
ring_supply_data(&netoring, temp, len);
printsub('>', &temp[2], len-2);
@@ -807,7 +807,7 @@ suboption(void)
 
TerminalSpeeds(&ispeed, &ospeed);
 
-   sprintf((char *)temp, "%c%c%c%c%ld,%ld%c%c", IAC, SB, TELOPT_TSPEED,
+   snprintf((char *)temp, sizeof(temp), "%c%c%c%c%ld,%ld%c%c", IAC, 
SB, TELOPT_TSPEED,
TELQUAL_IS, ospeed, ispeed, IAC, SE);
len = strlen((char *)temp+4) + 4;   /* temp[3] is 0 ... */
 

Modified: head/contrib/telnet/telnet/utilities.c
==
--- head/contrib/telnet/telnet/utilities.c  Wed Jul 10 17:21:59 2019
(r349889)
+++ head/contrib/telnet/telnet/utilities.c  Wed Jul 10 17:42:04 2019
(r349890)
@@ -629,7 +629,7 @@ printsub(char direction, unsigned char *pointer, int l
}
{
char tbuf[64];
-   sprintf(tbuf, "%s%s%s%s%s",
+   snprintf(tbuf, sizeof(tbuf), "%s%s%s%s%s",
pointer[2]&MODE_EDIT ? "|EDIT" : "",
pointer[2]&MODE_TRAPSIG ? "|TRAPSIG" : "",
pointer[2]&MODE_SOFT_TAB ? "|SOFT_TAB" : "",
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r349896 - head/contrib/telnet/telnet

2019-07-10 Thread Philip Paeps
Author: philip
Date: Wed Jul 10 22:36:14 2019
New Revision: 349896
URL: https://svnweb.freebsd.org/changeset/base/349896

Log:
  telnet: fix minor style violation
  
  While here also fix a very unlikely NULL pointer dereference.
  
  Submitted by: Shawn Webb 

Modified:
  head/contrib/telnet/telnet/commands.c

Modified: head/contrib/telnet/telnet/commands.c
==
--- head/contrib/telnet/telnet/commands.c   Wed Jul 10 22:23:59 2019
(r349895)
+++ head/contrib/telnet/telnet/commands.c   Wed Jul 10 22:36:14 2019
(r349896)
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 
+#include 
 #include 
 #include 
 #include 
@@ -1654,11 +1655,13 @@ env_init(void)
|| (strncmp((char *)ep->value, "unix:", 5) == 0))) {
char hbuf[256+1];
char *cp2 = strchr((char *)ep->value, ':');
+size_t buflen;
 
gethostname(hbuf, sizeof(hbuf));
hbuf[sizeof(hbuf)-1] = '\0';
-unsigned int buflen = strlen(hbuf) + strlen(cp2) + 1;
+   buflen = strlen(hbuf) + strlen(cp2) + 1;
cp = (char *)malloc(sizeof(char)*buflen);
+   assert(cp != NULL);
snprintf((char *)cp, buflen, "%s%s", hbuf, cp2);
free(ep->value);
ep->value = (unsigned char *)cp;
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r350079 - in head: share/zoneinfo usr.sbin/tzsetup

2019-07-17 Thread Philip Paeps

On 2019-07-17 06:17:28 (+), Thomas Munro wrote:

Author: tmunro
Date: Wed Jul 17 06:17:27 2019
New Revision: 350079
URL: https://svnweb.freebsd.org/changeset/base/350079

Log:
 tzsetup: upgrade to zone1970.tab

 zone.tab is deprecated.  Install zone1970.tab alongside it, and use it
 for tzsetup(8).  This is also useful for other applications that need
 the modern better maintained file.

 Reviewed by: philip
 Approved by: allanjude (mentor)
 MFC after: 2 weeks
 Differential Revision: https://reviews.freebsd.org/D20646


Thank you!

Philip

--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r350139 - stable/12/contrib/telnet/telnet

2019-07-19 Thread Philip Paeps
Author: philip
Date: Fri Jul 19 15:37:29 2019
New Revision: 350139
URL: https://svnweb.freebsd.org/changeset/base/350139

Log:
  MFC r349890:
telnet: fix a couple of snprintf() buffer overflows
  
Obtained from:   Juniper Networks
  
  MFC r349896:
telnet: fix minor style violationo
  
While here also fix a very unlikely NULL pointer dereference.
  
Submitted by:Shawn Webb 

Modified:
  stable/12/contrib/telnet/telnet/commands.c
  stable/12/contrib/telnet/telnet/telnet.c
  stable/12/contrib/telnet/telnet/utilities.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/telnet/telnet/commands.c
==
--- stable/12/contrib/telnet/telnet/commands.c  Fri Jul 19 15:24:08 2019
(r350138)
+++ stable/12/contrib/telnet/telnet/commands.c  Fri Jul 19 15:37:29 2019
(r350139)
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 
+#include 
 #include 
 #include 
 #include 
@@ -1654,11 +1655,14 @@ env_init(void)
|| (strncmp((char *)ep->value, "unix:", 5) == 0))) {
char hbuf[256+1];
char *cp2 = strchr((char *)ep->value, ':');
+size_t buflen;
 
-   gethostname(hbuf, 256);
-   hbuf[256] = '\0';
-   cp = (char *)malloc(strlen(hbuf) + strlen(cp2) + 1);
-   sprintf((char *)cp, "%s%s", hbuf, cp2);
+   gethostname(hbuf, sizeof(hbuf));
+   hbuf[sizeof(hbuf)-1] = '\0';
+   buflen = strlen(hbuf) + strlen(cp2) + 1;
+   cp = (char *)malloc(sizeof(char)*buflen);
+   assert(cp != NULL);
+   snprintf((char *)cp, buflen, "%s%s", hbuf, cp2);
free(ep->value);
ep->value = (unsigned char *)cp;
}

Modified: stable/12/contrib/telnet/telnet/telnet.c
==
--- stable/12/contrib/telnet/telnet/telnet.cFri Jul 19 15:24:08 2019
(r350138)
+++ stable/12/contrib/telnet/telnet/telnet.cFri Jul 19 15:37:29 2019
(r350139)
@@ -785,7 +785,7 @@ suboption(void)
name = gettermname();
len = strlen(name) + 4 + 2;
if (len < NETROOM()) {
-   sprintf(temp, "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
+   snprintf(temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, 
TELOPT_TTYPE,
TELQUAL_IS, name, IAC, SE);
ring_supply_data(&netoring, temp, len);
printsub('>', &temp[2], len-2);
@@ -807,7 +807,7 @@ suboption(void)
 
TerminalSpeeds(&ispeed, &ospeed);
 
-   sprintf((char *)temp, "%c%c%c%c%ld,%ld%c%c", IAC, SB, TELOPT_TSPEED,
+   snprintf((char *)temp, sizeof(temp), "%c%c%c%c%ld,%ld%c%c", IAC, 
SB, TELOPT_TSPEED,
TELQUAL_IS, ospeed, ispeed, IAC, SE);
len = strlen((char *)temp+4) + 4;   /* temp[3] is 0 ... */
 

Modified: stable/12/contrib/telnet/telnet/utilities.c
==
--- stable/12/contrib/telnet/telnet/utilities.c Fri Jul 19 15:24:08 2019
(r350138)
+++ stable/12/contrib/telnet/telnet/utilities.c Fri Jul 19 15:37:29 2019
(r350139)
@@ -629,7 +629,7 @@ printsub(char direction, unsigned char *pointer, int l
}
{
char tbuf[64];
-   sprintf(tbuf, "%s%s%s%s%s",
+   snprintf(tbuf, sizeof(tbuf), "%s%s%s%s%s",
pointer[2]&MODE_EDIT ? "|EDIT" : "",
pointer[2]&MODE_TRAPSIG ? "|TRAPSIG" : "",
pointer[2]&MODE_SOFT_TAB ? "|SOFT_TAB" : "",
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r350140 - stable/11/contrib/telnet/telnet

2019-07-19 Thread Philip Paeps
Author: philip
Date: Fri Jul 19 15:37:53 2019
New Revision: 350140
URL: https://svnweb.freebsd.org/changeset/base/350140

Log:
  MFC r349890:
telnet: fix a couple of snprintf() buffer overflows
  
Obtained from:   Juniper Networks
  
  MFC r349896:
telnet: fix minor style violationo
  
While here also fix a very unlikely NULL pointer dereference.
  
Submitted by:Shawn Webb 

Modified:
  stable/11/contrib/telnet/telnet/commands.c
  stable/11/contrib/telnet/telnet/telnet.c
  stable/11/contrib/telnet/telnet/utilities.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/telnet/telnet/commands.c
==
--- stable/11/contrib/telnet/telnet/commands.c  Fri Jul 19 15:37:29 2019
(r350139)
+++ stable/11/contrib/telnet/telnet/commands.c  Fri Jul 19 15:37:53 2019
(r350140)
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 
+#include 
 #include 
 #include 
 #include 
@@ -1654,11 +1655,14 @@ env_init(void)
|| (strncmp((char *)ep->value, "unix:", 5) == 0))) {
char hbuf[256+1];
char *cp2 = strchr((char *)ep->value, ':');
+size_t buflen;
 
-   gethostname(hbuf, 256);
-   hbuf[256] = '\0';
-   cp = (char *)malloc(strlen(hbuf) + strlen(cp2) + 1);
-   sprintf((char *)cp, "%s%s", hbuf, cp2);
+   gethostname(hbuf, sizeof(hbuf));
+   hbuf[sizeof(hbuf)-1] = '\0';
+   buflen = strlen(hbuf) + strlen(cp2) + 1;
+   cp = (char *)malloc(sizeof(char)*buflen);
+   assert(cp != NULL);
+   snprintf((char *)cp, buflen, "%s%s", hbuf, cp2);
free(ep->value);
ep->value = (unsigned char *)cp;
}

Modified: stable/11/contrib/telnet/telnet/telnet.c
==
--- stable/11/contrib/telnet/telnet/telnet.cFri Jul 19 15:37:29 2019
(r350139)
+++ stable/11/contrib/telnet/telnet/telnet.cFri Jul 19 15:37:53 2019
(r350140)
@@ -785,7 +785,7 @@ suboption(void)
name = gettermname();
len = strlen(name) + 4 + 2;
if (len < NETROOM()) {
-   sprintf(temp, "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
+   snprintf(temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, 
TELOPT_TTYPE,
TELQUAL_IS, name, IAC, SE);
ring_supply_data(&netoring, temp, len);
printsub('>', &temp[2], len-2);
@@ -807,7 +807,7 @@ suboption(void)
 
TerminalSpeeds(&ispeed, &ospeed);
 
-   sprintf((char *)temp, "%c%c%c%c%ld,%ld%c%c", IAC, SB, TELOPT_TSPEED,
+   snprintf((char *)temp, sizeof(temp), "%c%c%c%c%ld,%ld%c%c", IAC, 
SB, TELOPT_TSPEED,
TELQUAL_IS, ospeed, ispeed, IAC, SE);
len = strlen((char *)temp+4) + 4;   /* temp[3] is 0 ... */
 

Modified: stable/11/contrib/telnet/telnet/utilities.c
==
--- stable/11/contrib/telnet/telnet/utilities.c Fri Jul 19 15:37:29 2019
(r350139)
+++ stable/11/contrib/telnet/telnet/utilities.c Fri Jul 19 15:37:53 2019
(r350140)
@@ -629,7 +629,7 @@ printsub(char direction, unsigned char *pointer, int l
}
{
char tbuf[64];
-   sprintf(tbuf, "%s%s%s%s%s",
+   snprintf(tbuf, sizeof(tbuf), "%s%s%s%s%s",
pointer[2]&MODE_EDIT ? "|EDIT" : "",
pointer[2]&MODE_TRAPSIG ? "|TRAPSIG" : "",
pointer[2]&MODE_SOFT_TAB ? "|SOFT_TAB" : "",
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r349098 - head/sys/dev/atkbdc

2019-06-15 Thread Philip Paeps
Author: philip
Date: Sun Jun 16 03:06:05 2019
New Revision: 349098
URL: https://svnweb.freebsd.org/changeset/base/349098

Log:
  Add macOS-like three finger drag trackpad gesture to psm(4)
  
  Submitted by: Yan Ka Chiu 
  MFC after:1 week
  Differential Revision:https://reviews.freebsd.org/D20648

Modified:
  head/sys/dev/atkbdc/psm.c

Modified: head/sys/dev/atkbdc/psm.c
==
--- head/sys/dev/atkbdc/psm.c   Sun Jun 16 01:23:45 2019(r349097)
+++ head/sys/dev/atkbdc/psm.c   Sun Jun 16 03:06:05 2019(r349098)
@@ -236,6 +236,7 @@ typedef struct synapticsinfo {
int  softbutton3_x;
int  max_x;
int  max_y;
+   int  three_finger_drag;
int  natural_scroll;
 } synapticsinfo_t;
 
@@ -572,6 +573,7 @@ enum {
SYNAPTICS_SYSCTL_SOFTBUTTONS_Y =SYN_OFFSET(softbuttons_y),
SYNAPTICS_SYSCTL_SOFTBUTTON2_X =SYN_OFFSET(softbutton2_x),
SYNAPTICS_SYSCTL_SOFTBUTTON3_X =SYN_OFFSET(softbutton3_x),
+   SYNAPTICS_SYSCTL_THREE_FINGER_DRAG =SYN_OFFSET(three_finger_drag),
SYNAPTICS_SYSCTL_NATURAL_SCROLL =   SYN_OFFSET(natural_scroll),
 #defineSYNAPTICS_SYSCTL_LAST   SYNAPTICS_SYSCTL_NATURAL_SCROLL
 };
@@ -3785,6 +3787,7 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
int vscroll_hor_area, vscroll_ver_area;
int two_finger_scroll;
int max_x, max_y;
+   int three_finger_drag;
 
/* Read sysctl. */
/* XXX Verify values? */
@@ -3799,7 +3802,7 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
two_finger_scroll = sc->syninfo.two_finger_scroll;
max_x = sc->syninfo.max_x;
max_y = sc->syninfo.max_y;
-
+   three_finger_drag = sc->syninfo.three_finger_drag;
/* Read current absolute position. */
x0 = f->x;
y0 = f->y;
@@ -3888,8 +3891,8 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, i
~MOUSE_BUTTON1DOWN) | center_button;
}
 
-   /* If in tap-hold, add the recorded button. */
-   if (gest->in_taphold)
+   /* If in tap-hold or three fingers, add the recorded button. */
+   if (gest->in_taphold || (nfingers == 3 && three_finger_drag))
ms->button |= gest->tap_button;
 
/*
@@ -5755,6 +5758,7 @@ synaptics_sysctl(SYSCTL_HANDLER_ARGS)
return (EINVAL);
break;
 case SYNAPTICS_SYSCTL_TOUCHPAD_OFF:
+   case SYNAPTICS_SYSCTL_THREE_FINGER_DRAG:
case SYNAPTICS_SYSCTL_NATURAL_SCROLL:
if (arg < 0 || arg > 1)
return (EINVAL);
@@ -6147,6 +6151,14 @@ synaptics_sysctl_create_tree(struct psm_softc *sc, con
sc, SYNAPTICS_SYSCTL_TOUCHPAD_OFF,
synaptics_sysctl, "I",
"Turn off touchpad");
+
+   sc->syninfo.three_finger_drag = 0;
+   SYSCTL_ADD_PROC(&sc->syninfo.sysctl_ctx,
+   SYSCTL_CHILDREN(sc->syninfo.sysctl_tree), OID_AUTO,
+   "three_finger_drag", CTLTYPE_INT|CTLFLAG_RW|CTLFLAG_ANYBODY,
+   sc, SYNAPTICS_SYSCTL_THREE_FINGER_DRAG,
+   synaptics_sysctl, "I",
+   "Enable dragging with three fingers");
 
/* hw.psm.synaptics.natural_scroll. */
sc->syninfo.natural_scroll = 0;
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r341327 - head/sys/dev/sfxge

2018-11-30 Thread Philip Paeps

On 2018-11-30 19:36:27 (+0100), John Baldwin wrote:

On 11/30/18 10:15 AM, Andrew Rybchenko wrote:

On 30.11.2018 20:30, John Baldwin wrote:

On 11/29/18 11:11 PM, Andrew Rybchenko wrote:

Author: arybchik
Date: Fri Nov 30 07:11:05 2018
New Revision: 341327
URL: https://svnweb.freebsd.org/changeset/base/341327

Log:
   sfxge(4): rollback last seen VLAN TCI if Tx packet is dropped

   Early processing of a packet on transmit may change last seen
   VLAN TCI in the queue context. If such a packet is eventually
   dropped, last seen VLAN TCI must be set to its previous value.

   Submitted by:   Ivan Malov 
   Sponsored by:   Solarflare Communications, Inc.
   MFC after:  1 week
   Differential Revision:  https://reviews.freebsd.org/D18288


Just as a general comment.  There's no point in creating a review in 
phabricator if you aren't going to get any actual review feedback 
via the tool.  That just adds noise.  (I've spotchecked a few of the 
recent sfxge commits and they all seem to create a review that then 
gets committed a few hours later without any feedback, etc.)


All these changesets is the result of development in Solarflare.  All 
these changesets were reviewed internally and in fact many have later 
fixes which are simply squashed in.


We have discussed it with George (gnn@) some time ago and he asked to 
submit reviews anyway and wait at least a day or two before commit. 
Yes in this particular case these 2 hundreds of patches is the result 
of 2 years of development. So, I'd waited some time and started to 
commit in blocks.


This time I've not included np@ and bz@ in reviewers since I've not 
got reviewed before and it would be too much spam.


We have discussed it with Philip (philip@) shortly. As I understand 
he has no time now to review it.


Basically I'm ready to follow any sensible policy. I don't think it 
makes to wait forever. If there are any volunteers I'll be happy to 
include more people in reviewers.


I don't think you have to wait forever, and if the changes were 
reviewed internally that counts for review, I just don't want to add 
noise and clutter to phabricator and commit logs.


I think it makes sense to have Phabricator reviews for the 
FreeBSD-specific parts of sfxge(4).


The internal review at Solarflare is definitely good enough to commit 
without waiting for review -- certainly on the parts of the driver that 
are generated from the common source -- but there is some value to 
having the FreeBSD-specific bits sit in Phabricator for a few days.


The storm of commits in the last week is exceptional because it 
represents two years of changes.  With hindsight, just bulk-committing 
those to Subversion would have been a better idea.


In the future though, and when in the steady state of commits trickling 
in rather than flooding in, I still appreciate the reviews in 
Phabricator.  Particularly for the FreeBSD-specific parts of the driver.


Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r335612 - head/sbin/dhclient

2018-06-27 Thread Philip Paeps

On 2018-06-25 11:40:48 (-0700), Xin LI wrote:

On Sun, Jun 24, 2018 at 6:30 PM Eitan Adler  wrote:

Author: eadler
Date: Mon Jun 25 01:29:54 2018
New Revision: 335612
URL: https://svnweb.freebsd.org/changeset/base/335612

Log:
  dhclient: recorrect __progname to getprogname()

  A more correct way to modernize code that uses __progname is to just
  replace each occurance of it with a call to getprogname(3)


We should probably take a look at dhcpcd or ISC dhclient and teach
whatever we have chosen sandbox, etc.  The current FreeBSD dhclient is
based on an ancient ISC dhclient fork with enhancements from OpenBSD
(but not being kept up-to-date with OpenBSD) and do not support IPv6,
etc.


The IPv6 support in ISC dhclient is basically having dhclient and 
dhclient6, which is a real pain to configure.  NetBSD's dhcpcd is 
probably the best DHCP client these days in terms of completeness.


Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r345669 - stable/12/contrib/tzdata

2019-03-28 Thread Philip Paeps
Author: philip
Date: Fri Mar 29 01:39:20 2019
New Revision: 345669
URL: https://svnweb.freebsd.org/changeset/base/345669

Log:
  MFC r345524: Import tzdata 2019a

Modified:
  stable/12/contrib/tzdata/Makefile
  stable/12/contrib/tzdata/NEWS
  stable/12/contrib/tzdata/README
  stable/12/contrib/tzdata/africa
  stable/12/contrib/tzdata/asia
  stable/12/contrib/tzdata/backward
  stable/12/contrib/tzdata/backzone
  stable/12/contrib/tzdata/etcetera
  stable/12/contrib/tzdata/europe
  stable/12/contrib/tzdata/leap-seconds.list
  stable/12/contrib/tzdata/leapseconds
  stable/12/contrib/tzdata/northamerica
  stable/12/contrib/tzdata/theory.html
  stable/12/contrib/tzdata/version
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/tzdata/Makefile
==
--- stable/12/contrib/tzdata/Makefile   Fri Mar 29 01:32:24 2019
(r345668)
+++ stable/12/contrib/tzdata/Makefile   Fri Mar 29 01:39:20 2019
(r345669)
@@ -12,7 +12,10 @@ VERSION= unknown
 # Email address for bug reports.
 BUGEMAIL=  t...@iana.org
 
-# Choose source data features.  To get new features right away, use:
+# DATAFORM selects the data format.
+# Available formats represent essentially the same data, albeit
+# possibly with minor discrepancies that users are not likely to notice.
+# To get new features and the best data right away, use:
 #  DATAFORM=   vanguard
 # To wait a while before using new features, to give downstream users
 # time to upgrade zic (the default), use:
@@ -33,11 +36,11 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style timezone environment variables,
+# for handling ruleless POSIX-style timezone environment variables,
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# When a POSIX-style environment variable is handled, the rules in the
-# template file are used to determine "spring forward" and "fall back" days and
+# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
 # Alternatively, if you discover you've got the wrong timezone, you can just
@@ -46,7 +49,6 @@ LOCALTIME=GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
-# If you want POSIX compatibility, use "America/New_York".
 
 POSIXRULES=America/New_York
 
@@ -113,8 +115,8 @@ TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TI
 TIME_T_ALTERNATIVES_HEAD = int64_t
 TIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
 
-# What kind of TZif data files to generate.
-# (TZif is the binary time zone data format that zic generates.)
+# What kind of TZif data files to generate.  (TZif is the binary time
+# zone data format that zic generates; see Internet RFC 8536.)
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #  REDO=   posix_only
@@ -360,6 +362,9 @@ LEAPSECONDS=
 zic=   ./zic
 ZIC=   $(zic) $(ZFLAGS)
 
+# To shrink the size of installed TZif files,
+# append "-r @N" to omit data before N-seconds-after-the-Epoch.
+# See the zic man page for more about -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -491,7 +496,8 @@ MANTXTS=newctime.3.txt newstrftime.3.txt newtzset.3.t
 COMMON=calendars CONTRIBUTING LICENSE Makefile \
NEWS README theory.html version
 WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
-CHECK_WEB_PAGES=check_tz-art.html check_tz-how-to.html check_tz-link.html
+CHECK_WEB_PAGES=check_theory.html check_tz-art.html \
+   check_tz-how-to.html check_tz-link.html
 DOCS=  $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
@@ -804,9 +810,10 @@ check_tzs: $(TZS) $(TZS_NEW)
touch $@
 
 check_web: $(CHECK_WEB_PAGES)
+check_theory.html: theory.html
 check_tz-art.html: tz-art.html
 check_tz-link.html: tz-link.html
-check_tz-art.html check_tz-link.html:
+check_theory.html check_tz-art.html check_tz-link.html:
$(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \
-F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \
  test ! -s $@.out || { cat $@.out; exit 1; }
@@ -840,11 +847,13 @@ check_zishrink_posix check_zishrink_right: \
touch $@
 
 clean_misc:
+   rm -fr check_*.dir
rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
  check_* core typecheck_* \
  date tzselect version.h zdump zic yea

svn commit: r345670 - stable/11/contrib/tzdata

2019-03-28 Thread Philip Paeps
Author: philip
Date: Fri Mar 29 01:40:44 2019
New Revision: 345670
URL: https://svnweb.freebsd.org/changeset/base/345670

Log:
  MFC r345524: Import tzdata 2019a

Modified:
  stable/11/contrib/tzdata/Makefile
  stable/11/contrib/tzdata/NEWS
  stable/11/contrib/tzdata/README
  stable/11/contrib/tzdata/africa
  stable/11/contrib/tzdata/asia
  stable/11/contrib/tzdata/backward
  stable/11/contrib/tzdata/backzone
  stable/11/contrib/tzdata/etcetera
  stable/11/contrib/tzdata/europe
  stable/11/contrib/tzdata/leap-seconds.list
  stable/11/contrib/tzdata/leapseconds
  stable/11/contrib/tzdata/northamerica
  stable/11/contrib/tzdata/theory.html
  stable/11/contrib/tzdata/version
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/tzdata/Makefile
==
--- stable/11/contrib/tzdata/Makefile   Fri Mar 29 01:39:20 2019
(r345669)
+++ stable/11/contrib/tzdata/Makefile   Fri Mar 29 01:40:44 2019
(r345670)
@@ -12,7 +12,10 @@ VERSION= unknown
 # Email address for bug reports.
 BUGEMAIL=  t...@iana.org
 
-# Choose source data features.  To get new features right away, use:
+# DATAFORM selects the data format.
+# Available formats represent essentially the same data, albeit
+# possibly with minor discrepancies that users are not likely to notice.
+# To get new features and the best data right away, use:
 #  DATAFORM=   vanguard
 # To wait a while before using new features, to give downstream users
 # time to upgrade zic (the default), use:
@@ -33,11 +36,11 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style timezone environment variables,
+# for handling ruleless POSIX-style timezone environment variables,
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# When a POSIX-style environment variable is handled, the rules in the
-# template file are used to determine "spring forward" and "fall back" days and
+# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
 # Alternatively, if you discover you've got the wrong timezone, you can just
@@ -46,7 +49,6 @@ LOCALTIME=GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
-# If you want POSIX compatibility, use "America/New_York".
 
 POSIXRULES=America/New_York
 
@@ -113,8 +115,8 @@ TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TI
 TIME_T_ALTERNATIVES_HEAD = int64_t
 TIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
 
-# What kind of TZif data files to generate.
-# (TZif is the binary time zone data format that zic generates.)
+# What kind of TZif data files to generate.  (TZif is the binary time
+# zone data format that zic generates; see Internet RFC 8536.)
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #  REDO=   posix_only
@@ -360,6 +362,9 @@ LEAPSECONDS=
 zic=   ./zic
 ZIC=   $(zic) $(ZFLAGS)
 
+# To shrink the size of installed TZif files,
+# append "-r @N" to omit data before N-seconds-after-the-Epoch.
+# See the zic man page for more about -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -491,7 +496,8 @@ MANTXTS=newctime.3.txt newstrftime.3.txt newtzset.3.t
 COMMON=calendars CONTRIBUTING LICENSE Makefile \
NEWS README theory.html version
 WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
-CHECK_WEB_PAGES=check_tz-art.html check_tz-how-to.html check_tz-link.html
+CHECK_WEB_PAGES=check_theory.html check_tz-art.html \
+   check_tz-how-to.html check_tz-link.html
 DOCS=  $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
@@ -804,9 +810,10 @@ check_tzs: $(TZS) $(TZS_NEW)
touch $@
 
 check_web: $(CHECK_WEB_PAGES)
+check_theory.html: theory.html
 check_tz-art.html: tz-art.html
 check_tz-link.html: tz-link.html
-check_tz-art.html check_tz-link.html:
+check_theory.html check_tz-art.html check_tz-link.html:
$(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \
-F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \
  test ! -s $@.out || { cat $@.out; exit 1; }
@@ -840,11 +847,13 @@ check_zishrink_posix check_zishrink_right: \
touch $@
 
 clean_misc:
+   rm -fr check_*.dir
rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
  check_* core typecheck_* \
  date tzselect version.h zdump zic yea

svn commit: r345671 - stable/10/contrib/tzdata

2019-03-28 Thread Philip Paeps
Author: philip
Date: Fri Mar 29 01:41:51 2019
New Revision: 345671
URL: https://svnweb.freebsd.org/changeset/base/345671

Log:
  MFC r345524: Import tzdata 2019a

Modified:
  stable/10/contrib/tzdata/Makefile
  stable/10/contrib/tzdata/NEWS
  stable/10/contrib/tzdata/README
  stable/10/contrib/tzdata/africa
  stable/10/contrib/tzdata/asia
  stable/10/contrib/tzdata/backward
  stable/10/contrib/tzdata/backzone
  stable/10/contrib/tzdata/etcetera
  stable/10/contrib/tzdata/europe
  stable/10/contrib/tzdata/leap-seconds.list
  stable/10/contrib/tzdata/leapseconds
  stable/10/contrib/tzdata/northamerica
  stable/10/contrib/tzdata/theory.html
  stable/10/contrib/tzdata/version
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/tzdata/Makefile
==
--- stable/10/contrib/tzdata/Makefile   Fri Mar 29 01:40:44 2019
(r345670)
+++ stable/10/contrib/tzdata/Makefile   Fri Mar 29 01:41:51 2019
(r345671)
@@ -12,7 +12,10 @@ VERSION= unknown
 # Email address for bug reports.
 BUGEMAIL=  t...@iana.org
 
-# Choose source data features.  To get new features right away, use:
+# DATAFORM selects the data format.
+# Available formats represent essentially the same data, albeit
+# possibly with minor discrepancies that users are not likely to notice.
+# To get new features and the best data right away, use:
 #  DATAFORM=   vanguard
 # To wait a while before using new features, to give downstream users
 # time to upgrade zic (the default), use:
@@ -33,11 +36,11 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style timezone environment variables,
+# for handling ruleless POSIX-style timezone environment variables,
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# When a POSIX-style environment variable is handled, the rules in the
-# template file are used to determine "spring forward" and "fall back" days and
+# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
 # Alternatively, if you discover you've got the wrong timezone, you can just
@@ -46,7 +49,6 @@ LOCALTIME=GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
-# If you want POSIX compatibility, use "America/New_York".
 
 POSIXRULES=America/New_York
 
@@ -113,8 +115,8 @@ TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TI
 TIME_T_ALTERNATIVES_HEAD = int64_t
 TIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
 
-# What kind of TZif data files to generate.
-# (TZif is the binary time zone data format that zic generates.)
+# What kind of TZif data files to generate.  (TZif is the binary time
+# zone data format that zic generates; see Internet RFC 8536.)
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #  REDO=   posix_only
@@ -360,6 +362,9 @@ LEAPSECONDS=
 zic=   ./zic
 ZIC=   $(zic) $(ZFLAGS)
 
+# To shrink the size of installed TZif files,
+# append "-r @N" to omit data before N-seconds-after-the-Epoch.
+# See the zic man page for more about -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -491,7 +496,8 @@ MANTXTS=newctime.3.txt newstrftime.3.txt newtzset.3.t
 COMMON=calendars CONTRIBUTING LICENSE Makefile \
NEWS README theory.html version
 WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
-CHECK_WEB_PAGES=check_tz-art.html check_tz-how-to.html check_tz-link.html
+CHECK_WEB_PAGES=check_theory.html check_tz-art.html \
+   check_tz-how-to.html check_tz-link.html
 DOCS=  $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
@@ -804,9 +810,10 @@ check_tzs: $(TZS) $(TZS_NEW)
touch $@
 
 check_web: $(CHECK_WEB_PAGES)
+check_theory.html: theory.html
 check_tz-art.html: tz-art.html
 check_tz-link.html: tz-link.html
-check_tz-art.html check_tz-link.html:
+check_theory.html check_tz-art.html check_tz-link.html:
$(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \
-F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \
  test ! -s $@.out || { cat $@.out; exit 1; }
@@ -840,11 +847,13 @@ check_zishrink_posix check_zishrink_right: \
touch $@
 
 clean_misc:
+   rm -fr check_*.dir
rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
  check_* core typecheck_* \
  date tzselect version.h zdump zic yea

svn commit: r345672 - stable/12/share/misc

2019-03-28 Thread Philip Paeps
Author: philip
Date: Fri Mar 29 01:50:16 2019
New Revision: 345672
URL: https://svnweb.freebsd.org/changeset/base/345672

Log:
  MFC r345526:
  
  SZ has been known as Eswatini since April 2018 (formerly Swaziland).

Modified:
  stable/12/share/misc/iso3166
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/misc/iso3166
==
--- stable/12/share/misc/iso3166Fri Mar 29 01:41:51 2019
(r345671)
+++ stable/12/share/misc/iso3166Fri Mar 29 01:50:16 2019
(r345672)
@@ -232,7 +232,7 @@ LK  LKA 144 Sri Lanka
 SD SDN 729 Sudan
 SR SUR 740 Suriname
 SJ SJM 744 Svalbard and Jan Mayen
-SZ SWZ 748 Swaziland
+SZ SWZ 748 Eswatini
 SE SWE 752 Sweden
 CH CHE 756 Switzerland
 SY SYR 760 Syrian Arab Republic
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r345673 - stable/11/share/misc

2019-03-28 Thread Philip Paeps
Author: philip
Date: Fri Mar 29 01:51:41 2019
New Revision: 345673
URL: https://svnweb.freebsd.org/changeset/base/345673

Log:
  MFC r345526:
  
  SZ has been known as Eswatini since April 2018 (formerly Swaziland).

Modified:
  stable/11/share/misc/iso3166
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/share/misc/iso3166
==
--- stable/11/share/misc/iso3166Fri Mar 29 01:50:16 2019
(r345672)
+++ stable/11/share/misc/iso3166Fri Mar 29 01:51:41 2019
(r345673)
@@ -232,7 +232,7 @@ LK  LKA 144 Sri Lanka
 SD SDN 729 Sudan
 SR SUR 740 Suriname
 SJ SJM 744 Svalbard and Jan Mayen
-SZ SWZ 748 Swaziland
+SZ SWZ 748 Eswatini
 SE SWE 752 Sweden
 CH CHE 756 Switzerland
 SY SYR 760 Syrian Arab Republic
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r345522 - vendor/tzdata/dist

2019-03-26 Thread Philip Paeps
Author: philip
Date: Tue Mar 26 07:55:48 2019
New Revision: 345522
URL: https://svnweb.freebsd.org/changeset/base/345522

Log:
  Import tzdata 2019a

Modified:
  vendor/tzdata/dist/Makefile
  vendor/tzdata/dist/NEWS
  vendor/tzdata/dist/README
  vendor/tzdata/dist/africa
  vendor/tzdata/dist/asia
  vendor/tzdata/dist/backward
  vendor/tzdata/dist/backzone
  vendor/tzdata/dist/etcetera
  vendor/tzdata/dist/europe
  vendor/tzdata/dist/iso3166.tab
  vendor/tzdata/dist/leap-seconds.list
  vendor/tzdata/dist/leapseconds
  vendor/tzdata/dist/northamerica
  vendor/tzdata/dist/theory.html
  vendor/tzdata/dist/version

Modified: vendor/tzdata/dist/Makefile
==
--- vendor/tzdata/dist/Makefile Tue Mar 26 03:02:45 2019(r345521)
+++ vendor/tzdata/dist/Makefile Tue Mar 26 07:55:48 2019(r345522)
@@ -12,7 +12,10 @@ VERSION= unknown
 # Email address for bug reports.
 BUGEMAIL=  t...@iana.org
 
-# Choose source data features.  To get new features right away, use:
+# DATAFORM selects the data format.
+# Available formats represent essentially the same data, albeit
+# possibly with minor discrepancies that users are not likely to notice.
+# To get new features and the best data right away, use:
 #  DATAFORM=   vanguard
 # To wait a while before using new features, to give downstream users
 # time to upgrade zic (the default), use:
@@ -33,11 +36,11 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style timezone environment variables,
+# for handling ruleless POSIX-style timezone environment variables,
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# When a POSIX-style environment variable is handled, the rules in the
-# template file are used to determine "spring forward" and "fall back" days and
+# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
 # Alternatively, if you discover you've got the wrong timezone, you can just
@@ -46,7 +49,6 @@ LOCALTIME=GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
-# If you want POSIX compatibility, use "America/New_York".
 
 POSIXRULES=America/New_York
 
@@ -113,8 +115,8 @@ TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TI
 TIME_T_ALTERNATIVES_HEAD = int64_t
 TIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
 
-# What kind of TZif data files to generate.
-# (TZif is the binary time zone data format that zic generates.)
+# What kind of TZif data files to generate.  (TZif is the binary time
+# zone data format that zic generates; see Internet RFC 8536.)
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #  REDO=   posix_only
@@ -360,6 +362,9 @@ LEAPSECONDS=
 zic=   ./zic
 ZIC=   $(zic) $(ZFLAGS)
 
+# To shrink the size of installed TZif files,
+# append "-r @N" to omit data before N-seconds-after-the-Epoch.
+# See the zic man page for more about -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -491,7 +496,8 @@ MANTXTS=newctime.3.txt newstrftime.3.txt newtzset.3.t
 COMMON=calendars CONTRIBUTING LICENSE Makefile \
NEWS README theory.html version
 WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
-CHECK_WEB_PAGES=check_tz-art.html check_tz-how-to.html check_tz-link.html
+CHECK_WEB_PAGES=check_theory.html check_tz-art.html \
+   check_tz-how-to.html check_tz-link.html
 DOCS=  $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
@@ -804,9 +810,10 @@ check_tzs: $(TZS) $(TZS_NEW)
touch $@
 
 check_web: $(CHECK_WEB_PAGES)
+check_theory.html: theory.html
 check_tz-art.html: tz-art.html
 check_tz-link.html: tz-link.html
-check_tz-art.html check_tz-link.html:
+check_theory.html check_tz-art.html check_tz-link.html:
$(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \
-F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \
  test ! -s $@.out || { cat $@.out; exit 1; }
@@ -840,11 +847,13 @@ check_zishrink_posix check_zishrink_right: \
touch $@
 
 clean_misc:
+   rm -fr check_*.dir
rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
  check_* core typecheck_* \
  date tzselect version.h zdump zic yearistype libtz.a
 clean: clean_misc
-   rm -fr *.dir *.zi tzdb-*/ $(TZS_NEW)
+   rm -fr *.dir tzdb-*/
+   

svn commit: r345523 - vendor/tzdata/tzdata2019a

2019-03-26 Thread Philip Paeps
Author: philip
Date: Tue Mar 26 07:56:17 2019
New Revision: 345523
URL: https://svnweb.freebsd.org/changeset/base/345523

Log:
  Tag import of tzdata2019a

Added:
  vendor/tzdata/tzdata2019a/
 - copied from r345522, vendor/tzdata/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r345524 - head/contrib/tzdata

2019-03-26 Thread Philip Paeps
Author: philip
Date: Tue Mar 26 08:10:51 2019
New Revision: 345524
URL: https://svnweb.freebsd.org/changeset/base/345524

Log:
  Import tzdata 2019a
  
  Changes: https://github.com/eggert/tz/blob/2019a/NEWS
  
  MFC after:3 days

Modified:
  head/contrib/tzdata/Makefile
  head/contrib/tzdata/NEWS
  head/contrib/tzdata/README
  head/contrib/tzdata/africa
  head/contrib/tzdata/asia
  head/contrib/tzdata/backward
  head/contrib/tzdata/backzone
  head/contrib/tzdata/etcetera
  head/contrib/tzdata/europe
  head/contrib/tzdata/leap-seconds.list
  head/contrib/tzdata/leapseconds
  head/contrib/tzdata/northamerica
  head/contrib/tzdata/theory.html
  head/contrib/tzdata/version
Directory Properties:
  head/contrib/tzdata/   (props changed)

Modified: head/contrib/tzdata/Makefile
==
--- head/contrib/tzdata/MakefileTue Mar 26 07:56:17 2019
(r345523)
+++ head/contrib/tzdata/MakefileTue Mar 26 08:10:51 2019
(r345524)
@@ -12,7 +12,10 @@ VERSION= unknown
 # Email address for bug reports.
 BUGEMAIL=  t...@iana.org
 
-# Choose source data features.  To get new features right away, use:
+# DATAFORM selects the data format.
+# Available formats represent essentially the same data, albeit
+# possibly with minor discrepancies that users are not likely to notice.
+# To get new features and the best data right away, use:
 #  DATAFORM=   vanguard
 # To wait a while before using new features, to give downstream users
 # time to upgrade zic (the default), use:
@@ -33,11 +36,11 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style timezone environment variables,
+# for handling ruleless POSIX-style timezone environment variables,
 # change the line below (after finding the timezone you want in the
 # one of the $(TDATA) source files, or adding it to a source file).
-# When a POSIX-style environment variable is handled, the rules in the
-# template file are used to determine "spring forward" and "fall back" days and
+# A ruleless environment setting like TZ='CST6CDT' uses the rules in the
+# template file to determine "spring forward" and "fall back" days and
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
 # Alternatively, if you discover you've got the wrong timezone, you can just
@@ -46,7 +49,6 @@ LOCALTIME=GMT
 # Use the command
 #  make zonenames
 # to get a list of the values you can use for POSIXRULES.
-# If you want POSIX compatibility, use "America/New_York".
 
 POSIXRULES=America/New_York
 
@@ -113,8 +115,8 @@ TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TI
 TIME_T_ALTERNATIVES_HEAD = int64_t
 TIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
 
-# What kind of TZif data files to generate.
-# (TZif is the binary time zone data format that zic generates.)
+# What kind of TZif data files to generate.  (TZif is the binary time
+# zone data format that zic generates; see Internet RFC 8536.)
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #  REDO=   posix_only
@@ -360,6 +362,9 @@ LEAPSECONDS=
 zic=   ./zic
 ZIC=   $(zic) $(ZFLAGS)
 
+# To shrink the size of installed TZif files,
+# append "-r @N" to omit data before N-seconds-after-the-Epoch.
+# See the zic man page for more about -r.
 ZFLAGS=
 
 # How to use zic to install TZif files.
@@ -491,7 +496,8 @@ MANTXTS=newctime.3.txt newstrftime.3.txt newtzset.3.t
 COMMON=calendars CONTRIBUTING LICENSE Makefile \
NEWS README theory.html version
 WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
-CHECK_WEB_PAGES=check_tz-art.html check_tz-how-to.html check_tz-link.html
+CHECK_WEB_PAGES=check_theory.html check_tz-art.html \
+   check_tz-how-to.html check_tz-link.html
 DOCS=  $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
@@ -804,9 +810,10 @@ check_tzs: $(TZS) $(TZS_NEW)
touch $@
 
 check_web: $(CHECK_WEB_PAGES)
+check_theory.html: theory.html
 check_tz-art.html: tz-art.html
 check_tz-link.html: tz-link.html
-check_tz-art.html check_tz-link.html:
+check_theory.html check_tz-art.html check_tz-link.html:
$(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \
-F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \
  test ! -s $@.out || { cat $@.out; exit 1; }
@@ -840,11 +847,13 @@ check_zishrink_posix check_zishrink_right: \
touch $@
 
 clean_misc:
+   rm -fr check_*.dir
rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
  check_* core typecheck_* \
  date tzselect version.h zdump 

svn commit: r345526 - head/share/misc

2019-03-26 Thread Philip Paeps
Author: philip
Date: Tue Mar 26 09:46:17 2019
New Revision: 345526
URL: https://svnweb.freebsd.org/changeset/base/345526

Log:
  SZ has been known as Eswatini since April 2018 (formerly Swaziland).
  
  Sources:
  https://www.iso.org/obp/ui/#iso:code:3166:SZ
  http://www.un.org/en/member-states/index.html#gotoE
  
http://www.times.co.sz/news/118373-kingdom-of-eswatini-change-now-official.html
  
  MFC after:3 days

Modified:
  head/share/misc/iso3166

Modified: head/share/misc/iso3166
==
--- head/share/misc/iso3166 Tue Mar 26 08:27:00 2019(r345525)
+++ head/share/misc/iso3166 Tue Mar 26 09:46:17 2019(r345526)
@@ -232,7 +232,7 @@ LK  LKA 144 Sri Lanka
 SD SDN 729 Sudan
 SR SUR 740 Suriname
 SJ SJM 744 Svalbard and Jan Mayen
-SZ SWZ 748 Swaziland
+SZ SWZ 748 Eswatini
 SE SWE 752 Sweden
 CH CHE 756 Switzerland
 SY SYR 760 Syrian Arab Republic
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r351918 - head/sys/kern

2019-09-05 Thread Philip Paeps
Author: philip
Date: Fri Sep  6 01:19:31 2019
New Revision: 351918
URL: https://svnweb.freebsd.org/changeset/base/351918

Log:
  riscv: default to HZ=100
  
  Most current RISC-V development platforms are not fast enough to benefit
  from the increased granularity provided by HZ=1000.
  
  Sponsored by: Axiado

Modified:
  head/sys/kern/subr_param.c

Modified: head/sys/kern/subr_param.c
==
--- head/sys/kern/subr_param.c  Fri Sep  6 00:06:55 2019(r351917)
+++ head/sys/kern/subr_param.c  Fri Sep  6 01:19:31 2019(r351918)
@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$");
  */
 
 #ifndef HZ
-#  if defined(__mips__) || defined(__arm__)
+#  if defined(__mips__) || defined(__arm__) || defined(__riscv)
 #defineHZ 100
 #  else
 #defineHZ 1000
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r351919 - head/sys/riscv/conf

2019-09-05 Thread Philip Paeps
Author: philip
Date: Fri Sep  6 01:22:16 2019
New Revision: 351919
URL: https://svnweb.freebsd.org/changeset/base/351919

Log:
  QEMU: use default HZ
  
  HZ=100 by default on riscv since r351918.

Modified:
  head/sys/riscv/conf/QEMU

Modified: head/sys/riscv/conf/QEMU
==
--- head/sys/riscv/conf/QEMUFri Sep  6 01:19:31 2019(r351918)
+++ head/sys/riscv/conf/QEMUFri Sep  6 01:22:16 2019(r351919)
@@ -6,5 +6,4 @@ include "GENERIC"
 
 ident QEMU
 
-optionsHZ=100
 optionsROOTDEVNAME=\"ufs:/dev/vtbd0\"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r351918 - head/sys/kern

2019-09-05 Thread Philip Paeps

On 2019-09-06 11:15:12 (+0800), Ian Lepore wrote:

On Fri, 2019-09-06 at 01:19 +, Philip Paeps wrote:

Author: philip
Date: Fri Sep  6 01:19:31 2019
New Revision: 351918
URL: https://svnweb.freebsd.org/changeset/base/351918

Log:
  riscv: default to HZ=100

  Most current RISC-V development platforms are not fast enough to
benefit
  from the increased granularity provided by HZ=1000.

  Sponsored by: Axiado

Modified:
  head/sys/kern/subr_param.c

Modified: head/sys/kern/subr_param.c
=
=
--- head/sys/kern/subr_param.c  Fri Sep  6 00:06:55 2019(r351
917)
+++ head/sys/kern/subr_param.c  Fri Sep  6 01:19:31 2019(r351
918)
@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$");
  */

 #ifndef HZ
-#  if defined(__mips__) || defined(__arm__)
+#  if defined(__mips__) || defined(__arm__) || defined(__riscv)
 #defineHZ 100
 #  else
 #defineHZ 1000



This seems like a bad idea.  I've run a 90mhz armv4 chip with HZ=1000 
and didn't notice any performance hit from doing so.  Almost all arm 
kernel config files set HZ as an option, so that define doesn't do 
much for arm these days.  It probably does still set HZ for various 
mips platforms.


I would think 1000 is appropriate for anything modern running at 
200mhz or more.


Setting it to 100 has the bad side effect of making things like 
msleep(), tsleep(), and pause() (which show up in plenty of drivers) 
all have a minimum timeout of 10ms, which is a long long time on 
modern hardware.


What benefit do you think you'll get from the lower number?


On systems running at 10s of MHz (or slower, ick), with HZ=1000 you 
spend an awful lot of time servicing the timer interrupt and not very 
much time doing anything else.


My rationale was that most RISC-V systems (including emulation and FPGA 
prototypes) I've encountered are running slower than the tipping point 
where HZ=1000 makes sense.  With the default of HZ=100, faster 
exceptions can still set HZ=1000 in their individual configs.


When the RISC-V world evolves to having more actual silicon and fewer 
slow prototypes, I definitely agree this default should be flipped again 
for HZ=1000 by default and HZ=100 in the config files for the 
exceptions.


Philip

--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r351918 - head/sys/kern

2019-09-06 Thread Philip Paeps

On 2019-09-06 22:18:36 (+0800), Ian Lepore wrote:

On Fri, 2019-09-06 at 12:15 +0800, Philip Paeps wrote:

On 2019-09-06 11:15:12 (+0800), Ian Lepore wrote:

On Fri, 2019-09-06 at 01:19 +, Philip Paeps wrote:

Log:
  riscv: default to HZ=100


This seems like a bad idea.  I've run a 90mhz armv4 chip with 
HZ=1000 and didn't notice any performance hit from doing so.  Almost 
all arm kernel config files set HZ as an option, so that define 
doesn't do much for arm these days.  It probably does still set HZ 
for various mips platforms.


I would think 1000 is appropriate for anything modern running at 
200mhz or more.


Setting it to 100 has the bad side effect of making things like 
msleep(), tsleep(), and pause() (which show up in plenty of drivers) 
all have a minimum timeout of 10ms, which is a long long time on 
modern hardware.


What benefit do you think you'll get from the lower number?


On systems running at 10s of MHz (or slower, ick), with HZ=1000 you 
spend an awful lot of time servicing the timer interrupt and not very 
much time doing anything else.


My rationale was that most RISC-V systems (including emulation and 
FPGA prototypes) I've encountered are running slower than the tipping 
point where HZ=1000 makes sense.  With the default of HZ=100, faster 
exceptions can still set HZ=1000 in their individual configs.


When the RISC-V world evolves to having more actual silicon and fewer 
slow prototypes, I definitely agree this default should be flipped 
again for HZ=1000 by default and HZ=100 in the config files for the 
exceptions.


Wait a second... are you saying that the riscv implementation doesn't 
support event timers and uses an old-style periodic tick based on HZ?


Depending on the hardware, there may not be an event timer (yet)...

As I wrote: I would be more than happy to revert this change when more 
silicon becomes available.  Presently, there is exactly one silicon 
RISC-V implementation commercially available (HiFive FU540) and even 
that one is kind of difficult to source.  Most people running RISC-V are 
doing so in emulation or on FPGAs.


Given how long these things take to boot to userland (where you really 
notice how slow things are), HZ=100 feels like a more sensible default 
than HZ=1000.


I don't feel terribly strongly about this though.  I've just been bitten 
several times in the last week on a <15MHz FPGA forgetting to set HZ=100 
in config and figured I'd save others the trouble. ;-)


Philip

--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r351918 - head/sys/kern

2019-09-06 Thread Philip Paeps

On 2019-09-07 12:06:32 (+0800), Warner Losh wrote:
On Fri, Sep 6, 2019 at 9:54 PM Philip Paeps  
wrote:

On 2019-09-06 22:18:36 (+0800), Ian Lepore wrote:

On Fri, 2019-09-06 at 12:15 +0800, Philip Paeps wrote:

On 2019-09-06 11:15:12 (+0800), Ian Lepore wrote:

On Fri, 2019-09-06 at 01:19 +, Philip Paeps wrote:

Log:
  riscv: default to HZ=100


This seems like a bad idea.  I've run a 90mhz armv4 chip with 
HZ=1000 and didn't notice any performance hit from doing so.  
Almost all arm kernel config files set HZ as an option, so that 
define doesn't do much for arm these days.  It probably does still 
set HZ for various mips platforms.


I would think 1000 is appropriate for anything modern running at 
200mhz or more.


Setting it to 100 has the bad side effect of making things like 
msleep(), tsleep(), and pause() (which show up in plenty of 
drivers) all have a minimum timeout of 10ms, which is a long long 
time on modern hardware.


What benefit do you think you'll get from the lower number?


On systems running at 10s of MHz (or slower, ick), with HZ=1000 you 
spend an awful lot of time servicing the timer interrupt and not 
very much time doing anything else.


My rationale was that most RISC-V systems (including emulation and 
FPGA prototypes) I've encountered are running slower than the 
tipping point where HZ=1000 makes sense.  With the default of 
HZ=100, faster exceptions can still set HZ=1000 in their individual 
configs.


When the RISC-V world evolves to having more actual silicon and 
fewer slow prototypes, I definitely agree this default should be 
flipped again for HZ=1000 by default and HZ=100 in the config files 
for the exceptions.


Wait a second... are you saying that the riscv implementation 
doesn't support event timers and uses an old-style periodic tick 
based on HZ?


Depending on the hardware, there may not be an event timer (yet)...

As I wrote: I would be more than happy to revert this change when 
more silicon becomes available.  Presently, there is exactly one 
silicon RISC-V implementation commercially available (HiFive FU540) 
and even that one is kind of difficult to source.  Most people 
running RISC-V are doing so in emulation or on FPGAs.


Given how long these things take to boot to userland (where you 
really notice how slow things are), HZ=100 feels like a more sensible 
default than HZ=1000.


I think it show more that the defaults are bad for MIPS and ARM. All 
the MIPS files, except BERI/CHERI are 1000Hz. Well, Octeon is also 
100Hz, due to the defaults, but it will be fine at 1000Hz, so maybe we 
need to attend to this as well. Arm !=v5 is also 1000Hz, so it should 
be changed...


I don't feel terribly strongly about this though.  I've just been 
bitten several times in the last week on a <15MHz FPGA forgetting to 
set HZ=100 in config and figured I'd save others the trouble. ;-)


15MHz FPGA? FreeBSD 1.0 barely ran on 25MHz i386 machines of the 
time  How common are these beasts and how well does FreeBSD do on 
them. I assume these are early prototypes?


These are early prototypes indeed.

FreeBSD runs remarkably well on them.  Slowly of course.  Booting takes 
several minutes and running anything non-trivial can be frustrating.


I have no strong opinion on riscv, but do think mips and arm should 
change.


I will revert r351918 and r351919 since there is clearly no consensus.

Let's take this discussion to arch@?

Philip

--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r351969 - in head/sys: kern riscv/conf

2019-09-06 Thread Philip Paeps
Author: philip
Date: Sat Sep  7 05:13:31 2019
New Revision: 351969
URL: https://svnweb.freebsd.org/changeset/base/351969

Log:
  riscv: restore default HZ=1000, keep QEMU at HZ=100
  
  This reverts r351918 and r351919.
  
  Discussed with:   br, ian, imp

Modified:
  head/sys/kern/subr_param.c
  head/sys/riscv/conf/QEMU

Modified: head/sys/kern/subr_param.c
==
--- head/sys/kern/subr_param.c  Sat Sep  7 04:09:43 2019(r351968)
+++ head/sys/kern/subr_param.c  Sat Sep  7 05:13:31 2019(r351969)
@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$");
  */
 
 #ifndef HZ
-#  if defined(__mips__) || defined(__arm__) || defined(__riscv)
+#  if defined(__mips__) || defined(__arm__)
 #defineHZ 100
 #  else
 #defineHZ 1000

Modified: head/sys/riscv/conf/QEMU
==
--- head/sys/riscv/conf/QEMUSat Sep  7 04:09:43 2019(r351968)
+++ head/sys/riscv/conf/QEMUSat Sep  7 05:13:31 2019(r351969)
@@ -6,4 +6,5 @@ include "GENERIC"
 
 ident QEMU
 
+optionsHZ=100
 optionsROOTDEVNAME=\"ufs:/dev/vtbd0\"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r352236 - vendor/tzdata/dist

2019-09-11 Thread Philip Paeps
Author: philip
Date: Thu Sep 12 00:15:06 2019
New Revision: 352236
URL: https://svnweb.freebsd.org/changeset/base/352236

Log:
  Import tzdata 2019c

Modified:
  vendor/tzdata/dist/NEWS
  vendor/tzdata/dist/asia
  vendor/tzdata/dist/australasia
  vendor/tzdata/dist/backzone
  vendor/tzdata/dist/europe
  vendor/tzdata/dist/leap-seconds.list
  vendor/tzdata/dist/leapseconds
  vendor/tzdata/dist/leapseconds.awk
  vendor/tzdata/dist/northamerica
  vendor/tzdata/dist/southamerica
  vendor/tzdata/dist/theory.html
  vendor/tzdata/dist/version

Modified: vendor/tzdata/dist/NEWS
==
--- vendor/tzdata/dist/NEWS Wed Sep 11 23:45:58 2019(r352235)
+++ vendor/tzdata/dist/NEWS Thu Sep 12 00:15:06 2019(r352236)
@@ -1,5 +1,80 @@
 News for the tz database
 
+Release 2019c - 2019-09-11 08:59:48 -0700
+
+  Briefly:
+Fiji observes DST from 2019-11-10 to 2020-01-12.
+Norfolk Island starts observing Australian-style DST.
+
+  Changes to future timestamps
+
+Fiji's next DST transitions will be 2019-11-10 and 2020-01-12
+instead of 2019-11-03 and 2020-01-19.  (Thanks to Raymond Kumar.)
+Adjust future guesses accordingly.
+
+Norfolk Island will observe Australian-style DST starting in
+spring 2019.  The first transition is on 2019-10-06.  (Thanks to
+Kyle Czech and Michael Deckers.)
+
+  Changes to past timestamps
+
+Many corrections to time in Turkey from 1940 through 1985.
+(Thanks to Oya Vulaş via Alois Treindl, and to Kıvanç Yazan.)
+
+The Norfolk Island 1975-03-02 transition was at 02:00 standard
+time, not 02:00 DST.  (Thanks to Michael Deckers.)
+
+South Korea observed DST from 1948 through 1951.  Although this
+info was supposed to appear in release 2014j, a typo inadvertently
+suppressed the change.  (Thanks to Alois Treindl.)
+
+Detroit observed DST in 1967 and 1968 following the US DST rules,
+except that its 1967 DST began on June 14 at 00:01.  (Thanks to
+Alois Treindl for pointing out that the old data entries were
+probably wrong.)
+
+Fix several errors in pre-1970 transitions in Perry County, IN.
+(Thanks to Alois Triendl for pointing out the 1967/9 errors.)
+
+Edmonton did not observe DST in 1967 or 1969.  In 1946 Vancouver
+ended DST on 09-29 not 10-13, and Vienna ended DST on 10-07 not
+10-06.  In 1945 Königsberg (now Kaliningrad) switched from +01/+02
+to +02/+03 on 04-10 not 01-01, and its +02/+03 is abbreviated
+EET/EEST, not CET/CEST.  (Thanks to Alois Triendl.)  In 1946
+Königsberg switched to +03 on 04-07 not 01-01.
+
+In 1946 Louisville switched from CST to CDT on 04-28 at 00:01, not
+01-01 at 00:00.  (Thanks to Alois Treindl and Michael Deckers.)
+Also, it switched from CST to CDT on 1950-04-30, not 1947-04-27.
+
+The 1892-05-01 transition in Brussels was at 00:17:30, not at noon.
+(Thanks to Michael Deckers.)
+
+  Changes to past time zone abbreviations and DST flags
+
+Hong Kong Winter Time, observed from 1941-10-01 to 1941-12-25,
+is now flagged as DST and is abbreviated HKWT not HKT.
+
+  Changes to code
+
+leapseconds.awk now relies only on its input data, rather than
+also relying on its comments.  (Inspired by code from Dennis
+Ferguson and Chris Woodbury.)
+
+The code now defends against CRLFs in leap-seconds.list.
+(Thanks to Brian Inglis and Chris Woodbury.)
+
+  Changes to documentation and commentary
+
+theory.html discusses leap seconds.  (Thanks to Steve Summit.)
+
+Nashville's newspapers dueled about the time of day in the 1950s.
+(Thanks to John Seigenthaler.)
+
+Liechtenstein observed Swiss DST in 1941/2.
+(Thanks to Alois Treindl.)
+
+
 Release 2019b - 2019-07-01 00:09:53 -0700
 
   Briefly:

Modified: vendor/tzdata/dist/asia
==
--- vendor/tzdata/dist/asia Wed Sep 11 23:45:58 2019(r352235)
+++ vendor/tzdata/dist/asia Thu Sep 12 00:15:06 2019(r352236)
@@ -8,7 +8,7 @@
 # t...@iana.org for general use in the future).  For more, please see
 # the file CONTRIBUTING in the tz distribution.
 
-# From Paul Eggert (2018-06-19):
+# From Paul Eggert (2019-07-11):
 #
 # Unless otherwise specified, the source for data through 1990 is:
 # Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
@@ -47,13 +47,13 @@
 #  7:00 WIBwest Indonesia (Waktu Indonesia Barat)
 #  8:00 WITA   central Indonesia (Waktu Indonesia Tengah)
 #  8:00 CSTChina
-#  8:00 PST  PDT*  Philippine Standard Time
+#  8:00 HKT  HKST  Hong Kong (HKWT* for Winter Time in late 1941)
+#  8:00 PST  PDT*  Philippines
 #  8:30 KST  KDT   Korea when at +0830
 #  9:00 WITeast Indonesia (Waktu Indonesia Timur)
 #  9:00 JST  JDT   Japan
 #  9:00 KST  KDT   Korea when at +09
-#  9:30 A

svn commit: r352237 - vendor/tzdata/tzdata2019c

2019-09-11 Thread Philip Paeps
Author: philip
Date: Thu Sep 12 00:15:40 2019
New Revision: 352237
URL: https://svnweb.freebsd.org/changeset/base/352237

Log:
  Tag import of tzdata2019c

Added:
  vendor/tzdata/tzdata2019c/
 - copied from r352236, vendor/tzdata/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r352238 - head/contrib/tzdata

2019-09-11 Thread Philip Paeps
Author: philip
Date: Thu Sep 12 00:19:16 2019
New Revision: 352238
URL: https://svnweb.freebsd.org/changeset/base/352238

Log:
  Import tzdata 2019c
  
  Changes: https://github.com/eggert/tz/blob/2019c/NEWS
  
  MFC after:3 days

Modified:
  head/contrib/tzdata/NEWS
  head/contrib/tzdata/asia
  head/contrib/tzdata/australasia
  head/contrib/tzdata/backzone
  head/contrib/tzdata/europe
  head/contrib/tzdata/leap-seconds.list
  head/contrib/tzdata/leapseconds
  head/contrib/tzdata/leapseconds.awk
  head/contrib/tzdata/northamerica
  head/contrib/tzdata/southamerica
  head/contrib/tzdata/theory.html
  head/contrib/tzdata/version

Modified: head/contrib/tzdata/NEWS
==
--- head/contrib/tzdata/NEWSThu Sep 12 00:15:40 2019(r352237)
+++ head/contrib/tzdata/NEWSThu Sep 12 00:19:16 2019(r352238)
@@ -1,5 +1,80 @@
 News for the tz database
 
+Release 2019c - 2019-09-11 08:59:48 -0700
+
+  Briefly:
+Fiji observes DST from 2019-11-10 to 2020-01-12.
+Norfolk Island starts observing Australian-style DST.
+
+  Changes to future timestamps
+
+Fiji's next DST transitions will be 2019-11-10 and 2020-01-12
+instead of 2019-11-03 and 2020-01-19.  (Thanks to Raymond Kumar.)
+Adjust future guesses accordingly.
+
+Norfolk Island will observe Australian-style DST starting in
+spring 2019.  The first transition is on 2019-10-06.  (Thanks to
+Kyle Czech and Michael Deckers.)
+
+  Changes to past timestamps
+
+Many corrections to time in Turkey from 1940 through 1985.
+(Thanks to Oya Vulaş via Alois Treindl, and to Kıvanç Yazan.)
+
+The Norfolk Island 1975-03-02 transition was at 02:00 standard
+time, not 02:00 DST.  (Thanks to Michael Deckers.)
+
+South Korea observed DST from 1948 through 1951.  Although this
+info was supposed to appear in release 2014j, a typo inadvertently
+suppressed the change.  (Thanks to Alois Treindl.)
+
+Detroit observed DST in 1967 and 1968 following the US DST rules,
+except that its 1967 DST began on June 14 at 00:01.  (Thanks to
+Alois Treindl for pointing out that the old data entries were
+probably wrong.)
+
+Fix several errors in pre-1970 transitions in Perry County, IN.
+(Thanks to Alois Triendl for pointing out the 1967/9 errors.)
+
+Edmonton did not observe DST in 1967 or 1969.  In 1946 Vancouver
+ended DST on 09-29 not 10-13, and Vienna ended DST on 10-07 not
+10-06.  In 1945 Königsberg (now Kaliningrad) switched from +01/+02
+to +02/+03 on 04-10 not 01-01, and its +02/+03 is abbreviated
+EET/EEST, not CET/CEST.  (Thanks to Alois Triendl.)  In 1946
+Königsberg switched to +03 on 04-07 not 01-01.
+
+In 1946 Louisville switched from CST to CDT on 04-28 at 00:01, not
+01-01 at 00:00.  (Thanks to Alois Treindl and Michael Deckers.)
+Also, it switched from CST to CDT on 1950-04-30, not 1947-04-27.
+
+The 1892-05-01 transition in Brussels was at 00:17:30, not at noon.
+(Thanks to Michael Deckers.)
+
+  Changes to past time zone abbreviations and DST flags
+
+Hong Kong Winter Time, observed from 1941-10-01 to 1941-12-25,
+is now flagged as DST and is abbreviated HKWT not HKT.
+
+  Changes to code
+
+leapseconds.awk now relies only on its input data, rather than
+also relying on its comments.  (Inspired by code from Dennis
+Ferguson and Chris Woodbury.)
+
+The code now defends against CRLFs in leap-seconds.list.
+(Thanks to Brian Inglis and Chris Woodbury.)
+
+  Changes to documentation and commentary
+
+theory.html discusses leap seconds.  (Thanks to Steve Summit.)
+
+Nashville's newspapers dueled about the time of day in the 1950s.
+(Thanks to John Seigenthaler.)
+
+Liechtenstein observed Swiss DST in 1941/2.
+(Thanks to Alois Treindl.)
+
+
 Release 2019b - 2019-07-01 00:09:53 -0700
 
   Briefly:

Modified: head/contrib/tzdata/asia
==
--- head/contrib/tzdata/asiaThu Sep 12 00:15:40 2019(r352237)
+++ head/contrib/tzdata/asiaThu Sep 12 00:19:16 2019(r352238)
@@ -8,7 +8,7 @@
 # t...@iana.org for general use in the future).  For more, please see
 # the file CONTRIBUTING in the tz distribution.
 
-# From Paul Eggert (2018-06-19):
+# From Paul Eggert (2019-07-11):
 #
 # Unless otherwise specified, the source for data through 1990 is:
 # Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
@@ -47,13 +47,13 @@
 #  7:00 WIBwest Indonesia (Waktu Indonesia Barat)
 #  8:00 WITA   central Indonesia (Waktu Indonesia Tengah)
 #  8:00 CSTChina
-#  8:00 PST  PDT*  Philippine Standard Time
+#  8:00 HKT  HKST  Hong Kong (HKWT* for Winter Time in late 1941)
+#  8:00 PST  PDT*  Philippines
 #  8:30 KST  KDT   Korea when at +0830
 #  9:00 WITeast Indonesia (Waktu Indo

svn commit: r352239 - head/contrib/tzdata

2019-09-11 Thread Philip Paeps
Author: philip
Date: Thu Sep 12 00:33:01 2019
New Revision: 352239
URL: https://svnweb.freebsd.org/changeset/base/352239

Log:
  Restore svn:mergeinfo accidentally deleted in r352238
  
  Pointy hat to:philip

Modified:
Directory Properties:
  head/contrib/tzdata/   (props changed)
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r352353 - stable/12/contrib/tzdata

2019-09-15 Thread Philip Paeps
Author: philip
Date: Sun Sep 15 10:54:18 2019
New Revision: 352353
URL: https://svnweb.freebsd.org/changeset/base/352353

Log:
  MFC r352238: Import tzdata 2019c

Modified:
  stable/12/contrib/tzdata/NEWS
  stable/12/contrib/tzdata/asia
  stable/12/contrib/tzdata/australasia
  stable/12/contrib/tzdata/backzone
  stable/12/contrib/tzdata/europe
  stable/12/contrib/tzdata/leap-seconds.list
  stable/12/contrib/tzdata/leapseconds
  stable/12/contrib/tzdata/leapseconds.awk
  stable/12/contrib/tzdata/northamerica
  stable/12/contrib/tzdata/southamerica
  stable/12/contrib/tzdata/theory.html
  stable/12/contrib/tzdata/version
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/tzdata/NEWS
==
--- stable/12/contrib/tzdata/NEWS   Sun Sep 15 08:16:28 2019
(r352352)
+++ stable/12/contrib/tzdata/NEWS   Sun Sep 15 10:54:18 2019
(r352353)
@@ -1,5 +1,80 @@
 News for the tz database
 
+Release 2019c - 2019-09-11 08:59:48 -0700
+
+  Briefly:
+Fiji observes DST from 2019-11-10 to 2020-01-12.
+Norfolk Island starts observing Australian-style DST.
+
+  Changes to future timestamps
+
+Fiji's next DST transitions will be 2019-11-10 and 2020-01-12
+instead of 2019-11-03 and 2020-01-19.  (Thanks to Raymond Kumar.)
+Adjust future guesses accordingly.
+
+Norfolk Island will observe Australian-style DST starting in
+spring 2019.  The first transition is on 2019-10-06.  (Thanks to
+Kyle Czech and Michael Deckers.)
+
+  Changes to past timestamps
+
+Many corrections to time in Turkey from 1940 through 1985.
+(Thanks to Oya Vulaş via Alois Treindl, and to Kıvanç Yazan.)
+
+The Norfolk Island 1975-03-02 transition was at 02:00 standard
+time, not 02:00 DST.  (Thanks to Michael Deckers.)
+
+South Korea observed DST from 1948 through 1951.  Although this
+info was supposed to appear in release 2014j, a typo inadvertently
+suppressed the change.  (Thanks to Alois Treindl.)
+
+Detroit observed DST in 1967 and 1968 following the US DST rules,
+except that its 1967 DST began on June 14 at 00:01.  (Thanks to
+Alois Treindl for pointing out that the old data entries were
+probably wrong.)
+
+Fix several errors in pre-1970 transitions in Perry County, IN.
+(Thanks to Alois Triendl for pointing out the 1967/9 errors.)
+
+Edmonton did not observe DST in 1967 or 1969.  In 1946 Vancouver
+ended DST on 09-29 not 10-13, and Vienna ended DST on 10-07 not
+10-06.  In 1945 Königsberg (now Kaliningrad) switched from +01/+02
+to +02/+03 on 04-10 not 01-01, and its +02/+03 is abbreviated
+EET/EEST, not CET/CEST.  (Thanks to Alois Triendl.)  In 1946
+Königsberg switched to +03 on 04-07 not 01-01.
+
+In 1946 Louisville switched from CST to CDT on 04-28 at 00:01, not
+01-01 at 00:00.  (Thanks to Alois Treindl and Michael Deckers.)
+Also, it switched from CST to CDT on 1950-04-30, not 1947-04-27.
+
+The 1892-05-01 transition in Brussels was at 00:17:30, not at noon.
+(Thanks to Michael Deckers.)
+
+  Changes to past time zone abbreviations and DST flags
+
+Hong Kong Winter Time, observed from 1941-10-01 to 1941-12-25,
+is now flagged as DST and is abbreviated HKWT not HKT.
+
+  Changes to code
+
+leapseconds.awk now relies only on its input data, rather than
+also relying on its comments.  (Inspired by code from Dennis
+Ferguson and Chris Woodbury.)
+
+The code now defends against CRLFs in leap-seconds.list.
+(Thanks to Brian Inglis and Chris Woodbury.)
+
+  Changes to documentation and commentary
+
+theory.html discusses leap seconds.  (Thanks to Steve Summit.)
+
+Nashville's newspapers dueled about the time of day in the 1950s.
+(Thanks to John Seigenthaler.)
+
+Liechtenstein observed Swiss DST in 1941/2.
+(Thanks to Alois Treindl.)
+
+
 Release 2019b - 2019-07-01 00:09:53 -0700
 
   Briefly:

Modified: stable/12/contrib/tzdata/asia
==
--- stable/12/contrib/tzdata/asia   Sun Sep 15 08:16:28 2019
(r352352)
+++ stable/12/contrib/tzdata/asia   Sun Sep 15 10:54:18 2019
(r352353)
@@ -8,7 +8,7 @@
 # t...@iana.org for general use in the future).  For more, please see
 # the file CONTRIBUTING in the tz distribution.
 
-# From Paul Eggert (2018-06-19):
+# From Paul Eggert (2019-07-11):
 #
 # Unless otherwise specified, the source for data through 1990 is:
 # Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
@@ -47,13 +47,13 @@
 #  7:00 WIBwest Indonesia (Waktu Indonesia Barat)
 #  8:00 WITA   central Indonesia (Waktu Indonesia Tengah)
 #  8:00 CSTChina
-#  8:00 PST  PDT*  Philippine Standard Time
+#  8:00 HKT  HKST  Hong Kong (HKWT* for Winter Time in late 1941)
+#  8:00 PST  PDT*  Philippines
 # 

svn commit: r352354 - stable/11/contrib/tzdata

2019-09-15 Thread Philip Paeps
Author: philip
Date: Sun Sep 15 10:54:33 2019
New Revision: 352354
URL: https://svnweb.freebsd.org/changeset/base/352354

Log:
  MFC r352238: Import tzdata 2019c

Modified:
  stable/11/contrib/tzdata/NEWS
  stable/11/contrib/tzdata/asia
  stable/11/contrib/tzdata/australasia
  stable/11/contrib/tzdata/backzone
  stable/11/contrib/tzdata/europe
  stable/11/contrib/tzdata/leap-seconds.list
  stable/11/contrib/tzdata/leapseconds
  stable/11/contrib/tzdata/leapseconds.awk
  stable/11/contrib/tzdata/northamerica
  stable/11/contrib/tzdata/southamerica
  stable/11/contrib/tzdata/theory.html
  stable/11/contrib/tzdata/version
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/tzdata/NEWS
==
--- stable/11/contrib/tzdata/NEWS   Sun Sep 15 10:54:18 2019
(r352353)
+++ stable/11/contrib/tzdata/NEWS   Sun Sep 15 10:54:33 2019
(r352354)
@@ -1,5 +1,80 @@
 News for the tz database
 
+Release 2019c - 2019-09-11 08:59:48 -0700
+
+  Briefly:
+Fiji observes DST from 2019-11-10 to 2020-01-12.
+Norfolk Island starts observing Australian-style DST.
+
+  Changes to future timestamps
+
+Fiji's next DST transitions will be 2019-11-10 and 2020-01-12
+instead of 2019-11-03 and 2020-01-19.  (Thanks to Raymond Kumar.)
+Adjust future guesses accordingly.
+
+Norfolk Island will observe Australian-style DST starting in
+spring 2019.  The first transition is on 2019-10-06.  (Thanks to
+Kyle Czech and Michael Deckers.)
+
+  Changes to past timestamps
+
+Many corrections to time in Turkey from 1940 through 1985.
+(Thanks to Oya Vulaş via Alois Treindl, and to Kıvanç Yazan.)
+
+The Norfolk Island 1975-03-02 transition was at 02:00 standard
+time, not 02:00 DST.  (Thanks to Michael Deckers.)
+
+South Korea observed DST from 1948 through 1951.  Although this
+info was supposed to appear in release 2014j, a typo inadvertently
+suppressed the change.  (Thanks to Alois Treindl.)
+
+Detroit observed DST in 1967 and 1968 following the US DST rules,
+except that its 1967 DST began on June 14 at 00:01.  (Thanks to
+Alois Treindl for pointing out that the old data entries were
+probably wrong.)
+
+Fix several errors in pre-1970 transitions in Perry County, IN.
+(Thanks to Alois Triendl for pointing out the 1967/9 errors.)
+
+Edmonton did not observe DST in 1967 or 1969.  In 1946 Vancouver
+ended DST on 09-29 not 10-13, and Vienna ended DST on 10-07 not
+10-06.  In 1945 Königsberg (now Kaliningrad) switched from +01/+02
+to +02/+03 on 04-10 not 01-01, and its +02/+03 is abbreviated
+EET/EEST, not CET/CEST.  (Thanks to Alois Triendl.)  In 1946
+Königsberg switched to +03 on 04-07 not 01-01.
+
+In 1946 Louisville switched from CST to CDT on 04-28 at 00:01, not
+01-01 at 00:00.  (Thanks to Alois Treindl and Michael Deckers.)
+Also, it switched from CST to CDT on 1950-04-30, not 1947-04-27.
+
+The 1892-05-01 transition in Brussels was at 00:17:30, not at noon.
+(Thanks to Michael Deckers.)
+
+  Changes to past time zone abbreviations and DST flags
+
+Hong Kong Winter Time, observed from 1941-10-01 to 1941-12-25,
+is now flagged as DST and is abbreviated HKWT not HKT.
+
+  Changes to code
+
+leapseconds.awk now relies only on its input data, rather than
+also relying on its comments.  (Inspired by code from Dennis
+Ferguson and Chris Woodbury.)
+
+The code now defends against CRLFs in leap-seconds.list.
+(Thanks to Brian Inglis and Chris Woodbury.)
+
+  Changes to documentation and commentary
+
+theory.html discusses leap seconds.  (Thanks to Steve Summit.)
+
+Nashville's newspapers dueled about the time of day in the 1950s.
+(Thanks to John Seigenthaler.)
+
+Liechtenstein observed Swiss DST in 1941/2.
+(Thanks to Alois Treindl.)
+
+
 Release 2019b - 2019-07-01 00:09:53 -0700
 
   Briefly:

Modified: stable/11/contrib/tzdata/asia
==
--- stable/11/contrib/tzdata/asia   Sun Sep 15 10:54:18 2019
(r352353)
+++ stable/11/contrib/tzdata/asia   Sun Sep 15 10:54:33 2019
(r352354)
@@ -8,7 +8,7 @@
 # t...@iana.org for general use in the future).  For more, please see
 # the file CONTRIBUTING in the tz distribution.
 
-# From Paul Eggert (2018-06-19):
+# From Paul Eggert (2019-07-11):
 #
 # Unless otherwise specified, the source for data through 1990 is:
 # Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
@@ -47,13 +47,13 @@
 #  7:00 WIBwest Indonesia (Waktu Indonesia Barat)
 #  8:00 WITA   central Indonesia (Waktu Indonesia Tengah)
 #  8:00 CSTChina
-#  8:00 PST  PDT*  Philippine Standard Time
+#  8:00 HKT  HKST  Hong Kong (HKWT* for Winter Time in late 1941)
+#  8:00 PST  PDT*  Philippines
 # 

svn commit: r366957 - stable/11/contrib/tzdata

2020-10-22 Thread Philip Paeps
Author: philip
Date: Fri Oct 23 01:06:42 2020
New Revision: 366957
URL: https://svnweb.freebsd.org/changeset/base/366957

Log:
  MFC r366921: Import tzdata 2020d

Modified:
  stable/11/contrib/tzdata/Makefile
  stable/11/contrib/tzdata/NEWS
  stable/11/contrib/tzdata/asia
  stable/11/contrib/tzdata/europe
  stable/11/contrib/tzdata/version
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/tzdata/Makefile
==
--- stable/11/contrib/tzdata/Makefile   Fri Oct 23 01:06:33 2020
(r366956)
+++ stable/11/contrib/tzdata/Makefile   Fri Oct 23 01:06:42 2020
(r366957)
@@ -1023,7 +1023,7 @@ tzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-ti
sed '1s/$$/-rearguard/' \
  tzdata$(VERSION)-rearguard.dir/version
: The dummy pacificnew pacifies TZUpdater 2.3.1 and earlier.
-   touch -md 2020-10-12T22:53:00Z \
+   TZ=UTC0 touch -mt 202010122253.00 \
  tzdata$(VERSION)-rearguard.dir/pacificnew
touch -cmr version tzdata$(VERSION)-rearguard.dir/version
LC_ALL=C && export LC_ALL && \

Modified: stable/11/contrib/tzdata/NEWS
==
--- stable/11/contrib/tzdata/NEWS   Fri Oct 23 01:06:33 2020
(r366956)
+++ stable/11/contrib/tzdata/NEWS   Fri Oct 23 01:06:42 2020
(r366957)
@@ -1,5 +1,23 @@
 News for the tz database
 
+Release 2020d - 2020-10-21 11:24:13 -0700
+
+  Briefly:
+Palestine ends DST earlier than predicted, on 2020-10-24.
+
+  Changes to past and future timestamps
+
+Palestine ends DST on 2020-10-24 at 01:00, instead of 2020-10-31
+as previously predicted (thanks to Sharef Mustafa.)  Its
+2019-10-26 fall-back was at 00:00, not 01:00 (thanks to Steffen
+Thorsen.)  Its 2015-10-23 transition was at 01:00 not 00:00, and
+its spring 2020 transition was on March 28 at 00:00, not March 27
+(thanks to Pierre Cashon.)  This affects Asia/Gaza and
+Asia/Hebron.  Assume future spring and fall transitions will be on
+the Saturday preceding the last Sunday of March and October,
+respectively.
+
+
 Release 2020c - 2020-10-16 11:15:53 -0700
 
   Briefly:

Modified: stable/11/contrib/tzdata/asia
==
--- stable/11/contrib/tzdata/asia   Fri Oct 23 01:06:33 2020
(r366956)
+++ stable/11/contrib/tzdata/asia   Fri Oct 23 01:06:42 2020
(r366957)
@@ -3221,14 +3221,41 @@ ZoneAsia/Karachi4:28:12 -   LMT 1907
 
 # From Sharef Mustafa (2019-10-18):
 # Palestine summer time will end on midnight Oct 26th 2019 ...
-# http://www.palestinecabinet.gov.ps/website/ar/ViewDetails?ID=43948
 #
-# From Paul Eggert (2019-04-10):
-# For now, guess spring-ahead transitions are March's last Friday at 00:00.
+# From Steffen Thorsen (2020-10-20):
+# Some sources such as these say, and display on clocks, that DST ended at
+# midnight last year...
+# https://www.amad.ps/ar/post/320006
 #
-# From Tim Parenti (2016-10-19):
-# Predict fall transitions on October's last Saturday at 01:00 from now on.
+# From Tim Parenti (2020-10-20):
+# The report of the Palestinian Cabinet meeting of 2019-10-14 confirms
+# a decision on (translated): "The start of the winter time in Palestine, by
+# delaying the clock by sixty minutes, starting from midnight on Friday /
+# Saturday corresponding to 26/10/2019."
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/43948
 
+# From Sharef Mustafa (2020-10-20):
+# As per the palestinian cabinet announcement yesterday , the day light saving
+# shall [end] on Oct 24th 2020 at 01:00AM by delaying the clock by 60 minutes.
+# http://www.palestinecabinet.gov.ps/portal/Meeting/Details/51584
+
+# From Tim Parenti (2020-10-20):
+# Predict future fall transitions at 01:00 on the Saturday preceding October's
+# last Sunday (i.e., Sat>=24).  This is consistent with our predictions since
+# 2016, although the time of the change differed slightly in 2019.
+
+# From Pierre Cashon (2020-10-20):
+# The summer time this year started on March 28 at 00:00.
+# https://wafa.ps/ar_page.aspx?id=GveQNZa872839351758aGveQNZ
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/50284
+# The winter time in 2015 started on October 23 at 01:00.
+# https://wafa.ps/ar_page.aspx?id=CgpCdYa670694628582aCgpCdY
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/27583
+#
+# From Paul Eggert (2019-04-10):
+# For now, guess spring-ahead transitions are at 00:00 on the Saturday
+# preceding March's last Sunday (i.e., Sat>=24).
+
 # Rule NAMEFROMTO  -   IN  ON  AT  SAVELETTER/S
 Rule EgyptAsia 1957only-   May 10  0:001:00S
 Rule EgyptAsia 19571958-   Oct  1  0:000   -
@@ -3243,10 +3270,10 

svn commit: r366956 - stable/12/contrib/tzdata

2020-10-22 Thread Philip Paeps
Author: philip
Date: Fri Oct 23 01:06:33 2020
New Revision: 366956
URL: https://svnweb.freebsd.org/changeset/base/366956

Log:
  MFC r366921: Import tzdata 2020d

Modified:
  stable/12/contrib/tzdata/Makefile
  stable/12/contrib/tzdata/NEWS
  stable/12/contrib/tzdata/asia
  stable/12/contrib/tzdata/europe
  stable/12/contrib/tzdata/version
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/tzdata/Makefile
==
--- stable/12/contrib/tzdata/Makefile   Fri Oct 23 00:23:54 2020
(r366955)
+++ stable/12/contrib/tzdata/Makefile   Fri Oct 23 01:06:33 2020
(r366956)
@@ -1023,7 +1023,7 @@ tzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-ti
sed '1s/$$/-rearguard/' \
  tzdata$(VERSION)-rearguard.dir/version
: The dummy pacificnew pacifies TZUpdater 2.3.1 and earlier.
-   touch -md 2020-10-12T22:53:00Z \
+   TZ=UTC0 touch -mt 202010122253.00 \
  tzdata$(VERSION)-rearguard.dir/pacificnew
touch -cmr version tzdata$(VERSION)-rearguard.dir/version
LC_ALL=C && export LC_ALL && \

Modified: stable/12/contrib/tzdata/NEWS
==
--- stable/12/contrib/tzdata/NEWS   Fri Oct 23 00:23:54 2020
(r366955)
+++ stable/12/contrib/tzdata/NEWS   Fri Oct 23 01:06:33 2020
(r366956)
@@ -1,5 +1,23 @@
 News for the tz database
 
+Release 2020d - 2020-10-21 11:24:13 -0700
+
+  Briefly:
+Palestine ends DST earlier than predicted, on 2020-10-24.
+
+  Changes to past and future timestamps
+
+Palestine ends DST on 2020-10-24 at 01:00, instead of 2020-10-31
+as previously predicted (thanks to Sharef Mustafa.)  Its
+2019-10-26 fall-back was at 00:00, not 01:00 (thanks to Steffen
+Thorsen.)  Its 2015-10-23 transition was at 01:00 not 00:00, and
+its spring 2020 transition was on March 28 at 00:00, not March 27
+(thanks to Pierre Cashon.)  This affects Asia/Gaza and
+Asia/Hebron.  Assume future spring and fall transitions will be on
+the Saturday preceding the last Sunday of March and October,
+respectively.
+
+
 Release 2020c - 2020-10-16 11:15:53 -0700
 
   Briefly:

Modified: stable/12/contrib/tzdata/asia
==
--- stable/12/contrib/tzdata/asia   Fri Oct 23 00:23:54 2020
(r366955)
+++ stable/12/contrib/tzdata/asia   Fri Oct 23 01:06:33 2020
(r366956)
@@ -3221,14 +3221,41 @@ ZoneAsia/Karachi4:28:12 -   LMT 1907
 
 # From Sharef Mustafa (2019-10-18):
 # Palestine summer time will end on midnight Oct 26th 2019 ...
-# http://www.palestinecabinet.gov.ps/website/ar/ViewDetails?ID=43948
 #
-# From Paul Eggert (2019-04-10):
-# For now, guess spring-ahead transitions are March's last Friday at 00:00.
+# From Steffen Thorsen (2020-10-20):
+# Some sources such as these say, and display on clocks, that DST ended at
+# midnight last year...
+# https://www.amad.ps/ar/post/320006
 #
-# From Tim Parenti (2016-10-19):
-# Predict fall transitions on October's last Saturday at 01:00 from now on.
+# From Tim Parenti (2020-10-20):
+# The report of the Palestinian Cabinet meeting of 2019-10-14 confirms
+# a decision on (translated): "The start of the winter time in Palestine, by
+# delaying the clock by sixty minutes, starting from midnight on Friday /
+# Saturday corresponding to 26/10/2019."
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/43948
 
+# From Sharef Mustafa (2020-10-20):
+# As per the palestinian cabinet announcement yesterday , the day light saving
+# shall [end] on Oct 24th 2020 at 01:00AM by delaying the clock by 60 minutes.
+# http://www.palestinecabinet.gov.ps/portal/Meeting/Details/51584
+
+# From Tim Parenti (2020-10-20):
+# Predict future fall transitions at 01:00 on the Saturday preceding October's
+# last Sunday (i.e., Sat>=24).  This is consistent with our predictions since
+# 2016, although the time of the change differed slightly in 2019.
+
+# From Pierre Cashon (2020-10-20):
+# The summer time this year started on March 28 at 00:00.
+# https://wafa.ps/ar_page.aspx?id=GveQNZa872839351758aGveQNZ
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/50284
+# The winter time in 2015 started on October 23 at 01:00.
+# https://wafa.ps/ar_page.aspx?id=CgpCdYa670694628582aCgpCdY
+# http://www.palestinecabinet.gov.ps/portal/meeting/details/27583
+#
+# From Paul Eggert (2019-04-10):
+# For now, guess spring-ahead transitions are at 00:00 on the Saturday
+# preceding March's last Sunday (i.e., Sat>=24).
+
 # Rule NAMEFROMTO  -   IN  ON  AT  SAVELETTER/S
 Rule EgyptAsia 1957only-   May 10  0:001:00S
 Rule EgyptAsia 19571958-   Oct  1  0:000   -
@@ -3243,10 +3270,10 

Re: svn commit: r353141 - in vendor/libpcap/dist: . cmake/Modules doc missing msdos pcap rpcapd testprogs

2019-12-18 Thread Philip Paeps

On 2019-12-19 08:23:34 (+0800), Cy Schubert wrote:

In message <201910060426.x964qcss053...@repo.freebsd.org>, Philip 
Paeps

writes:

Author: philip
Date: Sun Oct  6 04:26:37 2019
New Revision: 353141
URL: https://svnweb.freebsd.org/changeset/base/353141

Log:
  Import libpcap 1.9.1



Hi Phillip,

Is it possible to MFV this, tcpdump (r353143) and r355890 (which I 
just

imported into vendor)?


Yes!  This completely slipped my mind when I did the vendor import a few 
weeks ago.  I got distracted by other things.  Apologies.


Philip

--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r355920 - head/sys/riscv/sifive

2019-12-19 Thread Philip Paeps
Author: philip
Date: Fri Dec 20 03:38:21 2019
New Revision: 355920
URL: https://svnweb.freebsd.org/changeset/base/355920

Log:
  riscv/sifive: add SiFive FU540 PRCI driver
  
  The SiFive FU540 Power Reset Clocking Interrupt block contains a PLL
  that turns the input crystal (33.3MHz) into a 1-1.5GHz clock.
  This clock in turn is divided by two to produce the tlclk, which is fed
  into devices such as the SPI and I2C controllers.
  
  Register a new clock device for the PRCI so that those devices can
  read the correct clock through the clk framework.
  
  Submitted by:   kp
  Sponsored by:   Axiado

Added:
  head/sys/riscv/sifive/
  head/sys/riscv/sifive/files.sifive   (contents, props changed)
  head/sys/riscv/sifive/fu540_prci.c   (contents, props changed)
  head/sys/riscv/sifive/std.sifive   (contents, props changed)

Added: head/sys/riscv/sifive/files.sifive
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/riscv/sifive/files.sifive  Fri Dec 20 03:38:21 2019
(r355920)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+riscv/sifive/fu540_prci.c  standard

Added: head/sys/riscv/sifive/fu540_prci.c
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/riscv/sifive/fu540_prci.c  Fri Dec 20 03:38:21 2019
(r355920)
@@ -0,0 +1,268 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2019 Axiado Corporation
+ * All rights reserved.
+ *
+ * This software was developed in part by Kristof Provost under contract for
+ * Axiado Corporation.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include 
+__FBSDID("$FreeBSD$");
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+#include 
+
+#include 
+#include 
+#include 
+
+static struct resource_spec prci_spec[] = {
+   { SYS_RES_MEMORY, 0, RF_ACTIVE },
+   RESOURCE_SPEC_END
+};
+
+struct prci_softc {
+   device_tdev;
+
+   struct mtx  mtx;
+
+   struct clkdom   *clkdom;
+   struct resource *res;
+   bus_space_tag_t bst;
+   bus_space_handle_t  bsh;
+};
+
+struct prci_clk_pll_sc {
+   struct prci_softc   *parent_sc;
+};
+
+#definePRCI_LOCK(sc)   mtx_lock(&(sc)->mtx)
+#definePRCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
+#definePRCI_ASSERT_LOCKED(sc)  mtx_assert(&(sc)->mtx, 
MA_OWNED);
+#definePRCI_ASSERT_UNLOCKED(sc)mtx_assert(&(sc)->mtx, 
MA_NOTOWNED);
+
+#definePRCI_COREPLL0x4
+#definePRCI_COREPLL_DIVR_MASK  0x3f
+#definePRCI_COREPLL_DIVR_SHIFT 0
+#definePRCI_COREPLL_DIVF_MASK  0x7fc0
+#definePRCI_COREPLL_DIVF_SHIFT 6
+#definePRCI_COREPLL_DIVQ_MASK  0x38000
+#definePRCI_COREPLL_DIVQ_SHIFT 15
+
+#definePRCI_READ(_sc, _reg)\
+bus_space_read_4((_sc)->bst, (_sc)->bsh, (_reg))
+
+static int
+prci_clk_pll_init(struct clknode *clk, device_t dev)
+{
+
+   clknode_init_parent_idx(clk, 0);
+
+   return (0);
+}
+
+static int
+prci_clk_pll_recalc(struct clknode *clk, uint64_t *freq)
+{
+   struct prci_clk_pll_sc *sc;
+   struct clknode *parent_clk;
+   uint32_t val;
+   uint64_t refclk, divf, divq, divr;
+   int err;
+
+   KASSERT(freq != NULL, ("freq cannot be NULL"));
+
+   sc = clknode_get_softc(clk);
+
+   PRCI_LOCK(sc->parent_sc);
+
+   /* Get refclock frequenc

  1   2   3   >