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

2018-01-22 Thread Poul-Henning Kamp
you or the "DT guys" can say, can convince me that we should reverse that course. I don't care how it works, but enabling and using PWM on an out-of-the-box RPi should not require a reboot. Over&Out -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org

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

2018-01-22 Thread Poul-Henning Kamp
without calling ->attach()) That way you would know you loaded the right driver, rather than have to guess. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malic

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

2018-01-22 Thread Poul-Henning Kamp
In message , Warner Losh writes: >> That also removes a couple of boilerplate lines from all FDT device >> drivers. > >That would be useful, but the status bit is so much more than on/off. The boilerplate code in all the ->probe() functions don't seem to th

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

2018-01-22 Thread Poul-Henning Kamp
uded me, apart from some people pointing out that "somebody should write XYZ" for severely underdocumented values of XYZ. And now I *really* think this thread should end... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 Free

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

2018-01-22 Thread Poul-Henning Kamp
ld avoid that boilerplate in all the drivers, if it was done one level up with a consistent device_printf() and not calling attach() at all. What I don't know is how noisy that would be in practice ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RF

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

2018-01-23 Thread Poul-Henning Kamp
In message , Warner Losh writes: >--089e08222b4ce7f8a4056372a0d5 >I'm actually thinking the right thing is to remove the checks everywhere. > >We then create a couple of new simplebus methods: +1 -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.

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

2018-01-27 Thread Poul-Henning Kamp
then, you are wasting everybodys time pointing accusingly into your book of unwritten rules. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice wh

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

2018-01-27 Thread Poul-Henning Kamp
ot on every other armv7/arm64 platform, just not there incrementally at >runtime. Some work would be needed to make that happen, but I think I have a >reasonable design that I've started to socialize... You're welcome to join in >in making it happen, if you like With the l

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

2018-01-28 Thread Poul-Henning Kamp
together to extend arm support toward what >you want to do. Empathetically NO! (But feel free to ask me again, if my driver ever in any way prevents you from committing your changes to the RPi platform.) Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.

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

2018-01-28 Thread Poul-Henning Kamp
gt; >Yea, otherwise we could kill armv6 completely. But it is only the original RPi is armv6, right ? I think we would be OK as long as we support RPi2 and RPi3. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | B

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

2018-01-29 Thread Poul-Henning Kamp
t", and there are indeed hardware out there where that is required for various reason. But trival (and popular) cases "should just work". >It's a tricky ball of wax that we've neglected for too long. Indeed, and thanks for doing so. -- Poul-Henning Kamp | UNI

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

2018-01-29 Thread Poul-Henning Kamp
best practices and guidelines are unwriteen, and >they're not always implemented on older platforms. And it's the >problem from which this situation has risen. With the added cherry on top that RPi is a horrible platform which nobody loves - except thousands of teachers, students, hacke

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

2018-01-29 Thread Poul-Henning Kamp
ck some shrewed guesses and finally in-lab measurement of what actually transpired when I frobbed registers. But more importantly, I have no idea what servies *a* clock manager offers, through which apis and to what clients and at what level of abstraction and flexibility ? -- Poul-Henning Kamp | UN

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

2018-01-30 Thread Poul-Henning Kamp
oo weird to >be reference. TI's AM335x or iMX would be a good candidate I think >They are complex enough to illustrate all the concepts yet not super >complex. I fully agree that RPi should *not* be our reference platform. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20

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

2018-01-30 Thread Poul-Henning Kamp
In message <20180130094251.ga85...@bluezbox.com>, Oleksandr Tymoshenko writes: >Poul-Henning Kamp (p...@phk.freebsd.dk) wrote: >> But only if you add pwm.dtbo to config.txt and reboot, because >> I see nothing indicating that we will put it there in the >> rele

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

2018-01-30 Thread Poul-Henning Kamp
w. So the essential architectural question seems to be: Can we load the pwm overlay by default, but still use the PWM-pins for something else until/if the pwm driver is kldloaded ? If not, we're right back to FreeBSD 1.x semantics again. -- Poul-Henning Kamp | UNIX since Zilog Z

svn commit: r332297 - in head/sys/teken: . libteken

2018-04-08 Thread Poul-Henning Kamp
Author: phk Date: Sun Apr 8 19:23:50 2018 New Revision: 332297 URL: https://svnweb.freebsd.org/changeset/base/332297 Log: Pedantic polishing of code to please FlexeLint. Approved by: ed Modified: head/sys/teken/libteken/teken.3 head/sys/teken/teken.c head/sys/teken/teken.h head/s

svn commit: r326246 - head/lib/libc/stdio

2017-11-27 Thread Poul-Henning Kamp
Author: phk Date: Mon Nov 27 09:57:37 2017 New Revision: 326246 URL: https://svnweb.freebsd.org/changeset/base/326246 Log: Truncate negative lengths to zero Modified: head/lib/libc/stdio/xprintf_hexdump.c Modified: head/lib/libc/stdio/xprintf_hexdump.c ===

Re: svn commit: r326731 - head/sys/ufs/ffs

2017-12-09 Thread Poul-Henning Kamp
DERED is @gibbs baby ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___

Re: svn commit: r326731 - head/sys/ufs/ffs

2017-12-09 Thread Poul-Henning Kamp
nt of BIO_ORDERED... I think ordering is strictly a consumer responsibility for exactly (and then some) of the reasons you mention. "End to end principle in systems design" and all that... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC

svn commit: r327182 - in head/sys: arm/include arm64/include sys x86/include

2017-12-25 Thread Poul-Henning Kamp
-License-Identifier: BSD-3-Clause + * SPDX-License-Identifier: BSD-2-Clause * - * Copyright (c) 2002 David E. O'Brien. All rights reserved. - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. + * Copyright (c) 2017 Poul-Henning Kamp. All r

svn commit: r327345 - head/tools/tools/sysbuild

2017-12-29 Thread Poul-Henning Kamp
Author: phk Date: Fri Dec 29 15:38:43 2017 New Revision: 327345 URL: https://svnweb.freebsd.org/changeset/base/327345 Log: Add a crude workaround for ports with flavors Modified: head/tools/tools/sysbuild/sysbuild.sh Modified: head/tools/tools/sysbuild/sysbuild.sh ===

svn commit: r327515 - head/sys/sys

2018-01-03 Thread Poul-Henning Kamp
Author: phk Date: Wed Jan 3 09:33:59 2018 New Revision: 327515 URL: https://svnweb.freebsd.org/changeset/base/327515 Log: Eliminate a paranthesis which is both unneeded and causing trouble. Modified: head/sys/sys/_stdarg.h Modified: head/sys/sys/_stdarg.h ===

Re: svn commit: r327086 - head/sys/dev/lmc

2018-01-04 Thread Poul-Henning Kamp
In message , Warner Losh writes: >Deleting lmc(4) is probably the appropriate fix. >Inc is for very old interconnect to telco... So maybe that's safe to delete. As the guy who put lmc(4) in the tree I concur. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@

Re: svn commit: r327086 - head/sys/dev/lmc

2018-01-04 Thread Poul-Henning Kamp
aces in US. I don't think they could do SS7 or ISDN like the MUSYCC chip could. But nobody uses T1/E1/T3/E3 lines any more for anything... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe

svn commit: r327976 - in head/sys: arm/broadcom/bcm2835 dts/arm modules/rpi_pwm

2018-01-14 Thread Poul-Henning Kamp
-Clause-FreeBSD + * + * Copyright (c) 2017 Poul-Henning Kamp + * 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

svn commit: r328223 - in head/sys: arm/broadcom/bcm2835 modules modules/bcm283x_pwm modules/rpi_pwm

2018-01-21 Thread Poul-Henning Kamp
Author: phk Date: Sun Jan 21 21:27:41 2018 New Revision: 328223 URL: https://svnweb.freebsd.org/changeset/base/328223 Log: Rename rpi_pwm to bcm283x_pwm, and build it on armv[67] and arm64. Truncate ratio if period is lowered. Tested on Rpi2 and Rpi3. Rpi3 requires DTB->DTS->edit-

svn commit: r309790 - head/sys/dev/usb

2016-12-10 Thread Poul-Henning Kamp
Author: phk Date: Sat Dec 10 09:10:48 2016 New Revision: 309790 URL: https://svnweb.freebsd.org/changeset/base/309790 Log: Add Genesys Logic USB hub. Make two other USB hub descriptions more precise. Modified: head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/usbdevs =

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Poul-Henning Kamp
We tried to be future compatible, and UFS2 will look four different places for the superblock: +64k, +8k, +0k and +256k, (the latter named SBLOCK_PIGGY because somebody senior thought even 64k was an outrageous waste of space :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org

Re: svn commit: r316132 - head/sys/boot/i386/boot2

2017-03-29 Thread Poul-Henning Kamp
: 2 months >> Sponsored by: Dell EMC Isilon > >This can't be changed. It's baked into the BSD disklabel format. No it is not, it is baked into FFS, and for UFS2 0, 8, 64 and 256K works. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org |

svn commit: r317771 - head/usr.sbin/pkg

2017-05-03 Thread Poul-Henning Kamp
Author: phk Date: Wed May 3 20:41:26 2017 New Revision: 317771 URL: https://svnweb.freebsd.org/changeset/base/317771 Log: Flush stdout before yes/no confirmations, to force question through pipes/tee(1)/whatever Modified: head/usr.sbin/pkg/pkg.c Modified: head/usr.sbin/pkg/pkg.c =

svn commit: r318903 - head/tools/tools/sysbuild

2017-05-25 Thread Poul-Henning Kamp
Author: phk Date: Thu May 25 21:59:19 2017 New Revision: 318903 URL: https://svnweb.freebsd.org/changeset/base/318903 Log: Try to keep up with the ports system Makefiles. Modified: head/tools/tools/sysbuild/sysbuild.sh Modified: head/tools/tools/sysbuild/sysbuild.sh =

svn commit: r286904 - head/tools/tools/sysbuild

2015-08-18 Thread Poul-Henning Kamp
Author: phk Date: Tue Aug 18 20:19:48 2015 New Revision: 286904 URL: https://svnweb.freebsd.org/changeset/base/286904 Log: Update sysbuild to new ports infrastructure. Modified: head/tools/tools/sysbuild/sysbuild.sh Modified: head/tools/tools/sysbuild/sysbuild.sh

Re: svn commit: r292058 - head/sbin/geom/class/part

2015-12-12 Thread Poul-Henning Kamp
In message <20151212121209.ga60...@freebsd.org>, Alexey Dokuchaev writes: >+1, I'm also used to "dd'ing zeros" trick. The modern way to do that is to reinitialize the on-drive encryption to a new key. -- Poul-Henning Kamp | UNIX since Zil

svn commit: r288212 - head/sbin/natd

2015-09-25 Thread Poul-Henning Kamp
Author: phk Date: Fri Sep 25 07:37:00 2015 New Revision: 288212 URL: https://svnweb.freebsd.org/changeset/base/288212 Log: Fix two cases where "const" were washed off pointers with strchr(3) Modified: head/sbin/natd/natd.c Modified: head/sbin/natd/natd.c =

svn commit: r288484 - head/sys/kern

2015-10-02 Thread Poul-Henning Kamp
Author: phk Date: Fri Oct 2 09:23:14 2015 New Revision: 288484 URL: https://svnweb.freebsd.org/changeset/base/288484 Log: Fail the sbuf if vsnprintf(3) fails. Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c

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

2015-10-10 Thread Poul-Henning Kamp
Author: phk Date: Sat Oct 10 17:32:06 2015 New Revision: 289116 URL: https://svnweb.freebsd.org/changeset/base/289116 Log: Remove a double "as well as" Modified: head/share/man/man4/vtnet.4 Modified: head/share/man/man4/vtnet.4

svn commit: r289627 - head/etc/rc.d

2015-10-20 Thread Poul-Henning Kamp
Author: phk Date: Tue Oct 20 12:49:38 2015 New Revision: 289627 URL: https://svnweb.freebsd.org/changeset/base/289627 Log: Allow osreldate and osrelease to be set per jail Modified: head/etc/rc.d/jail Modified: head/etc/rc.d/jail ==

svn commit: r297146 - head/tools/tools/nanobsd

2016-03-21 Thread Poul-Henning Kamp
Author: phk Date: Mon Mar 21 08:30:58 2016 New Revision: 297146 URL: https://svnweb.freebsd.org/changeset/base/297146 Log: Unquote NANO_PACKAGE_LIST so that it actually can be a list and so that the default value of "*" works. Modified: head/tools/tools/nanobsd/defaults.sh Modified: head/t

Re: svn commit: r297039 - head/sys/x86/x86

2016-03-27 Thread Poul-Henning Kamp
uld even trust CPU report about its frequency as the last resort. Usually the errors will be magnificient, so a trivial sanity-check will catch them. Don't leave home without it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD

Re: svn commit: r297039 - head/sys/x86/x86

2016-03-27 Thread Poul-Henning Kamp
;timecounter source that is emulated correctly, but you don't know which >it is. There might be none. Indeed: One clock or three, never two. John R. Vig's famous tutorial is the ultimate collection of wisdom about care and feeding of quartz: http://www.ieee-uffc.org/frequen

svn commit: r297737 - head/tools/tools/nanobsd

2016-04-09 Thread Poul-Henning Kamp
Author: phk Date: Sat Apr 9 10:53:21 2016 New Revision: 297737 URL: https://svnweb.freebsd.org/changeset/base/297737 Log: Create /usr/local/etc before filling things into it. Only run mtree if the NANO_CUST_FILES_MTREE is nonempty Also umount the packages on non-signal failure Modifi

<    1   2   3