pnp code and irq 2 broken

From: John Hay (jhay_at_icomtek.csir.co.za)
Date: 08/27/03

  • Next message: M. Warner Losh: "Re: pnp code and irq 2 broken"
    Date: Wed, 27 Aug 2003 07:45:50 +0200
    To: freebsd-arch@freebsd.org
    
    

    Hi,

    Somewhere along the line the code in FreeBSD that maps irq 2 to irq 9 has
    gone away and a panic was added if one tries to use irq 2. This is all
    well and fine, except that the pnp code was not notified of this. :-) So
    if you have a pnp device that have irq 2 in its mask and FreeBSD then
    decides that irq 2 is a good irq to use for this device, you have an
    instant panic.

    I have worked around it with this crude patch below. Crude because:
    1) I don't know if it should be an i386 only fix, and
    2) I used 0x04 directly, maybe IRQ_SLAVE from i386/isa/icu.h or
    some other define should be used?

    Any comments from anyone?

    John

    -- 
    John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org
    Index: isa/pnpparse.c
    ===================================================================
    RCS file: /home/ncvs/src/sys/isa/pnpparse.c,v
    retrieving revision 1.13
    diff -u -r1.13 pnpparse.c
    --- isa/pnpparse.c	16 Oct 2002 09:07:30 -0000	1.13
    +++ isa/pnpparse.c	19 Jun 2003 06:00:02 -0000
    @@ -110,7 +110,8 @@
     			if (bootverbose)
     				pnp_printf(id, "adding irq mask %#02x\n",
     					   I16(res));
    -			config->ic_irqmask[config->ic_nirq] = I16(res);
    +			config->ic_irqmask[config->ic_nirq] = I16(res) &
    +			    ~0x04;
     			config->ic_nirq++;
     			break;
     
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: M. Warner Losh: "Re: pnp code and irq 2 broken"

    Relevant Pages

    • ATI SB600 Sata controler isnt detected as such.
      ... Running FreeBSD 7.0-STABLE on AMD64. ... I got a MSI K9AGM3-F motherboard, ... AHCI Version 01.10 controller with 4 ports detected ... configured irq 4 not in bitmap of probed irqs 0 ...
      (freebsd-stable)
    • LINUX vs FreeBSD mysql performance using a large RT database
      ... Its not that CPU intensive, but it does get the odd burst of CPU work as mail comes in and is processed by a number of filters. ... With all the threads about poor FreeBSD performance, I wanted to test it out myself to see how 64bit LINUX would compare using the same hardware. ... acpi0: on motherboard ... 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f irq 11 at device 14.1 on pci1 ...
      (freebsd-performance)
    • partition/cd recognition problem hal GNOME 2.16 FreeBSD RELEASE 6.2
      ... FreeBSD elbereth.gateway.2wire.net 6.2-RELEASE FreeBSD ... 0xf0000000-0xf7ffffff,0xffa80000-0xffafffff irq 16 at ... fdc0: port ... perm devstat 0444 ...
      (freebsd-questions)
    • ad0: FAILURE - READ_DMA
      ... FreeBSD complains about DMA problems. ... pci0: ... irq 16 at ... port 0xb800-0xb8ff mem ...
      (freebsd-questions)
    • Re: Overheating attributed to Freebsd --sysctl variables notavailable--
      ... FreeBSD is not responsible ... acpi0: power button is handled as a fixed feature programming model. ... <ACPI PCI bus> on pcib0 ... slot 29 INTA is routed to irq 10 ...
      (freebsd-questions)