kernel PPP doesn't set IP address on PPPOE interface from IPV6CP

2016-03-22 Thread Tranchemer Stephane

>Synopsis:kernel PPPOE doesn't set IP address on PPPOE1 interface
>Category:kernel
>Environment:
System  : OpenBSD 5.8
Details : OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 
02:31:04 MDT 2015

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
I have two PPPoE connections to my ISP, one manages IPv4 (pppoe0), one 
manages IPv6(pppoe1), different logins.


The IPv6 one is troublesome.

I do have the PPPoE session running, I can set and run DHCP6c and get my 
IPv6 range given to advertise on the internal network.
Doing this I get the IP of the local-link (fe80::*) interface on the ISP 
side that answered my DHCP request and I can ping it.


So, I do have PPPoE session, I do have connectivity, problem is that no 
IPv6 is given to the pppoe1 interface (except the local-link of course) 
and no information is given about the gateway.


setting inet6 autoconf on the interface doesn't change the problem, 
using tcpdump I can see the NDP request being sent but no answer.


on the DHCPv6 part I can see this error too
Mar/23/2016 10:36:50: get_ia: make an IA: NA-0
Mar/23/2016 10:36:50: update_ia: status code for NA-0: no addresses
Mar/23/2016 10:36:50: update_ia: IA NA-0 is invalidated
Mar/23/2016 10:36:50: remove_ia: remove an IA: NA-0


from what I could understand, it would seem that the kernel PPP doesn't 
correctly get the informations from ipv6cp and

1-doesn't give IPv6 address to the PPPOE interface
2-doesn't advertise the default route

---
my /etc/hostname.pppoe1
!/sbin/ifconfig em1 up description 'Transport interface for pppoe1'
pppoedev em1 authproto pap \
 authname 'me@v6.connect' authkey 'mypass'
inet6 eui64
inet6 autoconf
up
description 'External PPPoEv6'
!/sbin/route add -inet6 default -ifp pppoe1 fe80::

---
my /etc/dhcp6c.conf
interface pppoe1 {
send ia-na 0;
request domain-name-servers;
request domain-name;
send rapid-commit;
send ia-pd 1;
};

id-assoc na 0 { };

id-assoc pd 1 {
prefix-interface em0 {
sla-id 0;
sla-len 8;
};
};

---
while running
>ifconfig pppoe1
pppoe1: flags=208851 
mtu 1492

description: External PPPoEv6
priority: 0
dev: em1 state: session
sid: 0x6909 PADI retries: 0 PADR retries: 0 time: 00:00:12
sppp: phase network authproto pap authname "me@v6.connect"
groups: pppoe
status: active
inet6 fe80::200:24ff:fed0:a4b8%pppoe1 ->  prefixlen 64 scopeid 0x4f

>How-To-Repeat:
try to get PPPOE connectivity
>Fix:
none at the moment


dmesg:
OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 519962624 (495MB)
avail mem = 500367360 (477MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Genuine Intel(R) CPU @ 600MHz, 600.08 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR

cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2.0.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU @ 600MHz, 600.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR

cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
mpbios0: bus 0 is type PCI
mpbios0: bus 64 is type ISA
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x4115 
rev 0x05

pchb1 at pci0 dev 1 function 0 "Intel E600 Config" rev 0x00
ppb0 at pci0 dev 23 function 0 "Intel E600 PCIE" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 "Intel EG20T PCIE" rev 0x01
pci2 at ppb1 bus 2
"Intel EG20T Packet Hub" rev 0x01 at pci2 dev 0 function 0 not configured
"Intel EG20T Ethernet" rev 0x02 at pci2 dev 0 function 1 not configured
"Intel EG20T GPIO" rev 0x01 at pci2 dev 0 function 2 not configured
ohci0 at pci2 dev 2 function 0 "Intel EG20T USB" rev 0x02: apic 0 int 
19, version 1.0
ohci1 at pci2 dev 2 function 1 "Intel EG20T USB" rev 0x02: apic 0 int 
19, version 1.0
ohci2 at pci2 dev 2 function 2 "Intel EG20T USB" rev 0x02: apic 0 int 
19, version 1.0

ehci0 at pci2 dev 2 function 3 "Intel EG20T USB" rev 0x02: apic 0 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 add

Re: Elantech Clickpad is not recognized

2016-03-22 Thread joshua stein
On Mon, 21 Mar 2016 at 20:37:42 -0400, Steve wrote:
> >Synopsis:  Elantech Clickpad is not recognized
> >Category:  kernel
> >Environment:
> System  : OpenBSD 5.9
> Details : OpenBSD 5.9 (GENERIC.MP) #4: Mon Mar 21 00:43:57 EDT 
> 2016
> 
> sharms@mountain.localdomain:/home/sharms/src/sys/arch/amd64/compile/GENERIC.MP
> 
> Architecture: OpenBSD.amd64
> Machine : amd64
> >Description:
> Trackpad is not recognized by the PMS driver, I think this may
> be i2c / hid
> >How-To-Repeat:
> Try to use the Trackpad
> >Fix:
> None however it does work in current Linux releases
> 
> 
> dmesg:
> OpenBSD 5.9 (GENERIC.MP) #4: Mon Mar 21 00:43:57 EDT 2016
> 
> sharms@mountain.localdomain:/home/sharms/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4210065408 (4015MB)
> avail mem = 4078268416 (3889MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7cf22020 (12 entries)
> bios0: vendor coreboot version "coolstar" date 03/10/2016
> bios0: Google Gandof

(This appears to be a Toshiba Chromebook 2)

According to a Linux dmesg I found (http://pastebin.com/FNEhYdsZ),
this laptop has a Synaptics trackpad attached over i2c, but it does
not use the HID-over-i2c standard so it would not get recognized by
ihidev(4).  Apparently it does not have a legacy ps2 attachment
either, which would get recognized by pckbc(4)/pms(4).

This isn't really a bug, it's just lacking a custom hardware driver
for Elantech over i2c.

Similarly, the Acer C720 Chromebook has a Cypress APA touchpad that
is attached over i2c but not HID-over-i2c, and would need a custom
driver written (DragonFlyBSD has a cyapa(4) driver for it).



Re: em0 stops working after random amount of time in OpenBSD 5.8/5.9

2016-03-22 Thread Mischa
Hi All,

I would be happy to provide remote console access if that helps.

Mischa

> On 20 Mar 2016, at 14:52, Mischa  wrote:
> 
> Hi All,
> 
> I am running OpenBSD 5.8, and tried 5.9 as well, on a SuperMicro PDSMi which 
> has an Intel 82573E.
> For some reason networking just stops working after a random amount of time 
> and usually happens when I SSH-ed into the machine.
> When connected to the console it seems to be working longer. I am testing 
> this by pinging an IP address on the local subnet.
> 
> Unfortunately I can not find anything different from an interface 
> perspective, subnet perspective and nothing appears in the logs.
> The problem goes away, temporarily, when I bounce the interface on the switch.
> 
> How can I best troubleshoot the cause?
> 
> # dmesg
> em0 at pci4 dev 0 function 0 "Intel 82573E" rev 0x03: msi, address 
> 00:30:48:96:42:06
> 
> # pcidump -v
> 13:0:0: Intel 82573E
>   0x: Vendor ID: 8086 Product ID: 108c
>   0x0004: Command: 0107 Status: 0010
>   0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 03
>   0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10
>   0x0010: BAR mem 32bit addr: 0xe8a0/0x0002
>   0x0014: BAR empty ()
>   0x0018: BAR io addr: 0x5000/0x0020
>   0x001c: BAR empty ()
>   0x0020: BAR empty ()
>   0x0024: BAR empty ()
>   0x0028: Cardbus CIS: 
>   0x002c: Subsystem Vendor ID: 15d9 Product ID: 108c
>   0x0030: Expansion ROM Base Address: 
>   0x0038: 
>   0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
>   0x00c8: Capability 0x01: Power Management
>   0x00d0: Capability 0x05: Message Signaled Interrupts (MSI)
>   0x00e0: Capability 0x10: PCI Express
>   Link Speed: 2.5 / 2.5 GT/s Link Width: x1 / x1
> 
> # ifconfig em0
> em0: flags=8843 mtu 1500
>lladdr 00:30:48:96:42:06
>priority: 0
>groups: egress
>media: Ethernet autoselect (1000baseT 
> full-duplex,master,rxpause,txpause)
>status: active
>inet  netmask 0xff00 broadcast 46.23.86.255
> 
> # netstat -nr
> Internet:
> DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
> default UGS3   37 - 8 em0  
> /2446.23.86.132   UC 10 - 8 em0  
>  02:e0:52:9c:3c:56  UHLc   10 - 8 em0  
>00:30:48:96:42:06  HLl00 - 1 lo0  
>   UHb00 - 1 em0  
> 127/8  127.0.0.1  UGRS   00 32768 8 lo0  
> 127.0.0.1  127.0.0.1  UHl10 32768 1 lo0  
> 224/4  127.0.0.1  URS00 32768 8 lo0  
> 
> Thanx!
> 
> Mischa
> 
>