From owner-cvs-all Tue Oct 8 11:25:12 2002 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 4959037B401; Tue, 8 Oct 2002 11:25:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF95843E3B; Tue, 8 Oct 2002 11:25:10 -0700 (PDT) (envelope-from sos@FreeBSD.org) Received: from freefall.freebsd.org (sos@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g98IPACo076546; Tue, 8 Oct 2002 11:25:10 -0700 (PDT) (envelope-from sos@freefall.freebsd.org) Received: (from sos@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g98IPAf6076545; Tue, 8 Oct 2002 11:25:10 -0700 (PDT) Message-Id: <200210081825.g98IPAf6076545@freefall.freebsd.org> From: Søren Schmidt Date: Tue, 8 Oct 2002 11:25:10 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ata ata-pci.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sos 2002/10/08 11:25:10 PDT Modified files: sys/dev/ata ata-pci.c Log: Fix for the panic when using a Promise TX2. The problem is that the code does a check for the granparent of the Promise chip, if this is a bridge of the right type, we have a TX4 on our hands, and need to handle that ones "issues". Now the grandparent check cause subtle bugs in the newbus system, mainly that pci_get_devid doesn't return an error value. This patch works around the issue by using BUS_READ_IVAR() instead. Revision Changes Path 1.50 +22 -15 src/sys/dev/ata/ata-pci.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message