svn commit: r320863 - stable/11/sys/kern

2017-07-09 Thread Konstantin Belousov
Author: kib Date: Mon Jul 10 05:59:06 2017 New Revision: 320863 URL: https://svnweb.freebsd.org/changeset/base/320863 Log: MFC r320619: Resolve confusion between different error code spaces. Modified: stable/11/sys/kern/kern_exec.c Directory Properties: stable/11/ (props changed)

svn commit: r320862 - stable/11/tests/sys/opencrypto

2017-07-09 Thread Ngie Cooper
Author: ngie Date: Mon Jul 10 05:34:37 2017 New Revision: 320862 URL: https://svnweb.freebsd.org/changeset/base/320862 Log: MFC r319455,r319456: r319455: Fix up `TEST_METADATA` - `TEST_METADATA.foo` should be `TEST_METADATA.run_tests`: this will unbreak trying to run the

svn commit: r320861 - head/sbin/camcontrol

2017-07-09 Thread Ngie Cooper
Author: ngie Date: Mon Jul 10 05:16:07 2017 New Revision: 320861 URL: https://svnweb.freebsd.org/changeset/base/320861 Log: Fix whitespace bugs - Delete trailing whitespace. - Replace 8 single column spaces with hard tabs. - Delete lines with consisting purely of blank space. - Add

svn commit: r320860 - in head/sys: cam/ata cam/scsi ddb dev/aic7xxx dev/drm dev/isci

2017-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 10 05:08:01 2017 New Revision: 320860 URL: https://svnweb.freebsd.org/changeset/base/320860 Log: Include opt files in the kernel with "" instead of <>. Modified: head/sys/cam/ata/ata_all.c head/sys/cam/scsi/scsi_all.c head/sys/cam/scsi/scsi_enc.c

svn commit: r320859 - head/sbin/camcontrol

2017-07-09 Thread Ngie Cooper
Author: ngie Date: Mon Jul 10 04:28:28 2017 New Revision: 320859 URL: https://svnweb.freebsd.org/changeset/base/320859 Log: Fix -Wuninitialized warning with gcc Initialize mmc_data_byte to 0, as it could be used uninitialized later on. MFC with: r320846 Reported by: Jenkins

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

2017-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 10 03:38:17 2017 New Revision: 320858 URL: https://svnweb.freebsd.org/changeset/base/320858 Log: Better contain MMCCAM parts of this file Remove some useless to the general user debugs Put debugs under sdhci_debug. Fix some style(9) regressions Submitted by:

svn commit: r320857 - head/sys/cam

2017-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 10 03:38:12 2017 New Revision: 320857 URL: https://svnweb.freebsd.org/changeset/base/320857 Log: Opt files are included with single quotes. Modified: head/sys/cam/cam.h Modified: head/sys/cam/cam.h

svn commit: r320856 - head/sys/modules/sdhci

2017-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 10 03:38:07 2017 New Revision: 320856 URL: https://svnweb.freebsd.org/changeset/base/320856 Log: Add dependency on opt_cam.h and opt_mmccam.h Modified: head/sys/modules/sdhci/Makefile Modified: head/sys/modules/sdhci/Makefile

svn commit: r320855 - stable/11/usr.sbin/bhyve

2017-07-09 Thread Peter Grehan
Author: grehan Date: Mon Jul 10 03:11:48 2017 New Revision: 320855 URL: https://svnweb.freebsd.org/changeset/base/320855 Log: MFC r311699 ps2 mouse fixes, found by plan9/9front. Reminded by: sevan Modified: stable/11/usr.sbin/bhyve/ps2mouse.c Directory Properties: stable/11/

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Warner Losh
On Sun, Jul 9, 2017 at 4:37 PM, Marius Strobl wrote: > On Sun, Jul 09, 2017 at 02:49:56PM -0600, Warner Losh wrote: > > On Sun, Jul 9, 2017 at 2:40 PM, Warner Losh wrote: > > > > > > > > > > > On Sun, Jul 9, 2017 at 12:42 PM, Marius Strobl

svn commit: r320854 - head/sys/compat/linuxkpi/common/include/linux

2017-07-09 Thread Mark Johnston
Author: markj Date: Sun Jul 9 23:14:51 2017 New Revision: 320854 URL: https://svnweb.freebsd.org/changeset/base/320854 Log: Add some functions to math64.h in the LinuxKPI, and fix nearby style. Reviewed by: hselasky MFC after:1 week Differential Revision:

svn commit: r320853 - head/sys/compat/linuxkpi/common/include/linux

2017-07-09 Thread Mark Johnston
Author: markj Date: Sun Jul 9 23:13:08 2017 New Revision: 320853 URL: https://svnweb.freebsd.org/changeset/base/320853 Log: Add a few functions to ktime.h in the LinuxKPI, and fix nearby style. Reviewed by: hselasky MFC after:1 week Differential Revision:

svn commit: r320852 - head/sys/compat/linuxkpi/common/src

2017-07-09 Thread Mark Johnston
Author: markj Date: Sun Jul 9 22:57:00 2017 New Revision: 320852 URL: https://svnweb.freebsd.org/changeset/base/320852 Log: Free existing per-thread task structs when unloading linuxkpi.ko. They are otherwise leaked. Reported and tested by: ae MFC after:1 week

svn commit: r320851 - in head/sys: dev/agp modules/agp

2017-07-09 Thread Mark Johnston
Author: markj Date: Sun Jul 9 22:53:24 2017 New Revision: 320851 URL: https://svnweb.freebsd.org/changeset/base/320851 Log: Add a helper function to agp(4) which installs a single GTT entry. Submitted by: dumbbell MFC after:1 week Modified: head/sys/dev/agp/agp_i810.c

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Marius Strobl
On Sun, Jul 09, 2017 at 02:49:56PM -0600, Warner Losh wrote: > On Sun, Jul 9, 2017 at 2:40 PM, Warner Losh wrote: > > > > > > > On Sun, Jul 9, 2017 at 12:42 PM, Marius Strobl wrote: > > > >> On Sun, Jul 09, 2017 at 04:57:24PM +, Warner Losh wrote: > >> >

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Warner Losh
On Sun, Jul 9, 2017 at 2:40 PM, Warner Losh wrote: > > > On Sun, Jul 9, 2017 at 12:42 PM, Marius Strobl wrote: > >> On Sun, Jul 09, 2017 at 04:57:24PM +, Warner Losh wrote: >> > Author: imp >> > Date: Sun Jul 9 16:57:24 2017 >> > New Revision: 320844 >>

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

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 20:49:02 2017 New Revision: 320850 URL: https://svnweb.freebsd.org/changeset/base/320850 Log: Back out enabling the card interrupt detection bit. It is not ready to commit. Noticed by: marius@ Modified: head/sys/dev/sdhci/sdhci.c Modified:

svn commit: r320849 - head/sys/modules

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 20:42:11 2017 New Revision: 320849 URL: https://svnweb.freebsd.org/changeset/base/320849 Log: Reconnect mmc and mmcsd disconnected unintentioanlly in mmccam commit. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Warner Losh
On Sun, Jul 9, 2017 at 12:42 PM, Marius Strobl wrote: > On Sun, Jul 09, 2017 at 04:57:24PM +, Warner Losh wrote: > > Author: imp > > Date: Sun Jul 9 16:57:24 2017 > > New Revision: 320844 > > URL: https://svnweb.freebsd.org/changeset/base/320844 > > > > Log: > > An

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Marius Strobl
On Sun, Jul 09, 2017 at 04:57:24PM +, Warner Losh wrote: > Author: imp > Date: Sun Jul 9 16:57:24 2017 > New Revision: 320844 > URL: https://svnweb.freebsd.org/changeset/base/320844 > > Log: > An MMC/SD/SDIO stack using CAM > > Implement the MMC/SD/SDIO protocol within a CAM

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread Warner Losh
Unless you are booting a MMCCAM kernel, this should be a no-op. I'll rebuild in a clean tree to make sure something weird didn't happen during the final integration... Warner On Sun, Jul 9, 2017 at 11:55 AM, O. Hartmann wrote: > Am Sun, 9 Jul 2017 16:57:24 + (UTC) >

svn commit: r320848 - head/sys/netpfil/pf

2017-07-09 Thread Kristof Provost
Author: kp Date: Sun Jul 9 17:56:39 2017 New Revision: 320848 URL: https://svnweb.freebsd.org/changeset/base/320848 Log: pf: Fix vnet purging pf_purge_thread() breaks up the work of iterating all states (in pf_purge_expired_states()) and tracks progress in the idx variable. If

Re: svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/

2017-07-09 Thread O. Hartmann
Am Sun, 9 Jul 2017 16:57:24 + (UTC) Warner Losh schrieb: > Author: imp > Date: Sun Jul 9 16:57:24 2017 > New Revision: 320844 > URL: https://svnweb.freebsd.org/changeset/base/320844 > > Log: > An MMC/SD/SDIO stack using CAM > > Implement the MMC/SD/SDIO protocol

svn commit: r320847 - head/usr.bin/sdiotool

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 17:05:48 2017 New Revision: 320847 URL: https://svnweb.freebsd.org/changeset/base/320847 Log: Added new tool for doing experiments with SDIO card. Due to its experimental nature, it's not yet connected to the build. Submitted by: Ilya Babulin Added:

svn commit: r320846 - head/sbin/camcontrol

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 17:02:52 2017 New Revision: 320846 URL: https://svnweb.freebsd.org/changeset/base/320846 Log: New command 'mmcsdcmd' for camcontrol, to allow interacting with SD cards Submitted by: Ilya Babulin Modified: head/sbin/camcontrol/camcontrol.c Modified:

svn commit: r320845 - in head/sys: dev/mmcnull modules/mmcnull

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 17:02:47 2017 New Revision: 320845 URL: https://svnweb.freebsd.org/changeset/base/320845 Log: Added mmcnull, an emulated lightweight MMC controller This emulated device attaches to the ISA bus and registers itself as HBA supporting MMC/SD cards. This allows

svn commit: r320844 - in head: etc/mtree include lib/libcam sys/amd64/conf sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/cam sys/cam/mmc sys/cam/scsi sys/conf sys/dev/mmc sys/dev/sdhci sys/m...

2017-07-09 Thread Warner Losh
Author: imp Date: Sun Jul 9 16:57:24 2017 New Revision: 320844 URL: https://svnweb.freebsd.org/changeset/base/320844 Log: An MMC/SD/SDIO stack using CAM Implement the MMC/SD/SDIO protocol within a CAM framework. CAM's flexible queueing will make it easier to write non-storage drivers

svn commit: r320843 - head/sys/vm

2017-07-09 Thread Konstantin Belousov
Author: kib Date: Sun Jul 9 15:41:49 2017 New Revision: 320843 URL: https://svnweb.freebsd.org/changeset/base/320843 Log: Fix loop termination in vm_map_find_min(). Reported by: antoine Tested by:Stefan Ehmann , Jan Kokemueller

svn commit: r320842 - head/sys/fs/ext2fs

2017-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 9 15:19:28 2017 New Revision: 320842 URL: https://svnweb.freebsd.org/changeset/base/320842 Log: Remove stale comments. There's no real advantage in using memcpy here. Dicussed with:bde (long ago) Modified: head/sys/fs/ext2fs/ext2_inode_cnv.c

svn commit: r320841 - stable/10/sys/fs/ext2fs

2017-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 9 15:14:22 2017 New Revision: 320841 URL: https://svnweb.freebsd.org/changeset/base/320841 Log: MFC r320408: ext2fs: Support e2di_uid_high and e2di_gid_high. The fields exist on all versions of the filesystem and using them is a mount option on linux. For

svn commit: r320840 - stable/11/sys/fs/ext2fs

2017-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 9 15:13:40 2017 New Revision: 320840 URL: https://svnweb.freebsd.org/changeset/base/320840 Log: MFC r320408: ext2fs: Support e2di_uid_high and e2di_gid_high. The fields exist on all versions of the filesystem and using them is a mount option on linux. For

svn commit: r320839 - stable/10/sys/fs/ext2fs

2017-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 9 15:09:15 2017 New Revision: 320839 URL: https://svnweb.freebsd.org/changeset/base/320839 Log: MFC r320079: ext2fs: Enable RO huge_file feature support. We have support for reading ext4 "huge" files but we can't write (anything) on ext4. and some filesystem.

svn commit: r320838 - stable/11/sys/fs/ext2fs

2017-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 9 15:03:41 2017 New Revision: 320838 URL: https://svnweb.freebsd.org/changeset/base/320838 Log: MFC r320079: ext2fs: Enable RO huge_file feature support. We have support for reading ext4 "huge" files but we can't write (anything) on ext4. and some filesystem.

svn commit: r320837 - head/sys/fs/fdescfs

2017-07-09 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 9 14:18:22 2017 New Revision: 320837 URL: https://svnweb.freebsd.org/changeset/base/320837 Log: Style(9). Whitespace. MFC after:3 weeks Modified: head/sys/fs/fdescfs/fdesc_vnops.c Modified: head/sys/fs/fdescfs/fdesc_vnops.c

svn commit: r320836 - head/sys/fs/fdescfs

2017-07-09 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 9 14:15:51 2017 New Revision: 320836 URL: https://svnweb.freebsd.org/changeset/base/320836 Log: Eliminate the bogus casts. MFC after:3 weeks Modified: head/sys/fs/fdescfs/fdesc_vnops.c Modified: head/sys/fs/fdescfs/fdesc_vnops.c

svn commit: r320835 - head/sys/boot/fdt/dts/arm

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 13:56:34 2017 New Revision: 320835 URL: https://svnweb.freebsd.org/changeset/base/320835 Log: dts: arm: Fix our local patches for H3 sun4i-a10.h is not included anymore, define directly the drive strengh of the pins. Modified:

svn commit: r320834 - in head/sys/gnu/dts: arm include/dt-bindings/clock include/dt-bindings/genpd include/dt-bindings/gpio include/dt-bindings/input include/dt-bindings/mfd include/dt-bindings/pin...

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 13:53:32 2017 New Revision: 320834 URL: https://svnweb.freebsd.org/changeset/base/320834 Log: Update DTS files from Linux 4.12 Notable changes: Allwinner: * H3/H5 were merged into a common dtsi file * include/dt-bindings/sun4i-a10.h is not

svn commit: r320833 - vendor/device-tree/4.12

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 13:13:50 2017 New Revision: 320833 URL: https://svnweb.freebsd.org/changeset/base/320833 Log: Tag import of DTS from Linux 4.12 Added: vendor/device-tree/4.12/ - copied from r320832, vendor/device-tree/dist/ ___

svn commit: r320832 - in vendor/device-tree/dist: . Bindings Bindings/arm Bindings/arm/firmware Bindings/arm/hisilicon Bindings/arm/mediatek Bindings/arm/tegra Bindings/ata Bindings/auxdisplay Bind...

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 13:12:48 2017 New Revision: 320832 URL: https://svnweb.freebsd.org/changeset/base/320832 Log: Update the DTS file from Linux 4.12 Added: vendor/device-tree/dist/Bindings/arm/cavium-thunder2.txt (contents, props changed)

svn commit: r320831 - in head/sys: arm64/conf conf

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 12:53:02 2017 New Revision: 320831 URL: https://svnweb.freebsd.org/changeset/base/320831 Log: arm64: Add Allwinner I2C controller to GENERIC kernel Modified: head/sys/arm64/conf/GENERIC head/sys/conf/files.arm64 Modified: head/sys/arm64/conf/GENERIC

svn commit: r320830 - head/sys/arm/allwinner

2017-07-09 Thread Emmanuel Vadot
Author: manu Date: Sun Jul 9 12:35:19 2017 New Revision: 320830 URL: https://svnweb.freebsd.org/changeset/base/320830 Log: if_awg: Add "allwinner,sun50i-a64-emac" compatible string. This enable ethernet on Pine64 with latest DTS. Modified: head/sys/arm/allwinner/if_awg.c Modified:

svn commit: r320829 - head/sys/dev/syscons

2017-07-09 Thread Bruce Evans
Author: bde Date: Sun Jul 9 12:13:37 2017 New Revision: 320829 URL: https://svnweb.freebsd.org/changeset/base/320829 Log: Move open coding of construction of attributes for cut regions and text cursors to functions so that it is easier to fix and improve. This commit doesn't fix anything

svn commit: r320827 - head/sys/dev/drm

2017-07-09 Thread Alexander Leidinger
Author: netchild Date: Sun Jul 9 06:50:15 2017 New Revision: 320827 URL: https://svnweb.freebsd.org/changeset/base/320827 Log: Switch prison check from PROV_DRIVER to PRIV_KMEM_WRITE (like /dev/mem). Access to the dri device gives effectively access to the entire memory of the machine

svn commit: r320826 - head/sys/sys

2017-07-09 Thread Alexander Leidinger
Author: netchild Date: Sun Jul 9 06:40:16 2017 New Revision: 320826 URL: https://svnweb.freebsd.org/changeset/base/320826 Log: - Extend pr_allow flags visually to 32 bits, to make it more obvious at first look how much flags we still have available to use in the future. - Add