Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/sandisk/sandisk-nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#if !defined(SANDISK_NVME) || defined(CMD_HEADER_MULTI_READ)
#define SANDISK_NVME

#define SANDISK_PLUGIN_VERSION "3.0.7"
#define SANDISK_PLUGIN_VERSION "3.0.8"
#include "cmd.h"

PLUGIN(NAME("sndk", "Sandisk vendor specific extensions", SANDISK_PLUGIN_VERSION),
Expand Down
6 changes: 5 additions & 1 deletion plugins/sandisk/sandisk-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ __u64 sndk_get_enc_drive_capabilities(nvme_root_t r,
(void *)&drive_form_factor))
fprintf(stderr, "ERROR: SNDK: Getting Form Factor Failed\n");


/* verify the 0xC3 log page is supported */
if (run_wdc_nvme_check_supported_log_page(r, dev,
SNDK_LATENCY_MON_LOG_ID, 0))
Expand Down Expand Up @@ -773,6 +772,11 @@ __u64 sndk_get_enc_drive_capabilities(nvme_root_t r,
SNDK_DRIVE_CAP_VU_FID_CLEAR_FW_ACT_HISTORY |
SNDK_DRIVE_CAP_VU_FID_CLEAR_PCIE);

/* verify the 0xC0 log page is supported */
if (run_wdc_nvme_check_supported_log_page(r, dev,
SNDK_LATENCY_MON_LOG_ID, 0))
capabilities |= SNDK_DRIVE_CAP_C0_LOG_PAGE;

if ((drive_form_factor == SNDK_C2_FORM_FACTOR_SFF_U2) ||
(drive_form_factor == SNDK_C2_FORM_FACTOR_EDSFF_E3S))
capabilities |= SNDK_DRIVE_CAP_RESIZE_SN861;
Expand Down