drm/i915: Fix header test and log spam on !x86
Subsystems (3)
cover drm/i915: Fix header test and log spam on !x86
Some minor fixes and changes to help porting i915 to arm64, or even anything !x86.
Lucas De Marchi (3):
drm: Stop spamming log with drm_cache message drm/i915: Do not spam log with missiing arch support drm/i915: Fix header test for !CONFIG_X86
drivers/gpu/drm/drm_cache.c | 3 --- drivers/gpu/drm/i915/i915_mm.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/3 drm: Stop spamming log with drm_cache message
Only x86 and in some cases PPC have support added in drm_cache.c for the clflush class of functions. However warning once is sufficient to taint the log instead of spamming it with "Architecture has no drm_cache.c support" every few millisecond.
--- drivers/gpu/drm/drm_cache.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/drm_cache.c +0 -3
@@ -112,7 +112,6 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages) kunmap_atomic(page_virtual); }#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );#endif }
@@ -143,7 +142,6 @@ drm_clflush_sg(struct sg_table *st)if (wbinvd_on_all_cpus ())pr_err ("Timed out waiting for cache flush\n" );#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );#endif }
@@ -177,7 +175,6 @@ drm_clflush_virt_range(void *addr, unsigned long length)if (wbinvd_on_all_cpus ())pr_err ("Timed out waiting for cache flush\n" );#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );#endif }
Signature · 1 line
2.34.1
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 1/3] drm: Stop spamming log with drm_cache message
Quoted 20 lines · Lucas De Marchi
Only x86 and in some cases PPC have support added in
drm_cache.cfor the clflush class of functions. However warning once is sufficient to taint the log instead of spamming it with "Architecture has nodrm_cache.csupport" every few millisecond.Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/drm_cache.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/drm_cache.c +0
-0
drivers/gpu/drm/drm_cache.c drm_clflush_pages(struct page *pages[], unsigned long num_pages) · line 115
Quoted 5 lines
drivers/gpu/drm/drm_cache.c +0
-1@@ -112,7 +112,6 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages) kunmap_atomic(page_virtual); }#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );
An alternative would be to replace the two lines with:
WARN_ONCE(1, "Architecture has no drm_cache.c support\n");
But I'm not insisting.
BR,
Jani.
Quoted 18 lines
drivers/gpu/drm/drm_cache.c +0
-2#endif }@@ -143,7 +142,6 @@ drm_clflush_sg(struct sg_table *st)if (wbinvd_on_all_cpus ())pr_err ("Timed out waiting for cache flush\n" );#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );#endif }@@ -177,7 +175,6 @@ drm_clflush_virt_range(void *addr, unsigned long length)if (wbinvd_on_all_cpus ())pr_err ("Timed out waiting for cache flush\n" );#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );#endif }
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH 1/3] drm: Stop spamming log with drm_cache message
Quoted 29 lines · Jani Nikula
Quoted 20 lines · Lucas De Marchi
Only x86 and in some cases PPC have support added in
drm_cache.cfor the clflush class of functions. However warning once is sufficient to taint the log instead of spamming it with "Architecture has nodrm_cache.csupport" every few millisecond.Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/drm_cache.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/drm_cache.c +0
-0drivers/gpu/drm/drm_cache.c drm_clflush_pages(struct page *pages[], unsigned long num_pages) · line 115
Quoted 5 lines
drivers/gpu/drm/drm_cache.c +0
-1@@ -112,7 +112,6 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages) kunmap_atomic(page_virtual); }#else -pr_err ("Architecture has no drm_cache.c support\n" );WARN_ON_ONCE (1 );An alternative would be to replace the two lines with:
Quoted 3 lines
WARN_ONCE(1, "Architecture has no drm_cache.c support\n");But I'm not insisting.
I actually like that suggestion. I will change that in the next version.
Thanks
Lucas De Marchi
PATCH 2/3 drm/i915: Do not spam log with missiing arch support
In reply to Lucas De MarchiFollowing what was done in drm_cache.c, when the stub for remap_io_mapping() was added in commit 67c430bbaae1 ("drm/i915: Skip remap_io_mapping() for non-x86 platforms"), it was added a log message. However the WARN_ON_ONCE() should already be enough - we don't want to spam the log with those messages.
--- drivers/gpu/drm/i915/i915_mm.h | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/i915_mm.h +0 -1
@@ -22,7 +22,6 @@ int remap_io_mapping(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, struct io_mapping *iomap) { - pr_err("Architecture has no %s() and shouldn't be calling this function\n", __func__); WARN_ON_ONCE(1);return 0 ; }
Signature · 1 line
2.34.1
PATCH 3/3 drm/i915: Fix header test for !CONFIG_X86
In reply to Lucas De MarchiArchitectures others than x86 have a stub implementation calling WARN_ON_ONCE(). The appropriate headers need to be included, otherwise the header-test target will fail with:
HDRTEST drivers/gpu/drm/i915/i915_mm.h
In file included from <command-line>:./drivers/gpu/drm/i915/i915_mm.h: In function ‘remap_io_mapping’:./drivers/gpu/drm/i915/i915_mm.h:26:2: error: implicit declaration of function ‘WARN_ON_ONCE’ [-Werror=implicit-function-declaration]
26 | WARN_ON_ONCE(1);
| ^~~~~~~~~~~~v2: Do not include <linux/printk.h> since call to pr_err() has been removed
--- drivers/gpu/drm/i915/i915_mm.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_mm.h +1 -0
@@ -6,6 +6,7 @@#ifndef __I915_MM_H__#define __I915_MM_H__ +#include <linux/bug.h> #include <linux/types.h> struct vm_area_struct ;
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix header test and log spam on !x86
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Fix header test and log spam on !x86
URL : https://patchwork.freedesktop.org/series/99344/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11136 -> Patchwork_22106
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_22106 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_22106, 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/Patchwork_22106/index.html
Participating hosts (45 -> 44)
------------------------------
Additional (2): fi-icl-u2 fi-pnv-d510
Missing (3): fi-ctg-p8600 fi-bdw-samus fi-hsw-4200u
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22106:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s0@smem:
- fi-kbl-soraka: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11136/fi-kbl-soraka/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-kbl-soraka/igt@gem_exec_suspend@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22106 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@amdgpu/[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-icl-u2: NOTRUN -> [SKIP][4] ([i915#2190])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][5] ([i915#4613]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@i915_selftest@live@requests:
- fi-pnv-d510: NOTRUN -> [DMESG-FAIL][6] ([i915#2927] / [i915#4528])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-pnv-d510/igt@i915_selftest@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][7] ([fdo#111827]) +8 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-icl-u2: NOTRUN -> [SKIP][8] ([fdo#109278]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u2: NOTRUN -> [SKIP][9] ([fdo#109285])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-pnv-d510: NOTRUN -> [SKIP][10] ([fdo#109271]) +39 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-pnv-d510/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][11] ([i915#3301])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-icl-u2/igt@[email protected]
* igt@runner@aborted:
- fi-pnv-d510: NOTRUN -> [FAIL][12] ([fdo#109271] / [i915#2403] / [i915#4312])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-pnv-d510/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [FAIL][13] ([i915#2426] / [i915#4312])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-bdw-5557u/igt@[email protected]
#### Warnings ####
* igt@i915_selftest@live:
- fi-skl-6600u: [INCOMPLETE][14] ([i915#4794]) -> [FAIL][15] ([i915#4547])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11136/fi-skl-6600u/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-skl-6600u/igt@[email protected]
* igt@runner@aborted:
- fi-skl-6600u: [FAIL][16] ([i915#1436] / [i915#2722] / [i915#4312]) -> [FAIL][17] ([i915#1436] / [i915#4312])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11136/fi-skl-6600u/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/fi-skl-6600u/igt@[email protected]
{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
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4794]: https://gitlab.freedesktop.org/drm/intel/issues/4794
[i915#4898]: https://gitlab.freedesktop.org/drm/intel/issues/4898
Build changes
-------------
* Linux: CI_DRM_11136 -> Patchwork_22106
CI-20190529: 20190529
CI_DRM_11136: 06ca272153ea97bf87eb490ecd540dd8527d5497 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6332: 27c9c3f5181a840c777399be7681d2cadd7940cd @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22106: 08c832c7702cd00aef2adcfd2aa612fa412671f5 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
08c832c7702c drm/i915: Fix header test for !CONFIG_X86 92a5026ff92b drm/i915: Do not spam log with missiing arch support b1a7549c96e5 drm: Stop spamming log with drm_cache message
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22106/index.html