Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/oa: Allow reading after disabling OA stream
@ 2026-03-11 21:01 Ashutosh Dixit
  2026-03-11 21:08 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ashutosh Dixit @ 2026-03-11 21:01 UTC (permalink / raw)
  To: intel-xe; +Cc: Umesh Nerlige Ramappa

Some OA data might be present in the OA buffer when OA stream is
disabled. Allow UMD's to retrieve this data, so that all data till the
point when OA stream is disabled can be retrieved.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 drivers/gpu/drm/xe/xe_oa.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 72fc4424017bf..f840827960eab 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -543,8 +543,7 @@ static ssize_t xe_oa_read(struct file *file, char __user *buf,
 	size_t offset = 0;
 	int ret;
 
-	/* Can't read from disabled streams */
-	if (!stream->enabled || !stream->sample)
+	if (!stream->sample)
 		return -EINVAL;
 
 	if (!(file->f_flags & O_NONBLOCK)) {
-- 
2.48.1


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

end of thread, other threads:[~2026-03-12 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 21:01 [PATCH] drm/xe/oa: Allow reading after disabling OA stream Ashutosh Dixit
2026-03-11 21:08 ` ✓ CI.KUnit: success for " Patchwork
2026-03-11 22:07 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-12  4:24 ` [PATCH] " Umesh Nerlige Ramappa
2026-03-12  6:52   ` Dixit, Ashutosh
2026-03-12 12:25     ` Umesh Nerlige Ramappa
2026-03-12 21:16       ` Dixit, Ashutosh
2026-03-12 16:13 ` ✗ Xe.CI.FULL: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox