From owner-cvs-all@FreeBSD.ORG Wed Jun 11 20:37:29 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89C8537B401; Wed, 11 Jun 2003 20:37:29 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3934243F3F; Wed, 11 Jun 2003 20:37:29 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5C3bS0U075155; Wed, 11 Jun 2003 20:37:28 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5C3bSmB075154; Wed, 11 Jun 2003 20:37:28 -0700 (PDT) Message-Id: <200306120337.h5C3bSmB075154@repoman.freebsd.org> From: Warner Losh Date: Wed, 11 Jun 2003 20:37:28 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pccbb pccbb.c pccbbvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 03:37:29 -0000 imp 2003/06/11 20:37:28 PDT FreeBSD src repository Modified files: sys/dev/pccbb pccbb.c pccbbvar.h Log: Make cbb interrupts MPSAFE: o Register ISR INTR_MPSAFE. o Loop on KTHREAD_DONE == 0 in the thread. o Safe the INTR_MPSAFE flag for client drivers (don't know if there are any CardBus/PCI drivers that are INTR_MPSAFE) o Read status after acquiring mtx_lock(Giant) rather than before so that we catch state changes that happen while Giant is being acquired. o Turn off the CD bit when we see a CD interrupt, and turn it back on after we've attached/detached the card. o On suspend, actually set the CBB_SOCKET_MASK to zero rather than oring in '0' to turn it off on suspend. o If the ISR that's registerd is MPSAFE, don't acquire Giant around call to client ISR. o Fix comments to reflect these changes. Revision Changes Path 1.76 +31 -20 src/sys/dev/pccbb/pccbb.c 1.19 +3 -2 src/sys/dev/pccbb/pccbbvar.h