From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/xe/oa/uapi: Expose an unblock after N reports OA property
Date: Mon, 16 Dec 2024 18:17:01 -0800 [thread overview]
Message-ID: <858qsf2gv6.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <Z2CuJsoml8u3azAO@orsosgc001>
On Mon, 16 Dec 2024 14:48:06 -0800, Umesh Nerlige Ramappa wrote:
>
> >> > @@ -2156,6 +2170,14 @@ int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *f
> >> > if (!param.oa_buffer_size)
> >> > param.oa_buffer_size = DEFAULT_XE_OA_BUFFER_SIZE;
> >> >
> >> > + if (!param.wait_num_reports)
> >> > + param.wait_num_reports = 1;
> >> > + if (param.wait_num_reports > param.oa_buffer_size / f->size) {
> >> > + drm_dbg(&oa->xe->drm, "wait_num_reports %d\n", param.wait_num_reports);
> >> > + ret = -EINVAL;
> >> > + goto err_exec_q;
> >> > + }
> >>
> >> If possible, I think this check where wait_num_reports has an upper limit
> >> should be moved to xe_oa_set_prop_wait_num_reports().
> >
> > It's not possible since the properties can come in any order, so both the
> > OA buffer size as well as the format might not be available when
> > wait_num_reports property is parsed. So they could both still be 0 when
> > xe_oa_set_prop_wait_num_reports() is called.
> >
> > That is why the code which checks for consistency between multiple
> > properties comes after the code which parses individual properties.
>
> Oh, makes sense. Then this is:
>
> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Thanks, now merged!
prev parent reply other threads:[~2024-12-17 2:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 22:49 [PATCH] drm/xe/oa/uapi: Expose an unblock after N reports OA property Ashutosh Dixit
2024-12-12 22:59 ` Cavitt, Jonathan
2024-12-13 17:19 ` Dixit, Ashutosh
2024-12-12 23:10 ` ✓ CI.Patch_applied: success for " Patchwork
2024-12-12 23:10 ` ✗ CI.checkpatch: warning " Patchwork
2024-12-12 23:11 ` ✓ CI.KUnit: success " Patchwork
2024-12-12 23:38 ` ✓ CI.Build: " Patchwork
2024-12-12 23:42 ` ✓ CI.Hooks: " Patchwork
2024-12-12 23:45 ` ✓ CI.checksparse: " Patchwork
2024-12-13 0:12 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-13 7:03 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-14 0:54 ` [PATCH] " Umesh Nerlige Ramappa
2024-12-14 1:08 ` Dixit, Ashutosh
2024-12-16 22:48 ` Umesh Nerlige Ramappa
2024-12-17 2:17 ` Dixit, Ashutosh [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=858qsf2gv6.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=umesh.nerlige.ramappa@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.