Alexander Couzens (lynxis(a)fe80.eu) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8380
-gerrit
commit 445d0405e125880cd357a76f41c15cffae91cae1
Author: Alexander Couzens <lynxis(a)fe80.eu>
Date: Sat Feb 7 02:50:30 2015 +0100
ectool: remove extra printf("Not dumping EC IDX RAM.")
It doesn't provide any useful information.
Change-Id: I13e68d443bbcadea45b8fbcc262ceb9deb3e2e61
Signed-off-by: Alexander Couzens <lynxis(a)fe80.eu>
---
util/ectool/ectool.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c
index da5143a..fddf340 100644
--- a/util/ectool/ectool.c
+++ b/util/ectool/ectool.c
@@ -129,8 +129,6 @@ int main(int argc, char *argv[])
printf("%02x ", ec_idx_read(i));
}
printf("\n\n");
- } else {
- printf("Not dumping EC IDX RAM.\n");
}
return 0;
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8379
-gerrit
commit b0ab88414eee4f687416187a0ea4c288d8d4cb64
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Feb 6 17:03:28 2015 -0600
hp/pavilion_m6_1035dx: Provide CMOS defaults
Trying to use option tables without a cmos.default is like raping an
energized wall outlet: You know it won't end well.
TEST: Boot with corrupted CMOS and make sure console level defaults
to SPEW, instead of 0, and that cbmem console is not empty.
Change-Id: I8ab2423e99bbe116f52ad27f4b20427d8557f6ff
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/mainboard/hp/pavilion_m6_1035dx/Kconfig | 1 +
src/mainboard/hp/pavilion_m6_1035dx/cmos.default | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/Kconfig b/src/mainboard/hp/pavilion_m6_1035dx/Kconfig
index eba58f2..ebe00a4 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/Kconfig
+++ b/src/mainboard/hp/pavilion_m6_1035dx/Kconfig
@@ -32,6 +32,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_ACPI_RESUME
select HAVE_SMI_HANDLER
select HAVE_ACPI_TABLES
+ select HAVE_CMOS_DEFAULT
select BOARD_ROMSIZE_KB_4096
select GFXUMA
select UDELAY_LAPIC
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/cmos.default b/src/mainboard/hp/pavilion_m6_1035dx/cmos.default
new file mode 100644
index 0000000..0bca0fc
--- /dev/null
+++ b/src/mainboard/hp/pavilion_m6_1035dx/cmos.default
@@ -0,0 +1,5 @@
+boot_option = Fallback
+last_boot = Fallback
+debug_level = Spew
+nmi = Disable
+power_on_after_fail = Disable
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8378
-gerrit
commit b9aa5286d6a750fb37da53cc36181b119326f04b
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Feb 6 16:39:30 2015 -0600
hp/pavilion_m6_1035dx/cmos.layout: Remove unused options
Some of the options in cmos.layout date back to the K8 days, and have
not been used anywhere else, but K8. This makes nvramtool expose a
very confusing set of options, most of which have no effect. Clean up
the layout before it gets forked again.
TEST: Booted linux, and checked 'nvramtool -a' output.
Change-Id: I1c5f83790ec89ced4dcf954e4949f8554aef6087
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/mainboard/hp/pavilion_m6_1035dx/cmos.layout | 100 ++++--------------------
1 file changed, 15 insertions(+), 85 deletions(-)
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/cmos.layout b/src/mainboard/hp/pavilion_m6_1035dx/cmos.layout
index 5520564..eb0e6b6 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/cmos.layout
+++ b/src/mainboard/hp/pavilion_m6_1035dx/cmos.layout
@@ -1,70 +1,24 @@
-#*****************************************************************************
-#
-# This file is part of the coreboot project.
-#
-# Copyright (C) 2012 Advanced Micro Devices, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-#*****************************************************************************
-
entries
#start-bit length config config-ID name
-#0 8 r 0 seconds
-#8 8 r 0 alarm_seconds
-#16 8 r 0 minutes
-#24 8 r 0 alarm_minutes
-#32 8 r 0 hours
-#40 8 r 0 alarm_hours
-#48 8 r 0 day_of_week
-#56 8 r 0 day_of_month
-#64 8 r 0 month
-#72 8 r 0 year
-#80 4 r 0 rate_select
-#84 3 r 0 REF_Clock
-#87 1 r 0 UIP
-#88 1 r 0 auto_switch_DST
-#89 1 r 0 24_hour_mode
-#90 1 r 0 binary_values_enable
-#91 1 r 0 square-wave_out_enable
-#92 1 r 0 update_finished_enable
-#93 1 r 0 alarm_interrupt_enable
-#94 1 r 0 periodic_interrupt_enable
-#95 1 r 0 disable_clock_updates
-#96 288 r 0 temporary_filler
+
+# RTC_BOOT_BYTE (coreboot hardcoded)
0 384 r 0 reserved_memory
384 1 e 4 boot_option
385 1 e 4 last_boot
-386 1 e 1 ECC_memory
388 4 r 0 reboot_bits
-392 3 e 5 baud_rate
-395 1 e 1 hw_scrubber
-396 1 e 1 interleave_chip_selects
-397 2 e 8 max_mem_clock
-399 1 e 2 multi_core
+
+# southbridge/amd/agesa/hudson should use this but it doesn't
400 1 e 1 power_on_after_fail
+
+# The only option that is actually used
412 4 e 6 debug_level
-416 4 e 7 boot_first
-420 4 e 7 boot_second
-424 4 e 7 boot_third
-428 4 h 0 boot_index
-432 8 h 0 boot_countdown
-440 4 e 9 slow_cpu
+
+# southbridge/amd/agesa/hudson should use this but it doesn't
444 1 e 1 nmi
-445 1 e 1 iommu
-728 256 h 0 user_data
+
984 16 h 0 check_sum
+
# Reserve the extended AMD configuration registers
1000 24 r 0 amd_reserved
@@ -73,41 +27,17 @@ enumerations
#ID value text
1 0 Disable
1 1 Enable
-2 0 Enable
-2 1 Disable
4 0 Fallback
4 1 Normal
-5 0 115200
-5 1 57600
-5 2 38400
-5 3 19200
-5 4 9600
-5 5 4800
-5 6 2400
-5 7 1200
+6 1 Emergency
+6 2 Alert
+6 3 Critical
+6 4 Error
+6 5 Warning
6 6 Notice
6 7 Info
6 8 Debug
6 9 Spew
-7 0 Network
-7 1 HDD
-7 2 Floppy
-7 8 Fallback_Network
-7 9 Fallback_HDD
-7 10 Fallback_Floppy
-#7 3 ROM
-8 0 400Mhz
-8 1 333Mhz
-8 2 266Mhz
-8 3 200Mhz
-9 0 off
-9 1 87.5%
-9 2 75.0%
-9 3 62.5%
-9 4 50.0%
-9 5 37.5%
-9 6 25.0%
-9 7 12.5%
checksums
the following patch was just integrated into master:
commit b5669ba57937f48ffe201395c3e3b1527c14d1fa
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Jan 30 00:07:12 2015 -0600
drivers/pc80/mc146818rtc: Reduce superfluous preprocessor use
cmos_init() had layers of preprocessor directives, which resulted in
a complete mess. Refactor it to make use of the IS_ENABLED() macro.
This improves readability significantly.
One of the changes is to remove in inline stub declaration of
(get|set)_option. Although that provided the ability for the compiler
to optimize out code when USE_OPTION_TABLE is not selected, there is
no evidence that such savings are measureable.
Change-Id: I07f00084d809adbb55031b2079f71136ade3028e
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Reviewed-on: http://review.coreboot.org/8306
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/8306 for details.
-gerrit
Timothy Pearson (tpearson(a)raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8377
-gerrit
commit 82b47af67c0b3bf604633a94a349a2f6f1115485
Author: Timothy Pearson <tpearson(a)raptorengineeringinc.com>
Date: Fri Feb 6 16:11:16 2015 -0600
mainboards/asus/kfsn4-dre: Ignore Coverity false positive
Change-Id: I8c0b8f4bab7ac630d48924a40b2714e21b83b572
Signed-off-by: Timothy Pearson <tpearson(a)raptorengineeringinc.com>
---
src/mainboard/asus/kfsn4-dre/romstage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mainboard/asus/kfsn4-dre/romstage.c b/src/mainboard/asus/kfsn4-dre/romstage.c
index cd8b9de..f197373 100644
--- a/src/mainboard/asus/kfsn4-dre/romstage.c
+++ b/src/mainboard/asus/kfsn4-dre/romstage.c
@@ -232,7 +232,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
console_init();
if (CONFIG_MAX_PHYSICAL_CPUS != 2)
- printk(BIOS_WARNING, "CONFIG_MAX_PHYSICAL_CPUS is %d, but this is a dual socket board!\n", CONFIG_MAX_PHYSICAL_CPUS);
+ /* coverity[CONSTANT_EXPRESSION_RESULT] */ printk(BIOS_WARNING, "CONFIG_MAX_PHYSICAL_CPUS is %d, but this is a dual socket board!\n", CONFIG_MAX_PHYSICAL_CPUS);
/* Halt if there was a built in self test failure */
report_bist_failure(bist);
the following patch was just integrated into master:
commit a4d784eeab964a9cdb8e453ae98a14520ce13919
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Sun Jan 25 21:08:42 2015 -0600
include/types.h: Provide BIT() macro
This macro is controversial for arches where the bits are numbered
MSb first, though we don't support such an arch. We've seen this macro
creep into our tree in different places, so provide it in one place.
Change-Id: I86cd8a16420f34ef31b615aec4e0f7bd3191ca35
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Reviewed-on: http://review.coreboot.org/8280
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Reviewed-by: Aaron Durbin <adurbin(a)gmail.com>
Reviewed-by: David Hendricks <dhendrix(a)chromium.org>
See http://review.coreboot.org/8280 for details.
-gerrit