From nobody Thu Jun 06 10:39:20 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vw16K0pLSz5MffQ; Thu, 06 Jun 2024 10:39:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vw16K03B4z4j9F; Thu, 6 Jun 2024 10:39:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717670361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NPCWgnCoQdm5P3sqkODzYO0PaFhC2ND6XEG17a9AA/c=; b=JDGOqyHxR/KK3LcLApMs7H60E0BBo8KmB4s8yxyPENxDdZ1a5piIAZTaf+86p1QIM7ZEn3 713/QrCVZzvU6W20WbAQUrDzhGN2Grj/jDx1Sfp/vfViBk6dWQacmrFvQoSVoa27PpjvSU AukXfe4OjZtixYbi02OQ1gcicFe+GFCgJW8BaX9AD5NiXgYoEHMQXbHwVqn5+XbuXlJ+4L 0I9NfLE2fHGYjUmvfSn9RVz2DVJQ+MJ50RUhRFucmKrOzJXZ7ifSAAuso4ESJn52jUOYTP q9SkEolKQT/Ta/Y217XnlF9kPu/sF/iARj44fKKpixXiwjkhwrtCF3qschoTYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717670361; a=rsa-sha256; cv=none; b=TZCdQqkFLxoi9cNLn6Voki4qE4BFyf9o4k3wDfDGD2g8kijJhplmoRqARIfpeSKXNZnx6S ApjOdGRUgCku0xibeaVQea2uHlTG1f+2XCmaJRmoqmYUtqJWdYv16an+Unh0zCOxzkueqV x5TqkX4nQ4fpQMtAy8zDJa+tTzNCl/mBkokwXYRf9z8tMSvNbSL+iqEn46FpnpidIiK/qd asZw2MtgoTaTQ4zjiQbD2Pt9sR9V3qL3AAgsMrwAY58dPBFBQz3jheHNaKu1MOWxfij9B2 0W4hMrlU1H3J+1Ges1EpbBsTiqRlCwk8lXhO+dRQ59tRIpolCiS2cJ6dNuiT/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717670361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NPCWgnCoQdm5P3sqkODzYO0PaFhC2ND6XEG17a9AA/c=; b=gQXCtZjlGgkmMDmjUPmn7WKjPZaU3RJES9N+Da1hqxVfIpJNHDzYwrhJg6PFV88OW8JPpo 8DRD+yRV07vyjtHpofoSCeOxkAGWyccGh2at+akIzMDKg1Gg52wArTm6PoBhP7C2sYv540 757/apJnAf9p9HPfGBJjr6hfZgtY+s8ARIXFBUb1VBp7YfqGP17ThP2lynlSNRMJQdCxUS 0eEg9PNSUGgRABy93KGMOZcPJjvdA5p7F5cRxvYWwGCdnjp+7UhsvfOYyeCguTC/6npuw7 fu+nXEew0bu91mfKAg/bGrjeVYYrOPtPmGzbWSb0V1gtY7YdrcZGbAhR+bLY1w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vw16J6JWMzj4d; Thu, 6 Jun 2024 10:39:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 456AdKao089528; Thu, 6 Jun 2024 10:39:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 456AdKYU089525; Thu, 6 Jun 2024 10:39:20 GMT (envelope-from git) Date: Thu, 6 Jun 2024 10:39:20 GMT Message-Id: <202406061039.456AdKYU089525@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Sumit Saxena Subject: git: 0d7056458db5 - main - mpi3mr: Block devices persist despite being offlined during reset List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ssaxena X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d7056458db5b5dd7fdc5ccd8abab73e3ee76a20 Auto-Submitted: auto-generated The branch main has been updated by ssaxena: URL: https://cgit.FreeBSD.org/src/commit/?id=0d7056458db5b5dd7fdc5ccd8abab73e3ee76a20 commit 0d7056458db5b5dd7fdc5ccd8abab73e3ee76a20 Author: Chandrakanth patil AuthorDate: 2024-03-13 18:03:19 +0000 Commit: Sumit Saxena CommitDate: 2024-06-06 10:39:14 +0000 mpi3mr: Block devices persist despite being offlined during reset The driver removes the drive from the OS if firmware sends 'device added' event with hidden bit or inaccessible status. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D44421 --- sys/dev/mpi3mr/mpi3mr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/mpi3mr/mpi3mr.c b/sys/dev/mpi3mr/mpi3mr.c index 932d174a6b50..faa8b52bbb50 100644 --- a/sys/dev/mpi3mr/mpi3mr.c +++ b/sys/dev/mpi3mr/mpi3mr.c @@ -5668,6 +5668,8 @@ static void mpi3mr_rfresh_tgtdevs(struct mpi3mr_softc *sc) if (target->exposed_to_os) mpi3mr_remove_device_from_os(sc, target->dev_handle); mpi3mr_remove_device_from_list(sc, target, true); + } else if (target->is_hidden && target->exposed_to_os) { + mpi3mr_remove_device_from_os(sc, target->dev_handle); } }