Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2003 12:03:55 +0200 (CEST)
From:      Harti Brandt <brandt@fokus.fraunhofer.de>
To:        Vincent Jardin <vjardin@wanadoo.fr>
Cc:        freebsd-atm <freebsd-atm@freebsd.org>
Subject:   Re: patm, idt, ipfw - next adentures
Message-ID:  <20031006114911.G41960@beagle.fokus.fraunhofer.de>
In-Reply-To: <200310022219.56574.vjardin@wanadoo.fr>
References:  <20031002105313.CD52B2383C@arrakis.solutions.net.pl> <200310022219.56574.vjardin@wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2 Oct 2003, Vincent Jardin wrote:

VJ>A part of this error message is related to the following status that is
VJ>returned by the Chipset:
VJ>            if (stat_val & IDT_STAT_FBQ1A) {
VJ>                printf("proatm%d: not enough large buffers.\n", proatm->unit);
VJ>                proatm_ld_rcv_buf(proatm, 0, 64);
VJ>            }
VJ>see
VJ>http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/proatm/Attic/proatm.c?rev=1.1.2.2&content-type=text/x-cvsweb-markup
VJ>
VJ>According the the IDT77252's manual : "This field indicates that FBQ1 has
VJ>fewer empty free buffers than the value specified in the Threshold (THLD)
VJ>field of the Free Buffer Size 1 (FBQS1) register. This bit will be set only
VJ>if the Free Buffer Queue Interrupt Enable (FBQIE) bit of the Configuration
VJ>register is set to 1. This bit will return to zero one buffers are added to
VJ>the FBQ."
VJ>
VJ>I do not understand why your HW is always requesting for more buffers !! Have
VJ>you done something special ?

There maybe several reasons for this:

1) receiving a lot of packets, so that the chip needs buffers faster than
the driver can resupply them.

2) resupply is done when and END PDU interrupt is seen. If you have a lot
of open VCs that are simultaneous reassembling PDUs you can easily run out
of free buffers. In this case the attention interrupt (that is the one
that triggers this message) is used to resupply buffers. The message is
probably misleading in that case.

3) there is a problem with the resupply algorithm: The status register
shows the fraction of the total buffer count that could be resupplied.
Unfortunately the chip always rounds down this fraction leading to a
potential mbuf leak (see the comment above
patm/if_patm_intr.c:patm_feed_cnt()).

harti

VJ>On Thursday 02 October 2003 12:53, Franky wrote:
VJ>> I reinstall os to FreeBSD 4.9-RC and change atm card to Prosum
VJ>> PROAMT-155.THIS IS NOT WORK. When os start all work good, but after 20-90
VJ>> seconds some PVCs which have big traffic(8Mbit/s) break transmission and
VJ>> don't send packets. I did many tests, I had always the same results - the
VJ>> end of transssmision without any message. Sometimes I get this message:
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: i=101, status=00080008
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: not enough large buffers.
VJ>> Oct  2 03:18:45 ordos last message repeated 99 times
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: i=101, status=00080008
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: not enough large buffers.
VJ>> Oct  2 03:18:45 ordos last message repeated 69 times
VJ>> Oct  2 03:18:45 ordos /kernel: All mbuf clusters exhausted, please see
VJ>> tuning(7).
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: not enough large buffers.
VJ>> Oct  2 03:18:45 ordos last message repeated 29 times
VJ>> Oct  2 03:18:45 ordos /kernel: proatm0: i=101, status=00080008
VJ>> Oct  2 03:18:46 ordos /kernel: proatm0: not enough large buffers.
VJ>> Oct  2 03:18:46 ordos /kernel: proatm0: bad CRC - discarding PDU: 0/144
VJ>> Oct  2 03:18:46 ordos /kernel: proatm0: not enough large buffers.
VJ>> Oct  2 03:18:46 ordos last message repeated 98 times
VJ>> Oct  2 03:18:46 ordos /kernel: proatm0: i=101, status=00080008
VJ>> but after this message all interface stop send packets (NMBCLUSTERS is set
VJ>> to 65536 and ipfw is disabled).
VJ>
VJ>
VJ>_______________________________________________
VJ>freebsd-atm@freebsd.org mailing list
VJ>http://lists.freebsd.org/mailman/listinfo/freebsd-atm
VJ>To unsubscribe, send any mail to "freebsd-atm-unsubscribe@freebsd.org"
VJ>

-- 
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt@fokus.fraunhofer.de, harti@freebsd.org



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