Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Print "ECC" or "no ECC" for DDR4.



details:   https://anonhg.NetBSD.org/src/rev/4520cfacf95a
branches:  trunk
changeset: 357039:4520cfacf95a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Oct 24 08:02:06 2017 +0000

description:
Print "ECC" or "no ECC" for DDR4.

diffstat:

 sys/dev/ic/spdmem.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 51c578e36d4f -r 4520cfacf95a sys/dev/ic/spdmem.c
--- a/sys/dev/ic/spdmem.c       Tue Oct 24 02:22:09 2017 +0000
+++ b/sys/dev/ic/spdmem.c       Tue Oct 24 08:02:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem.c,v 1.27 2017/10/16 17:52:10 christos Exp $ */
+/* $NetBSD: spdmem.c,v 1.28 2017/10/24 08:02:06 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.27 2017/10/16 17:52:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.28 2017/10/24 08:02:06 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -879,8 +879,9 @@
        if (s->sm_ddr4.ddr4_mod_type < __arraycount(spdmem_ddr4_module_types))
                aprint_normal(" (%s)", 
                    spdmem_ddr4_module_types[s->sm_ddr4.ddr4_mod_type]);
-       aprint_normal(", %stemp-sensor, ",
-               (s->sm_ddr4.ddr4_has_therm_sensor)?"":"no ");
+       aprint_normal(", %sECC, %stemp-sensor, ",
+               (s->sm_ddr4.ddr4_bus_width_extension) ? "" : "no ",
+               (s->sm_ddr4.ddr4_has_therm_sensor) ? "" : "no ");
 
        /*
         * DDR4 size calculation from JEDEC spec



Home | Main Index | Thread Index | Old Index