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

2018-05-17 Thread Emmanuel Vadot
Author: manu Date: Thu May 17 10:13:18 2018 New Revision: 333706 URL: https://svnweb.freebsd.org/changeset/base/333706 Log: mx25l: Add mx25l1606e This is a 16Mbits spi flash arranged in 32x64k blocks or 512x4k sectors. Modified: head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/

svn commit: r333708 - in head/sys: conf modules

2018-05-17 Thread Emmanuel Vadot
Author: manu Date: Thu May 17 10:19:52 2018 New Revision: 333708 URL: https://svnweb.freebsd.org/changeset/base/333708 Log: allwinner: Add h3 spi driver This driver is compatible with H3/H5/A64. Test was done on the OrangePi-PC2 board (H5 based), which have a mx25l1606e spi flash on it,

svn commit: r333709 - in head/sys: arm/allwinner modules/allwinner modules/allwinner/aw_spi

2018-05-17 Thread Emmanuel Vadot
(empty, because file is newly added) +++ head/sys/arm/allwinner/aw_spi.c Thu May 17 10:25:01 2018 (r333709) @@ -0,0 +1,603 @@ +/*- + * Copyright (c) 2018 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that

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

2018-05-17 Thread Emmanuel Vadot
+1,116 @@ +.\"- +.\" Copyright (c) 2018 Emmanuel Vadot +.\" 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. Redist

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

2018-05-17 Thread Emmanuel Vadot
bullet -compact -.It -allwinner,sun8i-h3-spi -.El -.Sh HISTORY -The -.Nm -device driver first appeared in -.Fx 12.0 . -.Sh AUTHORS -The -.Nm -device driver was written by -.An Emmanuel Vadot Aq Mt m...@freebsd.org . -.\"- -.\" Copyright (c) 2018 Emmanuel Vadot -.\" All rights reserved.

Re: svn commit: r333710 - head/share/man/man4

2018-05-17 Thread Emmanuel Vadot
On Thu, 17 May 2018 13:46:45 +0200 Mateusz Piotrowski <0...@freebsd.org> wrote: > Hello, > > I think something went wrong here. > > On Thu, 17 May 2018 10:25:49 +0000 (UTC) > Emmanuel Vadot wrote: > > >Author: manu > >Date: Thu May 17 10:25:49 201

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

2018-05-17 Thread Emmanuel Vadot
Author: manu Date: Thu May 17 14:51:22 2018 New Revision: 333716 URL: https://svnweb.freebsd.org/changeset/base/333716 Log: aw_spi: Fix some silly clock mistake The module uses the mod clock and not the ahb one. We need to set the mod clock to twice the speed requested as the smallest d

svn commit: r333737 - head/release/arm

2018-05-17 Thread Emmanuel Vadot
Author: manu Date: Thu May 17 16:21:12 2018 New Revision: 333737 URL: https://svnweb.freebsd.org/changeset/base/333737 Log: release: arm: Format FAT partition as FAT16 r332674 raised the size of the FAT partition from 2MB to 41MB for some boards. But we format them in FAT12 and this size

Re: svn commit: r333745 - in head/sys/contrib/ck: include src

2018-05-17 Thread Emmanuel Vadot
roved by:sbruno > > Modified: > head/sys/contrib/ck/include/ck_epoch.h > head/sys/contrib/ck/src/ck_epoch.c > CK was imported in vendor-sys/ck, commiting directly into head will cause some problems in the future. -- Emmanuel Vadot _

svn commit: r333756 - head/release/arm64

2018-05-17 Thread Emmanuel Vadot
Author: manu Date: Thu May 17 19:10:13 2018 New Revision: 333756 URL: https://svnweb.freebsd.org/changeset/base/333756 Log: release: rpi3: Copy the special rpi3 config.txt RPI* 32bits and RPI* 64bits have a different config.txt Copy to correct config.txt to the fat partition of the releas

Re: svn commit: r333745 - in head/sys/contrib/ck: include src

2018-05-17 Thread Emmanuel Vadot
On Thu, 17 May 2018 14:20:05 -0500 Pedro Giffuni wrote: > > On 17/05/2018 14:12, Matthew Macy wrote: > > How do I avoid problems while allowing timely updates? > > > > -M > > > > On Thu, May 17, 2018 at 11:38 AM, Emmanuel Vadot > > wrote: > >>

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

2018-05-19 Thread Emmanuel Vadot
? + * Copyright (c) 2018 Matthew Macy * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ... That also seems a small patch to add your name in the copyright. -- Emmanuel Vadot

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

2018-05-19 Thread Emmanuel Vadot
On 2018-05-19 17:39, Matthew Macy wrote: On Sat, May 19, 2018 at 07:17 Emmanuel Vadot wrote: On 2018-05-19 15:35, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: mmacy Date: Sat May 19 02:15:40 2018 New Revision: 333822 URL: https://svnweb.freebsd.org/changeset

svn commit: r333976 - head/release/arm64

2018-05-21 Thread Emmanuel Vadot
Author: manu Date: Mon May 21 11:58:02 2018 New Revision: 333976 URL: https://svnweb.freebsd.org/changeset/base/333976 Log: release: arm64: Use loader.efi as bootaa64.efi for RPI3 and PINE64 boot1.efi have some trouble to read MBR partitions, it needs them to be aligned a certain way whil

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

2018-05-21 Thread Emmanuel Vadot
ad/sys/arm/allwinner/aw_mmc.c Mon May 21 21:08:19 2018 (r334005) +++ head/sys/arm/allwinner/aw_mmc.c Mon May 21 21:15:46 2018 (r334006) @@ -1,4 +1,7 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Emmanuel Vadot * Copyright (c) 2013 Alexand

svn commit: r334007 - head/etc/devd

2018-05-21 Thread Emmanuel Vadot
Author: manu Date: Mon May 21 21:44:47 2018 New Revision: 334007 URL: https://svnweb.freebsd.org/changeset/base/334007 Log: devd: Always install devmatch.conf It allows devd to run devmatch to find the correct driver based on pnp info. No Objection from:imp Modified: head/etc/de

svn commit: r334034 - head/share/man/man9

2018-05-22 Thread Emmanuel Vadot
Author: manu Date: Tue May 22 11:17:45 2018 New Revision: 334034 URL: https://svnweb.freebsd.org/changeset/base/334034 Log: bus_dma(9): arm64 implementation notes Indicate that BUS_DMA_COHERENT is supported for bus_dmamem_alloc and bus_dmamem_create in the arm64 implementation. Modified:

svn commit: r334041 - head/share/man/man9

2018-05-22 Thread Emmanuel Vadot
Author: manu Date: Tue May 22 13:45:24 2018 New Revision: 334041 URL: https://svnweb.freebsd.org/changeset/base/334041 Log: bus_dma(9): Correct arm64 BUS_DMA_COHERENT implementation note BUS_DMA_COHERENT isn't supported in bus_dmamap_create but bus_dma_tag_create. Document it properly.

svn commit: r334112 - in head/sys: arm64/rockchip/clk conf

2018-05-23 Thread Emmanuel Vadot
--- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm64/rockchip/clk/rk_clk_armclk.c Wed May 23 19:07:03 2018 (r334112) @@ -0,0 +1,237 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Emmanuel Vadot + * All rights reserved.

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

2018-05-28 Thread Emmanuel Vadot
Author: manu Date: Mon May 28 21:05:00 2018 New Revision: 334297 URL: https://svnweb.freebsd.org/changeset/base/334297 Log: arm64: fix atomic_fcmpset_16 newval needs to be uint16_t Reported by: andrew Modified: head/sys/arm64/include/atomic.h Modified: head/sys/arm64/include/atomi

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

2018-05-28 Thread Emmanuel Vadot
Author: manu Date: Mon May 28 20:29:03 2018 New Revision: 334295 URL: https://svnweb.freebsd.org/changeset/base/334295 Log: arm64: Add atomic_fcmpset_8 and atomic_fcmpset_16 Reviewed by: cognet Modified: head/sys/arm64/include/atomic.h Modified: head/sys/arm64/include/atomic.h

svn commit: r334386 - head/sys/dev/extres/regulator

2018-05-30 Thread Emmanuel Vadot
Author: manu Date: Wed May 30 15:32:31 2018 New Revision: 334386 URL: https://svnweb.freebsd.org/changeset/base/334386 Log: regulator: Fix typo (shuting/shutting) Submitted by: Jose Luis Duran (github pull #151) Modified: head/sys/dev/extres/regulator/regulator.c Modified: head/sys/dev/

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

2018-05-31 Thread Emmanuel Vadot
Author: manu Date: Thu May 31 15:39:39 2018 New Revision: 334434 URL: https://svnweb.freebsd.org/changeset/base/334434 Log: aw_mmc: Rework DMA - Calculate the number of segments based on the page size - Add some comments on dma function so it's easier to read - Only enable interrupts

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

2018-05-31 Thread Emmanuel Vadot
Author: manu Date: Thu May 31 15:36:26 2018 New Revision: 334433 URL: https://svnweb.freebsd.org/changeset/base/334433 Log: aw_mmc: Rename clock register defines consistently Modified: head/sys/arm/allwinner/aw_mmc.c head/sys/arm/allwinner/aw_mmc.h Modified: head/sys/arm/allwinner/aw_mmc.c

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

2018-05-31 Thread Emmanuel Vadot
Author: manu Date: Thu May 31 15:41:00 2018 New Revision: 334435 URL: https://svnweb.freebsd.org/changeset/base/334435 Log: aw_mmc: Use the DEVMETHOD vccq for the IO line voltage MMC controller should use this and not set the voltage during update_ios. Modified: head/sys/arm/allwinner/aw

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

2018-05-31 Thread Emmanuel Vadot
Author: manu Date: Thu May 31 15:41:56 2018 New Revision: 334436 URL: https://svnweb.freebsd.org/changeset/base/334436 Log: aw_mmc: Get max-frequency from the dtb If a max-frequency is supplied in the dtb use it, otherwise fallback to a default one of 52Mhz. Modified: head/sys/arm/allw

Re: svn commit: r334617 - in head: . etc

2018-06-07 Thread Emmanuel Vadot
cross the entire hier(7) like butter on bread. > > ./danfe Our huge selling point is startup scripts in /etc/rc.d ? Damn, we sucks at marketing ... -- Emmanuel Vadot ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/l

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

2018-06-12 Thread Emmanuel Vadot
Author: manu Date: Tue Jun 12 11:47:21 2018 New Revision: 334996 URL: https://svnweb.freebsd.org/changeset/base/334996 Log: arm64: rockchip: Correctly set armclk Parent needs to be the same frequency as the armclk, not twice the freq. The real divider is incremented by one so write it wit

svn commit: r335014 - head/sys/dev/ofw

2018-06-12 Thread Emmanuel Vadot
Author: manu Date: Tue Jun 12 20:03:00 2018 New Revision: 335014 URL: https://svnweb.freebsd.org/changeset/base/335014 Log: simplebus pnp: Do not generate pnp info is the bus status is not okay Generating the pnp info have the side effect to include all nodes even if the status isn't "oka

Re: svn commit: r335004 - head/release/tools

2018-06-13 Thread Emmanuel Vadot
echo 'umodem_load="YES"' \ + >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf I'm not a big fan of always enabling this functionality. Do you have a board that have no uart but an otg port ? +} + arm_install_base() { chroot ${CHROOTDIR} mount

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

2018-06-13 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 05:41:16 2018 New Revision: 335107 URL: https://svnweb.freebsd.org/changeset/base/335107 Log: rk_pinctrl: Only add gpio subnode This is the only node we are interested in so do not waste time to test creating device that will be either unused or fail as most

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

2018-06-13 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 05:43:45 2018 New Revision: 335108 URL: https://svnweb.freebsd.org/changeset/base/335108 Log: rk_pll: Add support for mode RockChip PLL have two modes controlled by a register, a "slow mode" (the default one) where the frequency is derived from the 24Mhz osci

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

2018-06-13 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 05:46:57 2018 New Revision: 335109 URL: https://svnweb.freebsd.org/changeset/base/335109 Log: rk_armclk: Add the write mask to the register mux value This was omitted in r334112 and r334996 which cause the PLL to not correctly reparent, leaving the armclk to

Re: svn commit: r335108 - head/sys/arm64/rockchip/clk

2018-06-13 Thread Emmanuel Vadot
On Thu, 14 Jun 2018 05:43:45 + (UTC) Emmanuel Vadot wrote: > Author: manu > Date: Thu Jun 14 05:43:45 2018 > New Revision: 335108 > URL: https://svnweb.freebsd.org/changeset/base/335108 > > Log: > rk_pll: Add support for mode > > RockChip PLL have two mod

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

2018-06-13 Thread Emmanuel Vadot
/if_dwc_rk.c Thu Jun 14 06:28:09 2018 (r335112) @@ -0,0 +1,151 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Emmanuel Vadot + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted

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

2018-06-13 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 06:34:27 2018 New Revision: 335113 URL: https://svnweb.freebsd.org/changeset/base/335113 Log: rk3328: Add support for the i2c clocks Modified: head/sys/arm64/rockchip/clk/rk3328_cru.c Modified: head/sys/arm64/rockchip/clk/rk3328_cru.c ===

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

2018-06-13 Thread Emmanuel Vadot
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm64/rockchip/rk_i2c.cThu Jun 14 06:39:33 2018 (r335114) @@ -0,0 +1,607 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Emmanuel Vadot

svn commit: r335115 - in head/sys/modules: . rockchip rockchip/rk_i2c

2018-06-13 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 06:40:59 2018 New Revision: 335115 URL: https://svnweb.freebsd.org/changeset/base/335115 Log: Add modules/rockchip Build rockchip modules as part of buildkernel. Add the i2c controller module. Added: head/sys/modules/rockchip/ head/sys/modules/rockchip/M

svn commit: r335121 - in head/sys/gnu/dts: arm include/dt-bindings/clock include/dt-bindings/gpio include/dt-bindings/input include/dt-bindings/media include/dt-bindings/mfd include/dt-bindings/net...

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 07:12:10 2018 New Revision: 335121 URL: https://svnweb.freebsd.org/changeset/base/335121 Log: dts: Update our copy to Linux 4.17 Added: - copied unchanged from r335118, vendor/device-tree/dist/src/arm/am335x-pdu001.dts - copied unchanged from r335118, v

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

2018-06-14 Thread Emmanuel Vadot
(r335124) @@ -0,0 +1,64 @@ +.\"- +.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD +.\" +.\" Copyright (c) 2018 Emmanuel Vadot +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the follow

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 17:18:15 2018 New Revision: 335156 URL: https://svnweb.freebsd.org/changeset/base/335156 Log: arm timer: Add workaround for Allwinner A64 timer The timer present in allwinner A64 SoC is unstable, value can jump backward or forward. It was found that when bi

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 17:19:44 2018 New Revision: 335157 URL: https://svnweb.freebsd.org/changeset/base/335157 Log: aw_spi: Add pnp info Modified: head/sys/arm/allwinner/aw_spi.c Modified: head/sys/arm/allwinner/aw_spi.c ===

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 17:21:09 2018 New Revision: 335159 URL: https://svnweb.freebsd.org/changeset/base/335159 Log: mx25l: Add pnp info Modified: head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/mx25l.c ==

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 17:20:47 2018 New Revision: 335158 URL: https://svnweb.freebsd.org/changeset/base/335158 Log: spi: Add SPIBUS_PNP_INFO macro The PNP info string is the same as the SIMPLEBUS one but driver should depend on spibus and not simplebus Modified: head/sys/dev/sp

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 17:32:23 2018 New Revision: 335161 URL: https://svnweb.freebsd.org/changeset/base/335161 Log: arm timer: Use the default get_cntxct by default Reported by: kevans Modified: head/sys/arm/arm/generic_timer.c Modified: head/sys/arm/arm/generic_timer.c ===

Re: svn commit: r335156 - head/sys/arm/arm

2018-06-14 Thread Emmanuel Vadot
On Thu, 14 Jun 2018 12:26:38 -0500 Kyle Evans wrote: > On Thu, Jun 14, 2018 at 12:18 PM, Emmanuel Vadot wrote: > > Author: manu > > Date: Thu Jun 14 17:18:15 2018 > > New Revision: 335156 > > URL: https://svnweb.freebsd.org/changeset/base/335156 > > > > L

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

2018-06-14 Thread Emmanuel Vadot
Author: manu Date: Thu Jun 14 19:01:40 2018 New Revision: 335170 URL: https://svnweb.freebsd.org/changeset/base/335170 Log: mx25l: compat_data is only defined when FDT is Reported by: O. Hartmann Modified: head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/mx25l.c ===

Re: svn commit: r335159 - head/sys/dev/flash

2018-06-14 Thread Emmanuel Vadot
On Thu, 14 Jun 2018 20:40:14 +0200 "O. Hartmann" wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Am Thu, 14 Jun 2018 17:21:09 + (UTC) > Emmanuel Vadot schrieb: > > > Author: manu > > Date: Thu Jun 14 17:21:09 2018 > > New Revisi

Re: svn commit: r335068 - in head: share/man/man9 sys/amd64/amd64 sys/i386/i386 sys/kern sys/net sys/sys sys/vm

2018-06-14 Thread Emmanuel Vadot
, jhb (previous version) > Sponsored by: Netflix > Differential Revision: https://reviews.freebsd.org/D15691 This brake module loading on armv7 and arm64 kevans log on armv7 : https://gist.github.com/kevans91/d0ffcd6c94a0e4cdfdc5433612fce2e8 mine on arm64 : http://dpast

Re: svn commit: r335068 - in head: share/man/man9 sys/amd64/amd64 sys/i386/i386 sys/kern sys/net sys/sys sys/vm

2018-06-14 Thread Emmanuel Vadot
On 2018-06-15 04:04, Jonathan T. Looney wrote: On Thu, Jun 14, 2018 at 7:12 PM Olivier Houchard wrote: On Fri, Jun 15, 2018 at 12:23:36AM +0200, Emmanuel Vadot wrote: This brake module loading on armv7 and arm64 I think I fixed it with r335182. Jonathan probably missed it because modules

svn commit: r335190 - head/sys/arm/allwinner/clkng

2018-06-15 Thread Emmanuel Vadot
== --- head/sys/arm/allwinner/clkng/aw_ccung.c Fri Jun 15 06:03:40 2018 (r335189) +++ head/sys/arm/allwinner/clkng/aw_ccung.c Fri Jun 15 08:36:21 2018 (r335190) @@ -1,7 +1,8 @@ /*- - * Copyright (c) 2017 Emmanuel Vadot - * All rights reserved. + * SPDX-License

Re: svn commit: r335346 - head/sys/modules

2018-06-18 Thread Emmanuel Vadot
} \ ${_ep} \ ${_epic} \ - epoch_test \ esp \ ${_et} \ evdev \ -- Emmanuel Vadot ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to &quo

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

2018-06-20 Thread Emmanuel Vadot
Author: manu Date: Wed Jun 20 14:46:07 2018 New Revision: 335444 URL: https://svnweb.freebsd.org/changeset/base/335444 Log: rk_gpio: Read the correct register for gpio read Reported by: jmcneill Modified: head/sys/arm64/rockchip/rk_gpio.c Modified: head/sys/arm64/rockchip/rk_gpio.c ===

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

2018-06-20 Thread Emmanuel Vadot
Author: manu Date: Wed Jun 20 14:45:26 2018 New Revision: 335443 URL: https://svnweb.freebsd.org/changeset/base/335443 Log: if_rk_dwc: Fix delays handling The property are named {t,r}x_delay and not {t,r}-delay. The upper bits of the register are a mask of which bits is allowed to be wr

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

2018-06-20 Thread Emmanuel Vadot
Author: manu Date: Wed Jun 20 15:27:09 2018 New Revision: 335445 URL: https://svnweb.freebsd.org/changeset/base/335445 Log: if_rk_dwc: Disable setting delays for now The values for tx/rx delays differs accross the different DTS. Mainline Linux set it to 0x24/0x18 Mostly-Vendor u-boot (t

svn commit: r335446 - in head/sys: arm64/arm64 arm64/include kern

2018-06-20 Thread Emmanuel Vadot
Author: manu Date: Wed Jun 20 16:07:35 2018 New Revision: 335446 URL: https://svnweb.freebsd.org/changeset/base/335446 Log: Add pmap_mapdev_attr for arm64 This is needed for efifb. arm and ricv pmap (the two arch with arm64 that uses subr_devmap) have very different implementation so fo

Re: svn commit: r335476 - in head/sys: arm/allwinner conf

2018-06-21 Thread Emmanuel Vadot
vice_get_softc(bus); > > AW_MMC_LOCK(sc); > +#ifdef MMCCAM > + KASSERT(req == NULL, ("req should be NULL in MMCCAM case!")); > + /* > + * For MMCCAM, sc->ccb has been NULL-checked and populated > + * by aw_mmc_cam_request() already. > + */ > + cmd = &sc->ccb->mmcio.cmd; > +#else > if (sc->aw_req) { > AW_MMC_UNLOCK(sc); > return (EBUSY); > } > - > sc->aw_req = req; > cmd = req->cmd; > + > +#ifdef DEBUG > + if (bootverbose) > + device_printf(sc->aw_dev, "CMD%u arg %#x flags %#x dlen %u > dflags %#x\n", > + cmd->opcode, cmd->arg, cmd->flags, > + cmd->data != NULL ? (unsigned int)cmd->data->len > : 0, > + cmd->data != NULL ? cmd->data->flags: 0); > +#endif > +#endif > cmdreg = AW_MMC_CMDR_LOAD; > imask = AW_MMC_INT_ERR_BIT; > sc->aw_intr_wait = 0; > @@ -1163,4 +1516,6 @@ static driver_t aw_mmc_driver = { > > DRIVER_MODULE(aw_mmc, simplebus, aw_mmc_driver, aw_mmc_devclass, NULL, > NULL); > +#ifndef MMCCAM > MMC_DECLARE_BRIDGE(aw_mmc); > +#endif > > Modified: head/sys/arm/allwinner/files.allwinner > == > --- head/sys/arm/allwinner/files.allwinnerThu Jun 21 11:43:54 2018 > (r335475) > +++ head/sys/arm/allwinner/files.allwinnerThu Jun 21 11:49:21 2018 > (r335476) > @@ -10,7 +10,7 @@ arm/allwinner/a10_sramc.c standard > arm/allwinner/aw_gpio.c optionalgpio > arm/allwinner/aw_if_dwc.coptionaldwc > arm/allwinner/aw_machdep.c standard > -arm/allwinner/aw_mmc.c optionalmmc > +arm/allwinner/aw_mmc.c optionalmmc | mmccam > arm/allwinner/aw_mp.coptionalsmp > arm/allwinner/aw_nmi.c optionalintrng > arm/allwinner/aw_rsb.c optionalrsb | p2wi > > Modified: head/sys/conf/files.arm64 > == > --- head/sys/conf/files.arm64 Thu Jun 21 11:43:54 2018(r335475) > +++ head/sys/conf/files.arm64 Thu Jun 21 11:49:21 2018(r335476) > @@ -27,7 +27,7 @@ cloudabi64_vdso_blob.o optional > compat_cloudabi64 \ > # Allwinner common files > arm/allwinner/a10_ehci.c optionalehci aw_ehci fdt > arm/allwinner/aw_gpio.c optionalgpio aw_gpio fdt > -arm/allwinner/aw_mmc.c optionalmmc aw_mmc fdt > +arm/allwinner/aw_mmc.c optionalmmc aw_mmc fdt | mmccam > aw_mmc fdt > arm/allwinner/aw_nmi.c optionalaw_nmi fdt \ > compile-with "${NORMAL_C} -I$S/gnu/dts/include" > arm/allwinner/aw_rsb.c optionalaw_rsb fdt -- Emmanuel Vadot ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r335581 - head/sys/arm/allwinner/clkng

2018-06-23 Thread Emmanuel Vadot
Author: manu Date: Sat Jun 23 15:03:54 2018 New Revision: 335581 URL: https://svnweb.freebsd.org/changeset/base/335581 Log: allwinner: clkng: Correct mux width and flags The test for checking if the clock have a mux was inverted and the mask to calculate the parent index was wrong was wro

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

2018-06-23 Thread Emmanuel Vadot
Author: manu Date: Sat Jun 23 15:05:21 2018 New Revision: 335582 URL: https://svnweb.freebsd.org/changeset/base/335582 Log: aw_mmc: Fix style(9) after r335476 Modified: head/sys/arm/allwinner/aw_mmc.c Modified: head/sys/arm/allwinner/aw_mmc.c =

svn commit: r326394 - head/sys/fs/devfs

2017-11-30 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 30 12:38:42 2017 New Revision: 326394 URL: https://svnweb.freebsd.org/changeset/base/326394 Log: devfs: Avoid a malloc/free if we just need to increment the refcount MFC after:1 week Sponsored by: Gandi.net Modified: head/sys/fs/devfs/devfs_dir.c Modifie

svn commit: r326395 - head/sys/fs/devfs

2017-11-30 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 30 14:06:54 2017 New Revision: 326395 URL: https://svnweb.freebsd.org/changeset/base/326395 Log: r326394 is calling malloc with M_WAITOK under a lock, revert for now Reported by: andrew Modified: head/sys/fs/devfs/devfs_dir.c Modified: head/sys/fs/devfs/devfs

svn commit: r326528 - head/sys/dts/arm

2017-12-04 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 4 13:28:56 2017 New Revision: 326528 URL: https://svnweb.freebsd.org/changeset/base/326528 Log: dts: arm: Remove imx6 related dts Everything should work with dts from sys/gnu/dts Discussed with: ian Deleted: head/sys/dts/arm/apalis-imx6.dts head/s

Re: svn commit: r326347 - in head/sys: kern sys vm

2017-12-04 Thread Emmanuel Vadot
ype=0xa3 request=0x00 wLen=0x0004 wValue=0x wIndex=0x0001 ehci_ep_init: endpoint=0xfffffd4f10f8, addr=0, endpt=0, mode=0 (1) If you have any idea on how to debug/resolve this, Cheers, -- Emmanuel Vadot ___ svn-src-head@freebsd.org mail

svn commit: r326542 - head/sys/arm/allwinner/clkng

2017-12-04 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 4 20:45:15 2017 New Revision: 326542 URL: https://svnweb.freebsd.org/changeset/base/326542 Log: Allwinner: Add H5 compatible to aw_ccu Recent DTS (from Linux 4.14) specify a compatible "allwinner,sun50i-h5-ccu" for H5 SoC. Since we get the DTB from u-boot this

svn commit: r326579 - in head/sys: arm/allwinner arm/allwinner/clkng arm/allwinner/h3 conf

2017-12-05 Thread Emmanuel Vadot
3/h3_padconf.c == --- head/sys/arm/allwinner/h3/h3_padconf.c Tue Dec 5 21:00:31 2017 (r326578) +++ head/sys/arm/allwinner/h3/h3_padconf.c Tue Dec 5 21:21:23 2017 (r326579) @@ -1,5 +1,5 @@

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-12 Thread Emmanuel Vadot
C saying that we will move the driver into extres after adding some standard stuff common to extres framework. -- Emmanuel Vadot ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-12 Thread Emmanuel Vadot
o resolve that name space conflict? > AND this man page has existed since 1.0, So 25 years of > finger memory, your just not gona do well trying to change that. The new driver name is "syscon" not "syscons", there is no name space conflict. Again, we will move it

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

2017-12-25 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 25 16:27:36 2017 New Revision: 327175 URL: https://svnweb.freebsd.org/changeset/base/327175 Log: Allwinner: Remove unused aw_console driver. Deleted: head/sys/arm/allwinner/aw_console.c Modified: head/sys/arm/allwinner/files.allwinner Modified: head/sys/arm/allwi

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

2017-12-25 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 25 16:40:09 2017 New Revision: 327176 URL: https://svnweb.freebsd.org/changeset/base/327176 Log: allwinner: aw_usbphy is also needed for ohci Modified: head/sys/arm/allwinner/files.allwinner Modified: head/sys/arm/allwinner/files.allwinner =

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

2017-12-25 Thread Emmanuel Vadot
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/aw_rtc.4Mon Dec 25 19:42:04 2017 (r327180) @@ -0,0 +1,63 @@ +.\"- +.\" Copyright (c) 2017 Emmanuel Vadot +.\" All rights reserved. +.\" +.\"

svn commit: r327184 - in head/sys: arm/allwinner arm/allwinner/a10 dev/iicbus/twsi

2017-12-25 Thread Emmanuel Vadot
/a10_intc.c Mon Dec 25 21:07:54 2017 (r327183) +++ head/sys/arm/allwinner/a10/a10_intc.c Mon Dec 25 22:09:25 2017 (r327184) @@ -1,6 +1,6 @@ /*- * Copyright (c) 2012 Ganbold Tsagaankhuu - * Copyright (c) 2016 Emmanuel Vadot + * Copyright (c) 2016 Emmanuel Vadot

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

2017-12-25 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 25 23:01:09 2017 New Revision: 327185 URL: https://svnweb.freebsd.org/changeset/base/327185 Log: aw_rsb.4: Remove useless .Re Modified: head/share/man/man4/aw_rtc.4 Modified: head/share/man/man4/aw_rtc.4 =

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

2017-12-26 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 26 10:59:54 2017 New Revision: 327197 URL: https://svnweb.freebsd.org/changeset/base/327197 Log: aw_rtc.4: Correct some error/style found by mandoc -Tlint Modified: head/share/man/man4/aw_rtc.4 Modified: head/share/man/man4/aw_rtc.4

svn commit: r327198 - in head: share/man/man4 sys/arm/allwinner

2017-12-26 Thread Emmanuel Vadot
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/aw_mmc.4Tue Dec 26 12:06:56 2017 (r327198) @@ -0,0 +1,76 @@ +.\"- +.\" Copyright (c) 2017 Emmanuel Vadot +.\" All rights reserved. +.\" +.\" Redistribut

svn commit: r327199 - in head: share/man/man4 sys/arm/allwinner

2017-12-26 Thread Emmanuel Vadot
/share/man/man4/aw_gpio.4 Tue Dec 26 12:11:04 2017 (r327199) @@ -0,0 +1,102 @@ +.\"- +.\" Copyright (c) 2017 Emmanuel Vadot +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitt

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

2017-12-26 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 26 14:34:38 2017 New Revision: 327202 URL: https://svnweb.freebsd.org/changeset/base/327202 Log: arm: a10_gpio.c was renamed aw_gpio.c While here order files in files.allwinner Modified: head/sys/arm/allwinner/files.allwinner Modified: head/sys/arm/allwinner/f

svn commit: r327207 - head/sys/conf

2017-12-26 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 26 15:35:19 2017 New Revision: 327207 URL: https://svnweb.freebsd.org/changeset/base/327207 Log: arm64: a10_gpio.c and a10_mmc.c were renamed aw_gpio.c and aw_mmc.c Modified: head/sys/conf/files.arm64 Modified: head/sys/conf/files.arm64

svn commit: r327210 - in head/share/man/man4: . man4.arm

2017-12-26 Thread Emmanuel Vadot
@@ +.\"- +.\" Copyright (c) 2017 Emmanuel Vadot +.\" 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 sou

svn commit: r327216 - in head/share/man/man4: . man4.arm

2017-12-26 Thread Emmanuel Vadot
m r327215, head/share/man/man4/man4.arm/aw_gpio.4) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/aw_gpio.4 Tue Dec 26 16:50:49 2017 (r327216, copy of r327215, head/share/man/man4/man4.arm/aw_gpio.4) @@ -0,0 +1,1

svn commit: r327239 - head/sys/cam/ctl

2017-12-27 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 27 15:39:31 2017 New Revision: 327239 URL: https://svnweb.freebsd.org/changeset/base/327239 Log: ctl: Correct comment in ctl_worker_thread The incoming queue is handled before the RtR one. No functional change. MFC after:3 days Modified: head/sys/cam

svn commit: r327250 - in head/sys: arm/allwinner arm/altera/socfpga arm/amlogic/aml8726 arm/annapurna/alpine arm/broadcom/bcm2835 arm/freescale/imx arm/freescale/vybrid arm/lpc arm/mv arm/nvidia/te...

2017-12-27 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 27 21:39:57 2017 New Revision: 327250 URL: https://svnweb.freebsd.org/changeset/base/327250 Log: arm: Add kern/kern_clocksource.c to files.arm Instead of adding it to every files.vendor, add it to the common arch file. Modified: head/sys/arm/allwinner/files.all

svn commit: r327251 - in head/sys/arm: allwinner freescale/imx

2017-12-27 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 27 21:58:19 2017 New Revision: 327251 URL: https://svnweb.freebsd.org/changeset/base/327251 Log: arm: hdmi_if.m is already in files.arm Do not require it in files.vendor Modified: head/sys/arm/allwinner/files.allwinner head/sys/arm/freescale/imx/files.imx6 M

svn commit: r327280 - in head/sys: arm/allwinner arm/altera/socfpga arm/amlogic/aml8726 arm/annapurna/alpine arm/broadcom/bcm2835 arm/freescale/imx arm/freescale/vybrid arm/lpc arm/mv arm/nvidia/te...

2017-12-27 Thread Emmanuel Vadot
Author: manu Date: Thu Dec 28 07:31:14 2017 New Revision: 327280 URL: https://svnweb.freebsd.org/changeset/base/327280 Log: Revert r327250 as it broke the build for some armv6 kernel and all armv4/5 Reported by: ian Modified: head/sys/arm/allwinner/files.allwinner head/sys/arm/altera/

svn commit: r327392 - in head/sys: arm/altera/socfpga arm/rockchip arm/samsung/exynos dev/mmc/host

2017-12-30 Thread Emmanuel Vadot
ftc)); Copied and modified: head/sys/dev/mmc/host/dwmmc_altera.c (from r327391, head/sys/dev/mmc/host/dwmmc_hisi.c) == --- head/sys/dev/mmc/host/dwmmc_hisi.c Sat Dec 30 20:28:29 2017 (r327391, copy source) +++ h

svn commit: r327636 - head/sys/conf

2018-01-06 Thread Emmanuel Vadot
Author: manu Date: Sat Jan 6 20:32:14 2018 New Revision: 327636 URL: https://svnweb.freebsd.org/changeset/base/327636 Log: arm64: Remove old clock driver for Allwinner 64bit SoC All the clocks are now handled by the clkng driver. Tested On: Pine64-LTS (A64) Tested On: OrangePi PC2 (

Re: svn commit: r327665 - head/sys/dev/extres/syscon

2018-01-07 Thread Emmanuel Vadot
fallback to "syscon". EARLY_DRIVER_MODULE(syscon_generic, simplebus, syscon_generic_driver, -syscon_generic_devclass, 0, 0, BUS_PASS_DEFAULT + BUS_PASS_ORDER_FIRST); +syscon_generic_devclass, 0, 0, BUS_PASS_DEFAULT - 1000); MODULE_VERSION(syscon_ge

svn commit: r327922 - head/sys/dev/mmc/host

2018-01-13 Thread Emmanuel Vadot
Author: manu Date: Sat Jan 13 14:10:45 2018 New Revision: 327922 URL: https://svnweb.freebsd.org/changeset/base/327922 Log: dwmmc_hisi: Fix build when option MMCCAM is defined Modified: head/sys/dev/mmc/host/dwmmc_hisi.c Modified: head/sys/dev/mmc/host/dwmmc_hisi.c ==

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

2018-01-14 Thread Emmanuel Vadot
Author: manu Date: Sun Jan 14 22:05:29 2018 New Revision: 327979 URL: https://svnweb.freebsd.org/changeset/base/327979 Log: allwinner: mmc: Multiple improvement - Add a per compatible configuration struct - Not all SoC uses the same size for DMA transfert, add this into the conf

svn commit: r328129 - head/sys/fs/nfsserver

2018-01-18 Thread Emmanuel Vadot
Author: manu Date: Thu Jan 18 15:28:49 2018 New Revision: 328129 URL: https://svnweb.freebsd.org/changeset/base/328129 Log: nfs: Do not printf each time a lock structure is freed during module unload There can be a lot of those structures and printing a line each time we free one on modul

Re: svn commit: r328129 - head/sys/fs/nfsserver

2018-01-18 Thread Emmanuel Vadot
On Thu, 18 Jan 2018 15:28:49 + (UTC) Emmanuel Vadot wrote: > Author: manu > Date: Thu Jan 18 15:28:49 2018 > New Revision: 328129 > URL: https://svnweb.freebsd.org/changeset/base/328129 > > Log: > nfs: Do not printf each time a lock structure is freed during module

Re: svn commit: r328129 - head/sys/fs/nfsserver

2018-01-19 Thread Emmanuel Vadot
On Thu, 18 Jan 2018 22:15:16 + Rick Macklem wrote: > Emmanuel Vadot wrote: > >> Author: manu > >> Date: Thu Jan 18 15:28:49 2018 > >> New Revision: 328129 > >> URL: https://svnweb.freebsd.org/changeset/base/328129 > >> > >> Log: >

svn commit: r328198 - head/sys/dev/extres/clk

2018-01-20 Thread Emmanuel Vadot
Author: manu Date: Sat Jan 20 14:47:27 2018 New Revision: 328198 URL: https://svnweb.freebsd.org/changeset/base/328198 Log: clk: Get new parent freq after set_freq During set_freq a clknode might have reparent (using a better parent that have a higher frequency for example), before refres

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

2018-01-22 Thread Emmanuel Vadot
e child, the SPI bus, which needs our own node. */ > return (ofw_bus_get_node(bus)); > } > > + > static device_method_t bcm_pwm_methods[] = { > /* Device interface */ > DEVMETHOD(device_probe, bcm_pwm_probe), > DEVMETHOD(device_attach,

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

2018-01-22 Thread Emmanuel Vadot
one need to use overlay to enable the node. Leaving this I will predict that in the near futur you will have someone complaining that he set to load the module at boot, unplug is pwm testing gear and plug another type of HAT and that it makes funny thing. Can you please revert this part ? --

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

2018-01-22 Thread Emmanuel Vadot
On Mon, 22 Jan 2018 13:38:47 + "Poul-Henning Kamp" wrote: > > In message <20180122135905.203e19ce94510854777df...@bidouilliste.com>, > Emmanuel > Vadot writes: > > >> +#if 0 > >> + // XXX: default state is disabled in RPI3 DTB, as

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

2018-01-22 Thread Emmanuel Vadot
On Mon, 22 Jan 2018 14:07:30 + "Poul-Henning Kamp" wrote: > > In message <20180122145117.08173be547f5dd6fef296...@bidouilliste.com>, > Emmanuel > Vadot writes: > > > Using the same logic as before one could have a script starting so

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

2018-01-22 Thread Emmanuel Vadot
On Mon, 22 Jan 2018 15:52:41 + "Poul-Henning Kamp" wrote: > > In message <20180122153003.664e1613bbf70ab49c5c1...@bidouilliste.com>, > Emmanuel > Vadot writes: > > >[...] there is no way to > >know what the user will do so every n

svn commit: r328279 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
Author: manu Date: Tue Jan 23 13:03:47 2018 New Revision: 328279 URL: https://svnweb.freebsd.org/changeset/base/328279 Log: sockstat: Add -q option to suppress the header line MFC after:1 week Sponsored by: Gandi.net Modified: head/usr.bin/sockstat/sockstat.1 head/usr.bin/socksta

svn commit: r328281 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
Author: manu Date: Tue Jan 23 14:33:19 2018 New Revision: 328281 URL: https://svnweb.freebsd.org/changeset/base/328281 Log: sockstat: add break that was forgot in 328279 Reported by: garga@ MFC after:1 week X-MFC With: 328279 Sponsored by: Gandi.net Modified: head/usr.bin/so

Re: svn commit: r328279 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
On Tue, 23 Jan 2018 12:22:58 -0200 Renato Botelho wrote: > On 23/01/18 11:03, Emmanuel Vadot wrote: > > Author: manu > > Date: Tue Jan 23 13:03:47 2018 > > New Revision: 328279 > > URL: https://svnweb.freebsd.org/changeset/base/328279 > > > > Log: > &

  1   2   3   4   5   6   7   8   9   10   >