From owner-freebsd-i386@FreeBSD.ORG Fri Feb 15 14:50:06 2008 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3B7516A4A6 for ; Fri, 15 Feb 2008 14:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B8CEF13C478 for ; Fri, 15 Feb 2008 14:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1FEo54i001415 for ; Fri, 15 Feb 2008 14:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1FEo5mT001414; Fri, 15 Feb 2008 14:50:05 GMT (envelope-from gnats) Resent-Date: Fri, 15 Feb 2008 14:50:05 GMT Resent-Message-Id: <200802151450.m1FEo5mT001414@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Y.Okabe" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E242616A418 for ; Fri, 15 Feb 2008 14:49:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B6ABC13C4E1 for ; Fri, 15 Feb 2008 14:49:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1FEkoe0011104 for ; Fri, 15 Feb 2008 14:46:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1FEko4p011103; Fri, 15 Feb 2008 14:46:50 GMT (envelope-from nobody) Message-Id: <200802151446.m1FEko4p011103@www.freebsd.org> Date: Fri, 15 Feb 2008 14:46:50 GMT From: "Y.Okabe" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/120714: viapm driver doesn't work on VIA VT8237 chip X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 14:50:06 -0000 >Number: 120714 >Category: i386 >Synopsis: viapm driver doesn't work on VIA VT8237 chip >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 15 14:50:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Y.Okabe >Release: 7.0-RC2 >Organization: n/a >Environment: FreeBSD 7.0-PRERELEASE VIA C7 1.5Ghz + CN700 + VT8237R >Description: I configure and build kernel with enable viapm driver. but, kernrl could not detect the VIA VT8237R southbridge on my motherboad(GA-C7V7). The OpenBSD current viapm.c that support VT8237(same as VT8233). >How-To-Repeat: install 7.0 RC2 >Fix: patched kernel's dmesg >> viapropm0: port 0x500-0x5 0f at device 17.0 on pci0 smbus0: on viapropm0 smb0: on smbus0 isa0: on viapropm0 Add VT8237 pci-deviceID to viapm.c (and shrink code very little...) *** /usr/src/sys/pci/viapm.c.org Fri Feb 15 22:00:49 2008 --- /usr/src/sys/pci/viapm.c Fri Feb 15 22:10:29 2008 *************** static int viapm_debug = 0; *** 70,75 **** --- 70,76 ---- #define VIA_8233_PMU_ID 0x30741106 #define VIA_8233A_PMU_ID 0x31471106 #define VIA_8235_PMU_ID 0x31771106 + #define VIA_8237_PMU_ID 0x32271106 #define VIA_CX700_PMU_ID 0x83241106 #define VIAPM_INB(port) \ *************** viapm_pro_probe(device_t dev) *** 276,298 **** case VIA_8233_PMU_ID: case VIA_8233A_PMU_ID: - desc = "VIA VT8233 Power Management Unit"; - viapm->type = VIAPM_TYP_UNKNOWN; - base_cfgreg = VIAPM_8233_BASE; - goto viapro; - case VIA_8235_PMU_ID: ! desc = "VIA VT8235 Power Management Unit"; ! viapm->type = VIAPM_TYP_UNKNOWN; ! base_cfgreg = VIAPM_8233_BASE; ! goto viapro; ! case VIA_CX700_PMU_ID: ! desc = "VIA CX700 Power Management Unit"; ! viapm->type = VIAPM_TYP_UNKNOWN; base_cfgreg = VIAPM_8233_BASE; goto viapro; viapro: #ifdef VIAPM_BASE_ADDR --- 277,291 ---- case VIA_8233_PMU_ID: case VIA_8233A_PMU_ID: case VIA_8235_PMU_ID: ! case VIA_8237_PMU_ID: case VIA_CX700_PMU_ID: ! desc = "VIA VT8233/VT8235/VT8237/CX700 Power Management Unit"; ! viapm->type = VIAPM_TYP_8233; base_cfgreg = VIAPM_8233_BASE; goto viapro; + viapro: #ifdef VIAPM_BASE_ADDR >Release-Note: >Audit-Trail: >Unformatted: