svn commit: r329999 - in head/sys: arm/freescale/imx modules/imx modules/imx/imx_spi

2018-02-25 Thread Ian Lepore
imx_spi.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/freescale/imx/imx_spi.cMon Feb 26 02:28:32 2018 (r32) @@ -0,0 +1,604 @@ +/*- + * SPDX-License-Identifier:

svn commit: r329989 - head/sys/arm/arm

2018-02-25 Thread Ian Lepore
Author: ian Date: Sun Feb 25 18:42:59 2018 New Revision: 329989 URL: https://svnweb.freebsd.org/changeset/base/329989 Log: Add support for booting into kdb on arm platforms when the RB_KDB is set (using "boot -d" at the loader propmt or setting boot_ddb in loader.conf). Submitted by:

svn commit: r329988 - in head/sys/modules/i2c: . iicbus ofw_iicbus

2018-02-25 Thread Ian Lepore
Author: ian Date: Sun Feb 25 18:26:50 2018 New Revision: 329988 URL: https://svnweb.freebsd.org/changeset/base/329988 Log: Instead of building ofw_iicbus as a separate module, just compile it in to the iicbus module for FDT-based systems. The primary motivation for this is that host

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

2018-02-24 Thread Ian Lepore
Author: ian Date: Sat Feb 24 16:28:45 2018 New Revision: 329911 URL: https://svnweb.freebsd.org/changeset/base/329911 Log: Add a functional detach() routine, to make things kldunload-friendly. Modified: head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/mx25l.c

Re: svn commit: r329866 - head/sys/cam

2018-02-23 Thread Ian Lepore
On Fri, 2018-02-23 at 16:06 +, Warner Losh wrote: > -static inline int > +static inline bool >  cam_iosched_has_flagged_work(struct cam_iosched_softc *isc) >  { > return !!(isc->flags & CAM_IOSCHED_FLAG_WORK_FLAGS); >  } There should be no need for the ugly !! here, conversion to bool

svn commit: r329841 - head/sys/modules/imx/imx_i2c

2018-02-22 Thread Ian Lepore
Author: ian Date: Thu Feb 22 22:25:26 2018 New Revision: 329841 URL: https://svnweb.freebsd.org/changeset/base/329841 Log: Add a missing line continuation. How many commits does it take to get a simple module makefile working? Apparently at least three. Pointy hat to: ian

Re: svn commit: r329830 - head/sbin/nvmecontrol

2018-02-22 Thread Ian Lepore
On Thu, 2018-02-22 at 17:47 +, Alan Somers wrote: > Author: asomers > Date: Thu Feb 22 17:47:16 2018 > New Revision: 329830 > URL: https://svnweb.freebsd.org/changeset/base/329830 > > Log: >   nvmecontrol: fix build on amd64/clang >    >   Broken by: 329824 >   Sponsored by: Spectra

svn commit: r329730 - head/sys/modules/imx/imx_i2c

2018-02-21 Thread Ian Lepore
Author: ian Date: Wed Feb 21 16:36:44 2018 New Revision: 329730 URL: https://svnweb.freebsd.org/changeset/base/329730 Log: Add required header files. Reported by: andreast@ Modified: head/sys/modules/imx/imx_i2c/Makefile Modified: head/sys/modules/imx/imx_i2c/Makefile

svn commit: r329729 - in head/sys/modules/spi: at45d mx25l

2018-02-21 Thread Ian Lepore
Author: ian Date: Wed Feb 21 16:34:04 2018 New Revision: 329729 URL: https://svnweb.freebsd.org/changeset/base/329729 Log: Remove some files that snuck in via cut and paste. Having these compiled into the module causes the kobj method descriptors to be resolved incorrectly (by the

svn commit: r329642 - head/sys/arm/freescale/imx

2018-02-20 Thread Ian Lepore
Author: ian Date: Tue Feb 20 14:59:29 2018 New Revision: 329642 URL: https://svnweb.freebsd.org/changeset/base/329642 Log: Adjust whitespace of things added in the past couple years to match the original style of the file. No functional changes. Modified:

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

2018-02-19 Thread Ian Lepore
Author: ian Date: Tue Feb 20 03:51:09 2018 New Revision: 329620 URL: https://svnweb.freebsd.org/changeset/base/329620 Log: Add missing MODULE_DEPENDS(). Modified: head/sys/dev/flash/at45d.c head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/at45d.c

Re: svn commit: r329610 - head/share/man/man9

2018-02-19 Thread Ian Lepore
On Mon, 2018-02-19 at 22:54 +, Kyle Evans wrote: > Author: kevans > Date: Mon Feb 19 22:54:10 2018 > New Revision: 329610 > URL: https://svnweb.freebsd.org/changeset/base/329610 > > Log: >   style.lua(9): Note that wrapping at 80-columns is not rigid > > > [...] > +Do note that it is ok to

Re: svn commit: r329609 - head/stand/lua

2018-02-19 Thread Ian Lepore
On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote: > > +   -- Swap the first two menu entries > +   menu_entries[1], menu_entries[2] = menu_entries[2], > +   menu_entries[1]; >   IMO, this is the sort of unreadable insanity that

svn commit: r329546 - in head/sys/modules/spi: . at45d mx25l

2018-02-18 Thread Ian Lepore
Author: ian Date: Mon Feb 19 01:49:19 2018 New Revision: 329546 URL: https://svnweb.freebsd.org/changeset/base/329546 Log: Build at45d and mx25l SPI flash drivers as modules. Added: head/sys/modules/spi/at45d/ head/sys/modules/spi/at45d/Makefile (contents, props changed)

svn commit: r329545 - head/sys/modules/spi/spibus

2018-02-18 Thread Ian Lepore
Author: ian Date: Mon Feb 19 01:39:02 2018 New Revision: 329545 URL: https://svnweb.freebsd.org/changeset/base/329545 Log: Add ofw_bus_if.h to SRCS. Modified: head/sys/modules/spi/spibus/Makefile Modified: head/sys/modules/spi/spibus/Makefile

svn commit: r329544 - in head/sys/modules: . spi spi/spibus

2018-02-18 Thread Ian Lepore
Author: ian Date: Mon Feb 19 01:32:27 2018 New Revision: 329544 URL: https://svnweb.freebsd.org/changeset/base/329544 Log: Add modules/spi as a gathering point for SPI-related modules, analagous to modules/i2c for i2c/iicbus modules. Build spibus as a module. Added: head/sys/modules/spi/

svn commit: r329541 - in head/sys/modules/i2c: . ofw_iicbus

2018-02-18 Thread Ian Lepore
Author: ian Date: Mon Feb 19 00:47:03 2018 New Revision: 329541 URL: https://svnweb.freebsd.org/changeset/base/329541 Log: Build ofw_iicbus as a module if OPT_FDT is defined. Added: head/sys/modules/i2c/ofw_iicbus/ head/sys/modules/i2c/ofw_iicbus/Makefile (contents, props changed)

svn commit: r329539 - head/sys/dev/spibus

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 23:35:23 2018 New Revision: 329539 URL: https://svnweb.freebsd.org/changeset/base/329539 Log: Provide public declarations for ofw_spibus_driver and ofw_spibus_devclass so other drivers can refer to them in DRIVER_MODULE() decls. Modified:

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

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 23:08:43 2018 New Revision: 329537 URL: https://svnweb.freebsd.org/changeset/base/329537 Log: Provide a public function to acquire a gpio pin by giving the property name and index. A private function to do exactly that already existed, so this renames

svn commit: r329536 - head/sys/arm/freescale/imx

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 23:01:33 2018 New Revision: 329536 URL: https://svnweb.freebsd.org/changeset/base/329536 Log: Add the MODULE_DEPEND()s needed so that the kernel linker can resolve all the symbols at load time when iicbus is not compiled into the kernel. Modified:

svn commit: r329535 - head/sys/modules/i2c/iicbus

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 22:57:04 2018 New Revision: 329535 URL: https://svnweb.freebsd.org/changeset/base/329535 Log: Add iic_recover_bus.c, now part of iicbus. This should have been added as part of r320463. Modified: head/sys/modules/i2c/iicbus/Makefile Modified:

svn commit: r329534 - head/sys/modules/i2c/iicbus

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 22:54:19 2018 New Revision: 329534 URL: https://svnweb.freebsd.org/changeset/base/329534 Log: Arrange SRCS= as 1 file per line, alphabetical, so it's easier to maintain. Whitespace only, no functional changes. Modified: head/sys/modules/i2c/iicbus/Makefile

svn commit: r329529 - head/sys/arm/freescale/imx

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 20:08:35 2018 New Revision: 329529 URL: https://svnweb.freebsd.org/changeset/base/329529 Log: Give the imx_i2c driver its own name, set up its relationship to ofw_iicbus. Previously it called itself 'iichb' to link up with the EARLY_DRIVER_MODULE declaration in

svn commit: r329526 - head/sys/dev/iicbus

2018-02-18 Thread Ian Lepore
Author: ian Date: Sun Feb 18 19:33:28 2018 New Revision: 329526 URL: https://svnweb.freebsd.org/changeset/base/329526 Log: Allow i2c hardware drivers to declare their own relationships to ofw_iicbus rather than relying on a set of canned EARLY_DRIVER_MODULE() statements in the ofw_iicbus

svn commit: r329507 - in head/sys: arm/conf modules modules/imx modules/imx/imx_i2c

2018-02-17 Thread Ian Lepore
Author: ian Date: Sun Feb 18 02:48:54 2018 New Revision: 329507 URL: https://svnweb.freebsd.org/changeset/base/329507 Log: Build modules specific to imx5/imx6 only when building those kernels. This adds sys/modules/imx with a SUBDIR makefile to make the whole collection of modules that

svn commit: r329506 - head/sys/arm/freescale/imx

2018-02-17 Thread Ian Lepore
Author: ian Date: Sun Feb 18 02:01:41 2018 New Revision: 329506 URL: https://svnweb.freebsd.org/changeset/base/329506 Log: Add a detach method so that this can be a kldunload-friendly module. Modified: head/sys/arm/freescale/imx/imx_i2c.c Modified: head/sys/arm/freescale/imx/imx_i2c.c

svn commit: r329483 - head/sys/arm/freescale/imx

2018-02-17 Thread Ian Lepore
Author: ian Date: Sun Feb 18 00:02:09 2018 New Revision: 329483 URL: https://svnweb.freebsd.org/changeset/base/329483 Log: Fix fallout from the import of fresh dts source files from linux 4.15. It appears that node names no longer include leading zeroes in the @address qualifiers, so we

svn commit: r329480 - head/sys/dev/sdhci

2018-02-17 Thread Ian Lepore
Author: ian Date: Sat Feb 17 23:39:10 2018 New Revision: 329480 URL: https://svnweb.freebsd.org/changeset/base/329480 Log: Don't call sdhci_cleanup_slot() if sdhci_init_slot() never got called. Also, do callout_init() very early in attach, so that callout_drain() can be called in detach

svn commit: r329479 - head/sys/dev/usb/controller

2018-02-17 Thread Ian Lepore
Author: ian Date: Sat Feb 17 23:23:27 2018 New Revision: 329479 URL: https://svnweb.freebsd.org/changeset/base/329479 Log: Do not try to deallocate memory that wasn't allocated (you'd think that would be safe, but the function also tries to destroy mutexes that never got created). I

Re: svn commit: r329237 - head/sys/libkern

2018-02-13 Thread Ian Lepore
On Tue, 2018-02-13 at 14:43 -0500, Ed Maste wrote: > On 13 February 2018 at 14:23, Ian Lepore <i...@freebsd.org> wrote: > > > > On Tue, 2018-02-13 at 19:17 +, Ed Maste wrote: > > > > > > Author: emaste > > > Date: Tue Feb 13 19:17:48

Re: svn commit: r329237 - head/sys/libkern

2018-02-13 Thread Ian Lepore
On Tue, 2018-02-13 at 19:17 +, Ed Maste wrote: > Author: emaste > Date: Tue Feb 13 19:17:48 2018 > New Revision: 329237 > URL: https://svnweb.freebsd.org/changeset/base/329237 > > Log: >   libkern: use nul for terminating char rather than 0 >    >   Akin to the change made in r188080 for

svn commit: r329224 - head/sys/kern

2018-02-13 Thread Ian Lepore
Author: ian Date: Tue Feb 13 17:38:08 2018 New Revision: 329224 URL: https://svnweb.freebsd.org/changeset/base/329224 Log: Fix bad indentation. Whitespace only, no functional changes. Reported by: bde@ Modified: head/sys/kern/subr_rtc.c Modified: head/sys/kern/subr_rtc.c

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

2018-02-12 Thread Ian Lepore
On Mon, 2018-02-12 at 17:41 +, Ian Lepore wrote: > Author: ian > Date: Mon Feb 12 17:41:11 2018 > New Revision: 329173 > URL: https://svnweb.freebsd.org/changeset/base/329173 > > Log: >   Add a new sysctl, debug.clock_do_io, to allow manully triggering a one-shot >

svn commit: r329173 - head/sys/kern

2018-02-12 Thread Ian Lepore
Author: ian Date: Mon Feb 12 17:41:11 2018 New Revision: 329173 URL: https://svnweb.freebsd.org/changeset/base/329173 Log: Add a new sysctl, debug.clock_do_io, to allow manully triggering a one-shot read or write of all registered realtime clocks. In the read case, the values read are

svn commit: r329172 - in head/sys: kern sys

2018-02-12 Thread Ian Lepore
Author: ian Date: Mon Feb 12 17:33:14 2018 New Revision: 329172 URL: https://svnweb.freebsd.org/changeset/base/329172 Log: Add a set of convenience routines for RTC drivers to use for debug output, and a debug.clock_show_io sysctl to control debugging output. Modified:

svn commit: r329170 - in head/sys: kern sys

2018-02-12 Thread Ian Lepore
Author: ian Date: Mon Feb 12 16:25:56 2018 New Revision: 329170 URL: https://svnweb.freebsd.org/changeset/base/329170 Log: Replace the existing print_ct() private debugging function with a set of three public functions to format and print the three major data structures used by realtime

Re: svn commit: r329137 - in head/sys/dev: mpr mps

2018-02-11 Thread Ian Lepore
On Sun, 2018-02-11 at 20:15 +, Scott Long wrote: > Author: scottl > Date: Sun Feb 11 20:15:47 2018 > New Revision: 329137 > URL: https://svnweb.freebsd.org/changeset/base/329137 > > Log: >   Print out the shared memory queues during initialization >    >   Sponsored by: Netflix > >

Re: svn commit: r329126 - head/etc/devd

2018-02-11 Thread Ian Lepore
On Sun, 2018-02-11 at 10:20 -0800, Conrad Meyer wrote: > On Sun, Feb 11, 2018 at 8:35 AM, Ian Lepore <i...@freebsd.org> wrote: > > > > Author: ian > > Date: Sun Feb 11 16:35:56 2018 > > New Revision: 329126 > > URL: https://svnweb.freebsd.org/changeset/bas

svn commit: r329126 - head/etc/devd

2018-02-11 Thread Ian Lepore
Author: ian Date: Sun Feb 11 16:35:56 2018 New Revision: 329126 URL: https://svnweb.freebsd.org/changeset/base/329126 Log: Regenerate devd/usb.conf after the recent addition of several new device IDs. Modified: head/etc/devd/usb.conf Modified: head/etc/devd/usb.conf

svn commit: r329125 - in head/sys/dev/usb: . serial

2018-02-11 Thread Ian Lepore
Author: ian Date: Sun Feb 11 16:35:23 2018 New Revision: 329125 URL: https://svnweb.freebsd.org/changeset/base/329125 Log: Add a device ID to uftdi for TIAO USB Multi Protocol Adapter (TUMPA). PR: 225810 Modified: head/sys/dev/usb/serial/uftdi.c head/sys/dev/usb/usbdevs

svn commit: r328956 - in head/sys: kern sys

2018-02-06 Thread Ian Lepore
Author: ian Date: Tue Feb 6 22:17:01 2018 New Revision: 328956 URL: https://svnweb.freebsd.org/changeset/base/328956 Log: Use const pointers for input data not modified by clock utility functions. Modified: head/sys/kern/subr_clock.c head/sys/kern/subr_fattime.c head/sys/sys/clock.h

Re: svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Ian Lepore
On Tue, 2018-02-06 at 11:25 -0800, Rodney W. Grimes wrote: > > > > Author: arichardson > > Date: Tue Feb  6 15:41:35 2018 > > New Revision: 328934 > > URL: https://svnweb.freebsd.org/changeset/base/328934 > > > > Log: > >   Don't hardcode /usr/bin as the path for mktemp in build tools > >    > >

svn commit: r328528 - in head/sys/dev/usb: . quirk

2018-01-28 Thread Ian Lepore
Author: ian Date: Mon Jan 29 03:24:02 2018 New Revision: 328528 URL: https://svnweb.freebsd.org/changeset/base/328528 Log: Add a NO_GETMAXLUN quirk for the JMicron JMS567 USB to SATA bridge, to prevent lengthy timeout pauses while probing/attaching drives. Modified:

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-28 Thread Ian Lepore
On Sat, 2018-01-27 at 13:32 -0800, Rodney W. Grimes wrote: > > > > On Sat, 27 Jan 2018 12:13:57 -0800 > > Adrian Chadd wrote: > > > > > > > > Hi, > > > > > > Find the middle ground. Don't dissuade the developer too much. > >  This is what happened two years ago when I

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Ian Lepore
On Sat, 2018-01-27 at 22:56 +, Conrad Meyer wrote: > I don’t think dragonfly has anything to do with this?  If you’re > converting > bool increments to setting true values in FreeBSD, use > “true.”  That’s all > there is to it. > > Best, > Conrad style(9) emphasizes internal consistancy in

svn commit: r328442 - head/sys/arm/freescale/imx

2018-01-26 Thread Ian Lepore
Author: ian Date: Fri Jan 26 17:55:17 2018 New Revision: 328442 URL: https://svnweb.freebsd.org/changeset/base/328442 Log: Add support to the imx5/6 watchdog for the external reset signal. Also, if the "power down" watchdog used by the ROM boot code is still active when the regular

Re: svn commit: r328430 - head/sbin/devd

2018-01-26 Thread Ian Lepore
On Thu, 2018-01-25 at 22:59 -0700, Warner Losh wrote: > On Thu, Jan 25, 2018 at 10:02 PM, Matt Joras wrote: > > > > > On Thu, Jan 25, 2018 at 8:52 PM, Warner Losh wrote: > > > > > > > > > > > > On Thu, Jan 25, 2018 at 9:40 PM, Eitan Adler

svn commit: r328407 - head/sys/arm/freescale/imx

2018-01-25 Thread Ian Lepore
Author: ian Date: Thu Jan 25 18:08:56 2018 New Revision: 328407 URL: https://svnweb.freebsd.org/changeset/base/328407 Log: Fix return style in RD2. Remove bogus return value from a void function in WR2 (I have no idea why that didn't result in a compile error). Modified:

svn commit: r328405 - head/sys/arm/freescale/imx

2018-01-25 Thread Ian Lepore
Author: ian Date: Thu Jan 25 17:53:33 2018 New Revision: 328405 URL: https://svnweb.freebsd.org/changeset/base/328405 Log: Minor cleanups... Move DRIVER_MODULE() and other boilerplate stuff to the bottom of the file, where it is in most imx5/6 drivers. Switch from an RD2 macro using

Re: svn commit: r328313 - head/sys/netpfil/pf

2018-01-24 Thread Ian Lepore
On Wed, 2018-01-24 at 16:13 -0800, Gleb Smirnoff wrote: >   Hi Kristof, > > On Wed, Jan 24, 2018 at 04:29:17AM +, Kristof Provost wrote: > K> Author: kp > K> Date: Wed Jan 24 04:29:16 2018 > K> New Revision: 328313 > K> URL: https://svnweb.freebsd.org/changeset/base/328313 > K>  > K> Log: >

svn commit: r328349 - head/sys/arm/freescale/imx

2018-01-24 Thread Ian Lepore
Author: ian Date: Wed Jan 24 18:10:11 2018 New Revision: 328349 URL: https://svnweb.freebsd.org/changeset/base/328349 Log: Make the trivial imx_soc_family() function an inline in imx_machdep.h. The imx_machdep.c file is on the fast path to non-existance and this would be the only thing

Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev

2018-01-24 Thread Ian Lepore
On Wed, 2018-01-24 at 09:34 -0800, Conrad Meyer wrote: > On Wed, Jan 24, 2018 at 7:44 AM, Warner Losh wrote: > > > > I agree completely. It doesn't do what you think it is doing, for all the > > reasons that Bruce outlines. We thought it was a bad idea when it came up 2 > >

svn commit: r328345 - head/sys/arm/freescale/imx

2018-01-24 Thread Ian Lepore
Author: ian Date: Wed Jan 24 17:52:06 2018 New Revision: 328345 URL: https://svnweb.freebsd.org/changeset/base/328345 Log: Reformat indentation to match other imx5/6 register definition headers, and tweak some comments. No functional changes. Modified:

svn commit: r328312 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Wed Jan 24 03:09:56 2018 New Revision: 328312 URL: https://svnweb.freebsd.org/changeset/base/328312 Log: Follow changes in r328307 by using new IIC_RECURSIVE flag. The driver now ensures only one thread at a time is running in the API functions (clock_gettime() and

svn commit: r328311 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Wed Jan 24 03:09:41 2018 New Revision: 328311 URL: https://svnweb.freebsd.org/changeset/base/328311 Log: Follow changes in r328307 by using new IIC_RECURSIVE flag. The driver now ensures only one thread at a time is running in the API functions (clock_gettime() and

svn commit: r328307 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 23:30:19 2018 New Revision: 328307 URL: https://svnweb.freebsd.org/changeset/base/328307 Log: Fix a bug introduced with recursive bus ownership support in r321584. The recursive ownership support added in r321584 was unconditionally in effect all the time --

svn commit: r328303 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:36:26 2018 New Revision: 328303 URL: https://svnweb.freebsd.org/changeset/base/328303 Log: Switch to using the bcd_clocktime conversion functions that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

svn commit: r328302 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:31:43 2018 New Revision: 328302 URL: https://svnweb.freebsd.org/changeset/base/328302 Log: Switch to using the bcd_clocktime conversion functions that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

svn commit: r328301 - head/sys/dev/iicbus

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:18:15 2018 New Revision: 328301 URL: https://svnweb.freebsd.org/changeset/base/328301 Log: Switch to using the bcd_clocktime conversion functinos that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-22 Thread Ian Lepore
On Mon, 2018-01-22 at 10:57 -0800, John Baldwin wrote: > On Monday, January 22, 2018 03:30:03 PM Emmanuel Vadot wrote: > > > > On Mon, 22 Jan 2018 14:07:30 + > > "Poul-Henning Kamp" wrote: > > > > > > > > > > > In message

Re: svn commit: r327354 - head/sys/vm

2018-01-18 Thread Ian Lepore
On Fri, 2018-01-19 at 00:21 +0200, Andriy Gapon wrote: > On 18/01/2018 23:10, Matt Joras wrote: > > > > "/* Insert an empty line if the function has no local variables. > > */" > And if there is a single silly rule in style(9) then it is this. > Waste a line for no possible benefit at all. >

svn commit: r328069 - head/sys/x86/isa

2018-01-16 Thread Ian Lepore
Author: ian Date: Tue Jan 16 23:18:52 2018 New Revision: 328069 URL: https://svnweb.freebsd.org/changeset/base/328069 Log: Remove redundant critical_enter/exit() calls. The block of code delimited by these calls is now protected by a spin mutex (obscured within the RTC_LOCK/RTC_UNLOCK

svn commit: r328068 - head/sys/x86/isa

2018-01-16 Thread Ian Lepore
Author: ian Date: Tue Jan 16 23:14:12 2018 New Revision: 328068 URL: https://svnweb.freebsd.org/changeset/base/328068 Log: Move some code around and rename a couple variables; no functional changes. The static atrtc_set() function was called only from clock_settime(), so just move its

svn commit: r328039 - head/sys/x86/isa

2018-01-15 Thread Ian Lepore
Author: ian Date: Tue Jan 16 03:02:41 2018 New Revision: 328039 URL: https://svnweb.freebsd.org/changeset/base/328039 Log: Add static inline rtcin_locked() and rtcout_locked() functions for doing a related series of operations without doing a lock/unlock for each byte. Use them when reading

svn commit: r328005 - head/sys/x86/isa

2018-01-15 Thread Ian Lepore
Author: ian Date: Mon Jan 15 16:40:43 2018 New Revision: 328005 URL: https://svnweb.freebsd.org/changeset/base/328005 Log: Convert the x86 RTC driver to use new validated BCD<->timespec conversions. New common routines were added to kern/subr_clock.c for converting between calendrical

svn commit: r327971 - in head/sys: kern sys

2018-01-14 Thread Ian Lepore
Author: ian Date: Sun Jan 14 17:01:37 2018 New Revision: 327971 URL: https://svnweb.freebsd.org/changeset/base/327971 Log: Add RTC clock conversions for BCD values, with non-panic validation. RTC clock hardware frequently uses BCD numbers. Currently the low-level bcd2bin() and bin2bcd()

Re: svn commit: r327843 - stable/11/tools/build/options

2018-01-12 Thread Ian Lepore
On Fri, 2018-01-12 at 09:29 -0800, John Baldwin wrote: > On Thursday, January 11, 2018 07:41:00 PM Ian Lepore wrote: > > > > Author: ian > > Date: Thu Jan 11 19:41:00 2018 > > New Revision: 327843 > > URL: https://svnweb.freebsd.org/changeset/base/327843 > >

svn commit: r327909 - stable/11/tools/build/options

2018-01-12 Thread Ian Lepore
Author: ian Date: Sat Jan 13 03:12:21 2018 New Revision: 327909 URL: https://svnweb.freebsd.org/changeset/base/327909 Log: Fix fallout from applying a patch twice. Reported by: jhb@ Pointy hat: ian@ Modified: stable/11/tools/build/options/WITHOUT_LINT

Re: svn commit: r327843 - stable/11/tools/build/options

2018-01-11 Thread Ian Lepore
On Thu, 2018-01-11 at 15:05 -0500, Shawn Webb wrote: > On Thu, Jan 11, 2018 at 07:41:00PM +0000, Ian Lepore wrote: > > > > Author: ian > > Date: Thu Jan 11 19:41:00 2018 > > New Revision: 327843 > > URL: https://svnweb.freebsd.org/changeset/base/327843 > >

svn commit: r327843 - stable/11/tools/build/options

2018-01-11 Thread Ian Lepore
Author: ian Date: Thu Jan 11 19:41:00 2018 New Revision: 327843 URL: https://svnweb.freebsd.org/changeset/base/327843 Log: Add description files for WITH/WITHOUT_LINT. These should have been part of r327837. PR: 223892 Differential Revision:

svn commit: r327837 - in stable/11: . share/man/man5 share/mk usr.bin

2018-01-11 Thread Ian Lepore
Author: ian Date: Thu Jan 11 17:51:22 2018 New Revision: 327837 URL: https://svnweb.freebsd.org/changeset/base/327837 Log: Do not build lint(1) by default on stable-11, add WITH_LINT to enable building it. lint(1) is required on the host build system to build lint(1) libraries, and it

svn commit: r327758 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:57:03 2018 New Revision: 327758 URL: https://svnweb.freebsd.org/changeset/base/327758 Log: Convert a collection of unrelated bitwise flags to a collection of boolean vars in the softc. It makes the code more compact and readable, and actually uses less

svn commit: r327757 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:31:59 2018 New Revision: 327757 URL: https://svnweb.freebsd.org/changeset/base/327757 Log: Bugfix: don't lose the am/pm mode flag when setting the time. Unlike most RTC chips that have a control register bit for am/pm mode, the DS13xx series uses one of the

svn commit: r327756 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:28:10 2018 New Revision: 327756 URL: https://svnweb.freebsd.org/changeset/base/327756 Log: Bugfix: on RTC chips with a 32-bit binary counter, after reading the time, return immediately rather than falling through to the logic that reads BCD-encoded time.

Re: svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-08 Thread Ian Lepore
On Mon, 2018-01-08 at 09:13 -0700, Warner Losh wrote: > On Jan 8, 2018 8:37 AM, "Pedro Giffuni" wrote: > > > On 01/08/18 10:13, Ed Schouten wrote: > > > > > Hi Andrew, > > > > 2018-01-08 8:37 GMT+01:00 Andrew Turner : > > > > > > > > Won’t this lead

svn commit: r327679 - head/sys/kern

2018-01-07 Thread Ian Lepore
Author: ian Date: Sun Jan 7 18:07:22 2018 New Revision: 327679 URL: https://svnweb.freebsd.org/changeset/base/327679 Log: Use EVENTHANDLER_DIRECT_INVOKE for [un]mount events, for better performance. Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c

svn commit: r327678 - head/sys/kern

2018-01-07 Thread Ian Lepore
Author: ian Date: Sun Jan 7 18:06:30 2018 New Revision: 327678 URL: https://svnweb.freebsd.org/changeset/base/327678 Log: Use EVENTHANDLER_DIRECT_INVOKE() for device events, for better performance. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c

svn commit: r327668 - stable/11/share/man/man4

2018-01-06 Thread Ian Lepore
Author: ian Date: Sun Jan 7 02:59:27 2018 New Revision: 327668 URL: https://svnweb.freebsd.org/changeset/base/327668 Log: MFC r327220-r327221 r327220: Update the FDT example for the lm75 sensor to match current devicetree standards and what the existing driver expects. Also

svn commit: r327667 - in stable/11/sys: arm/arm conf

2018-01-06 Thread Ian Lepore
Author: ian Date: Sun Jan 7 02:57:35 2018 New Revision: 327667 URL: https://svnweb.freebsd.org/changeset/base/327667 Log: MFC r327222: Add a new ARM kernel option, LOCORE_MAP_MB, to control the size of the kernel VA mapping in the temporary page tables set up by locore-v6.S. The

svn commit: r327664 - stable/11/share/man/man4

2018-01-06 Thread Ian Lepore
Author: ian Date: Sun Jan 7 01:08:10 2018 New Revision: 327664 URL: https://svnweb.freebsd.org/changeset/base/327664 Log: MFC r327226, r327356 r327226: Add a section describing how to tune ARM kernel options to use an MD_ROOT filesystem larger than about 50-55 MiB. The

svn commit: r327663 - in stable/11: . share/man/man7

2018-01-06 Thread Ian Lepore
Author: ian Date: Sun Jan 7 01:06:04 2018 New Revision: 327663 URL: https://svnweb.freebsd.org/changeset/base/327663 Log: MFC r327439: Allow use of .WAIT in the LOCAL_DIRS and LOCAL_LIB_DIRS lists. A comment in Makefile.inc1 has long stated that LOCAL_DIRS are built last, after the

svn commit: r327658 - in stable/11/sys: arm/allwinner arm/altera/socfpga arm/arm arm/broadcom/bcm2835 arm/conf arm/freescale/imx arm/freescale/vybrid arm/include arm/mv/armada38x arm/mv/armadaxp ar...

2018-01-06 Thread Ian Lepore
Author: ian Date: Sun Jan 7 00:04:13 2018 New Revision: 327658 URL: https://svnweb.freebsd.org/changeset/base/327658 Log: MFC r327367: Make kernel option KERNVIRTADDR optional, remove it from std. files that can use the default value. It used to be required that the low-order bits

svn commit: r327656 - stable/11/sys/arm/arm

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 23:24:52 2018 New Revision: 327656 URL: https://svnweb.freebsd.org/changeset/base/327656 Log: MFC r327048-r327050 r327048: Restore the ability to use EARLY_PRINTF support during most of initarm(). The real kernel page tables are set up much earlier in

svn commit: r327655 - in stable/11: share/man/man4 sys/conf sys/dev/md

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 23:20:35 2018 New Revision: 327655 URL: https://svnweb.freebsd.org/changeset/base/327655 Log: MFC r327032: Add a new kernel config option, MD_ROOT_READONLY, which forces on the MD_READONLY flag for the md device automatically instantiated during kernel init

svn commit: r327654 - stable/11/sys/arm/broadcom/bcm2835

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 23:12:32 2018 New Revision: 327654 URL: https://svnweb.freebsd.org/changeset/base/327654 Log: MFC r326924-r326925 r326924: Fix debugging output, fallout from something like s/read/readctl/g while renaming variables in a previous change. r326925: Do

svn commit: r327653 - stable/11/sys/dev/iicbus

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 23:04:14 2018 New Revision: 327653 URL: https://svnweb.freebsd.org/changeset/base/327653 Log: MFC r326750: Do not give up if writing to the chip's control and status registers fails during startup. When a brand new chip leaves the factory, it is in a

svn commit: r327651 - stable/11/sys/amd64/vmm/io

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 22:56:48 2018 New Revision: 327651 URL: https://svnweb.freebsd.org/changeset/base/327651 Log: MFC r325108: Improve the performance of the hpet timer in bhyve guests by making the timer frequency a power of two. This changes the frequency from 10 to 16.7

svn commit: r327638 - in stable/11/sys/dev: ffec sdhci

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 21:19:52 2018 New Revision: 327638 URL: https://svnweb.freebsd.org/changeset/base/327638 Log: MFC r325045, r325054-r325056, r325061, r325063, r325065 r325045: Actually release resources in detach() rather than just returning EBUSY. This will enable use of

svn commit: r327637 - stable/11/sys/sys

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 20:52:30 2018 New Revision: 327637 URL: https://svnweb.freebsd.org/changeset/base/327637 Log: MFC r325060: Add a #define RESOURCE_SPEC_END. Similar to DEVMETHOD_END and KOBJMETHOD_END, this is to serve as the end marker in an array of resource_spec

svn commit: r327633 - stable/11/sys/arm/freescale/imx

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 19:24:49 2018 New Revision: 327633 URL: https://svnweb.freebsd.org/changeset/base/327633 Log: Fix imx6 hdmi init after r323553. This is a direct commit to 11-stable because major architectural changes in 12 prevent a direct MFC of the affected code.

svn commit: r327626 - in stable/11: share/man/man9 sys/kern sys/sys

2018-01-06 Thread Ian Lepore
Author: ian Date: Sat Jan 6 17:20:58 2018 New Revision: 327626 URL: https://svnweb.freebsd.org/changeset/base/327626 Log: MFC r324413, r324415 r324413: Restore the ability to deregister an eventhandler from within the callback. When the EVENTHANDLER(9) subsystem was created, it was

svn commit: r327595 - stable/11/sys/arm/ti

2018-01-05 Thread Ian Lepore
Author: ian Date: Fri Jan 5 19:28:13 2018 New Revision: 327595 URL: https://svnweb.freebsd.org/changeset/base/327595 Log: MFC r324185: Enhance the interrupt capabilities of ti_pruss driver. The existing ti_pruss driver for the PRUSS Hardware provided by the AM335x ARM CPU has basic

svn commit: r327594 - stable/11/sys/arm/broadcom/bcm2835

2018-01-05 Thread Ian Lepore
ht (c) 2013 Luiz Otavio O Souza <l...@freebsd.org> + * Copyright (c) 2017 Ian Lepore <i...@freebsd.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,6 +30,57 @@ #include __FBSDID("$FreeBSD$"); +/* + * Driver f

svn commit: r327592 - in stable/11: etc etc/defaults sbin/mdmfs

2018-01-05 Thread Ian Lepore
Author: ian Date: Fri Jan 5 19:12:36 2018 New Revision: 327592 URL: https://svnweb.freebsd.org/changeset/base/327592 Log: MFC r319987, r324107-r324108 r319987 (MFC'd just to make following changes apply cleanly): Replace md(4) usage in diskless(8) script rc.initdiskless with tmpfs(5).

Re: svn commit: r327476 - head/sbin/shutdown

2018-01-01 Thread Ian Lepore
On Mon, 2018-01-01 at 22:33 +, Eitan Adler wrote: > Author: eadler > Date: Mon Jan  1 22:33:57 2018 > New Revision: 327476 > URL: https://svnweb.freebsd.org/changeset/base/327476 > > Log: >   shutdown: Assume absolute time is in the future > [...] > Modified: head/sbin/shutdown/shutdown.c >

svn commit: r327453 - in head: stand/libsa sys/sys

2017-12-31 Thread Ian Lepore
Author: ian Date: Sun Dec 31 22:43:24 2017 New Revision: 327453 URL: https://svnweb.freebsd.org/changeset/base/327453 Log: Add a validbcd() routine that uses the bcd2bin_data[] array and returns a bool indicating whether the input value represents a valid BCD byte. The existing bcd2bin()

svn commit: r327446 - head/sys/sparc64/sparc64

2017-12-31 Thread Ian Lepore
Author: ian Date: Sun Dec 31 20:30:51 2017 New Revision: 327446 URL: https://svnweb.freebsd.org/changeset/base/327446 Log: Chase r327432... sparc64 clock.c now needs to include sys/tslog.h Discussed with:cperciva Modified: head/sys/sparc64/sparc64/clock.c Modified:

svn commit: r327439 - in head: . share/man/man7

2017-12-31 Thread Ian Lepore
Author: ian Date: Sun Dec 31 18:53:13 2017 New Revision: 327439 URL: https://svnweb.freebsd.org/changeset/base/327439 Log: Allow use of .WAIT in the LOCAL_DIRS and LOCAL_LIB_DIRS lists. A comment in Makefile.inc1 has long stated that LOCAL_DIRS are built last, after the base system.

svn commit: r327367 - in head/sys: arm/allwinner arm/altera/socfpga arm/arm arm/broadcom/bcm2835 arm/conf arm/freescale/imx arm/freescale/vybrid arm/include arm/mv/armada38x arm/mv/armadaxp arm/nvi...

2017-12-29 Thread Ian Lepore
Author: ian Date: Sat Dec 30 00:20:49 2017 New Revision: 327367 URL: https://svnweb.freebsd.org/changeset/base/327367 Log: Make kernel option KERNVIRTADDR optional, remove it from std. files that can use the default value. It used to be required that the low-order bits of KERNVIRTADDR

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

2017-12-29 Thread Ian Lepore
Author: ian Date: Fri Dec 29 20:00:19 2017 New Revision: 327356 URL: https://svnweb.freebsd.org/changeset/base/327356 Log: Correct a mistake and reword a couple sentences to clarify that "the value" refers to the scale value, not the kmem_arena size that results from scaling. Suggested

<    5   6   7   8   9   10   11   12   13   14   >