From: <will.aitken@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: <Harish.Kasiviswanathan@amd.com>, Will Aitken <will.aitken@amd.com>
Subject: [PATCH] drm/amdgpu: Check fb-sharing for xgmi accessiblity
Date: Wed, 7 Oct 2026 09:31:27 -0400 [thread overview]
Message-ID: <20261007133128.666-1-will.aitken@amd.com> (raw)
From: Will Aitken <will.aitken@amd.com>
In sriov, sometimes fb-sharing will be disabled. In those scenarios xgmi
links should no longer be used. Adding check for sharing-enabled to
determine if there is xgmi accessibility between devices
Signed-off-by: Will Aitken <will.aitken@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
index b4fbd8a407f1..d7845de4a789 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
@@ -612,6 +612,7 @@ bool amdgpu_dmabuf_is_xgmi_accessible(struct amdgpu_device *adev,
}
if (amdgpu_xgmi_same_hive(adev, amdgpu_ttm_adev(bo->tbo.bdev)) &&
+ (amdgpu_xgmi_get_is_sharing_enabled(adev, amdgpu_ttm_adev(bo->tbo.bdev)) &&
(bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM))
return true;
--
2.43.0
reply other threads:[~2026-10-07 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261007133128.666-1-will.aitken@amd.com \
--to=will.aitken@amd.com \
--cc=Harish.Kasiviswanathan@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox