From owner-freebsd-stable Sun Jul 12 00:48:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA20377 for freebsd-stable-outgoing; Sun, 12 Jul 1998 00:48:31 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from public.bta.net.cn (public.bta.net.cn [202.96.0.97]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA20358 for ; Sun, 12 Jul 1998 00:48:28 -0700 (PDT) (envelope-from robinson@public.bta.net.cn) Received: (from robinson@localhost) by public.bta.net.cn (8.8.5/8.8.5) id PAA24735 for freebsd-stable@FreeBSD.ORG; Sun, 12 Jul 1998 15:47:47 +0800 (GMT) Date: Sun, 12 Jul 1998 15:47:47 +0800 (GMT) From: Michael Robinson Message-Id: <199807120747.PAA24735@public.bta.net.cn> To: freebsd-stable@FreeBSD.ORG Subject: ppbus drivers failing to probe vpo: problem solved (sort of) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The vpo (ZIP drive) probe failure I reported earlier turns out to be some sort of Heisenbug. When I add debugging code to the vpo_detect() function in /sys/dev/ppbus/vpo.c (as shown below), my ZIP drive magically starts working. Comments? Suggestions? -Michael Robinson -----from /sys/dev/ppbus/vpo.c----- /* * vpo_detect() * * Detect and initialise the VP0 adapter. */ static int vpo_detect(struct vpo_data *vpo) { int error; error = vpoio_disconnect(vpo); printf("vpoio_disconnect(vpo): %x\n", error); error = vpoio_connect(vpo, PPB_DONTWAIT); printf("vpoio_connect(vpo, PPB_DONTWAIT): %x\n", error); if ((error = vpoio_in_disk_mode(vpo)) != 0) { printf("vpoio_in_disk_mode(vpo): %x\n", error); vpoio_disconnect(vpo); return (VP0_EINITFAILED); } /* send SCSI reset signal */ printf("vpoio_reset(vpo)\n"); vpoio_reset (vpo); printf("vpoio_disconnect(vpo)\n"); vpoio_disconnect(vpo); if (vpoio_in_disk_mode(vpo)) { printf("error: vpoio_in_disk_mode(vpo)\n"); return (VP0_EINITFAILED); } printf("return(0)\n"); return (0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message