From: Brajesh Gupta <Brajesh.Gupta@imgtec.com>
To: Luigi Santivetti <Luigi.Santivetti@imgtec.com>,
"tzimmermann@suse.de" <tzimmermann@suse.de>,
"simona@ffwll.ch" <simona@ffwll.ch>,
"airlied@gmail.com" <airlied@gmail.com>,
Frank Binns <Frank.Binns@imgtec.com>,
Alessio Belle <Alessio.Belle@imgtec.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
Alexandru Dadu <Alexandru.Dadu@imgtec.com>,
"mripard@kernel.org" <mripard@kernel.org>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/imagination: Fix value of HWRT address in pvr_job_create tracepoint
Date: Wed, 22 Jul 2026 09:56:11 +0000 [thread overview]
Message-ID: <9f6f9fbd79bef9d827c508f77189dd06d69ae5ea.camel@imgtec.com> (raw)
In-Reply-To: <20260720-fix-pvr-job-trace-hwrt-v1-1-b24551802efb@imgtec.com>
On Mon, 2026-07-20 at 16:07 +0100, Alessio Belle wrote:
> *** NOTE: This is an internal email from Imagination Technologies ***
>
>
>
>
> The pvr_job_create tracepoint was using pvr_fw_object::fw_addr_offset
> to display the firmware address of the render target structure attached
> to a job, but that's an offset into the firmware heap, not the expected
> full address, which is more useful in general e.g. for cross referencing
> against firmware logs.
>
> Use pvr_fw_object_get_fw_addr() to get the full firmware address.
>
> Fixes: c1079aebb4de ("drm/imagination: Add support for trace points")
> Signed-off-by: Alessio Belle <alessio.belle@imgtec.com>
> ---
> drivers/gpu/drm/imagination/pvr_trace.h | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/imagination/pvr_trace.h b/drivers/gpu/drm/imagination/pvr_trace.h
> index ffbbde3b2bcc..943d6b2418cb 100644
> --- a/drivers/gpu/drm/imagination/pvr_trace.h
> +++ b/drivers/gpu/drm/imagination/pvr_trace.h
> @@ -41,6 +41,17 @@ TRACE_EVENT(pvr_job_submit_ioctl,
> __entry->count)
> );
>
> +#define PVR_JOB_GET_HWRT_FW_ADDR(job) \
> + ({ \
> + struct pvr_job *_job = (job); \
> + u32 _hwrt_fw_addr = 0; \
> + \
> + if (_job && _job->hwrt) \
> + pvr_fw_object_get_fw_addr(_job->hwrt->fw_obj, &_hwrt_fw_addr); \
> + \
> + _hwrt_fw_addr; \
> + })
> +
> #define PVR_JOB_TYPE_TO_STR(val) \
> __print_symbolic(val, \
> { DRM_PVR_JOB_TYPE_GEOMETRY, "geometry" }, \
> @@ -64,9 +75,7 @@ TRACE_EVENT(pvr_job_create,
> __entry->ctx = job->ctx;
> __entry->fw_obj = job->ctx->fw_obj;
> pvr_fw_object_get_fw_addr(job->ctx->fw_obj, &__entry->fw_addr);
> - __entry->hwrt_addr = job->hwrt ?
> - job->hwrt->fw_obj->fw_addr_offset :
> - 0;
> + __entry->hwrt_addr = PVR_JOB_GET_HWRT_FW_ADDR(job);
> __entry->job = job;
> __entry->job_type = job->type;
> __entry->sync_op_count = sync_op_count;),
> @@ -82,6 +91,7 @@ TRACE_EVENT(pvr_job_create,
> );
>
> #undef PVR_JOB_TYPE_TO_STR
> +#undef PVR_JOB_GET_HWRT_FW_ADDR
>
> TRACE_EVENT(pvr_job_submit_fw,
> TP_PROTO(struct pvr_job *job),
>
> ---
> base-commit: 17e2030f37600994440f875dc410615d5c66ee6d
> change-id: 20260720-fix-pvr-job-trace-hwrt-32f54c0ec185
>
> Best regards,
> --
> Alessio Belle <alessio.belle@imgtec.com>
>
Reviewed-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
Thanks,
Brajesh
next prev parent reply other threads:[~2026-07-22 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 15:07 Alessio Belle
2026-07-22 9:56 ` Brajesh Gupta [this message]
2026-07-24 8:02 ` Alessio Belle
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=9f6f9fbd79bef9d827c508f77189dd06d69ae5ea.camel@imgtec.com \
--to=brajesh.gupta@imgtec.com \
--cc=Alessio.Belle@imgtec.com \
--cc=Alexandru.Dadu@imgtec.com \
--cc=Frank.Binns@imgtec.com \
--cc=Luigi.Santivetti@imgtec.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--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®