From: "Grzegorzek, Dominik" <dominik.grzegorzek@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"kamil.konieczny@linux.intel.com"
<kamil.konieczny@linux.intel.com>
Cc: "Justen, Jordan L" <jordan.l.justen@intel.com>,
"Manszewski, Christoph" <christoph.manszewski@intel.com>
Subject: Re: [PATCH i-g-t 2/2] tests/intel/xe_eudebug_online: Fix 32b compilation warnings/errors
Date: Wed, 22 Jan 2025 13:11:53 +0000 [thread overview]
Message-ID: <cead974864be2365a18305ba913cb7b7b2b7b5ce.camel@intel.com> (raw)
In-Reply-To: <20250121161751.aqotrwo6pzgyzl73@kamilkon-desk.igk.intel.com>
On Tue, 2025-01-21 at 17:17 +0100, Kamil Konieczny wrote:
> Hi Dominik,
> On 2025-01-20 at 14:13:38 +0100, Dominik Grzegorzek wrote:
> > Fix metadata allocation so it is properly sized on 32b and
> > correct all debug prints which were causing compilation warnings.
> >
> > Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
> > ---
> > tests/intel/xe_eudebug_online.c | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/tests/intel/xe_eudebug_online.c b/tests/intel/xe_eudebug_online.c
> > index f532387af..41a01c02f 100644
> > --- a/tests/intel/xe_eudebug_online.c
> > +++ b/tests/intel/xe_eudebug_online.c
> > @@ -569,7 +569,7 @@ static void get_aips_offset_table(struct online_debug_data *data, int threads)
> >
> > igt_debug("AIPs offset table:\n");
> > for (int i = 0; i < threads; i++)
> > - igt_debug("%lx\n", data->aips_offset_table[i]);
> > + igt_debug("%" PRIx64 "\n", data->aips_offset_table[i]);
> > }
> >
> > static int get_stepped_threads_count(struct online_debug_data *data, int threads)
> > @@ -1063,8 +1063,8 @@ static void run_online_client(struct xe_eudebug_client *c)
> > uint32_t *ptr;
> > int fd, vm_flags;
> >
> > - metadata[0] = calloc(2, sizeof(*metadata));
> > - metadata[1] = calloc(2, sizeof(*metadata));
> > + metadata[0] = calloc(2, sizeof(**metadata));
> > + metadata[1] = calloc(2, sizeof(**metadata));
>
> There are other places with similar pattern 'sizeof(*metadata)'
> If they are also bugs, imho this patch should be splitted into
> PRIu64/other prints and other one for fixing those sizeof.
>
> Regards,
> Kamil
Good catch! Sure, I will send v2.
Regards,
Dominik
>
> > igt_assert(metadata[0]);
> > igt_assert(metadata[1]);
> >
> > @@ -2328,11 +2328,11 @@ static void test_many_sessions_on_tiles(int fd, bool multi_tile)
> >
> > if (multi_tile)
> > igt_assert_f(diff < WORKLOAD_DELAY_US,
> > - "Expected to execute workloads concurrently. Actual delay: %lu ms\n",
> > + "Expected to execute workloads concurrently. Actual delay: %" PRIu64 " ms\n",
> > diff);
> > else
> > igt_assert_f(diff >= WORKLOAD_DELAY_US,
> > - "Expected a serialization of workloads. Actual delay: %lu ms\n",
> > + "Expected a serialization of workloads. Actual delay: %" PRIu64 " ms\n",
> > diff);
> > }
> >
> > --
> > 2.34.1
> >
next prev parent reply other threads:[~2025-01-22 13:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 13:13 [PATCH i-g-t 1/2] lib/xe_eudebug: Fix 32b compilation warnings/errors Dominik Grzegorzek
2025-01-20 13:13 ` [PATCH i-g-t 2/2] tests/intel/xe_eudebug_online: " Dominik Grzegorzek
2025-01-21 16:17 ` Kamil Konieczny
2025-01-22 13:11 ` Grzegorzek, Dominik [this message]
2025-01-20 15:22 ` ✓ i915.CI.BAT: success for series starting with [i-g-t,1/2] lib/xe_eudebug: " Patchwork
2025-01-20 16:04 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-20 19:04 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-21 9:26 ` ✗ i915.CI.Full: " Patchwork
2025-01-21 16:02 ` [PATCH i-g-t 1/2] " Kamil Konieczny
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=cead974864be2365a18305ba913cb7b7b2b7b5ce.camel@intel.com \
--to=dominik.grzegorzek@intel.com \
--cc=christoph.manszewski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jordan.l.justen@intel.com \
--cc=kamil.konieczny@linux.intel.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