Re: svn commit: r271174 - head/sys/sys

2014-09-06 Thread Robert N. M. Watson
On 7 Sep 2014, at 11:23, Gleb Smirnoff wrote: > R> Modified: head/sys/sys/mbuf.h > R> > == > R> --- head/sys/sys/mbuf.hFri Sep 5 16:40:47 2014(r271173) > R> +++ head/sys/sys/mbuf.hFri Sep 5 16:46:28 20

Re: svn commit: r271204 - head/sys/netinet

2014-09-06 Thread Gleb Smirnoff
Michael, On Sat, Sep 06, 2014 at 07:12:15PM +, Michael Tuexen wrote: M> Author: tuexen M> Date: Sat Sep 6 19:12:14 2014 M> New Revision: 271204 M> URL: http://svnweb.freebsd.org/changeset/base/271204 M> M> Log: M> Fix the handling of sysctl variables when used with VIMAGE. M> While the

Re: svn commit: r271174 - head/sys/sys

2014-09-06 Thread Gleb Smirnoff
Robert, On Fri, Sep 05, 2014 at 04:46:28PM +, Robert Watson wrote: R> Author: rwatson R> Date: Fri Sep 5 16:46:28 2014 R> New Revision: 271174 R> URL: http://svnweb.freebsd.org/changeset/base/271174 R> R> Log: R> Clarify a diagnostic printf() in the mbuf code: M_EXT doesn't necessarily R

svn commit: r271217 - head/sys/mips/include

2014-09-06 Thread Gleb Smirnoff
Author: glebius Date: Sun Sep 7 05:47:48 2014 New Revision: 271217 URL: http://svnweb.freebsd.org/changeset/base/271217 Log: style(9) Modified: head/sys/mips/include/sf_buf.h Modified: head/sys/mips/include/sf_buf.h ===

Re: svn commit: r271213 - head/sys/mips/include

2014-09-06 Thread Gleb Smirnoff
Thanks, Adrian. I noticed that some arches that use SFBUF_MAP actually override only the sf_buf_unmap() routine, and sf_buf_map() matches the default one. Might be a good idea to add SFBUF_UNMAP macro, and override sf_buf_map()/sf_buf_unmap() separately, to reduce copy-n-paste a little bit.

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

2014-09-06 Thread Gleb Smirnoff
On Fri, Sep 05, 2014 at 09:54:11PM +0200, Mateusz Guzik wrote: M> > + CURVNET_SET(so->so_vnet); M> >if (V_socket_hhh[HHOOK_FILT_SOREAD]->hhh_nhooks > 0) M> >/* This hook returning non-zero indicates an event, not error */ M> >return (hhook_run_socket(so, NULL, HHOOK_FIL

svn commit: r271216 - head/sys/kern

2014-09-06 Thread Gleb Smirnoff
Author: glebius Date: Sun Sep 7 05:44:14 2014 New Revision: 271216 URL: http://svnweb.freebsd.org/changeset/base/271216 Log: Fix for r271182. Submitted by: mjg Pointy hat to:me, submitter and everyone who urged me to commit Modified: head/sys/kern/uipc_socket.c Modified: head

Re: svn commit: r269577 - in head/sys: amd64/include arm/arm arm/include conf i386/i386 i386/include kern mips/include mips/mips powerpc/include powerpc/powerpc sparc64/include sparc64/sparc64 sys

2014-09-06 Thread Alan Cox
On 09/06/2014 17:36, Adrian Chadd wrote: > On 6 September 2014 15:01, Alan Cox wrote: >> On 09/06/2014 16:15, Adrian Chadd wrote: >>> Hi Gleb! >>> >>> This commit has broken mips32 on my 128MB RAM routerstation pro board. >>> >>> I've tested the commit before this one (and it works). >>> >>> I've

svn commit: r271213 - head/sys/mips/include

2014-09-06 Thread Adrian Chadd
Author: adrian Date: Sat Sep 6 22:38:32 2014 New Revision: 271213 URL: http://svnweb.freebsd.org/changeset/base/271213 Log: Implement local sfbuf_map and sfbuf_unmap for MIPS32. The pre-rework behaviour was not to keep the cached mappings around after the sfbuf was used but instead to re

Re: svn commit: r269577 - in head/sys: amd64/include arm/arm arm/include conf i386/i386 i386/include kern mips/include mips/mips powerpc/include powerpc/powerpc sparc64/include sparc64/sparc64 sys

2014-09-06 Thread Adrian Chadd
On 6 September 2014 15:01, Alan Cox wrote: > On 09/06/2014 16:15, Adrian Chadd wrote: >> Hi Gleb! >> >> This commit has broken mips32 on my 128MB RAM routerstation pro board. >> >> I've tested the commit before this one (and it works). >> >> I've also tested today's -HEAD as there was some subsequ

Re: svn commit: r269577 - in head/sys: amd64/include arm/arm arm/include conf i386/i386 i386/include kern mips/include mips/mips powerpc/include powerpc/powerpc sparc64/include sparc64/sparc64 sys

2014-09-06 Thread Alan Cox
On 09/06/2014 16:15, Adrian Chadd wrote: > Hi Gleb! > > This commit has broken mips32 on my 128MB RAM routerstation pro board. > > I've tested the commit before this one (and it works). > > I've also tested today's -HEAD as there was some subsequent fixes to > the sfbuf code. It hasn't completely f

Re: svn commit: r269577 - in head/sys: amd64/include arm/arm arm/include conf i386/i386 i386/include kern mips/include mips/mips powerpc/include powerpc/powerpc sparc64/include sparc64/sparc64 sys

2014-09-06 Thread Adrian Chadd
. and I've submitted this as a bug: Bug: 193400 Note: this is a mipseb platform, not a mipsel platform. -a On 6 September 2014 14:15, Adrian Chadd wrote: > Hi Gleb! > > This commit has broken mips32 on my 128MB RAM routerstation pro board. > > I've tested the commit before this one (and it

Re: svn commit: r269577 - in head/sys: amd64/include arm/arm arm/include conf i386/i386 i386/include kern mips/include mips/mips powerpc/include powerpc/powerpc sparc64/include sparc64/sparc64 sys

2014-09-06 Thread Adrian Chadd
Hi Gleb! This commit has broken mips32 on my 128MB RAM routerstation pro board. I've tested the commit before this one (and it works). I've also tested today's -HEAD as there was some subsequent fixes to the sfbuf code. It hasn't completely fixed things - I still see processes throwing VM errors

Re: svn commit: r271202 - head/sys/dev/ofw

2014-09-06 Thread Nathan Whitehorn
On 09/06/14 12:40, Ian Lepore wrote: On Sat, 2014-09-06 at 12:16 -0700, Nathan Whitehorn wrote: Not looking at the code: what happens if you ask for the node corresponding to a phandle but the device corresponding to that phandle has not registered yet and it has an implicit crossreference mapp

Re: svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica

2014-09-06 Thread John Baldwin
On Friday, September 05, 2014 10:44:05 AM John Baldwin wrote: > On Friday, September 05, 2014 4:43:05 am Konstantin Belousov wrote: > > There is one weird detail, not touched by your patch. Amd64 resume > > path calls initializecpu(), while i386 does not. I do not see any > > use for the call, th

svn commit: r271209 - head/sys/netinet

2014-09-06 Thread Michael Tuexen
Author: tuexen Date: Sat Sep 6 20:03:24 2014 New Revision: 271209 URL: http://svnweb.freebsd.org/changeset/base/271209 Log: Fix a leak of an address, if the address is scheduled for removal and the stack is torn down. Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the

svn commit: r271208 - head/sys/x86/include

2014-09-06 Thread Konstantin Belousov
Author: kib Date: Sat Sep 6 19:47:37 2014 New Revision: 271208 URL: http://svnweb.freebsd.org/changeset/base/271208 Log: Add a define for index of IA32_XSS MSR, which is, per SDM rev. 50, an analog of XCR0 for ring 0 FPU state, used by XSAVES and XRSTORS. Sponsored by: The FreeBSD Founda

svn commit: r271207 - head/sys/dev/ahci

2014-09-06 Thread Alexander Motin
Author: mav Date: Sat Sep 6 19:43:48 2014 New Revision: 271207 URL: http://svnweb.freebsd.org/changeset/base/271207 Log: Save one register read (AHCI_IS) for AHCI controllers with only one port. For controllers with only one port (like PCIe or M.2 SSDs) interrupt can come from only one s

Re: svn commit: r271202 - head/sys/dev/ofw

2014-09-06 Thread Ian Lepore
On Sat, 2014-09-06 at 12:16 -0700, Nathan Whitehorn wrote: > Not looking at the code: what happens if you ask for the node > corresponding to a phandle but the device corresponding to that phandle > has not registered yet and it has an implicit crossreference mapping? > -Nathan > The node<->xre

svn commit: r271206 - head/sys/x86/include

2014-09-06 Thread Konstantin Belousov
Author: kib Date: Sat Sep 6 19:39:12 2014 New Revision: 271206 URL: http://svnweb.freebsd.org/changeset/base/271206 Log: SDM rev. 50 defines the use of the next 8 bytes in the xstate header. It is the compaction bitmask, with the highest bit defining if compact format of the xsave area is u

Re: svn commit: r271202 - head/sys/dev/ofw

2014-09-06 Thread Nathan Whitehorn
Not looking at the code: what happens if you ask for the node corresponding to a phandle but the device corresponding to that phandle has not registered yet and it has an implicit crossreference mapping? -Nathan On 09/06/14 11:43, Ian Lepore wrote: Author: ian Date: Sat Sep 6 18:43:17 2014 Ne

svn commit: r271204 - head/sys/netinet

2014-09-06 Thread Michael Tuexen
Author: tuexen Date: Sat Sep 6 19:12:14 2014 New Revision: 271204 URL: http://svnweb.freebsd.org/changeset/base/271204 Log: Fix the handling of sysctl variables when used with VIMAGE. While there do some cleanup of the code. MFC after: 1 week Modified: head/sys/netinet/sctp_constants.

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

2014-09-06 Thread Ian Lepore
Author: ian Date: Sat Sep 6 18:43:17 2014 New Revision: 271202 URL: http://svnweb.freebsd.org/changeset/base/271202 Log: When registering an association between a device and an xref phandle, create an entry in the xref list if one doesn't already exist for the given handle. On a system t

svn commit: r271201 - head/sys/dev/ahci

2014-09-06 Thread Warner Losh
Author: imp Date: Sat Sep 6 18:20:50 2014 New Revision: 271201 URL: http://svnweb.freebsd.org/changeset/base/271201 Log: Restore order of interrupt setup. Minor problems can result by setting up the interrupts too early: Reviewed by: mav@ Sponsored by: Netflix Modified: head/sys/dev

svn commit: r271200 - head/sys/arm/altera/socfpga

2014-09-06 Thread Ruslan Bukin
Author: br Date: Sat Sep 6 18:08:21 2014 New Revision: 271200 URL: http://svnweb.freebsd.org/changeset/base/271200 Log: o Remove __unused attribute on variables which actually used o Unmagic 'configuration done' bit o Move probe() to place before attach() for better navigation o Use bus_r

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

2014-09-06 Thread Ian Lepore
Author: ian Date: Sat Sep 6 17:50:59 2014 New Revision: 271199 URL: http://svnweb.freebsd.org/changeset/base/271199 Log: Revert rr271190, it was based on a misunderstanding. The problem of non-existant device<->xref info needs to be handled by creating the info, which will come in a subseq

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

2014-09-06 Thread Andrew Turner
Author: andrew Date: Sat Sep 6 17:33:41 2014 New Revision: 271198 URL: http://svnweb.freebsd.org/changeset/base/271198 Log: Fixthe spelling of ehci Modified: head/sys/arm/freescale/imx/files.imx51 Modified: head/sys/arm/freescale/imx/files.imx51 =

svn commit: r271197 - in head/sys/x86: include x86

2014-09-06 Thread Konstantin Belousov
Author: kib Date: Sat Sep 6 15:45:45 2014 New Revision: 271197 URL: http://svnweb.freebsd.org/changeset/base/271197 Log: Add more bits for the XSAVE features from CPUID 0xd, sub-function 1 %eax report. Print the XSAVE features 0xd/1 in the boot banner. The printcpuinfo() is executed l

Re: svn commit: r271190 - head/sys/dev/ofw

2014-09-06 Thread Ian Lepore
On Sat, 2014-09-06 at 08:39 -0700, Nathan Whitehorn wrote: > On 09/06/14 08:34, Ian Lepore wrote: > > On Sat, 2014-09-06 at 08:25 -0700, Nathan Whitehorn wrote: > >> What is this for? The way the specification works here explicitly > >> requires this fallback. > >> -Nathan > >> > > It's for determi

Re: svn commit: r271190 - head/sys/dev/ofw

2014-09-06 Thread Nathan Whitehorn
On 09/06/14 08:34, Ian Lepore wrote: On Sat, 2014-09-06 at 08:25 -0700, Nathan Whitehorn wrote: What is this for? The way the specification works here explicitly requires this fallback. -Nathan It's for determining whether there is an entry in the device<->xref list. If a node has no xref ph

svn commit: r271196 - head/sys/dev/ahci

2014-09-06 Thread Alexander Motin
Author: mav Date: Sat Sep 6 15:37:55 2014 New Revision: 271196 URL: http://svnweb.freebsd.org/changeset/base/271196 Log: Fix typo in comments. Submitted by: Benedict Reuschling MFC after:6 days Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c ===

Re: svn commit: r271190 - head/sys/dev/ofw

2014-09-06 Thread Ian Lepore
On Sat, 2014-09-06 at 08:25 -0700, Nathan Whitehorn wrote: > What is this for? The way the specification works here explicitly > requires this fallback. > -Nathan > It's for determining whether there is an entry in the device<->xref list. If a node has no xref phandle property there will be no

Re: svn commit: r271190 - head/sys/dev/ofw

2014-09-06 Thread Nathan Whitehorn
What is this for? The way the specification works here explicitly requires this fallback. -Nathan On 09/06/14 08:11, Ian Lepore wrote: Author: ian Date: Sat Sep 6 15:11:35 2014 New Revision: 271190 URL: http://svnweb.freebsd.org/changeset/base/271190 Log: Add OF_xref_from_node_strict() whi

svn commit: r271192 - in head/sys: amd64/amd64 amd64/include dev/acpica i386/i386 i386/include sparc64/pci x86/acpica

2014-09-06 Thread John Baldwin
Author: jhb Date: Sat Sep 6 15:23:28 2014 New Revision: 271192 URL: http://svnweb.freebsd.org/changeset/base/271192 Log: Create a separate structure for per-CPU state saved across suspend and resume that is a superset of a pcb. Move the FPU state out of the pcb and into this new structure.

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

2014-09-06 Thread Ian Lepore
Author: ian Date: Sat Sep 6 15:11:35 2014 New Revision: 271190 URL: http://svnweb.freebsd.org/changeset/base/271190 Log: Add OF_xref_from_node_strict() which returns -1 if there is no xref handle for the node. The default routine returns the untranslated handle, which is sometimes useful,

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

2014-09-06 Thread Andrew Turner
Author: andrew Date: Sat Sep 6 13:21:07 2014 New Revision: 271189 URL: http://svnweb.freebsd.org/changeset/base/271189 Log: Allow us to use the virtual timer. It is currently disabled, but should be usable as the default timer in place of the physical timer. We are guaranteed to have acc

Re: svn commit: r271186 - in head/sys: arm/altera/socfpga boot/fdt/dts/arm

2014-09-06 Thread Ruslan Bukin
On Sat, Sep 06, 2014 at 11:45:14AM +0100, Andrew Turner wrote: > > +#defineWRITE1(_sc, _reg, _val) \ > > + bus_space_write_1(_sc->bst, _sc->bsh, _reg, _val) > > Why are these in a header when the softc is in a .c file? Also why not > use bus_read_n, e.g. READ4 would become: > > #define READ

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

2014-09-06 Thread Joel Dahl
Author: joel (doc committer) Date: Sat Sep 6 11:19:12 2014 New Revision: 271188 URL: http://svnweb.freebsd.org/changeset/base/271188 Log: mdoc: remove superfluous paragraph macro. Modified: head/share/man/man4/uled.4 Modified: head/share/man/man4/uled.4 =

Re: svn commit: r271186 - in head/sys: arm/altera/socfpga boot/fdt/dts/arm

2014-09-06 Thread Andrew Turner
On Sat, 6 Sep 2014 08:48:58 + (UTC) Ruslan Bukin wrote: > Author: br > Date: Sat Sep 6 08:48:57 2014 > New Revision: 271186 > URL: http://svnweb.freebsd.org/changeset/base/271186 > > Log: > Add FPGA Manager driver. This driver allows to program FPGA core > from FreeBSD userspace running

svn commit: r271187 - head/usr.sbin/ctld

2014-09-06 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 6 09:03:13 2014 New Revision: 271187 URL: http://svnweb.freebsd.org/changeset/base/271187 Log: Avoid ctld(8) crash on getaddrinfo(3) failure. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/ctld/ctld.c Modified: head/usr.

svn commit: r271186 - in head/sys: arm/altera/socfpga boot/fdt/dts/arm

2014-09-06 Thread Ruslan Bukin
Author: br Date: Sat Sep 6 08:48:57 2014 New Revision: 271186 URL: http://svnweb.freebsd.org/changeset/base/271186 Log: Add FPGA Manager driver. This driver allows to program FPGA core from FreeBSD userspace running on ARM core. Sponsored by: DARPA, AFRL Added: head/sys/arm/altera/soc

Re: svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica

2014-09-06 Thread Konstantin Belousov
On Fri, Sep 05, 2014 at 10:44:05AM -0400, John Baldwin wrote: > On Friday, September 05, 2014 4:43:05 am Konstantin Belousov wrote: > > On Thu, Sep 04, 2014 at 10:50:25PM -0400, John Baldwin wrote: > > > On Tuesday, September 02, 2014 06:41:27 PM Konstantin Belousov wrote: > > > > On Tue, Sep 02, 2