From: "Timur Kristóf" <timur.kristof@gmail.com>
To: amd-gfx@lists.freedesktop.org
Cc: kernel-dev@igalia.com, Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
Alex Deucher <alexander.deucher@amd.com>,
Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Subject: Re: [RFC 2/2] drm/amdgpu: Drop null SDMA instance checks from SDMA vfuncs
Date: Tue, 08 Sep 2026 10:42:05 +0200 [thread overview]
Message-ID: <KxQ5VDZpTeijTso_Uy70_Q@gmail.com> (raw)
In-Reply-To: <20260622143649.54632-3-tvrtko.ursulin@igalia.com>
On 2026. június 22., hétfő 16:36:49 közép-európai nyári idő Tvrtko Ursulin
wrote:
> Commit message TBD - Can these be NULL?
I've looked it up, burst_nop was added 11 years ago in commit 18111de0dfc3.
I have the following thoughts on this topic:
1. For newer SDMA IP block versions, I think burst_nop would be supported on
all firmware versions and the check shouldn't be necessary at all. (Eg. I don't
think there was ever any SDMA v5.x+ FW without this feature.) We should find
out which IP block versions exactly are the ones that always supported it and
we should just remove the check from those.
2. I don't understand why the burst_nop flag is per-instance. Is it really
possible that not all SDMA instances support it? We should find out and if
possible move the flag to amdgpu_sdma instead of amdgpu_sdma_instance.
3. To actually answer the question in the commit message, I don't think they
can be NULL, unless an invalid (not SDMA) amdgpu_ring pointer is passed. I
would rather just assert that the ring type is correct.
Best regards,
Timur
prev parent reply other threads:[~2026-09-08 8:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-22 14:36 [RFC 0/2] Store SDMA ring instance and index in the ring Tvrtko Ursulin
2026-06-22 14:36 ` [RFC 1/2] drm/amdgpu: Store SDMA " Tvrtko Ursulin
2026-09-08 8:42 ` Timur Kristóf
2026-09-08 8:54 ` Tvrtko Ursulin
2026-09-08 9:32 ` Timur Kristóf
2026-06-22 14:36 ` [RFC 2/2] drm/amdgpu: Drop null SDMA instance checks from SDMA vfuncs Tvrtko Ursulin
2026-09-08 8:42 ` Timur Kristóf [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=KxQ5VDZpTeijTso_Uy70_Q@gmail.com \
--to=timur.kristof@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=tvrtko.ursulin@igalia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox