From owner-freebsd-bugs Tue Dec 18 6:50:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1154737B41B for ; Tue, 18 Dec 2001 06:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBIEo1O52395; Tue, 18 Dec 2001 06:50:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6B1F637B41A for ; Tue, 18 Dec 2001 06:49:48 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBIEkg630830; Tue, 18 Dec 2001 06:46:42 -0800 (PST) (envelope-from nobody) Message-Id: <200112181446.fBIEkg630830@freefall.freebsd.org> Date: Tue, 18 Dec 2001 06:46:42 -0800 (PST) From: KT Sin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/32973: psm missing when acpi is loaded Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32973 >Category: kern >Synopsis: psm missing when acpi is loaded >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 18 06:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: KT Sin >Release: FreeBSD 5.0-CURRENT >Organization: >Environment: FreeBSD passion.daddylonglegs.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Dec 16 22:08:25 SGT 2001 ktsin@passion.daddylonglegs.com:/usr/src/sys/i386/compile/PASSION i386 >Description: The PS/2 mouse device is not detected during bootup for certain motherboards when ACPI is loaded. >How-To-Repeat: >Fix: Please apply the patch below: ===========================cut here================================== *** sys/isa/psm.c.orig Sat Oct 13 18:28:02 2001 --- sys/isa/psm.c Tue Nov 6 09:35:25 2001 *************** *** 928,933 **** --- 928,934 ---- int mask; int rid; int i; + int irq; #if 0 kbdc_debug(TRUE); *************** *** 935,940 **** --- 936,952 ---- /* see if IRQ is available */ rid = KBDC_RID_AUX; + + irq = bus_get_resource_start(dev, SYS_RES_IRQ, rid); + if (irq <= 0) { + if (resource_long_value(PSM_DRIVER_NAME, + device_get_unit(dev), "irq", &irq) != 0) + irq = 12; /* XXX */ + device_printf(dev, "irq resource info is missing; " + "assuming irq %ld\n", irq); + bus_set_resource(dev, SYS_RES_IRQ, rid, irq, 1); + } + sc->intr = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); if (sc->intr == NULL) { ===========================cut here=================================== begin 644 psm-patch M*BHJ('-YPHK(`EI9B`HRelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message