From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>, Le Ma <le.ma@amd.com>,
Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH] drm/amdgpu: Switch to gfx_v12_1_get_xccs_per_xcp
Date: Mon, 15 Dec 2025 13:16:05 -0500 [thread overview]
Message-ID: <20251215181607.29132-18-alexander.deucher@amd.com> (raw)
In-Reply-To: <20251215181607.29132-1-alexander.deucher@amd.com>
From: Hawking Zhang <Hawking.Zhang@amd.com>
Use gfx v12_1 callback to query the numbers of xccs
per xcp
v2: add todo (Alex)
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
index 277db5ef9ca74..ae65d70c3d10c 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
@@ -718,6 +718,12 @@ static int gfx_v12_1_ih_to_xcc_inst(struct amdgpu_device *adev, int ih_node)
return -EINVAL;
}
+static int gfx_v12_1_get_xccs_per_xcp(struct amdgpu_device *adev)
+{
+ /* Fill this in when the interface is ready */
+ return 1;
+}
+
static const struct amdgpu_gfx_funcs gfx_v12_1_gfx_funcs = {
.get_gpu_clock_counter = &gfx_v12_1_get_gpu_clock_counter,
.select_se_sh = &gfx_v12_1_xcc_select_se_sh,
@@ -728,6 +734,7 @@ static const struct amdgpu_gfx_funcs gfx_v12_1_gfx_funcs = {
.update_perfmon_mgcg = &gfx_v12_1_update_perf_clk,
.get_xccs_per_xcp = &gfx_v12_1_get_xccs_per_xcp,
.ih_node_to_logical_xcc = &gfx_v12_1_ih_to_xcc_inst,
+ .get_xccs_per_xcp = &gfx_v12_1_get_xccs_per_xcp,
};
static int gfx_v12_1_gpu_early_init(struct amdgpu_device *adev)
--
2.52.0
next prev parent reply other threads:[~2025-12-15 18:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 18:15 [PATCH] drm/amdgpu/gfx_v12_1: add mqd_stride_size input parameter Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: Program IH_VMID_LUT_INDEX register on GFX 12.1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: Setup Retry based thrashing prevention " Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: disable burst for gfx v12_1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdkfd: Set SDMA_QUEUEx_IB_CNTL/SWITCH_INSIDE_IB Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdkfd: Add SDMA queue quantum support for GFX12.1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: adjust xcc_cp_resume function for gfx_v12_1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: adjust xcc logic for gfxhub v12_1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: adjust xcc_id program logic for sdma v7_1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: Use correct MES pipe in non-SPX mode on GFX 12.1 Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdgpu: Rework MES initialization " Alex Deucher
2025-12-15 18:15 ` [PATCH] drm/amdkfd: Don't partition VMID space " Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdkfd: Add/remove queues on the correct XCC " Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdkfd: Send MES packets on " Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdgpu: Report correct compute partition mode " Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdgpu: Setup MTYPE on SOC models for " Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdgpu: make normalize reg addr to common func for soc v1 Alex Deucher
2025-12-15 18:16 ` Alex Deucher [this message]
2025-12-15 18:16 ` [PATCH] drm/amdgpu: Do not initialize imu callback for vf Alex Deucher
2025-12-15 18:16 ` [PATCH] drm/amdgpu: Fix xcc_id input for soc_v1_0_grbm_select Alex Deucher
-- strict thread matches above, loose matches on Subject: below --
2026-04-22 21:50 [PATCH] drm/amdgpu: update cp cmd pkt for gfx v12_1 Alex Deucher
2026-04-22 21:50 ` [PATCH] drm/amdgpu: Switch to gfx_v12_1_get_xccs_per_xcp Alex Deucher
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=20251215181607.29132-18-alexander.deucher@amd.com \
--to=alexander.deucher@amd.com \
--cc=Hawking.Zhang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=le.ma@amd.com \
/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.