From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.92.22.44]) by mx.groups.io with SMTP id smtpd.web11.6221.1602046907329555746 for ; Tue, 06 Oct 2020 22:01:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ga1KJH+E; spf=pass (domain: outlook.com, ip: 40.92.22.44, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lY9Ri1BNc52JLK7x5O5IxN8ES1J0ItGcTfaxeZkPEd4hFQoFZsdMSomarfqbwhQk9u32OAyrHHG7Nf7xdqIbci0vGjkr7LLDFYjvFa98WlSaGeSZL1RiAQsrbkboDXn3axMs2WWiE4M7XTksFg/xHDudjz4bluf7jY68pQ1YLaHZdFpY9qHxPqr0Mz2yuWso4DLepAm/6k8oZfJjEowHPs8Y8lU57WqOZROsT7KMOQ1hN/pxvV8aqyOkRzMDhCZSWJczxN7pZNa/Dk9oGFwAZIevZc30kdc51S8RVA9VBncWQrFkS3KNOBzOoVf+qFfn5bW9N32LUeVfTSL8DoFngQ== 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=QfHUa/L/Olwc5gTGsNmrNLFI1P4FsJby7bzCt+RjwAY=; b=LLHXW4AO8NPUUWMjXbv1ZhMmeRU9E+NqoaOczWYPAlN+RWjqo8dW3VA6HdbKN79sHGXpsPp5bfnXi7Hc+teVht3IXTpL15FUrjx0EORWG4fd/QThVIipJM8dyhT+gjkVPbraT4rLiDg5GsP8GNHfS5cN0lkYvW8WvYITC0zp22uQ7MIjJ7gLnXOkFzcrk/XhNaG+chzZPYssVqjSFNbkS8pJOxp8xmZC1pGIUXbvSR81sjpghCTD+C37tuHq6Q+DVJlB/a4Qe7eiXQyChGZvE/E5cnMPT6qDRW/5K4MvVuvMg7diQ6pkPUtB77ABrQDosSVViyVCRwTRcxeqLx3izg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QfHUa/L/Olwc5gTGsNmrNLFI1P4FsJby7bzCt+RjwAY=; b=ga1KJH+Ey2atuKtp0pel7SDje6WSdI4MWUHF9Gq9JXk2/MFGoooJykAtS2Z5DzsVmd0wcilcLOpHGb1mrOZ1XZKBuX236fNg7SIxC49ZZyDMe81Pgvan5Q9axpCDQ9CCE08Tc7QPEzkPp7LThR5xjzjuDd3hTBtDuoZORh3YKDdcQlb4YYCSP3y31HWwKHy5wLPGQK2QKMsGz0mJWOTgOJJU79Xefs3uSRPP96ukW1pzv5VnzeJhIO7zz6AbOtCjWHllSSK8H91YY8+duBqs7ce3qHKALR9zmfp56n7ZENlgF+haESFhdjjhGZzdKQwb9ZbEw5P48EiPWqaQ3Ko6Nw== Received: from DM6NAM12FT052.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::46) by DM6NAM12HT025.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::333) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.14; Wed, 7 Oct 2020 05:01:46 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (2a01:111:e400:fc64::4b) by DM6NAM12FT052.mail.protection.outlook.com (2a01:111:e400:fc64::158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.13 via Frontend Transport; Wed, 7 Oct 2020 05:01:46 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:70A74677B60B543075C28EF8E8A885BFB986DC6FBD21661789E06B7FF38040CF;UpperCasedChecksum:E69D5AF59C790C7129E8A5308E0E80D258E20B096F9BC8A5D538640590D85E63;SizeAsReceived:9862;Count:48 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::eda9:ccc8:2ef:2471]) by MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::eda9:ccc8:2ef:2471%7]) with mapi id 15.20.3433.045; Wed, 7 Oct 2020 05:01:46 +0000 Subject: Re: [edk2-devel] [edk2-platforms] [RFC] Compatibility Expectations in edk2-platforms To: "Desimone, Nathaniel L" , "devel@edk2.groups.io" Cc: Leif Lindholm , Laszlo Ersek , Ard Biesheuvel , "Ni, Ray" , "Chaganty, Rangasai V" , "Dong, Eric" , "Bi, Dandan" , "Kinney, Michael D" , "Steele, Kelly" , "Sun, Zailiang" , "Qian, Yi" , "Chiu, Chasel" , "Agyeman, Prince" , "Feng, Bob C" , Liming Gao , Abner Chang , Daniel Schaefer , Gilbert Chen , Christian Walter References: From: "Michael Kubacki" Message-ID: Date: Tue, 6 Oct 2020 22:01:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 In-Reply-To: X-TMN: [tVggP7N7cqcIYTSd7hV5BP71/3378DepsWhlT0dAafBfBu3mauTobeGHL+KlFCtV] X-ClientProxiedBy: MWHPR04CA0033.namprd04.prod.outlook.com (2603:10b6:300:ee::19) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <750af398-a460-1610-5817-f7602300f2f3@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:4898:d8:39:10db:6040:e50c:831a] (2001:4898:80e8:9:90fa:6040:e50c:831a) by MWHPR04CA0033.namprd04.prod.outlook.com (2603:10b6:300:ee::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14 via Frontend Transport; Wed, 7 Oct 2020 05:01:43 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 608ec767-9d95-4368-f90f-08d86a7e15e1 X-MS-TrafficTypeDiagnostic: DM6NAM12HT025: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: str+G2/nj49zVnsFgM4u6Hjat5BFwO/Ur1SSeoyOrLh2BBYJV/x45ttsetm3e2cycCg+DXzgeobwbdl6Apk5TGJ8Q0uGv2KoUtW76eCeierzrik6/TCQHJIXN3SpEBR+B/GYbQSPdXLHbw8/BVXdeyWQNpNNCdnnKM6UOsmit96VDgpAyANKn7JA4VRm93SibR7kf742q0tGH7eHnx/sxtro2I7rVrvwOrlAxxkUB+D70aJzxTqAdBzcSJ6zcU7E X-MS-Exchange-AntiSpam-MessageData: hHe8Kyzo48BVn266X7M7wRNKe4Wcly+MkBxSKpdbXuPSsIXeiwanurF4rklYn7em4wRAqBmpukmIFvqsnaxdz6KFhP0RrR1oEthsKlm38KiBwBbssDgo0O3UeVVNCFAA8eC883/aTddHf2Zi4x+NR1qnF/Co2LFAJDdB4m4h4uml8L7bYawBCAMg2iELPiLhl5XzGiD1KldWtFkNoohAJA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 608ec767-9d95-4368-f90f-08d86a7e15e1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2020 05:01:45.5363 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT052.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM12HT025 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi Nate, On 10/6/2020 9:19 PM, Desimone, Nathaniel L wrote: > Hey Michael, > > On 10/5/20, 3:36 PM, Michael Kubacki wrote: >> >> 1. Inconsistent maintainer support >> * Some packages currently do not build. Some packages are not getting >> updated often. >> >> * Example: Last week I had to update Vlv2TbltDevicePkg which did not >> build. >> * Example: Many packages only document support for old toolchains. > > 100% agreed here. > >> >> 2. Inconsistent toolchain support >> >> To build these according to instruction, a developer needs to install Visual >> Studio dating back to 2015 (though it is 2020), and multiple versions of iASL, >> NASM, a separate host OS for Linux/Windows builds, etc. > > IMHO, the best way forward would be to finish the EDK II native clang port that Liming started some time ago. This would need to include robust support for Windows, Linux, and Mac host systems. From what I remember the last status update was issues with stability of the LLVM linker's support for PE/COFF output. Aligning on Clang support would be great. It's worth noting that current CI support in edk2 does not support Clang so that needs to be enabled - https://github.com/tianocore/edk2/blob/master/.pytool/Readme.md. Is anyone looking at those LLVM issues now? > > Otherwise build reproducibility will always be a problem since the binary generated will be different depending on which OS/compiler the developer was using at the time. The coreboot community handles this issue by only supporting GCC, which I think is inappropriate for TianoCore since Windows ports of GCC differ greatly from Linux versions. While I think the goal of supporting many different C toolchains is admirable and definitely appropriate for edk2 core code... for edk2-platforms I think it would be better to have everyone agree on a single cross-platform toolchain; at least for x86 and ARM since clang supports those architectures well (maybe other architectures depending on the clang's maturity.) > >> >> 3. Inconsistent build requirements >> >> Many builds use the "build" command. Others have script wrappers with >> unique parameters. Platforms are free to choose what they do and do not >> support and developers have to figure it out. > > We solved that for MinPlatform based boards with build_bios.py, but agreed that that at an overall project level this is still an issue. I believe Bob and Liming were working on adding extensibility to BaseTools needed for "build" to work everywhere, but I'm not sure what the status of that work is. I've always liked the simplicity of build_bios.py. There's also a lot of effort put into edk2-pytool-extensions. I'm not partial to any particular solution as I've had positive experiences with both but having more consistency at a repo level would be awesome. Perhaps a community discussion around leveraging existing tool support for open source platforms would help with adoption. Apart from consistency across open source platforms, usage could also serve as a practical example to closed source consumers on how to better integrate such tools into their environments. > >> >> 4. Lack of build health indicators >> >> Basically, there is no public CI across platforms. It is not clear exactly what >> platform builds are broken, what configurations they are broken against, >> how long they have been broken, etc. > > Public CI seems like a great idea. Public automated testing would also be awesome. I believe 9elements has been working on building a pool of hardware for automated testing of Open System Firmware, maybe we should check and see if they would be interested in supporting automated testing for TianoCore. We would also need to see what the intersection is between what they have in their pool and what boards are supported in edk2-platforms. I look forward to hearing from 9elements. Do you think it would be feasible for Intel to support something like KabylakeOpenBoardPkg/GalagoPro3 and/or WhiskeylakeOpenBoardPkg/UpXtreme in public CI? > >> Without such support, I believe platforms can only have a dependency on >> edk2 (not vice versa). Maintainers move their edk2 pointer when they have >> verified that their platform properly integrates the latest changes. This is >> relatively common in relationships with package-based dependencies and >> how this is typically handled outside edk2-platforms. I believe this is >> reasonable even with public CI in place unless maintainers understand and >> accept the challenges and additional support that is involved with being on >> edk2/master. > > Coreboot handles this problem by auditing the how good the maintenance is of boards over time. If a given board becomes stale, then the board becomes a candidate for getting deleted from master and moved to a legacy branch. Sometimes entire technologies are dropped, for example FSP v1.0 is only supported up to coreboot 4.11, for that reason there is a long-lived 4.11_branch in coreboot git to maintain platforms dependent on FSP v1.0 binaries. > > I think we need some sort of deprecation process for edk2-platforms as well because as you note, the Bay Trail Minnow Max is not receiving particularly good maintenance at this point. A similar issue happened with PurleyOpenBoardPkg last year and you actually sent the patch series to delete it. Deprecation branches sound reasonable to me personally. I'm not aware of prior documentation or discussion around platform deprecation in edk2-platforms. Is anyone else? > >> >> I just wanted to give my observation of some recent challenges and see if >> the community can align on some practices to help simplify edk2-platforms >> integration and testing. >> >> Thanks, >> Michael >> >> >> >> >