From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796058605; b=1bAqP4uR7HcmLu1qzZcviJr7DlQcskyz5938JAk1dxE4fNP9MvqRJaQpgc7KYqJ2Le3u D70LogD74rl8vp06v9lhbjSP1iklxEdPxNUy2CVwNJ6Vu2Jk/R/yBZ+EcVsZN+DI+7EOc 3ahR3FLlDJmpnYKjRPe5mossWakNq7AWOuTgMHZZdx7XK2awBpaiabYctZXhx4H8ofhXA Tbb4HWt5DwfybWZfZ5OV1tsAzK+EZ0I6WUW70l+btl6V/V+/i6QpLm/1rz8TqILInULLo 8jpdTuFDGzvjJM3VkU6SmrzWFp4GWq+qkLbeNDakKJa/CgBz0+Cjl0Xrz2C53inoJfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058605; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=6CdC9Jm/M41nDT5m/cU4gK25qUUTZ1VAUaHTHAqSi0c=; b=dKOOgJyQxzAWacUzbhkWZhvhAZFhBMYLQNeTxsEKy3J1sVoCFhIO7FXlG9NnPDLVruGH yLQw+9saYRnPwufU6rRh0Ae7qs8ak6+59fJjjjzkcO0vovshFgMN3KUeH3dd9xHklzrZD V9yp5RPpX0aJjynIPWaYs4QXl6Wkdh55kG7a5DB6RdbkeilRpb2/6o+jOHeHlVNnEU9vN nagvT3lFwzouY3MJIHIaw0tQLWuhFk8KtSMLm63UKz2jeUueTZXpQ2rNEYCFL8tU+gv0t ztSsJrEOFnGM3ANPPx5quX1Ll25QHvtdQLnPl4D3im/AKEdT0gZSAUFiB4Z73ddsu0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b="s/PavfjL"; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 418BC606A33C; Mon, 30 Nov 2026 17:10:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 418BC606A33C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=s/PavfjL Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE52719F6; Mon, 30 Nov 2026 09:09:58 -0800 (PST) Received: from e135073.nice.arm.com (e135073.arm.com [10.34.84.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 38F523F86F; Mon, 30 Nov 2026 09:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796058601; bh=BAENeMx/+3A7S7j08gRuFWtt92w4flUiR/WnFb/mg2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s/PavfjLcPUwkDyJw1tUvlgafhBt+DwTvCHnkrt3oGgFWVC/Mh/QGkCzYxhPVWRmA Y04qmN52vqJcE9mHQYLg7NHLTHYfDcF+R+uKW9Vsw4nnvXW313mTbtTenjT6v7Sv2D IqH1zj3JpJqmWwMSSb4OhHBA/upRjuvDAbVih+rc= From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Ashok Raj , James Morse , Mark Brown , Pierre Gondois , "Rafael J. Wysocki" , Len Brown , Tony Luck , Borislav Petkov , Hanjun Guo , Mauro Carvalho Chehab , Shuai Xue , Maciej Wieczor-Retman , Pawel Chmielewski , Dave Jiang , Jonathan Cameron , Breno Leitao , "Fabio M. De Francesco" , Dan Williams , Terry Bowman , Ard Biesheuvel , Morduan Zang , linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v5 11/13] EDAC/ghes: Increase memory error location and detail buffers Date: Mon, 30 Nov 2026 18:03:20 +0100 Message-ID: <20261130170438.323355-12-pierre.gondois@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130170438.323355-1-pierre.gondois@arm.com> References: <20261130170438.323355-1-pierre.gondois@arm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Memory Error Section 2 can combine the roughly 263-character output of cper_mem_err2_location() with a DIMM description from cper_dimm_err2_location(). Increase LOCATION_SIZE to 512 to hold both. print_mem_error2_other_detail() adds formatting text and a status description to the location. Its output can include ~65 chars: APEI location: status(0xffffffffffff13ff): section_status:0xff Allow about 65 chars plus the status description by sizing OTHER_DETAIL_LEN relative to LOCATION_SIZE. Signed-off-by: Pierre Gondois --- drivers/edac/ghes_edac.c | 3 ++- include/linux/edac.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index e940f56c9157..44111e40d9f5 100644 --- a/drivers/edac/ghes_edac.c +++ b/drivers/edac/ghes_edac.c @@ -17,7 +17,8 @@ #include #include -#define OTHER_DETAIL_LEN 400 +/* Allow 65 formatting characters plus the longest status description (63). */ +#define OTHER_DETAIL_LEN (LOCATION_SIZE + 128) struct ghes_pvt { struct mem_ctl_info *mci; diff --git a/include/linux/edac.h b/include/linux/edac.h index f7a8218f9cc0..ef0569aa97be 100644 --- a/include/linux/edac.h +++ b/include/linux/edac.h @@ -48,7 +48,7 @@ static inline void opstate_init(void) #define EDAC_MC_LABEL_LEN 31 /* Maximum size of the location string */ -#define LOCATION_SIZE 256 +#define LOCATION_SIZE 512 /* Defines the maximum number of labels that can be reported */ #define EDAC_MAX_LABELS 8 -- 2.43.0