From: Mario Limonciello <superm1@kernel.org>
To: Lizhi Hou <lizhi.hou@amd.com>,
mario.limonciello@amd.com, mamin506@gmail.com,
ogabbay@kernel.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] accel/amdxdna: Block running under a hypervisor
Date: Mon, 15 Dec 2025 13:38:26 -0600 [thread overview]
Message-ID: <c1957c6f-1201-402b-96be-31416d2de84c@kernel.org> (raw)
In-Reply-To: <bb8065d2-7ab9-ac1f-cb7d-81cad9a2f7c9@amd.com>
On 12/13/25 1:45 PM, Lizhi Hou wrote:
> On 12/12/25 21:44, Mario Limonciello (AMD) wrote:
>> SVA support is required, which isn't configured by hypervisor
>> solutions.
>
> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
>
> I think it is because aie2 can not load firmware in hypervisor solutions.
>
Thanks. Pushed to drm-misc-fixes.
7bbf6d15e935a accel/amdxdna: Block running under a hypervisor
>
> Lizhi
>
>>
>> Closes: https://github.com/QubesOS/qubes-issues/issues/10275
>> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4656
>> Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
>> ---
>> drivers/accel/amdxdna/aie2_pci.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/accel/amdxdna/aie2_pci.c b/drivers/accel/amdxdna/
>> aie2_pci.c
>> index ceef1c502e9e2..d892b412e4c0e 100644
>> --- a/drivers/accel/amdxdna/aie2_pci.c
>> +++ b/drivers/accel/amdxdna/aie2_pci.c
>> @@ -17,6 +17,7 @@
>> #include <linux/iopoll.h>
>> #include <linux/pci.h>
>> #include <linux/xarray.h>
>> +#include <asm/hypervisor.h>
>> #include "aie2_msg_priv.h"
>> #include "aie2_pci.h"
>> @@ -508,6 +509,11 @@ static int aie2_init(struct amdxdna_dev *xdna)
>> unsigned long bars = 0;
>> int i, nvec, ret;
>> + if (!hypervisor_is_type(X86_HYPER_NATIVE)) {
>> + XDNA_ERR(xdna, "Running under hypervisor not supported");
>> + return -EINVAL;
>> + }
>> +
>> ndev = drmm_kzalloc(&xdna->ddev, sizeof(*ndev), GFP_KERNEL);
>> if (!ndev)
>> return -ENOMEM;
prev parent reply other threads:[~2025-12-15 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-13 5:44 [PATCH] accel/amdxdna: Block running under a hypervisor Mario Limonciello (AMD)
2025-12-13 19:45 ` Lizhi Hou
2025-12-15 19:38 ` Mario Limonciello [this message]
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=c1957c6f-1201-402b-96be-31416d2de84c@kernel.org \
--to=superm1@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lizhi.hou@amd.com \
--cc=mamin506@gmail.com \
--cc=mario.limonciello@amd.com \
--cc=ogabbay@kernel.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.