From owner-freebsd-mobile  Sun Jan 25 17:31:08 1998
Return-Path: <owner-freebsd-mobile@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id RAA15397
          for freebsd-mobile-outgoing; Sun, 25 Jan 1998 17:31:08 -0800 (PST)
          (envelope-from owner-freebsd-mobile@FreeBSD.ORG)
Received: from cesit1.unifi.it (cesit1.unifi.it [150.217.1.31])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA15343
          for <freebsd-mobile@FreeBSD.ORG>; Sun, 25 Jan 1998 17:31:04 -0800 (PST)
          (envelope-from ugo@dsi.UNIFI.IT)
Received: from aguirre.dsi.unifi.it by CESIT1.UNIFI.IT (PMDF V5.0-4 #3688)
 id <01ISTEPN4BXC000YIY@CESIT1.UNIFI.IT> for freebsd-mobile@FreeBSD.ORG; Mon,
 26 Jan 1998 02:30:54 +0100 (MET)
Received: from dsi.unifi.it (com4.unifi.it)
 by aguirre.dsi.unifi.it (4.1/SMI-4.1) id AA15957; Mon,
 26 Jan 1998 02:36:33 +0100
Received: from pegasus.home.net (pegasus.home.net [192.168.1.3])
 by dsi.unifi.it (8.8.8/8.8.8) with ESMTP id XAA02556; Sun,
 25 Jan 1998 23:33:45 +0100 (MET envelope-from ugo)
Received: (from ugo@localhost) by pegasus.home.net (8.8.8/8.8.7)
 id XAA00346; Sun, 25 Jan 1998 23:33:45 +0100 (MET)
Date: Sun, 25 Jan 1998 23:33:45 +0100 (MET)
From: Ugo Paternostro <paterno@dsi.UNIFI.IT>
Subject: Re: Cirrus Logic PD6729
In-reply-to: <199801251859.LAA28629@mt.sri.com>
To: Nate Williams <nate@mt.sri.com>
Cc: freebsd-mobile@FreeBSD.ORG
Message-id: <XFMail.980125233345.paterno@dsi.UNIFI.IT>
Organization: Not an organization
MIME-version: 1.0
X-Mailer: XFMail 1.2 [p0] on FreeBSD
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 8bit
X-Priority: 3 (Normal)
Sender: owner-freebsd-mobile@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org

On 25-Jan-98 Nate Williams wrote about "Re: Cirrus Logic PD6729":
> This is a -current box?  I didn't realize that.  All bets are off as to

Yes, it is: I don't like easy things, you know... ;-)

> stability.  These panics might not even be related to the PCCARD stuff
> because of the VM stuff (alhtough they might be mostly worked around as
> of a couple of days ago.)

No, wait, please: the panic at the end (while unmounting disks) is surely
related to a vm problem, in fact it happens while the kernel is in free(), but
I would bet that the panic at the even boots is all but a vm problem...

>> What about interrupt vector initialization? Where does irq 10 vector point
> 
> Unless the FreeBSD kernel attaches a driver to it, they are all attached
> to IRQ 7, the 'junk' IRQ.

Sorry, I don't understand that: you mean that every IRQ will fire the same
handler?

> [ Success deleted ]

You're too optimist :(

It still *seems* to work: this is an extract of "dmesg":

    [...omissis...]
    apm: found APM BIOS version 1.2
    Freelist of IRQ's <0x8e20>
    PC-Card Cirrus Logic PD672X (5 mem & 2 I/O windows)
    pcic: controller irq 5
    pcic_probe: slot 0: ADDDWINE: 0x60
    pcic_probe: slot 0: INT_GEN: 0x6a
    pcicintr: unit 0
   ^^^^^^^^^^^^^^^^^^
    pcic_probe: slot 1: ADDDWINE: 0x00
    pcic_probe: slot 1: INT_GEN: 0x00
    Initializing PC-card drivers: ep sio
    Intel Pentium F00F detected, installing workaround
    Card inserted, slot 0
    WARNING: / was not properly dismounted.
    OSS/FreeBSD loading, address = f3fbc020
    Map I/O 0x300 (size 0x10) on Window 0
    allocate_driver: slot 0: irq 10
    pcic_mapirq: slot 0: irq 10
    ep0: utp/bnc[*UTP*] address 00:60:08:22:1e:cb

as you can see I added some printf, to understand what is happening at boot
time. I enphatized the pcicintr line, to show you that as soon as the pcic
driver powers the board on, it generates an interrupt.

If I compile without the PCIC_DEBUG and the (new) PCIC_DEBUG_UGO defines, the
kernel crashes, and the machine don't see the HD any more.

BTW, the "WARNING: / was not properly dismounted." message comes of the vm
panic, at the shutdown.

> Let me know when you get things ready.

I will test the patches until I'm able to reboot without any panic (vm or PCMCIA
related), then I will send them to you.

> Nate

Bye, UP