From owner-p4-projects@FreeBSD.ORG Tue Aug 1 18:40:11 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B5BE116A5D6; Tue, 1 Aug 2006 18:40:11 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78A7416A5E5 for ; Tue, 1 Aug 2006 18:40:11 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C553B43D78 for ; Tue, 1 Aug 2006 18:39:44 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k71IdiVH027545 for ; Tue, 1 Aug 2006 18:39:44 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k71IdiDp027542 for perforce@freebsd.org; Tue, 1 Aug 2006 18:39:44 GMT (envelope-from jb@freebsd.org) Date: Tue, 1 Aug 2006 18:39:44 GMT Message-Id: <200608011839.k71IdiDp027542@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 102962 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2006 18:40:11 -0000 http://perforce.freebsd.org/chv.cgi?CH=102962 Change 102962 by jb@jb_freebsd2 on 2006/08/01 18:38:49 Treat MPI_EVENT_QUEUE_FULL as an expected event type so that it isn't reported as 'unhandled' all the time. Fix a stray endian conversion in a printf. This syncs the mpt driver with the one I'm using in the dtrace project. Affected files ... .. //depot/projects/kmacy_sun4v_stable/src/sys/dev/mpt/mpt_cam.c#8 edit Differences ... ==== //depot/projects/kmacy_sun4v_stable/src/sys/dev/mpt/mpt_cam.c#8 (text+ko) ==== @@ -2153,9 +2153,13 @@ mpt_prt(mpt, "mpt_cam_event: MPI_EVENT_SAS_DEVICE_STATUS_CHANGE\n"); break; + case MPI_EVENT_QUEUE_FULL: + mpt_lprt(mpt, MPT_PRT_DEBUG, + "mpt_cam_event: MPI_EVENT_QUEUE_FULL\n"); + break; default: mpt_lprt(mpt, MPT_PRT_WARN, "mpt_cam_event: 0x%x\n", - le32toh(msg->Event) & 0xFF); + msg->Event & 0xFF); return (0); } return (1);