Re: svn commit: r339350 - head/contrib/elftoolchain/elfcopy

2018-10-19 Thread Ed Maste
On Fri, 19 Oct 2018 at 09:54, Gerald Pfeifer  wrote:
>
> On Thu, 18 Oct 2018, Ed Maste wrote:
> > I think this is probably the right approach, although I also have an
> > ELF Tool Chain fix in D17596 which is waiting on the code freeze to
> > end.
>
> I'm a little confused:  This was broken most recently (as the mail
> bomb that my inbox received from the pkg cluster and others indicates),
> so at this point in the release cycle shouldn't
>  (a) the change causing all this be reverted, *or*

Unfortunately there are subsequent changes that depend on the original
fix which would also have to be unwound, it's not as easy as just
reverting this one.

>  (b) a follow-up patch committed immediately,
> whatever looks less risky?

The follow-up patch is ready but is waiting on re@. At this point I
expect I can commit in two days and then will need to re-request to
merge to stable/12.
___
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: r339350 - head/contrib/elftoolchain/elfcopy

2018-10-19 Thread Andreas Tobler

On 19.10.18 15:54, Gerald Pfeifer wrote:

On Thu, 18 Oct 2018, Ed Maste wrote:

I think this is probably the right approach, although I also have an
ELF Tool Chain fix in D17596 which is waiting on the code freeze to
end.


I'm a little confused:  This was broken most recently (as the mail
bomb that my inbox received from the pkg cluster and others indicates),
so at this point in the release cycle shouldn't
  (a) the change causing all this be reverted, *or*
  (b) a follow-up patch committed immediately,
whatever looks less risky?



Good to know, then I can stop investigating the bootstrap comparison 
failures.


Thanks,
Andreas
___
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: r339350 - head/contrib/elftoolchain/elfcopy

2018-10-19 Thread Gerald Pfeifer
On Thu, 18 Oct 2018, Ed Maste wrote:
> I think this is probably the right approach, although I also have an
> ELF Tool Chain fix in D17596 which is waiting on the code freeze to
> end.

I'm a little confused:  This was broken most recently (as the mail
bomb that my inbox received from the pkg cluster and others indicates),
so at this point in the release cycle shouldn't 
 (a) the change causing all this be reverted, *or*
 (b) a follow-up patch committed immediately,
whatever looks less risky?

Gerald
___
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: r339445 - vendor/tzdata/tzdata2018f

2018-10-19 Thread Philip Paeps
Author: philip
Date: Fri Oct 19 10:05:02 2018
New Revision: 339445
URL: https://svnweb.freebsd.org/changeset/base/339445

Log:
  Tag import of tzdata2018f

Added:
  vendor/tzdata/tzdata2018f/
 - copied from r339444, 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: r339444 - vendor/tzdata/dist

2018-10-19 Thread Philip Paeps
Author: philip
Date: Fri Oct 19 09:58:30 2018
New Revision: 339444
URL: https://svnweb.freebsd.org/changeset/base/339444

Log:
  Import tzdata 2018f

Modified:
  vendor/tzdata/dist/CONTRIBUTING
  vendor/tzdata/dist/Makefile
  vendor/tzdata/dist/NEWS
  vendor/tzdata/dist/README
  vendor/tzdata/dist/africa
  vendor/tzdata/dist/antarctica
  vendor/tzdata/dist/asia
  vendor/tzdata/dist/australasia
  vendor/tzdata/dist/backward
  vendor/tzdata/dist/backzone
  vendor/tzdata/dist/etcetera
  vendor/tzdata/dist/europe
  vendor/tzdata/dist/factory
  vendor/tzdata/dist/leap-seconds.list
  vendor/tzdata/dist/leapseconds
  vendor/tzdata/dist/leapseconds.awk
  vendor/tzdata/dist/northamerica
  vendor/tzdata/dist/pacificnew
  vendor/tzdata/dist/southamerica
  vendor/tzdata/dist/systemv
  vendor/tzdata/dist/theory.html
  vendor/tzdata/dist/version
  vendor/tzdata/dist/yearistype.sh
  vendor/tzdata/dist/zishrink.awk
  vendor/tzdata/dist/zone.tab
  vendor/tzdata/dist/zone1970.tab
  vendor/tzdata/dist/zoneinfo2tdf.pl

Modified: vendor/tzdata/dist/CONTRIBUTING
==
--- vendor/tzdata/dist/CONTRIBUTING Fri Oct 19 08:40:25 2018
(r339443)
+++ vendor/tzdata/dist/CONTRIBUTING Fri Oct 19 09:58:30 2018
(r339444)
@@ -17,11 +17,14 @@ To email small changes, please run a POSIX shell comma
 'diff -u old/europe new/europe >myfix.patch', and attach
 myfix.patch to the email.
 
-For more-elaborate changes, please read the theory.html file and browse
-the mailing list archives  for
-examples of patches that tend to work well.  Additions to
-data should contain commentary citing reliable sources as
-justification.  Citations should use https: URLs if available.
+For more-elaborate or possibly-controversial changes,
+such as renaming, adding or removing zones, please read
+ or the file
+theory.html.  It is also good to browse the mailing list archives
+ for examples of patches that tend
+to work well.  Additions to data should contain commentary citing
+reliable sources as justification.  Citations should use https: URLs
+if available.
 
 Please submit changes against either the latest release in
  or the master branch of the development

Modified: vendor/tzdata/dist/Makefile
==
--- vendor/tzdata/dist/Makefile Fri Oct 19 08:40:25 2018(r339443)
+++ vendor/tzdata/dist/Makefile Fri Oct 19 09:58:30 2018(r339444)
@@ -1,3 +1,5 @@
+# Make and install tzdb code and data.
+
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -19,9 +21,9 @@ BUGEMAIL= t...@iana.org
 #  DATAFORM=   rearguard
 DATAFORM=  main
 
-# Change the line below for your time zone (after finding the zone you want in
-# the time zone files, or adding it to a time zone file).
-# Alternatively, if you discover you've got the wrong time zone, you can just
+# Change the line below for your timezone (after finding the one you want in
+# one of the $(TDATA) source files, or adding it to a source file).
+# Alternatively, if you discover you've got the wrong timezone, you can just
 #  zic -l rightzone
 # to correct things.
 # Use the command
@@ -31,14 +33,14 @@ DATAFORM=   main
 LOCALTIME= GMT
 
 # If you want something other than Eastern United States time as a template
-# for handling POSIX-style time zone environment variables,
-# change the line below (after finding the zone you want in the
-# time zone files, or adding it to a time zone file).
+# for handling 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
 # times; the environment variable itself specifies UT offsets of standard and
 # daylight saving time.
-# Alternatively, if you discover you've got the wrong time zone, you can just
+# Alternatively, if you discover you've got the wrong timezone, you can just
 #  zic -p rightzone
 # to correct things.
 # Use the command
@@ -75,7 +77,7 @@ DESTDIR =
 # TOPDIR should be empty or an absolute name unless you're just testing.
 TOPDIR =
 
-# The default local time zone is taken from the file TZDEFAULT.
+# The default local timezone is taken from the file TZDEFAULT.
 TZDEFAULT = $(TOPDIR)/etc/localtime
 
 # The subdirectory containing installed program and data files, and
@@ -84,7 +86,7 @@ TZDEFAULT = $(TOPDIR)/etc/localtime
 USRDIR = usr
 USRSHAREDIR = $(USRDIR)/share
 
-# "Compiled" time zone information is placed in the "TZDIR" directory
+# "Compiled" timezone information 

svn commit: r339443 - stable/10/sys/dev/usb/controller

2018-10-19 Thread Hans Petter Selasky
Author: hselasky
Date: Fri Oct 19 08:40:25 2018
New Revision: 339443
URL: https://svnweb.freebsd.org/changeset/base/339443

Log:
  MFC r339388:
  Fix for reception of large full speed isochronous frames via the transaction
  translator, when using the DWC OTG USB controller driver. Make sure to re-try
  getting the complete split packets until a DATA0 packet is received. Larger
  isochronous frames may be split into multiple MDATA packets terminated
  by a single DATA0 packet.
  
  PR:   230434
  Sponsored by: Mellanox Technologies

Modified:
  stable/10/sys/dev/usb/controller/dwc_otg.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/controller/dwc_otg.c
==
--- stable/10/sys/dev/usb/controller/dwc_otg.c  Fri Oct 19 08:38:34 2018
(r339442)
+++ stable/10/sys/dev/usb/controller/dwc_otg.c  Fri Oct 19 08:40:25 2018
(r339443)
@@ -1461,6 +1461,8 @@ dwc_otg_host_data_rx(struct dwc_otg_softc *sc, struct 
/* check if we are complete */
if (td->tt_xactpos == HCSPLT_XACTPOS_BEGIN) {
goto complete;
+   } else if (td->hcsplt != 0) {
+   goto receive_pkt;
} else {
/* get more packets */
goto busy;
@@ -1519,8 +1521,10 @@ receive_pkt:
if (td->hcsplt != 0) {
delta = td->tt_complete_slot - sc->sc_last_frame_num - 1;
if (td->tt_scheduled == 0 || delta < DWC_OTG_TT_SLOT_MAX) {
-   td->state = DWC_CHAN_ST_WAIT_C_PKT;
-   goto busy;
+   if (td->ep_type != UE_ISOCHRONOUS) {
+   td->state = DWC_CHAN_ST_WAIT_C_PKT;
+   goto busy;
+   }
}
delta = sc->sc_last_frame_num - td->tt_start_slot;
if (delta > DWC_OTG_TT_SLOT_MAX) {
@@ -1566,12 +1570,23 @@ receive_pkt:
hcchar = td->hcchar;
hcchar |= HCCHAR_EPDIR_IN;
 
-   /* receive complete split ASAP */
-   if ((sc->sc_last_frame_num & 1) != 0 &&
-   td->ep_type == UE_ISOCHRONOUS)
-   hcchar |= HCCHAR_ODDFRM;
-   else
+   if (td->ep_type == UE_ISOCHRONOUS) {
+   if (td->hcsplt != 0) {
+   /* continously buffer */
+   if (sc->sc_last_frame_num & 1)
+   hcchar &= ~HCCHAR_ODDFRM;
+   else
+   hcchar |= HCCHAR_ODDFRM;
+   } else {
+   /* multi buffer, if any */
+   if (sc->sc_last_frame_num & 1)
+   hcchar |= HCCHAR_ODDFRM;
+   else
+   hcchar &= ~HCCHAR_ODDFRM;
+   }
+   } else {
hcchar &= ~HCCHAR_ODDFRM;
+   }
 
/* must enable channel before data can be received */
DWC_OTG_WRITE_4(sc, DOTG_HCCHAR(channel), hcchar);
___
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: r339442 - stable/11/sys/dev/usb/controller

2018-10-19 Thread Hans Petter Selasky
Author: hselasky
Date: Fri Oct 19 08:38:34 2018
New Revision: 339442
URL: https://svnweb.freebsd.org/changeset/base/339442

Log:
  MFC r339388:
  Fix for reception of large full speed isochronous frames via the transaction
  translator, when using the DWC OTG USB controller driver. Make sure to re-try
  getting the complete split packets until a DATA0 packet is received. Larger
  isochronous frames may be split into multiple MDATA packets terminated
  by a single DATA0 packet.
  
  PR:   230434
  Sponsored by: Mellanox Technologies

Modified:
  stable/11/sys/dev/usb/controller/dwc_otg.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/usb/controller/dwc_otg.c
==
--- stable/11/sys/dev/usb/controller/dwc_otg.c  Fri Oct 19 04:37:27 2018
(r339441)
+++ stable/11/sys/dev/usb/controller/dwc_otg.c  Fri Oct 19 08:38:34 2018
(r339442)
@@ -1460,6 +1460,8 @@ dwc_otg_host_data_rx(struct dwc_otg_softc *sc, struct 
/* check if we are complete */
if (td->tt_xactpos == HCSPLT_XACTPOS_BEGIN) {
goto complete;
+   } else if (td->hcsplt != 0) {
+   goto receive_pkt;
} else {
/* get more packets */
goto busy;
@@ -1518,8 +1520,10 @@ receive_pkt:
if (td->hcsplt != 0) {
delta = td->tt_complete_slot - sc->sc_last_frame_num - 1;
if (td->tt_scheduled == 0 || delta < DWC_OTG_TT_SLOT_MAX) {
-   td->state = DWC_CHAN_ST_WAIT_C_PKT;
-   goto busy;
+   if (td->ep_type != UE_ISOCHRONOUS) {
+   td->state = DWC_CHAN_ST_WAIT_C_PKT;
+   goto busy;
+   }
}
delta = sc->sc_last_frame_num - td->tt_start_slot;
if (delta > DWC_OTG_TT_SLOT_MAX) {
@@ -1565,12 +1569,23 @@ receive_pkt:
hcchar = td->hcchar;
hcchar |= HCCHAR_EPDIR_IN;
 
-   /* receive complete split ASAP */
-   if ((sc->sc_last_frame_num & 1) != 0 &&
-   td->ep_type == UE_ISOCHRONOUS)
-   hcchar |= HCCHAR_ODDFRM;
-   else
+   if (td->ep_type == UE_ISOCHRONOUS) {
+   if (td->hcsplt != 0) {
+   /* continously buffer */
+   if (sc->sc_last_frame_num & 1)
+   hcchar &= ~HCCHAR_ODDFRM;
+   else
+   hcchar |= HCCHAR_ODDFRM;
+   } else {
+   /* multi buffer, if any */
+   if (sc->sc_last_frame_num & 1)
+   hcchar |= HCCHAR_ODDFRM;
+   else
+   hcchar &= ~HCCHAR_ODDFRM;
+   }
+   } else {
hcchar &= ~HCCHAR_ODDFRM;
+   }
 
/* must enable channel before data can be received */
DWC_OTG_WRITE_4(sc, DOTG_HCCHAR(channel), hcchar);
___
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"