Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 1999 16:53:47 -0500
From:      Charles Owens <owensc@enc.edu>
To:        "Justin T. Gibbs" <gibbs@narnia.plutotech.com>
Cc:        scsi@FreeBSD.org
Subject:   Re: ch(4) driver is noisy
Message-ID:  <36F80D6B.72DA5D45@enc.edu>
References:  <199903221902.MAA26990@narnia.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--------------3B23D7ECAB1B5BEB245AD9E6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Justin,

After applying your patch... this is what I get... whadaya think?

Mar 23 16:41:09 r2s3 /kernel: (ch0:ahc0:0:5:0): warning, READ ELEMENT STATUS avail(2) != count(1)
Mar 23 16:41:09 r2s3 /kernel: ch: warning: could not map element source address 19190d to a valid element type

Thanks,

Charles

"Justin T. Gibbs" wrote:

> In article <36F684F6.FF645E3B@enc.edu> you wrote:
> > Every time I use the chio command to control my tape library
> > (MediaLogic) I get a kernal message or the sort
> >
> > Mar 22 12:29:42 r2s3 /kernel: (ch0:ahc0:0:5:0): warning, READ ELEMENT STATUS avail != count
>
> Hmm.  This will take a little more investigation on my part to see how
> the code is supposed to work.  It seems that chio is not requesting
> the same number of elements to be reported as known to your changer
> device.  Can you apply this patch which will instrument the code and
> help me figure out what is going on.
>
> --
> Justin
>
> ==== //depot/cam/sys/cam/scsi/scsi_ch.c#18 - /a/perforce/src/sys/cam/scsi/scsi_ch.c ====
> *** /tmp/tmp.26982.0    Mon Mar 22 12:02:10 1999
> --- /a/perforce/src/sys/cam/scsi/scsi_ch.c      Mon Mar 22 12:02:02 1999
> ***************
> *** 1189,1195 ****
>
>         if (avail != cesr->cesr_element_count) {
>                 xpt_print_path(periph->path);
> !               printf("warning, READ ELEMENT STATUS avail != count\n");
>         }
>
>         user_data = (struct changer_element_status *)
> --- 1189,1196 ----
>
>         if (avail != cesr->cesr_element_count) {
>                 xpt_print_path(periph->path);
> !               printf("warning, READ ELEMENT STATUS avail(%d) != count(%d)\n",
> !                      avail, cesr->cesr_element_count);
>         }
>
>         user_data = (struct changer_element_status *)

--
---
-------------------------------------------------------------------------
  Charles N. Owens                               Email:  owensc@enc.edu
                                             http://www.enc.edu/~owensc
  Network & Systems Administrator
  Information Technology Services  "Outside of a dog, a book is a man's
  Eastern Nazarene College         best friend.  Inside of a dog it's
                                   too dark to read." - Groucho Marx
-------------------------------------------------------------------------


--------------3B23D7ECAB1B5BEB245AD9E6
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Justin,
<p>After applying your patch... this is what I get... whadaya think?
<pre>Mar 23 16:41:09 r2s3 /kernel: (ch0:ahc0:0:5:0): warning, READ ELEMENT STATUS avail(2) != count(1)
Mar 23 16:41:09 r2s3 /kernel: ch: warning: could not map element source address 19190d to a valid element type
</pre>
Thanks,
<p>Charles
<p>"Justin T. Gibbs" wrote:
<blockquote TYPE=CITE>In article &lt;36F684F6.FF645E3B@enc.edu> you wrote:
<br>> Every time I use the chio command to control my tape library
<br>> (MediaLogic) I get a kernal message or the sort
<br>>
<br>> Mar 22 12:29:42 r2s3 /kernel: (ch0:ahc0:0:5:0): warning, READ ELEMENT
STATUS avail != count
<p>Hmm.&nbsp; This will take a little more investigation on my part to
see how
<br>the code is supposed to work.&nbsp; It seems that chio is not requesting
<br>the same number of elements to be reported as known to your changer
<br>device.&nbsp; Can you apply this patch which will instrument the code
and
<br>help me figure out what is going on.
<p>--
<br>Justin
<p>==== //depot/cam/sys/cam/scsi/scsi_ch.c#18 - /a/perforce/src/sys/cam/scsi/scsi_ch.c
====
<br>*** /tmp/tmp.26982.0&nbsp;&nbsp;&nbsp; Mon Mar 22 12:02:10 1999
<br>--- /a/perforce/src/sys/cam/scsi/scsi_ch.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Mon Mar 22 12:02:02 1999
<br>***************
<br>*** 1189,1195 ****
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (avail != cesr->cesr_element_count)
{
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xpt_print_path(periph->path);
<br>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printf("warning, READ ELEMENT STATUS avail != count\n");
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_data = (struct changer_element_status
*)
<br>--- 1189,1196 ----
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (avail != cesr->cesr_element_count)
{
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xpt_print_path(periph->path);
<br>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printf("warning, READ ELEMENT STATUS avail(%d) != count(%d)\n",
<br>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
avail, cesr->cesr_element_count);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_data = (struct changer_element_status
*)</blockquote>

<p>--
<br>---
<br>-------------------------------------------------------------------------
<br>&nbsp; Charles N. Owens&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Email:&nbsp; owensc@enc.edu
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="http://www.enc.edu/~owensc">http://www.enc.edu/~owensc</A>;
<br>&nbsp; Network &amp; Systems Administrator
<br>&nbsp; Information Technology Services&nbsp; "Outside of a dog, a book
is a man's
<br>&nbsp; Eastern Nazarene College&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
best friend.&nbsp; Inside of a dog it's
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
too dark to read." - Groucho Marx
<br>-------------------------------------------------------------------------
<br>&nbsp;</html>

--------------3B23D7ECAB1B5BEB245AD9E6--



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?36F80D6B.72DA5D45>