Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2010 23:02:41 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/145960: [patch] mfi(4) - make MFI_STAT_INVALID_STATUS error more apparent in mfi_aen_complete
Message-ID:  <201004222302.o3MN2fY7052053@www.freebsd.org>
Resent-Message-ID: <201004222310.o3MNA1Gu027713@freefall.freebsd.org>

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

>Number:         145960
>Category:       kern
>Synopsis:       [patch] mfi(4) - make MFI_STAT_INVALID_STATUS error more apparent in mfi_aen_complete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 22 23:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
FreeBSD bioshock.cisco.com 9.0-CURRENT FreeBSD 9.0-CURRENT #7 r206031: Sat Apr 17 20:20:46 PDT 2010     root@bioshock.cisco.com:/usr/obj/usr/src/sys/BIOSHOCK  amd64
>Description:
The proposed change just makes the error code returned in mfi_aen_complete more apparent by changing 0xff to MFI_STAT_INVALID_STATUS, as MFI_STAT_INVALID_STATUS is 0xff:

$ grep -r MFI_STAT_INVALID_STATUS sys/dev/mfi/mfireg.h 
	MFI_STAT_INVALID_STATUS =	0xFF
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: sys/dev/mfi/mfi.c
===================================================================
--- sys/dev/mfi/mfi.c	(revision 206031)
+++ sys/dev/mfi/mfi.c	(working copy)
@@ -1149,7 +1149,8 @@
 	if (sc->mfi_aen_cm == NULL)
 		return;
 
-	if (sc->mfi_aen_cm->cm_aen_abort || hdr->cmd_status == 0xff) {
+	if (sc->mfi_aen_cm->cm_aen_abort ||
+	    hdr->cmd_status == MFI_STAT_INVALID_STATUS) {
 		sc->mfi_aen_cm->cm_aen_abort = 0;
 		aborted = 1;
 	} else {


>Release-Note:
>Audit-Trail:
>Unformatted:



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