* [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message
@ 2023-09-29 11:09 Tvrtko Ursulin
2023-09-29 12:49 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tvrtko Ursulin @ 2023-09-29 11:09 UTC (permalink / raw)
To: igt-dev, Intel-gfx; +Cc: Tvrtko Ursulin
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
We have a nice error message displayed when an user with insufficient
permissions tries to run the tool, but that got lost while Meteorlake
support was added. Bring it back in.
v2:
* Propagate unexpected errno on multi-tile systems too. (Umesh)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
tools/intel_gpu_top.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 87e9681e53b4..10601e66b18e 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -554,9 +554,9 @@ static int get_num_gts(uint64_t type)
close(fd);
}
- assert(!errno || errno == ENOENT);
- assert(cnt > 0);
- errno = 0;
+
+ if (!cnt || (errno && errno != ENOENT))
+ cnt = -errno;
return cnt;
}
@@ -590,6 +590,8 @@ static int pmu_init(struct engines *engines)
engines->fd = -1;
engines->num_counters = 0;
engines->num_gts = get_num_gts(type);
+ if (engines->num_gts <= 0)
+ return -1;
engines->irq.config = I915_PMU_INTERRUPTS;
fd = _open_pmu(type, engines->num_counters, &engines->irq, engines->fd);
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✓ CI.xeBAT: success for tools/intel_gpu_top: Restore user friendly error message
2023-09-29 11:09 [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message Tvrtko Ursulin
@ 2023-09-29 12:49 ` Patchwork
2023-09-29 12:54 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-09-29 15:40 ` [igt-dev] [PATCH i-g-t] " Umesh Nerlige Ramappa
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-09-29 12:49 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 6537 bytes --]
== Series Details ==
Series: tools/intel_gpu_top: Restore user friendly error message
URL : https://patchwork.freedesktop.org/series/124448/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_7506_BAT -> XEIGTPW_9895_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (3 -> 4)
------------------------------
Additional (1): bat-pvc-2
Known issues
------------
Here are the changes found in XEIGTPW_9895_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_addfb_basic@addfb25-x-tiled-legacy:
- bat-pvc-2: NOTRUN -> [SKIP][1] ([Intel XE#538]) +33 other tests skip
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_addfb_basic@addfb25-x-tiled-legacy.html
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- bat-pvc-2: NOTRUN -> [SKIP][2] ([Intel XE#539]) +7 other tests skip
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_cursor_legacy@basic-flip-after-cursor-atomic.html
* igt@kms_flip@basic-flip-vs-wf_vblank:
- bat-pvc-2: NOTRUN -> [SKIP][3] ([Intel XE#275] / [Intel XE#541]) +3 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_flip@basic-flip-vs-wf_vblank.html
* igt@kms_force_connector_basic@force-connector-state:
- bat-pvc-2: NOTRUN -> [SKIP][4] ([Intel XE#540]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_force_connector_basic@force-connector-state.html
* igt@kms_pipe_crc_basic@nonblocking-crc:
- bat-pvc-2: NOTRUN -> [SKIP][5] ([Intel XE#537]) +6 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_pipe_crc_basic@nonblocking-crc.html
* igt@kms_prop_blob@basic:
- bat-pvc-2: NOTRUN -> [SKIP][6] ([Intel XE#536])
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_prop_blob@basic.html
* igt@kms_psr@primary_page_flip:
- bat-pvc-2: NOTRUN -> [SKIP][7] ([Intel XE#535]) +2 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@kms_psr@primary_page_flip.html
* igt@xe_evict@evict-beng-small-external:
- bat-pvc-2: NOTRUN -> [FAIL][8] ([Intel XE#389]) +3 other tests fail
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_evict@evict-beng-small-external.html
* igt@xe_evict@evict-small-external-cm:
- bat-pvc-2: NOTRUN -> [DMESG-FAIL][9] ([Intel XE#482]) +3 other tests dmesg-fail
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_evict@evict-small-external-cm.html
* igt@xe_exec_reset@virtual-close-fd-no-exec:
- bat-pvc-2: NOTRUN -> [DMESG-WARN][10] ([Intel XE#696])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_exec_reset@virtual-close-fd-no-exec.html
* igt@xe_guc_pc@freq_fixed_idle:
- bat-pvc-2: NOTRUN -> [SKIP][11] ([Intel XE#533]) +1 other test skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_guc_pc@freq_fixed_idle.html
* igt@xe_huc_copy@huc_copy:
- bat-pvc-2: NOTRUN -> [SKIP][12] ([Intel XE#255])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_huc_copy@huc_copy.html
* igt@xe_intel_bb@render:
- bat-pvc-2: NOTRUN -> [SKIP][13] ([Intel XE#532])
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_intel_bb@render.html
* igt@xe_module_load@load:
- bat-pvc-2: NOTRUN -> [SKIP][14] ([Intel XE#378])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_module_load@load.html
* igt@xe_pm_residency@gt-c6-on-idle:
- bat-pvc-2: NOTRUN -> [SKIP][15] ([Intel XE#531])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-pvc-2/igt@xe_pm_residency@gt-c6-on-idle.html
#### Possible fixes ####
* igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1:
- bat-adlp-7: [FAIL][16] ([Intel XE#480]) -> [PASS][17] +1 other test pass
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7506/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1.html
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#255]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/255
[Intel XE#275]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/275
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
[Intel XE#389]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/389
[Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480
[Intel XE#482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/482
[Intel XE#524]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/524
[Intel XE#531]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/531
[Intel XE#532]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/532
[Intel XE#533]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/533
[Intel XE#535]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/535
[Intel XE#536]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/536
[Intel XE#537]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/537
[Intel XE#538]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/538
[Intel XE#539]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/539
[Intel XE#540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/540
[Intel XE#541]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/541
[Intel XE#696]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/696
Build changes
-------------
* IGT: IGT_7506 -> IGTPW_9895
* Linux: xe-397-bce60b0ff2937cb2ea51841a479bc1a2da65052b -> xe-402-9a795b4f0ebe6bf70b1c873e323c3e0e7e113c64
IGTPW_9895: 9895
IGT_7506: 4fdf544bd0a38c5a100ef43c30171827e1c8c442 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-397-bce60b0ff2937cb2ea51841a479bc1a2da65052b: bce60b0ff2937cb2ea51841a479bc1a2da65052b
xe-402-9a795b4f0ebe6bf70b1c873e323c3e0e7e113c64: 9a795b4f0ebe6bf70b1c873e323c3e0e7e113c64
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9895/index.html
[-- Attachment #2: Type: text/html, Size: 7408 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for tools/intel_gpu_top: Restore user friendly error message
2023-09-29 11:09 [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message Tvrtko Ursulin
2023-09-29 12:49 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
@ 2023-09-29 12:54 ` Patchwork
2023-09-29 15:40 ` [igt-dev] [PATCH i-g-t] " Umesh Nerlige Ramappa
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-09-29 12:54 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 6559 bytes --]
== Series Details ==
Series: tools/intel_gpu_top: Restore user friendly error message
URL : https://patchwork.freedesktop.org/series/124448/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13693 -> IGTPW_9895
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_9895 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_9895, please notify your bug team (lgci.bug.filing@intel.com) 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_9895/index.html
Participating hosts (38 -> 37)
------------------------------
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_9895:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@workarounds:
- bat-rpls-1: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-rpls-1/igt@i915_selftest@live@workarounds.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-rpls-1/igt@i915_selftest@live@workarounds.html
Known issues
------------
Here are the changes found in IGTPW_9895 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][3] ([fdo#109271]) +13 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/fi-hsw-4770/igt@kms_addfb_basic@addfb25-y-tiled-small-legacy.html
* igt@kms_flip@basic-plain-flip@a-dp5:
- bat-adlp-11: [PASS][4] -> [DMESG-WARN][5] ([i915#6868])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_flip@basic-plain-flip@a-dp5.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_flip@basic-plain-flip@a-dp5.html
* igt@kms_flip@basic-plain-flip@b-dp6:
- bat-adlp-11: [PASS][6] -> [FAIL][7] ([i915#6121]) +6 other tests fail
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_flip@basic-plain-flip@b-dp6.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_flip@basic-plain-flip@b-dp6.html
* igt@kms_frontbuffer_tracking@basic:
- fi-bsw-nick: [PASS][8] -> [FAIL][9] ([i915#9276])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/fi-bsw-nick/igt@kms_frontbuffer_tracking@basic.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/fi-bsw-nick/igt@kms_frontbuffer_tracking@basic.html
* igt@kms_pipe_crc_basic@hang-read-crc@pipe-d-dp-5:
- bat-adlp-11: [PASS][10] -> [DMESG-FAIL][11] ([i915#6868])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-d-dp-5.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-d-dp-5.html
* igt@kms_pipe_crc_basic@read-crc@pipe-d-dp-5:
- bat-adlp-11: NOTRUN -> [ABORT][12] ([i915#8668])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc@pipe-d-dp-5.html
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-c-vga-1:
- fi-hsw-4770: NOTRUN -> [DMESG-WARN][13] ([i915#8841]) +6 other tests dmesg-warn
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/fi-hsw-4770/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-c-vga-1.html
* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#1072]) +3 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html
#### Possible fixes ####
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-a-dp-5:
- bat-adlp-11: [DMESG-FAIL][15] ([i915#6868]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-a-dp-5.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-a-dp-5.html
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-5:
- bat-adlp-11: [FAIL][17] ([i915#9047]) -> [PASS][18] +2 other tests pass
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-5.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-5.html
#### Warnings ####
* igt@kms_force_connector_basic@force-edid:
- bat-adlp-11: [SKIP][19] ([i915#4093]) -> [FAIL][20] ([i915#8803])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13693/bat-adlp-11/igt@kms_force_connector_basic@force-edid.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/bat-adlp-11/igt@kms_force_connector_basic@force-edid.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#4093]: https://gitlab.freedesktop.org/drm/intel/issues/4093
[i915#6121]: https://gitlab.freedesktop.org/drm/intel/issues/6121
[i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8803]: https://gitlab.freedesktop.org/drm/intel/issues/8803
[i915#8841]: https://gitlab.freedesktop.org/drm/intel/issues/8841
[i915#9047]: https://gitlab.freedesktop.org/drm/intel/issues/9047
[i915#9276]: https://gitlab.freedesktop.org/drm/intel/issues/9276
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7506 -> IGTPW_9895
CI-20190529: 20190529
CI_DRM_13693: bb46e837b7e59c22a567ae6913ff4d6bf0e9211a @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9895: 9895
IGT_7506: 4fdf544bd0a38c5a100ef43c30171827e1c8c442 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
-igt@xe_pm@d3-mmap-system
-igt@xe_pm@d3-mmap-vram
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9895/index.html
[-- Attachment #2: Type: text/html, Size: 7670 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message
2023-09-29 11:09 [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message Tvrtko Ursulin
2023-09-29 12:49 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
2023-09-29 12:54 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
@ 2023-09-29 15:40 ` Umesh Nerlige Ramappa
2023-10-02 8:31 ` Tvrtko Ursulin
2 siblings, 1 reply; 5+ messages in thread
From: Umesh Nerlige Ramappa @ 2023-09-29 15:40 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev, Intel-gfx, Tvrtko Ursulin
On Fri, Sep 29, 2023 at 12:09:49PM +0100, Tvrtko Ursulin wrote:
>From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
>We have a nice error message displayed when an user with insufficient
>permissions tries to run the tool, but that got lost while Meteorlake
>support was added. Bring it back in.
>
>v2:
> * Propagate unexpected errno on multi-tile systems too. (Umesh)
>
>Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>---
> tools/intel_gpu_top.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
>diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
>index 87e9681e53b4..10601e66b18e 100644
>--- a/tools/intel_gpu_top.c
>+++ b/tools/intel_gpu_top.c
>@@ -554,9 +554,9 @@ static int get_num_gts(uint64_t type)
>
> close(fd);
> }
>- assert(!errno || errno == ENOENT);
>- assert(cnt > 0);
>- errno = 0;
>+
>+ if (!cnt || (errno && errno != ENOENT))
>+ cnt = -errno;
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Thanks,
Umesh
>
> return cnt;
> }
>@@ -590,6 +590,8 @@ static int pmu_init(struct engines *engines)
> engines->fd = -1;
> engines->num_counters = 0;
> engines->num_gts = get_num_gts(type);
>+ if (engines->num_gts <= 0)
>+ return -1;
>
> engines->irq.config = I915_PMU_INTERRUPTS;
> fd = _open_pmu(type, engines->num_counters, &engines->irq, engines->fd);
>--
>2.39.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message
2023-09-29 15:40 ` [igt-dev] [PATCH i-g-t] " Umesh Nerlige Ramappa
@ 2023-10-02 8:31 ` Tvrtko Ursulin
0 siblings, 0 replies; 5+ messages in thread
From: Tvrtko Ursulin @ 2023-10-02 8:31 UTC (permalink / raw)
To: Umesh Nerlige Ramappa; +Cc: igt-dev, Intel-gfx, Tvrtko Ursulin
On 29/09/2023 16:40, Umesh Nerlige Ramappa wrote:
> On Fri, Sep 29, 2023 at 12:09:49PM +0100, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> We have a nice error message displayed when an user with insufficient
>> permissions tries to run the tool, but that got lost while Meteorlake
>> support was added. Bring it back in.
>>
>> v2:
>> * Propagate unexpected errno on multi-tile systems too. (Umesh)
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>> ---
>> tools/intel_gpu_top.c | 8 +++++---
>> 1 file changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
>> index 87e9681e53b4..10601e66b18e 100644
>> --- a/tools/intel_gpu_top.c
>> +++ b/tools/intel_gpu_top.c
>> @@ -554,9 +554,9 @@ static int get_num_gts(uint64_t type)
>>
>> close(fd);
>> }
>> - assert(!errno || errno == ENOENT);
>> - assert(cnt > 0);
>> - errno = 0;
>> +
>> + if (!cnt || (errno && errno != ENOENT))
>> + cnt = -errno;
>
> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Pushed, thanks!
Regards,
Tvrtko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-10-02 8:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 11:09 [igt-dev] [PATCH i-g-t] tools/intel_gpu_top: Restore user friendly error message Tvrtko Ursulin
2023-09-29 12:49 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
2023-09-29 12:54 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-09-29 15:40 ` [igt-dev] [PATCH i-g-t] " Umesh Nerlige Ramappa
2023-10-02 8:31 ` Tvrtko Ursulin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox