From patchwork Tue Apr 19 13:46:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lombard X-Patchwork-Id: 1618938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=pIrcGX0J; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KjQ8F1yxKz9sGZ for ; Tue, 19 Apr 2022 23:46:53 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KjQ8F1DrGz3bYZ for ; Tue, 19 Apr 2022 23:46:53 +1000 (AEST) Authentication-Results: lists.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=pIrcGX0J; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=clombard@linux.vnet.ibm.com; receiver=) 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=pIrcGX0J; dkim-atps=neutral Received: from mx0b-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 4KjQ810791z2xrb for ; Tue, 19 Apr 2022 23:46:40 +1000 (AEST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23JCUmow012792 for ; Tue, 19 Apr 2022 13:46:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=Fg9hBOc7UNxQhMVxroXMiEfcCeSQYN8x+ZWu3j7STMM=; b=pIrcGX0JQCdL9qYA2lF1xshzvCEiI4jRbcVWaXxl1+2qI3uzuHaXfBCVJgw7vAEbYMw7 aQfNZfqXoTrOJXCxFrt0BWeyYTCVy67uWlXJ+ruXcptYhnkYvgFcxEPr1/z7I/3DI7ke 7DUQZu7GpumDr/CfeafIsm39G6XOUynEnhtMb3WhKhI2OAole0A6siDPv7uKvmCv+qAk H4j+yol4siU4v+/Ae5mPl+OViP8ZaH3HjIm7NCRSWuNAitbg7oNHzAbqKRpjackWXABD x12IJRuGazTihIzv6T1y+CmrRZwWOKu4WsXFjwsNeQqcBbePNJeQjgZWVfp8gzcktw1f KQ== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 3fg7kag5f9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Apr 2022 13:46:37 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23JDbHOB030579 for ; Tue, 19 Apr 2022 13:46:35 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 3ffne94fur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Apr 2022 13:46:35 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23JDkXXP32112900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 19 Apr 2022 13:46:33 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7DA7711C04C for ; Tue, 19 Apr 2022 13:46:33 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E77C11C04A for ; Tue, 19 Apr 2022 13:46:33 +0000 (GMT) Received: from li-ed209401-43e8-11cb-8043-c0c0b85d70f7.biot.fr.ibm.com (unknown [9.144.57.92]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Tue, 19 Apr 2022 13:46:33 +0000 (GMT) From: Christophe Lombard To: skiboot@lists.ozlabs.org Date: Tue, 19 Apr 2022 15:46:18 +0200 Message-Id: <20220419134633.42098-1-clombard@linux.vnet.ibm.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: TBF6yxmo1ncW6Q4bIOyLLxSPHXNSCBuO X-Proofpoint-GUID: TBF6yxmo1ncW6Q4bIOyLLxSPHXNSCBuO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-19_05,2022-04-15_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 mlxlogscore=928 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204190076 Subject: [Skiboot] [PATCH 00/14] Complete PLDM responder and enable PLDM support 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: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This set of patches allows to complete platform responder to handle platform events (set events, event messages, state sensors reading, state effecters) and fru messages from the BMC. Specific astbmc features (watchdog timer, Real Time Clock, Opal IPMI calls) are also supported. To enable the new PLDM features, add CONFIG_PLDM as a parameter: make .... CONFIG_PLDM=1 This patch set should be applied on top of these previous sets: - Implement virtual flash content using PLDM. - Import external libraries for MCTP/PLDM protocols. - Implement MCTP and PLDM features. Christophe Lombard (14): core/pldm: Handle Watchdog timer. core/pldm: Decode the SetEventReceiver request core/pldm: Decode the PlatformEventMessage request core/pldm: Decode the GetStateSensorReadings request core/pldm: Decode the SetStateEffecterStates request core/pldm: Find PDR record by record handle core/pldm: Encode PLDM PDR Repository Change eventData core/pldm: Update or create terminus locator in the given repo core/pldm: Decode the GetPDR request core/pldm: Decode the GetFRURecordTableMetadata request core/pldm: Decode the GetFruRecordTable request core/pldm: Register OPAL_RTC_READ/WRITE calls back core/pldm: Register OPAL_IPMI_SEND/RECV calls back platforms/astbmc: Enable PLDM support core/init.c | 5 + core/pldm/Makefile.inc | 3 + core/pldm/pldm-bios-requests.c | 133 ++++++ core/pldm/pldm-common.c | 10 + core/pldm/pldm-fru-requests.c | 65 +++ core/pldm/pldm-opal.c | 142 ++++++ core/pldm/pldm-platform-requests.c | 257 +++++++++++ core/pldm/pldm-responder.c | 679 +++++++++++++++++++++++++++++ core/pldm/pldm-rtc.c | 75 ++++ core/pldm/pldm-watchdog.c | 125 ++++++ core/pldm/pldm.h | 15 +- include/pldm.h | 22 + platforms/astbmc/astbmc.h | 4 + platforms/astbmc/common.c | 42 ++ platforms/astbmc/pnor.c | 25 ++ platforms/astbmc/rainier.c | 33 +- 16 files changed, 1630 insertions(+), 5 deletions(-) create mode 100644 core/pldm/pldm-opal.c create mode 100644 core/pldm/pldm-rtc.c create mode 100644 core/pldm/pldm-watchdog.c