ral interface is not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ral interface is not working

Hendrik Meyburgh
>Synopsis: ral interface is not working
>Category: system
>Environment:
        System      : OpenBSD 6.7
        Details     : OpenBSD 6.7-current (GENERIC.MP) #207: Fri May 22 01:31:04 MDT 2020
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        IP not working on ral interface
>How-To-Repeat:
I completed a sysupgrade on Tuesday the 19th, not sure what snapshot was running prior, I did not check. After the upgrade the laptop does not connect to any wireless network. The re0 interface is still working on DHCP. I looked at some recent posts but could not trace the problem

https://marc.info/?l=openbsd-misc&m=158861290011220&w=2
https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2 <https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2>

I just tested the 6.7-release bsd.rd and it does work, please see info below and let me know if you need any additional information.

hpl# ifconfig ral0 scan
ral0: flags=808847<UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr b8:76:3f:28:a2:e3
        index 4 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect (DS5 mode 11g)
        status: active
        ieee80211: nwid "wireless_meyburgh [2Ghz]" chan 5 bssid cc:2d:e0:2c:8a:f5 -15dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp
wpagroupcipher ccmp
                nwid Tenda_0B2758 chan 5 bssid c8:3a:35:0b:27:58 -13dBm HT-MCS15 privacy,short_slottime,wpa1 !wpaproto
                nwid "wireless_meyburgh [2Ghz]" chan 5 bssid cc:2d:e0:2c:8a:f5 -13dBm HT-MCS15 privacy,short_preamble,short_slottime,wpa2,w
pa1
                nwid "HP-Print-99-Deskjet 4640 series" chan 5 bssid 8c:dc:d4:67:a7:99 -15dBm 54M privacy,short_preamble,short_slottime,wpa2
 
                nwid Cilliers_LTE_WiFi chan 5 bssid ec:89:14:ec:b1:70 -15dBm HT-MCS15 privacy,short_slottime,radio_measurement,wep
                nwid "DIRECT-jQM2020 Series" chan 5 bssid 86:25:19:74:81:e6 -25dBm 54M privacy,short_slottime,wpa2
                nwid D-Link-2.4G chan 10 bssid 0c:b6:d2:13:bf:7a -59dBm HT-MCS15 privacy,short_slottime,wpa2,wpa1

ifconfig ral debug
ral0: associated with cc:2d:e0:2c:8a:f5 ssid "wireless_meyburgh [2Ghz]" channel 5 start 1Mb short preamble short slot time
ral0: missed beacon threshold set to 30 beacons, beacon interval is 100 TU
ral0: received msg 1/4 of the 4-way handshake from cc:2d:e0:2c:8a:f5
ral0: sending msg 2/4 of the 4-way handshake to cc:2d:e0:2c:8a:f5
ral0: received msg 3/4 of the 4-way handshake from cc:2d:e0:2c:8a:f5
ral0: sending msg 4/4 of the 4-way handshake to cc:2d:e0:2c:8a:f5
ral0: RUN -> AUTH
ral0: sending auth to cc:2d:e0:2c:8a:f5 on channel 5 mode 11g
ral0: AUTH -> ASSOC
ral0: sending assoc_req to cc:2d:e0:2c:8a:f5 on channel 5 mode 11g
ral0: ASSOC -> RUN
ral0: associated with cc:2d:e0:2c:8a:f5 ssid "wireless_meyburgh [2Ghz]" channel 5 start 1Mb short preamble short slot time
ral0: missed beacon threshold set to 30 beacons, beacon interval is 100 TU
ral0: received msg 1/4 of the 4-way handshake from cc:2d:e0:2c:8a:f5
ral0: sending msg 2/4 of the 4-way handshake to cc:2d:e0:2c:8a:f5
ral0: received msg 3/4 of the 4-way handshake from cc:2d:e0:2c:8a:f5
ral0: sending msg 4/4 of the 4-way handshake to cc:2d:e0:2c:8a:f5

tcpdump -i ral0 -s 1500 -vv port bootpc or bootps
14:20:41.964510 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]  xid:0xb3a35764 vend-rfc1048 DHCP:DISCOVER HN:"hpl" PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:1.184.118.63.40.162.227 [tos 0x10] (ttl 128, id 0, len 328)        
14:20:42.974533 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]  xid:0xb3a35764 secs:1 vend-rfc1048 DHCP:DISCOVER HN:"hpl" PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:1.184.118.63.40.162.227 [tos 0x10] (ttl 128, id 0, len 328)
14:20:43.984531 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]  xid:0xb3a35764 secs:2 vend-rfc1048 DHCP:DISCOVER HN:"hpl" PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:1.184.118.63.40.162.227 [tos 0x10] (ttl 128, id 0, len 328)
14:20:45.994609 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]  xid:0xb3a35764 secs:4 vend-rfc1048 DHCP:DISCOVER HN:"hpl" PR:SM+BR+T
Z+121+DG+DN+119+NS+HN+BF+TFTP CID:1.184.118.63.40.162.227 [tos 0x10] (ttl 128, id 0, len 328)
14:20:49.004660 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]  xid:0xb3a35764 secs:8 vend-rfc1048 DHCP:DISCOVER HN:"hpl" PR:SM+BR+T
Z+121+DG+DN+119+NS+HN+BF+TFTP CID:1.184.118.63.40.162.227 [tos 0x10] (ttl 128, id 0, len 328)

hpl# dhclient -dv ral0                                                                                                            [18/1827]
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: no lease... sleeping
ral0: DHCPDISCOVER - interval 2
ral0: DHCPDISCOVER - interval 2
ral0: DHCPDISCOVER - interval 5
ral0: DHCPDISCOVER - interval 10
ral0: link up -> down
ral0: link down -> up
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 2
ral0: DHCPDISCOVER - interval 4
ral0: DHCPDISCOVER - interval 6
ral0: DHCPDISCOVER - interval 8
ral0: DHCPDISCOVER - interval 1
ral0: no acceptable DHCPOFFERS received
ral0: no working leases in persistent database - sleeping
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 1
ral0: DHCPDISCOVER - interval 2
ral0: DHCPDISCOVER - interval 4
ral0: DHCPDISCOVER - interval 4
ral0: DHCPDISCOVER - interval 7
ral0: DHCPDISCOVER - interval 10
ral0: DHCPDISCOVER - interval 1
ral0: no acceptable DHCPOFFERS received
ral0: no working leases in persistent database - sleeping

 
Logs from the MikroTik hAP lite
 time=10:44:59 topics=wireless,info message="CC:21:19:16:B8:31@wlan2: connected, signal strength -71"                                      
 time=10:45:00 topics=dhcp,info message="dhcp1 assigned 192.168.101.129 to CC:21:19:16:B8:31"                                              
 time=10:45:02 topics=dhcp,warning message="dhcp1 offering lease 192.168.101.127 for B8:76:3F:28:A2:E3 without success"                    
 time=10:45:06 topics=dhcp,warning message="dhcp1 offering lease 192.168.101.127 for B8:76:3F:28:A2:E3 without success"                    
 time=10:45:10 topics=dhcp,warning message="dhcp1 offering lease 192.168.101.127 for B8:76:3F:28:A2:E3 without success"                    
 time=10:45:29 topics=dhcp,warning message="dhcp1 offering lease 192.168.101.127 for B8:76:3F:28:A2:E3 without success"                    
 time=10:45:35 topics=dhcp,warning message="dhcp1 offering lease 192.168.101.127 for B8:76:3F:28:A2:E3 without success"                    
 time=10:45:52 topics=wireless,info message="B8:76:3F:28:A2:E3@wlan1: disconnected, group key exchange timeout"

>Fix:
        Cannot fix it at this time

dmesg:
OpenBSD 6.7-current (GENERIC.MP) #207: Fri May 22 01:31:04 MDT 2020
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8447262720 (8055MB)
avail mem = 8178618368 (7799MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xb9b50000 (32 entries)
bios0: vendor Hewlett-Packard version "68IRR Ver. F.43" date 10/07/2013
bios0: Hewlett-Packard HP ProBook 4540s
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SSDT SSDT SLIC MSDM FPDT BGRT SSDT SSDT
acpi0: wakeup devices LANC(S5) EHC1(S3) EHC2(S3) XHC_(S3) PCIB(S5) ECF0(S4) RP03(S4) RP04(S5) WNIC(S5) RP06(S5) NIC_(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.47 MHz, 06-3a-09
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.13 MHz, 06-3a-09
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.13 MHz, 06-3a-09
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.12 MHz, 06-3a-09
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus -1 (PCIB)
acpiprt3 at acpi0: bus 1 (RP01)
acpiprt4 at acpi0: bus 2 (RP03)
acpiprt5 at acpi0: bus 3 (RP04)
acpiprt6 at acpi0: bus 4 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: APPR, resource for HDEF
acpipwrres1 at acpi0: COMP, resource for COM1
acpipwrres2 at acpi0: LPP_, resource for LPT0
acpitz0 at acpi0: critical temperature is 128 degC
acpitz1 at acpi0: critical temperature is 128 degC
acpitz2 at acpi0: critical temperature is 128 degC
acpitz3 at acpi0: critical temperature is 128 degC
acpitz4 at acpi0: critical temperature is 128 degC
acpitz5 at acpi0: critical temperature is 128 degC
acpitz6 at acpi0: critical temperature is 128 degC
acpitz7 at acpi0: critical temperature is 128 degC
"HPQ6001" at acpi0 not configured
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
extent `acpipci0 pcibus' (0x0 - 0xff), flags=0
     0x3f - 0xff
extent `acpipci0 pciio' (0x0 - 0xffffffff), flags=0
     0xcf8 - 0xcff
     0x10000 - 0xffffffff
extent `acpipci0 pcimem' (0x0 - 0xffffffffffffffff), flags=0
     0x0 - 0x9ffff
     0xc0000 - 0xbf1fffff
     0xe0000000 - 0xefffffff
     0xfee00000 - 0xfee00fff
     0x100000000 - 0xffffffffffffffff
acpicmos0 at acpi0
"PNP0A06" at acpi0 not configured
"SYN0197" at acpi0 not configured
"HPQ6000" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "Primary" serial 00557 2017/06/12 type LIon oem "Hewlett-Packard"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2594 MHz: speeds: 2601, 2600, 2500, 2400, 2300, 2200, 2100, 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi, IVYBRIDGE, gen 7
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 0 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: IDT/0x76d9, Intel/0x2806, using IDT/0x76d9
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 2
"JMicron SD/MMC" rev 0x30 at pci2 dev 0 function 0 not configured
sdhc0 at pci2 dev 0 function 2 "JMicron SD Host Controller" rev 0x30: apic 0 int 18
sdhc0: SDHC 2.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit
"JMicron Memory Stick" rev 0x30 at pci2 dev 0 function 3 not configured
ppb2 at pci0 dev 28 function 3 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 3
ral0 at pci3 dev 0 function 0 "Ralink RT3290" rev 0x00: apic 0 int 19, address b8:76:3f:28:a2:e3
ral0: MAC/BBP RT3290 (rev 0x0015), RF RT3290 (MIMO 1T1R)
"Ralink Bluetooth" rev 0x00 at pci3 dev 0 function 1 not configured
ppb3 at pci0 dev 28 function 5 "Intel 7 Series PCIE" rev 0xc4: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x07: RTL8168E/8111E-VL (0x2c80), msi, address b4:b5:2f:8b:c7:96
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 5
ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 0 int 16
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel HM76 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD5000LPLX-6, 05.0> naa.50014ee65e59b745
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus1 targ 1 lun 0: <hp, DVD-RAM UJ8D1, H.01> removable
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.5, 0x1e0b1 0x640000 0x147540 0xf00473 0xa2400
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub3: device problem, disabling port 1
uvideo0 at uhub3 port 3 configuration 1 interface 0 "Chicony Electronics Co., Ltd. HP HD Webcam [Fixed]" rev 2.00/51.70 addr 3
video0 at uvideo0
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (ae81f1d853f62576.a) swap on sd0b dump on sd0b
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub0
Controller /dev/usb1:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub1
addr 02: 8087:0024 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.00
         driver: uhub3
addr 03: 04f2:b370 Chicony Electronics Co., Ltd., HP HD Webcam [Fixed]
         high speed, power 500 mA, config 1, rev 51.70, iSerial SN0001
         driver: uvideo0
Controller /dev/usb2:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub2
addr 02: 8087:0024 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.00
         driver: uhub4

pcidump:
Domain /dev/pci0:
 0:0:0: Intel Core 3G Host
        0x0000: Vendor ID: 8086, Product ID: 0154
        0x0004: Command: 0006, Status: 2090
        0x0008: Class: 06 Bridge, Subclass: 00 Host,
                Interface: 00, Revision: 09
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
        0x00e0: Capability 0x09: Vendor Specific
        0x0000: 01548086 20900006 06000009 00000000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 000000e0 00000000 00000000
        0x0040: fed19001 00000000 fed10001 00000000
        0x0050: 00000211 00000011 bf100007 ba000001
        0x0060: e0000001 00000000 fed18001 00000000
        0x0070: ff000000 00000001 ff000c00 0000007f
        0x0080: 11111110 00333311 0000001a 00000000
        0x0090: ff000001 00000001 3fd00001 00000002
        0x00a0: 00000001 00000002 3fe00001 00000002
        0x00b0: bb200001 bb000001 ba000001 bf200001
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 010c0009 e280619b 14e000d0 00000000
        0x00f0: 01000000 00000000 00090fc8 00000000
 0:2:0: Intel HD Graphics 4000
        0x0000: Vendor ID: 8086, Product ID: 0166
        0x0004: Command: 0007, Status: 0090
        0x0008: Class: 03 Display, Subclass: 00 VGA,
                Interface: 00, Revision: 09
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 64bit addr: 0x00000000d0000000/0x00400000
        0x0018: BAR mem prefetchable 64bit addr: 0x00000000c0000000/0x10000000
        0x0020: BAR io addr: 0x00003000/0x0040
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0090: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x00d0: Capability 0x01: Power Management
                State: D0
        0x00a4: Capability 0x13: PCI Advanced Features
        0x0000: 01668086 00900007 03000009 00000000
        0x0010: d0000004 00000000 c000000c 00000000
        0x0020: 00003001 00000000 00000000 17f6103c
        0x0030: 00000000 00000090 00000000 0000010a
        0x0040: 010c0009 e280619b 14e000d0 00000000
        0x0050: 00000211 00000011 00000000 bb200001
        0x0060: 00020000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 0001d005 fee00000 00000091 00000000
        0x00a0: 00000000 03060013 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 0022a401 00000000 00000000 00000000
        0x00e0: 00000000 00000001 00008000 00000000
        0x00f0: 00000000 00000000 00090000 b9f75018
 0:20:0: Intel 7 Series xHCI
        0x0000: Vendor ID: 8086, Product ID: 1e31
        0x0004: Command: 0006, Status: 0290
        0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
                Interface: 30, Revision: 04
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 64bit addr: 0x00000000d0900000/0x00010000
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0070: Capability 0x01: Power Management
                State: D0
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0000: 1e318086 02900006 0c033004 00000000
        0x0010: d0900004 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 00000070 00000000 0000010a
        0x0040: 800e07fd 8003c239 00000000 00000000
        0x0050: 00000017 00000000 00000000 00000000
        0x0060: 00002030 00000000 00000000 00000000
        0x0070: c1c28001 00000008 00000000 00000000
        0x0080: 00870005 fee00000 00000000 00000060
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 0000008f 00000000 00000000 00000000
        0x00c0: 00000c03 00000000 00000000 00000000
        0x00d0: 0000000f 0000000f 0000000f 0000000f
        0x00e0: 00000000 00000001 00000000 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:22:0: Intel 7 Series MEI
        0x0000: Vendor ID: 8086, Product ID: 1e3a
        0x0004: Command: 0006, Status: 0010
        0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 04
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 64bit addr: 0x00000000d0914000/0x00000010
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x008c: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0000: 1e3a8086 00100006 07800004 00800000
        0x0010: d0914004 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 00000050 00000000 0000010a
        0x0040: 1e000245 80010010 60000106 10001ff0
        0x0050: c8038c01 00000008 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00800005
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 c0000002
        0x00c0: 2c1c4427 9a8b1c0f bf5097fd 146f73a6
        0x00d0: 1969d649 ed7ce939 12a6160d 00f813db
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
 0:26:0: Intel 7 Series USB
        0x0000: Vendor ID: 8086, Product ID: 1e2d
        0x0004: Command: 0006, Status: 0290
        0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
                Interface: 20, Revision: 04
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 32bit addr: 0xd0919000/0x00000400
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x0058: Capability 0x0a: Debug Port
        0x0098: Capability 0x13: PCI Advanced Features
        0x0000: 1e2d8086 02900006 0c032004 00000000
        0x0010: d0919000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 00000050 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: c9c25801 00000000 20a0980a 00000000
        0x0060: 07ff2020 00000000 00000001 c0080000
        0x0070: 3fdf0001 00000000 00000000 00000000
        0x0080: 00800000 930c8811 24000d30 00000000
        0x0090: 00000000 00000000 03060013 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00ffaa00 00000000 00000000
        0x00e0: 00000000 18400100 00084010 5a0453a8
        0x00f0: 00000000 00808588 08040f87 205b1708
 0:27:0: Intel 7 Series HD Audio
        0x0000: Vendor ID: 8086, Product ID: 1e20
        0x0004: Command: 0006, Status: 0010
        0x0008: Class: 04 (unknown), Subclass: 03 (unknown),
                Interface: 00, Revision: 04
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 64bit addr: 0x00000000d0910000/0x00004000
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0070: Capability 0x10: PCI Express
        0x0100: Enhanced Capability 0x02: Virtual Channel Capability
        0x0130: Enhanced Capability 0x05: Root Complex Link Declaration
        0x0000: 1e208086 00100006 04030004 00000010
        0x0010: d0910004 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 00000050 00000000 0000010b
        0x0040: 45000001 00000000 00000000 00000000
        0x0050: c8426001 00000000 00000000 00000000
        0x0060: 00817005 fee00000 00000000 000000b0
        0x0070: 00910010 10000000 00100000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 01020400 40002402 82a30c00 02330010
        0x00d0: 02a30c00 02330010 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:28:0: Intel 7 Series PCIE
        0x0000: Vendor ID: 8086, Product ID: 1e10
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 06 Bridge, Subclass: 04 PCI,
                Interface: 00, Revision: c4
        0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: Primary Bus: 0, Secondary Bus: 1, Subordinate Bus: 1,
                Secondary Latency Timer: 00
        0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
        0x0020: Memory Base: d080, Memory Limit: d080
        0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
        0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
        0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
        0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
        0x0038: Expansion ROM Base Address: 00000000
        0x003c: Interrupt Pin: 01, Line: 05, Bridge Control: 0000
        0x0040: Capability 0x10: PCI Express
                Link Speed: 2.5 / 5.0 GT/s, Link Width: x0 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0090: Capability 0x0d: PCI-PCI
        0x00a0: Capability 0x01: Power Management
                State: D0
        0x0000: 1e108086 00100007 060400c4 00810010
        0x0010: 00000000 00000000 00010100 200000f0
        0x0020: d080d080 0001fff1 ffffffff 00000000
        0x0030: 00000000 00000040 00000000 00000105
        0x0040: 01428010 00008000 00100000 01124c12
        0x0050: 10010003 0004b200 00000028 00000000
        0x0060: 00000000 00000016 00000000 00000000
        0x0070: 00010002 00000000 00000000 00000000
        0x0080: 00019005 fee00000 00000062 00000000
        0x0090: 0000a00d 17f6103c 00000000 00000000
        0x00a0: c8020001 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 01000000 00000b02 c1118000 00000000
        0x00e0: 00003f00 00000000 00000003 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:28:2: Intel 7 Series PCIE
        0x0000: Vendor ID: 8086, Product ID: 1e14
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 06 Bridge, Subclass: 04 PCI,
                Interface: 00, Revision: c4
        0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: Primary Bus: 0, Secondary Bus: 2, Subordinate Bus: 2,
                Secondary Latency Timer: 00
        0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
        0x0020: Memory Base: d070, Memory Limit: d070
        0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
        0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
        0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
        0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
        0x0038: Expansion ROM Base Address: 00000000
        0x003c: Interrupt Pin: 03, Line: 0a, Bridge Control: 0000
        0x0040: Capability 0x10: PCI Express
                Link Speed: 2.5 / 5.0 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0090: Capability 0x0d: PCI-PCI
        0x00a0: Capability 0x01: Power Management
                State: D0
        0x0000: 1e148086 00100007 060400c4 00810010
        0x0010: 00000000 00000000 00020200 200000f0
        0x0020: d070d070 0001fff1 ffffffff 00000000
        0x0030: 00000000 00000040 00000000 0000030a
        0x0040: 01428010 00008000 00100000 03123c12
        0x0050: 70110042 0014b200 00400028 00000000
        0x0060: 00000000 00000016 00000000 00000000
        0x0070: 00010002 00000000 00000000 00000000
        0x0080: 00019005 fee00000 00000063 00000000
        0x0090: 0000a00d 17f6103c 00000000 00000000
        0x00a0: c8020001 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 01000000 00000b02 c1118000 00000000
        0x00e0: 00000300 00000000 00000001 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:28:3: Intel 7 Series PCIE
        0x0000: Vendor ID: 8086, Product ID: 1e16
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 06 Bridge, Subclass: 04 PCI,
                Interface: 00, Revision: c4
        0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: Primary Bus: 0, Secondary Bus: 3, Subordinate Bus: 3,
                Secondary Latency Timer: 00
        0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
        0x0020: Memory Base: d060, Memory Limit: d060
        0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
        0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
        0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
        0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
        0x0038: Expansion ROM Base Address: 00000000
        0x003c: Interrupt Pin: 04, Line: 0a, Bridge Control: 0000
        0x0040: Capability 0x10: PCI Express
                Link Speed: 2.5 / 5.0 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0090: Capability 0x0d: PCI-PCI
        0x00a0: Capability 0x01: Power Management
                State: D0
        0x0000: 1e168086 00100007 060400c4 00810010
        0x0010: 00000000 00000000 00030300 200000f0
        0x0020: d060d060 0001fff1 ffffffff 00000000
        0x0030: 00000000 00000040 00000000 0000040a
        0x0040: 01428010 00008000 00100000 04123c12
        0x0050: 70110042 001cb200 00400028 00000000
        0x0060: 00000000 00000016 00000000 00000000
        0x0070: 00010002 00000000 00000000 00000000
        0x0080: 00019005 fee00000 00000065 00000000
        0x0090: 0000a00d 17f6103c 00000000 00000000
        0x00a0: c8020001 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 01000000 00000b02 c1118000 00000000
        0x00e0: 00000300 00000000 00000001 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:28:5: Intel 7 Series PCIE
        0x0000: Vendor ID: 8086, Product ID: 1e1a
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 06 Bridge, Subclass: 04 PCI,
                Interface: 00, Revision: c4
        0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: Primary Bus: 0, Secondary Bus: 4, Subordinate Bus: 4,
                Secondary Latency Timer: 00
        0x001c: I/O Base: 20, I/O Limit: 20, Secondary Status: 0000
        0x0020: Memory Base: d050, Memory Limit: d050
        0x0024: Prefetch Memory Base: d041, Prefetch Memory Limit: d041
        0x0028: Prefetch Memory Base Upper 32 Bits: 00000000
        0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
        0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
        0x0038: Expansion ROM Base Address: 00000000
        0x003c: Interrupt Pin: 02, Line: 0a, Bridge Control: 0000
        0x0040: Capability 0x10: PCI Express
                Link Speed: 2.5 / 5.0 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0090: Capability 0x0d: PCI-PCI
        0x00a0: Capability 0x01: Power Management
                State: D0
        0x0000: 1e1a8086 00100007 060400c4 00810010
        0x0010: 00000000 00000000 00040400 00002020
        0x0020: d050d050 d041d041 00000000 00000000
        0x0030: 00000000 00000040 00000000 0000020a
        0x0040: 01428010 00008000 00100000 06123c12
        0x0050: 70110042 002cb200 00400028 00000000
        0x0060: 00000000 00000016 00000000 00000000
        0x0070: 00010002 00000000 00000000 00000000
        0x0080: 00019005 fee00000 00000066 00000000
        0x0090: 0000a00d 17f6103c 00000000 00000000
        0x00a0: c8020001 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 01000000 00000b02 c1118000 00000000
        0x00e0: 00000300 00000000 00000001 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 0:29:0: Intel 7 Series USB
        0x0000: Vendor ID: 8086, Product ID: 1e26
        0x0004: Command: 0006, Status: 0290
        0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
                Interface: 20, Revision: 04
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR mem 32bit addr: 0xd0918000/0x00000400
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0050: Capability 0x01: Power Management
                State: D0
        0x0058: Capability 0x0a: Debug Port
        0x0098: Capability 0x13: PCI Advanced Features
        0x0000: 1e268086 02900006 0c032004 00000000
        0x0010: d0918000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 00000050 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: c9c25801 00000000 20a0980a 00000000
        0x0060: 07ff2020 00000000 00000001 c0080000
        0x0070: 3fdf0001 00000000 00000000 00000000
        0x0080: 00800000 930c8811 24000d30 00000000
        0x0090: 00000000 00000000 03060013 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00ffaa00 00000000 00000000
        0x00e0: 00000000 02402000 00800012 8c224580
        0x00f0: 00000000 00808588 08040f87 205b1708
 0:31:0: Intel HM76 LPC
        0x0000: Vendor ID: 8086, Product ID: 1e59
        0x0004: Command: 0007, Status: 0210
        0x0008: Class: 06 Bridge, Subclass: 01 ISA,
                Interface: 00, Revision: 04
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
        0x00e0: Capability 0x09: Vendor Specific
        0x0000: 1e598086 02100007 06010004 00800000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 000000e0 00000000 00000000
        0x0040: 00000401 00000080 00000501 00000010
        0x0050: 000000f8 00000000 00000000 00000000
        0x0060: 0a0a050a 000000d0 800b800a 0000f0f8
        0x0070: f078f078 f078f078 f078f078 f078f078
        0x0080: 3f0f0010 007c0201 000c0101 00fcfe01
        0x0090: 000402e9 00000f00 00000000 00000000
        0x00a0: 00800e14 00063949 00004700 82010000
        0x00b0: 00000000 00000000 08102384 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00112233 00004567 0000ff00 0000000a
        0x00e0: 100c0009 00000000 06640613 00000000
        0x00f0: fed1c001 00000000 08040f87 00000000
 0:31:2: Intel 7 Series AHCI
        0x0000: Vendor ID: 8086, Product ID: 1e03
        0x0004: Command: 0007, Status: 02b0
        0x0008: Class: 01 Mass Storage, Subclass: 06 SATA,
                Interface: 01, Revision: 04
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR io addr: 0x00003068/0x0008
        0x0014: BAR io addr: 0x00003074/0x0004
        0x0018: BAR io addr: 0x00003060/0x0008
        0x001c: BAR io addr: 0x00003070/0x0004
        0x0020: BAR io addr: 0x00003040/0x0020
        0x0024: BAR mem 32bit addr: 0xd0917000/0x00000800
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 02 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: yes
        0x0070: Capability 0x01: Power Management
                State: D0
        0x00a8: Capability 0x12: SATA
        0x00b0: Capability 0x13: PCI Advanced Features
        0x0000: 1e038086 02b00007 01060104 00000000
        0x0010: 00003069 00003075 00003061 00003071
        0x0020: 00003041 d0917000 00000000 17f6103c
        0x0030: 00000000 00000080 00000000 0000020a
        0x0040: 80008000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 4003a801 00000008 00000000 00000000
        0x0080: 00017005 fee00000 00000067 00000000
        0x0090: 83033c60 3c000183 015c4208 00000000
        0x00a0: 000000e0 00390039 0010b012 00000048
        0x00b0: 03060013 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 08040f87 00000000
 2:0:0: JMicron SD/MMC
        0x0000: Vendor ID: 197b, Product ID: 2392
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 30
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 32bit addr: 0xd0703000/0x00000100
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: ffff0000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x00a4: Capability 0x01: Power Management
                State: D0
        0x0080: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0094: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0000: 2392197b 00100007 08800030 00800010
        0x0010: d0703000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: ffff0000 000000a4 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00019410 00008000 00012010 0103fc11
        0x0090: 10110042 00000005 fffffffc 00000000
        0x00a0: 00000000 00038001 00000008 88011130
        0x00b0: 77083320 800000fc 00520402 0000040c
        0x00c0: a0388bc3 02094503 08000000 3000101f
        0x00d0: 8002003c 50000807 00eb0001 00e2ffff
        0x00e0: 0006ff0f 36db031b 00100000 00000002
        0x00f0: 00000000 00000000 00000000 801a0000
 2:0:2: JMicron SD Host Controller
        0x0000: Vendor ID: 197b, Product ID: 2391
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 08 System, Subclass: 05 SDHC,
                Interface: 01, Revision: 30
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 32bit addr: 0xd0702000/0x00000100
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x00a4: Capability 0x01: Power Management
                State: D0
        0x0080: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0094: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0000: 2391197b 00100007 08050130 00800010
        0x0010: d0702000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 000000a4 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00019410 00008000 00012010 0103fc11
        0x0090: 10110042 00000005 fffffffc 00000000
        0x00a0: 00000000 00038001 00000008 88011130
        0x00b0: 77083320 800000fc 00520402 0000040c
        0x00c0: a0388bc3 02094503 08000000 3000101f
        0x00d0: 8002003c 50000807 00eb0001 00e2ffff
        0x00e0: 0006ff0f 36db031b 00100000 00000002
        0x00f0: 00000000 00000000 00000000 801a0000
 2:0:3: JMicron Memory Stick
        0x0000: Vendor ID: 197b, Product ID: 2393
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 30
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 32bit addr: 0xd0701000/0x00000100
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 17f6
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x00a4: Capability 0x01: Power Management
                State: D0
        0x0080: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x00: Unknown
        0x0094: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0000: 2393197b 00100007 08800030 00800010
        0x0010: d0701000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 17f6103c
        0x0030: 00000000 000000a4 00000000 0000010a
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00019410 00008000 00012010 0103fc11
        0x0090: 10110042 00000005 fffffffc 00000000
        0x00a0: 00000000 00038001 00000008 88011130
        0x00b0: 77083320 800000fc 00520402 0000040c
        0x00c0: a0388bc3 02094503 08000000 3000101f
        0x00d0: 8002003c 50000807 00eb0001 00e2ffff
        0x00e0: 0006ff0f 36db031b 00100000 00000002
        0x00f0: 00000000 00000000 00000000 801a0000
 3:0:0: Ralink RT3290
        0x0000: Vendor ID: 1814, Product ID: 3290
        0x0004: Command: 0007, Status: 0010
        0x0008: Class: 02 Network, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 32bit addr: 0xd0610000/0x00010000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 103c Product ID: 18ec
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
        0x0040: Capability 0x01: Power Management
                State: D0 PME# asserted
        0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
                Enabled: no
        0x0070: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
        0x0100: Enhanced Capability 0x01: Advanced Error Reporting
        0x0140: Enhanced Capability 0x03: Device Serial Number
                Serial Number: 0000e3a2283f76b8
        0x0000: 32901814 00100007 02800000 00800010
        0x0010: d0610000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 18ec103c
        0x0030: 00000000 00000040 00000000 0000010a
        0x0040: 49c35001 00008000 00000000 00000000
        0x0050: 008a7005 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00020010 00008240 00092010 00073c11
        0x0080: 10110142 00000000 00000000 00000000
        0x0090: 00000000 00000010 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
Reply | Threaded
Open this post in threaded view
|

Re: ral interface is not working

Stefan Sperling-5
On Sun, May 24, 2020 at 03:08:09PM +0200, Hendrik Meyburgh wrote:

> >Synopsis: ral interface is not working
> >Category: system
> >Environment:
> System      : OpenBSD 6.7
> Details     : OpenBSD 6.7-current (GENERIC.MP) #207: Fri May 22 01:31:04 MDT 2020
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
> IP not working on ral interface
> >How-To-Repeat:
> I completed a sysupgrade on Tuesday the 19th, not sure what snapshot was running prior, I did not check. After the upgrade the laptop does not connect to any wireless network. The re0 interface is still working on DHCP. I looked at some recent posts but could not trace the problem
>
> https://marc.info/?l=openbsd-misc&m=158861290011220&w=2
> https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2 <https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2>
>
> I just tested the 6.7-release bsd.rd and it does work, please see info below and let me know if you need any additional information.

Thank you for the report!

I could reproduce the problem with this device:

ral0 at pci5 dev 0 function 0 "Ralink RT3090" rev 0x00: apic 5 int 16, address xx:xx:xx:xx:xx:xx
ral0: MAC/BBP RT3090 (rev 0x3213), RF RT3020 (MIMO 1T1R)

I had overlooked that ral(4) uses hardware encryption on some of its
supported devices and accidentally broke decrytion on those devices
when I fixed replay detection on Intel and Atheros hardware.

ral(4) devices provide fully decrypted frames with TKIP/CCMP headers already
stripped. This means replay detection can only be done by hardware.
My recent changes enforce a software replay check which cannot work on ral(4).

The following diff repairs the problem. The ne80211 stack will simply have
to trust that hardware takes care of replay detection when it strips the IV.

diff 3247d7f3b53b75bbaf4356f06f34208638ba213d /usr/src
blob - de44d5a0a957f497259735efd5cee2cc081d33bc
file + sys/net80211/ieee80211_input.c
--- sys/net80211/ieee80211_input.c
+++ sys/net80211/ieee80211_input.c
@@ -178,9 +178,12 @@ ieee80211_input_hwdecrypt(struct ieee80211com *ic, str
  switch (k->k_cipher) {
  case IEEE80211_CIPHER_CCMP:
  if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) {
- /* drop unencrypted */
- ic->ic_stats.is_rx_unencrypted++;
- return NULL;
+ /*
+ * If the protected bit is clear then hardware has
+ * stripped the IV and we must trust that it handles
+ * replay detection correctly.
+ */
+ break;
  }
  if (ieee80211_ccmp_get_pn(&pn, &prsc, m, k) != 0)
  return NULL;
@@ -200,9 +203,12 @@ ieee80211_input_hwdecrypt(struct ieee80211com *ic, str
  break;
  case IEEE80211_CIPHER_TKIP:
  if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) {
- /* drop unencrypted */
- ic->ic_stats.is_rx_unencrypted++;
- return NULL;
+ /*
+ * If the protected bit is clear then hardware has
+ * stripped the IV and we must trust that it handles
+ * replay detection correctly.
+ */
+ break;
  }
  if (ieee80211_tkip_get_tsc(&pn, &prsc, m, k) != 0)
  return NULL;

Reply | Threaded
Open this post in threaded view
|

Re: ral interface is not working

Hendrik Meyburgh
Hi Stefan.

Thanks that worked.

> On 24 May 2020, at 16:46, Stefan Sperling <[hidden email]> wrote:
>
> On Sun, May 24, 2020 at 03:08:09PM +0200, Hendrik Meyburgh wrote:
>>> Synopsis: ral interface is not working
>>> Category: system
>>> Environment:
>> System      : OpenBSD 6.7
>> Details     : OpenBSD 6.7-current (GENERIC.MP) #207: Fri May 22 01:31:04 MDT 2020
>> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>>
>> Architecture: OpenBSD.amd64
>> Machine     : amd64
>>> Description:
>> IP not working on ral interface
>>> How-To-Repeat:
>> I completed a sysupgrade on Tuesday the 19th, not sure what snapshot was running prior, I did not check. After the upgrade the laptop does not connect to any wireless network. The re0 interface is still working on DHCP. I looked at some recent posts but could not trace the problem
>>
>> https://marc.info/?l=openbsd-misc&m=158861290011220&w=2
>> https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2 <https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2> <https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2 <https://marc.info/?l=openbsd-bugs&m=158996211916426&w=2>>
>>
>> I just tested the 6.7-release bsd.rd and it does work, please see info below and let me know if you need any additional information.
>
> Thank you for the report!
>
> I could reproduce the problem with this device:
>
> ral0 at pci5 dev 0 function 0 "Ralink RT3090" rev 0x00: apic 5 int 16, address xx:xx:xx:xx:xx:xx
> ral0: MAC/BBP RT3090 (rev 0x3213), RF RT3020 (MIMO 1T1R)
>
> I had overlooked that ral(4) uses hardware encryption on some of its
> supported devices and accidentally broke decrytion on those devices
> when I fixed replay detection on Intel and Atheros hardware.
>
> ral(4) devices provide fully decrypted frames with TKIP/CCMP headers already
> stripped. This means replay detection can only be done by hardware.
> My recent changes enforce a software replay check which cannot work on ral(4).
>
> The following diff repairs the problem. The ne80211 stack will simply have
> to trust that hardware takes care of replay detection when it strips the IV.
>
> diff 3247d7f3b53b75bbaf4356f06f34208638ba213d /usr/src
> blob - de44d5a0a957f497259735efd5cee2cc081d33bc
> file + sys/net80211/ieee80211_input.c
> --- sys/net80211/ieee80211_input.c
> +++ sys/net80211/ieee80211_input.c
> @@ -178,9 +178,12 @@ ieee80211_input_hwdecrypt(struct ieee80211com *ic, str
> switch (k->k_cipher) {
> case IEEE80211_CIPHER_CCMP:
> if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) {
> - /* drop unencrypted */
> - ic->ic_stats.is_rx_unencrypted++;
> - return NULL;
> + /*
> + * If the protected bit is clear then hardware has
> + * stripped the IV and we must trust that it handles
> + * replay detection correctly.
> + */
> + break;
> }
> if (ieee80211_ccmp_get_pn(&pn, &prsc, m, k) != 0)
> return NULL;
> @@ -200,9 +203,12 @@ ieee80211_input_hwdecrypt(struct ieee80211com *ic, str
> break;
> case IEEE80211_CIPHER_TKIP:
> if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) {
> - /* drop unencrypted */
> - ic->ic_stats.is_rx_unencrypted++;
> - return NULL;
> + /*
> + * If the protected bit is clear then hardware has
> + * stripped the IV and we must trust that it handles
> + * replay detection correctly.
> + */
> + break;
> }
> if (ieee80211_tkip_get_tsc(&pn, &prsc, m, k) != 0)
> return NULL;