Date: Thu, 04 Feb 2010 00:24:02 +0200 From: Alexander Motin <mav@FreeBSD.org> To: Marcel Moolenaar <xcllnt@mac.com> Cc: "current@freebsd.org mailing list" <current@freebsd.org> Subject: Re: CAM verbosity (xpt_release_devq(0): requested 1 > present 0) Message-ID: <4B69F782.5050108@FreeBSD.org> In-Reply-To: <D98128C4-BBBA-471A-915D-08050F876AB0@mac.com> References: <A454E3C4-2E3D-4E8B-B692-A319240DB43C@mac.com> <4B68A18E.1030500@FreeBSD.org> <305C4541-4245-45C9-9FCC-9C6AF4E47DD6@mac.com> <4B68A812.40103@FreeBSD.org> <971A22CA-B14A-4CBC-8D6D-FEB3A4EA2425@mac.com> <4B68B7AC.8050908@FreeBSD.org> <D98128C4-BBBA-471A-915D-08050F876AB0@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Marcel Moolenaar wrote: > On Feb 2, 2010, at 3:39 PM, Alexander Motin wrote: >> Marcel Moolenaar wrote: >>> On Feb 2, 2010, at 2:32 PM, Alexander Motin wrote: >>>> Whether it is related or not, both issues definitely should be fixed. >>>> Could you give me an access to debug that system, or it is in use? >>> Unfortunately, I can't give you access to this machine. >> What's about full verbose dmesg up to the first few errors? > > *snip* > Tue Feb 2 16:16:57 PST 2010 > > FreeBSD/ia64 (hob.lan.xcllnt.net) (ttyu0) > > login: mpt0: QUEUE FULL EVENT: Bus 0x00 Target 0x07 Depth 120 > xpt_release_devq(0): requested 1 > present 0 > xpt_release_devq(0): requested 1 > present 0 > xpt_release_devq(0): requested 1 > present 0 > *ad nauseam* > > Actually, it's not ad nauseam. Every queue full event is > followed by 256 xpt_release_devq(0) lines. Looks related > to me... Indeed related. This driver seems handles queue full status by itself, instead of returning respective request status to CAM. I have too small information now to understand why number of openings is not changing, as you said. But errors you've got look reasonable. I have doubts that driver frozen all 256 luns before adjusting openings, so releasing them by this call causes such errors. I expect such patch should fix the problem: --- mpt_cam.c.prev 2009-11-01 13:16:39.000000000 +0200 +++ mpt_cam.c 2010-02-04 00:16:31.000000000 +0200 @@ -2558,6 +2558,7 @@ mpt_cam_event(struct mpt_softc *mpt, req } xpt_setup_ccb(&crs.ccb_h, tmppath, 5); crs.ccb_h.func_code = XPT_REL_SIMQ; + crs.ccb_h.flags = CAM_DEV_QFREEZE; crs.release_flags = RELSIM_ADJUST_OPENINGS; crs.openings = pqf->CurrentDepth - 1; xpt_action((union ccb *)&crs); Do you receive message like "tagged openings now %d" in verbose log? It should be there if queue size was adjusted. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B69F782.5050108>