From: Yann Dirson <ydirson@free.fr>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: Various problems trying to vga-passthrough a Renoir iGPU to a xen/qubes-os hvm
Date: Wed, 8 Dec 2021 23:50:04 +0100 (CET) [thread overview]
Message-ID: <2125070111.42356235.1639003804213.JavaMail.root@zimbra39-e7> (raw)
In-Reply-To: <CADnq5_M_PS6fSza560ReNVki0n40tozig_KsbZnFksco2MZ3Ag@mail.gmail.com>
Hi Alex,
>
> On Mon, Dec 6, 2021 at 4:36 PM Yann Dirson <ydirson@free.fr> wrote:
> >
> > Hi Alex,
> >
> > > We have not validated virtualization of our integrated GPUs. I
> > > don't
> > > know that it will work at all. We had done a bit of testing but
> > > ran
> > > into the same issues with the PSP, but never had a chance to
> > > debug
> > > further because this feature is not productized.
> > ...
> > > You need a functional PSP to get the GPU driver up and running.
> >
> > Ah, thanks for the hint :)
> >
> > I guess that if I want to have any chance to get the PSP working
> > I'm
> > going to need more details on it. A quick search some time ago
> > mostly
> > brought reverse-engineering work, rather than official AMD doc.
> > Are
> > there some AMD resources I missed ?
>
> The driver code is pretty much it. On APUs, the PSP is shared with
> the CPU and the rest of the platform. The GPU driver just interacts
> with it for a few specific tasks:
> 1. Loading Trusted Applications (e.g., trusted firmware applications
> that run on the PSP for specific functionality, e.g., HDCP and
> content
> protection, etc.)
> 2. Validating and loading firmware for other engines on the SoC.
> This
> is required to use those engines.
After some digging, if I understand correctly, the PSP is the 3rd IP
getting its hw_init() called. First comes soc15_common, then vega10_ih.
- soc15_common_init_hw does some writes through nbio_v7.0 functions,
but does not query the hw to check before or after
- vega10_init_hw does some register reads as part of its work, but once
it has written it does not check either
So PSP is the first one to check that "soc15" (I'm still not sure what
this one represents, really) is in fact alive and well.
Can't we check earlier that the chip is really listening to us ?
>
> I'm not too familiar with the PSP's path to memory from the GPU
> perspective. IIRC, most memory used by the PSP goes through carve
> out
> "vram" on APUs so it should work, but I would double check if there
> are any system memory allocations that used to interact with the PSP
> and see if changing them to vram helps. It does work with the IOMMU
> enabled on bare metal, so it should work in passthrough as well in
> theory.
>
> Alex
>
>
> >
> > Best regards,
> > --
> > Yann
>
next prev parent reply other threads:[~2021-12-08 22:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <141592746.1489383804.1638011381741.JavaMail.root@zimbra39-e7>
2021-11-27 16:28 ` Various problems trying to vga-passthrough a Renoir iGPU to a xen/qubes-os hvm ydirson
2021-12-06 19:45 ` Alex Deucher
2021-12-06 21:36 ` Yann Dirson
2021-12-06 22:39 ` Alex Deucher
2021-12-08 22:50 ` Yann Dirson [this message]
2021-12-09 4:36 ` Alex Deucher
2021-12-12 22:19 ` Yann Dirson
2021-12-13 20:29 ` Alex Deucher
2021-12-15 22:00 ` Alex Deucher
2021-12-19 16:00 ` Yann Dirson
2021-12-19 16:24 ` Christian König
2021-12-19 16:41 ` Yann Dirson
2021-12-21 20:28 ` Alex Deucher
2021-12-21 22:12 ` Yann Dirson
2021-12-21 22:31 ` Alex Deucher
2021-12-21 23:09 ` Yann Dirson
2021-12-22 14:07 ` Alex Deucher
2021-12-29 16:59 ` Yann Dirson
2021-12-29 17:06 ` Alex Deucher
2021-12-29 17:34 ` Yann Dirson
2021-12-29 17:56 ` Alex Deucher
2022-01-06 15:38 ` Yann Dirson
2022-01-06 21:24 ` Alex Deucher
2022-01-09 23:11 ` Yann Dirson
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-all 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=2125070111.42356235.1639003804213.JavaMail.root@zimbra39-e7 \
--to=ydirson@free.fr \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.