[PATCH i-g-t 1/2] tests/intel/xe_oa: Fetch OA buffer size from observation IOCTL
Dixit, Ashutosh
ashutosh.dixit at intel.com
Mon Nov 18 20:03:20 UTC 2024
On Sun, 17 Nov 2024 22:32:22 -0800, Sai Teja Pottumuttu wrote:
>
> @@ -2367,7 +2392,7 @@ test_buffer_fill(const struct drm_xe_engine_class_instance *hwe)
> int buf_size = 65536 * report_size;
> uint8_t *buf = malloc(buf_size);
> int len;
> - size_t oa_buf_size = MAX_OA_BUF_SIZE;
> + size_t oa_buf_size = oa_buffer_size;
> int n_full_oa_reports = oa_buf_size / report_size;
> uint64_t fill_duration = n_full_oa_reports * oa_period;
> uint32_t *last_periodic_report = malloc(report_size);
> @@ -2592,7 +2617,7 @@ test_enable_disable(const struct drm_xe_engine_class_instance *hwe)
> size_t report_size = get_oa_format(fmt).size;
> int buf_size = 65536 * report_size;
> uint8_t *buf = malloc(buf_size);
> - size_t oa_buf_size = MAX_OA_BUF_SIZE;
> + size_t oa_buf_size = oa_buffer_size;
> int n_full_oa_reports = oa_buf_size / report_size;
> uint64_t fill_duration = n_full_oa_reports * oa_period;
> uint32_t *last_periodic_report = malloc(report_size);
Maybe get rid of these two oa_buf_size local variables too, directly use
default_oa_buffer_size.
More information about the igt-dev
mailing list