]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe/oa: Call xe_oa_emit_oa_config() with new config when updating config
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 19 Jun 2024 19:28:54 +0000 (12:28 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 20 Jun 2024 16:18:17 +0000 (09:18 -0700)
commit3516b2913ead50c5649cafcd1fe97b9c9dc41e59
tree2fe19ff01cf9cabae57be76589927b6fd29592e4
parentcb925d31f091467dee09dd49eab8bcd2c9b3e73e
drm/xe/oa: Call xe_oa_emit_oa_config() with new config when updating config

When UMD ask config to be updated, xe_oa_config_locked() was calling
xe_oa_emit_oa_config() that would use stream->oa_config but that is
only changed to the next oa_config after xe_oa_emit_oa_config() finish.
So it was setting the same config for all DRM_XE_PERF_IOCTL_CONFIG
calls.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619192854.199289-1-jose.souza@intel.com
drivers/gpu/drm/xe/xe_oa.c