switch-coreboot/src
Paul Menzel d654f42e27 AMD: Reduce stack size from 64 KB to the default of 4 KB
Apply the following commit to all AMD boards.

    commit 935850e082
    Author: Stefan Reinauer <reinauer@chromium.org>
    Date:   Mon May 6 16:16:03 2013 -0700

        asrock/e350m1: reduce default stack size

        The stack used on the ASRock E350M1 is significantly less than
        what we currently set (64k per core). In fact, we use about half
        of the default stack size (4k) on core 0 and even less on non
        BSP cores [1]:

        $ grep stack coreboot_without_patch_but_monotonic_timer.log
        CPU1: stack_base 002a0000, stack_end 002afff8
        CPU1: stack: 002a0000 - 002b0000, lowest used address 002afda8, stack used: 600 bytes
        CPU0: stack: 002b0000 - 002c0000, lowest used address 002bf75c, stack used: 2212 bytes

        […]

        Reviewed-on: http://review.coreboot.org/3209

Please note that AGESA seems to define bigger stack sizes. But
these seem to be too much too.

    $ git grep STACK_SIZE src/vendorcode/amd
    […]
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:#define BSP_STACK_SIZE            16384
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:#define CORE0_STACK_SIZE          16384
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:#define CORE1_STACK_SIZE          4096
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:  BSP_STACK_SIZE,
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:  CORE0_STACK_SIZE,
    src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/cpuF14CacheDefaults.c:  CORE1_STACK_SIZE,
    […]

The following command was used to create the patch.

    $ git grep -l STACK_SIZE src/mainboard/ | xargs sed -i '/STACK_SIZE/,+3d'

Change-Id: I36b95b7a6f190b64d0639fc036ce2fb0253f3fa1
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3217
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-05-09 20:19:24 +02:00
..
arch Drop CONFIG_AP_CODE_IN_CAR 2013-05-08 19:14:21 +02:00
console spkmodem console 2013-04-18 22:47:59 +02:00
cpu copy_and_run: drop boot_complete parameter 2013-05-08 18:24:23 +02:00
device device tree: track init times 2013-05-01 21:36:16 +02:00
drivers x86 I/O APIC: Make functions io_apic_{read,write}() public 2013-05-07 22:40:10 +02:00
ec ChromeEC: Drop unneeded Kconfig variable EC_GOOGLE_API_ROOT 2013-04-18 02:47:23 +02:00
include hardwaremain: drop boot_complete parameter 2013-05-08 18:23:33 +02:00
lib hardwaremain: drop boot_complete parameter 2013-05-08 18:23:33 +02:00
mainboard AMD: Reduce stack size from 64 KB to the default of 4 KB 2013-05-09 20:19:24 +02:00
northbridge Drop CONFIG_AP_CODE_IN_CAR 2013-05-08 19:14:21 +02:00
southbridge Intel 82801Gx: LPC: Unify I/O APIC setup 2013-05-07 22:40:50 +02:00
superio Add new superio device 2013-04-12 00:37:34 +02:00
vendorcode AMD F15: Fix warning in Proc/CPU/Feature 2013-05-04 00:25:19 +02:00
Kconfig Drop CONFIG_AP_CODE_IN_CAR 2013-05-08 19:14:21 +02:00