Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp184190ybk; Tue, 12 May 2020 19:39:11 -0700 (PDT) X-Google-Smtp-Source: APiQypIWE6KJK0VkdSTzgSEGVo7KtDwhHKWZkVmlLGyjjfIlxybrlu30P7S+g10qMC6PZdiqz1sN X-Received: by 2002:a50:ec0c:: with SMTP id g12mr21134658edr.140.1589337551048; Tue, 12 May 2020 19:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589337551; cv=none; d=google.com; s=arc-20160816; b=UhB8gfV4P4DN4Gl1vwe0J3L/frGsyGIwH5e9vZtdjLEReLmMAWQEOQKcfAWd50+ugQ fBEppJIqLDMn+PjcQtew57g+CPgye4cmho0yi6OAPmjEYLzvVs7dwk63xRawZuB1Hx1K 8YNdezTyL5u6lKU8G5FOWGTm+otZXCgxIxzU7TDa29dJQgecs/dhAZSqELCeXv9tU1X8 dMcpFTek5KKEqNR808dxCDqDWtOANp/xS4Q/p82qTFHLB5YSAfOtIYngk8uFn0p1pwxi 11YCZGdFXSj9Lc9VuEuHq+RAHhvMQrLrzqAZuWI1Bq6Hjp0G0BuhmUyrFVP5m+cSv6kQ SMCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=y4qjSpOaeMtcAj4nxResYpYdzbQQz7c6FZ6AvEiCPKY=; b=uXE0fN0Zq5RZxk5xEtpwqQwBMJUfxbmuHNcEOC9q7oBqo3FUYpFL1ZkU3NQgp2S18U NH9JsXyOv44bzyoM+vuZh4hhyUVFLH7ZE3Vwm44xznRM3zjVuwFlJTkP9KCM6CKSvhaZ zosviuTYjS7fjUiF1YnPOoC1ifz4dqFz9iFzXz5qwY+i8SEI7xHOnGVxdlql6mgF45/m rthFzgfJRyXIg9O5tyLaRfaq+1jeF7BrBssyX+5+POcC+zyyh7iiu54NXpr9P+GImO5Q bdmDr5H+AOf70Gpo2yiOfqunxaF7dF7x8IdnMJaGU5MSArBjQVb3PquarpwOGqBp7Fen IftA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk16si2090998ejb.310.2020.05.12.19.38.48; Tue, 12 May 2020 19:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgEMChA (ORCPT + 99 others); Tue, 12 May 2020 22:37:00 -0400 Received: from mo-csw1516.securemx.jp ([210.130.202.155]:56258 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbgEMChA (ORCPT ); Tue, 12 May 2020 22:37:00 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 04D2ae54007140; Wed, 13 May 2020 11:36:40 +0900 X-Iguazu-Qid: 34trDAmeIu11rkEjys X-Iguazu-QSIG: v=2; s=0; t=1589337400; q=34trDAmeIu11rkEjys; m=pK2KXljWZTLcH9XwqUT1Sc58njnMsc8wOqfGuj2Bpqo= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1513) id 04D2acok007719; Wed, 13 May 2020 11:36:39 +0900 Received: from enc01.localdomain ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 04D2acj8000332; Wed, 13 May 2020 11:36:38 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.localdomain with ESMTP id 04D2acCb026192; Wed, 13 May 2020 11:36:38 +0900 From: Punit Agrawal To: Ard Biesheuvel Cc: Linux Kernel Mailing List , "Rafael J. Wysocki" , Borislav Petkov , James Morse , ACPI Devel Maling List , linux-efi Subject: Re: [Patch v2] efi: cper: Add support for printing Firmware Error Record Reference References: <20200512045502.3810339-1-punit1.agrawal@toshiba.co.jp> Date: Wed, 13 May 2020 11:36:37 +0900 In-Reply-To: (Ard Biesheuvel's message of "Tue, 12 May 2020 12:47:59 +0200") X-TSB-HOP: ON Message-ID: <87v9l0o91m.fsf@kokedama.swc.toshiba.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ard Biesheuvel writes: > On Tue, 12 May 2020 at 06:55, Punit Agrawal > wrote: >> >> While debugging a boot failure, the following unknown error record was >> seen in the boot logs. >> >> <...> >> BERT: Error records from previous boot: >> [Hardware Error]: event severity: fatal >> [Hardware Error]: Error 0, type: fatal >> [Hardware Error]: section type: unknown, 81212a96-09ed-4996-9471-8d729c8e69ed >> [Hardware Error]: section length: 0x290 >> [Hardware Error]: 00000000: 00000001 00000000 00000000 00020002 ................ >> [Hardware Error]: 00000010: 00020002 0000001f 00000320 00000000 ........ ....... >> [Hardware Error]: 00000020: 00000000 00000000 00000000 00000000 ................ >> [Hardware Error]: 00000030: 00000000 00000000 00000000 00000000 ................ >> <...> >> >> On further investigation, it was found that the error record with >> UUID (81212a96-09ed-4996-9471-8d729c8e69ed) has been defined in the >> UEFI Specification at least since v2.4 and has recently had additional >> fields defined in v2.7 Section N.2.10 Firmware Error Record Reference. >> >> Add support for parsing and printing the defined fields to give users >> a chance to figure out what went wrong. >> >> Signed-off-by: Punit Agrawal >> Cc: Ard Biesheuvel >> Cc: "Rafael J. Wysocki" >> Cc: Borislav Petkov >> Cc: James Morse >> Cc: linux-acpi@vger.kernel.org >> Cc: linux-efi@vger.kernel.org >> --- >> Hi Ard, >> >> I've updated the patch based on your feedback. >> >> As you noted, some aspects of the spec make it a bit tricky to support >> all revisions in a nice way (e.g., size check) but this version should >> fix existing issues. >> >> Thanks, >> Punit >> >> v1[0] -> v2: >> * Simplified error record structure definition >> * Fixed size check >> * Added comment to clarify offset calculation for dumped data >> * Style fixes for multiline if blocks > > Thanks. I will queue this as a fix. Thanks! Just for my understanding - are you planning to send this for v5.7 or v5.8? There's no rush, so I am fine either ways. [...]