Skip to contentSkip to conversation

xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC

PATCH In review Rodrigo Vivi 4 participants 8 messages Jul 25, 2023 – Jul 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC

drm-xe-next commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC")

Also this is the header generated with:
make -j21 headers_install INSTALL_HDR_PATH=.
,as it should,
what explains some other unrelated changes that are appearing in the diff below.

---
 include/drm-uapi/xe_drm.h | 9 ++++-----
 tests/xe/xe_query.c       | 3 ---
 2 files changed, 4 insertions(+), 8 deletions(-)
include/drm-uapi/xe_drm.h +4 -5
index 02419c1d5..1ea453737 100644
@@ -3,8 +3,8 @@
  * Copyright © 2023 Intel Corporation
  */
 
-#ifndef _UAPI_XE_DRM_H_
-#define _UAPI_XE_DRM_H_
+#ifndef _XE_DRM_H_
+#define _XE_DRM_H_
 
 #include "drm.h"
 
@@ -180,7 +180,7 @@ struct drm_xe_query_mem_region {
 	 * zero.
 	 */
 	__u64 used;
-	/*
+	/**
 	 * @cpu_visible_size: How much of this region can be CPU
 	 * accessed, in bytes.
 	 *
@@ -246,7 +246,6 @@ struct drm_xe_query_config {
 #define XE_QUERY_CONFIG_REV_AND_DEVICE_ID	0
 #define XE_QUERY_CONFIG_FLAGS			1
 	#define XE_QUERY_CONFIG_FLAGS_HAS_VRAM		(0x1 << 0)
-	#define XE_QUERY_CONFIG_FLAGS_USE_GUC		(0x1 << 1)
 #define XE_QUERY_CONFIG_MIN_ALIGNEMENT		2
 #define XE_QUERY_CONFIG_VA_BITS			3
 #define XE_QUERY_CONFIG_GT_COUNT		4
@@ -1051,4 +1050,4 @@ struct drm_xe_vm_madvise {
 }
 #endif
 
-#endif /* _UAPI_XE_DRM_H_ */
+#endif /* _XE_DRM_H_ */
tests/xe/xe_query.c +0 -3
index 47aa98a8f..a4e40afdd 100644
@@ -371,9 +371,6 @@ test_query_config(int fd)
 	igt_info("  XE_QUERY_CONFIG_FLAGS_HAS_VRAM\t%s\n",
 		config->info[XE_QUERY_CONFIG_FLAGS] &
 		XE_QUERY_CONFIG_FLAGS_HAS_VRAM ? "ON":"OFF");
-	igt_info("  XE_QUERY_CONFIG_FLAGS_USE_GUC\t\t%s\n",
-		config->info[XE_QUERY_CONFIG_FLAGS] &
-		XE_QUERY_CONFIG_FLAGS_USE_GUC ? "ON":"OFF");
 	igt_info("XE_QUERY_CONFIG_MIN_ALIGNEMENT\t\t%#llx\n",
 		config->info[XE_QUERY_CONFIG_MIN_ALIGNEMENT]);
 	igt_info("XE_QUERY_CONFIG_VA_BITS\t\t\t%llu\n",
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/2 xe_debugfs: Remove guc_enable check.

drm-xe-next commit "drm/xe: Invert guc vs execlists parameters and info.") inverted the param to expose the status of the non-default config.

And commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC") entirely removed the query check.

So, let's simply stop doing this debugfs check here.

---
 tests/xe/xe_debugfs.c | 4 ----
 1 file changed, 4 deletions(-)
tests/xe/xe_debugfs.c +0 -4
index 5e16a71a0..5434d4645 100644
@@ -104,10 +104,6 @@ test_base(int fd, struct drm_xe_query_config *config)
 
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
-	sprintf(reference, "enable_guc %s", config->info[XE_QUERY_CONFIG_FLAGS] &
-		XE_QUERY_CONFIG_FLAGS_USE_GUC ? "yes" : "no");
-	igt_assert(igt_debugfs_search(fd, "info", reference));
-
 	sprintf(reference, "tile_count %lld", config->info[XE_QUERY_CONFIG_GT_COUNT]);
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
Signature · 1 line
2.41.0
#2 lore raw

Re: [igt-dev] [PATCH i-g-t 2/2] xe_debugfs: Remove guc_enable check.

Hi Rodrigo,

Quoted 9 lines · Rodrigo Vivi

drm-xe-next commit "drm/xe: Invert guc vs execlists parameters and info.") inverted the param to expose the status of the non-default config.

And commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC") entirely removed the query check.

So, let's simply stop doing this debugfs check here.

I am sorry, please drop my reply for 1/2 because separate 2/2 patch break incremental compile, so merge all this into one commit.

With that you can add my r-b tag.

Regards,
Kamil

Quoted 22 lines
---
 tests/xe/xe_debugfs.c | 4 ----
 1 file changed, 4 deletions(-)
tests/xe/xe_debugfs.c +0 -4
index 5e16a71a0..5434d4645 100644
@@ -104,10 +104,6 @@ test_base(int fd, struct drm_xe_query_config *config)
 
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
-	sprintf(reference, "enable_guc %s", config->info[XE_QUERY_CONFIG_FLAGS] &
-		XE_QUERY_CONFIG_FLAGS_USE_GUC ? "yes" : "no");
-	igt_assert(igt_debugfs_search(fd, "info", reference));
-
 	sprintf(reference, "tile_count %lld", config->info[XE_QUERY_CONFIG_GT_COUNT]);
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
Signature · 1 line
2.41.0
#3 lore raw

Re: [igt-dev] [Intel-xe] [PATCH i-g-t 2/2] xe_debugfs: Remove guc_enable check.

Quoted 9 lines · Kamil Konieczny

Hi Rodrigo,

Quoted 6 lines · Rodrigo Vivi

drm-xe-next commit "drm/xe: Invert guc vs execlists parameters and info.") inverted the param to expose the status of the non-default config.

And commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC") entirely removed the query check.

Quoted 8 lines
Quoted 3 lines

So, let's simply stop doing this debugfs check here.

I am sorry, please drop my reply for 1/2 because separate 2/2 patch break incremental compile, so merge all this into one commit.

With that you can add my r-b tag.

Thank you both for the reviews. I squashed both patches together and pushed.

Quoted 26 lines

Regards,
Kamil

Quoted 22 lines
---
 tests/xe/xe_debugfs.c | 4 ----
 1 file changed, 4 deletions(-)
tests/xe/xe_debugfs.c +0 -4
index 5e16a71a0..5434d4645 100644
@@ -104,10 +104,6 @@ test_base(int fd, struct drm_xe_query_config *config)
 
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
-	sprintf(reference, "enable_guc %s", config->info[XE_QUERY_CONFIG_FLAGS] &
-		XE_QUERY_CONFIG_FLAGS_USE_GUC ? "yes" : "no");
-	igt_assert(igt_debugfs_search(fd, "info", reference));
-
 	sprintf(reference, "tile_count %lld", config->info[XE_QUERY_CONFIG_GT_COUNT]);
 	igt_assert(igt_debugfs_search(fd, "info", reference));
 
Signature · 1 line
2.41.0
#4 lore raw

[Intel-xe] ✗ CI.Patch_applied: failure for series starting with [i-g-t,1/2] xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/2] xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC
URL : https://patchwork.freedesktop.org/series/121332/
State : failure

== Summary ==

=== Applying kernel patches on branch 'drm-xe-next' with base: === Base commit: 3eb59fdaf drm/xe: Invert guc vs execlists parameters and info. === git am output follows ===
error: include/drm-uapi/xe_drm.h: does not exist in index
error: tests/xe/xe_query.c: does not exist in index
hint: Use 'git am --show-current-patch' to see the failed patch
Applying: xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC Patch failed at 0001 xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

#5 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/2] xe: Align uapi after removal of XE_QUERY_CONFIG_FLAGS_USE_GUC
URL : https://patchwork.freedesktop.org/series/121331/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13422 -> IGTPW_9459
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_9459 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_9459, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/index.html

Participating hosts (44 -> 42)
------------------------------

Missing (2): fi-kbl-soraka fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_9459:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@execlists:
- fi-cfl-8700k: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-cfl-8700k/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-cfl-8700k/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@ring_submission:
- fi-cfl-8700k: [PASS][3] -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-cfl-8700k/igt@i915_selftest@live@ring_submission.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-cfl-8700k/igt@i915_selftest@live@ring_submission.html

Known issues
------------

Here are the changes found in IGTPW_9459 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_auth@basic-auth:
- bat-adlp-11: NOTRUN -> [ABORT][5] ([i915#8011])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-11/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-adlp-9: NOTRUN -> [SKIP][6] ([i915#4613]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

* igt@i915_pm_rpm@basic-rte:
- fi-cfl-8109u: [PASS][7] -> [FAIL][8] ([i915#7940]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-cfl-8109u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-cfl-8109u/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- bat-adlp-9: NOTRUN -> [FAIL][9] ([i915#7940])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-adlp-9: NOTRUN -> [SKIP][10] ([i915#6621])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

* igt@i915_selftest@live@gt_pm:
- bat-rpls-2: [PASS][11] -> [DMESG-FAIL][12] ([i915#4258] / [i915#7913])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-rpls-2/igt@i915_selftest@live@gt_pm.html

* igt@i915_selftest@live@requests:
- bat-mtlp-6: [PASS][13] -> [ABORT][14] ([i915#7982])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-mtlp-6/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-mtlp-6/igt@i915_selftest@[email protected]

* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-adlp-9: NOTRUN -> [SKIP][15] ([i915#7828])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]
- bat-jsl-3: NOTRUN -> [SKIP][16] ([i915#7828])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-jsl-3/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][17] ([i915#1845] / [i915#5354])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-dg2-11/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- bat-rplp-1: NOTRUN -> [ABORT][18] ([i915#8442] / [i915#8712])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-rplp-1/igt@kms_psr@sprite_plane_onoff.html

* igt@prime_vgem@basic-fence-read:
- bat-adlp-9: NOTRUN -> [SKIP][19] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s0@smem:
- bat-jsl-3: [ABORT][20] ([i915#5122]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-jsl-3/igt@gem_exec_suspend@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-jsl-3/igt@gem_exec_suspend@[email protected]

* igt@i915_pm_rpm@basic-pci-d3-state:
- bat-adlp-9: [FAIL][22] ([i915#7940]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-adlp-9/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

* igt@i915_pm_rpm@basic-rte:
- bat-adlp-9: [ABORT][24] ([i915#7977] / [i915#8668]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-adlp-9/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-9/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-tgl-1115g4: [FAIL][26] ([i915#7940]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-tgl-1115g4/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live@gt_mocs:
- bat-mtlp-6: [DMESG-FAIL][28] ([i915#7059]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-mtlp-6/igt@i915_selftest@live@gt_mocs.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-mtlp-6/igt@i915_selftest@live@gt_mocs.html

* igt@i915_selftest@live@requests:
- bat-mtlp-8: [DMESG-FAIL][30] ([i915#8497]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-mtlp-8/igt@i915_selftest@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@slpc:
- bat-mtlp-8: [DMESG-WARN][32] ([i915#6367]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-mtlp-8/igt@i915_selftest@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- bat-jsl-3: [FAIL][34] ([fdo#103375]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-jsl-3/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-jsl-3/igt@[email protected]

#### Warnings ####

* igt@i915_module_load@load:
- bat-adlp-11: [ABORT][36] ([i915#4423]) -> [DMESG-WARN][37] ([i915#4423])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-adlp-11/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-adlp-11/igt@[email protected]

* igt@i915_pm_rpm@basic-rte:
- fi-kbl-8809g: [FAIL][38] ([i915#8843]) -> [FAIL][39] ([i915#7940])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-kbl-8809g/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-kbl-8809g/igt@[email protected]
- fi-kbl-guc: [FAIL][40] ([i915#7940]) -> [FAIL][41] ([i915#8843])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/fi-kbl-guc/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/fi-kbl-guc/igt@[email protected]

* igt@kms_psr@cursor_plane_move:
- bat-rplp-1: [ABORT][42] ([i915#8434] / [i915#8668]) -> [SKIP][43] ([i915#1072])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13422/bat-rplp-1/igt@kms_psr@cursor_plane_move.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/bat-rplp-1/igt@kms_psr@cursor_plane_move.html

[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#7059]: https://gitlab.freedesktop.org/drm/intel/issues/7059
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7940]: https://gitlab.freedesktop.org/drm/intel/issues/7940
[i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977
[i915#7982]: https://gitlab.freedesktop.org/drm/intel/issues/7982
[i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011
[i915#8434]: https://gitlab.freedesktop.org/drm/intel/issues/8434
[i915#8442]: https://gitlab.freedesktop.org/drm/intel/issues/8442
[i915#8497]: https://gitlab.freedesktop.org/drm/intel/issues/8497
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8712]: https://gitlab.freedesktop.org/drm/intel/issues/8712
[i915#8843]: https://gitlab.freedesktop.org/drm/intel/issues/8843

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7403 -> IGTPW_9459

CI-20190529: 20190529
CI_DRM_13422: a19adfa38acfde9a7a6e9f99b598c065e4f190bb @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9459: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/index.html
IGT_7403: c93b4e6ff2f3cd1a41667e63c7414cc239d88240 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9459/index.html

Reviewed-by on v1 1/2
#6 lore raw
In reply to Rodrigo Vivi
Quoted 10 lines · Rodrigo Vivi

drm-xe-next commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC")

Also this is the header generated with:
make -j21 headers_install INSTALL_HDR_PATH=.
,as it should,
what explains some other unrelated changes that are appearing in the diff below.

Does IGT build here? The second patch is still depending on XE_QUERY_CONFIG_FLAGS_USE_GUC? Should the order be switched around or maybe everything squashed into a single patch?

Otherwise for the series,

Quoted 60 lines
---
 include/drm-uapi/xe_drm.h | 9 ++++-----
 tests/xe/xe_query.c       | 3 ---
 2 files changed, 4 insertions(+), 8 deletions(-)
include/drm-uapi/xe_drm.h +4 -5
index 02419c1d5..1ea453737 100644
@@ -3,8 +3,8 @@
  * Copyright © 2023 Intel Corporation
  */
 
-#ifndef _UAPI_XE_DRM_H_
-#define _UAPI_XE_DRM_H_
+#ifndef _XE_DRM_H_
+#define _XE_DRM_H_
 
 #include "drm.h"
 
@@ -180,7 +180,7 @@ struct drm_xe_query_mem_region {
         * zero.
         */
        __u64 used;
-       /*
+       /**
         * @cpu_visible_size: How much of this region can be CPU
         * accessed, in bytes.
         *
@@ -246,7 +246,6 @@ struct drm_xe_query_config {
 #define XE_QUERY_CONFIG_REV_AND_DEVICE_ID      0
 #define XE_QUERY_CONFIG_FLAGS                  1
        #define XE_QUERY_CONFIG_FLAGS_HAS_VRAM          (0x1 << 0)
-       #define XE_QUERY_CONFIG_FLAGS_USE_GUC           (0x1 << 1)
 #define XE_QUERY_CONFIG_MIN_ALIGNEMENT         2
 #define XE_QUERY_CONFIG_VA_BITS                        3
 #define XE_QUERY_CONFIG_GT_COUNT               4
@@ -1051,4 +1050,4 @@ struct drm_xe_vm_madvise {
 }
 #endif
 
-#endif /* _UAPI_XE_DRM_H_ */
+#endif /* _XE_DRM_H_ */
tests/xe/xe_query.c +0 -4
index 47aa98a8f..a4e40afdd 100644
@@ -371,9 +371,6 @@ test_query_config(int fd)
        igt_info("  XE_QUERY_CONFIG_FLAGS_HAS_VRAM\t%s\n",
                config->info[XE_QUERY_CONFIG_FLAGS] &
                XE_QUERY_CONFIG_FLAGS_HAS_VRAM ? "ON":"OFF");
-       igt_info("  XE_QUERY_CONFIG_FLAGS_USE_GUC\t\t%s\n",
-               config->info[XE_QUERY_CONFIG_FLAGS] &
-               XE_QUERY_CONFIG_FLAGS_USE_GUC ? "ON":"OFF");
        igt_info("XE_QUERY_CONFIG_MIN_ALIGNEMENT\t\t%#llx\n",
                config->info[XE_QUERY_CONFIG_MIN_ALIGNEMENT]);
        igt_info("XE_QUERY_CONFIG_VA_BITS\t\t\t%llu\n",
--

2.41.0

#7 lore raw
In reply to Rodrigo Vivi

Hi Rodrigo,

Quoted 8 lines · Rodrigo Vivi

drm-xe-next commit ("drm/xe/uapi: Remove XE_QUERY_CONFIG_FLAGS_USE_GUC")

Also this is the header generated with:
make -j21 headers_install INSTALL_HDR_PATH=.
,as it should,
what explains some other unrelated changes that are appearing in the diff below.

Quoted 4 lines
---
 include/drm-uapi/xe_drm.h | 9 ++++-----
 tests/xe/xe_query.c       | 3 ---

-- ^^^^^^^^^^^^^^^^^^^
May you move this into second patch?

With that you can add my acked-by,

Regards,
Kamil

Quoted 57 lines
 2 files changed, 4 insertions(+), 8 deletions(-)
include/drm-uapi/xe_drm.h +4 -5
index 02419c1d5..1ea453737 100644
@@ -3,8 +3,8 @@
  * Copyright © 2023 Intel Corporation
  */
 
-#ifndef _UAPI_XE_DRM_H_
-#define _UAPI_XE_DRM_H_
+#ifndef _XE_DRM_H_
+#define _XE_DRM_H_
 
 #include "drm.h"
 
@@ -180,7 +180,7 @@ struct drm_xe_query_mem_region {
 	 * zero.
 	 */
 	__u64 used;
-	/*
+	/**
 	 * @cpu_visible_size: How much of this region can be CPU
 	 * accessed, in bytes.
 	 *
@@ -246,7 +246,6 @@ struct drm_xe_query_config {
 #define XE_QUERY_CONFIG_REV_AND_DEVICE_ID	0
 #define XE_QUERY_CONFIG_FLAGS			1
 	#define XE_QUERY_CONFIG_FLAGS_HAS_VRAM		(0x1 << 0)
-	#define XE_QUERY_CONFIG_FLAGS_USE_GUC		(0x1 << 1)
 #define XE_QUERY_CONFIG_MIN_ALIGNEMENT		2
 #define XE_QUERY_CONFIG_VA_BITS			3
 #define XE_QUERY_CONFIG_GT_COUNT		4
@@ -1051,4 +1050,4 @@ struct drm_xe_vm_madvise {
 }
 #endif
 
-#endif /* _UAPI_XE_DRM_H_ */
+#endif /* _XE_DRM_H_ */
tests/xe/xe_query.c +0 -3
index 47aa98a8f..a4e40afdd 100644
@@ -371,9 +371,6 @@ test_query_config(int fd)
 	igt_info("  XE_QUERY_CONFIG_FLAGS_HAS_VRAM\t%s\n",
 		config->info[XE_QUERY_CONFIG_FLAGS] &
 		XE_QUERY_CONFIG_FLAGS_HAS_VRAM ? "ON":"OFF");
-	igt_info("  XE_QUERY_CONFIG_FLAGS_USE_GUC\t\t%s\n",
-		config->info[XE_QUERY_CONFIG_FLAGS] &
-		XE_QUERY_CONFIG_FLAGS_USE_GUC ? "ON":"OFF");
 	igt_info("XE_QUERY_CONFIG_MIN_ALIGNEMENT\t\t%#llx\n",
 		config->info[XE_QUERY_CONFIG_MIN_ALIGNEMENT]);
 	igt_info("XE_QUERY_CONFIG_VA_BITS\t\t\t%llu\n",
Signature · 1 line
2.41.0