[coreboot] Re: AM1I-A Failing to Boot

2019-12-25 Thread Mike Banon
I hope this board is saved with a change
https://review.coreboot.org/c/coreboot/+/37829 ( asus/am1i-a: Switch
away from ROMCC_BOOTBLOCK )

On Mon, Dec 23, 2019 at 11:40 AM Matt B  wrote:
>
> Hello,
>
>> 4.11-400
>
> What is the extra -400? It doesn't seem like a commit hash.
>
> Sincerely,
> -Matt
>
> On Thu, Dec 12, 2019 at 5:23 PM Kyösti Mälkki  wrote:
>>
>> On Thu, Dec 12, 2019 at 11:58 AM Mike Banon  wrote:
>> >
>> > It would be nice if this "drop time" could be extended until at least
>> > mid January (i.e 19th Jan), so that those of us who have New Year
>> > holidays will be able to spend them working on coreboot. I also want
>> > to save AM1I-A but don't have much time in December.
>>
>> Download board-status for 4.11-400 so that I know it boots, solution
>> for am1i-a may magically appear after that.
>>
>> Kyösti
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Re: Extended IvyBridge CPU configuration

2019-12-25 Thread Lars Hochstetter
Update: I flashed the original Lenovo BIOS v2.81 (with keyboard EC mod) 
and the issues seem to be gone. Additionally the RAM now runs with 
2133MHz without the system freezing and I also can compile crossgcc-i386 
with CPUS=8 without issues. Watching videos on YT using Firefox works, too.


The Intel ME is also back. Could there be an issue with the system 
initialization done by the Intel ME which does not occur if the Intel ME 
is fully functional?


On 12/24/19 1:14 PM, Lars Hochstetter wrote:
There are some similarities: the system freezes (i.e. UI is 
unresponsive, you have to hold down the power button to reset the 
system) and sometimes it outright crashes into a reboot. The crashes 
seem to trigger when the CPU is running high loads - take note though: 
with your HT option patch I could run the stress tests of the CoreFreq 
(https://github.com/cyring/CoreFreq) tool without crashes / freezes 
but I only tried for a couple minutes.


I do get crashes sometimes when I compile crossgcc-i386 
(CPUS=$(nproc), with and without HT enabled through nosmt in the GRUB 
config) but more often make runs into some error and simply won't 
compile the sources (I notice a certain tendency towards the gcc 
compilation) - I would usually recompile but it now seems to be more 
persistent. There seems to be also a good chance to crash when the CPU 
isn't fully loaded but multiple applications are open - most notably 
Firefox when watching Youtube videos and doing something in another 
application / Firefox tab.


Originally I was running coreboot v4.6, then changed to v4.8.1 then 
v4.9, then for some time to master (blobs were based on BIOS v2.79, me 
disabled and neutered). I'd argue that the issues started appearing 
after my switch to v4.11. However I can not rule out hardware issues, 
as I overtightened the screws on the heatsink last time I was working 
on my T430 - maybe the overtightening caused physical damage to some 
solder joints on the CPU / socket.


Here are some system stats:

CPU: i7-3840QM, TurboBoost is disabled through the intel_pstate driver 
to prevent my laptop from melting
RAM: HyperX 2x8GB 2133MHz DDR3 1.35V HX321LS11IB2K2/16, it runs at 
1600MHz (the "ignore fuses" option isn't set) though as the system 
would freeze shortly after logging in

Mainboard: no dGPU variant
OS: Debian 10.2 64bit with the default Gnome3 DE
Mods: the 7 row keyboard mod and the FHD screen mod (maybe that is why 
I didn't see any visual artifacts)
coreboot blobs (ifd, me, gbe): based on BIOS v2.81, me is neutered and 
disabled


I managed to capture following dmesg, when the system soft locked 
while Firefox was open and I managed to switch to a tty. If I recall 
correctly there was some audio repetition.


[  926.163124] ISO 9660 Extensions: RRIP_1991A
[ 1094.740789] usb 1-1.2: USB disconnect, device number 8
[ 1267.534956] BUG: unable to handle kernel paging request at 
f60050b36388

[ 1267.534960] PGD 4617e2067 P4D 4617e2067 PUD 0
[ 1267.534964] Oops:  [#1] SMP PTI
[ 1267.534966] CPU: 2 PID: 5953 Comm: Compositor Tainted: G   
OE 4.19.0-6-amd64 #1 Debian 4.19.67-2+deb10u2
[ 1267.534967] Hardware name: LENOVO 2347CM9/2347CM9, BIOS CBET4000 
4.11 11/19/2019

[ 1267.534973] RIP: 0010:filemap_map_pages+0x9a/0x3a0
[ 1267.534974] Code: ff 0f 84 65 01 00 00 4c 39 6c 24 20 0f 87 77 01 
00 00 49 8b 0f 48 85 c9 0f 84 cc 00 00 00 48 89 c8 83 e0 03 0f 85 cb 
02 00 00 <48> 8b 41 08 48 8d 78 ff a8 01 48 0f 44 f9 8b 47 34 85 c0 74 
d3 8d

[ 1267.534976] RSP: :b032825dfd88 EFLAGS: 00010246
[ 1267.534977] RAX:  RBX: 0480 RCX: 
f60050b36380
[ 1267.534978] RDX: 0001 RSI: 003b RDI: 
00045d859067
[ 1267.534979] RBP: 0001 R08: 00042cd8d000 R09: 
93eb2bdd1da8
[ 1267.534980] R10: 01c0 R11: 0185 R12: 
93eb580a9518
[ 1267.534981] R13: 018a R14: b032825dfe18 R15: 
93eb2bdd1e00
[ 1267.534983] FS:  7f41b308d700() GS:93eb6128() 
knlGS:

[ 1267.534984] CS:  0010 DS:  ES:  CR0: 80050033
[ 1267.534985] CR2: f60050b36388 CR3: 0004584be004 CR4: 
001606e0

[ 1267.534986] Call Trace:
[ 1267.534992]  __handle_mm_fault+0x1030/0x1270
[ 1267.534995]  handle_mm_fault+0xd6/0x200
[ 1267.534997]  __do_page_fault+0x249/0x4f0
[ 1267.535001]  ? page_fault+0x8/0x30
[ 1267.535002]  page_fault+0x1e/0x30
[ 1267.535005] RIP: 0033:0x7f41c7abe284
[ 1267.535006] Code: 29 4f 10 0f 29 57 20 0f 29 5f 30 48 83 c7 40 48 
83 fa 40 77 d0 0f 11 29 0f 11 71 f0 0f 11 79 e0 44 0f 11 41 d0 41 0f 
11 23 c3 <0f> 10 26 0f 10 6e 10 0f 10 76 20 0f 10 7e 30 44 0f 10 44 16 
f0 4c

[ 1267.535007] RSP: 002b:7f41b3089788 EFLAGS: 00010202
[ 1267.535009] RAX: 7f418f9b5600 RBX: 7f418f9b5600 RCX: 
7f418f9b5600
[ 1267.535010] RDX: 0194 RSI: 7f417f8a11c0 RDI: 
7f418f9b5600
[ 1267.535011] RBP: 7f41b308a150 R08: 0065 R09: 

[coreboot] Sandybridge-M: Unable to compile board on 4.11 but works in 4.10

2019-12-25 Thread Jose Trujillo via coreboot
Happy holidays to all:

My project is unable to compile/build on 4.11/master but do well with 4.10.
It shows the following error:

/home/fw_dev/Program_Files/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld.bfd: 
build/bootblock/southbridge/intel/bd82x6x/early_pch.o: in function 
`early_pch_init':
/home/fw_dev/Program_Files/coreboot/src/southbridge/intel/bd82x6x/early_pch.c:330:
 undefined reference to `mainboard_gpio_map'
make: *** [src/arch/x86/Makefile.inc:125: build/cbfs/fallback/bootblock.debug] 
Error 1

Looks like `mainboard_gpio_map' is already defined on: #include 

What can I do to make it build successfully?
The build log and project are attached here.

I tried to upload the project to gerrit but for some reason failed (maybe needs 
some cleaning).
Thank you,
Jose Trujillo.   HOSTCC util/sconfig/lex.yy.o
HOSTCC util/sconfig/sconfig.tab.o
HOSTCC util/sconfig/main.o
HOSTCC util/sconfig/sconfig (link)
SCONFIGmainboard/kontron/bSC2/devicetree.cb
HOSTCC nvramtool/cli/nvramtool.o
HOSTCC nvramtool/cli/opts.o
HOSTCC nvramtool/cmos_lowlevel.o
HOSTCC nvramtool/cmos_ops.o
HOSTCC nvramtool/common.o
HOSTCC nvramtool/compute_ip_checksum.o
HOSTCC nvramtool/hexdump.o
HOSTCC nvramtool/input_file.o
HOSTCC nvramtool/layout.o
HOSTCC nvramtool/accessors/layout-common.o
HOSTCC nvramtool/accessors/layout-text.o
HOSTCC nvramtool/accessors/layout-bin.o
HOSTCC nvramtool/lbtable.o
HOSTCC nvramtool/reg_expr.o
HOSTCC nvramtool/cbfs.o
HOSTCC nvramtool/accessors/cmos-mem.o
HOSTCC nvramtool/nvramtool (link)
OPTION option_table.h
CC bootblock/mainboard/kontron/bSC2/static.o
CC bootblock/arch/x86/boot.o
CC bootblock/arch/x86/bootblock_crt0.o
CC bootblock/arch/x86/cf9_reset.o
CC bootblock/arch/x86/cpu_common.o
GENbuild.h
CC bootblock/arch/x86/id.o
CC bootblock/arch/x86/memcpy.o
HOSTCC cbfstool/fmaptool.o
HOSTCC cbfstool/cbfs_sections.o
HOSTCC cbfstool/fmap_from_fmd.o
HOSTCC cbfstool/fmd.o
HOSTCC cbfstool/fmd_parser.o
HOSTCC cbfstool/fmd_scanner.o
HOSTCC cbfstool/fmap.o
HOSTCC cbfstool/kv_pair.o
HOSTCC cbfstool/valstr.o
HOSTCC cbfstool/fmaptool (link)
FMAP   build/util/cbfstool/fmaptool -h build/fmap_config.h 
build/fmap.fmd build/fmap.fmap
SUCCESS: Wrote 266 bytes to file 'build/fmap.fmap' (and generated header)
The sections containing CBFSes are: COREBOOT
CP bootblock/arch/x86/memlayout.ld
CC bootblock/arch/x86/memset.o
CC bootblock/arch/x86/mmap_boot.o
CC bootblock/arch/x86/timestamp.o
CC bootblock/arch/x86/walkcbfs.o
CC bootblock/commonlib/cbfs.o
CC bootblock/commonlib/iobuf.o
CC bootblock/commonlib/lz4_wrapper.o
CC bootblock/commonlib/mem_pool.o
CC bootblock/commonlib/region.o
CC bootblock/console/console.o
CC bootblock/console/die.o
CC bootblock/console/init.o
CC bootblock/console/post.o
CC bootblock/console/printk.o
CC bootblock/console/vsprintf.o
CC bootblock/console/vtxprintf.o
CC bootblock/cpu/intel/car/bootblock.o
CC bootblock/cpu/intel/car/non-evict/cache_as_ram.o
CC bootblock/cpu/intel/common/fsb.o
CC bootblock/cpu/intel/microcode/microcode.o
CC bootblock/cpu/intel/microcode/microcode_asm.o
CC bootblock/cpu/intel/model_206ax/bootblock.o
CC bootblock/cpu/x86/early_reset.o
CC bootblock/cpu/x86/lapic/boot_cpu.o
CC bootblock/cpu/x86/mtrr/debug.o
CC bootblock/cpu/x86/mtrr/earlymtrr.o
CC bootblock/cpu/x86/pae/pgtbl.o
CC bootblock/cpu/x86/tsc/delay_tsc.o
CC bootblock/device/device_const.o
CC bootblock/device/i2c.o
CC bootblock/device/mmio.o
CC bootblock/device/pci_early.o
CC bootblock/device/pci_ops.o
CC bootblock/drivers/pc80/pc/i8254.o
CC bootblock/drivers/pc80/rtc/mc146818rtc.o
CC bootblock/drivers/pc80/rtc/mc146818rtc_boot.o
CC bootblock/drivers/spi/adesto.o
CC bootblock/drivers/spi/amic.o
CC bootblock/drivers/spi/atmel.o
CC bootblock/drivers/spi/bitbang.o
CC bootblock/drivers/spi/eon.o
CC bootblock/drivers/spi/gigadevice.o
CC bootblock/drivers/spi/macronix.o
CC bootblock/drivers/spi/spansion.o
CC bootblock/drivers/spi/spi-generic.o
CC bootblock/drivers/spi/spi_flash.o
CC bootblock/drivers/spi/sst.o
CC bootblock/drivers/spi/stmicro.o
CC bootblock/drivers/spi/winbond.o
CC