From hubert@iris.co.fr.clara.net  Thu Dec 12 15:20:26 2002
Return-Path: <hubert@iris.co.fr.clara.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E04E537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Dec 2002 15:20:25 -0800 (PST)
Received: from mail.iris3.com (host38.co.fr.clara.net [212.43.196.38])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1C26843EB2
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Dec 2002 15:20:25 -0800 (PST)
	(envelope-from hubert@iris.co.fr.clara.net)
Received: from iris.co.fr.clara.net (localhost [127.0.0.1])
	by mail.iris3.com (Postfix) with ESMTP id 63ECF2EC4BA
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 Dec 2002 00:21:25 +0000 (GMT)
Received: (from hubert@localhost)
	by iris.co.fr.clara.net  id gBD0LPCH003885;
	Fri, 13 Dec 2002 00:21:25 GMT
Message-Id: <200212130021.gBD0LPCH003885@iris.co.fr.clara.net>
Date: Fri, 13 Dec 2002 00:21:25 GMT
From: Hubert Tournier <hubert@tournier.org>
Reply-To: Hubert Tournier <hubert@tournier.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PC-CARD presence makes kernel panic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46223
>Category:       i386
>Synopsis:       PC-CARD presence makes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 12 15:30:02 PST 2002
>Closed-Date:    Fri Jul 18 23:15:52 MDT 2003
>Last-Modified:  Fri Jul 18 23:15:52 MDT 2003
>Originator:     Hubert Tournier <hubert@frbsd.org>
>Release:        FreeBSD 5.0-DP2 i386
>Organization:
Home
>Environment:
System: FreeBSD 5.0-DP2 FreeBSD 5.0-DP2 #1: Sat Nov 16 13:38:33 GMT 2002
root@tomcat.bmah.org:/usr/obj/usr/src/sys/GENERIC i386

Machine : Toshiba Satellite 4080XCDT laptop
PC-CARD : Xircom CreditCard Ethernet 10/100+ Modem 56 (CEM56-100)

>Description:

I saw in the release notes that 16-bit PC Card support is not yet
functional, but is it normal that presence of the previously mentioned card
panics the kernel ? :

	kernel: Fatal trap 12: page fault while in kernel mode
	kernel: fault code = supervisor read, page not present
	kernel: panic: page fault

Relevant parts of /var/log/messages follows :

System started with PCMCIA card :

--- part1 begins here ---
[...]
Nov 25 00:02:39  kernel: cbb0: <ToPIC97 PCI-CardBus Bridge> at device 2.0 on pci0
Nov 25 00:02:39  kernel: cardbus0: <CardBus bus> on cbb0
Nov 25 00:02:39  kernel: pccard0: <16-bit PCCard bus> on cbb0
Nov 25 00:02:39  kernel: pcib0: slot 2 INTA is routed to irq 11
Nov 25 00:02:39  kernel: cbb1: <ToPIC97 PCI-CardBus Bridge> at device 2.1 on pci0
Nov 25 00:02:39  kernel: cardbus1: <CardBus bus> on cbb1
Nov 25 00:02:39  kernel: pccard1: <16-bit PCCard bus> on cbb1
Nov 25 00:02:39  kernel: pcib0: slot 2 INTB is routed to irq 11
[...]
Nov 25 00:02:40  kernel: acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
Nov 25 00:02:40  kernel: 
Nov 25 00:02:40  kernel: 
Nov 25 00:02:40  kernel: Fatal trap 12: page fault while in kernel mode
Nov 25 00:02:40  kernel: fault virtual address	= 0xcb360000
Nov 25 00:02:40  kernel: fault code		= supervisor read, page not present
Nov 25 00:02:40  kernel: instruction pointer	= 0x8:0xc0236af5
Nov 25 00:02:40  kernel: stack pointer	        = 0x10:0xcaacf94c
Nov 25 00:02:40  kernel: frame pointer	        = 0x10:0xcaacfb78
Nov 25 00:02:40  kernel: code segment		= base 0x0, limit 0xfffff, type 0x1b
Nov 25 00:02:40  kernel: = DPL 0, pres 1, def32 1, gran 1
Nov 25 00:02:40  kernel: processor eflags	= interrupt enabled, resume, IOPL = 0
Nov 25 00:02:40  kernel: current process		= 8 (cbb0)
Nov 25 00:02:40  kernel: trap number		= 12
Nov 25 00:02:40  kernel: panic: page fault
Nov 25 00:02:40  kernel: 
Nov 25 00:02:40  kernel: syncing disks... 
Nov 25 00:02:40  kernel: done
Nov 25 00:02:40  kernel: Uptime: 1s
Nov 25 00:02:40  kernel: Terminate ACPI
Nov 25 00:02:40  kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Nov 25 00:02:40  kernel: --> Press a key on the console to reboot,
Nov 25 00:02:40  kernel: --> or switch off the system now.
Nov 25 00:02:40  kernel: Rebooting...
--- part1 ends here ---

System started without PCMCIA card leads to console login prompt, then upon
insertion of the PCMCIA :

--- part2 begins here ---
Nov 25 00:04:04  syslogd: kernel boot file is /boot/kernel/kernel
Nov 25 00:04:04  kernel: 
Nov 25 00:04:04  kernel: 
Nov 25 00:04:04  kernel: Fatal trap 12: page fault while in kernel mode
Nov 25 00:04:04  kernel: fault virtual address	= 0xcb9fb000
Nov 25 00:04:04  kernel: fault code		= supervisor read, page not present
Nov 25 00:04:04  kernel: instruction pointer	= 0x8:0xc0236af5
Nov 25 00:04:04  kernel: stack pointer	        = 0x10:0xcaacf94c
Nov 25 00:04:04  kernel: frame pointer	        = 0x10:0xcaacfb78
Nov 25 00:04:04  kernel: code segment		= base 0x0, limit 0xfffff, type 0x1b
Nov 25 00:04:04  kernel: = DPL 0, pres 1, def32 1, gran 1
Nov 25 00:04:04  kernel: processor eflags	= interrupt enabled, resume, IOPL = 0
Nov 25 00:04:04  kernel: current process		= 8 (cbb0)
Nov 25 00:04:04  kernel: trap number		= 12
Nov 25 00:04:04  kernel: panic: page fault
Nov 25 00:04:04  kernel: 
Nov 25 00:04:04  kernel: syncing disks... panic: bdwrite: buffer is not busy
Nov 25 00:04:04  kernel: Uptime: 36s
Nov 25 00:04:04  kernel: Terminate ACPI
Nov 25 00:04:04  kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Nov 25 00:04:04  kernel: --> Press a key on the console to reboot,
Nov 25 00:04:04  kernel: --> or switch off the system now.
Nov 25 00:04:04  kernel: Rebooting...
--- part2 ends here ---

>How-To-Repeat:

Insert the card or reboot with the card.

>Fix:

Don't leave this card inserted (or fallback to FreeBSD 4.x where it worked
fine).

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 17:05:50 PDT 2003 
Responsible-Changed-Why:  
Assign to pccard maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46223 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Fri Jul 18 23:15:17 MDT 2003 
State-Changed-Why:  
This is a duplicate of kern/54626 


http://www.freebsd.org/cgi/query-pr.cgi?pr=46223 
>Unformatted:
