Date: Thu, 06 Sep 2001 20:19:01 +0200 From: "Lars =?iso-8859-1?Q?K=F6ller?=" <LKoeller@cc.fh-lippe.de> To: "Justin T. Gibbs" <gibbs@scsiguy.com> Cc: Lars =?iso-8859-1?Q?K=F6ller?= <lkoeller@cc.fh-lippe.de>, "Kenneth D. Merry" <ken@plutotech.com>, freebsd-scsi@FreeBSD.ORG Subject: Re: Wire of SCSI devices gives warning messages Message-ID: <200109061819.f86IJ1f01094@odie.lippe.de> In-Reply-To: Message from "Justin T. Gibbs" <gibbs@scsiguy.com> of "Tue, 04 Sep 2001 15:21:18 MDT." <200109042121.f84LLIY56024@aslan.scsiguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi!
No. it doesn't help, with this patch more devices and every
lunproduce a warning message:
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:1): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:1): Second device (probe device at scbus1 target 6 lun 1) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:1): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:1): Second device (probe device at scbus1 target 8 lun 1) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Second device (probe device at scbus1 target 6 lun 2) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Second device (probe device at scbus1 target 0 lun 1) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:2): Second device (probe device at scbus1 target 9 lun 1) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Second device (probe device at scbus1 target 8 lun 2) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Second device (probe device at scbus1 target 6 lun 3) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:3): Second device (probe device at scbus1 target 10 lun 1) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:4): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:4): Second device (probe device at scbus1 target 6 lun 4) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:4): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:4): Second device (probe device at scbus1 target 8 lun 3) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Second device (probe device at scbus1 target 9 lun 2) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Second device (probe device at scbus1 target 6 lun 5) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:5): Second device (probe device at scbus1 target 0 lun 2) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Second device (probe device at scbus1 target 10 lun 2) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Second device (probe device at scbus1 target 8 lun 4) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:6): Second device (probe device at scbus1 target 6 lun 6) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:7): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:7): Second device (probe device at scbus1 target 6 lun 7) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:7): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:5:7): Second device (probe device at scbus1 target 8 lun 5) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Second device (probe device at scbus1 target 0 lun 3) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Second device (probe device at scbus1 target 10 lun 3) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Second device (probe device at scbus1 target 8 lun 6) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Duplicate Wired Device entry!
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:3): Second device (probe device at scbus1 target 8 lun 7) will not be wired
Sep 6 19:43:18 odie /kernel: (probe0:ahc1:0:9:4): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:4): Second device (probe device at scbus1 target 10 lun 4) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:4): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:4): Second device (probe device at scbus1 target 0 lun 4) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:5): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:5): Second device (probe device at scbus1 target 10 lun 5) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:5): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:5): Second device (probe device at scbus1 target 0 lun 5) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:6): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:6): Second device (probe device at scbus1 target 10 lun 6) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:7): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:7): Second device (probe device at scbus1 target 0 lun 6) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:7): Duplicate Wired Device entry!
Sep 6 19:43:19 odie /kernel: (probe0:ahc1:0:9:7): Second device (probe device at scbus1 target 10 lun 7) will not be wired
Sep 6 19:43:19 odie /kernel: (probe0:ahc0:0:4:3): Duplicate Wired Device entry!
....
and the compiler stated a
possible use of uninitialized variable hit in the line
unit = camperiphnextunit(p_drv, unit, /*wired*/hit, pathid,
target, lun);
In reply to "Justin T. Gibbs" who wrote:
>Justin
>
>Index: cam_periph.c
>===================================================================
>RCS file: /usr/cvs/src/sys/cam/cam_periph.c,v
>retrieving revision 1.24.2.1
>diff -c -r1.24.2.1 cam_periph.c
>*** cam_periph.c 2000/09/11 05:37:00 1.24.2.1
>--- cam_periph.c 2001/09/04 21:19:10
>***************
>*** 330,341 ****
> char pathbuf[32], *strval, *periph_name;
>
> unit = 0;
>- hit = 0;
>
> periph_name = p_drv->driver_name;
> snprintf(pathbuf, sizeof(pathbuf), "scbus%d", pathid);
> i = -1;
> while ((i = resource_locate(i, periph_name)) != -1) {
> dname = resource_query_name(i);
> dunit = resource_query_unit(i);
> if (resource_string_value(dname, dunit, "at", &strval) == 0) {
>--- 330,341 ----
> char pathbuf[32], *strval, *periph_name;
>
> unit = 0;
>
> periph_name = p_drv->driver_name;
> snprintf(pathbuf, sizeof(pathbuf), "scbus%d", pathid);
> i = -1;
> while ((i = resource_locate(i, periph_name)) != -1) {
>+ hit = 0;
> dname = resource_query_name(i);
> dunit = resource_query_unit(i);
> if (resource_string_value(dname, dunit, "at", &strval) == 0) {
>
Regards
Lars
--
Lars Köller
E-Mail: lkoeller@cc.fh-lippe.de (LKoeller@FreeBSD.ORG)
PGP-key: http://www.pgp.net/pgpnet/www-key.html
-------- FreeBSD, was sonst? ---- http://www.de.freebsd.org --------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109061819.f86IJ1f01094>
