Commit b8edc465 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme: check Optional Asynchronous Events Supported



In addition to checking for the required version, also use the OAES bits
to determine which features to request.

Change-Id: Idb07e4175cca5609904876bd17d912b50bc6b62a
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/409352


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 87ec451b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1212,9 +1212,13 @@ _nvme_ctrlr_configure_aer(struct spdk_nvme_ctrlr *ctrlr)
	config.bits.crit_warn.bits.volatile_memory_backup = 1;

	if (cdata->ver.raw >= SPDK_NVME_VERSION(1, 2, 0)) {
		if (ctrlr->cdata.oaes.ns_attribute_notices) {
			config.bits.ns_attr_notice = 1;
		}
		if (ctrlr->cdata.oaes.fw_activation_notices) {
			config.bits.fw_activation_notice = 1;
		}
	}
	if (cdata->ver.raw >= SPDK_NVME_VERSION(1, 3, 0) && cdata->lpa.telemetry) {
		config.bits.telemetry_log_notice = 1;
	}