From patchwork Wed Oct 7 12:08:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mahesh J Salgaonkar X-Patchwork-Id: 1377972 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C5tRc2fhMz9sTD for ; Wed, 7 Oct 2020 23:09:16 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=ZDB384Qo; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C5tRb1PgGzDqP9 for ; Wed, 7 Oct 2020 23:09:15 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=mahesh@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=ZDB384Qo; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C5tRD750JzDqNb for ; Wed, 7 Oct 2020 23:08:56 +1100 (AEDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 097C1JRL188896 for ; Wed, 7 Oct 2020 08:08:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=pp1; bh=QF/rokl5d78dmEEXtaW6HRF3sM0QC89XoHxAjFOxQWk=; b=ZDB384Qom+xcLzH+VYM9bQYfUghYITgLI+nGjDc3HxjTyJLSbkqdBfq/fHHpmh7xMtz6 3Bld5mzBTQvXOVQSqwEUzNlsaJFOaSCD90PhQNdXsZ1hNVGKgU/Tu2dc5u8O0XjmOPrT U4Y4E6uoNgmTOTXTrI1QeBeIcFfKlDKMWqdnWrhC36cLbAxGDC7qE0klByNLnaSdpM3L c4VAr0Rrob+PC8CZNIhe4Hwfcq8tvYQHMDfUZ/huLLdNaoxs2QAs00t5niaOesz3dbuB zTbyL5DG6/Gl6AWnpQGu1JET72cGK0VDG6D9hB3D23KN0FayQpAisuD9yX/5AliLfub+ HQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 341d1c0wrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 07 Oct 2020 08:08:53 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 097C58aP014720 for ; Wed, 7 Oct 2020 08:08:53 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 341d1c0wqq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 08:08:53 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 097C82ZI021498; Wed, 7 Oct 2020 12:08:51 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03ams.nl.ibm.com with ESMTP id 33xgx8c8tn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 12:08:51 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 097C8mjD32178496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Oct 2020 12:08:48 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A592052057; Wed, 7 Oct 2020 12:08:48 +0000 (GMT) Received: from [192.168.0.63] (unknown [9.199.48.78]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0F71F52051; Wed, 7 Oct 2020 12:08:47 +0000 (GMT) From: Mahesh Salgaonkar To: skiboot list Date: Wed, 07 Oct 2020 17:38:47 +0530 Message-ID: <160207247879.2097386.9393389763183654717.stgit@jupiter> User-Agent: StGit/0.21 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-07_08:2020-10-06, 2020-10-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=784 impostorscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070079 Subject: [Skiboot] [PATCH v2 00/10] Add support to report EEH errors to BMC/FSP (eSEL) X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vasant Hegde Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This patch series implements a support to send an error log to BMC/FSP on EEH errors. First 3 patches enhances existing errorlog framework to able to generate serviceable errorlog event with FRU callout details. Next 6 patches gathers required data and generates/sends an EEH error log event. The last patch adds the tests to run-pel to verify errorlog generation with FRU callout section. Thanks, -Mahesh. --- Mahesh Salgaonkar (10): opal/errorlog: Allow generation of Serviceable attention events pel: replace opal_* prefixes with pel_* for pel definitions. opal/errorlog: Add support to include callout section in error log. opal: Get chip part-number and serial-number. opal: Get backplane (io base) part-number and serial-number. opal/eeh: Send an error callout on EEH error. opal/eeh: Send an error callout for EEH errors on PEs. opal/eeh: Add PHB diag data in error log for PE errors. opal/eeh: Add slot location info for frozen PEs. run-pel: Add additional tests with FRU callout section. core/chip.c | 4 + core/errorlog.c | 54 +++++++++ core/pci-opal.c | 158 ++++++++++++++++++++++++++++ core/pci.c | 11 ++ core/pel.c | 241 ++++++++++++++++++++++++++++++++++-------- core/test/run-pel.c | 48 ++++++++ hdata/iohub.c | 43 +++++++ hdata/test/p8-840-spira.dts | 2 hdata/test/p81-811.spira.dts | 2 hw/phb3.c | 36 ++++++ hw/phb4.c | 41 ++++++- include/chip.h | 28 +++++ include/errorlog.h | 21 ++++ include/pci.h | 12 ++ include/pel.h | 158 ++++++++++++++++++++-------- 15 files changed, 763 insertions(+), 96 deletions(-) -- Signature