Re: PCI MSI for re(4)

2015-11-13 Thread Paul Goyette

On Fri, 13 Nov 2015, Paul Goyette wrote:


On Thu, 12 Nov 2015, Jonathan A. Kollasch wrote:


Hi,

Attached is a patch that should enable PCI MSI for pci(4)-attached re(4)
NICs.  I would like both review of the code, and additional testing.

I've tested it successfully on amd64 -current with a
8100E/8101E/8102E/8102EL chip.


Great - I can give this a quick test-drive tomorrow.  Is there anything
specific I should be looking for?  Or it is a simple Pass/Fail?  :)


A quick kernel build and a reboot - initial appearances look good.  It
attaches successfully, and I'm using the network to send this Email!

Here's the dmesg for comparison:

Before:
re0 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 
0x06)
re0: interrupting at ioapic0 pin 17
re0: Ethernet address 30:b5:c2:05:0e:66
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4

After:
re0 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 
0x06)
re0: interrupting at msi0 vec 0
re0: Ethernet address 30:b5:c2:05:0e:66
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4

There's not much change, only the "interrupting at" line.


HOWEVER, I'm not sure I really like the fact that the dmesg says that
re0 is "interrupting at msi0" when there is no other reference in the
dmesg to what an msi is, and there is (apparently) no man page for
msi(4) (nor for any other manual section).


Anyway, I'll leave this running for a while (overnight at least) and see
if any problems arise.



+--+--+-+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| (Retired)| FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
+--+--+-+


amd failing in -current

2015-11-13 Thread Geoff Wing
Updating from a couple of weeks ago, amd is now failing on startup.
Logs say:
Nov 13 22:38:50 computername amd[345]/fatal: cannot create rpc/udp 
service
Nov 13 22:38:50 computername amd[345]/info:  Finishing with status 2

I'm guessing this is from
dist/conf/transp/transp_sockets.c:create_nfs_service()
and the svcudp_create() call.

That doesn't look like it was updated recently so some RPC code
or something changed.  I cannot look at this over the weekend so
if noone has any idea, I'll look at it next week.

Regards,
Geoff


daily CVS update output

2015-11-13 Thread NetBSD source update

Updating src tree:
P src/sys/dev/dev_verbose.h
P src/sys/dev/pci/pci_subr.c

Updating xsrc tree:


Killing core files:

Running the SUP scanner:
SUP Scan for current starting at Fri Nov 13 04:39:24 2015
SUP Scan for current completed at Fri Nov 13 05:51:35 2015
SUP Scan for mirror starting at Fri Nov 13 05:51:35 2015
SUP Scan for mirror completed at Fri Nov 13 13:02:56 2015




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  55937765 Nov 13 18:19 ls-lRA.gz


daily CVS update output

2015-11-13 Thread NetBSD source update

Updating src tree:
P src/bin/df/df.c
P src/common/lib/libc/stdlib/_strtol.h
P src/common/lib/libc/stdlib/_strtoul.h
P src/crypto/external/bsd/openssh/dist/moduli
P src/distrib/sets/lists/tests/mi
P src/doc/CHANGES
P src/external/cddl/osnet/dist/lib/libdtrace/common/dt_lex.l
P src/lib/libc/stdlib/strtoi.3
P src/lib/libc/stdlib/strtol.3
P src/lib/libc/stdlib/strtou.3
P src/lib/libc/stdlib/strtoul.3
P src/lib/libpuffs/puffs.h
P src/lib/libpuffs/puffs_ops.3
P src/share/man/man4/ddb.4
P src/sys/arch/amiga/amiga/bus.c
P src/sys/arch/amiga/dev/amidisplaycc.c
P src/sys/arch/amiga/dev/clock.c
P src/sys/arch/amiga/dev/grf.c
P src/sys/arch/amiga/dev/grf_cv.c
P src/sys/arch/amiga/dev/grf_cv3d.c
P src/sys/arch/amiga/dev/view.c
P src/sys/arch/amiga/include/param.h
P src/sys/arch/amigappc/include/param.h
P src/sys/arch/arm/arm32/cpu.c
P src/sys/arch/arm/nvidia/soc_tegra124.c
P src/sys/arch/arm/nvidia/tegra_i2c.c
P src/sys/arch/arm/vfp/vfp_init.c
P src/sys/arch/evbarm/conf/GENERIC.common
P src/sys/dev/vnd.c
P src/sys/dev/pci/pci_subr.c
P src/sys/dev/pci/pcireg.h
P src/sys/kern/kern_lwp.c
P src/sys/kern/vfs_vnode.c
P src/sys/netinet6/mld6.c
P src/sys/sys/disk.h
P src/tests/net/ndp/t_ra.sh
P src/tests/net/net/Makefile
U src/tests/net/net/t_ipv6address.sh
P src/usr.bin/config/defs.h
P src/usr.bin/config/mkioconf.c
P src/usr.bin/xlint/lint1/scan.l
P src/usr.sbin/puffs/mount_sysctlfs/sysctlfs.c

Updating xsrc tree:
P xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
P xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_kbd.c


Killing core files:


Updating tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/common: collecting... replacing... done
src/compat: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/external: collecting...pax: Unable to read directory 
src/external/gpl3/binutils/lib/libbfd/arch/riscv (No such file or directory)
 replacing... done
src/extsrc: collecting... replacing... done
src/games: collecting... replacing... done
src/gnu: collecting... replacing... done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/rescue: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tests: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done
src/x11: collecting...pax: Unable to access src/x11 (No such file or directory)
pax: WARNING! These file names were not selected:
src/x11
 done
src: collecting... replacing... done
xsrc/top-level: collecting... replacing... done
xsrc/external: collecting... replacing... done
xsrc/local: collecting... replacing... done
xsrc/xfree: collecting...pax: Unable to access xsrc/xfree (No such file or 
directory)
pax: WARNING! These file names were not selected:
xsrc/xfree
 done
xsrc: collecting... replacing... done

Running the SUP scanner:
SUP Scan for current starting at Fri Nov 13 17:28:47 2015
SUP Scan for current completed at Fri Nov 13 17:34:56 2015
SUP Scan for mirror starting at Fri Nov 13 17:34:56 2015
SUP Scan for mirror completed at Fri Nov 13 18:38:06 2015



Updating release-7 src tree (netbsd-7):

Updating release-7 xsrc tree (netbsd-7):


Updating release-7 tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/common: collecting... replacing... done
src/compat: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/external: collecting... replacing... done
src/extsrc: collecting... replacing... done
src/games: collecting... replacing... done
src/gnu: collecting... replacing... done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/rescue: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tests: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done
src/x11: collecting... replacing... done
src: collecting... replacing... done
xsrc/top-level: collecting... replacing... done
xsrc/external: collecting... 

Re: Aw: Re: Aw: Re: /var/db/entropy-file not present

2015-11-13 Thread Robert Elz
Date:Thu, 12 Nov 2015 22:41:45 +
From:Ottavio Caruso 
Message-ID:  



  | I shut my system with "halt" and I don't see that error message next
  | time the system boot again.

I do not know enough about your system config to guess at why.

kre



Re: PCI MSI for re(4)

2015-11-13 Thread Paul Goyette

On Thu, 12 Nov 2015, Jonathan A. Kollasch wrote:


Hi,

Attached is a patch that should enable PCI MSI for pci(4)-attached re(4)
NICs.  I would like both review of the code, and additional testing.

I've tested it successfully on amd64 -current with a
8100E/8101E/8102E/8102EL chip.


Great - I can give this a quick test-drive tomorrow.  Is there anything
specific I should be looking for?  Or it is a simple Pass/Fail?  :)



+--+--+-+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| (Retired)| FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
+--+--+-+


Re: amd failing in -current

2015-11-13 Thread Geoff Wing
On Friday 2015-11-13 22:47 +1100, Geoff Wing output:
:   Nov 13 22:38:50 computername amd[345]/fatal: cannot create rpc/udp 
service
:   Nov 13 22:38:50 computername amd[345]/info:  Finishing with status 2

As soon as I post this, I see that Matthias Scheler posted a fix,
so hopefully can ignore.

Thanks,
Geoff