From: "Marvin Häuser" <mhaeuser@posteo.de>
To: devel@edk2.groups.io, stefanb@linux.ibm.com,
Sean Brogan <spbrogan@outlook.com>,
stefanb@linux.vnet.ibm.com, jiewen.yao@intel.com
Cc: marcandre.lureau@redhat.com, lersek@redhat.com,
dick_wilkins@phoenix.com, James.Bottomley@HansenPartnership.com
Subject: Re: [edk2-devel] [PATCH v4 1/6] OvmfPkg/TPM: Import PeiDxeTpmPlatformHierarchyLib.c from edk2-platforms
Date: Sat, 14 Aug 2021 13:28:38 +0000 [thread overview]
Message-ID: <e90725c6-e419-c174-a597-9cd52df51d9b@posteo.de> (raw)
In-Reply-To: <e776d12d-d853-1b16-afa7-a4f8fcdfd458@linux.ibm.com>
Good day Stefan,
Do you think you could split the first patch into a 1:1 initial import
and have a modifications commit separately?
One of my big issues with EDK II is duplicated code. I look at it, I
don't understand why it is duplicated. I look at the differences, I
don't understand why they are there. I dig deeper into the matter (e.g.
git blame), and I realise there is no reason but someone was taking a
copy+paste route, and future contributors did not know or care about the
respective other piece of code. This series standalone is basically that
out-of-the-box, with no future changes needed. I'll suggest once more to
enforce a code duplication ban, both within edk2, and between edk2 and
edk2-platforms.
It would of course be great if you submitted a follow-up series to drop
the old library from edk2-platforms. If you plan not to, and all
maintainers agree to merge this without such a series being submitted,
please CC me so I know when this is merged and can propose such a patch
set myself.
Best regards,
Marvin
On 13/08/2021 21:02, Stefan Berger wrote:
>
> On 8/13/21 2:47 PM, Sean Brogan wrote:
>> Thanks for the link as i missed that message.
>>
>> To me this just points out more problems with how OVMF is being
>> managed in the edk2 project and the uselessness of edk2 platforms as
>> anything more than just a dumping ground repo to hold sample code.
>> But that is a problem larger than this patchset.
>>
>> I guess if you are going doing option 2 can we rename the library
>> interface you are defining in OvmfPkg so it doesn't conflict with the
>> existing one in edk2-platforms/minplatform. That would mean change:
>
>
> I have now created v5 here with the latest code appearing in
> SecurityPkg again:
> https://github.com/stefanberger/edk2/commits/stefanberger/ovmf_disable_platform_hierarchy.v5
>
> I can probably post that pretty quickly but I'll be out for a while.
> If it's urgent, someone else can pick it it up from there. I tested it
> on QEMU for x86 and aarch64 and test-compiled on various platforms
> that I touched (some didn't compile for me before the changes).
>
> What I wasn't sure about is whether edk2-platforms is a 'holding area'
> for code to be imported ideally 1:1 into edk2. So I ended up making
> those changes already in v1 to cut out a dependency. If what I have in
> v5 (or also v4) is sufficient for general consumption, then let's put
> it into SecurityPkg.
>
>
> Stefan
>
>
>>
>> * name in OvmfPkg.dec file
>> * header file in OvmfPkg/Include/Library
>> * all references in DSC file for mapping an instance
>> * all references in your INFs for dependency
>>
>> Thanks
>> Sean
>>
>>
>>
>>
>>
>>
>> On 8/12/2021 3:19 PM, Stefan Berger wrote:
>>>
>>> On 8/12/21 4:59 PM, Sean Brogan wrote:
>>>> This seems like a bad place for a general purpose lib that many
>>>> other platforms may take a dependency on.
>>>>
>>>> In v1 this was SecurityPkg. OvmfPkg is a platform package and
>>>> therefore not a good place to define broad interfaces.
>>>>
>>>> What caused this to move here?
>>>
>>>
>>> Option 2 from this message:
>>> https://listman.redhat.com/archives/edk2-devel-archive/2021-August/msg00398.html
>>>
>>>
>>> Stefan
>>>
>>>
>>>>
>>>> Thanks
>>>> Sean
>>>>
>>>>
>
>
>
>
>
next prev parent reply other threads:[~2021-08-14 13:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-12 16:59 [PATCH v4 0/6] Ovmf: Disable the TPM2 platform hierarchy Stefan Berger
2021-08-12 16:59 ` [PATCH v4 1/6] OvmfPkg/TPM: Import PeiDxeTpmPlatformHierarchyLib.c from edk2-platforms Stefan Berger
2021-08-12 20:59 ` [edk2-devel] " Sean
2021-08-12 22:19 ` Stefan Berger
2021-08-13 18:47 ` Sean
2021-08-13 19:02 ` Stefan Berger
2021-08-14 13:28 ` Marvin Häuser [this message]
2021-08-12 16:59 ` [PATCH v4 2/6] OvmfPkg/TPM: Add a NULL implementation of TpmPlatformHierarchyLib Stefan Berger
2021-08-12 16:59 ` [PATCH v4 3/6] OvmfPkg: Reference new TPM classes in the build system for compilation Stefan Berger
2021-08-12 16:59 ` [PATCH v4 4/6] OvmfPkg: Disable the TPM2 platform hierarchy Stefan Berger
2021-08-12 16:59 ` [PATCH v4 5/6] ArmVirtPkg: Reference new TPM classes in the build system for compilation Stefan Berger
2021-08-12 16:59 ` [PATCH v4 6/6] ArmVirtPkg: Disable the TPM2 platform hierarchy Stefan Berger
2021-08-13 12:32 ` [PATCH v4 0/6] Ovmf: " Stefan Berger
2021-08-14 13:01 ` Yao, Jiewen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e90725c6-e419-c174-a597-9cd52df51d9b@posteo.de \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox