0035-src-intel-skylake-Disable-stack-overflow-debug-optio.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 18f4e970ebda43dd538f74398aea463a67040dd3 Mon Sep 17 00:00:00 2001
  2. From: Leah Rowe <leah@libreboot.org>
  3. Date: Mon, 6 Jan 2025 01:36:23 +0000
  4. Subject: [PATCH 35/37] src/intel/skylake: Disable stack overflow debug options
  5. The option was appearing in T480/3050micro configs of lbmk,
  6. after updating on the coreboot/next uprev for 20241206 rev8:
  7. CONFIG_DEBUG_STACK_OVERFLOW_BREAKPOINTS=y
  8. I did some digging. See coreboot commit:
  9. commit 51cc2bacb6b07279b97e9934d079060475481fb6
  10. Author: Subrata Banik <subratabanik@google.com>
  11. Date: Fri Dec 13 13:07:28 2024 +0530
  12. soc/intel/pantherlake: Disable stack overflow debug options
  13. Well now:
  14. I'm disabling this behaviour on Skylake, for the same
  15. behaviour, because I want as few behaviour changes in general,
  16. as possible, for the rev8 release.
  17. According to Subrata's patch, which was for Pantherlake,
  18. without this change, stack corruption can occur on verstage
  19. and romstage early on. Please look at that coreboot patch,
  20. referenced above, for clarity.
  21. I see no harm in disabling this option for Skylake, since
  22. the behaviour that it otherwise enables was not present
  23. before.
  24. Signed-off-by: Leah Rowe <leah@libreboot.org>
  25. ---
  26. src/soc/intel/skylake/Kconfig | 9 +++++++++
  27. 1 file changed, 9 insertions(+)
  28. diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
  29. index d51ffaef7b..42af82a5d8 100644
  30. --- a/src/soc/intel/skylake/Kconfig
  31. +++ b/src/soc/intel/skylake/Kconfig
  32. @@ -129,6 +129,15 @@ config DCACHE_RAM_SIZE
  33. The size of the cache-as-ram region required during bootblock
  34. and/or romstage.
  35. +# Override DEBUG Kconfig to avoid false alarm about stack overflow.
  36. +config DEBUG_STACK_OVERFLOW_BREAKPOINTS
  37. + bool
  38. + default n
  39. +
  40. +config DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES
  41. + bool
  42. + default n
  43. +
  44. config DCACHE_BSP_STACK_SIZE
  45. hex
  46. default 0x20400 if FSP_USES_CB_STACK
  47. --
  48. 2.39.5