From: Gerd Hoffmann <kraxel@redhat.com>
To: Colin Xu <colin.xu@intel.com>
Cc: devel@edk2.groups.io, lersek@redhat.com,
alex.williamson@redhat.com, rebecca@bsdio.com,
zhenyuw@linux.intel.com
Subject: Re: [edk2-devel] [PATCH v2 1/2] OvmfPkg/IntelGvtGopDxe: Intel GVT-g GOP Implementation.
Date: Fri, 12 Mar 2021 13:35:44 +0100 [thread overview]
Message-ID: <20210312123544.uarnizkane27phcl@sirius.home.kraxel.org> (raw)
In-Reply-To: <alpine.LNX.2.22.419.2103120947570.17562@coxu-arch-shz>
Hi,
> Thanks a lot for your comment, Laszlo! See my reply also end of the patch.
> Hi Gerd, Alex, would you mind share your thoughts as well?
> > (2) If the fw_cfg file in question is not found, the patch simply
> > ignores it. We log a debug message about it (not even an error message),
> > but then proceed with the rest of the code as if everything was OK.
> >
> > Is that intentional?
>
> It's absolutely OK doing in this way. etc/igd-opregion is indeed not clear
> for OVMF. Assume future guest driver decouple itself with igd-opregion,
> which some guest driver doesn't rely on it already, the intention of this
> patch is to have a common solution for Intel GVT-g vGPU.
For reference, on seabios the opregion workflow looks like this:
(1) i915 gvt kernel driver generates opregion content.
(2) opregion is exported as special vfio region.
(3) qemu copies over the content to etc/igd-opregion fw_cfg file.
(4) seabios loads etc/igd-opregion, stores it in ram, writes the
address to a register.
(5) guest os driver reads the register to find the opregion.
So, first question is how dynamic is the opregion content?
On physical hardware it clearly is, it carries information on how
outputs are wired to physical DVI / HDMI / DP plugs and for laptops how
to drive the lvds panel built in. For virtual hardware this is fixed
and a simple "all outputs are displayport".
What else is in there? Anything which might need changes when the gvt
driver is updated? Given that some guest drivers do not depend on the
opregion I assume this is not the case.
So I'm wondering whenever there is a good reason in the first place to
generate the opregion in the i915 gvt kernel driver. Is it an option to
generate the opregion in this IntelGvtGopDxe driver instead? That would
clearly be the easiest solution.
Failing that we should at least take fw_cfg out of the loop. It is just
a middle man here and not needed at all. As discussed before the pci
rom bar can do the job instead. That will remove any platform
dependencies from the driver, it only need to talk to the device itself
then.
take care,
Gerd
next prev parent reply other threads:[~2021-03-12 12:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 6:20 [PATCH v2 0/2] OvmfPkg/IntelGvtGopDxe: Add Intel GVT-g GOP Colin Xu
2021-03-05 6:20 ` [PATCH v2 1/2] OvmfPkg/IntelGvtGopDxe: Intel GVT-g GOP Implementation Colin Xu
2021-03-05 13:19 ` [edk2-devel] " Laszlo Ersek
2021-03-12 3:57 ` Colin Xu
2021-03-12 12:35 ` Gerd Hoffmann [this message]
2021-03-19 2:08 ` Colin Xu
2021-03-19 9:06 ` kraxel
2021-03-26 7:37 ` Colin Xu
2021-03-12 4:42 ` Rebecca Cran
2021-03-12 4:55 ` Colin Xu
2021-03-05 6:20 ` [PATCH v2 2/2] OvmfPkg/IntelGvtGopDxe: Enable GVT-g GOP in OvmfPkg DSC & DFD Colin Xu
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=20210312123544.uarnizkane27phcl@sirius.home.kraxel.org \
--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