drm/i915/tgl: Add sysfs interface to control class-of-service
Subsystems (2)
PATCH 1/1 drm/i915/tgl: Add sysfs interface to control class-of-service
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
Example usage:
The active way-mask is highlighted within square brackets.
Quoted 1 line
cat
/sys/class/drm/card0/closctrl
[0xffff] 0xff00 0xc000 0x8000
CLOS0 is currently active.
Quoted 2 lines
echo
0x8000>/sys/class/drm/card0/closctrl
cat/sys/class/drm/card0/closctrl
0xffff 0xff00 0xc000 [0x8000]
CLOS3 is currently active
--- drivers/gpu/drm/i915/gt/intel_mocs.c | 57 ++++++++++++++++++++--- drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ++++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 67 ++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +52 -5
@@ -26,6 +26,7 @@#include "intel_gt.h" #include "intel_mocs.h" #include "intel_lrc.h" +#include "intel_sideband.h" /* structures required */ struct drm_i915_mocs_entry {
@@ -51,6 +52,7 @@ struct drm_i915_mocs_table {#define LE_SCF (value) ((value) << 14)#define LE_COS (value) ((value) << 15)#define LE_SSE (value) ((value) << 17) +#define LE_COS_MASK GENMASK(16, 15)/* Defines for the tables (LNCFMOCS0 - LNCFMOCS31) - two entries per word */ #define L3_ESC (value) ((value) << 0)
@@ -408,10 +410,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } -static void intel_mocs_init_global (struct intel_gt *gt) +void intel_mocs_init_global (struct intel_gt *gt) { +struct drm_i915_private *i915 = gt->i915;struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table; +unsigned int active_clos; +u32 value, unused_value;unsigned int index;GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));
@@ -422,20 +427,31 @@ static void intel_mocs_init_global(struct intel_gt *gt)if (GEM_DEBUG_WARN_ON (table.size > table.n_entries))return ; -for (index =0 ; index < table.size; index++) + active_clos =atomic_read (&i915->clos.active_clos); + +for (index =0 ; index < table.size; index++) { + value = table.table[index].control_value; + value &= ~LE_COS_MASK ; + value |=FIELD_PREP (LE_COS_MASK , active_clos); +intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[index].control_value); + value); + }/* * Ok, now set the unused entries to the invalid entry (index 0). These * entries are officially undefined and no contract for the contents and * settings is given for these entries. */ + unused_value = table.table[0 ].control_value; + unused_value &= ~LE_COS_MASK ; + unused_value |=FIELD_PREP (LE_COS_MASK , active_clos); +for (; index < table.n_entries; index++)intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[0 ].control_value); + unused_value); } static int emit_mocs_control_table(struct i915_request *rq,
@@ -625,10 +641,41 @@ int intel_mocs_emit(struct i915_request *rq)return 0 ; } +static void intel_read_clos_way_mask (struct intel_gt *gt) +{ +struct drm_i915_private *i915 = gt->i915; +struct drm_i915_mocs_table table; +int ret, i; +u32 val; + +if (!get_mocs_settings (gt, &table)) +return ; + +/* COS is same for all entries */ +atomic_set (&i915->clos.active_clos, +FIELD_GET (LE_COS_MASK ,get_entry_control (&table,0 ))); +for (i =0 ; i <NUM_OF_CLOS ; i++) { + val = i; + ret =sandybridge_pcode_read (i915, +ICL_PCODE_LLC_COS_WAY_MASK_INFO , + &val,NULL ); +if (ret) { +DRM_ERROR ("Mailbox read error = %d\n" , ret); +return ; + } + + i915->clos.way_mask[i] = val; + } + + i915->clos.support_way_mask_read = true; +} +void intel_mocs_init (struct intel_gt *gt) {intel_mocs_init_l3cc_table (gt); -if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) { +intel_read_clos_way_mask (gt);intel_mocs_init_global (gt); + } }
drivers/gpu/drm/i915/gt/intel_mocs.h +1 -0
@@ -53,6 +53,7 @@ struct i915_request;struct intel_engine_cs ;struct intel_gt ; +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1621,6 +1621,14 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +/* Last Level Cache Class of Service */ +struct { +bool support_way_mask_read; +atomic_t active_clos; +#define NUM_OF_CLOS 4 +u16 way_mask[NUM_OF_CLOS ]; + } clos; +struct dram_info {bool valid;bool is_16gb_dimm;
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -8845,6 +8845,7 @@ enum {#define ICL_PCODE_MEM_SUBSYSYSTEM_INFO 0xd#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8)) +#define ICL_PCODE_LLC_COS_WAY_MASK_INFO 0x1d#define GEN6_PCODE_READ_D_COMP 0x10#define GEN6_PCODE_WRITE_D_COMP 0x11#define HSW_PCODE_DE_WRITE_FREQ_REQ 0x17
drivers/gpu/drm/i915/i915_sysfs.c +67 -0
91 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915/tgl: Add sysfs interface to control class-of-service
== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service
URL : https://patchwork.freedesktop.org/series/65769/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915/tgl: Add sysfs interface to control class-of-service +drivers/gpu/drm/i915/i915_sysfs.c:261:9: warning: symbol 'closctrl_show' was not declared. Should it be static? +drivers/gpu/drm/i915/i915_sysfs.c:281:9: warning: symbol 'closctrl_store' was not declared. Should it be static?
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/tgl: Add sysfs interface to control class-of-service
In reply to Prathap Kumar Valsan== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service
URL : https://patchwork.freedesktop.org/series/65769/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6783 -> Patchwork_14184
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/
Known issues
------------
Here are the changes found in Patchwork_14184 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_basic@create-fd-close:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-icl-u3/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: [PASS][3] -> [INCOMPLETE][4] ([fdo#107718])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-blb-e6850/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-blb-e6850/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-skl-6770hq: [PASS][5] -> [FAIL][6] ([fdo#108511])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-skl-6770hq/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-skl-6770hq/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-read:
- fi-icl-u2: [PASS][7] -> [FAIL][8] ([fdo#109483])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_module_load@reload-no-display:
- fi-icl-u3: [DMESG-WARN][9] ([fdo#107724]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-icl-u3/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: [FAIL][11] ([fdo#111407]) -> [FAIL][12] ([fdo#109483])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/fi-icl-u2/igt@[email protected]
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108511]: https://bugs.freedesktop.org/show_bug.cgi?id=108511
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
Participating hosts (55 -> 47)
------------------------------
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6783 -> Patchwork_14184
CI-20190529: 20190529
CI_DRM_6783: c8d316e9005aee1ae6c9f2214da1c95d9c65fd5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5149: 6756ede680ee12745393360d7cc87cc0eb733ff6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14184: df15c2b68ab298b0c7ab479f9a6ad01086488e65 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
df15c2b68ab2 drm/i915/tgl: Add sysfs interface to control class-of-service
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/i915/tgl: Add sysfs interface to control class-of-service
In reply to Prathap Kumar ValsanTo provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
Example usage:
The active way-mask is highlighted within square brackets.
Quoted 1 line
cat
/sys/class/drm/card0/closctrl
[0xffff] 0xff00 0xc000 0x8000
CLOS0 is currently active.
Quoted 2 lines
echo
0x8000>/sys/class/drm/card0/closctrl
cat/sys/class/drm/card0/closctrl
0xffff 0xff00 0xc000 [0x8000]
CLOS3 is currently active
---
Changes in v2:
Declare closctrl_show and closctrl_store as static functions.
drivers/gpu/drm/i915/gt/intel_mocs.c | 57 ++++++++++++++++++++--- drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ++++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 67 ++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +52 -5
@@ -26,6 +26,7 @@#include "intel_gt.h" #include "intel_mocs.h" #include "intel_lrc.h" +#include "intel_sideband.h" /* structures required */ struct drm_i915_mocs_entry {
@@ -51,6 +52,7 @@ struct drm_i915_mocs_table {#define LE_SCF (value) ((value) << 14)#define LE_COS (value) ((value) << 15)#define LE_SSE (value) ((value) << 17) +#define LE_COS_MASK GENMASK(16, 15)/* Defines for the tables (LNCFMOCS0 - LNCFMOCS31) - two entries per word */ #define L3_ESC (value) ((value) << 0)
@@ -408,10 +410,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } -static void intel_mocs_init_global (struct intel_gt *gt) +void intel_mocs_init_global (struct intel_gt *gt) { +struct drm_i915_private *i915 = gt->i915;struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table; +unsigned int active_clos; +u32 value, unused_value;unsigned int index;GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));
@@ -422,20 +427,31 @@ static void intel_mocs_init_global(struct intel_gt *gt)if (GEM_DEBUG_WARN_ON (table.size > table.n_entries))return ; -for (index =0 ; index < table.size; index++) + active_clos =atomic_read (&i915->clos.active_clos); + +for (index =0 ; index < table.size; index++) { + value = table.table[index].control_value; + value &= ~LE_COS_MASK ; + value |=FIELD_PREP (LE_COS_MASK , active_clos); +intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[index].control_value); + value); + }/* * Ok, now set the unused entries to the invalid entry (index 0). These * entries are officially undefined and no contract for the contents and * settings is given for these entries. */ + unused_value = table.table[0 ].control_value; + unused_value &= ~LE_COS_MASK ; + unused_value |=FIELD_PREP (LE_COS_MASK , active_clos); +for (; index < table.n_entries; index++)intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[0 ].control_value); + unused_value); } static int emit_mocs_control_table(struct i915_request *rq,
@@ -625,10 +641,41 @@ int intel_mocs_emit(struct i915_request *rq)return 0 ; } +static void intel_read_clos_way_mask (struct intel_gt *gt) +{ +struct drm_i915_private *i915 = gt->i915; +struct drm_i915_mocs_table table; +int ret, i; +u32 val; + +if (!get_mocs_settings (gt, &table)) +return ; + +/* COS is same for all entries */ +atomic_set (&i915->clos.active_clos, +FIELD_GET (LE_COS_MASK ,get_entry_control (&table,0 ))); +for (i =0 ; i <NUM_OF_CLOS ; i++) { + val = i; + ret =sandybridge_pcode_read (i915, +ICL_PCODE_LLC_COS_WAY_MASK_INFO , + &val,NULL ); +if (ret) { +DRM_ERROR ("Mailbox read error = %d\n" , ret); +return ; + } + + i915->clos.way_mask[i] = val; + } + + i915->clos.support_way_mask_read = true; +} +void intel_mocs_init (struct intel_gt *gt) {intel_mocs_init_l3cc_table (gt); -if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) { +intel_read_clos_way_mask (gt);intel_mocs_init_global (gt); + } }
drivers/gpu/drm/i915/gt/intel_mocs.h +1 -0
@@ -53,6 +53,7 @@ struct i915_request;struct intel_engine_cs ;struct intel_gt ; +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1621,6 +1621,14 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +/* Last Level Cache Class of Service */ +struct { +bool support_way_mask_read; +atomic_t active_clos; +#define NUM_OF_CLOS 4 +u16 way_mask[NUM_OF_CLOS ]; + } clos; +struct dram_info {bool valid;bool is_16gb_dimm;
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -8845,6 +8845,7 @@ enum {#define ICL_PCODE_MEM_SUBSYSYSTEM_INFO 0xd#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8)) +#define ICL_PCODE_LLC_COS_WAY_MASK_INFO 0x1d#define GEN6_PCODE_READ_D_COMP 0x10#define GEN6_PCODE_WRITE_D_COMP 0x11#define HSW_PCODE_DE_WRITE_FREQ_REQ 0x17
drivers/gpu/drm/i915/i915_sysfs.c +67 -0
91 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Prathap Kumar Valsan (2019-08-26 00:35:27)
Quoted 209 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
Example usage:
The active way-mask is highlighted within square brackets.Quoted 1 line
cat
/sys/class/drm/card0/closctrl[
0xffff]0xff000xc0000x8000CLOS0 is currently active.
Quoted 2 lines
echo
0x8000>/sys/class/drm/card0/closctrl
cat/sys/class/drm/card0/closctrl
0xffff0xff000xc000[0x8000]CLOS3 is currently active
Signed-off-by Prathap Kumar Valsan <[email protected]>---
Changes in v2:
Declareclosctrl_showandclosctrl_storeas static functions.drivers/gpu/drm/i915/gt/intel_mocs.c | 57 ++++++++++++++++++++--- drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ++++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 67 ++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +52
-5@@ -26,6 +26,7 @@#include "intel_gt.h" #include "intel_mocs.h" #include "intel_lrc.h" +#include "intel_sideband.h" /* structures required */ struct drm_i915_mocs_entry {@@ -51,6 +52,7 @@ struct drm_i915_mocs_table {#define LE_SCF (value) ((value) << 14)#define LE_COS (value) ((value) << 15)#define LE_SSE (value) ((value) << 17) +#define LE_COS_MASK GENMASK(16, 15)/* Defines for the tables (LNCFMOCS0 - LNCFMOCS31) - two entries per word */ #define L3_ESC (value) ((value) << 0)@@ -408,10 +410,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } -static void intel_mocs_init_global (struct intel_gt *gt) +void intel_mocs_init_global (struct intel_gt *gt) { +struct drm_i915_private *i915 = gt->i915;struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table; +unsigned int active_clos; +u32 value, unused_value;unsigned int index;GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));@@ -422,20 +427,31 @@ static void intel_mocs_init_global(struct intel_gt *gt)if (GEM_DEBUG_WARN_ON (table.size > table.n_entries))return ; -for (index =0 ; index < table.size; index++) + active_clos =atomic_read (&i915->clos.active_clos); + +for (index =0 ; index < table.size; index++) { + value = table.table[index].control_value; + value &= ~LE_COS_MASK ; + value |=FIELD_PREP (LE_COS_MASK , active_clos); +intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[index].control_value); + value); + }/* * Ok, now set the unused entries to the invalid entry (index 0). These * entries are officially undefined and no contract for the contents and * settings is given for these entries. */ + unused_value = table.table[0 ].control_value; + unused_value &= ~LE_COS_MASK ; + unused_value |=FIELD_PREP (LE_COS_MASK , active_clos); +for (; index < table.n_entries; index++)intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[0 ].control_value); + unused_value); } static int emit_mocs_control_table(struct i915_request *rq,@@ -625,10 +641,41 @@ int intel_mocs_emit(struct i915_request *rq)return 0 ; } +static void intel_read_clos_way_mask (struct intel_gt *gt) +{ +struct drm_i915_private *i915 = gt->i915; +struct drm_i915_mocs_table table; +int ret, i; +u32 val; + +if (!get_mocs_settings (gt, &table)) +return ; + +/* COS is same for all entries */ +atomic_set (&i915->clos.active_clos, +FIELD_GET (LE_COS_MASK ,get_entry_control (&table,0 ))); +for (i =0 ; i <NUM_OF_CLOS ; i++) { + val = i; + ret =sandybridge_pcode_read (i915, +ICL_PCODE_LLC_COS_WAY_MASK_INFO , + &val,NULL ); +if (ret) { +DRM_ERROR ("Mailbox read error = %d\n" , ret); +return ; + } + + i915->clos.way_mask[i] = val; + } + + i915->clos.support_way_mask_read = true; +} +void intel_mocs_init (struct intel_gt *gt) {intel_mocs_init_l3cc_table (gt); -if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) { +intel_read_clos_way_mask (gt);intel_mocs_init_global (gt); + } }drivers/gpu/drm/i915/gt/intel_mocs.h +1
-0@@ -53,6 +53,7 @@ struct i915_request;struct intel_engine_cs ;struct intel_gt ; +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);drivers/gpu/drm/i915/i915_drv.h +8
-0@@ -1621,6 +1621,14 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +/* Last Level Cache Class of Service */ +struct { +bool support_way_mask_read; +atomic_t active_clos; +#define NUM_OF_CLOS 4 +u16 way_mask[NUM_OF_CLOS ]; + } clos; +struct dram_info {bool valid;bool is_16gb_dimm;drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -8845,6 +8845,7 @@ enum {#define ICL_PCODE_MEM_SUBSYSYSTEM_INFO 0xd#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8)) +#define ICL_PCODE_LLC_COS_WAY_MASK_INFO 0x1d#define GEN6_PCODE_READ_D_COMP 0x10#define GEN6_PCODE_WRITE_D_COMP 0x11#define HSW_PCODE_DE_WRITE_FREQ_REQ 0x17drivers/gpu/drm/i915/i915_sysfs.c +1
-0@@ -34,6 +34,7 @@#include "i915_sysfs.h" #include "intel_pm.h" #include "intel_sideband.h" +#include "gt/intel_mocs.h" static inline struct drm_i915_private *kdev_minor_to_i915 (struct device *kdev) {@@ -257,6 +258,62 @@ static const struct bin_attribute dpf_attrs_1 = { .private = (void *)1 };
drivers/gpu/drm/i915/i915_sysfs.c static const struct bin_attribute dpf_attrs_1 = { · line 269
Quoted 10 lines
drivers/gpu/drm/i915/i915_sysfs.c +9
-0+static ssize_t closctrl_show (struct device *kdev, +struct device_attribute *attr,char *buf) +{ +struct drm_i915_private *dev_priv =kdev_minor_to_i915 (kdev); +ssize_t len =0 ; +int i; + +for (i =0 ; i <NUM_OF_CLOS ; i++) { +if (i ==atomic_read (&dev_priv->clos.active_clos))
Reading an atomic more than once is liable to give you different answers.
Quoted 27 lines
drivers/gpu/drm/i915/i915_sysfs.c +27
-0+ len +=snprintf (buf + len,PAGE_SIZE ,"%s0x%x%s " , +"[" , dev_priv->clos.way_mask[i],"]" ); + else + len += snprintf(buf + len, PAGE_SIZE, "0x%x ", + dev_priv->clos.way_mask[i]); + } + len +=snprintf (buf + len,PAGE_SIZE ,"\n" ); + +return len; +} + +static ssize_t closctrl_store (struct device *kdev, +struct device_attribute *attr, +const char *buf,size_t count) +{ +struct drm_i915_private *dev_priv =kdev_minor_to_i915 (kdev); +u8 active_clos, clos_index; +bool valid_mask = false; +ssize_t ret; +u16 way_mask; + + ret =kstrtou16 (buf,0 , &way_mask); +if (ret) +return ret; + + active_clos =atomic_read (&dev_priv->clos.active_clos); +
drivers/gpu/drm/i915/i915_sysfs.c static const struct bin_attribute dpf_attrs_1 = { · line 306
Quoted 10 lines
drivers/gpu/drm/i915/i915_sysfs.c +10
-0+if (dev_priv->clos.way_mask[active_clos] == way_mask) +return count; + +for (clos_index =0 ; clos_index <NUM_OF_CLOS ; clos_index++) { +if (dev_priv->clos.way_mask[clos_index] == way_mask) { +atomic_set (&dev_priv->clos.active_clos, clos_index); + valid_mask = true; +break ; + } + }
How is this serialised against multiple users changing the setting?
This is not an atomic operation, atomic_t should have been a warning. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 255 lines · Chris Wilson
Quoting Prathap Kumar Valsan (2019-08-26 00:35:27)
Quoted 209 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
Example usage:
The active way-mask is highlighted within square brackets.Quoted 1 line
cat
/sys/class/drm/card0/closctrl[
0xffff]0xff000xc0000x8000CLOS0 is currently active.
Quoted 2 lines
echo
0x8000>/sys/class/drm/card0/closctrl
cat/sys/class/drm/card0/closctrl
0xffff0xff000xc000[0x8000]CLOS3 is currently active
Signed-off-by Prathap Kumar Valsan <[email protected]>---
Changes in v2:
Declareclosctrl_showandclosctrl_storeas static functions.drivers/gpu/drm/i915/gt/intel_mocs.c | 57 ++++++++++++++++++++--- drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ++++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 67 ++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +52
-5@@ -26,6 +26,7 @@#include "intel_gt.h" #include "intel_mocs.h" #include "intel_lrc.h" +#include "intel_sideband.h" /* structures required */ struct drm_i915_mocs_entry {@@ -51,6 +52,7 @@ struct drm_i915_mocs_table {#define LE_SCF (value) ((value) << 14)#define LE_COS (value) ((value) << 15)#define LE_SSE (value) ((value) << 17) +#define LE_COS_MASK GENMASK(16, 15)/* Defines for the tables (LNCFMOCS0 - LNCFMOCS31) - two entries per word */ #define L3_ESC (value) ((value) << 0)@@ -408,10 +410,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } -static void intel_mocs_init_global (struct intel_gt *gt) +void intel_mocs_init_global (struct intel_gt *gt) { +struct drm_i915_private *i915 = gt->i915;struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table; +unsigned int active_clos; +u32 value, unused_value;unsigned int index;GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));@@ -422,20 +427,31 @@ static void intel_mocs_init_global(struct intel_gt *gt)if (GEM_DEBUG_WARN_ON (table.size > table.n_entries))return ; -for (index =0 ; index < table.size; index++) + active_clos =atomic_read (&i915->clos.active_clos); + +for (index =0 ; index < table.size; index++) { + value = table.table[index].control_value; + value &= ~LE_COS_MASK ; + value |=FIELD_PREP (LE_COS_MASK , active_clos); +intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[index].control_value); + value); + }/* * Ok, now set the unused entries to the invalid entry (index 0). These * entries are officially undefined and no contract for the contents and * settings is given for these entries. */ + unused_value = table.table[0 ].control_value; + unused_value &= ~LE_COS_MASK ; + unused_value |=FIELD_PREP (LE_COS_MASK , active_clos); +for (; index < table.n_entries; index++)intel_uncore_write (uncore,GEN12_GLOBAL_MOCS (index), - table.table[0 ].control_value); + unused_value); } static int emit_mocs_control_table(struct i915_request *rq,@@ -625,10 +641,41 @@ int intel_mocs_emit(struct i915_request *rq)return 0 ; } +static void intel_read_clos_way_mask (struct intel_gt *gt) +{ +struct drm_i915_private *i915 = gt->i915; +struct drm_i915_mocs_table table; +int ret, i; +u32 val; + +if (!get_mocs_settings (gt, &table)) +return ; + +/* COS is same for all entries */ +atomic_set (&i915->clos.active_clos, +FIELD_GET (LE_COS_MASK ,get_entry_control (&table,0 ))); +for (i =0 ; i <NUM_OF_CLOS ; i++) { + val = i; + ret =sandybridge_pcode_read (i915, +ICL_PCODE_LLC_COS_WAY_MASK_INFO , + &val,NULL ); +if (ret) { +DRM_ERROR ("Mailbox read error = %d\n" , ret); +return ; + } + + i915->clos.way_mask[i] = val; + } + + i915->clos.support_way_mask_read = true; +} +void intel_mocs_init (struct intel_gt *gt) {intel_mocs_init_l3cc_table (gt); -if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) { +intel_read_clos_way_mask (gt);intel_mocs_init_global (gt); + } }drivers/gpu/drm/i915/gt/intel_mocs.h +1
-0@@ -53,6 +53,7 @@ struct i915_request;struct intel_engine_cs ;struct intel_gt ; +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);drivers/gpu/drm/i915/i915_drv.h +8
-0@@ -1621,6 +1621,14 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +/* Last Level Cache Class of Service */ +struct { +bool support_way_mask_read; +atomic_t active_clos; +#define NUM_OF_CLOS 4 +u16 way_mask[NUM_OF_CLOS ]; + } clos; +struct dram_info {bool valid;bool is_16gb_dimm;drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -8845,6 +8845,7 @@ enum {#define ICL_PCODE_MEM_SUBSYSYSTEM_INFO 0xd#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8)) +#define ICL_PCODE_LLC_COS_WAY_MASK_INFO 0x1d#define GEN6_PCODE_READ_D_COMP 0x10#define GEN6_PCODE_WRITE_D_COMP 0x11#define HSW_PCODE_DE_WRITE_FREQ_REQ 0x17drivers/gpu/drm/i915/i915_sysfs.c +1
-0@@ -34,6 +34,7 @@#include "i915_sysfs.h" #include "intel_pm.h" #include "intel_sideband.h" +#include "gt/intel_mocs.h" static inline struct drm_i915_private *kdev_minor_to_i915 (struct device *kdev) {@@ -257,6 +258,62 @@ static const struct bin_attribute dpf_attrs_1 = { .private = (void *)1 };drivers/gpu/drm/i915/i915_sysfs.c static const struct bin_attribute dpf_attrs_1 = { · line 269
Quoted 10 lines
drivers/gpu/drm/i915/i915_sysfs.c +9
-0+static ssize_t closctrl_show (struct device *kdev, +struct device_attribute *attr,char *buf) +{ +struct drm_i915_private *dev_priv =kdev_minor_to_i915 (kdev); +ssize_t len =0 ; +int i; + +for (i =0 ; i <NUM_OF_CLOS ; i++) { +if (i ==atomic_read (&dev_priv->clos.active_clos))Reading an atomic more than once is liable to give you different answers.
Quoted 31 lines
drivers/gpu/drm/i915/i915_sysfs.c +31
-0+ len +=snprintf (buf + len,PAGE_SIZE ,"%s0x%x%s " , +"[" , dev_priv->clos.way_mask[i],"]" ); + else + len += snprintf(buf + len, PAGE_SIZE, "0x%x ", + dev_priv->clos.way_mask[i]); + } + len +=snprintf (buf + len,PAGE_SIZE ,"\n" ); + +return len; +} + +static ssize_t closctrl_store (struct device *kdev, +struct device_attribute *attr, +const char *buf,size_t count) +{ +struct drm_i915_private *dev_priv =kdev_minor_to_i915 (kdev); +u8 active_clos, clos_index; +bool valid_mask = false; +ssize_t ret; +u16 way_mask; + + ret =kstrtou16 (buf,0 , &way_mask); +if (ret) +return ret; + + active_clos =atomic_read (&dev_priv->clos.active_clos); + +if (dev_priv->clos.way_mask[active_clos] == way_mask) +return count; + +for (clos_index =0 ; clos_index <NUM_OF_CLOS ; clos_index++) {
Quoted 9 lines
drivers/gpu/drm/i915/i915_sysfs.c static const struct bin_attribute dpf_attrs_1 = { · line 306
Quoted 6 lines
drivers/gpu/drm/i915/i915_sysfs.c +6
-0+if (dev_priv->clos.way_mask[clos_index] == way_mask) { +atomic_set (&dev_priv->clos.active_clos, clos_index); + valid_mask = true; +break ; + } + }How is this serialised against multiple users changing the setting?
Should have been using mutex to serialize. Will fix.
Quoted 2 lines
This is not an atomic operation,
atomic_tshould have been a warning. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Prathap Kumar Valsan (2019-08-26 00:35:27)
Quoted 10 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
What impact does this have on inflight work? Do you need to drain the submission queue, change the global registers, force an invalidation and then restart? Can it be done from inside the GPU so that it is serialised with on-going submission?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 12 lines · Chris Wilson
Quoting Prathap Kumar Valsan (2019-08-26 00:35:27)
Quoted 10 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Quoted 4 lines
What impact does this have on inflight work? Do you need to drain the submission queue, change the global registers, force an invalidation and then restart? Can it be done from inside the GPU so that it is serialised with on-going submission?
I believe this should not be impacting the inflight work. Because, way mask only influnece a new cache allocation on cache miss. Cache hits are not restricted by way-mask. So even the way-mask is changed, in-flight requests previously allocated cache lines from other ways will still be a cache hit until thrashed.
We want to support this on Gen11 as well, where these registers
are context saved and restored and we prime the register values of new contexts from recorded defaults. What could be the correct way to handle this, write to the default object or should ask GPU to re-record after modifying the registers.
Thanks,
Prathap
Quoted 1 line
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Kumar Valsan, Prathap (2019-08-27 15:17:51)
Quoted 5 lines
We want to support this on Gen11 as well, where these registers
are context saved and restored and we prime the register values of new contexts from recorded defaults. What could be the correct way to handle this, write to the default object or should ask GPU to re-record after modifying the registers.
That depends on whether you want to apply to existing or only to new. For OA / sseu, we modify the context images so that existing contexts are updated to reflect the new defaults, and we update the defaults. E.g. gen8_configure_all_contexts()
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 11 lines · Chris Wilson
Quoting Kumar Valsan, Prathap (2019-08-27 15:17:51)
Quoted 5 lines
We want to support this on Gen11 as well, where these registers
are context saved and restored and we prime the register values of new contexts from recorded defaults. What could be the correct way to handle this, write to the default object or should ask GPU to re-record after modifying the registers.That depends on whether you want to apply to existing or only to new. For OA / sseu, we modify the context images so that existing contexts are updated to reflect the new defaults, and we update the defaults. E.g.
gen8_configure_all_contexts()
Applying to the existing contexts as well should be the right thing to do. Thank you! I will look at the example.
Prathap
Quoted 1 line
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/tgl: Add sysfs interface to control class-of-service (rev2)
In reply to Prathap Kumar Valsan== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service (rev2)
URL : https://patchwork.freedesktop.org/series/65769/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6783 -> Patchwork_14185
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/
Known issues
------------
Here are the changes found in Patchwork_14185 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_basic@create-fd-close:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@i915_module_load@reload-no-display:
- fi-icl-u3: [DMESG-WARN][3] ([fdo#107724]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/fi-icl-u3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/fi-icl-u3/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#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
Participating hosts (55 -> 47)
------------------------------
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6783 -> Patchwork_14185
CI-20190529: 20190529
CI_DRM_6783: c8d316e9005aee1ae6c9f2214da1c95d9c65fd5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5149: 6756ede680ee12745393360d7cc87cc0eb733ff6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14185: 29cf27989458eb569358786a96e4062f98f59cc9 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
29cf27989458 drm/i915/tgl: Add sysfs interface to control class-of-service
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for drm/i915/tgl: Add sysfs interface to control class-of-service
In reply to Prathap Kumar Valsan== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service
URL : https://patchwork.freedesktop.org/series/65769/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6783_full -> Patchwork_14184_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_14184_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_14184_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_14184_full:
### IGT changes ###
#### Possible regressions ####
* igt@perf_pmu@busy-idle-no-semaphores-vecs0:
- shard-skl: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl6/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_14184_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_shared@q-smoketest-render:
- shard-apl: [PASS][3] -> [INCOMPLETE][4] ([fdo#103927])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl2/igt@[email protected]
* igt@gem_eio@reset-stress:
- shard-apl: [PASS][5] -> [FAIL][6] ([fdo#109661])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl2/igt@[email protected]
- shard-kbl: [PASS][7] -> [FAIL][8] ([fdo#109661])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-kbl3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-kbl4/igt@[email protected]
* igt@gem_exec_schedule@preempt-self-bsd:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#111325]) +3 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl7/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-xtiled:
- shard-skl: [PASS][13] -> [FAIL][14] ([fdo#103184] / [fdo#103232])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#105363])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- shard-iclb: [PASS][17] -> [FAIL][18] ([fdo#103167]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@[email protected]
* igt@kms_plane@plane-panning-top-left-pipe-b-planes:
- shard-skl: [PASS][19] -> [FAIL][20] ([fdo#103166])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl10/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [PASS][21] -> [FAIL][22] ([fdo#108145])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl1/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][23] -> [FAIL][24] ([fdo#103166])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb8/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109642] / [fdo#111068])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb6/igt@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109441]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb6/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_setmode@basic:
- shard-apl: [PASS][29] -> [FAIL][30] ([fdo#99912])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl6/igt@[email protected]
* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#109276]) +12 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb8/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@rcs0-s3:
- shard-apl: [DMESG-WARN][33] ([fdo#108566]) -> [PASS][34] +5 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl3/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [SKIP][35] ([fdo#110841]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb5/igt@[email protected]
* igt@gem_exec_async@concurrent-writes-bsd:
- shard-iclb: [SKIP][37] ([fdo#111325]) -> [PASS][38] +3 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb6/igt@[email protected]
* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][39] ([fdo#110854]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb5/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-25:
- shard-skl: [FAIL][41] ([fdo#108682]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl10/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-hsw: [INCOMPLETE][43] ([fdo#103540]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-hsw2/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-hsw6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][45] ([fdo#103167]) -> [PASS][46] +5 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb5/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [FAIL][47] ([fdo#108145]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl8/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl4/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [FAIL][49] ([fdo#103166]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb8/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb3/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][51] ([fdo#109441]) -> [PASS][52] +3 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb3/igt@kms_psr@psr2_cursor_mmap_cpu.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@kms_vblank@pipe-b-query-busy:
- shard-iclb: [INCOMPLETE][53] ([fdo#107713]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb7/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb7/igt@[email protected]
* igt@prime_busy@after-bsd2:
- shard-iclb: [SKIP][55] ([fdo#109276]) -> [PASS][56] +11 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb5/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@[email protected]
* igt@vgem_basic@dmabuf-mmap:
- shard-apl: [INCOMPLETE][57] ([fdo#103927]) -> [PASS][58] +2 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl5/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-apl1/igt@[email protected]
#### Warnings ####
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [FAIL][59] ([fdo#111330]) -> [SKIP][60] ([fdo#109276])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb6/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][61] ([fdo#109349]) -> [DMESG-WARN][62] ([fdo#107724])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb5/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-iclb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-indfb-fliptrack:
- shard-skl: [FAIL][63] ([fdo#103167]) -> [FAIL][64] ([fdo#108040])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/shard-skl1/igt@[email protected]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108682]: https://bugs.freedesktop.org/show_bug.cgi?id=108682
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (9 -> 9)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6783 -> Patchwork_14184
CI-20190529: 20190529
CI_DRM_6783: c8d316e9005aee1ae6c9f2214da1c95d9c65fd5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5149: 6756ede680ee12745393360d7cc87cc0eb733ff6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14184: df15c2b68ab298b0c7ab479f9a6ad01086488e65 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14184/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/tgl: Add sysfs interface to control class-of-service (rev2)
In reply to Prathap Kumar Valsan== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service (rev2)
URL : https://patchwork.freedesktop.org/series/65769/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6783_full -> Patchwork_14185_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_14185_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_shared@q-smoketest-render:
- shard-iclb: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-bsd1:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +12 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-contexts-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb1/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-skl: [PASS][7] -> [INCOMPLETE][8] ([fdo#104108]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][9] -> [DMESG-WARN][10] ([fdo#108566]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-apl6/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-xtiled:
- shard-skl: [PASS][11] -> [FAIL][12] ([fdo#103184] / [fdo#103232])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl9/igt@[email protected]
* igt@kms_fbcon_fbt@fbc:
- shard-skl: [PASS][13] -> [DMESG-WARN][14] ([fdo#106107])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#105363])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [PASS][17] -> [FAIL][18] ([fdo#103167]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [PASS][19] -> [FAIL][20] ([fdo#108145])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl9/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#103166])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb7/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][23] -> [SKIP][24] ([fdo#109642] / [fdo#111068])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb8/igt@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109441]) +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb8/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_setmode@basic:
- shard-apl: [PASS][27] -> [FAIL][28] ([fdo#99912])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl8/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-apl3/igt@[email protected]
* igt@perf@blocking:
- shard-skl: [PASS][29] -> [FAIL][30] ([fdo#110728])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl2/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@rcs0-s3:
- shard-apl: [DMESG-WARN][31] ([fdo#108566]) -> [PASS][32] +4 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-apl5/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [SKIP][33] ([fdo#110841]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb7/igt@[email protected]
* igt@gem_exec_async@concurrent-writes-bsd:
- shard-iclb: [SKIP][35] ([fdo#111325]) -> [PASS][36] +3 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@fifo-bsd1:
- shard-iclb: [SKIP][37] ([fdo#109276]) -> [PASS][38] +17 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb1/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-25:
- shard-skl: [FAIL][39] ([fdo#108682]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl10/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][41] ([fdo#103167]) -> [PASS][42] +6 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb5/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][43] ([fdo#108145] / [fdo#110403]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl10/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl7/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [FAIL][45] ([fdo#103166]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb2/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][47] ([fdo#109642] / [fdo#111068]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb6/igt@kms_psr2_su@page_flip.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][49] ([fdo#109441]) -> [PASS][50] +3 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb8/igt@kms_psr@psr2_no_drrs.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
* igt@kms_setmode@basic:
- shard-hsw: [FAIL][51] ([fdo#99912]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-hsw5/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-hsw1/igt@[email protected]
* igt@kms_vblank@pipe-b-query-busy:
- shard-iclb: [INCOMPLETE][53] ([fdo#107713]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb7/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb5/igt@[email protected]
* igt@vgem_basic@dmabuf-mmap:
- shard-apl: [INCOMPLETE][55] ([fdo#103927]) -> [PASS][56] +4 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-apl5/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-apl3/igt@[email protected]
#### Warnings ####
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [FAIL][57] ([fdo#111330]) -> [SKIP][58] ([fdo#109276])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-iclb2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-iclb8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-fullscreen:
- shard-skl: [FAIL][59] ([fdo#108040]) -> [FAIL][60] ([fdo#103167])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6783/shard-skl7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-fullscreen.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/shard-skl9/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-fullscreen.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108682]: https://bugs.freedesktop.org/show_bug.cgi?id=108682
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (9 -> 9)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6783 -> Patchwork_14185
CI-20190529: 20190529
CI_DRM_6783: c8d316e9005aee1ae6c9f2214da1c95d9c65fd5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5149: 6756ede680ee12745393360d7cc87cc0eb733ff6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14185: 29cf27989458eb569358786a96e4062f98f59cc9 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14185/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Joonas Lahtinen
maintainerQuoting Prathap Kumar Valsan (2019-08-26 01:48:01)
Quoted 6 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Quoted 7 lines
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
I wonder if this is enough to justify some further protection before enabling?
Quoted 4 lines
Example usage:
The active way-mask is highlighted within square brackets.Quoted 1 line
cat
/sys/class/drm/card0/closctrl[
0xffff]0xff000xc0000x8000
How about two files for easier scripting interface?
/sys/class/drm/card0/llc_clos/sys/class/drm/card0/llc_clos_modes
Regards, Joonas
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 12 lines · Joonas Lahtinen
Quoting Prathap Kumar Valsan (2019-08-26 01:48:01)
Quoted 11 lines
To provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. The supported way-masks and the one currently active is communicated to userspace via a sysfs file--closctrl. Admin user can then select a new mask by writing the mask value to the file.
Quoted 5 lines
Quoted 2 lines
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
I wonder if this is enough to justify some further protection before enabling?
Should there be a kernel warning message on enabling this or a commit message is enough?
Quoted 11 lines
Quoted 5 lines
Example usage:
The active way-mask is highlighted within square brackets.Quoted 1 line
cat
/sys/class/drm/card0/closctrl[
0xffff]0xff000xc0000x8000How about two files for easier scripting interface?
/sys/class/drm/card0/llc_clos/sys/class/drm/card0/llc_clos_modes
Agreed. A single file interface was suggested by Jon. Hope he is ok with having two files :)
Quoted 1 line
Regards, Joonas
Thanks,
Prathap
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/i915/ehl: Add sysfs interface to control class-of-service
In reply to Prathap Kumar ValsanTo provide shared last-level-cache isolation to cpu workloads running concurrently with gpu workloads, the gpu allocation of cache lines needs to be restricted to certain ways. Currently GPU hardware supports four class-of-service(CLOS) levels and there is an associated way-mask for each CLOS. Each LLC MOCS register has a field to select the clos level. So in-order to globally set the gpu to a clos level, driver needs to program entire MOCS table.
Hardware supports reading supported way-mask configuration for GPU using a bios pcode interface. This interface has two files--llc_clos_modes and llc_clos. The file llc_clos_modes is read only file and will list the available way masks. The file llc_clos is read/write and will show the currently active way mask and writing a new way mask will update the active way mask of the gpu.
Note of Caution: Restricting cache ways using this mechanism presents a larger attack surface for side-channel attacks.
Example usage:
Quoted 1 line
cat
/sys/class/drm/card0/llc_clos_modes
0xfff 0xfc0 0xc00 0x800
Quoted 1 line
cat
/sys/class/drm/card0/llc_clos
0xfff
Update to new clos
echo "0x800" > /sys/class/drm/card0/llc_clos
v2: Updated the interface to use two sysfs files(Joonas)
- Gen12 PCode interface is not ready yet to read the way mask. So removed TGL support and added support for Gen11.
- Updating MOCS in Gen 11 also require changing the context image of existing contexts.
Referred to gen8_configure_all_contexts() as suggested by Chris.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 7 + drivers/gpu/drm/i915/gt/intel_lrc_reg.h | 1 + drivers/gpu/drm/i915/gt/intel_mocs.c | 215 +++++++++++++++++++++++- drivers/gpu/drm/i915/gt/intel_mocs.h | 3 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 100 +++++++++++ 7 files changed, 334 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +7 -0
@@ -2114,6 +2114,13 @@ __execlists_update_reg_state(const struct intel_context *ce,intel_sseu_make_rpcs (engine->i915, &ce->sseu);i915_oa_init_reg_state (ce, engine); +/* +* Gen11 supports update of LLC class-of-service via +* sysfs interface. Also update the context register state +* of the new contexts. +*/ +if (IS_GEN (engine->i915,11 )) +intel_mocs_init_reg_state (ce); } }
drivers/gpu/drm/i915/gt/intel_lrc_reg.h +1 -0
@@ -28,6 +28,7 @@#define CTX_R_PWR_CLK_STATE (0x42 + 1)#define GEN9_CTX_RING_MI_MODE 0x54 +#define GEN11_CTX_GFX_MOCS_BASE 0x4F2/* GEN12+ Reg State Context */ #define GEN12_CTX_BB_PER_CTX_PTR (0x12 + 1)
drivers/gpu/drm/i915/gt/intel_mocs.c +214 -1
286 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_mocs.h +3 -0
@@ -57,5 +57,8 @@ void intel_mocs_init(struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);int intel_mocs_emit (struct i915_request *rq); +int intel_mocs_update_clos (struct intel_gt *gt); + +void intel_mocs_init_reg_state (const struct intel_context *ce);#endif
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1630,6 +1630,14 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +/* Last Level Cache Class of Service */ +struct { +bool support_way_mask_read; +u8 active_clos; +#define NUM_OF_CLOS 4 +u16 way_mask[NUM_OF_CLOS ]; + } clos; +struct dram_info {bool valid;bool is_16gb_dimm;
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -8854,6 +8854,7 @@ enum {#define ICL_PCODE_MEM_SUBSYSYSTEM_INFO 0xd#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8)) +#define ICL_PCODE_LLC_COS_WAY_MASK_INFO 0x1d#define GEN6_PCODE_READ_D_COMP 0x10#define GEN6_PCODE_WRITE_D_COMP 0x11#define HSW_PCODE_DE_WRITE_FREQ_REQ 0x17
drivers/gpu/drm/i915/i915_sysfs.c +100 -0
124 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BUILD: failure for drm/i915/tgl: Add sysfs interface to control class-of-service (rev3)
In reply to Prathap Kumar Valsan== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add sysfs interface to control class-of-service (rev3)
URL : https://patchwork.freedesktop.org/series/65769/
State : failure
== Summary ==
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CC drivers/gpu/drm/i915/gt/intel_mocs.h.s
In file included from <command-line>:0:0:./drivers/gpu/drm/i915/gt/intel_mocs.h:62:45: error: ‘struct intel_context’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
void intel_mocs_init_reg_state(const struct intel_context *ce);
^~~~~~~~~~~~~cc1: all warnings being treated as errorsscripts/Makefile.build:293: recipe for target 'drivers/gpu/drm/i915/gt/intel_mocs.h.s' failed make[5]: *** [drivers/gpu/drm/i915/gt/intel_mocs.h.s] Error 1 scripts/Makefile.build:509: recipe for target 'drivers/gpu/drm/i915/gt' failed make[4]: *** [drivers/gpu/drm/i915/gt] Error 2scripts/Makefile.build:509: recipe for target 'drivers/gpu/drm/i915' failed make[3]: *** [drivers/gpu/drm/i915] Error 2scripts/Makefile.build:509: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2scripts/Makefile.build:509: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1670: recipe for target 'drivers' failed
make: *** [drivers] Error 2
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx