Kernel hangs on PCI config register access ???

From: Matthias Urlichs (smurf_at_smurf.noris.de)
Date: 02/18/05

  • Next message: Sean: "Re: [BK] upgrade will be needed"
    To: linux-kernel@vger.kernel.org
    Date:	Fri, 18 Feb 2005 08:49:58 +0100
    
    

    Hi,

    we have a bunch of systems which semi-reproducibly (chance of 1:1000) hang
    when a PCMCIA card is removed from its PCI->PCMCIA interface via "cardctl
    eject". Right *here*, in fact:

    static int pci_conf1_read (int seg, int bus, int devfn, int reg, int
    len, + u32 *value) {
        [...]
        case 2:
            debug("you see me \n");
            *value = inw(0xCFC + (reg & 2));
            debug("but you don't get here \n");
            break;
        [...]

    Does anybody have *any* idea what could possibly be the cause of this?
    Using pci=bios still hangs; pci=conf2 doesn't work.

    FWIW, the call sequence is:

    shutdown_socket
    yenta_sock_init
    yenta_clear_maps
    yenta_set_socket
    pci_bus_read_config_word
    pci_conf1_read

    The systems in question are wildly different (VIA vs. Intel CPUs, standard
    mainboard vs. PCI backplane, Ricoh vs. ENE cardbus bridges), so I'm
    inclined to rule out hardware problems. The NMI monitor doesn't trigger
    (yes I tested it), kgdb is unresponsive -- the system hangs hard at that
    point, as far as I can determine.

    Kernel: tested with various 2.6.1? plus -rc* and/or -mm*, no change.

    -- 
    Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Sean: "Re: [BK] upgrade will be needed"

    Relevant Pages

    • Re: Using C functions in a TSR program
      ... hangs... ... But I'll be searching for the problem... ... monitoring DOS's crtical error flag as well as InDos. ... also the entry for Int 21h/AX=5d06h. ...
      (comp.os.msdos.programmer)
    • [patch] fix netconsole hang w/Alt-Sysrq-t
      ... This patch contains the updates necessary to fix the hangs in netconsole. ... int netpoll_parse_options ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: read hang on datagram socket
      ... > tests hangs on 5.4 but works ok on 6.0. ... > int sock1, sock2; ... > struct sockaddr sock1Addr, sock2Addr; ... > char sendBuf, readBuf; ...
      (freebsd-hackers)
    • usb 2.4: Little Rework for usbserial
      ... This patch fixes various hangs and oopses which happen if serial devices ... * has a lifetime from probe to disconnect. ... int sent = 0; ...
      (Linux-Kernel)
    • [PATCH 5/5] netpoll: fix up trapped logic
      ... This patch contains the updates necessary to fix the hangs in netconsole. ... int netpoll_parse_options ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)