From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Mar 11 00:36:41 1998
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) id AAA04816
	Wed, 11 Mar 1998 00:36:41 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) with ESMTP id AAA04811
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 11 Mar 1998 00:36:37 +0900 (JST)
Received: from triton.phantom.ne.jp (clt01.phantom.ne.jp [210.132.52.168]) by dns.phantom.ne.jp (8.8.4/3.5W) with SMTP id AAA12254; Wed, 11 Mar 1998 00:39:42 +0900 (JST)
Date: Wed, 11 Mar 1998 00:39:42 +0900 (JST)
Message-Id: <199803101539.AAA12254@dns.phantom.ne.jp>
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: Your message of "Tue, 10 Mar 1998 06:01:58 +0900 (JST)"
             <199803092101.GAA11190@dns.phantom.ne.jp>
From: Naoaki Sumida <naoaki@phantom.ne.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Mailer: WeMail32[1.04] ID:1A0152
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 25684
Subject: [FreeBSD-users-jp 25684] Re: Cyclades Cyclom-Y PCI card support
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org



$B$9$_$@(B $B$G$9!#(B

>>
>>Fatal trap 12: page fault while in kernel mode
>>

>>
>>$B%Q%C%A;n$7$F$_$^$9!)(B
>>$BC5$5$J$$$H$$$1$J$$$N$G!#(B


$B8+$D$+$j$^$7$?!#(B
/sys/i386/isa/cy.c $B$N%Q%C%A$G$9!#(B


$B!t!t!t!t!t!t!t(B  $B$3$3$+$i(B  $B!t!t!t!t!t!t!t!t(B
*** cy.c.orig	Wed May  7 11:52:43 1997
--- cy.c	Sat May 10 13:57:49 1997
***************
*** 284,289 ****
--- 284,291 ----
  	u_long	bytes_out;
  	u_int	delta_error_counts[CE_NTYPES];
  	u_long	error_counts[CE_NTYPES];
+ 	int	zero_count;
+ 	int	zero_retry;
  
  	u_int	recv_exception;	/* exception chars received */
  	u_int	mdm;		/* modem signal changes */
***************
*** 1102,1107 ****
--- 1104,1117 ----
  			int	ifree;
  
  			count = cd_inb(iobase, CD1400_RDCR, cy_align);
+ 			if (count == 0) {
+ 				com->zero_count++;
+ 				count = cd_inb(iobase, CD1400_RDCR, cy_align);
+ 				if (count == 0) {
+ 					com->zero_retry++;
+ 					goto cont;
+ 				}
+ 			}
  			com->bytes_in += count;
  			ioptr = com->iptr;
  			ifree = com->ibufend - ioptr;
***************
*** 2354,2359 ****
--- 2364,2379 ----
  			log(LOG_ERR, "cy%d: %u more %s%s (total %lu)\n",
  			    unit, delta, error_desc[errnum],
  			    delta == 1 ? "" : "s", total);
+ 		}
+ 		if (com->zero_count) {
+ 			log(LOG_ERR, "cy%d: zero count %d times.\n",
+ 			    unit, com->zero_count);
+ 			com->zero_count = 0;
+ 		}
+ 		if (com->zero_retry) {
+ 			log(LOG_ERR, "cy%d: zero retry %d times.\n",
+ 			    unit, com->zero_retry);
+ 			com->zero_retry = 0;
  		}
  	}
  }
$B!t!t!t!t!t!t!t!t!t(B $B$3$3$^$G(B $B!t!t!t!t!t!t!t(B


syslog $B$K5-O?$9$k0Y$K$A$g$C$HJ#;($G$9!#(B
$B<YKb$G$7$?$i!"(B1106 $B9TL\$K0J2<$rDI2C$9$k$@$1$G#O#K$G$9!#(B

if (count == 0)
	goto cont;


count $B$,(B 0 $B$N$^$^2<$N=hM}$K0\$k$H62$m$7$$;v$,5/$3$j$^$9!#(B
Cyclades $B$N(B Web $B$G$$$D$^$G7P$C$F$b%I%i%$%P$,99?7$5$l$J$$(B
$B$N$G!";d$N=j$@$1H/@8$9$k$N$+$H;W$C$F$$$^$7$?!#(B
$B$b$7!"$3$N%Q%C%A$G<}$^$k$h$&$G$9$H;d$b0l0B?4$G$9!#(B

