Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 07:47:38 +0000
From:      =?iso-8859-1?Q?Corvin_K=F6hne?= <C.Koehne@beckhoff.com>
To:        Gerd Hoffmann <kraxel@redhat.com>
Cc:        "virtualization@freebsd.org" <virtualization@freebsd.org>, Ard Biesheuvel <ardb+tianocore@kernel.org>, Jiewen Yao <jiewen.yao@intel.com>, Jordan Justen <jordan.l.justen@intel.com>, Rebecca Cran <rebecca@bsdio.com>, Peter Grehan <grehan@freebsd.org>, "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject:   RE: [PATCH] OvmfPkg: reserve igd memory by E820
Message-ID:  <7de01ae500554923941dc5ff9e537637@beckhoff.com>
In-Reply-To: <20220405070639.uq5uiydxhirwu4gb@sirius.home.kraxel.org>
References:  <20220404063448.280-1-c.koehne@beckhoff.com> <20220404113830.6novz55zpid3l6fl@sirius.home.kraxel.org> <f290b86d0034422fa4de3899dfde76ce@beckhoff.com> <20220405070639.uq5uiydxhirwu4gb@sirius.home.kraxel.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

> Where does the intel gop driver come from?  Extracted from host
> firmware?

https://projectacrn.github.io/latest/tutorials/gpu-passthru.html#enable-the=
-gvt-d-gop-driver

I don't know if it's possible to extract it from host firmware within
OS context easily. According to Intel you should ask your board
manufacturer. We're producing our own motherboards with an own
BIOS. So, I'm reusing the Intel GOP driver from our host BIOS.

> Ah, ok, didn't notice the subtile differences with the small letter at
> the end.  GVT-d + GVT-g is clear then.  What is GVT-s ?

https://01.org/sites/default/files/downloads/igvt-g/gvtflyer.pdf

I'm not familiar with GVT-s. I just know that it exists.

> Ideally the guest would allocate and initialize this all itself.
> That is hard for the GSM though when it requires an identity
> mapping.
>
> Having the guest check whenever the GSM register points to reserved
> memory and if so use it instead of allocating memory should work I
> think.

To allocate GSM, the guest has to detect the size of GSM. Detecting
the size is platform dependent. Writing a small EFI driver to
detect the GSM size and to allocate a proper memory region should
be easy.

https://github.com/torvalds/linux/blob/master/arch/x86/kernel/early-quirks.=
c#L353-L460

> Once we have the code for vgabios and PlatformGopPolicy we can roll them
> with the intelgop driver into a rom image with EfiRom.  Ideally also add
> opregion content to the rom somehow.

Sounds good. Does these EFI drivers have to be maintained outside of
EDKII?


Best regards
Corvin


Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Bec=
khoff
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7de01ae500554923941dc5ff9e537637>