Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2022 13:16:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261377] mrsas: Firing DCMDs while controller reset leads to firmware FMU error
Message-ID:  <bug-261377-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261377

            Bug ID: 261377
           Summary: mrsas: Firing DCMDs while controller reset leads to
                    firmware FMU error
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: chandrakanth.patil@broadcom.com

Created attachment 231210
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231210&action=
=3Dedit
refrain firing DCMDs if controller reset is in progress

When controller reset is in progress, a few of the firmware registers are
in-accessible state so if drivers access any of those registers at that time
will result in undefined behaviour in firmware.

In this case, controller reset is in progress, and system shutdown is issue=
d,
then the shutdown function in the driver will be invoked where it is waiting
for a max of 15 sec for a reset to finish and if reset is not finished with=
in
that time frame then it is going ahead and firing the flush cache and shutd=
own
DCMDs to firmware which will end up accessing the queues which are not
initialised due to undergoing reset leads to FMU error in firmware

So fix is to return to OS with proper error from shutdown if controller res=
et
is not finished after waiting 15 sec.

I have attached the patch which will fix this issue.=20

This issue is applicable to variants: 13.0, 13.1, 12.3, 12.1
If possible we can back-port other required variants.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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