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=1796058573; b=49utRQiatQZB73wfZLERL7aoD3kBBRoojBk/UFWUmBMGpl8BEyXRanspeINlIOPl2U7T CvgvW0wXTQg9q8NBY1h7xfl+7RIax0topITYLcXQnDKZGI11+Wh5b1cUjaeufIjNwsV95 4nYnzgcdPLl7ceBD5NE/5JXw57PK6JLjBK/fSNKDx2DInu9hgFOwFMJYVBLDYTC2Jzm/q MatTXCwT47MD2f+d3VbY2XRhx7omKnmQhHHf3vaMn5lIqG7bFEWkZOb18HvO7IWNgvyZi 97kxYzGg5qpWMR/Ae7UqrDNp9v9vfdAiube515Yydv7QaNW8bNffOrbAcpDdBTceOTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058573; 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=P6iLAo4lx13rO1rQIKl/aPtln2dwKxwiC5BiwOebVE4=; b=rbOeJWoII+7m4x8Neb2tq+YX1EA/64l27Ur7KNY8m8+kLCn8fnZYAvwTOlQoKMB4TBce WIVYO0+BpREW2pqUydW7V1lFWQV5Oy6lhBIgvQJu0or7+vLS4ogMK4fcAmWFuqYwlP5FW 4wdb1MRyVrZBS/5NxVnIWxMYBec2WcxpBQITk3j9iNXHJPSn9ZACo5tSu7CYDg66pjLBF oaRnGFco6xqoHvT+aNKWnWnYtXDflY8G0/TG7NsHUJDuC3fJgxr1fUxBp8TmJ4oVrcBqu lsgV+DNfkTCcLsmKcNpzBU6A1x7K91bPmagIizF7ETzJoxFByJHYzSJlAiJMijGfgrA== 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=oUA+Spbb; 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 32898606A32C; Mon, 30 Nov 2026 17:09:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 32898606A32C 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=oUA+Spbb 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 B6D8B16F2; Mon, 30 Nov 2026 09:09:28 -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 DE6AD3F86F; Mon, 30 Nov 2026 09:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796058571; bh=tO8vt8tkmr2hJUk6ZgHk53iMRoF1h5zLqBX1f/cslpg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oUA+Spbb/VB8Q8PuplDHABF6rnu/ofcDcI1+VnRRw5FcMP5BNN5AAd8qsaBC9JPRS Nfyz+/ekO8uBOsRPoclULgTgOCjtRjcdSldYQeJZ2bG3BEOGYk7UBbQTQ2ak5Vxury OojO3ytJFPFtWtNqh+0MMCFW3OogxgsM1SKEwaoU= 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 , "Fabio M. De Francesco" , Breno Leitao , Terry Bowman , Dan Williams , Morduan Zang , Ard Biesheuvel , linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v5 08/13] efi/cper: Increase memory error record buffer size Date: Mon, 30 Nov 2026 18:03:17 +0100 Message-ID: <20261130170438.323355-9-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 descriptions can exceed the 256-byte CPER record buffer. cper_mem_err2_location() needs about 263 characters when all location fields are valid, for example: node:65535 card:65535 module:65535 rank:4294967295 bank_group:255 bank_address:255 device:4294967295 row:4294967295 column:4294967295 bit_position:4294967295 requestor_id:0xffffffffffffffff responder_id:0xffffffffffffffff target_id:0xffffffffffffffff chip_id:255 cper_dimm_err2_location() needs 17 + strlen(bank) + strlen(device) characters for a DIMM name, or about 51 characters for the fallback: DIMM location: not present. DMI handle: 0xffffffff Increase CPER_REC_LEN to 512 to hold either helper's output. Signed-off-by: Pierre Gondois --- include/linux/cper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/cper.h b/include/linux/cper.h index ada7819447d8..d65b8ad2f8c6 100644 --- a/include/linux/cper.h +++ b/include/linux/cper.h @@ -29,9 +29,9 @@ * CPER record length contains the CPER fields which are relevant for further * handling of a memory error in userspace (we don't carry all the fields * defined in the UEFI spec because some of them don't make any sense.) - * Currently, a length of 256 should be more than enough. + * Allow room for the wider fields in Memory Error Section 2. */ -#define CPER_REC_LEN 256 +#define CPER_REC_LEN 512 /* * Severity definition for error_severity in struct cper_record_header * and section_severity in struct cper_section_descriptor -- 2.43.0