On 19/10/2011 11:45, Mike Belopuhov wrote:
So i've finally have taken a look at this and i've found out
that Reply Post Queue depth is calculated incorrectly.
Laurent, can you please try this patch with -current:

Index: mpii.c
===================================================================
RCS file: /home/cvs/src/sys/dev/pci/mpii.c,v
retrieving revision 1.49
diff -u -p -u -p -r1.49 dev/pci/mpii.c
--- dev/pci/mpii.c      12 Sep 2011 12:33:26 -0000      1.49
+++ dev/pci/mpii.c      19 Oct 2011 09:49:52 -0000
@@ -2926,9 +2926,8 @@ mpii_iocfacts(struct mpii_softc *sc)
        /* must be multiple of 16 */
        sc->sc_reply_free_qdepth = sc->sc_num_reply_frames +
            (16 - (sc->sc_num_reply_frames % 16));
-
-       sc->sc_reply_post_qdepth = sc->sc_request_depth +
-           sc->sc_num_reply_frames + 1;
+       sc->sc_reply_post_qdepth = ((sc->sc_request_depth +
+           sc->sc_num_reply_frames + 1 + 15) / 16) * 16;

        if (sc->sc_reply_post_qdepth>
        ifp.max_reply_descriptor_post_queue_depth)


Hi,

Works fine.

Thanks for your help.

Laurent

Reply via email to