From owner-freebsd-stable@FreeBSD.ORG Tue Jan 14 15:03:52 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02D03A9A; Tue, 14 Jan 2014 15:03:52 +0000 (UTC) Received: from denrei.darkbsd.org (denrei.darkbsd.org [91.121.179.66]) by mx1.freebsd.org (Postfix) with ESMTP id A6D741EA4; Tue, 14 Jan 2014 15:03:51 +0000 (UTC) Received: from denrei.darkbsd.org (localhost [127.0.0.1]) by denrei.darkbsd.org (Postfix) with ESMTP id 45DA67ED; Tue, 14 Jan 2014 16:03:49 +0100 (CET) X-Virus-Scanned: amavisd-new at darkbsd.org Received: from denrei.darkbsd.org ([127.0.0.1]) by denrei.darkbsd.org (denrei.darkbsd.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r3xsKZzBWfBb; Tue, 14 Jan 2014 16:03:47 +0100 (CET) Received: from fusen (lns-bzn-49f-62-147-170-46.adsl.proxad.net [62.147.170.46]) (Authenticated sender: c.prevotaux@rural-networks.com) by denrei.darkbsd.org (Postfix) with ESMTPSA id 0E8957EC; Tue, 14 Jan 2014 16:03:47 +0100 (CET) Date: Tue, 14 Jan 2014 16:03:46 +0100 From: Christophe Prevotaux To: freebsd-stable@freebsd.org, freebsd-current@freebsd.org Subject: Shared IRQ on ATOM based Soekris net6501 board Message-ID: <20140114160346.2c34db92@fusen> Organization: Rural Networks X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2014 15:03:52 -0000 I have found out that when I use 2 AR9580 mini PCIe board some irq (namely in that case irq18 is shared over 3 devices) I wonder why it is done like this and if this could be something to fix ? Kernel is 30/12/2014 CURRENT ( FreeBSD/amd64) with : options mptable vmstat -i interrupt total rate irq4: uart0 1006 0 irq17: ath0 12857761 2078 irq18: ath1++ 11204038 1811 cpu0:timer 5775445 933 irq256: ahci0 3761 0 irq257: em0:rx 0 43769 7 irq258: em0:tx 0 6667 1 irq259: em0:link 2 0 irq260: em1:rx 0 6157 0 irq261: em1:tx 0 46 0 irq262: em1:link 2 0 irq263: em2:rx 0 21929 3 irq264: em2:tx 0 17803 2 irq265: em2:link 4 0 irq266: em3:rx 0 12326978 1992 irq267: em3:tx 0 13653018 2207 irq268: em3:link 11 0 cpu1:timer 5734729 927 Total 61653126 9966 ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223) Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #1: Wed Jan 8 20:42:57 EST 2014 root@ap01:/usr/obj/usr/src/sys/NET6501 amd64 FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Genuine Intel(R) CPU @ 600MHz (600.01-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x20661 Family = 0x6 Model = 0x26 Stepping = 1 Features=0xbfe9fbff Features2=0x40e3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 536739840 (511 MB) avail memory = 496316416 (473 MB) MPTable: Event timer "LAPIC" quality 400 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard random: initialized kbd0 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0xffffffff80ab3c10, 0) error 19 ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223) ACPI: Table initialisation failed: AE_NOT_FOUND ACPI: Try disabling either ACPI or apic support. pcib0: pcibus 0 on motherboard pci0: on pcib0 pcib1: irq 16 at device 23.0 on pci0 pci1: on pcib1 pcib2: irq 16 at device 0.0 on pci1 pci2: on pcib2 pci2: at device 0.0 (no driver attached) pci2: at device 0.1 (no driver attached) pci2: at device 0.2 (no driver attached) ohci0: mem 0xa0000b00-0xa0000bff irq 19 at device 2.0 on pci2 usbus0 on ohci0 ohci1: mem 0xa0000c00-0xa0000cff irq 19 at device 2.1 on pci2 usbus1 on ohci1 ohci2: mem 0xa0000d00-0xa0000dff irq 19 at device 2.2 on pci2 usbus2 on ohci2 ehci0: mem 0xa0000e00-0xa0000eff irq 19 at device 2.3 on pci2 usbus3: EHCI version 1.0 usbus3 on ehci0 pci2: at device 2.4 (no driver attached) sdhci_pci0: mem 0xa0004000-0xa00041ff irq 18 at device 4.0 on pci2 sdhci_pci0: 1 slot(s) allocated sdhci_pci1: mem 0xa0004200-0xa00043ff irq 18 at device 4.1 on pci2 sdhci_pci1: 1 slot(s) allocated ahci0: port 0x1020-0x103f mem 0xa0004400-0xa00047ff irq 17 at device 6.0 on pci2 ahci0: AHCI v1.10 with 2 3Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ohci3: mem 0xa0004800-0xa00048ff irq 16 at device 8.0 on pci2 usbus4 on ohci3 ohci4: mem 0xa0004900-0xa00049ff irq 16 at device 8.1 on pci2 usbus5 on ohci4 ohci5: mem 0xa0004a00-0xa0004aff irq 16 at device 8.2 on pci2 usbus6 on ohci5 ehci1: mem 0xa0004b00-0xa0004bff irq 16 at device 8.3 on pci2 usbus7: EHCI version 1.0 usbus7 on ehci1 pci2: at device 10.0 (no driver attached) uart2: port 0x1040-0x1047 mem 0xa0004d00-0xa0004d0f irq 19 at device 10.1 on pci2 uart3: port 0x1048-0x104f mem 0xa0004d10-0xa0004d1f irq 19 at device 10.2 on pci2 uart4: port 0x1050-0x1057 mem 0xa0004d20-0xa0004d2f irq 19 at device 10.3 on pci2 uart5: port 0x1058-0x105f mem 0xa0004d30-0xa0004d3f irq 19 at device 10.4 on pci2 pci2: at device 12.0 (no driver attached) pci2: at device 12.1 (no driver attached) pci2: at device 12.2 (no driver attached) pci2: at device 12.3 (no driver attached) pci2: at device 12.4 (no driver attached) pcib3: irq 17 at device 24.0 on pci0 pci3: on pcib3 pcib4: at device 0.0 on pci3 pci4: on pcib4 pcib5: at device 2.0 on pci4 pci5: on pcib5 em0: port 0x2000-0x201f mem 0xa1000000-0xa101ffff,0xa1020000-0xa1023fff irq 19 at device 0.0 on pci5 em0: Using MSIX interrupts with 3 vectors em0: Ethernet address: 00:00:24:cf:05:30 pcib6: at device 3.0 on pci4 pci6: on pcib6 em1: port 0x3000-0x301f mem 0xa2000000-0xa201ffff,0xa2020000-0xa2023fff irq 16 at device 0.0 on pci6 em1: Using MSIX interrupts with 3 vectors em1: Ethernet address: 00:00:24:cf:05:31 pcib7: at device 4.0 on pci4 pci7: on pcib7 pcib8: irq 18 at device 25.0 on pci0 pci8: on pcib8 pcib9: at device 0.0 on pci8 pci9: on pcib9 pcib10: at device 2.0 on pci9 pci10: on pcib10 em2: port 0x4000-0x401f mem 0xa3000000-0xa301ffff,0xa3020000-0xa3023fff irq 16 at device 0.0 on pci10 em2: Using MSIX interrupts with 3 vectors em2: Ethernet address: 00:00:24:cf:05:32 pcib11: at device 3.0 on pci9 pci11: on pcib11 em3: port 0x5000-0x501f mem 0xa4000000-0xa401ffff,0xa4020000-0xa4023fff irq 17 at device 0.0 on pci11 em3: Using MSIX interrupts with 3 vectors em3: Ethernet address: 00:00:24:cf:05:33 pcib12: at device 4.0 on pci9 pci12: on pcib12 pcib13: irq 19 at device 26.0 on pci0 pci13: on pcib13 pcib14: mem 0xa5000000-0xa5003fff irq 19 at device 0.0 on pci13 pci14: on pcib14 pcib15: irq 16 at device 1.0 on pci14 pci15: on pcib15 pcib16: irq 17 at device 2.0 on pci14 pci16: on pcib16 ath0: mem 0xa6000000-0xa601ffff irq 17 at device 0.0 on pci16 ar9300_set_stub_functions: setting stub functions ar9300_set_stub_functions: setting stub functions ar9300_attach: calling ar9300_hw_attach ar9300_hw_attach: calling ar9300_eeprom_attach ar9300_flash_map: unimplemented for now Restoring Cal data from DRAM Restoring Cal data from EEPROM ar9300_hw_attach: ar9300_eeprom_attach returned 0 ath0: RX status length: 48 ath0: RX buffer size: 4096 ath0: TX descriptor length: 128 ath0: TX status length: 36 ath0: TX buffers per descriptor: 4 ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0 ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 3 RX streams; 3 TX streams ath0: AR9580 mac 448.4 RF5110 phy 3661.5 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 pcib17: irq 18 at device 3.0 on pci14 pci17: on pcib17 ath1: mem 0xa7000000-0xa701ffff irq 18 at device 0.0 on pci17 ar9300_set_stub_functions: setting stub functions ar9300_set_stub_functions: setting stub functions ar9300_attach: calling ar9300_hw_attach ar9300_hw_attach: calling ar9300_eeprom_attach ar9300_flash_map: unimplemented for now Restoring Cal data from DRAM Restoring Cal data from EEPROM ar9300_hw_attach: ar9300_eeprom_attach returned 0 ath1: RX status length: 48 ath1: RX buffer size: 4096 ath1: TX descriptor length: 128 ath1: TX status length: 36 ath1: TX buffers per descriptor: 4 ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0 ath1: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries ath1: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries ath1: [HT] enabling HT modes ath1: [HT] enabling short-GI in 20MHz mode ath1: [HT] 1 stream STBC receive enabled ath1: [HT] 1 stream STBC transmit enabled ath1: [HT] 3 RX streams; 3 TX streams ath1: AR9580 mac 448.4 RF5110 phy 1083.4 ath1: 2GHz radio: 0x0000; 5GHz radio: 0x0000 isab0: at device 31.0 on pci0 isa0: on isab0 cpu0 on motherboard est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 60706070600060a device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1 on motherboard est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 60706070600060a device_attach: est1 attach returned 6 p4tcc1: on cpu1 atrtc0: at port 0x70 irq 8 on isa0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: at port 0x40 on isa0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 ppc0: cannot reserve I/O port range uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: console (9600,n,8,1) est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 60706070600060a device_attach: est0 attach returned 6 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 60706070600060a device_attach: est1 attach returned 6 Timecounters tick every 1.000 msec random: unblocking device. usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: <0x8086> at usbus0 uhub0: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <0x8086> at usbus1 uhub1: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen2.1: <0x8086> at usbus2 uhub2: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 usbus4: 12Mbps Full Speed USB v1.0 uhub0: 1 port with 1 removable, self powered ugen4.1: <0x8086> at usbus4 uhub4: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4 uhub1: 1 port with 1 removable, self powered usbus5: 12Mbps Full Speed USB v1.0 uhub2: 1 port with 1 removable, self powered ugen5.1: <0x8086> at usbus5 uhub5: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen6.1: <0x8086> at usbus6 uhub6: <0x8086 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6 uhub4: 1 port with 1 removable, self powered ugen7.1: at usbus7 uhub7: on usbus7 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 uhub5: 1 port with 1 removable, self powered ada0: uhub6: 1 port with 1 removable, self powered ATA-8 SATA 2.x device ada0: Serial Number 02512013500300001076 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 28626MB (58626288 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 SMP: AP CPU #1 Launched! Timecounter "TSC" frequency 600012906 Hz quality 1000 Root mount waiting for: usbus7 usbus3 uhub3: 3 ports with 3 removable, self powered uhub7: 3 ports with 3 removable, self powered Trying to mount root from ufs:/dev/ada0p2 [rw]... Setting hostuuid: c649b9a0-786a-11e3-8e56-000024cf0530. Setting hostid: 0xb1ae740b. Entropy harvesting: interrupts ethernet point_to_point swi. Starting file system checks: /dev/ada0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ada0p2: clean, 5902320 free (1056 frags, 737658 blocks, 0.0% fragmentation) Mounting local file systems:. Writing entropy file:. Setting hostname: ap01. bridge0: Ethernet address: 02:b1:ae:74:0b:00 Created clone interfaces: bridge0. wlan0: Ethernet address: 04:f0:21:04:5d:7a ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 0) Starting hostapd. Configuration file: /etc/hostapd-wlan0.conf Using interface wlan0 with hwaddr 04:f0:21:04:5d:7a and ssid "R2" wlan1: Ethernet address: 04:f0:21:04:5d:65 Starting hostapd. Configuration file: /etc/hostapd-wlan1.conf Using interface wlan1 with hwaddr 04:f0:21:04:5d:65 and ssid "R1" Starting Network: lo0 em0 em1 em2 em3 ath0 ath1 bridge0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 em0: flags=8843 metric 0 mtu 1500 options=4219b ether 00:00:24:cf:05:30 inet6 fe80::200:24ff:fecf:530%em0 prefixlen 64 scopeid 0x1 nd6 options=23 media: Ethernet autoselect (100baseTX ) status: active em1: flags=8943 metric 0 mtu 1500 options=42098 ether 00:00:24:cf:05:31 inet6 fe80::200:24ff:fecf:531%em1 prefixlen 64 scopeid 0x2 nd6 options=29 media: Ethernet autoselect status: no carrier em2: flags=8943 metric 0 mtu 1500 options=42098 ether 00:00:24:cf:05:32 inet6 fe80::200:24ff:fecf:532%em2 prefixlen 64 scopeid 0x3 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active em3: flags=8943 metric 0 mtu 1500 options=42098 ether 00:00:24:cf:05:33 inet6 fe80::200:24ff:fecf:533%em3 prefixlen 64 scopeid 0x4 nd6 options=29 media: Ethernet autoselect status: no carrier ath0: flags=8843 metric 0 mtu 2290 ether 04:f0:21:04:5d:7a nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ath1: flags=8843 metric 0 mtu 2290 ether 04:f0:21:04:5d:65 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running bridge0: flags=8843 metric 0 mtu 1500 ether 02:b1:ae:74:0b:00 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=9 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: wlan1 flags=143 ifmaxaddr 0 port 10 priority 128 path cost 22222 member: wlan0 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 22222 member: em3 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: em2 flags=143 ifmaxaddr 0 port 3 priority 128 path cost 200000 member: em1 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 Starting devd. Starting dhclient. DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 10.20.30.5 bound to 10.20.30.135 -- renewal in 129600 seconds. Starting pflogd: add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Creating and/or trimming log files. Starting syslogd. No core dumps found. ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib 32-bit compatibility ldconfig path: /usr/lib32 Additional ABI support: linux. Starting casperd. Clearing /tmp (X related). Updating motd:. Mounting late file systems:. Starting ntpd. Starting powerd. Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Tue Jan 14 08:19:31 EST 2014 em3: link state changed to DOWN em3: link state changed to UP em3: link state changed to DOWN em3: link state changed to UP em3: link state changed to DOWN em3: link state changed to UP em3: link state changed to DOWN em3: link state changed to UP Jan 14 08:36:01 ap01 su: eric to root on /dev/pts/0 Jan 14 08:38:30 ap01 su: nighty to root on /dev/pts/3 Jan 14 08:40:06 ap01 login: ROOT LOGIN (root) ON ttyu0 Jan 14 09:29:27 ap01 sshd[2264]: error: PAM: authentication error for nighty from 192.168.8.12 Jan 14 09:29:29 ap01 sshd[2264]: error: PAM: authentication error for nighty from 192.168.8.12 Jan 14 09:29:38 ap01 su: nighty to root on /dev/pts/3 -- ===================================================== Christophe Prevotaux =====================================================