drm/xe/oa: Set stream->pollin in xe_oa_buffer_check_unlocked
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 15 Jan 2025 22:20:29 +0000 (14:20 -0800)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Fri, 24 Jan 2025 02:07:03 +0000 (18:07 -0800)
commitd3fedff828bb7e4a422c42caeafd5d974e24ee43
tree254cdb798cdae6521d7ae8ae4a70b92f0e2b34a9
parentdddc53806dd2a10e210d5ea08caec6d3f92440b2
drm/xe/oa: Set stream->pollin in xe_oa_buffer_check_unlocked

We rely on stream->pollin to decide whether or not to block during
poll/read calls. However, currently there are blocking read code paths
which don't even set stream->pollin. The best place to consistently set
stream->pollin for all code paths is therefore to set it in
xe_oa_buffer_check_unlocked.

Fixes: e936f885f1e9 ("drm/xe/oa/uapi: Expose OA stream fd")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250115222029.3002103-1-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_oa.c