From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 20:47:11 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC23A16A401 for ; Thu, 5 Apr 2007 20:47:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id B82E713C458 for ; Thu, 5 Apr 2007 20:47:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l35KlBNm032689 for ; Thu, 5 Apr 2007 16:47:11 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l35KlAVL060615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 5 Apr 2007 16:47:10 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200704052047.l35KlAVL060615@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 05 Apr 2007 16:47:13 -0400 To: freebsd-hackers@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: fixing IRQ storms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 20:47:11 -0000 Using http://lists.freebsd.org/pipermail/freebsd-bugs/2007-March/022753.html I have been able to get my GPRS card to be recognized in FreeBSD. However, the IRQ it has picked, seems to conflict with the irq of the cardbus causing an interrupt storm. Is there a way to make the card use a different IRQ ? I tried ORing in PCCARD_CFE_IRQSHARE, but it doesnt seem to make a difference. The quirks entry shows from the above PR is and I tried adding in PCCARD_CFE_IRQSHARE without luck. It always goes to irq 10 and it always causes a storm. Any ideas how to fix it ? Thanks for any pointers! static struct pccard_config_entry pccard_sierra_a555_func1_cfe0 = { 0x22, /* cfe number */ PCCARD_CFE_IO8 | PCCARD_CFE_IRQLEVEL, PCCARD_IFTYPE_IO, 1, /* num_iospace */ 0, /* iomask */ { { 0x0008, 0x3e8 } }, /* iospace */ 0x3fbc, /* irqmask */ 0, /* num_memspace */ { }, /* memspace */ 0, /* maxtwins */ }; Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU) Origin = "AuthenticAMD" Id = 0x494 Stepping = 4 Features=0x1 real memory = 67108864 (64 MB) avail memory = 60379136 (57 MB) cpu0 on motherboard sysctl machdep.i8254_freq=1189161 returns 0 Timecounter "ELAN" frequency 8333333 Hz quality 1000 pcib0: pcibus 0 on motherboard pci0: on pcib0 cbb0: mem 0xa0000000-0xa0000fff irq 10 at device 9.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 sis0: port 0xe100-0xe1ff mem 0xa0001000-0xa0001fff irq 11 at device 18.0 on pci0 sis0: Silicon Revision: DP83816A miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis0: Ethernet address: 00:00:24:c5:75:10 sis1: port 0xe200-0xe2ff mem 0xa0002000-0xa0002fff irq 5 at device 19.0 on pci0 sis1: Silicon Revision: DP83816A miibus1: on sis1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis1: Ethernet address: 00:00:24:c5:75:11 isa0: on motherboard orm0: at iomem 0xc8000-0xd0fff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: console (19200,n,8,1) Timecounters tick every 1.000 msec Elan-mmcr driver: MMCR at 0xc5b71000. Elan-mmcr Soekris net45xx comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 uart2: at port 0x3e8-0x3ef irq 10 function 1 config 34 on pccard0 Interrupt storm detected on "irq10:"; throttling interrupt source ad0: 977MB at ata0-master PIO4 % vmstat -i interrupt total rate irq0: clk 151537 996 irq4: uart0 288 1 irq8: rtc 19395 127 irq10: cbb0 uart2 134314 883 irq11: sis0 192 1 irq14: ata0 16891 111 Total 322617 2122 ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike