From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.1897.1614828103908310090 for ; Wed, 03 Mar 2021 19:21:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=IG53FEAb; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=06976aa159=daniel.schaefer@hpe.com) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1243IN7F009852; Thu, 4 Mar 2021 03:21:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=gaSjRZ5FjEZgyf8Zw3DuJ3g5TjWTcGjipTWEwGsYD1A=; b=IG53FEAbuWi4EBZuhoEf4oS10KqL4Iai6grKLv+mHR4fjNpRElWaqx2xObg8IQPDZj/5 UWuBjHbOfrlDLXP8ljMpseijQDRr9Hy8Qs1KBlEFJCdiQ5xrW69QGvp09ND6RWNcsMj7 wfheBCfxOsKkVC6jJp2dwBdMEMO73ZYR1cr7g61OXwkAOdEpowdW086liqCWPz+5vL2w uOm6Gw7MsSU3in34COyNOg4qBXQa+qXPUTCDJoJ1Lla2KQ7N8SXat0SrO9n8dk39LZdE R07aechFx7KHNJVCfSCqnv+etxqhpc22T5snbJgVPBirAy0Zy9bH3yAtd4+mazQI7gkb 7Q== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0a-002e3701.pphosted.com with ESMTP id 371taavseb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Mar 2021 03:21:37 +0000 Received: from G2W6310.americas.hpqcorp.net (g2w6310.austin.hp.com [16.197.64.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id 92B4D6D; Thu, 4 Mar 2021 03:21:36 +0000 (UTC) Received: from G2W6309.americas.hpqcorp.net (2002:10c5:4033::10c5:4033) by G2W6310.americas.hpqcorp.net (2002:10c5:4034::10c5:4034) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Mar 2021 03:21:36 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (15.241.52.13) by G2W6309.americas.hpqcorp.net (16.197.64.51) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 4 Mar 2021 03:21:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CI/n4OR8hUJr2wAMWruckd7LN4iU9KgQmZz327NSWgfqI1PX9nkawpe12mxUc9XdBdN8J8O2NKI6KAHkptKQFPi5n3Ow8+pvu5txiCmvsa5roncu9n/LVvdAhP3hLnXg9fNCjtQ9tyog8BZreuJbBP1hnMCfRl1FftrwqcQV45Sb8LFJP+ZhdSPOSdX2USxwgKVnGpMYodUSOQ1PzRxY7c4vr4SpQACffih7jy2jeNtItm6+eRmUmTZW9Q6zkJSQY5f0FbDWfKyWKT0OPt/bYSbWCbsXN31G1USeKyRbPIMJWUFOaeABaz/mq6xl4fwDd5OgXKChiQhCEtp/TKytNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gaSjRZ5FjEZgyf8Zw3DuJ3g5TjWTcGjipTWEwGsYD1A=; b=n0Eivo6ACzMwjahpLJ26M4au1/ESXBocJFsCjUKNFRyZKasK+YeI/GIZUby6iL5ohWqYy+67nXPLJNM9g3YGNM0zurjO7onQ1TsqagvNGC9VO7s8WYIFdbZPxnWrAXeU0jv0J3xlsUexqgzmZGqhfUM8Tg4ndt/Vsc2yFMGaGsutqD1m2LHGUd+nBJf3S7j4HvquFX6wthg0TYH7tE6RiFuW+b7Vn/Gl8p3ZlzFQ3pQIa6KqvhGuDnHtYSC2A9XUmKORlMz7ckE9KciYMehPo8HP7mFd+/1Cth7g66rNBGFOkz442WDPbYk7EchWDI8JjQpgQl3yAHkyGQ/SQtd4FA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) by DF4PR8401MB0506.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7606::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Thu, 4 Mar 2021 03:21:34 +0000 Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::ad2c:ff74:846c:5318]) by DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::ad2c:ff74:846c:5318%7]) with mapi id 15.20.3912.017; Thu, 4 Mar 2021 03:21:34 +0000 From: "Daniel Schaefer" To: CC: G Edhaya Chandran , Barton Gao , Samer El-Haj-Mahmoud , Eric Jin , Arvin Chen , Leif Lindholm , Heinrich Schuchardt , Abner Chang Subject: [edk2-test PATCHv3 0/5] Port SCT to RISCV64 Date: Thu, 4 Mar 2021 11:21:11 +0800 Message-ID: <20210304032116.24357-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.30.0 X-Originating-IP: [15.211.146.34] X-ClientProxiedBy: SG2PR06CA0172.apcprd06.prod.outlook.com (2603:1096:1:1e::26) To DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) X-MS-Exchange-MessageSentRepresentingType: 1 Received: from x360-nix.wireless.hpe.com (15.211.146.34) by SG2PR06CA0172.apcprd06.prod.outlook.com (2603:1096:1:1e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Thu, 4 Mar 2021 03:21:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 74ae76f3-3a4d-4cca-8ad0-08d8debc9d07 X-MS-TrafficTypeDiagnostic: DF4PR8401MB0506: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YxjY8clFj78+K7td2stAQ3JRoGK4vksdvacluiqBfCp9Y0LtRWR0DacHtsxqm6dokyqcYkP9bqCe77aJvSs+5Qaaet6RdFRiTwse5B4LFMzVV1yumj/hg+kBoLw9YtxiP2o0Gy3JkVT+1YIJ+Z+Np/FiR3PEOqfIrQXGmgzS1f1rQLM3wO0dbEA1bJZcNVnkVxNFEbmXCppjXMi3RYA1MuW5hP4j4TjHIYIp5XKa0k34d8Ewvvj/4fGEHRZJIpxzLo4JN0be1QAH+txGMMR9xdA/QisZWTine56LK9etcy8qFujgls9u0DCx0Q4iBbNauiltogiZeeJsr090uR5NqkDMUoZ5EOojX90ynnTnn7nuldpL+0pPFdyxU7Wr757vYpZjahtBnNc7mOl0/fgFheTFVDgbnCKcv8T1waAc/WI2UYqVE1L8PCruPHlwFh5O7V8h73T1nZ2TAj03XN2U2ErxI3mOEe35wZ2DkHWGrcE6oM7143vYiMRGdONYePA0+euhX41h+/ERIl0V/nG0nyRNPuM2GH68pcM5euu/l/FJsSFZO7FNeebg7/ScyMR5H1JryktB5cr2SHkz1I0GnE8o+OjPhT04F2E8wIGQ65M= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(136003)(366004)(346002)(396003)(376002)(39860400002)(316002)(5660300002)(26005)(186003)(83380400001)(1076003)(86362001)(66946007)(2616005)(6916009)(8936002)(6666004)(956004)(2906002)(44832011)(36756003)(16526019)(66556008)(66476007)(4326008)(19627235002)(8676002)(7696005)(478600001)(52116002)(6486002)(54906003)(966005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?829knPt10EGY/VnZP/9YP11o60VOzOFGGvwlErcauhPjnTppMhSkXZptfG5h?= =?us-ascii?Q?dUnPTtUHxIWcqC4XJOsnNJ15x7PDZNWTE7eAO68rjw9cPap8qL/luHIOoyzm?= =?us-ascii?Q?NP2GACdHU/H4MAmjIeEv0FhxbJyg5eCFO22a+39qFKNWPz1uJPeoKGBpsfWl?= =?us-ascii?Q?x9hhcUGzIX14GNllj9euTzl5ndhLIhHVUiHMkoEH82jJYW4CFMkt3xnpEQeR?= =?us-ascii?Q?mbUGw0XykRQQh5+ZYTyffUjC0KEDn7fagykGGJgFFeRDS5ERlWMxeIHFsjkr?= =?us-ascii?Q?HUUrj5gzAMklRGrvW6A3/JNrHtqXJsSqtTiGyOBr+X+OjTmdpLzVinsTBzCY?= =?us-ascii?Q?Ggwc6w2WiGuFuiRuKP26CCwk7Es8byiju1XPHCK8EwkQVeP2LGrJzDgHvGat?= =?us-ascii?Q?CvlrrksiWH1H9MwCqPzuhGlJq0gORHBor5YghqTRHzWBMALj930+EGgLFDcY?= =?us-ascii?Q?slJhPTpw5pw+iupAv7MrcZf8WXp7tAkhFfPSPBn22mXFBOL7ruLLZifH9ZsZ?= =?us-ascii?Q?/25Dccpb56j4Jk+m1YDKRblFgDUtk/1NhHaX6rU6wEycA4ty4qu5cDsqW80Q?= =?us-ascii?Q?OVHrC54T3oJcpNz9+fbElmPLp0t+jWkDwycHdHlpzn5adow55MlFlvC92Na1?= =?us-ascii?Q?Kf03dCXzOxBKfCzA3GpiapqcvOO7ttWPSMfDZmnn1NHwpWJFrExhPpjllP/V?= =?us-ascii?Q?hY1cAxKRfLvznGaBJBXB+4NwvWRPE3RlL1RxBWPfovlII84PqE4ofXQLSwcj?= =?us-ascii?Q?GFqnWDw86obToiDE4cTffAIa8rCa4/51GZm5r+avteWZSx84EDSGHQq7x4EY?= =?us-ascii?Q?ezl+kzgwr0khA8ORtqVdSjNp0iU0tsi13voYFivWtkfct394U/WsV0q4TkJz?= =?us-ascii?Q?mnzHQ6NRySnZxnCAqH75ptqa+kp7UKQJXtfOY1+C6WSDk+jGsf4//P9opmBR?= =?us-ascii?Q?yyBsKpU/lMGRhAAeINHR0RBWSn4LWJL3xK2JTFyYhRgSoeBCdT1CrKtjQlec?= =?us-ascii?Q?bKPIaCDPbpJEKKH6SV05X6L2a11Mcf8CIZJvk6rOWMSf1LLAqKwo1M4QL3mo?= =?us-ascii?Q?9v5SdO2GBej31GRIcBpjIJjdTEaLGcCKx3+8SEvbJ0s206WmFTfO+KPMe1eE?= =?us-ascii?Q?mUSNgwXAuh9Hm/x7zkZP6A41ID657NXj44BJ0Bhb8SrLDM0p+wblCEKjkrBc?= =?us-ascii?Q?7WgaO9ePm6YmvVJPCzFVgmVOofHVIYWm7zWL0qGqKFQuNdeZsqbmvo69R18n?= =?us-ascii?Q?YIto1uk9QxS3zbhZvMM7Jui4RNKZGWHVvn1/rEf9288VTs2DjO8hRnLaB0Qt?= =?us-ascii?Q?V5IZ1+LfzynYS5YbtVZydPfh?= X-MS-Exchange-CrossTenant-Network-Message-Id: 74ae76f3-3a4d-4cca-8ad0-08d8debc9d07 X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2021 03:21:34.6748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wEdbY5GW3SwxWEn9nR8TAKy0qxMycKzUI5ltS9H5LdTgHyJQk1Frw38EwNBMfaEUX7PZei+bxN1gvz6Vnarilg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0506 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-04_01:2021-03-03,2021-03-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 priorityscore=1501 mlxlogscore=733 clxscore=1015 adultscore=0 spamscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103040012 Content-Type: text/plain Content-Transfer-Encoding: 8bit Changes to previous series: - Fixed the commit to remove whitespace to *only* remove whitespace. Had some mixup there... - Added missing HPE copyright in one file I was able to run SCT on my EDK2 port to RISCV64 and I don't see any obvious failures related to this. Additionally Heinrich has tested the first series on the U-Boot implementation of UEFI. If you apply these patches or check out my branch [1] you can easily review the changes with `git diff -w master`. It will hide anything that's copied and any whitespace changes. Cheers, Daniel [1] https://github.com/johnazoidberg/edk2-test/tree/riscv64 Cc: G Edhaya Chandran Cc: Barton Gao Cc: Samer El-Haj-Mahmoud Cc: Eric Jin Cc: Arvin Chen Cc: Leif Lindholm Cc: Heinrich Schuchardt Cc: Abner Chang Daniel Schaefer (5): SctPkg: Add RISCV64 support by using Aarch64 sources SctPkg: Adapt Aarch64 sources for Riscv64 SctPkg: Add RISCV64 build support SctPkg: Unify CC_FLAGS for all GCC platforms SctPkg: Remove trailing whitespace uefi-sct/SctPkg/Application/InstallSct/InstallSctDef.h | 4 ++ uefi-sct/SctPkg/Library/SctLib/Aarch64/SctLibPlat.h | 4 +- uefi-sct/SctPkg/Library/SctLib/Aarch64/initplat.c | 6 +- uefi-sct/SctPkg/Library/SctLib/{Aarch64 => Riscv64}/SctLibPlat.h | 7 ++- uefi-sct/SctPkg/Library/SctLib/{Aarch64 => Riscv64}/initplat.c | 6 +- uefi-sct/SctPkg/Library/SctLib/SctLib.inf | 6 ++ uefi-sct/SctPkg/SCRT/SCRTApp/Aarch64/GoVirtual.S | 6 +- uefi-sct/SctPkg/SCRT/SCRTApp/Aarch64/VirtualMemory.c | 6 +- uefi-sct/SctPkg/SCRT/SCRTApp/{Aarch64 => Riscv64}/GoVirtual.S | 15 +++-- uefi-sct/SctPkg/SCRT/SCRTApp/{Aarch64 => Riscv64}/VirtualMemory.c | 22 +++---- uefi-sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf | 5 ++ uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Debug.c | 8 +-- uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Dump.c | 8 +-- uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Io.c | 8 +-- uefi-sct/SctPkg/SCRT/SCRTDriver/Aarch64/Io.h | 8 +-- uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Debug.c | 28 ++++----- uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Dump.c | 8 +-- uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Io.c | 15 ++--- uefi-sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf | 6 ++ uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Aarch64/DebugSupportBBTestCacheFunction.c | 6 +- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Aarch64/DebugSupportBBTestExceptionCallbackFunction.c | 7 +-- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Aarch64/PlatformIsa.c | 6 +- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/DebugSupportBBTest.inf | 6 ++ uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/DebugSupportBBTestCacheFunction.c | 6 +- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/DebugSupportBBTestExceptionCallbackFunction.c | 18 +++--- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/PlatformIsa.c | 10 ++-- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb2HcTest.inf | 4 ++ uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbHcTest.inf | 4 ++ uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/Aarch64/EntsLibPlat.h | 6 +- uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/Aarch64/InitPlat.c | 6 +- uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf | 5 ++ uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/{Aarch64 => Riscv64}/EntsLibPlat.h | 9 +-- uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/{Aarch64 => Riscv64}/InitPlat.c | 6 +- uefi-sct/SctPkg/Tools/Source/GenBin/GNUmakefile | 4 ++ uefi-sct/SctPkg/UEFI/IHV_SCT.dsc | 30 +++++++--- uefi-sct/SctPkg/UEFI/Protocol/DebugSupport.h | 61 +++++++++++++++++++- uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc | 31 +++++++--- uefi-sct/SctPkg/build.sh | 11 +++- 38 files changed, 269 insertions(+), 143 deletions(-) copy uefi-sct/SctPkg/Library/SctLib/{Aarch64 => Riscv64}/SctLibPlat.h (79%) copy uefi-sct/SctPkg/Library/SctLib/{Aarch64 => Riscv64}/initplat.c (92%) copy uefi-sct/SctPkg/SCRT/SCRTApp/{Aarch64 => Riscv64}/GoVirtual.S (83%) copy uefi-sct/SctPkg/SCRT/SCRTApp/{Aarch64 => Riscv64}/VirtualMemory.c (85%) copy uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Debug.c (65%) copy uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Dump.c (93%) copy uefi-sct/SctPkg/SCRT/SCRTDriver/{Aarch64 => Riscv64}/Io.c (84%) copy uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/DebugSupportBBTestCacheFunction.c (96%) copy uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/DebugSupportBBTestExceptionCallbackFunction.c (92%) copy uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/{Aarch64 => Riscv64}/PlatformIsa.c (76%) copy uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/{Aarch64 => Riscv64}/EntsLibPlat.h (83%) copy uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/{Aarch64 => Riscv64}/InitPlat.c (92%) -- 2.30.0