soc/intel/pantherlake: Disable stack overflow debug options

This patch disables the `DEBUG_STACK_OVERFLOW_BREAKPOINTS` and
`DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES` Kconfig options
for the Pantherlake SOC.

These options are causing false positive stack overflow detections,
leading to unnecessary debugging.

w/o this patch:

stack corruption before for verstage and romstage early.

    Failed to create address zero instruction fetch breakpoint
    Failed to create stack canary breakpoint
    ...
    ...
    Stack corruption detected at rip: 0xf983007a
    Stack corruption detected at rip: 0xf983007a

Change-Id: I31b99a7b6de221d3ec23f6538c078d0797a6084f
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85584
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Dinesh Gehlot <digehlot@google.com>
This commit is contained in:
Subrata Banik 2024-12-13 13:07:28 +05:30
commit 51cc2bacb6

View file

@ -425,4 +425,13 @@ config SOC_INTEL_UFS_CLK_FREQ_HZ
int
default 38400000
# Override DEBUG Kconfig to avoid false alarm about stack overflow.
config DEBUG_STACK_OVERFLOW_BREAKPOINTS
bool
default n
config DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES
bool
default n
endif