Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2008 03:10:38 GMT
From:      Arthur Hartwig <arthur.hartwig@nokia.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/128040: System hangs when PCMCIA-CF adapter plugged into cardbus slot
Message-ID:  <200810130310.m9D3AcDs039561@www.freebsd.org>
Resent-Message-ID: <200810130320.m9D3K0t3047393@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         128040
>Category:       kern
>Synopsis:       System hangs when PCMCIA-CF adapter plugged into cardbus slot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 03:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Arthur Hartwig
>Release:        6.3
>Organization:
Nokia
>Environment:
>Description:
All systems discussed have a TI PCI1520 PCI Cardbus bridge.

On system with Celeron 1.5GHz CPU, sometimes when a PCMCIA to Compact Flash adapter containing a Compact Flash card is inserted in the cardbus slot the system hangs. This problem has not been observed in systems with a 2.8GHz XEON CPU or faster.

Analysis of the cbb driver shows functional interrupts are routed to PCI BEFORE the interrupt handler for functional interrupts has been registered.
>How-To-Repeat:

>Fix:
Route the functional interrupts to PCI AFTER the functional interrupt handler has been registered.

In cbb_power() in sys/dev/pccbb/pccbb.c remove the 
	PCI_MASK_CONFIG(brdev, CBBR_BRIDGECTRL,
	    & ~CBBM_BRIDGECTRL_INTR_IREQ_ISA_EN, 2);

and add it to cbb_enable_func_intr() after the 
        exca_putb(&sc->exca[0], EXCA_INTR, reg);


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810130310.m9D3AcDs039561>