Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Apr 2000 06:31:26 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        imp@FreeBSD.org
Cc:        FreeBSD-mobile@FreeBSD.ORG
Subject:   [NEWCARD] patch against panics (Re: cvs commit: src/sys/dev/pcic i82365.c i82365_isa.c i82365var.h src/sys/dev/pccard card_if.m pccard.c pccard_cis.c pccardvar.h)
Message-ID:  <200004162131.GAA82367@tasogare.imasy.or.jp>
In-Reply-To: Your message of "Wed, 12 Apr 2000 23:42:59 -0700 (PDT)" <200004130642.XAA39181@freefall.freebsd.org>
References:  <200004130642.XAA39181@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Warner-san,

>   This version now panics when we try to read the CIS.  The next batch
>   of work to make this work is what was outlined in my posting to mobile
>   about resource allocation and such.

I've just tried the latest NEWCARD, and noticed that someting wrong with
bus_space stuff.  Here is the patch to avoid panics, not for the solution :-)

# I'm going to bed...zzz

Index: dev/pccard/pccard_cis.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/pccard/pccard_cis.c,v
retrieving revision 1.8
diff -u -r1.8 pccard_cis.c
--- dev/pccard/pccard_cis.c	2000/04/13 06:42:57	1.8
+++ dev/pccard/pccard_cis.c	2000/04/16 21:10:36
@@ -152,8 +152,12 @@
 	while (1) {
 		while (1) {
 			/* get the tuple code */
-
+#if 0
+			/* something wrong with macro or inline ...*/
 			tuple.code = pccard_cis_read_1(&tuple, tuple.ptr);
+#else
+			tuple.code = inb(tuple.memh + tuple.mult*tuple.ptr);
+#endif
 
 			/* two special-case tuples */
 
@@ -170,7 +174,11 @@
 					goto done;
 				}
 				tuple.ptr++;
+#if 0
 				break;
+#else
+				goto done;	/* to exit from loop :-) */
+#endif
 			}
 			/* now all the normal tuples */
 
Index: conf/files
===================================================================
RCS file: /home/ncvs/src/sys/conf/files,v
retrieving revision 1.353
diff -u -r1.353 files
--- conf/files	2000/04/15 03:34:09	1.353
+++ conf/files	2000/04/16 19:45:04
@@ -189,6 +189,7 @@
 dev/pccard/pccard.c	optional pccard
 dev/pccard/pccard_cis.c	optional pccard
 dev/pccard/pccard_cis_quirks.c optional pccard
+dev/pccard/card_if.m	optional pccard
 dev/pccard/power_if.m	optional pccard
 dev/pcic/i82365.c	optional pcic pccard
 dev/pcic/i82365_isa.c	optional pcic pccard


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004162131.GAA82367>