From nobody Tue Nov 18 14:13:03 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=bytedance.com ARC-Seal: i=1; a=rsa-sha256; t=1610609081; cv=none; d=zohomail.com; s=zohoarc; b=CqoPv9TxLJNLRpjajZYi2QGXyirD70SRTYHjfkbFXDY8a1lciLCq/jvnFE5s5XJcUVoeruxev964ZXKQkdvPUKwtbpYc1oeGazE8bVKuUNhA9iDZtJ6W+p2JWRZ9MTL0oR8thxbbEJ8fTrYZk+jCqNFwRTbinQD/OCoeD4Duezo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610609081; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7nTDngJf7MlLXQXoXhgSr1XI+hy0r9EzC9Mo/uOrQXw=; b=EIEnpeSsUnA/jQVX/Z82sS18mCWrw/h/P71fsyHuYzzqVVznmwAN4LLc1u8JeWJcve420OUqd9KIMe17/aU+QBNj7ynXquriUJh3xo/wdvkUc2vWWS7ixRpgVh5axH4lKvI8q7EBV0SV9FtRSPBce5zqd8e/0lpbzlwVBwnVPps= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610609081066916.6031581695468; Wed, 13 Jan 2021 23:24:41 -0800 (PST) Received: from localhost ([::1]:49710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzwzn-00063c-Oj for importer@patchew.org; Thu, 14 Jan 2021 02:24:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzwyI-0004f3-96 for qemu-devel@nongnu.org; Thu, 14 Jan 2021 02:23:06 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:37331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzwyG-0002Mi-D7 for qemu-devel@nongnu.org; Thu, 14 Jan 2021 02:23:05 -0500 Received: by mail-pl1-x630.google.com with SMTP id be12so2470564plb.4 for ; Wed, 13 Jan 2021 23:23:04 -0800 (PST) Received: from always-libai.bytedance.net ([61.120.150.71]) by smtp.gmail.com with ESMTPSA id i7sm4450323pfc.50.2021.01.13.23.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 23:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7nTDngJf7MlLXQXoXhgSr1XI+hy0r9EzC9Mo/uOrQXw=; b=oM8V6mEEHcqFil5EMhqJADofO+yUACI5gPke9pu9X24r5fMILEjbOQWbk6Yl9kVAA8 AsY7aBBP023Gi7AAVU7udhbRTF4ycGIvRBt+ZHToLK+J5byv58hlbnGJ0hiRA7Ev5QBJ 4sFlgQHtjRcZuFrCYNxgE3FCrGjcF/e0/sZ434oPVal6XtFsvHWtAqZAIHqKVXLhWyE/ QcrMW/hSC6My95Klr380PYxWcXfM/uB5TqKEffK9HlQM6wBpOQvx7icp32d4cfq65ax6 bkodOC7FQBjuz0l6LxCA5+sB2joB9RBQaI7o67j6jiXnV6Cpi/a2wkdbzDAW4jwW5Jrs s0Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7nTDngJf7MlLXQXoXhgSr1XI+hy0r9EzC9Mo/uOrQXw=; b=UcamzQFlIf9YMzuwVqwFLQhyOxxAvFGdln4AUXMdjR+3F5lcV4T0PvPkmb0nkfTPIn KV9gT4bsp42S0Lc8bB5itUGHWVE/O8QNFhp5UY9LzEY19IFeEdDhmOZQjooRwwXUnrnu ttsuni93aSQDU7XysPndX/AFmWzVBfAswFaWDZnqia5eWV6k/xncTZlvsGztlzMqOLtQ CDOCwtL0IexBcbs5Wl/kGekDKew8l0VwNmupcI8f0HyhDhfBtxhQl7tcBXw2p8JEC/yt juokSE6+l/Uy33P2SPvq68DRZOrvEinJ8OLKdLFSujA3S51SS2W16luyNvOznkoAdRL8 9ThQ== X-Gm-Message-State: AOAM531uBqyJv2mTOTiSWkD8k+Dp1lwlOVgnXlxMwkqJacHpLQ9ozYkW l2YEdUWkLjel7SvwgydnUGaSlBhKAFfdyaovf1E= X-Google-Smtp-Source: ABdhPJxdeeI968i8ciJxfWT86n54mHg8EmPsyDZa+KqorYhiReLQwp6aPt+GlMKXKkc4p5DNZsCQ4Q== X-Received: by 2002:a62:820d:0:b029:1ad:d810:6805 with SMTP id w13-20020a62820d0000b02901add8106805mr6168108pfd.63.1610608982527; Wed, 13 Jan 2021 23:23:02 -0800 (PST) From: zhenwei pi To: kbusch@kernel.org, its@irrelevant.dk, kwolf@redhat.com, mreitz@redhat.com Subject: [PATCH v3 1/4] block/nvme: introduce bit 5 for critical warning Date: Thu, 14 Jan 2021 15:22:48 +0800 Message-Id: <20210114072251.334304-2-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210114072251.334304-1-pizhenwei@bytedance.com> References: <20210114072251.334304-1-pizhenwei@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=pizhenwei@bytedance.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhenwei pi , philmd@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" According to NVMe spec 1.4 section , introduce bit 5 for "Persistent Memory Region has become read-only or unreliable". Signed-off-by: zhenwei pi --- include/block/nvme.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/block/nvme.h b/include/block/nvme.h index 3e02d9ca98..f68a88c712 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -749,6 +749,7 @@ enum NvmeSmartWarn { NVME_SMART_RELIABILITY =3D 1 << 2, NVME_SMART_MEDIA_READ_ONLY =3D 1 << 3, NVME_SMART_FAILED_VOLATILE_MEDIA =3D 1 << 4, + NVME_SMART_PMR_UNRELIABLE =3D 1 << 5, }; =20 enum NvmeLogIdentifier { --=20 2.25.1