svn commit: r305149 - head/sys/arm/ti

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 19:37:10 2016 New Revision: 305149 URL: https://svnweb.freebsd.org/changeset/base/305149 Log: All the TI platforms are FDT based and it is not necessary to enumerate the hinted children (there wont be any). Spotted by: gonzo Modified:

svn commit: r305141 - head/sys/arm/ti/am335x

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 18:35:41 2016 New Revision: 305141 URL: https://svnweb.freebsd.org/changeset/base/305141 Log: Fix the build. Works better when the file with the #define is actually included... Modified: head/sys/arm/ti/am335x/am335x_prcm.c Modified:

svn commit: r305115 - head/sys/arm/ti/am335x

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 07:42:46 2016 New Revision: 305115 URL: https://svnweb.freebsd.org/changeset/base/305115 Log: Add a driver for the AM335x bandgap sensor, an on-die temperature sensor as part of the AM335x control module extension. TI says that the bandgap sensor is not very

svn commit: r305114 - head/sys/arm/ti

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 07:22:14 2016 New Revision: 305114 URL: https://svnweb.freebsd.org/changeset/base/305114 Log: Allow the use of control module extensions to cope with specific platform features. Sponsored by: Rubicon Communications, LLC (Netgate) Modified:

svn commit: r305113 - in head/sys/arm/ti: am335x cpsw

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 07:03:06 2016 New Revision: 305113 URL: https://svnweb.freebsd.org/changeset/base/305113 Log: Replace more magic numbers with the proper register names. Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/sys/arm/ti/am335x/am335x_scm.h

svn commit: r305112 - head/sys/arm/ti/am335x

2016-08-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 31 06:46:47 2016 New Revision: 305112 URL: https://svnweb.freebsd.org/changeset/base/305112 Log: Replace a magic number with the proper register name. Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/sys/arm/ti/am335x/am335x_prcm.c

svn commit: r303760 - head/sbin/pfctl

2016-08-04 Thread Luiz Otavio O Souza
Author: loos Date: Fri Aug 5 02:19:03 2016 New Revision: 303760 URL: https://svnweb.freebsd.org/changeset/base/303760 Log: Fix a regression in pf.conf while parsing the 'interval' keyword. The bug was introduced by r287009. PR: 210924 Submitted by: kp@ Sponsored by:

svn commit: r303420 - in head/sys: arm/altera/socfpga arm/ti conf

2016-07-28 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 28 05:59:56 2016 New Revision: 303420 URL: https://svnweb.freebsd.org/changeset/base/303420 Log: Enable the build of micphy as part of generic miibus build, but only for FDT enabled systems. Sponsored by: Rubicon Communications (Netgate) Modified:

svn commit: r303253 - head/sys/arm/ti

2016-07-23 Thread Luiz Otavio O Souza
Author: loos Date: Sun Jul 24 01:31:41 2016 New Revision: 303253 URL: https://svnweb.freebsd.org/changeset/base/303253 Log: Allow the use of micphy on am335x devices. The Micrel PHYs reads the optional external delays from DTB. Tested and used by uBMC and uFW. Sponsored by:

svn commit: r303230 - head/sys/dev/mii

2016-07-23 Thread Luiz Otavio O Souza
Author: loos Date: Sat Jul 23 18:16:40 2016 New Revision: 303230 URL: https://svnweb.freebsd.org/changeset/base/303230 Log: Add support for the Microchip/Micrel KSZ9031 Gigabit Ethernet PHY. Tested on uBMC and uFW. Sponsored by: Rubicon Communications (Netgate) Modified:

svn commit: r302988 - head/sys/arm/ti/am335x

2016-07-18 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jul 18 06:35:40 2016 New Revision: 302988 URL: https://svnweb.freebsd.org/changeset/base/302988 Log: Fix a random memory overwrite at boot time, simplebus_init() and simplebus_add_device() expect a simplebus_softc structure associated with the device. Add the

svn commit: r302394 - head/sys/arm/ti/cpsw

2016-07-07 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 7 20:01:03 2016 New Revision: 302394 URL: https://svnweb.freebsd.org/changeset/base/302394 Log: Fix a lockup in tx path for cspw. Sometimes the software loses the race when appending more descriptors to the tx ring and the tx queue stops. This commit

Re: svn commit: r301998 - in head: sbin/pfctl share/man/man5 sys/net sys/netpfil/pf

2016-06-30 Thread Luiz Otavio O Souza
On Fri, Jun 17, 2016 at 3:21 PM, Kristof Provost wrote: > Author: kp > Date: Fri Jun 17 18:21:55 2016 > New Revision: 301998 > URL: https://svnweb.freebsd.org/changeset/base/301998 > > Log: > pf: Filter on and set vlan PCP values > > Adopt the OpenBSD syntax for setting and filtering on VLAN

svn commit: r300769 - head/sys/arm/ti

2016-05-26 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 26 18:52:26 2016 New Revision: 300769 URL: https://svnweb.freebsd.org/changeset/base/300769 Log: Only do the touch screen setup when the 'ti,wires' property is present. While here fix a typo in a debug message. Modified: head/sys/arm/ti/ti_adc.c Modified:

svn commit: r300550 - in head/sys: conf dev/iicbus dev/ofw

2016-05-23 Thread Luiz Otavio O Souza
Author: loos Date: Tue May 24 01:33:49 2016 New Revision: 300550 URL: https://svnweb.freebsd.org/changeset/base/300550 Log: Move the OFW iicbus code to dev/iicbus to stop polluting dev/ofw with unrelated code. Discussed with: nwhitehorn (a long time ago) Added:

svn commit: r300421 - in head/sys: arm/allwinner arm/broadcom/bcm2835 arm/freescale/imx arm/mv dev/acpi_support dev/acpica dev/amdtemp dev/coretemp dev/iicbus powerpc/powermac

2016-05-22 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 13:58:32 2016 New Revision: 300421 URL: https://svnweb.freebsd.org/changeset/base/300421 Log: Fix the deciKelvin to Celsius conversion in kernel. After r285994, sysctl(8) was fixed to use 273.15 instead of 273.20 as 0C reference and as result, the

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

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 04:09:05 2016 New Revision: 300394 URL: https://svnweb.freebsd.org/changeset/base/300394 Log: Remove a couple of extra blank lines. Modified: head/sys/dev/iicbus/iicbb_if.m head/sys/dev/iicbus/iiconf.c Modified: head/sys/dev/iicbus/iicbb_if.m

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

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 04:02:34 2016 New Revision: 300393 URL: https://svnweb.freebsd.org/changeset/base/300393 Log: Sort and remove a couple of unnecessary headers. Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c

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

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:55:57 2016 New Revision: 300392 URL: https://svnweb.freebsd.org/changeset/base/300392 Log: Get rid of two consumers of gpiobus acquire/release. The GPIO hardware should not be owned by a single device, this defeats any chance of use of the GPIO controller

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

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:34:18 2016 New Revision: 300391 URL: https://svnweb.freebsd.org/changeset/base/300391 Log: Use a better prefix for defines, return BUS_PROBE_DEFAULT for probe routine. Refuse to attach if the number of given pins is not enough for our needs. Modified:

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

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:12:49 2016 New Revision: 300390 URL: https://svnweb.freebsd.org/changeset/base/300390 Log: Fix probe routine to return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC. While here fix a few style(9) issues. Modified: head/sys/dev/gpio/gpioled.c Modified:

Re: svn commit: r299563 - head/sys/dev/gpio

2016-05-12 Thread Luiz Otavio O Souza
On Thu, May 12, 2016 at 5:40 PM, Ian Lepore wrote: > On Thu, 2016-05-12 at 20:12 +, Oleksandr Tymoshenko wrote: >> Author: gonzo >> Date: Thu May 12 20:12:45 2016 >> New Revision: 299563 >> URL: https://svnweb.freebsd.org/changeset/base/299563 >> >> Log: >> Add gpiobus_release_pin function

svn commit: r298598 - head/sys/netinet6

2016-04-25 Thread Luiz Otavio O Souza
Author: loos Date: Mon Apr 25 23:12:39 2016 New Revision: 298598 URL: https://svnweb.freebsd.org/changeset/base/298598 Log: Fixes the comment to reflect the code. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/netinet6/nd6.c Modified: head/sys/netinet6/nd6.c

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Luiz Otavio O Souza
On Tue, Apr 19, 2016 at 1:40 PM, Adrian Chadd wrote: > Hm, why'd you do this? did you get it reviewed first? > > I'm about to write a kernel bitbang SPI driver that supports arbitrary > GPIOs, and I was thinking of fleshing this out somewhat. Hi Adrian, ray@ wrote one for zrouter, it needs some

svn commit: r298272 - head/lib/libgpio

2016-04-19 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 19 15:18:31 2016 New Revision: 298272 URL: https://svnweb.freebsd.org/changeset/base/298272 Log: Use GPIOTOGGLE to toggle the pin state instead of read, modify and write. Modified: head/lib/libgpio/gpio.c Modified: head/lib/libgpio/gpio.c

svn commit: r298270 - head/sys/dev/amdtemp

2016-04-19 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 19 15:07:04 2016 New Revision: 298270 URL: https://svnweb.freebsd.org/changeset/base/298270 Log: Add PCI ID for family 10h model 30h to amdtemp(4). This adds support to CPU found in PC Engines APU2 series. MFC after:3 weeks Sponsored by: Rubicon

Re: svn commit: r298131 - head/sys/conf

2016-04-18 Thread Luiz Otavio O Souza
On Mon, Apr 18, 2016 at 3:19 AM, hiren panchasara wrote: > On 04/17/16 at 12:20P, Alexander Leidinger wrote: >> >> Quoting Luiz Otavio O Souza (from Sat, 16 Apr 2016 >> 20:54:55 + (UTC)): >> >> > Author: loos >> > Date: Sat Apr 16 20:54:55 2

svn commit: r298131 - head/sys/conf

2016-04-16 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 16 20:54:55 2016 New Revision: 298131 URL: https://svnweb.freebsd.org/changeset/base/298131 Log: Add Codel to NOTES. X-MFC with: r287009 Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES

svn commit: r298088 - head/sys/conf

2016-04-15 Thread Luiz Otavio O Souza
Author: loos Date: Fri Apr 15 21:31:40 2016 New Revision: 298088 URL: https://svnweb.freebsd.org/changeset/base/298088 Log: Replace with . No functional change. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES

svn commit: r297985 - head/sys/netinet

2016-04-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 14 18:57:30 2016 New Revision: 297985 URL: https://svnweb.freebsd.org/changeset/base/297985 Log: Do not overwrite the dchg variable. It does not cause any real issues because the variable is overwritten only when the packet is forwarded (and the variable is not

svn commit: r297984 - head/sbin/pfctl

2016-04-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 14 18:37:40 2016 New Revision: 297984 URL: https://svnweb.freebsd.org/changeset/base/297984 Log: Make pfctl(8) more flexible when parsing bandwidth values. This is the current behaviour in OpenBSD and a similar patch exist in pfSense too. Obtained from:

svn commit: r297426 - in head/sys: arm/conf boot/fdt/dts/arm

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:32:14 2016 New Revision: 297426 URL: https://svnweb.freebsd.org/changeset/base/297426 Log: Enable SPI1 on Beaglebone Black. SPI1 was chosen because SPI0 shares the gpio pins with I2C1. Sponsored by: Rubicon Communications (Netgate) Modified:

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

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:18:49 2016 New Revision: 297425 URL: https://svnweb.freebsd.org/changeset/base/297425 Log: Use the AM33XX_IOPAD() MACRO which is easier to read (uses the same offset of TRM). While here remove i2c2_pins, it is already defined in am335x-bone-common.dtsi.

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

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:00:33 2016 New Revision: 297423 URL: https://svnweb.freebsd.org/changeset/base/297423 Log: Add basic FDT support for the mx25l SPI flash. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/dev/flash/mx25l.c Modified:

svn commit: r297419 - head/sys/arm/ti

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 16:26:00 2016 New Revision: 297419 URL: https://svnweb.freebsd.org/changeset/base/297419 Log: Bump up the read and write timeouts. The old value was too small for low speed transfers. Sponsored by: Rubicon Communications (Netgate) Modified:

svn commit: r297395 - in head/sys/arm/ti: . am335x

2016-03-29 Thread Luiz Otavio O Souza
Author: loos Date: Tue Mar 29 19:11:04 2016 New Revision: 297395 URL: https://svnweb.freebsd.org/changeset/base/297395 Log: Add the SPI driver for am335x. This driver works in PIO mode for now, interrupts are available only when FIFO is enabled. The FIFO cannot be used with arbitrary

svn commit: r297134 - head/sys/arm/ti

2016-03-20 Thread Luiz Otavio O Souza
Author: loos Date: Mon Mar 21 03:39:38 2016 New Revision: 297134 URL: https://svnweb.freebsd.org/changeset/base/297134 Log: Use the internal references for ADC, this fixes the ADC readings on uBMC. Tested on BBB and uBMC. Sponsored by: Rubicon Communications (Netgate) Modified:

svn commit: r297043 - head/sys/arm/ti/cpsw

2016-03-20 Thread Luiz Otavio O Souza
Author: loos Date: Fri Mar 18 20:24:31 2016 New Revision: 297043 URL: https://svnweb.freebsd.org/changeset/base/297043 Log: Count the input and output packets. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/arm/ti/cpsw/if_cpsw.c head/sys/arm/ti/cpsw/if_cpswvar.h

svn commit: r297041 - head/sys/arm/ti/cpsw

2016-03-20 Thread Luiz Otavio O Souza
Author: loos Date: Fri Mar 18 20:04:34 2016 New Revision: 297041 URL: https://svnweb.freebsd.org/changeset/base/297041 Log: Set the destination port in all TX segments. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/arm/ti/cpsw/if_cpsw.c Modified:

svn commit: r297042 - head/sys/arm/ti/cpsw

2016-03-19 Thread Luiz Otavio O Souza
Author: loos Date: Fri Mar 18 20:09:54 2016 New Revision: 297042 URL: https://svnweb.freebsd.org/changeset/base/297042 Log: Increase the arbitrary limit of TX segments. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/arm/ti/cpsw/if_cpsw.c Modified:

svn commit: r296980 - head/sys/arm/ti/cpsw

2016-03-18 Thread Luiz Otavio O Souza
Author: loos Date: Thu Mar 17 06:23:48 2016 New Revision: 296980 URL: https://svnweb.freebsd.org/changeset/base/296980 Log: Fixes a few style(9) issues, remove extra blank lines. No functional changes. Sponsored by: Rubicon Comunications (Netgate) Modified:

svn commit: r296993 - head/sys/arm/ti/cpsw

2016-03-18 Thread Luiz Otavio O Souza
Author: loos Date: Thu Mar 17 19:35:08 2016 New Revision: 296993 URL: https://svnweb.freebsd.org/changeset/base/296993 Log: Add support for dual emac mode. In dual emac mode, the CPSW subsystem provides two independent ethernets. This is implemented (as recommended by TI's TRM) with a

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

2015-09-27 Thread Luiz Otavio O Souza
Author: loos Date: Sun Sep 27 18:21:22 2015 New Revision: 288311 URL: https://svnweb.freebsd.org/changeset/base/288311 Log: Set the #address-cells and #size-cells for the I2C controllers in RPi2. This allows the use of I2C addresses in 'reg' property. Modified:

svn commit: r288022 - head/sys/dev/dwc

2015-09-20 Thread Luiz Otavio O Souza
Author: loos Date: Sun Sep 20 13:15:09 2015 New Revision: 288022 URL: https://svnweb.freebsd.org/changeset/base/288022 Log: Remove unnecessary includes and, while here, sort them. Modified: head/sys/dev/dwc/if_dwc.c Modified: head/sys/dev/dwc/if_dwc.c

svn commit: r288023 - in head/sys: arm/altera/socfpga arm/amlogic/aml8726 conf dev/dwc

2015-09-20 Thread Luiz Otavio O Souza
c driver_t dwc_driver = { +driver_t dwc_driver = { "dwc", dwc_methods, sizeof(struct dwc_softc), Added: head/sys/dev/dwc/if_dwc_if.m ========== --- /dev/null 00:00:00 1970 (empty, because file i

svn commit: r288024 - head/sys/dev/dwc

2015-09-20 Thread Luiz Otavio O Souza
Author: loos Date: Sun Sep 20 14:28:06 2015 New Revision: 288024 URL: https://svnweb.freebsd.org/changeset/base/288024 Log: Fix the build by adding the alternate descriptors and MII clock defines. This obviously should be in the last commit. Modified: head/sys/dev/dwc/if_dwc.h

svn commit: r288050 - head/sys/arm/allwinner/a20

2015-09-20 Thread Luiz Otavio O Souza
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/allwinner/a20/a20_if_dwc.c Mon Sep 21 01:51:37 2015 (r288050) @@ -0,0 +1,107 @@ +/*- + * Copyright (c) 2015 Luiz Otavio O Souza <l...@freebsd.org> + * All

svn commit: r288056 - in head/sys: arm/conf boot/fdt/dts/arm

2015-09-20 Thread Luiz Otavio O Souza
Author: loos Date: Mon Sep 21 03:17:41 2015 New Revision: 288056 URL: https://svnweb.freebsd.org/changeset/base/288056 Log: Enable if_dwc for Allwinner A20 based boards. This enables the gigabit ethernet on cubieboard2 and banana pi. A special thanks to Netgate who gently provided me

svn commit: r287716 - head/sys/dev/dwc

2015-09-12 Thread Luiz Otavio O Souza
Author: loos Date: Sat Sep 12 16:46:41 2015 New Revision: 287716 URL: https://svnweb.freebsd.org/changeset/base/287716 Log: Do not call mii_mediachg() from NIC interrupt handler. This fixes the link instability on banana pi (A20). Suggested by: yongari Modified:

svn commit: r287542 - head/sys/dev/rccgpio

2015-09-07 Thread Luiz Otavio O Souza
Author: loos Date: Mon Sep 7 21:59:11 2015 New Revision: 287542 URL: https://svnweb.freebsd.org/changeset/base/287542 Log: Fix off-by-one bugs. While here, only set the GPIO pin state for output pins. Pointy hat to:loos Sponsored by: Rubicon Communications (Netgate)

Re: svn commit: r287542 - head/sys/dev/rccgpio

2015-09-07 Thread Luiz Otavio O Souza
On Mon, Sep 7, 2015 at 7:18 PM, Ian Lepore wrote: > On Mon, 2015-09-07 at 21:59 +0000, Luiz Otavio O Souza wrote: >> Author: loos >> Date: Mon Sep 7 21:59:11 2015 >> New Revision: 287542 >> URL: https://svnweb.freebsd.org/changeset/base/287542 >> >> Log:

svn commit: r287306 - head/sys/arm/conf

2015-08-30 Thread Luiz Otavio O Souza
Author: loos Date: Sun Aug 30 15:38:41 2015 New Revision: 287306 URL: https://svnweb.freebsd.org/changeset/base/287306 Log: In preparation to support other A20 based boards, rename the CUBIEBOARD2 kernel configuration to A20. There are other boards (namely the banana pi) that use exactly

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

2015-08-30 Thread Luiz Otavio O Souza
Author: loos Date: Sun Aug 30 16:10:12 2015 New Revision: 287307 URL: https://svnweb.freebsd.org/changeset/base/287307 Log: Reduce the difference to vendor DTS by using the vendor compat strings (at some point we have to use the complete vendor DTS files, but we're not there yet).

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

2015-08-30 Thread Luiz Otavio O Souza
Author: loos Date: Sun Aug 30 22:38:06 2015 New Revision: 287315 URL: https://svnweb.freebsd.org/changeset/base/287315 Log: The vendor's DTS for Allwinner A20 uses a different way to map the gpio pins, they specify the bank and the pin in two separated cells. This allow the use of

svn commit: r287316 - in head/sys: arm/conf boot/fdt/dts/arm

2015-08-30 Thread Luiz Otavio O Souza
Author: loos Date: Sun Aug 30 23:20:00 2015 New Revision: 287316 URL: https://svnweb.freebsd.org/changeset/base/287316 Log: Add the LED definitions from vendor's DTS. Add gpioled support to A20 kernel. While here rename the gpio phandle to match the one used in the vendor's DTS.

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

2015-08-24 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 24 21:41:05 2015 New Revision: 287119 URL: https://svnweb.freebsd.org/changeset/base/287119 Log: Reapply r196551 which was accidentally reverted by r223637 (update to OpenBSD pf 4.5). Fix argument ordering to memcpy as well as the size of the copy in the

svn commit: r287120 - head/sys/net/altq

2015-08-24 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 24 23:40:36 2015 New Revision: 287120 URL: https://svnweb.freebsd.org/changeset/base/287120 Log: Fix the spelling of eri's name. Pointy hat to:loos MFC with: r287009 Modified: head/sys/net/altq/altq_codel.c head/sys/net/altq/altq_codel.h

Re: svn commit: r287009 - in head: sbin/pfctl share/man/man4 sys/conf sys/net/altq sys/netpfil/pf

2015-08-22 Thread Luiz Otavio O Souza
On Sat, Aug 22, 2015 at 6:18 AM, Ermal Luçi wrote: On Sat, Aug 22, 2015 at 12:02 AM, Luiz Otavio O Souza wrote: Author: loos Date: Fri Aug 21 22:02:22 2015 New Revision: 287009 URL: https://svnweb.freebsd.org/changeset/base/287009 Log: Add ALTQ(9) support for the CoDel algorithm

svn commit: r287009 - in head: sbin/pfctl share/man/man4 sys/conf sys/net/altq sys/netpfil/pf

2015-08-21 Thread Luiz Otavio O Souza
Author: loos Date: Fri Aug 21 22:02:22 2015 New Revision: 287009 URL: https://svnweb.freebsd.org/changeset/base/287009 Log: Add ALTQ(9) support for the CoDel algorithm. CoDel is a parameterless queue discipline that handles variable bandwidth and RTT. It can be used as the single

svn commit: r286908 - in head: share/man/man4 sys/conf sys/dev/rccgpio sys/modules/rccgpio

2015-08-18 Thread Luiz Otavio O Souza
. +.Sh AUTHORS +The +.Nm +driver was written by +.An Luiz Otavio O Souza Aq Mt l...@freebsd.org . Modified: head/sys/conf/files == --- head/sys/conf/files Tue Aug 18 20:42:08 2015(r286907) +++ head/sys/conf/files Tue

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

2015-08-18 Thread Luiz Otavio O Souza
Author: loos Date: Tue Aug 18 21:37:14 2015 New Revision: 286909 URL: https://svnweb.freebsd.org/changeset/base/286909 Log: Fix the use of plural in two cases that I missed on r285784. This should cause no functional change. Modified: head/sys/dev/gpio/gpiobus.c Modified:

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

2015-08-17 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 17 23:03:54 2015 New Revision: 286862 URL: https://svnweb.freebsd.org/changeset/base/286862 Log: Fix the copy of addresses passed from userland in table replace command. The size2 is the maximum userland buffer size (used when the addresses are copied back to

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

2015-08-17 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 17 16:51:37 2015 New Revision: 286845 URL: https://svnweb.freebsd.org/changeset/base/286845 Log: Fix a few bugs when gpiobus is detaching: - Detach the gpiobus and the gpioc devices from the GPIO controller. - Fix the leak of gpiobus IRQ rman(9) region

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

2015-08-17 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 17 17:09:57 2015 New Revision: 286847 URL: https://svnweb.freebsd.org/changeset/base/286847 Log: gpioled(4) depends on gpiobus. This fixes the loading of gpioled as a module. Sponsored by: Rubicon Communications (Netgate) Modified:

svn commit: r286846 - head/sys/modules/gpio/gpiobus

2015-08-17 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 17 17:01:26 2015 New Revision: 286846 URL: https://svnweb.freebsd.org/changeset/base/286846 Log: Fix the build of gpiobus as a module. Add the missing newbus interfaces and gpioc, which is part of basic gpiobus framework. Sponsored by: Rubicon

svn commit: r286260 - head/sys/net

2015-08-03 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 3 22:14:45 2015 New Revision: 286260 URL: https://svnweb.freebsd.org/changeset/base/286260 Log: Remove the mtx_sleep() from the kqueue f_event filter. The filter is called from the network hot path and must not sleep. The filter runs with the descriptor

Re: svn commit: r286142 - head/sys/net

2015-08-03 Thread Luiz Otavio O Souza
On Sat, Aug 1, 2015 at 6:02 PM, Guy Helmer wrote: On Aug 1, 2015, at 4:50 AM, Ed Schouten wrote: Hi Luiz, 2015-07-31 23:43 GMT+02:00 Luiz Otavio O Souza l...@freebsd.org: - while (d-bd_hbuf_in_use) - mtx_sleep(d-bd_hbuf_in_use, d-bd_lock

svn commit: r286243 - head/sys/net

2015-08-03 Thread Luiz Otavio O Souza
Author: loos Date: Mon Aug 3 18:22:31 2015 New Revision: 286243 URL: https://svnweb.freebsd.org/changeset/base/286243 Log: Add a KASSERT() to make sure we wont rotate the buffers twice (rotate the buffers while the hold buffer is in use). Suggested by: ed, ghelmer MFC with:

svn commit: r286139 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 20:02:12 2015 New Revision: 286139 URL: https://svnweb.freebsd.org/changeset/base/286139 Log: Do not allocate the buffers at opening of the descriptor, because once the buffer is allocated we are committed to a particular buffer method (BPF_BUFMODE_BUFFER in

svn commit: r286140 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 20:25:54 2015 New Revision: 286140 URL: https://svnweb.freebsd.org/changeset/base/286140 Log: Remove the sleep from the buffer allocation routine. The buffer must be allocated (or even changed) before the interface is set and thus, there is no need to verify

svn commit: r286142 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 21:43:27 2015 New Revision: 286142 URL: https://svnweb.freebsd.org/changeset/base/286142 Log: Remove two unnecessary sleeps from the hot path in bpf(4). The first one never triggers because bpf_canfreebuf() can only be true for zero-copy buffers and

svn commit: r286057 - head/sys/net

2015-07-29 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 30 02:09:03 2015 New Revision: 286057 URL: https://svnweb.freebsd.org/changeset/base/286057 Log: Follow r256586 and rename the kernel version of the Free() macro to R_Free(). This matches the other macros and reduces the chances to clash with other headers.

Re: svn commit: r285766 - in head/sys: conf dev/vt dev/vt/logo

2015-07-21 Thread Luiz Otavio O Souza
On Tue, Jul 21, 2015 at 5:33 PM, Conrad E. Meyer wrote: Author: cem Date: Tue Jul 21 20:33:36 2015 New Revision: 285766 URL: https://svnweb.freebsd.org/changeset/base/285766 Log: vt: Draw logos per CPU core This feature is inspired by another Unix-alike OS commonly found on

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

2015-07-21 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jul 22 04:18:33 2015 New Revision: 285784 URL: https://svnweb.freebsd.org/changeset/base/285784 Log: Cosmetic change. When printing the child's mapped pins, use the plural only when necessary. Reported by: Daniel O'Connor dar...@dons.net.au,

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

2015-07-13 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jul 13 18:19:26 2015 New Revision: 285484 URL: https://svnweb.freebsd.org/changeset/base/285484 Log: Bring a few simplifications to a10_gpio: o Return the real hardware state in gpio_pin_getflags() instead of keep the last state in an internal table. Now the

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

2015-07-11 Thread Luiz Otavio O Souza
Author: loos Date: Sat Jul 11 21:09:43 2015 New Revision: 285407 URL: https://svnweb.freebsd.org/changeset/base/285407 Log: Return the FDT node of the GPIO controller to gpiobus. It is used by the children of gpiobus. Modified: head/sys/arm/allwinner/a10_gpio.c Modified:

svn commit: r285250 - in head/sys: boot/fdt/dts/arm modules/dtb/allwinner

2015-07-07 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jul 7 19:01:54 2015 New Revision: 285250 URL: https://svnweb.freebsd.org/changeset/base/285250 Log: Add the Banana Pi DTS. The Banana Pi support is in progress and this is intended to help the early adopters. Added: head/sys/boot/fdt/dts/arm/bananapi.dts

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

2015-07-07 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jul 7 18:32:23 2015 New Revision: 285245 URL: https://svnweb.freebsd.org/changeset/base/285245 Log: Add the GMAC entries to sun7i (A20) DTS. While here make EMAC disabled unless explicitly enabled. Modified: head/sys/boot/fdt/dts/arm/sun7i-a20.dtsi Modified:

svn commit: r285209 - head/sys/dev/dwc

2015-07-06 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jul 6 16:45:48 2015 New Revision: 285209 URL: https://svnweb.freebsd.org/changeset/base/285209 Log: Use uint32_t consistently to store registers values. Always use unsigned numbers to avoid undefined behavior on (1 31). Remove unused variables and some stray

svn commit: r285211 - head/sys/dev/dwc

2015-07-06 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jul 6 17:13:17 2015 New Revision: 285211 URL: https://svnweb.freebsd.org/changeset/base/285211 Log: When initializing the (unused) TX descriptors it is not necessary set the chain bit. Obtained from:NetBSD Modified: head/sys/dev/dwc/if_dwc.c Modified:

svn commit: r285192 - head/sys/dev/dwc

2015-07-05 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jul 6 03:06:13 2015 New Revision: 285192 URL: https://svnweb.freebsd.org/changeset/base/285192 Log: Fix the sent packets statistics for if_dwc. Modified: head/sys/dev/dwc/if_dwc.c Modified: head/sys/dev/dwc/if_dwc.c

svn commit: r285138 - head/sys/boot/arm/uboot

2015-07-04 Thread Luiz Otavio O Souza
Author: loos Date: Sat Jul 4 16:19:38 2015 New Revision: 285138 URL: https://svnweb.freebsd.org/changeset/base/285138 Log: Install loader.rc with ARM u-boot loader (ubldr). loader.rc is the responsible to read and process loader.conf variables. This fix the issue of loader.conf being

svn commit: r285090 - in head/sys: arm/allwinner arm/conf boot/fdt/dts/arm dev/ahci

2015-07-03 Thread Luiz Otavio O Souza
Otavio O Souza l...@freebsd.org + * 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 source code must retain the above copyright + *notice

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

2015-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 3 17:09:27 2015 New Revision: 285103 URL: https://svnweb.freebsd.org/changeset/base/285103 Log: Remove duplicate and unnecessary includes. While here remove an unused and wrong define. Modified: head/sys/arm/allwinner/a10_clk.c

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

2015-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 3 17:54:41 2015 New Revision: 285105 URL: https://svnweb.freebsd.org/changeset/base/285105 Log: Rename a10_emac_gpio_config() to a10_gpio_ethernet_activate() to make the change to GMAC easier on A20 SoCs. On A10 only the EMAC controller is available (fast

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

2015-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 3 18:39:25 2015 New Revision: 285106 URL: https://svnweb.freebsd.org/changeset/base/285106 Log: Add the routines to activate the GMAC clock and setup the GMAC mode. Tested on Cubieboard 2 and Banana pi. Modified: head/sys/arm/allwinner/a10_clk.c

Re: svn commit: r285012 - head/lib/libgpio

2015-07-01 Thread Luiz Otavio O Souza
On Wed, Jul 1, 2015 at 1:50 PM, Christian Brueffer wrote: Author: brueffer Date: Wed Jul 1 16:50:01 2015 New Revision: 285012 URL: https://svnweb.freebsd.org/changeset/base/285012 Log: Bump .Dd for the example code update. Submitted by: loos Thank you Chris! Luiz Modified:

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

2015-07-01 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jul 1 23:27:01 2015 New Revision: 285017 URL: https://svnweb.freebsd.org/changeset/base/285017 Log: Add DMA support for Allwinner MMC controller. DMA handles all data transfers up to 128K or 16 segments and fallback to pio mode when DMA requirements are not met.

Re: svn commit: r284614 - head/sys/boot/uboot/lib

2015-06-22 Thread Luiz Otavio O Souza
On Sun, Jun 21, 2015 at 12:32 AM, Maxim Sobolev wrote: Kewl, have you bothered to report it back to u-boot guys by any chance? -Max Well, I started to read the patches submission requirements and gave up (shame on me). I'll try once more with a little bit more of patience, but in any case,

Re: svn commit: r284614 - head/sys/boot/uboot/lib

2015-06-20 Thread Luiz Otavio O Souza
On Sat, Jun 20, 2015 at 4:42 PM, Maxim Sobolev wrote: No, what I am saying is that it sets fdtaddr=4096 for the value of 0x1000 and that drives btloader nuts. Dumb, yeah! On the positive note got redpitaya fully working (except lack of the I2C support and actual fpga support being unknown).

svn commit: r283948 - head/sys/dev/dwc

2015-06-03 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jun 3 14:48:03 2015 New Revision: 283948 URL: https://svnweb.freebsd.org/changeset/base/283948 Log: Fix the OACTIVE handling on if_dwc. Previously the OACTIVE flag was being set when the tx descriptors are fully allocated but it wasn't unset anywhere. As soon

Re: svn commit: r283948 - head/sys/dev/dwc

2015-06-03 Thread Luiz Otavio O Souza
On Wed, Jun 3, 2015 at 11:52 AM, Marcelo Araujo wrote: Oi, fp = sc-ifp; Deveria ser: ifp = sc-ifp; []s Yeah, I caught the conflict when merging back to my work sources. Obrigado Marcelo. Luiz ___ svn-src-head@freebsd.org mailing list

svn commit: r283550 - head/sys/arm/broadcom/bcm2835

2015-05-25 Thread Luiz Otavio O Souza
Author: loos Date: Tue May 26 01:30:09 2015 New Revision: 283550 URL: https://svnweb.freebsd.org/changeset/base/283550 Log: Remove unused mutex and softc variables. Modified: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c

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

2015-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 21 20:09:36 2015 New Revision: 283263 URL: https://svnweb.freebsd.org/changeset/base/283263 Log: Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing this value at runtime. The SD card specification says that a block write or a block erase

svn commit: r283253 - in head/sys: arm/allwinner arm/conf boot/fdt/dts/arm dev/mmc

2015-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 21 17:39:42 2015 New Revision: 283253 URL: https://svnweb.freebsd.org/changeset/base/283253 Log: Add the MMC/SD driver for Allwinner SoCs. This is based on the patch sent by Alexander Fedorov with the following fixes/improvements: - Better error handling;

svn commit: r283071 - head/usr.bin/netstat

2015-05-18 Thread Luiz Otavio O Souza
Author: loos Date: Mon May 18 18:03:47 2015 New Revision: 283071 URL: https://svnweb.freebsd.org/changeset/base/283071 Log: Properly align the header and the data columns for netstat -r with and without the -W flag. Modified: head/usr.bin/netstat/route.c Modified:

svn commit: r283072 - head/sys/arm/conf

2015-05-18 Thread Luiz Otavio O Souza
Author: loos Date: Mon May 18 18:25:38 2015 New Revision: 283072 URL: https://svnweb.freebsd.org/changeset/base/283072 Log: Remove unnecessary devices from allwinner kernels. Modified: head/sys/arm/conf/CUBIEBOARD head/sys/arm/conf/CUBIEBOARD2 Modified: head/sys/arm/conf/CUBIEBOARD

svn commit: r283028 - head/usr.bin/netstat

2015-05-17 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 17 15:12:55 2015 New Revision: 283028 URL: https://svnweb.freebsd.org/changeset/base/283028 Log: Adjust the string format to match the actual number of arguments. This fix a segmentation fault on ARM when netstat -r is used together with -W. This issue was

svn commit: r282828 - head/sys/arm/broadcom/bcm2835

2015-05-12 Thread Luiz Otavio O Souza
Author: loos Date: Wed May 13 01:48:47 2015 New Revision: 282828 URL: https://svnweb.freebsd.org/changeset/base/282828 Log: Fix the SMP initialization on RPi 2 (BCM2836). Invalidate the CPU cache before start the others CPUs. Submitted by: Michal Meloun mel...@miracle.cz Modified:

svn commit: r282827 - in head/sys: arm/ti/am335x boot/fdt/dts/arm

2015-05-12 Thread Luiz Otavio O Souza
Author: loos Date: Wed May 13 01:10:28 2015 New Revision: 282827 URL: https://svnweb.freebsd.org/changeset/base/282827 Log: Add support for the power button on BeagleBone Black. Shutdown and turn off the board when the power button is pressed. Submitted by: Michal Meloun

<    1   2   3   4   5   >