From: Steven Price <steven.price@arm.com>
To: Ashley Smith <ashley.smith@collabora.com>,
Boris Brezillon <boris.brezillon@collabora.com>,
Liviu Dudau <liviu.dudau@arm.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/panthor: Update CS_STATUS_ defines to correct values
Date: Mon, 3 Mar 2025 16:42:02 +0000 [thread overview]
Message-ID: <f82b0996-77ea-4b1e-81c5-c3c8a48b4f95@arm.com> (raw)
In-Reply-To: <20250303151840.3669656-1-ashley.smith@collabora.com>
On 03/03/2025 15:18, Ashley Smith wrote:
> Values for SC_STATUS_BLOCKED_REASON_ are documented at https://arm.pages.collabora.com/mali-docs/g610-odin-csf/register/CS_KERNEL_OUTPUT_BLOCK.htm#rp_CS_KERNEL_OUTPUT_BLOCK/CS_STATUS_BLOCKED_REASON
Please don't reference a URL which isn't accessible to 'normal' people
;) Something like...
as documented in the G610 "Odin" GPU specification
(CS_STATUS_BLOCKED_REASON register)
...would hopefully be enough to find the relevant documentation for
those of us that have it.
>
> This change updates the defines to the correct values.
>
> Signed-off-by: Ashley Smith <ashley.smith@collabora.com>
> ---
> drivers/gpu/drm/panthor/panthor_fw.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/panthor/panthor_fw.h b/drivers/gpu/drm/panthor/panthor_fw.h
> index 22448abde992..4d3c8b585dcb 100644
> --- a/drivers/gpu/drm/panthor/panthor_fw.h
> +++ b/drivers/gpu/drm/panthor/panthor_fw.h
> @@ -102,9 +102,9 @@ struct panthor_fw_cs_output_iface {
> #define CS_STATUS_BLOCKED_REASON_SB_WAIT 1
> #define CS_STATUS_BLOCKED_REASON_PROGRESS_WAIT 2
> #define CS_STATUS_BLOCKED_REASON_SYNC_WAIT 3
> -#define CS_STATUS_BLOCKED_REASON_DEFERRED 5
> -#define CS_STATUS_BLOCKED_REASON_RES 6
> -#define CS_STATUS_BLOCKED_REASON_FLUSH 7
> +#define CS_STATUS_BLOCKED_REASON_DEFERRED 4
> +#define CS_STATUS_BLOCKED_REASON_RES 5
NIT: The actual name is RESOURCE not RES. So if we're updating to match
the spec we could rename it (it isn't currently used by the driver).
The actual updated values are correct, so with the above fixed:
Reviewed-by: Steven Price <steven.price@arm.com>
You might also want:
Fixes: 2718d91816ee ("drm/panthor: Add the FW logical block")
Thanks,
Steve
> +#define CS_STATUS_BLOCKED_REASON_FLUSH 6
> #define CS_STATUS_BLOCKED_REASON_MASK GENMASK(3, 0)
> u32 status_blocked_reason;
> u32 status_wait_sync_value_hi;
>
> base-commit: 16e57a72780931c3c70dbc928aeee4a0518075de
prev parent reply other threads:[~2025-03-03 16:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-03 15:18 Ashley Smith
2025-03-03 15:22 ` Boris Brezillon
2025-03-03 16:42 ` Steven Price [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=f82b0996-77ea-4b1e-81c5-c3c8a48b4f95@arm.com \
--to=steven.price@arm.com \
--cc=airlied@gmail.com \
--cc=ashley.smith@collabora.com \
--cc=boris.brezillon@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®