From: Laszlo Ersek <lersek@redhat.com>
To: "Zeng, Star" <star.zeng@intel.com>,
Amit Kumar <amit.ak@samsung.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
"Tian, Feng" <feng.tian@intel.com>,
"Gabriel L. Somlo (GMail)" <gsomlo@gmail.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Fan, Jeff" <jeff.fan@intel.com>
Subject: Re: [PATCH V4] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol
Date: Tue, 27 Jun 2017 15:23:03 +0200 [thread overview]
Message-ID: <db86cf38-9939-7e12-2376-4be6d23a4c9e@redhat.com> (raw)
In-Reply-To: <dc350a86-6caa-8fc1-9a53-fa2ae963efd3@redhat.com>
On 06/27/17 13:15, Laszlo Ersek wrote:
> On 06/27/17 11:59, Zeng, Star wrote:
>> Laszlo,
>>
>> I got the point and I like the idea of wrapper function personally.
>> Although we can clean up the UEFI drivers in EDK2 tree, but it is really hard to evaluate the UEFI drivers in OPROM on add-on card.
>> The patch did not just break OVMF, but also broke all real platforms we have in hand (it's my fault that I did not catch the failure when reviewing patch), the patch is so risky.
>
> Can we perhaps add a FeaturePCD (default value: FALSE) and rework Amit's
> patch to consider the PCD? I really like the idea of being true to the
> UEFI spec.
>
> In the edk2 tree we could rebase the affected drivers to the wrapper
> function. And in OVMF (and in other in-tree emulation platforms), we
> could set the FeaturePCD to TRUE.
>
> It is possible to use OVMF with assigned physical PCI devices, but
> people can easily rebuild OVMF themselves, with the FeaturePCD re-set to
> FALSE. Users can also quickly report the exact cards / oproms that break
> with the FeaturePCD set to TRUE.
>
>
> If you think it's simply not worth the effort, I'm OK with that, but
> then we should specify this behavior in the UEFI spec -- we'll need a
> Mantis bug for that. IMO it's not great that so many UEFI_DRIVERs in the
> wild depend on behavior that is expressly forbidden by the UEFI spec at
> the moment. If we can't modify all those drivers, then we should adapt
> the spec, so that it reflects reality.
>
> I'm not going to suggest specific language for the UEFI spec right now.
> But the wording could be based on the documentation of the wrapper
> function that I'm working on now. I think I might post the patches just
> for illustration.
OK, I'm giving up. It is too hard to track down every single crash --
the register dump written by UefiCpuPkg's exception handler to the
serial port is not much help, even though it names a module to look at.
So I guess we have to accept that the dependency on EFI_ALREADY_STARTED
setting Interface is just too wide-spread. :/ As I wrote above, I think
this should be documented in the UEFI spec.
I filed the following mantis ticket:
Permit OpenProtocol() to output the supported protocol interface even
on error
https://mantis.uefi.org/mantis/view.php?id=1815
Thanks
Laszlo
next prev parent reply other threads:[~2017-06-27 13:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170623100913epcas5p3a10353593d6348b5bf3c890e2deaadb7@epcas5p3.samsung.com>
2017-06-23 10:09 ` [PATCH V4] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol Amit Kumar
2017-06-26 1:19 ` Zeng, Star
2017-06-26 2:46 ` Zeng, Star
2017-06-27 0:47 ` Laszlo Ersek
2017-06-27 0:52 ` Zeng, Star
2017-06-27 1:37 ` Zeng, Star
2017-06-27 9:44 ` Laszlo Ersek
2017-06-27 9:59 ` Zeng, Star
2017-06-27 11:15 ` Laszlo Ersek
2017-06-27 13:23 ` Laszlo Ersek [this message]
2017-06-27 13:31 ` Zeng, Star
2017-06-28 9:34 ` Zeng, Star
2017-06-28 12:39 ` Laszlo Ersek
2017-06-28 13:00 ` Zeng, Star
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=db86cf38-9939-7e12-2376-4be6d23a4c9e@redhat.com \
--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