Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic - Fix DDR4's rows and columns value.



details:   https://anonhg.NetBSD.org/src/rev/3d1e0ec4a92a
branches:  trunk
changeset: 995518:3d1e0ec4a92a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Dec 26 10:24:20 2018 +0000

description:
- Fix DDR4's rows and columns value.
- Print "banks/group" instead of "banks" because it's not the total bank
  number.

diffstat:

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

diffs (30 lines):

diff -r b9e593526cb4 -r 3d1e0ec4a92a sys/dev/ic/spdmem.c
--- a/sys/dev/ic/spdmem.c       Wed Dec 26 08:59:41 2018 +0000
+++ b/sys/dev/ic/spdmem.c       Wed Dec 26 10:24:20 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem.c,v 1.28 2017/10/24 08:02:06 msaitoh Exp $ */
+/* $NetBSD: spdmem.c,v 1.29 2018/12/26 10:24:20 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.28 2017/10/24 08:02:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.29 2018/12/26 10:24:20 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -938,9 +938,9 @@
                          TRUE, "PC4", 0);
 
        aprint_verbose_dev(self,
-           "%d rows, %d cols, %d banks, %d bank groups, "
+           "%d rows, %d cols, %d banks/group, %d bank groups, "
            "%d.%03dns cycle time\n",
-           s->sm_ddr4.ddr4_rows + 9, s->sm_ddr4.ddr4_cols + 12,
+           s->sm_ddr4.ddr4_rows + 12, s->sm_ddr4.ddr4_cols + 9,
            1 << (2 + s->sm_ddr4.ddr4_logbanks),
            1 << s->sm_ddr4.ddr4_bankgroups,
            cycle_time / 1000, cycle_time % 1000);



Home | Main Index | Thread Index | Old Index