Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3320
-gerrit
commit c01c14831f27d7a37c6fd2b9f530c68d4dfc5c2b
Author: Rudolf Marek <r.marek(a)assembler.cz>
Date: Mon May 27 20:39:18 2013 +0200
Asus F2A85-M: Fix the _CRS PCI0 bus info
On Asus F2A85-M, the Linux kernel complains that the _CRS method does
not specify the number of PCI busses.
[FIRMWARE BUG]: ACPI: no secondary bus range in _CRS
Just put there 256. This should be part of re-factoring of the whole
ACPI stuff.
The same change was already done for the AMD Brazos (SB800) boards,
based on commit »Persimmon DSDT: Add secondary bus range to PCI0«
(4733c647) [1].
[1] http://review.coreboot.org/2592
Change-Id: I06f90ec353df9198a20b2165741ea0fe94071266
Signed-off-by: Rudolf Marek <r.marek(a)assembler.cz>
---
src/mainboard/asus/f2a85-m/dsdt.asl | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/mainboard/asus/f2a85-m/dsdt.asl b/src/mainboard/asus/f2a85-m/dsdt.asl
index d9f8fa4..e98b6b3 100644
--- a/src/mainboard/asus/f2a85-m/dsdt.asl
+++ b/src/mainboard/asus/f2a85-m/dsdt.asl
@@ -1307,6 +1307,22 @@ DefinitionBlock (
} /* end Ac97modem */
Name(CRES, ResourceTemplate() {
+ /* Set the Bus number and Secondary Bus number for the PCI0 device
+ * The Secondary bus range for PCI0 lets the system
+ * know what bus values are allowed on the downstream
+ * side of this PCI bus if there is a PCI-PCI bridge.
+ * PCI busses can have 256 secondary busses which
+ * range from [0-0xFF] but they do not need to be
+ * sequential.
+ */
+ WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
+ 0x0000, /* address granularity */
+ 0x0000, /* range minimum */
+ 0x00FF, /* range maximum */
+ 0x0000, /* translation */
+ 0x0100, /* length */
+ ,, PSB0) /* ResourceSourceIndex, ResourceSource, DescriptorName */
+
IO(Decode16, 0x0CF8, 0x0CF8, 1, 8)
WORDIO(ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
Christian Gmeiner (christian.gmeiner(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3322
-gerrit
commit 3cd0f1d471c01ce879403f019e0892aea4caf259
Author: Christian Gmeiner <christian.gmeiner(a)gmail.com>
Date: Tue May 28 17:09:29 2013 +0200
AMD Geode LX: add get_top_of_ram()
get_top_of_ram() is needed for EARLY_CBMEM_INIT. We are reading the
RCONF_DEFAULT_MSR (0x1808) msr. It contains SYSTOP [27:8], which
is the top of system memory that is available for general processor
use.
Change-Id: Iadde6aab85ab2adc526f1ef3c5fc22e0f5b06d51
Signed-off-by: Christian Gmeiner <christian.gmeiner(a)gmail.com>
---
src/northbridge/amd/lx/raminit.c | 7 +++++++
src/northbridge/amd/lx/raminit.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/src/northbridge/amd/lx/raminit.c b/src/northbridge/amd/lx/raminit.c
index 9a53e9e..4ab19e7 100644
--- a/src/northbridge/amd/lx/raminit.c
+++ b/src/northbridge/amd/lx/raminit.c
@@ -774,3 +774,10 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl)
print_info("RAM DLL lock\n");
}
+
+unsigned long get_top_of_ram(void)
+{
+ msr_t msr = rdmsr(CPU_RCONF_DEFAULT);
+ uint32_t systop = (msr.lo & 0xFFFFF00) >> 7;
+ return (unsigned long)systop;
+}
diff --git a/src/northbridge/amd/lx/raminit.h b/src/northbridge/amd/lx/raminit.h
index 3d4d4c6..8c11525 100644
--- a/src/northbridge/amd/lx/raminit.h
+++ b/src/northbridge/amd/lx/raminit.h
@@ -28,5 +28,6 @@ struct mem_controller {
};
void sdram_initialize(int controllers, const struct mem_controller *ctrl);
+unsigned long get_top_of_ram(void);
#endif
Denis Carikli (GNUtoo(a)no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3223
-gerrit
commit 497eedc384492f02cf6b4fa2b60d5c04a2f1ef61
Author: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
Date: Tue May 28 13:46:12 2013 +0200
Provide sane Kconfig default for cmos.default.
Without that fix we have with CONFIG_USE_OPTION_TABLE:
OPTION cmos_layout.bin
build/util/nvramtool/nvramtool -y /home/gnutoo/x86/coreboot-alix/src/mainboard/pcengines/alix1c/cmos.layout -L build/cmos_layout.bin
make: *** No rule to make target `nvramtool', needed by `build/coreboot.pre1'. Stop.
rm build/util/sconfig/sconfig.tab.c build/cbfs/fallback/bootblock.elf build/util/sconfig/lex.yy.c
That log was captured with make V=1 but the error also appear with make.
This commit was tested on the PC Engines ALIX.1C with the following commit:
PC Engines ALIX.1C: Add CMOS defaults.
Change-Id: I548005a58f430ed7b6da5249a24bbdcae440a1e9
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
---
src/arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 5f46145..c7b2434 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -81,6 +81,7 @@ config HAVE_CMOS_DEFAULT
config CMOS_DEFAULT_FILE
string
+ default "src/mainboard/$(MAINBOARDDIR)/cmos.default"
depends on HAVE_CMOS_DEFAULT
config BOOTBLOCK_SOUTHBRIDGE_INIT
Denis Carikli (GNUtoo(a)no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3223
-gerrit
commit 177b6e91421e40d793e89366459f4794d2c444f2
Author: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
Date: Tue May 28 13:46:12 2013 +0200
Provide sane Kconfig default for cmos.default.
This commit was tested on the PC Engines ALIX.1C with the following commit:
PC Engines ALIX.1C: Add CMOS defaults.
Change-Id: I548005a58f430ed7b6da5249a24bbdcae440a1e9
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
---
src/arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 5f46145..c7b2434 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -81,6 +81,7 @@ config HAVE_CMOS_DEFAULT
config CMOS_DEFAULT_FILE
string
+ default "src/mainboard/$(MAINBOARDDIR)/cmos.default"
depends on HAVE_CMOS_DEFAULT
config BOOTBLOCK_SOUTHBRIDGE_INIT