Bug 30526

Summary: inserting a Sony Ninja-ATA pcmcia style cdrom drive freezes machine
Product: Base System Reporter: Dane Foster <dene>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Dane Foster 2001-09-12 18:20:00 UTC
inserting the pcmcia cdrom (Sony Vaio Ninja-ATA) at any time cause the machine to freeze, no panic message. pccardd see the insert, and upon loading the driver, freezes.
debug mode prints out this message before the machine freezes:

ata4 at port 0x180-0x187,0x386 iomem 0xd5000-0xd5fff irq 9 slot 0 on pccard 0

Fix: 

none
How-To-Repeat: insert the pccard for the cdrom.
Comment 1 Christopher Shumway 2001-09-12 20:17:08 UTC
On Wed, 12 Sep 2001, Dane Foster wrote:

>
> >Number:         30526
> >Category:       misc
> >Synopsis:       inserting a Sony Ninja-ATA pcmcia style cdrom drive freezes machine
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Wed Sep 12 10:20:00 PDT 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     Dane Foster
> >Release:        4.4-RC
> >Organization:
> none
> >Environment:
> FreeBSD crackwhore.slush.ca 4.4-RC FreeBSD 4.4-RC #0: Tue Sep 11 16:25:34 MDT 2001     root@crackwhore.slush.ca:/.amd_mnt/mort/usr/src/sys/compile/booger  i386
>
> >Description:
> inserting the pcmcia cdrom (Sony Vaio Ninja-ATA) at any time cause the machine to freeze, no panic message. pccardd see the insert, and upon loading the driver, freezes.
> debug mode prints out this message before the machine freezes:
>
> ata4 at port 0x180-0x187,0x386 iomem 0xd5000-0xd5fff irq 9 slot 0 on pccard 0
>
>
> >How-To-Repeat:
> insert the pccard for the cdrom.
> >Fix:
> none
> >Release-Note:
> >Audit-Trail:
> >Unformatted:

If its anything like my Sony Viao Z505SX, then you need to switch the PCIC to
ISA routing otherwize the machine will 'hang' as you described on the
insertion of any PCMCIA cards.  To switch the PCIC into ISA IRQ routing, put
the following into your /boot/loader.conf:

hw.pcic.intr_path=1
hw.pcic.irq=0

When you do this, you need to tell pccardd(1) to assign an IRQ to the PCMCIA
device that is free on your laptop.  ISA IRQ's cannot be shared with other
devices. For example, on my laptop, IRQ 5 is free, so I have a line in
/etc/pccard.conf that gives the IRQ as such:

irq 5

---
Christopher Shumway				cshumway@titan-project.org
						cshumway@freebsd.org
Comment 2 iedowse freebsd_committer freebsd_triage 2002-11-14 01:50:03 UTC
State Changed
From-To: open->feedback


Does this CD-ROM drive still not work for you with more recent 
releases?
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2003-05-05 11:05:34 UTC
State Changed
From-To: feedback->closed

feedback timeout.