From patchwork Sat May 7 06:35:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Singh Tomar X-Patchwork-Id: 1627831 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=PcnF9KVO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KwHlL6NKyz9sGV for ; Sat, 7 May 2022 16:36:30 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KwHlH3RgMz3bpw for ; Sat, 7 May 2022 16:36:27 +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=PcnF9KVO; dkim-atps=neutral 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.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=abhishek@linux.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=PcnF9KVO; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 4KwHl84BHMz3bhK for ; Sat, 7 May 2022 16:36:19 +1000 (AEST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2473wBks028930 for ; Sat, 7 May 2022 06:36:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=kOhzQqxL/DarbnHJUbtR2gPJklTb4IVeJAvxbX0wMgM=; b=PcnF9KVORNpC1I36jPYv8750kbzIivUCLZSKPFYDczaxN9dN9CzMAtkKKdrZl3q28oE1 sHkXwqGy4Sr3YL5PdaTJPrMgcLoJD+tS5Xhx9GTuXk99XNZct4vLAUQzxLwtb52Wqe5w ifeV1jfQMtOUNvJWHu9WUB7LRI8VZ2e0CVtsUqdvoMduMb/HJt2idBuXkNuUtBxHWvQM SxXNgeOSZtGroERIoD3TID6fpdGA+cP0rdRcLMROnFzOulCtXKHyjL4RsJuVfXBU2bFJ 4u65RAD9q0MfXzGMNKIHoCDfFCEuYX5bIwz/YtjHFPpg60k1otng0W58hJQPVl2oAz+6 Zg== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fwhb01mpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 07 May 2022 06:36:12 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2476XXvO011088 for ; Sat, 7 May 2022 06:36:10 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma03ams.nl.ibm.com with ESMTP id 3fwgd8r5t7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 07 May 2022 06:36:10 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2476a7bZ46268752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 7 May 2022 06:36:07 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0446952051; Sat, 7 May 2022 06:36:07 +0000 (GMT) Received: from li-22421c4c-355e-11b2-a85c-fdc6c782cba9.ibm.com.com (unknown [9.43.76.43]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id CE16D5204F; Sat, 7 May 2022 06:36:05 +0000 (GMT) From: Abhishek Singh Tomar To: skiboot@lists.ozlabs.org Date: Sat, 7 May 2022 12:05:53 +0530 Message-Id: <20220507063602.66309-1-abhishek@linux.ibm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: HnTEWGg-t8YXKO5kBxeUbOIQv8_83xiK X-Proofpoint-ORIG-GUID: HnTEWGg-t8YXKO5kBxeUbOIQv8_83xiK 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-05-07_01,2022-05-06_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=926 bulkscore=0 impostorscore=0 clxscore=1015 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205070041 Subject: [Skiboot] [PATCH v2 0/9] PLDM implementation self test 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: Abhishek Singh Tomar Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" These patches contains PLDM implementation self test. These self test are not hardare dependent as they bypass harware dependent code. They tries to test codeflow for following PLDM type 1. PLDM FILE I/O 2. PLDM BIOS 3. PLDM PLATFORM 4. PLDM FRU This patch set is to be applied over commit 1e4b3b38db54f2e770d44119d5eb5c887df01d44 Abhishek Singh Tomar (9): core/pldm/test : pldm self test common core/pldm/test : pldm file I/O init Self test core/pldm/test : pldm file I/O write file Self test core/pldm/test : pldm file I/O read file Self test core/pldm/test : pldm BIOS Specification Self test core/pldm/test : pldm platform specification Init self test core/pldm/test : pldm platform restart and platform power off self test core/pldm/test : pldm FRU Table selftest core/pldm/test : pldm FRU implementation to retrieve the bmc information core/pldm/pldm-file-io-requests.c | 12 +- core/pldm/pldm-lid-files.c | 16 +- core/pldm/pldm.h | 2 +- core/pldm/test/Makefile.check | 45 +++ core/pldm/test/common/test_pldm-common.c | 195 ++++++++++++ core/pldm/test/test_pldm-bios.c | 259 ++++++++++++++++ core/pldm/test/test_pldm-fileio.c | 315 +++++++++++++++++++ core/pldm/test/test_pldm-fru.c | 336 ++++++++++++++++++++ core/pldm/test/test_pldm-platform.c | 378 +++++++++++++++++++++++ 9 files changed, 1552 insertions(+), 6 deletions(-) create mode 100644 core/pldm/test/Makefile.check create mode 100644 core/pldm/test/common/test_pldm-common.c create mode 100644 core/pldm/test/test_pldm-bios.c create mode 100644 core/pldm/test/test_pldm-fileio.c create mode 100644 core/pldm/test/test_pldm-fru.c create mode 100644 core/pldm/test/test_pldm-platform.c