iosys-map: Add per-word read
PATCH 1/2 iosys-map: Add per-word read
Instead of always falling back to memcpy_fromio() for any size, prefer using read{b,w,l}(). When reading struct members it's common to read individual integer variables individually. Going through memcpy_fromio() for each of them poses a high penalty.
Employ a similar trick as __seqprop() by using _Generic() to generate only the specific call based on a type-compatible variable.
For a pariticular i915 workload producing GPU context switches, __get_engine_usage_record() is particularly hot since the engine usage is read from device local memory with dgfx, possibly multiple times since it's racy. Test execution time for this test shows a ~12.5% improvement with DG2:
Before:
nrepeats = 1000; min = 7.63243e+06; max = 1.01817e+07; median = 9.52548e+06; var = 526149; After: nrepeats = 1000; min = 7.03402e+06; max = 8.8832e+06; median = 8.33955e+06; var = 333113;
Other things attempted that didn't prove very useful:
1) Change the _Generic() on x86 to just dereference the memory address
2) Change __get_engine_usage_record() to do just 1 read per loop, comparing with the previous value read
3) Change __get_engine_usage_record() to access the fields directly as it was before the conversion to iosys-map
(3) did gave a small improvement (~3%), but doesn't seem to scale well to other similar cases in the driver.
Additional test by Chris Wilson using gem_create from igt with some changes to track object creation time. This happens to accidentally stress this code path:
Pre iosys_map conversion of engine busyness: lmem0: Creating 262144 4KiB objects took 59274.2ms Unpatched: lmem0: Creating 262144 4KiB objects took 108830.2ms With readl (this patch): lmem0: Creating 262144 4KiB objects took 61348.6ms s/readl/READ_ONCE/ lmem0: Creating 262144 4KiB objects took 61333.2ms
So we do take a little bit more time than before the conversion, but that is due to other factors: bringing the READ_ONCE back would be as good as just doing this conversion.
v2:
- Remove default from _Generic() - callers wanting to read more than u64 should use iosys_map_memcpy_from()
- Add READ_ONCE() cases dereferencing the pointer when using system memory
--- include/linux/iosys-map.h | 45 +++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-)
include/linux/iosys-map.h +36 -9
@@ -6,6 +6,7 @@#ifndef __IOSYS_MAP_H__#define __IOSYS_MAP_H__ +#include <linux/compiler_types.h> #include <linux/io.h> #include <linux/string.h>
@@ -333,6 +334,26 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,memset (dst->vaddr + offset, value, len); } +#ifdef CONFIG_64BIT +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: val_ = readq(vaddr_iomem_) +#else +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64)) +#endif + +#define __iosys_map_rd_io (val__, vaddr_iomem__, type__) _Generic(val__, \ + u8: val__ = readb(vaddr_iomem__), \ + u16: val__ = readw(vaddr_iomem__), \ + u32: val__ = readl(vaddr_iomem__), \ + __iosys_map_rd_io_u64_case(val__, vaddr_iomem__)) + +#define __iosys_map_rd_sys (val__, vaddr__, type__) ({ \ + compiletime_assert(sizeof(type__) <= sizeof(u64), \ + "Unsupported access size for __iosys_map_rd_sys()"); \ + val__ = READ_ONCE(*((type__ *)vaddr__)); \ +}) +/** * iosys_map_rd - Read a C-type value from the iosys_map *
@@ -340,16 +361,21 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* @offset__: The offset from which to read * @type__: Type of the value being read * -* Read a C type value from iosys_map, handling possible un-aligned accesses to -* the mapping. +* Read a C type value (u8, u16, u32 and u64) from iosys_map. For other types or +* if pointer may be unaligned (and problematic for the architecture supported), +* use iosys_map_memcpy_from(). * * Returns: * The value read from the mapping. */ -#define iosys_map_rd (map__, offset__, type__) ({ \ - type__ val; \ - iosys_map_memcpy_from(&val, map__, offset__, sizeof(val)); \ - val; \ +#define iosys_map_rd (map__, offset__, type__) ({ \ + type__ val; \ + if ((map__)->is_iomem) { \ + __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\ + } else { \ + __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \ + } \ + val; \ })/**
@@ -379,9 +405,10 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* * Read a value from iosys_map considering its layout is described by a C struct * starting at @struct_offset__. The field offset and size is calculated and its -* value read handling possible un-aligned memory accesses. For example: suppose -* there is a @struct foo defined as below and the value ``foo.field2.inner2`` -* needs to be read from the iosys_map: +* value read. If the field access would incur in un-aligned access, then either +* iosys_map_memcpy_from() needs to be used or the architecture must support it. +* For example: suppose there is a @struct foo defined as below and the value +* ``foo.field2.inner2`` needs to be read from the iosys_map: * * .. code-block:: c *
Signature · 1 line
2.36.1
PATCH 2/2 iosys-map: Add per-word write
Like was done for read, provide the equivalent for write. Even if current users are not in the hot path, this should future-proof it.
v2:
- Remove default from _Generic() - callers wanting to write more than u64 should use iosys_map_memcpy_to()
- Add WRITE_ONCE() cases dereferencing the pointer when using system memory
--- include/linux/iosys-map.h | 42 ++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-)
include/linux/iosys-map.h +33 -9
@@ -337,9 +337,13 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,#ifdef CONFIG_64BIT #define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ u64: val_ = readq(vaddr_iomem_) +#define __iosys_map_wr_io_u64_case (val_, vaddr_iomem_) \ + u64: writeq(val_, vaddr_iomem_)#else #define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64)) +#define __iosys_map_wr_io_u64_case (val_, vaddr_iomem_) \ + u64: memcpy_toio(vaddr_iomem_, &(val_), sizeof(u64))#endif #define __iosys_map_rd_io (val__, vaddr_iomem__, type__) _Generic(val__, \
@@ -354,6 +358,19 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset, val__ =READ_ONCE (*((type__ *)vaddr__)); \ }) +#define __iosys_map_wr_io (val__, vaddr_iomem__, type__) _Generic(val__, \ + u8: writeb(val__, vaddr_iomem__), \ + u16: writew(val__, vaddr_iomem__), \ + u32: writel(val__, vaddr_iomem__), \ + __iosys_map_wr_io_u64_case(val__, vaddr_iomem__)) + +#define __iosys_map_wr_sys (val__, vaddr__, type__) ({ \ + compiletime_assert(sizeof(type__) <= sizeof(u64), \ + "Unsupported access size for __iosys_map_wr_sys()"); \ + WRITE_ONCE(*((type__ *)vaddr__), val__); \ +}) + +/** * iosys_map_rd - Read a C-type value from the iosys_map *
@@ -386,12 +403,17 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* @type__: Type of the value being written * @val__: Value to write * -* Write a C-type value to the iosys_map, handling possible un-aligned accesses -* to the mapping. +* Write a C type value (u8, u16, u32 and u64) to the iosys_map. For other types +* or if pointer may be unaligned (and problematic for the architecture +* supported), use iosys_map_memcpy_to() */ -#define iosys_map_wr (map__, offset__, type__, val__) ({ \ - type__ val = (val__); \ - iosys_map_memcpy_to(map__, offset__, &val, sizeof(val)); \ +#define iosys_map_wr (map__, offset__, type__, val__) ({ \ + type__ val = (val__); \ + if ((map__)->is_iomem) { \ + __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\ + } else { \ + __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \ + } \ })/**
@@ -472,10 +494,12 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* @field__: Member of the struct to read * @val__: Value to write * -* Write a value to the iosys_map considering its layout is described by a C struct -* starting at @struct_offset__. The field offset and size is calculated and the -* @val__ is written handling possible un-aligned memory accesses. Refer to -* iosys_map_rd_field() for expected usage and memory layout. +* Write a value to the iosys_map considering its layout is described by a C +* struct starting at @struct_offset__. The field offset and size is calculated +* and the @val__ is written. If the field access would incur in un-aligned +* access, then either iosys_map_memcpy_to() needs to be used or the +* architecture must support it. Refer to iosys_map_rd_field() for expected +* usage and memory layout. */ #define iosys_map_wr_field (map__, struct_offset__, struct_type__, field__, val__) ({ \ struct_type__ *s; \
Signature · 1 line
2.36.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [CI,1/2] iosys-map: Add per-word read
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read
URL : https://patchwork.freedesktop.org/series/105692/
State : warning
== Summary ==
Error: dim checkpatch failede6ff19d2ffd3 iosys-map: Add per-word read
-:88: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #88: FILE: include/linux/iosys-map.h:339:
+ u64: val_ = readq(vaddr_iomem_)
^
-:88: WARNING:INDENTED_LABEL: labels should not be indented #88: FILE: include/linux/iosys-map.h:339:
+ u64: val_ = readq(vaddr_iomem_)
-:91: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #91: FILE: include/linux/iosys-map.h:342:
+ u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64))
^
-:91: WARNING:INDENTED_LABEL: labels should not be indented #91: FILE: include/linux/iosys-map.h:342:
+ u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64))
-:94: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
-:94: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val__' - possible side-effects? #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: val__ = readb(vaddr_iomem__), \
+ u16: val__ = readw(vaddr_iomem__), \
+ u32: val__ = readl(vaddr_iomem__), \
+ __iosys_map_rd_io_u64_case(val__, vaddr_iomem__))
-:94: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vaddr_iomem__' - possible side-effects? #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: val__ = readb(vaddr_iomem__), \
+ u16: val__ = readw(vaddr_iomem__), \
+ u32: val__ = readl(vaddr_iomem__), \
+ __iosys_map_rd_io_u64_case(val__, vaddr_iomem__))
-:95: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #95: FILE: include/linux/iosys-map.h:346:
+ u8: val__ = readb(vaddr_iomem__), \
^
-:95: WARNING:INDENTED_LABEL: labels should not be indented #95: FILE: include/linux/iosys-map.h:346:
+ u8: val__ = readb(vaddr_iomem__), \
-:96: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #96: FILE: include/linux/iosys-map.h:347:
+ u16: val__ = readw(vaddr_iomem__), \
^
-:96: WARNING:INDENTED_LABEL: labels should not be indented #96: FILE: include/linux/iosys-map.h:347:
+ u16: val__ = readw(vaddr_iomem__), \
-:97: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #97: FILE: include/linux/iosys-map.h:348:
+ u32: val__ = readl(vaddr_iomem__), \
^
-:97: WARNING:INDENTED_LABEL: labels should not be indented #97: FILE: include/linux/iosys-map.h:348:
+ u32: val__ = readl(vaddr_iomem__), \
-:100: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'type__' may be better as '(type__)' to avoid precedence issues #100: FILE: include/linux/iosys-map.h:351:
+#define __iosys_map_rd_sys(val__, vaddr__, type__) ({ \
+ compiletime_assert(sizeof(type__) <= sizeof(u64), \
+ "Unsupported access size for __iosys_map_rd_sys()"); \
+ val__ = READ_ONCE(*((type__ *)vaddr__)); \
+})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'map__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'offset__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'type__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
total: 5 errors, 5 warnings, 7 checks, 73 lines checked 444bfcd41d67 iosys-map: Add per-word write
-:31: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #31: FILE: include/linux/iosys-map.h:341:
+ u64: writeq(val_, vaddr_iomem_)
^
-:31: WARNING:INDENTED_LABEL: labels should not be indented #31: FILE: include/linux/iosys-map.h:341:
+ u64: writeq(val_, vaddr_iomem_)
-:36: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #36: FILE: include/linux/iosys-map.h:346:
+ u64: memcpy_toio(vaddr_iomem_, &(val_), sizeof(u64))
^
-:36: WARNING:INDENTED_LABEL: labels should not be indented #36: FILE: include/linux/iosys-map.h:346:
+ u64: memcpy_toio(vaddr_iomem_, &(val_), sizeof(u64))
-:44: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
-:44: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val__' - possible side-effects? #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: writeb(val__, vaddr_iomem__), \
+ u16: writew(val__, vaddr_iomem__), \
+ u32: writel(val__, vaddr_iomem__), \
+ __iosys_map_wr_io_u64_case(val__, vaddr_iomem__))
-:44: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vaddr_iomem__' - possible side-effects? #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: writeb(val__, vaddr_iomem__), \
+ u16: writew(val__, vaddr_iomem__), \
+ u32: writel(val__, vaddr_iomem__), \
+ __iosys_map_wr_io_u64_case(val__, vaddr_iomem__))
-:45: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #45: FILE: include/linux/iosys-map.h:362:
+ u8: writeb(val__, vaddr_iomem__), \
^
-:45: WARNING:INDENTED_LABEL: labels should not be indented #45: FILE: include/linux/iosys-map.h:362:
+ u8: writeb(val__, vaddr_iomem__), \
-:46: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #46: FILE: include/linux/iosys-map.h:363:
+ u16: writew(val__, vaddr_iomem__), \
^
-:46: WARNING:INDENTED_LABEL: labels should not be indented #46: FILE: include/linux/iosys-map.h:363:
+ u16: writew(val__, vaddr_iomem__), \
-:47: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #47: FILE: include/linux/iosys-map.h:364:
+ u32: writel(val__, vaddr_iomem__), \
^
-:47: WARNING:INDENTED_LABEL: labels should not be indented #47: FILE: include/linux/iosys-map.h:364:
+ u32: writel(val__, vaddr_iomem__), \
-:50: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'type__' may be better as '(type__)' to avoid precedence issues #50: FILE: include/linux/iosys-map.h:367:
+#define __iosys_map_wr_sys(val__, vaddr__, type__) ({ \
+ compiletime_assert(sizeof(type__) <= sizeof(u64), \
+ "Unsupported access size for __iosys_map_wr_sys()"); \
+ WRITE_ONCE(*((type__ *)vaddr__), val__); \
+})
-:56: CHECK:LINE_SPACING: Please don't use multiple blank lines #56: FILE: include/linux/iosys-map.h:373:
+
+
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'map__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'offset__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'type__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
total: 5 errors, 5 warnings, 8 checks, 70 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [CI,1/2] iosys-map: Add per-word read
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read
URL : https://patchwork.freedesktop.org/series/105692/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [CI,1/2] iosys-map: Add per-word read
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read
URL : https://patchwork.freedesktop.org/series/105692/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11816 -> Patchwork_105692v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_105692v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_105692v1, 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_105692v1/index.html
Participating hosts (40 -> 42)
------------------------------
Additional (4): fi-hsw-4770 fi-icl-u2 bat-adls-5 bat-dg2-9
Missing (2): fi-rkl-11600 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_105692v1:
### IGT changes ###
#### Possible regressions ####
* igt@core_hotunplug@unbind-rebind:
- bat-dg1-5: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg1-5/igt@[email protected]
- bat-dg1-6: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg1-6/igt@[email protected]
* igt@gem_exec_parallel@engines@fds:
- fi-bsw-kefka: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-bsw-kefka/igt@gem_exec_parallel@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-bsw-kefka/igt@gem_exec_parallel@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@core_hotunplug@unbind-rebind:
- {bat-dg2-9}: NOTRUN -> [INCOMPLETE][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg2-9/igt@[email protected]
- {bat-dg2-8}: [DMESG-WARN][8] ([i915#5763]) -> [INCOMPLETE][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg2-8/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg2-8/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_105692v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-icl-u2: NOTRUN -> [SKIP][10] ([i915#2190])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][11] ([i915#4613]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@i915_pm_backlight@basic-brightness:
- fi-hsw-4770: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#3012])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-hsw-4770/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][13] -> [INCOMPLETE][14] ([i915#3921])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-snb-2600/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- fi-icl-u2: NOTRUN -> [SKIP][15] ([i915#5903])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][16] ([fdo#109271]) +9 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-hsw-4770/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-hsw-4770: NOTRUN -> [SKIP][17] ([fdo#109271] / [fdo#111827]) +8 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-hsw-4770/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][18] ([fdo#111827]) +8 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-icl-u2: NOTRUN -> [SKIP][19] ([i915#4103])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- fi-tgl-u2: [PASS][20] -> [DMESG-WARN][21] ([i915#402]) +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-tgl-u2/igt@kms_flip@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-tgl-u2/igt@kms_flip@[email protected]
* igt@kms_force_connector_basic@force-connector-state:
- fi-icl-u2: NOTRUN -> [WARN][22] ([i915#6008])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u2: NOTRUN -> [SKIP][23] ([fdo#109285])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][24] ([fdo#109271] / [i915#1072]) +3 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-icl-u2: NOTRUN -> [SKIP][25] ([i915#3555])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-icl-u2: NOTRUN -> [SKIP][26] ([fdo#109295] / [i915#3301])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-icl-u2/igt@[email protected]
* igt@runner@aborted:
- bat-adlp-4: NOTRUN -> [FAIL][27] ([i915#4312])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-adlp-4/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [FAIL][28] ([i915#4312] / [i915#5257])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-kbl-guc/igt@[email protected]
- fi-rkl-guc: NOTRUN -> [FAIL][29] ([i915#4312])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-rkl-guc/igt@[email protected]
- fi-skl-guc: NOTRUN -> [FAIL][30] ([i915#4312] / [i915#5257])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-skl-guc/igt@[email protected]
- fi-bsw-kefka: NOTRUN -> [FAIL][31] ([i915#4312])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-bsw-kefka/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [FAIL][32] ([i915#4312])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-adl-ddr5/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gtt:
- fi-bdw-5557u: [DMESG-FAIL][33] ([i915#3674]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-bdw-5557u/igt@i915_selftest@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-bdw-5557u/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@runner@aborted:
- fi-apl-guc: [FAIL][35] ([i915#4312]) -> [FAIL][36] ([i915#4312] / [i915#5257])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-apl-guc/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/fi-apl-guc/igt@[email protected]
- bat-dg1-5: [FAIL][37] ([i915#4312] / [i915#5257]) -> [FAIL][38] ([i915#4312])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-5/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg1-5/igt@[email protected]
- bat-dg1-6: [FAIL][39] ([i915#4312] / [i915#5257]) -> [FAIL][40] ([i915#4312])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/bat-dg1-6/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#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3674]: https://gitlab.freedesktop.org/drm/intel/issues/3674
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#5903]: https://gitlab.freedesktop.org/drm/intel/issues/5903
[i915#6008]: https://gitlab.freedesktop.org/drm/intel/issues/6008
Build changes
-------------
* Linux: CI_DRM_11816 -> Patchwork_105692v1
CI-20190529: 20190529
CI_DRM_11816: df99947ea190ec0665196a80775e0007f497eb2e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6543: 0463b607ed58ceede542f9bad6a9dad8d77d6f9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_105692v1: df99947ea190ec0665196a80775e0007f497eb2e @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
cb058be19ce4 iosys-map: Add per-word writee6226538e8d9 iosys-map: Add per-word read
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v1/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
URL : https://patchwork.freedesktop.org/series/105692/
State : warning
== Summary ==
Error: dim checkpatch failed40dfd8d9e7ab iosys-map: Add per-word read
-:88: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #88: FILE: include/linux/iosys-map.h:339:
+ u64: val_ = readq(vaddr_iomem_)
^
-:88: WARNING:INDENTED_LABEL: labels should not be indented #88: FILE: include/linux/iosys-map.h:339:
+ u64: val_ = readq(vaddr_iomem_)
-:91: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #91: FILE: include/linux/iosys-map.h:342:
+ u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64))
^
-:91: WARNING:INDENTED_LABEL: labels should not be indented #91: FILE: include/linux/iosys-map.h:342:
+ u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64))
-:94: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
-:94: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val__' - possible side-effects? #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: val__ = readb(vaddr_iomem__), \
+ u16: val__ = readw(vaddr_iomem__), \
+ u32: val__ = readl(vaddr_iomem__), \
+ __iosys_map_rd_io_u64_case(val__, vaddr_iomem__))
-:94: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vaddr_iomem__' - possible side-effects? #94: FILE: include/linux/iosys-map.h:345:
+#define __iosys_map_rd_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: val__ = readb(vaddr_iomem__), \
+ u16: val__ = readw(vaddr_iomem__), \
+ u32: val__ = readl(vaddr_iomem__), \
+ __iosys_map_rd_io_u64_case(val__, vaddr_iomem__))
-:95: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #95: FILE: include/linux/iosys-map.h:346:
+ u8: val__ = readb(vaddr_iomem__), \
^
-:95: WARNING:INDENTED_LABEL: labels should not be indented #95: FILE: include/linux/iosys-map.h:346:
+ u8: val__ = readb(vaddr_iomem__), \
-:96: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #96: FILE: include/linux/iosys-map.h:347:
+ u16: val__ = readw(vaddr_iomem__), \
^
-:96: WARNING:INDENTED_LABEL: labels should not be indented #96: FILE: include/linux/iosys-map.h:347:
+ u16: val__ = readw(vaddr_iomem__), \
-:97: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #97: FILE: include/linux/iosys-map.h:348:
+ u32: val__ = readl(vaddr_iomem__), \
^
-:97: WARNING:INDENTED_LABEL: labels should not be indented #97: FILE: include/linux/iosys-map.h:348:
+ u32: val__ = readl(vaddr_iomem__), \
-:100: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'type__' may be better as '(type__)' to avoid precedence issues #100: FILE: include/linux/iosys-map.h:351:
+#define __iosys_map_rd_sys(val__, vaddr__, type__) ({ \
+ compiletime_assert(sizeof(type__) <= sizeof(u64), \
+ "Unsupported access size for __iosys_map_rd_sys()"); \
+ val__ = READ_ONCE(*((type__ *)vaddr__)); \
+})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'map__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'offset__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'type__' - possible side-effects? #126: FILE: include/linux/iosys-map.h:371:
+#define iosys_map_rd(map__, offset__, type__) ({ \
+ type__ val; \
+ if ((map__)->is_iomem) { \
+ __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
+ val; \
})
total: 5 errors, 5 warnings, 7 checks, 73 lines checked 41983976b78e iosys-map: Add per-word write
-:31: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #31: FILE: include/linux/iosys-map.h:341:
+ u64: writeq(val_, vaddr_iomem_)
^
-:31: WARNING:INDENTED_LABEL: labels should not be indented #31: FILE: include/linux/iosys-map.h:341:
+ u64: writeq(val_, vaddr_iomem_)
-:36: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #36: FILE: include/linux/iosys-map.h:346:
+ u64: memcpy_toio(vaddr_iomem_, &(val_), sizeof(u64))
^
-:36: WARNING:INDENTED_LABEL: labels should not be indented #36: FILE: include/linux/iosys-map.h:346:
+ u64: memcpy_toio(vaddr_iomem_, &(val_), sizeof(u64))
-:44: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
-:44: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val__' - possible side-effects? #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: writeb(val__, vaddr_iomem__), \
+ u16: writew(val__, vaddr_iomem__), \
+ u32: writel(val__, vaddr_iomem__), \
+ __iosys_map_wr_io_u64_case(val__, vaddr_iomem__))
-:44: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vaddr_iomem__' - possible side-effects? #44: FILE: include/linux/iosys-map.h:361:
+#define __iosys_map_wr_io(val__, vaddr_iomem__, type__) _Generic(val__, \
+ u8: writeb(val__, vaddr_iomem__), \
+ u16: writew(val__, vaddr_iomem__), \
+ u32: writel(val__, vaddr_iomem__), \
+ __iosys_map_wr_io_u64_case(val__, vaddr_iomem__))
-:45: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #45: FILE: include/linux/iosys-map.h:362:
+ u8: writeb(val__, vaddr_iomem__), \
^
-:45: WARNING:INDENTED_LABEL: labels should not be indented #45: FILE: include/linux/iosys-map.h:362:
+ u8: writeb(val__, vaddr_iomem__), \
-:46: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #46: FILE: include/linux/iosys-map.h:363:
+ u16: writew(val__, vaddr_iomem__), \
^
-:46: WARNING:INDENTED_LABEL: labels should not be indented #46: FILE: include/linux/iosys-map.h:363:
+ u16: writew(val__, vaddr_iomem__), \
-:47: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #47: FILE: include/linux/iosys-map.h:364:
+ u32: writel(val__, vaddr_iomem__), \
^
-:47: WARNING:INDENTED_LABEL: labels should not be indented #47: FILE: include/linux/iosys-map.h:364:
+ u32: writel(val__, vaddr_iomem__), \
-:50: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'type__' may be better as '(type__)' to avoid precedence issues #50: FILE: include/linux/iosys-map.h:367:
+#define __iosys_map_wr_sys(val__, vaddr__, type__) ({ \
+ compiletime_assert(sizeof(type__) <= sizeof(u64), \
+ "Unsupported access size for __iosys_map_wr_sys()"); \
+ WRITE_ONCE(*((type__ *)vaddr__), val__); \
+})
-:56: CHECK:LINE_SPACING: Please don't use multiple blank lines #56: FILE: include/linux/iosys-map.h:373:
+
+
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'map__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'offset__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
-:73: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'type__' - possible side-effects? #73: FILE: include/linux/iosys-map.h:410:
+#define iosys_map_wr(map__, offset__, type__, val__) ({ \
+ type__ val = (val__); \
+ if ((map__)->is_iomem) { \
+ __iosys_map_wr_io(val, (map__)->vaddr_iomem + (offset__), type__);\
+ } else { \
+ __iosys_map_wr_sys(val, (map__)->vaddr + (offset__), type__); \
+ } \
})
total: 5 errors, 5 warnings, 8 checks, 70 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
URL : https://patchwork.freedesktop.org/series/105692/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [CI,1/2] iosys-map: Add per-word read (rev2)
URL : https://patchwork.freedesktop.org/series/105692/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11816 -> Patchwork_105692v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_105692v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_105692v2, 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_105692v2/index.html
Participating hosts (40 -> 38)
------------------------------
Additional (3): fi-hsw-4770 bat-dg2-9 bat-adls-5
Missing (5): fi-rkl-11600 bat-dg1-5 bat-adlp-4 bat-adln-1 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_105692v2:
### IGT changes ###
#### Possible regressions ####
* igt@core_hotunplug@unbind-rebind:
- bat-dg1-6: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/bat-dg1-6/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@core_hotunplug@unbind-rebind:
- {bat-dg2-9}: NOTRUN -> [INCOMPLETE][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/bat-dg2-9/igt@[email protected]
- {bat-dg2-8}: [DMESG-WARN][4] ([i915#5763]) -> [INCOMPLETE][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg2-8/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/bat-dg2-8/igt@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- {fi-ehl-2}: [PASS][6] -> [INCOMPLETE][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-ehl-2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-ehl-2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_105692v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_backlight@basic-brightness:
- fi-hsw-4770: NOTRUN -> [SKIP][8] ([fdo#109271] / [i915#3012])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@[email protected]
* igt@i915_selftest@live@gem:
- fi-blb-e6850: NOTRUN -> [DMESG-FAIL][9] ([i915#4528])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-blb-e6850/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: NOTRUN -> [INCOMPLETE][10] ([i915#4785])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][11] ([fdo#109271]) +9 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-hsw-4770: NOTRUN -> [SKIP][12] ([fdo#109271] / [fdo#111827]) +7 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions:
- fi-bsw-kefka: [PASS][13] -> [FAIL][14] ([i915#6298])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- fi-tgl-u2: [PASS][15] -> [DMESG-WARN][16] ([i915#402])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-tgl-u2/igt@kms_flip@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-tgl-u2/igt@kms_flip@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][17] ([fdo#109271] / [i915#1072]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html
* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][18] ([fdo#109271] / [i915#4312] / [i915#5594] / [i915#6246])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-hsw-4770/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [FAIL][19] ([i915#4312] / [i915#5257])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-kbl-guc/igt@[email protected]
- fi-rkl-guc: NOTRUN -> [FAIL][20] ([i915#4312])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-rkl-guc/igt@[email protected]
- fi-skl-guc: NOTRUN -> [FAIL][21] ([i915#4312] / [i915#5257])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-skl-guc/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [FAIL][22] ([i915#4312])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-adl-ddr5/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gtt:
- fi-bdw-5557u: [DMESG-FAIL][23] ([i915#3674]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-bdw-5557u/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-bdw-5557u/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@requests:
- fi-blb-e6850: [DMESG-FAIL][25] ([i915#4528]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-blb-e6850/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-blb-e6850/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@runner@aborted:
- fi-apl-guc: [FAIL][27] ([i915#4312]) -> [FAIL][28] ([i915#4312] / [i915#5257])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/fi-apl-guc/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/fi-apl-guc/igt@[email protected]
- bat-dg1-6: [FAIL][29] ([i915#4312] / [i915#5257]) -> [FAIL][30] ([i915#4312])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11816/bat-dg1-6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/bat-dg1-6/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#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3674]: https://gitlab.freedesktop.org/drm/intel/issues/3674
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#6246]: https://gitlab.freedesktop.org/drm/intel/issues/6246
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
Build changes
-------------
* Linux: CI_DRM_11816 -> Patchwork_105692v2
CI-20190529: 20190529
CI_DRM_11816: df99947ea190ec0665196a80775e0007f497eb2e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6543: 0463b607ed58ceede542f9bad6a9dad8d77d6f9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_105692v2: df99947ea190ec0665196a80775e0007f497eb2e @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
a3b076cb2f99 iosys-map: Add per-word write92439e762f0b iosys-map: Add per-word read
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105692v2/index.html
Am 28.06.22 um 00:47 schrieb Lucas De Marchi:
Quoted 57 lines
Instead of always falling back to
memcpy_fromio()for any size, prefer using read{b,w,l}(). When reading struct members it's common to read individual integer variables individually. Going throughmemcpy_fromio()for each of them poses a high penalty.Employ a similar trick as
__seqprop()by using_Generic()to generate only the specific call based on a type-compatible variable.For a pariticular i915 workload producing GPU context switches,
__get_engine_usage_record()is particularly hot since the engine usage is read from device local memory with dgfx, possibly multiple times since it's racy. Test execution time for this test shows a ~12.5% improvement with DG2:Before:
nrepeats = 1000; min = 7.63243e+06; max = 1.01817e+07; median = 9.52548e+06; var = 526149; After: nrepeats = 1000; min = 7.03402e+06; max = 8.8832e+06; median = 8.33955e+06; var = 333113;Other things attempted that didn't prove very useful:
1) Change the_Generic()on x86 to just dereference the memory address
2) Change__get_engine_usage_record()to do just 1 read per loop, comparing with the previous value read
3) Change__get_engine_usage_record()to access the fields directly as it was before the conversion to iosys-map(3) did gave a small improvement (~3%), but doesn't seem to scale well to other similar cases in the driver.
Additional test by Chris Wilson using
gem_createfrom igt with some changes to track object creation time. This happens to accidentally stress this code path:Pre iosys_map conversion of engine busyness: lmem0: Creating 262144 4KiB objects took 59274.2ms Unpatched: lmem0: Creating 262144 4KiB objects took 108830.2ms With readl (this patch): lmem0: Creating 262144 4KiB objects took 61348.6ms s/readl/READ_ONCE/ lmem0: Creating 262144 4KiB objects took 61333.2msSo we do take a little bit more time than before the conversion, but that is due to other factors: bringing the
READ_ONCEback would be as good as just doing this conversion.v2:
- Remove default from_Generic()- callers wanting to read more than u64 should useiosys_map_memcpy_from()
- AddREAD_ONCE()cases dereferencing the pointer when using system memory
Quoted 3 lines
Signed-off-by Lucas De Marchi <[email protected]>Reviewed-by Christian König <[email protected]> # v1Reviewed-by Thomas Zimmermann <[email protected]>
Feel free to update my rb to v2 as well.
Apart from that do you have commit rights to drm-misc-next? If not should we push this?
Thanks,
Christian.
Quoted 85 lines
--- include/linux/iosys-map.h | 45 +++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-)include/linux/iosys-map.h +36
-9@@ -6,6 +6,7 @@#ifndef __IOSYS_MAP_H__#define __IOSYS_MAP_H__ +#include <linux/compiler_types.h> #include <linux/io.h> #include <linux/string.h> @@ -333,6 +334,26 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,memset (dst->vaddr + offset, value, len); } +#ifdef CONFIG_64BIT +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: val_ = readq(vaddr_iomem_) +#else +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64)) +#endif + +#define __iosys_map_rd_io (val__, vaddr_iomem__, type__) _Generic(val__, \ + u8: val__ = readb(vaddr_iomem__), \ + u16: val__ = readw(vaddr_iomem__), \ + u32: val__ = readl(vaddr_iomem__), \ + __iosys_map_rd_io_u64_case(val__, vaddr_iomem__)) + +#define __iosys_map_rd_sys (val__, vaddr__, type__) ({ \ + compiletime_assert(sizeof(type__) <= sizeof(u64), \ + "Unsupported access size for __iosys_map_rd_sys()"); \ + val__ = READ_ONCE(*((type__ *)vaddr__)); \ +}) +/** * iosys_map_rd - Read a C-type value from the iosys_map * @@ -340,16 +361,21 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* @offset__: The offset from which to read * @type__: Type of the value being read * -* Read a C type value from iosys_map, handling possible un-aligned accesses to -* the mapping. +* Read a C type value (u8, u16, u32 and u64) from iosys_map. For other types or +* if pointer may be unaligned (and problematic for the architecture supported), +* use iosys_map_memcpy_from(). * * Returns: * The value read from the mapping. */ -#define iosys_map_rd (map__, offset__, type__) ({ \ - type__ val; \ - iosys_map_memcpy_from(&val, map__, offset__, sizeof(val)); \ - val; \ +#define iosys_map_rd (map__, offset__, type__) ({ \ + type__ val; \ + if ((map__)->is_iomem) { \ + __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\ + } else { \ + __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \ + } \ + val; \ })/** @@ -379,9 +405,10 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* * Read a value from iosys_map considering its layout is described by a C struct * starting at @struct_offset__. The field offset and size is calculated and its -* value read handling possible un-aligned memory accesses. For example: suppose -* there is a @struct foo defined as below and the value ``foo.field2.inner2`` -* needs to be read from the iosys_map: +* value read. If the field access would incur in un-aligned access, then either +* iosys_map_memcpy_from() needs to be used or the architecture must support it. +* For example: suppose there is a @struct foo defined as below and the value +* ``foo.field2.inner2`` needs to be read from the iosys_map: * * .. code-block:: c *
Quoted 58 lines · Christian König
Am 28.06.22 um 00:47 schrieb Lucas De Marchi:
Quoted 57 lines
Instead of always falling back to
memcpy_fromio()for any size, prefer using read{b,w,l}(). When reading struct members it's common to read individual integer variables individually. Going throughmemcpy_fromio()for each of them poses a high penalty.Employ a similar trick as
__seqprop()by using_Generic()to generate only the specific call based on a type-compatible variable.For a pariticular i915 workload producing GPU context switches,
__get_engine_usage_record()is particularly hot since the engine usage is read from device local memory with dgfx, possibly multiple times since it's racy. Test execution time for this test shows a ~12.5% improvement with DG2:Before:
nrepeats = 1000; min = 7.63243e+06; max = 1.01817e+07; median = 9.52548e+06; var = 526149; After: nrepeats = 1000; min = 7.03402e+06; max = 8.8832e+06; median = 8.33955e+06; var = 333113;Other things attempted that didn't prove very useful:
1) Change the_Generic()on x86 to just dereference the memory address
2) Change__get_engine_usage_record()to do just 1 read per loop, comparing with the previous value read
3) Change__get_engine_usage_record()to access the fields directly as it was before the conversion to iosys-map(3) did gave a small improvement (~3%), but doesn't seem to scale well to other similar cases in the driver.
Additional test by Chris Wilson using
gem_createfrom igt with some changes to track object creation time. This happens to accidentally stress this code path:Pre iosys_map conversion of engine busyness: lmem0: Creating 262144 4KiB objects took 59274.2ms Unpatched: lmem0: Creating 262144 4KiB objects took 108830.2ms With readl (this patch): lmem0: Creating 262144 4KiB objects took 61348.6ms s/readl/READ_ONCE/ lmem0: Creating 262144 4KiB objects took 61333.2msSo we do take a little bit more time than before the conversion, but that is due to other factors: bringing the
READ_ONCEback would be as good as just doing this conversion.v2:
- Remove default from_Generic()- callers wanting to read more than u64 should useiosys_map_memcpy_from()
- AddREAD_ONCE()cases dereferencing the pointer when using system memory
Quoted 7 lines
Quoted 3 lines
Signed-off-by Lucas De Marchi <[email protected]>Reviewed-by Christian König <[email protected]> # v1Reviewed-by Thomas Zimmermann <[email protected]>Feel free to update my rb to v2 as well.
Apart from that do you have commit rights to drm-misc-next? If not should we push this?
I do have commit rights. I pushed this last week to drm-misc-next.
6fb5ee7cec06 ("iosys-map: Add per-word write")5f278dbd540b ("iosys-map: Add per-word read")
thanks
Lucas De Marchi
Quoted 86 lines
Thanks,
Christian.Quoted 81 lines
--- include/linux/iosys-map.h | 45 +++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-)include/linux/iosys-map.h +36
-9@@ -6,6 +6,7 @@#ifndef __IOSYS_MAP_H__#define __IOSYS_MAP_H__ +#include <linux/compiler_types.h> #include <linux/io.h> #include <linux/string.h> @@ -333,6 +334,26 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,memset (dst->vaddr + offset, value, len); } +#ifdef CONFIG_64BIT +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: val_ = readq(vaddr_iomem_) +#else +#define __iosys_map_rd_io_u64_case (val_, vaddr_iomem_) \ + u64: memcpy_fromio(&(val_), vaddr_iomem_, sizeof(u64)) +#endif + +#define __iosys_map_rd_io (val__, vaddr_iomem__, type__) _Generic(val__, \ + u8: val__ = readb(vaddr_iomem__), \ + u16: val__ = readw(vaddr_iomem__), \ + u32: val__ = readl(vaddr_iomem__), \ + __iosys_map_rd_io_u64_case(val__, vaddr_iomem__)) + +#define __iosys_map_rd_sys (val__, vaddr__, type__) ({ \ + compiletime_assert(sizeof(type__) <= sizeof(u64), \ + "Unsupported access size for __iosys_map_rd_sys()"); \ + val__ = READ_ONCE(*((type__ *)vaddr__)); \ +}) +/** * iosys_map_rd - Read a C-type value from the iosys_map * @@ -340,16 +361,21 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* @offset__: The offset from which to read * @type__: Type of the value being read * -* Read a C type value from iosys_map, handling possible un-aligned accesses to -* the mapping. +* Read a C type value (u8, u16, u32 and u64) from iosys_map. For other types or +* if pointer may be unaligned (and problematic for the architecture supported), +* use iosys_map_memcpy_from(). * * Returns: * The value read from the mapping. */ -#define iosys_map_rd (map__, offset__, type__) ({ \ - type__ val; \ - iosys_map_memcpy_from(&val, map__, offset__, sizeof(val)); \ - val; \ +#define iosys_map_rd (map__, offset__, type__) ({ \ + type__ val; \ + if ((map__)->is_iomem) { \ + __iosys_map_rd_io(val, (map__)->vaddr_iomem + (offset__), type__);\ + } else { \ + __iosys_map_rd_sys(val, (map__)->vaddr + (offset__), type__); \ + } \ + val; \ })/** @@ -379,9 +405,10 @@ static inline void iosys_map_memset(struct iosys_map *dst, size_t offset,* * Read a value from iosys_map considering its layout is described by a C struct * starting at @struct_offset__. The field offset and size is calculated and its -* value read handling possible un-aligned memory accesses. For example: suppose -* there is a @struct foo defined as below and the value ``foo.field2.inner2`` -* needs to be read from the iosys_map: +* value read. If the field access would incur in un-aligned access, then either +* iosys_map_memcpy_from() needs to be used or the architecture must support it. +* For example: suppose there is a @struct foo defined as below and the value +* ``foo.field2.inner2`` needs to be read from the iosys_map: * * .. code-block:: c *