From 585426ae3f9f137b9367abd669f2c7359fe740ec Mon Sep 17 00:00:00 2001 From: Hongbo Li Date: Fri, 4 Dec 2020 15:46:12 +0800 Subject: [PATCH] acpi: disable AMD ghes timer This timer will cause big schedule latency and network delay on AMD machine. Signed-off-by: Hongbo Li --- drivers/acpi/apei/hest.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 9cb74115a..3e431a774 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -142,8 +142,10 @@ static int __init hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void { int *count = data; - if (hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR || - hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR_V2) + if ((hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR || + hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR_V2) && + (boot_cpu_data.x86_vendor != X86_VENDOR_AMD || + !(hest_hdr->source_id &0xF000))) (*count)++; return 0; } @@ -154,8 +156,10 @@ static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data) struct ghes_arr *ghes_arr = data; int rc, i; - if (hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR && - hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR_V2) + if ((hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR && + hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR_V2) || + ((hest_hdr->source_id & 0xF000) && + boot_cpu_data.x86_vendor == X86_VENDOR_AMD)) return 0; if (!((struct acpi_hest_generic *)hest_hdr)->enabled)