All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/oa: Allow oa_exponent value of 0
@ 2025-02-12  1:07 Umesh Nerlige Ramappa
  2025-02-12  2:12 ` Dixit, Ashutosh
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Umesh Nerlige Ramappa @ 2025-02-12  1:07 UTC (permalink / raw)
  To: Ashutosh Dixit, intel-xe

OA exponent value of 0 is a valid value for periodic reports. Allow user
to pass 0 for the OA sampling interval since it gets converted to 2 gt
clock ticks.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 drivers/gpu/drm/xe/xe_oa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index a692dffcb638..268403b9b527 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -2025,7 +2025,7 @@ int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *f
 		goto err_exec_q;
 	}
 
-	if (param.period_exponent > 0) {
+	if (param.period_exponent >= 0) {
 		u64 oa_period, oa_freq_hz;
 
 		/* Requesting samples from OAG buffer is a privileged operation */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-12  8:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12  1:07 [PATCH] drm/xe/oa: Allow oa_exponent value of 0 Umesh Nerlige Ramappa
2025-02-12  2:12 ` Dixit, Ashutosh
2025-02-12  2:18 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-12  2:18 ` ✓ CI.checkpatch: " Patchwork
2025-02-12  2:20 ` ✓ CI.KUnit: " Patchwork
2025-02-12  2:36 ` ✓ CI.Build: " Patchwork
2025-02-12  2:39 ` ✓ CI.Hooks: " Patchwork
2025-02-12  2:40 ` ✓ CI.checksparse: " Patchwork
2025-02-12  3:00 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-12  8:20 ` ✗ Xe.CI.Full: failure " Patchwork

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.