Subject: port-macppc/13576: wdc0:0:0 lost interrupt
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@mac.com>
List: netbsd-bugs
Date: 07/28/2001 09:10:32
>Number:         13576
>Category:       port-macppc
>Synopsis:       wdc0:0:0 lost interrupt
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 09:07:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        Current (2001-07-27(
>Organization:
>Environment:
NetBSD localhost 1.5X NetBSD 1.5X (NETLUX) #7: Fri Jul 27 14:04:00 EDT 2001     boor@localhost:/usr/trunk/sys/arch/macppc/compile/NETLUX macppc

>Description:
Current macppc/dev/wdc_obio.c doesn't work on G4 Ti

The problem was introduced between versions 1.12 and 1.13.  A draft patch which differs from the committed change does work.

Grubbing through the code you find the only difference is in the conf parameter passed in:

bus_space_write_4(chp->cmd_iot, chp->cmd_ioh, CONFIG_REG, conf);

the broken wdc passes in:

chp->cmd_iot=8001f004, chp->cmd_ioh=ecdf1000, CONFIG_REG=20, conf=11823

the working wdc passes in:

chp->cmd_iot=8001f004, chp->cmd_ioh=ecdf1000, CONFIG_REG=20, conf=11800

i.e. I think it has something to do with 0x23.

>How-To-Repeat:
Try to boot a current kernel on a G4 Ti
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: