Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/atactl add a samsung specific SMART table with:
details: https://anonhg.NetBSD.org/src/rev/5ccbd4002ba0
branches: trunk
changeset: 997286:5ccbd4002ba0
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Mar 03 04:48:19 2019 +0000
description:
add a samsung specific SMART table with:
235 - POR Recovery Count
243 - SATA Downshift Count
244 - Thermal Throttle Status
245 - Timed Workload Media Wear
251 - NAND Writes
all 5 turn up on newer samsung SSDs, though 3 of them all
read 65535 for me across muliplte devices.
diffstat:
sbin/atactl/atactl.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (53 lines):
diff -r af9787b1238e -r 5ccbd4002ba0 sbin/atactl/atactl.c
--- a/sbin/atactl/atactl.c Sun Mar 03 03:20:42 2019 +0000
+++ b/sbin/atactl/atactl.c Sun Mar 03 04:48:19 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atactl.c,v 1.80 2019/03/01 02:33:43 mrg Exp $ */
+/* $NetBSD: atactl.c,v 1.81 2019/03/03 04:48:19 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: atactl.c,v 1.80 2019/03/01 02:33:43 mrg Exp $");
+__RCSID("$NetBSD: atactl.c,v 1.81 2019/03/03 04:48:19 mrg Exp $");
#endif
@@ -380,6 +380,18 @@
};
/*
+ * Samsung specific SMART attributes. Fill me in with more.
+ */
+static const struct attr_table samsung_smart_names[] = {
+ { 235, "POR Recovery Count", NULL },
+ { 243, "SATA Downshift Count", NULL },
+ { 244, "Thermal Throttle Status", NULL },
+ { 245, "Timed Workload Media Wear", NULL },
+ { 251, "NAND Writes", NULL },
+};
+
+
+/*
* Vendor-specific SMART attribute table. Can be used to override
* a particular attribute name and special printer function, with the
* default is the main table.
@@ -390,6 +402,7 @@
} vendor_smart_names[] = {
{ "Micron", micron_smart_names },
{ "Intel", intel_smart_names },
+ { "Samsung", samsung_smart_names },
};
/*
@@ -410,6 +423,7 @@
{ "MTFDDA", "Micron" },
{ "EEFDDA", "Micron" },
{ "INTEL", "Intel" },
+ { "SAMSUNG", "Samsung" },
};
static const struct bitinfo ata_sec_st[] = {
Home |
Main Index |
Thread Index |
Old Index