Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Warner Losh
On Fri, Oct 25, 2019, 6:51 PM Rodney W. Grimes wrote: > > On Fri, 2019-10-25 at 19:03 +0300, Andriy Gapon wrote: > > > On 25/10/2019 18:56, Ian Lepore wrote: > > > > On Fri, 2019-10-25 at 18:51 +0300, Andriy Gapon wrote: > > > > > On 25/10/2019 18:46, Ian Lepore wrote: > > > > > > On Fri,

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Rodney W. Grimes
> On Fri, 2019-10-25 at 19:03 +0300, Andriy Gapon wrote: > > On 25/10/2019 18:56, Ian Lepore wrote: > > > On Fri, 2019-10-25 at 18:51 +0300, Andriy Gapon wrote: > > > > On 25/10/2019 18:46, Ian Lepore wrote: > > > > > On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: > > > > > > Author: avg >

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

2019-10-25 Thread Navdeep Parhar
Author: np Date: Fri Oct 25 22:39:26 2019 New Revision: 354110 URL: https://svnweb.freebsd.org/changeset/base/354110 Log: Fix typo in cxgbe.4. MFC after:1 week Modified: head/share/man/man4/cxgbe.4 Modified: head/share/man/man4/cxgbe.4

svn commit: r354104 - head/sys/riscv/riscv

2019-10-25 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 25 21:39:29 2019 New Revision: 354104 URL: https://svnweb.freebsd.org/changeset/base/354104 Log: RISC-V: skip cpu-map when parsing elf_hwcap The fill_elf_hwcap() function expects to find only cpu nodes under the /cpus entry of the device tree. Newer versions

svn commit: r354103 - in head/sys: arm64/conf arm64/rockchip conf

2019-10-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Oct 25 21:38:38 2019 New Revision: 354103 URL: https://svnweb.freebsd.org/changeset/base/354103 Log: arm64: rk3399: add SPI driver and include it in GENERIC config SPI driver for Rockchip's RK3399 SoC. Implements PIO mode, CS selection, SPI mode and frequency

svn commit: r354094 - head/sys/arm64/rockchip

2019-10-25 Thread Peter Jeremy
Author: peterj Date: Fri Oct 25 19:38:02 2019 New Revision: 354094 URL: https://svnweb.freebsd.org/changeset/base/354094 Log: Fix use of uninitialised variable. The RK805 regs array was being allocated before it's required size was known, causing the driver to use memory it didn't own.

svn commit: r354100 - head/sys/arm64/rockchip/clk

2019-10-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Oct 25 21:21:21 2019 New Revision: 354100 URL: https://svnweb.freebsd.org/changeset/base/354100 Log: arm64: rk3399: Add clock and gate for SPI clocks MFC after:1 month Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c Modified:

svn commit: r354095 - in head/sys: amd64/amd64 amd64/include kern

2019-10-25 Thread Konstantin Belousov
Author: kib Date: Fri Oct 25 20:09:42 2019 New Revision: 354095 URL: https://svnweb.freebsd.org/changeset/base/354095 Log: amd64: move pcb out of kstack to struct thread. This saves 320 bytes of the precious stack space. The only negative aspect of the change I can think of is that

svn commit: r354106 - in head/sys/dev/cxgbe: . common iw_cxgbe

2019-10-25 Thread Navdeep Parhar
Author: np Date: Fri Oct 25 21:53:05 2019 New Revision: 354106 URL: https://svnweb.freebsd.org/changeset/base/354106 Log: cxgbe(4): Use correct FetchBurstMin values for T6. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/common/t4_regs_values.h

svn commit: r354097 - in head/contrib/llvm: lib/Object lib/Support lib/Target/ARM lib/Target/ARM/AsmParser lib/Target/ARM/MCTargetDesc tools/clang/lib/Basic/Targets tools/clang/lib/Driver/ToolChain...

2019-10-25 Thread Dimitry Andric
Author: dim Date: Fri Oct 25 21:00:49 2019 New Revision: 354097 URL: https://svnweb.freebsd.org/changeset/base/354097 Log: Pull in r372186 from upstream llvm trunk (by Eli Friedman): [ARM] VFPv2 only supports 16 D registers. r361845 changed the way we handle "D16" vs. "D32"

svn commit: r354102 - head/sys/sys

2019-10-25 Thread Ravi Pokala
Author: rpokala Date: Fri Oct 25 21:32:28 2019 New Revision: 354102 URL: https://svnweb.freebsd.org/changeset/base/354102 Log: Args for buf_track() might be unused If neither FULL_BUF_TRACKING nor BUF_TRACKING are defined, then the body of buf_track() becomes empty. Mark the arguments

svn commit: r354096 - head/sys/conf

2019-10-25 Thread Mark Johnston
Author: markj Date: Fri Oct 25 20:15:04 2019 New Revision: 354096 URL: https://svnweb.freebsd.org/changeset/base/354096 Log: Apply kernel module linker scripts to firmware files. Use a separate make variable to specify the linker script so that it is only applied at link time and not

svn commit: r354092 - in head/sys: netinet netinet6

2019-10-25 Thread Bjoern A. Zeeb
Author: bz Date: Fri Oct 25 18:54:06 2019 New Revision: 354092 URL: https://svnweb.freebsd.org/changeset/base/354092 Log: Properly set VNET when nuking recvif from fragment queues. In theory the eventhandler invoke should be in the same VNET as the the current interface. We however

svn commit: r354089 - in head/sys: arm64/conf arm64/rockchip conf

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 18:10:02 2019 New Revision: 354089 URL: https://svnweb.freebsd.org/changeset/base/354089 Log: arm64: rockchip: Add RK3399 TypeC phy driver This is a driver for the USB3 PHY present in the RK3399. While the phy support DP (Display Port) the driver doesn't has

svn commit: r354087 - head/sys/arm64/rockchip/clk

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 18:08:25 2019 New Revision: 354087 URL: https://svnweb.freebsd.org/changeset/base/354087 Log: arm64: rk3399: Add clock and gate for usb3 clocks MFC after:1 month Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c Modified:

svn commit: r354088 - in head/sys: arm64/conf arm64/rockchip conf

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 18:08:59 2019 New Revision: 354088 URL: https://svnweb.freebsd.org/changeset/base/354088 Log: arm64: rockchip: Add rk_dwc3 driver This is a simplebus like driver that attaches the dwc3 child node and enable the clocks needed for the module. MFC after:

svn commit: r354086 - head/sys/dev/flash

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 17:56:24 2019 New Revision: 354086 URL: https://svnweb.freebsd.org/changeset/base/354086 Log: flash: Add GigaDevice gd25q128 flash Add this flash chip which is a 128Mb spi flash. MFC after:1 week Modified: head/sys/dev/flash/mx25l.c Modified:

svn commit: r354084 - head/tests/sys/netinet6/frag6

2019-10-25 Thread Bjoern A. Zeeb
Author: bz Date: Fri Oct 25 17:41:08 2019 New Revision: 354084 URL: https://svnweb.freebsd.org/changeset/base/354084 Log: frag6-test: update for r354046, conform to 8200 for overlapping fragments The change to conform to RFC 8200 for overlapping fragments now frees the entire reassembly

svn commit: r354083 - head/sys/vm

2019-10-25 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 25 16:59:54 2019 New Revision: 354083 URL: https://svnweb.freebsd.org/changeset/base/354083 Log: Add couple more assertions to vm_pager_assert_in(). The bogus page is not allowed at ends of the request, and all non-bogus pages must be consecutive.

svn commit: r354082 - head/sys/dev/superio

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 16:30:24 2019 New Revision: 354082 URL: https://svnweb.freebsd.org/changeset/base/354082 Log: superio: do not crash if failed to create the character device MFC after:1 week Modified: head/sys/dev/superio/superio.c Modified:

svn commit: r354080 - head/sys/dev/superio

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 16:28:39 2019 New Revision: 354080 URL: https://svnweb.freebsd.org/changeset/base/354080 Log: superio_io.h: fix the copyright MFC after:1 week Modified: head/sys/dev/superio/superio_io.h Modified: head/sys/dev/superio/superio_io.h

svn commit: r354081 - head/sys/netinet6

2019-10-25 Thread Bjoern A. Zeeb
Author: bz Date: Fri Oct 25 16:29:09 2019 New Revision: 354081 URL: https://svnweb.freebsd.org/changeset/base/354081 Log: frag6: do not leak counter in error cases When allocating the IPv6 fragement packet queue entry we do checks against counters and if we pass we increment one of the

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
On 25/10/2019 19:06, Ian Lepore wrote: > I will say if you ever do > anything like this to code I wrote, I will revert it immediately. I hope you never write code like: - if (sbttons(now - then) < t->t_rdv * 1000) - } while ((now - then) / SBT_1US < t->t_slot); -- Andriy Gapon

svn commit: r354079 - head/sys/dev/superio

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 16:07:24 2019 New Revision: 354079 URL: https://svnweb.freebsd.org/changeset/base/354079 Log: superio: add a simple ioctl interface MFC after:1 week Added: head/sys/dev/superio/superio_io.h (contents, props changed) Modified:

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Ian Lepore
On Fri, 2019-10-25 at 19:03 +0300, Andriy Gapon wrote: > On 25/10/2019 18:56, Ian Lepore wrote: > > On Fri, 2019-10-25 at 18:51 +0300, Andriy Gapon wrote: > > > On 25/10/2019 18:46, Ian Lepore wrote: > > > > On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: > > > > > Author: avg > > > > >

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
On 25/10/2019 18:56, Ian Lepore wrote: > On Fri, 2019-10-25 at 18:51 +0300, Andriy Gapon wrote: >> On 25/10/2019 18:46, Ian Lepore wrote: >>> On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: Author: avg Date: Fri Oct 25 15:38:09 2019 New Revision: 354076 URL:

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Ian Lepore
On Fri, 2019-10-25 at 18:51 +0300, Andriy Gapon wrote: > On 25/10/2019 18:46, Ian Lepore wrote: > > On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: > > > Author: avg > > > Date: Fri Oct 25 15:38:09 2019 > > > New Revision: 354076 > > > URL: https://svnweb.freebsd.org/changeset/base/354076 >

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
On 25/10/2019 18:46, Ian Lepore wrote: > On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: >> Author: avg >> Date: Fri Oct 25 15:38:09 2019 >> New Revision: 354076 >> URL: https://svnweb.freebsd.org/changeset/base/354076 >> >> Log: >> owc_gpiobus_read_data: compare times in sbintime_t units

Re: svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Ian Lepore
On Fri, 2019-10-25 at 15:38 +, Andriy Gapon wrote: > Author: avg > Date: Fri Oct 25 15:38:09 2019 > New Revision: 354076 > URL: https://svnweb.freebsd.org/changeset/base/354076 > > Log: > owc_gpiobus_read_data: compare times in sbintime_t units > > Previously the code used sbttous()

svn commit: r354078 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 15:46:54 2019 New Revision: 354078 URL: https://svnweb.freebsd.org/changeset/base/354078 Log: owc_gpiobus: add missing space in r354077 Modified: head/sys/dev/ow/owc_gpiobus.c Modified: head/sys/dev/ow/owc_gpiobus.c

svn commit: r354077 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 15:39:46 2019 New Revision: 354077 URL: https://svnweb.freebsd.org/changeset/base/354077 Log: owc_gpiobus_read_data: add recovery time to the read slot Reviewed by: imp MFC after:2 weeks Modified: head/sys/dev/ow/owc_gpiobus.c Modified:

svn commit: r354076 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 15:38:09 2019 New Revision: 354076 URL: https://svnweb.freebsd.org/changeset/base/354076 Log: owc_gpiobus_read_data: compare times in sbintime_t units Previously the code used sbttous() before microseconds comparison in one place, sbttons() and nanoseconds in

svn commit: r354072 - head/sys/arm64/include

2019-10-25 Thread Andrew Turner
Author: andrew Date: Fri Oct 25 14:46:09 2019 New Revision: 354072 URL: https://svnweb.freebsd.org/changeset/base/354072 Log: Remove the arm4 ID register masks, they are not needed after r353641. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/include/armreg.h Modified:

svn commit: r354070 - head/sys/arm64/arm64

2019-10-25 Thread Andrew Turner
Author: andrew Date: Fri Oct 25 14:30:27 2019 New Revision: 354070 URL: https://svnweb.freebsd.org/changeset/base/354070 Log: Make special register names lowercase so they don't conflict with future ID register macros. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified:

svn commit: r354069 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 14:20:59 2019 New Revision: 354069 URL: https://svnweb.freebsd.org/changeset/base/354069 Log: owc_gpiobus_read_data: disable preemption earlier Now this is done before starting the low pulse that has rather tight timing. Reviewed by: imp (D22108) MFC

svn commit: r354068 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 13:47:17 2019 New Revision: 354068 URL: https://svnweb.freebsd.org/changeset/base/354068 Log: ow_temp: better scopes for the lock The lock is used only for start / stop signaling. It is used only for 'flags' field and the related condition variable. This

svn commit: r354067 - head/sys/dev/ow

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 13:42:36 2019 New Revision: 354067 URL: https://svnweb.freebsd.org/changeset/base/354067 Log: ow_temp: drop the lock around a call that can sleep This is similar to what is done around other calls that lead to own_command_wait() that can sleep. Reviewed

svn commit: r354065 - head/sys/dev/gpio

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 09:37:54 2019 New Revision: 354065 URL: https://svnweb.freebsd.org/changeset/base/354065 Log: gpioiic: set output after switching to output mode if presetting it failed Some controllers cannot preset future output value while the pin is in input mode. This

svn commit: r354062 - head/cddl/contrib/opensolaris/cmd/zfs

2019-10-25 Thread Andriy Gapon
Author: avg Date: Fri Oct 25 09:19:15 2019 New Revision: 354062 URL: https://svnweb.freebsd.org/changeset/base/354062 Log: zfs.8: fix a typo in the date Reported by: Trond Endrestøl MFC after:3 days Modified: head/cddl/contrib/opensolaris/cmd/zfs/zfs.8 Modified: