From owner-freebsd-stable@FreeBSD.ORG Sun Dec 11 20:14:06 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCDE816A41F for ; Sun, 11 Dec 2005 20:14:06 +0000 (GMT) (envelope-from mikes@siralan.org) Received: from rader.servnow.com (rader5.servnow.com [69.93.129.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4818043D60 for ; Sun, 11 Dec 2005 20:14:06 +0000 (GMT) (envelope-from mikes@siralan.org) Received: from 12-210-221-89.client.insightbb.com ([12.210.221.89] helo=familysquires.net) by rader.servnow.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52) id 1ElXa3-0002CC-8d for freebsd-stable@freebsd.org; Sun, 11 Dec 2005 15:13:59 -0500 Date: Sun, 11 Dec 2005 15:14:02 -0500 (EST) From: "Michael L. Squires" X-X-Sender: mikes@familysquires.net To: freebsd-stable@freebsd.org In-Reply-To: <20050925142016.L7868@familysquires.net> Message-ID: <20051211145338.J56200@familysquires.net> References: <87y85nuqhy.fsf@beaker.data-secure.net> <4335D1D2.9060501@leadhill.net> <87r7bdt6o3.fsf@beaker.data-secure.net> <20050925142016.L7868@familysquires.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rader.servnow.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - siralan.org X-Source: X-Source-Args: X-Source-Dir: Subject: Toshiba 8100 Fix (was Re: 5.4-STABLE changes breaks IDE boot (was Re: 5.3 -> 5.4 breaks ATA (Intel ICH2)) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 20:14:07 -0000 I have a Toshiba 8100 notebook which runs 5.4-STABLE. Kernels compiled after some time in September 2005 fail to boot; the machine locks up right after the ata controller is called in the boot messages. I have traced the problem to a change to /usr/src/sys/dev/pci.c, (see below from my cvsup log). I found the problem by cvsup'ing /usr/src for dates starting with my last working kernel and once I had the date of problem code tied down to a couple of days adding in each update to see if it caused the failure to boot. I then added the fix to the latest 5.4 sources to make sure that the fix still worked. The problem (really the Toshiba 8100 BIOS problem) was triggered by: Edit src/sys/dev/pci/pci.c Add delta 1.264.2.12 2005.09.05.18.09.20 imp which changes line 835 of pci.c from if (base == 0) to if (base == 0 || map == testval) The sysctl parameter "hw.pci.enable_io_modes" is supposed to allow PCs with "lazy" BIOSes to boot, but in the case of the 8100 setting hw.pci.enable_io_modes: 0 doesn't allow the system to boot. This is obviously a problem with the Toshiba BIOS, which I know from other times has other problems; I am putting this here in case someone else has the same problem and wants to boot FreeBSD 5.4-STABLE with a kernel revision after 9/5/2005. Mike Squires