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=1796058572; b=ZHa6QDu5I5kcck8vUZBGyeBupaRJAbiMil4e7RHRSsi+ElXM3beNnm+AqmCY0BtrUGhC XNIL6ozvbo21cChS/9UQ1przWyBb3Kp18rKFbfY3St6WykZdz1+e7/666sGS5dajjVSh5 CNSdr+5IYVU1sncqjpu3HEmDqSar+WtyPs+XlmLLwu3PxVxoLta6G2pd4zGJ1IN4iulHo Kz5abj3tUUds8+0DMBhPAZK4mncJNPB1geRUF8PEom/s6PaalR1zZiAEzCkhWQN2M0CvP EnTmJ55oQH9Itvo1vZXk45FIOE6gwZIirZ46e7IqwPtgaauV5eT3uPTjXQ7uXzyD6Tw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058572; 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=g+JefxuWqhWTzkT2/YV1Szo3UMGx8O4ezwmbklWuHJXgjF39upqtou3H/1Yn1KREIA8d N4E/nTrbaSOkU2WDnpboS4Ldd843/KSUTWjbsKms4AojrQ2bIgn/plC7KAwj/3ULNsWS4 cIHYO/xfLONpOySlWIwpw/+qrYVBq01vDzqGbsLG+PhG13KxDhIAa2Ww9SNYfLDR0l4pu G+7bR2/ZzYRn3FVaBA4t/HOvn8ihC1vkalbsvdH9hKRhmkkY5bFmW6wO6+QfNCpovZqzc 4Ya1+uAGVgwMuIaF1oxQQSRhF/e0dvYwxqb4KYJ1TDCayz5JwGmp5q6KIbVZuVMPu+w== 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 32804606A31C for ; Mon, 30 Nov 2026 17:09:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 32804606A31C 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: acpica-devel@lists.linux.dev 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