Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2010 16:36:37 +0400
From:      pluknet <pluknet@gmail.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   mpt(4) MPI_EVENT_IR_RESYNC_UPDATE
Message-ID:  <x2oa31046fc1004300536t650346afkb194ca4e2f7a7b1@mail.gmail.com>

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

what do you think of adding this handler (based on old bz@ patch)?
It's quite annoying to see the meaningless messages like
"mpt0: Unhandled Event Notify Frame. Event 0x14 (ACK not required)."
each 1% change in logical array rebuild progress.

--- RELENG_7_3/src/sys/dev/mpt/mpt_cam.c        2010-03-02
15:38:13.000000000 +0300
+++ RELENG_7_3.ours/src/sys/dev/mpt/mpt_cam.c   2010-04-21
19:31:00.000000000 +0400
@@ -2564,6 +2564,12 @@ mpt_cam_event(struct mpt_softc *mpt, req
                CAMLOCK_2_MPTLOCK(mpt);
                break;
        }
+       case MPI_EVENT_IR_RESYNC_UPDATE:
+       {
+               uint8_t resync = (data0 >> 16) & 0xff;
+               mpt_prt(mpt, "IR resync update %d completed\n", resync);
+               break;
+       }
        case MPI_EVENT_EVENT_CHANGE:
        case MPI_EVENT_INTEGRATED_RAID:
        case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE:

Another way - just hide such event since mptutil displays rebuild progress.

-- 
wbr,
pluknet



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