From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "Dong, Zhanjun" <zhanjun.dong@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t, v2, 02/11] tools/intel_guc_logger: Refactor intel_guc_logger globals into structs
Date: Tue, 14 Mar 2023 21:47:15 +0000 [thread overview]
Message-ID: <ad08582c53e3026396da19e280e83b5d35ef075a.camel@intel.com> (raw)
In-Reply-To: <741862eb-8a8c-a1b6-d033-0f6f09f1c40d@intel.com>
On Tue, 2023-01-31 at 19:04 -0500, Dong, Zhanjun wrote:
> See my comments below.
>
>
> Regards,
>
> Zhanjun Dong
>
> On 2022-12-06 3:58 a.m., Alan Previn wrote:
> > Refactor all of the global variables used in intel_guc_logger
> > into abstractions of structures at thread level, GuC-GT level
> > and global level.
> >
> > While at it, remove asserts from the non primary thread to ensure
> > process cleanup doesn't get stuck.
> >
alan:snip
> > - if (ctl_fd) {
> > - ret = asprintf(&str, "0x%" PRIx64, val);
> > + if (tdata->guc->control_fd) {
> > + ret = asprintf(&str, "0x%" PRIx64, (unsigned long)cmd);
> Why don't use typical int or unsigned int for max compatibility?
alan:sure will change to "int" like patch #1 direction and change the enum names to #defines.
side note: above code will look different, not using asprintf, not needing typecase after i fix
it as per your review comment of patch 1 anyway. I will change to int anyway.
alan:snip
> > case 'd':
> > - discard_oldlogs = true;
> > + data->discard_oldlogs = true;
> > igt_debug("old/boot-time logs will be discarded\n");
> > break;
> How about unsupported option(s)?
alan: i believe the igt helper takes care of that.
alan:snip
> > - get_guc_subbuf_info();
> > - process_command_line(argc, argv);
> > + memset(&gucdata[0], 0, sizeof(struct guc_t));
> > + gucdata[0].gt_id = 0;
> > + igt_assert_neq(asprintf(&gucdata[0].fspath, "gt/uc"), -1);
> Depends on platform, name could be gt/uc or gt0/uc, gt1/uc
alan: yeah thanks - this series last rev was published sometime back - but i will fix this
on the next patch that properly handles multi-gt platforms - for this patch #2, I'll
keept defaulting to single-gt product only as above. the next patch needs to be fixed for that.
next prev parent reply other threads:[~2023-03-14 21:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 8:58 [igt-dev] [PATCH i-g-t v2 00/11] Resurrect GuC Relay Logging Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 01/11] tools/intel_guc_logger: Re-enable basic functionality Alan Previn
2023-01-20 20:26 ` [igt-dev] [i-g-t, v2, " Dong, Zhanjun
2023-03-14 21:46 ` Teres Alexis, Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 02/11] tools/intel_guc_logger: Refactor intel_guc_logger globals into structs Alan Previn
2023-02-01 0:04 ` [igt-dev] [i-g-t, v2, " Dong, Zhanjun
2023-03-14 21:47 ` Teres Alexis, Alan Previn [this message]
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 03/11] tools/intel_guc_logger: Add GT-ID selection for intel_guc_logger Alan Previn
2023-03-14 21:54 ` Teres Alexis, Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 04/11] tools/intel_guc_logger: Add helper function for flusher code Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 05/11] tools/intel_guc_logger: Add GuC Log header structure definition Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 06/11] tools/intel_guc_logger: Concatenate log samples into a contiguous file Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 07/11] tools/intel_guc_logger: Add overflow awareness Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 08/11] tools/intel_guc_logger: Limit relay logging output file to 4GB Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 09/11] tools/intel_guc_logger: By default don't change GuC log verbosity Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 10/11] tools/intel_guc_logger: On exit, save any leftover GuC log data Alan Previn
2022-12-06 8:58 ` [igt-dev] [PATCH i-g-t v2 11/11] tools/intel_guc_logger: Add useful debug messages Alan Previn
2022-12-06 9:41 ` [igt-dev] ✓ Fi.CI.BAT: success for Resurrect GuC Relay Logging (rev2) Patchwork
2022-12-06 11:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=ad08582c53e3026396da19e280e83b5d35ef075a.camel@intel.com \
--to=alan.previn.teres.alexis@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zhanjun.dong@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