coreboot/src/drivers/pc80
Timothy Pearson 7b22d84d55 drivers/pc80: Add optional spinlock for nvram CBFS access
When enabling the IOMMU on certain systems dmesg is spammed with I/O page faults like the following:
AMD-Vi: Event logged [IO_PAGE_FAULT device=00:14.0 domain=0x000a address=0x000000fdf9103300 flags=0x0030]

Decoding the faulting address:
0x000000fdf9103300
        fdf91x          Hypertransport system management region
              33        SysMgtCmd (System Management Command) = 0x33
              3         Base Command Type = 0x3: STPCLK (Stop Clock request)
               3        SMAF (System Management Action Field) = [3:1] = 0x1
               1        Signal State Bit Map = [0] = 0x1

Therefore, the error appears to be triggered by an upstream C1E request.

This was eventually traced to concurrent access to the SP5100's SPI Flash controller by
multiple APs during startup.  Calls to the nvram read functions get_option and read_option
call CBFS functions, which in turn make near-simultaneous requests to the SPI Flash
controller, thus placing the SP5100 in an invalid state.  This limitation is not documented
in any public AMD errata, and was only discovered through considerable debugging effort.

Change-Id: I4e61b1ab767b1b7958ac7c1cf20eee41d2261bef
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: https://review.coreboot.org/12061
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2015-12-18 19:47:01 +01:00
..
tpm Remove #ifdef checks on Kconfig symbols 2015-12-06 18:46:12 +01:00
vga tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
i8254.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
i8259.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
isa-dma.c Move top level pc80 directory to drivers/ 2012-04-27 19:23:16 +02:00
Kconfig drivers/pc80: Do not initialize PS2 keyboard by default 2015-09-09 16:47:48 +00:00
keyboard.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc kbuild: Use wildcard for driver subdirectories 2015-05-07 19:41:42 +02:00
mc146818rtc.c drivers/pc80: Add optional spinlock for nvram CBFS access 2015-12-18 19:47:01 +01:00
mc146818rtc_early.c Remove #ifdef checks on Kconfig symbols 2015-12-06 18:46:12 +01:00
ps2_controller.asl tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spkmodem.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
udelay_io.c drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00