From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 02:20:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (unknown [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A8416A4CE for ; Fri, 2 Jul 2004 02:20:43 +0000 (GMT) Received: from web53302.mail.yahoo.com (web53302.mail.yahoo.com [206.190.39.231]) by mx1.FreeBSD.org (Postfix) with SMTP id E0CB643D1F for ; Fri, 2 Jul 2004 02:20:42 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040702021242.67064.qmail@web53302.mail.yahoo.com> Received: from [151.196.123.49] by web53302.mail.yahoo.com via HTTP; Thu, 01 Jul 2004 19:12:42 PDT Date: Thu, 1 Jul 2004 19:12:42 -0700 (PDT) From: Jiafu He To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 02:20:44 -0000 Hi, folks, Rel 5.2.1 can't be installed on my machine due to APIC problems. The error message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". It is a Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. Debugging results using DDB ("show intrcnt") show no interrupts ever occur. Disable the APIC feature on BIOS, then the disk is detected and everything works fine. Installing release 5.1 and 4.10 both work perfect. So I guess there must be problems with the APIC or IO APIC initialization code in release 5.2.1. Below are the printouts by calling lapic_dump(): If ENABLE APIC in BIOS: ------------------------------------------------------------------------------------- ID:0x00000000 VER:0x00050014 LDR:0x01000000 DFR:0x0fffffff Lint0:0x00010700 Lint1:0x00000400 TPR:0x00000000 SVR:0x000001ff -------------------------------------------------------------------------------------- If DISABLE APIC in BIOS: -------------------------------------------------------------------------------------- ID:0xf000fea5 VER:0xf000ef6f LDR:0xf000e816 DFR:0xf000e816 Lint0:0xef1b8579 Lint 1:0xef190000 TPR:0xf000e816 SVR:0xf000e816 -------------------------------------------------------------------------------------- The bit 16 of Lint0 (mask bit) is 1 in the former case. Is that the cause of the problem? Problem not, since now IOAPIC in VT-8235 is used and Lint0 may not be useful any longer (pls correct me if the statement is wrong). Try to change the setting by writing to the LVT but couldn't succeed. I am still not so familiar with the Pentium architecture and need more time to practice. Any comments and help are welcome. Thanks in advance. Jiafu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!