Tiger Lake: MOCS table handling
Subsystems (2)
cover Tiger Lake: MOCS table handling
v2 of the MOCS patches originally at
https://patchwork.freedesktop.org/series/63670/ handling the review comments received.
This needs the accompanying IGT patches so it doesn't regress on Ice
Lake: https://patchwork.freedesktop.org/series/64263/
Lucas De Marchi (1):
drm/i915/tgl: Move fault registers to their new offset
Michel Thierry (1):
drm/i915/tgl: Tigerlake only has global MOCS registers
Tomasz Lis (1):
drm/i915/tgl: Define MOCS entries for Tigerlake
Tvrtko Ursulin (1):
drm/i915: Move MOCS setup to intel_mocs.c
drivers/gpu/drm/i915/gt/intel_gt.c | 24 +++++- drivers/gpu/drm/i915/gt/intel_mocs.c | 93 +++++++++++++++++++++++- drivers/gpu/drm/i915/gt/intel_mocs.h | 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 + drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 18 ++++- drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 5 ++ drivers/gpu/drm/i915/intel_device_info.h | 1 + 9 files changed, 135 insertions(+), 15 deletions(-)
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/4 drm/i915/tgl: Move fault registers to their new offset
The fault registers moved to another offset. The old location is now taken by the global MOCS registers, to be added in a follow up change.
Based on previous patches by Michel Thierry <[email protected]>.
--- drivers/gpu/drm/i915/gt/intel_gt.c | 24 ++++++++++++++++++++---- drivers/gpu/drm/i915/i915_gpu_error.c | 12 ++++++++++-- drivers/gpu/drm/i915/i915_reg.h | 3 +++ 3 files changed, 33 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt.c +20 -4
@@ -79,7 +79,10 @@ intel_gt_clear_error_registers(struct intel_gt *gt, I915_MASTER_ERROR_INTERRUPT); } -if (INTEL_GEN (i915) >=8 ) { +if (INTEL_GEN (i915) >=12 ) { +rmw_clear (uncore,GEN12_RING_FAULT_REG ,RING_FAULT_VALID ); +intel_uncore_posting_read (uncore,GEN12_RING_FAULT_REG ); + }else if (INTEL_GEN (i915) >=8 ) {rmw_clear (uncore,GEN8_RING_FAULT_REG ,RING_FAULT_VALID );intel_uncore_posting_read (uncore,GEN8_RING_FAULT_REG ); }else if (INTEL_GEN (i915) >=6 ) {
@@ -117,14 +120,27 @@ static void gen6_check_faults(struct intel_gt *gt)static void gen8_check_faults (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore; -u32 fault =intel_uncore_read (uncore,GEN8_RING_FAULT_REG ); +i915_reg_t fault_reg, fault_data0_reg, fault_data1_reg; +u32 fault; + +if (INTEL_GEN (gt->i915) >=12 ) { + fault_reg =GEN12_RING_FAULT_REG ; + fault_data0_reg =GEN12_FAULT_TLB_DATA0 ; + fault_data1_reg =GEN12_FAULT_TLB_DATA1 ; + }else { + fault_reg =GEN8_RING_FAULT_REG ; + fault_data0_reg =GEN8_FAULT_TLB_DATA0 ; + fault_data1_reg =GEN8_FAULT_TLB_DATA1 ; + } + fault =intel_uncore_read (uncore, fault_reg);if (fault &RING_FAULT_VALID ) {u32 fault_data0, fault_data1;u64 fault_addr; - fault_data0 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA0 ); - fault_data1 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA1 ); + fault_data0 =intel_uncore_read (uncore, fault_data0_reg); + fault_data1 =intel_uncore_read (uncore, fault_data1_reg); + fault_addr = ((u64)(fault_data1 &FAULT_VA_HIGH_BITS ) <<44 ) | ((u64 )fault_data0 <<12 );
drivers/gpu/drm/i915/i915_gpu_error.c +10 -2
@@ -1106,7 +1106,10 @@ static void error_record_engine_registers(struct i915_gpu_state *error,if (INTEL_GEN (dev_priv) >=6 ) { ee->rc_psmi =ENGINE_READ (engine,RING_PSMI_CTL ); -if (INTEL_GEN (dev_priv) >=8 ) + +if (INTEL_GEN (dev_priv) >=12 ) + ee->fault_reg =I915_READ (GEN12_RING_FAULT_REG ); +else if (INTEL_GEN (dev_priv) >=8 ) ee->fault_reg =I915_READ (GEN8_RING_FAULT_REG );else ee->fault_reg =GEN6_RING_FAULT_REG_READ (engine);
@@ -1497,7 +1500,12 @@ static void capture_reg_state(struct i915_gpu_state *error)if (IS_GEN (i915,7 )) error->err_int =intel_uncore_read (uncore,GEN7_ERR_INT ); -if (INTEL_GEN (i915) >=8 ) { +if (INTEL_GEN (i915) >=12 ) { + error->fault_data0 =intel_uncore_read (uncore, +GEN12_FAULT_TLB_DATA0 ); + error->fault_data1 =intel_uncore_read (uncore, +GEN12_FAULT_TLB_DATA1 ); + }else if (INTEL_GEN (i915) >=8 ) { error->fault_data0 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA0 ); error->fault_data1 = intel_uncore_read(uncore,
drivers/gpu/drm/i915/i915_reg.h +3 -0
@@ -2490,6 +2490,7 @@ enum i915_power_well_id {#define RENDER_HWS_PGA_GEN7 _MMIO(0x04080)#define RING_FAULT_REG (engine) _MMIO(0x4094 + 0x100 * (engine)->hw_id)#define GEN8_RING_FAULT_REG _MMIO(0x4094) +#define GEN12_RING_FAULT_REG _MMIO(0xcec4)#define GEN8_RING_FAULT_ENGINE_ID (x) (((x) >> 12) & 0x7)#define RING_FAULT_GTTSEL_MASK (1 << 11)#define RING_FAULT_SRCID (x) (((x) >> 3) & 0xff)
@@ -2633,6 +2634,8 @@ enum i915_power_well_id {#define GEN8_FAULT_TLB_DATA0 _MMIO(0x4b10)#define GEN8_FAULT_TLB_DATA1 _MMIO(0x4b14) +#define GEN12_FAULT_TLB_DATA0 _MMIO(0xceb8) +#define GEN12_FAULT_TLB_DATA1 _MMIO(0xcebc)#define FAULT_VA_HIGH_BITS (0xf << 0)#define FAULT_GTT_SEL (1 << 4)
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/4] drm/i915/tgl: Move fault registers to their new offset
Quoted 7 lines · Lucas De Marchi
The fault registers moved to another offset. The old location is now taken by the global MOCS registers, to be added in a follow up change.
Based on previous patches by Michel Thierry <[email protected]>.
Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Daniele
Quoted 97 lines
--- drivers/gpu/drm/i915/gt/intel_gt.c | 24 ++++++++++++++++++++---- drivers/gpu/drm/i915/i915_gpu_error.c | 12 ++++++++++-- drivers/gpu/drm/i915/i915_reg.h | 3 +++ 3 files changed, 33 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/gt/intel_gt.c +20
-4@@ -79,7 +79,10 @@ intel_gt_clear_error_registers(struct intel_gt *gt, I915_MASTER_ERROR_INTERRUPT); } -if (INTEL_GEN (i915) >=8 ) { +if (INTEL_GEN (i915) >=12 ) { +rmw_clear (uncore,GEN12_RING_FAULT_REG ,RING_FAULT_VALID ); +intel_uncore_posting_read (uncore,GEN12_RING_FAULT_REG ); + }else if (INTEL_GEN (i915) >=8 ) {rmw_clear (uncore,GEN8_RING_FAULT_REG ,RING_FAULT_VALID );intel_uncore_posting_read (uncore,GEN8_RING_FAULT_REG ); }else if (INTEL_GEN (i915) >=6 ) {@@ -117,14 +120,27 @@ static void gen6_check_faults(struct intel_gt *gt)static void gen8_check_faults (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore; -u32 fault =intel_uncore_read (uncore,GEN8_RING_FAULT_REG ); +i915_reg_t fault_reg, fault_data0_reg, fault_data1_reg; +u32 fault; + +if (INTEL_GEN (gt->i915) >=12 ) { + fault_reg =GEN12_RING_FAULT_REG ; + fault_data0_reg =GEN12_FAULT_TLB_DATA0 ; + fault_data1_reg =GEN12_FAULT_TLB_DATA1 ; + }else { + fault_reg =GEN8_RING_FAULT_REG ; + fault_data0_reg =GEN8_FAULT_TLB_DATA0 ; + fault_data1_reg =GEN8_FAULT_TLB_DATA1 ; + } + fault =intel_uncore_read (uncore, fault_reg);if (fault &RING_FAULT_VALID ) {u32 fault_data0, fault_data1;u64 fault_addr; - fault_data0 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA0 ); - fault_data1 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA1 ); + fault_data0 =intel_uncore_read (uncore, fault_data0_reg); + fault_data1 =intel_uncore_read (uncore, fault_data1_reg); + fault_addr = ((u64)(fault_data1 &FAULT_VA_HIGH_BITS ) <<44 ) | ((u64 )fault_data0 <<12 );drivers/gpu/drm/i915/i915_gpu_error.c +10
-2@@ -1106,7 +1106,10 @@ static void error_record_engine_registers(struct i915_gpu_state *error,if (INTEL_GEN (dev_priv) >=6 ) { ee->rc_psmi =ENGINE_READ (engine,RING_PSMI_CTL ); -if (INTEL_GEN (dev_priv) >=8 ) + +if (INTEL_GEN (dev_priv) >=12 ) + ee->fault_reg =I915_READ (GEN12_RING_FAULT_REG ); +else if (INTEL_GEN (dev_priv) >=8 ) ee->fault_reg =I915_READ (GEN8_RING_FAULT_REG );else ee->fault_reg =GEN6_RING_FAULT_REG_READ (engine);@@ -1497,7 +1500,12 @@ static void capture_reg_state(struct i915_gpu_state *error)if (IS_GEN (i915,7 )) error->err_int =intel_uncore_read (uncore,GEN7_ERR_INT ); -if (INTEL_GEN (i915) >=8 ) { +if (INTEL_GEN (i915) >=12 ) { + error->fault_data0 =intel_uncore_read (uncore, +GEN12_FAULT_TLB_DATA0 ); + error->fault_data1 =intel_uncore_read (uncore, +GEN12_FAULT_TLB_DATA1 ); + }else if (INTEL_GEN (i915) >=8 ) { error->fault_data0 =intel_uncore_read (uncore,GEN8_FAULT_TLB_DATA0 ); error->fault_data1 = intel_uncore_read(uncore,drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -2490,6 +2490,7 @@ enum i915_power_well_id {#define RENDER_HWS_PGA_GEN7 _MMIO(0x04080)#define RING_FAULT_REG (engine) _MMIO(0x4094 + 0x100 * (engine)->hw_id)#define GEN8_RING_FAULT_REG _MMIO(0x4094) +#define GEN12_RING_FAULT_REG _MMIO(0xcec4)#define GEN8_RING_FAULT_ENGINE_ID (x) (((x) >> 12) & 0x7)#define RING_FAULT_GTTSEL_MASK (1 << 11)#define RING_FAULT_SRCID (x) (((x) >> 3) & 0xff)
drivers/gpu/drm/i915/i915_reg.h enum i915_power_well_id { · line 2641
Quoted 8 lines
drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -2633,6 +2634,8 @@ enum i915_power_well_id {#define GEN8_FAULT_TLB_DATA0 _MMIO(0x4b10)#define GEN8_FAULT_TLB_DATA1 _MMIO(0x4b14) +#define GEN12_FAULT_TLB_DATA0 _MMIO(0xceb8) +#define GEN12_FAULT_TLB_DATA1 _MMIO(0xcebc)#define FAULT_VA_HIGH_BITS (0xf << 0)#define FAULT_GTT_SEL (1 << 4)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 drm/i915/tgl: Define MOCS entries for Tigerlake
In reply to Lucas De MarchiFrom: Tomasz Lis <[email protected]>
The MOCS table is published as part of bspec, and versioned. Entries are supposed to never be modified, but new ones can be added. Adding entries increases table version. The patch includes version 1 entries.
Two of the 3 legacy entries used for gen9 are no longer expected to work. Although we are changing the gen11 table, those changes are supposed to be backward compatible since we are only touching previously undefined entries.
v2: Add the missing entries in 49-51 range and replace "HW reserved"
terminology to what it actually is: L1 is implicitly enabled (from Daniele)
--- drivers/gpu/drm/i915/gt/intel_mocs.c | 37 +++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +34 -3
@@ -62,6 +62,10 @@ struct drm_i915_mocs_table {#define GEN11_NUM_MOCS_ENTRIES 64/* 63-64 are reserved, but configured. */ /* (e)LLC caching options */ +/* +* Note: LE_0_PAGETABLE works only up to Gen11; for newer gens it means +* the same as LE_UC +*/ #define LE_0_PAGETABLE _LE_CACHEABILITY(0)#define LE_1_UC _LE_CACHEABILITY(1)#define LE_2_WT _LE_CACHEABILITY(2)
@@ -100,8 +104,9 @@ struct drm_i915_mocs_table {* of bspec. * * Entries not part of the following tables are undefined as far as -* userspace is concerned and shouldn't be relied upon. For the time -* being they will be initialized to PTE. +* userspace is concerned and shouldn't be relied upon. For Gen < 12 +* they will be initialized to PTE. Gen >= 12 onwards don't have a setting for +* PTE. We use the same value, but that actually means Uncached. * * The last two entries are reserved by the hardware. For ICL+ they * should be initialized according to bspec and never used, for older
@@ -137,11 +142,13 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = { };#define GEN11_MOCS_ENTRIES \ -/* Base - Uncached (Deprecated) */ \ +/* Gen11: Base - Uncached (Deprecated) */ \ +/* Gen12+: Base - Error (Reserved for Non-Use) */ \ MOCS_ENTRY(I915_MOCS_UNCACHED, \ LE_1_UC | LE_TC_1_LLC, \ L3_1_UC), \/* Base - L3 + LeCC:PAT (Deprecated) */ \ +/* Gen12+: Base - Reserved */ \MOCS_ENTRY (I915_MOCS_PTE , \LE_0_PAGETABLE |LE_TC_1_LLC , \ L3_3_WB), \
@@ -233,6 +240,30 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = {MOCS_ENTRY (23 , \LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ) |LE_RSC (1 ) |LE_SCC (7 ), \L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 + LLC */ \ +MOCS_ENTRY (48 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 */ \ +MOCS_ENTRY (49 , \ +LE_1_UC |LE_TC_1_LLC , \ +L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + LLC */ \ +MOCS_ENTRY (50 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_1_UC ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 */ \ +MOCS_ENTRY (51 , \ +LE_1_UC |LE_TC_1_LLC , \ +L3_1_UC ), \ +/* Gen12+: HW Reserved - HW Special Case (CCS) */ \ +MOCS_ENTRY (60 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_1_UC ), \ +/* Gen12+: HW Reserved - HW Special Case (Displayable) */ \ +MOCS_ENTRY (61 , \ +LE_1_UC |LE_TC_1_LLC |LE_SCF (1 ), \ +L3_3_WB ), \/* HW Reserved - SW program but never use */ \ MOCS_ENTRY(62, \ LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/4] drm/i915/tgl: Define MOCS entries for Tigerlake
Quoted 55 lines · Lucas De Marchi
From: Tomasz Lis <[email protected]>
The MOCS table is published as part of bspec, and versioned. Entries are supposed to never be modified, but new ones can be added. Adding entries increases table version. The patch includes version 1 entries.
Two of the 3 legacy entries used for gen9 are no longer expected to work. Although we are changing the gen11 table, those changes are supposed to be backward compatible since we are only touching previously undefined entries.
v2: Add the missing entries in 49-51 range and replace "HW reserved"
terminology to what it actually is: L1 is implicitly enabled (from Daniele)Cc Joonas Lahtinen <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Tomasz Lis <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_mocs.c | 37 +++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +7
-3@@ -62,6 +62,10 @@ struct drm_i915_mocs_table {#define GEN11_NUM_MOCS_ENTRIES 64/* 63-64 are reserved, but configured. */ /* (e)LLC caching options */ +/* +* Note: LE_0_PAGETABLE works only up to Gen11; for newer gens it means +* the same as LE_UC +*/ #define LE_0_PAGETABLE _LE_CACHEABILITY(0)#define LE_1_UC _LE_CACHEABILITY(1)#define LE_2_WT _LE_CACHEABILITY(2)@@ -100,8 +104,9 @@ struct drm_i915_mocs_table {* of bspec. * * Entries not part of the following tables are undefined as far as -* userspace is concerned and shouldn't be relied upon. For the time -* being they will be initialized to PTE. +* userspace is concerned and shouldn't be relied upon. For Gen < 12 +* they will be initialized to PTE. Gen >= 12 onwards don't have a setting for +* PTE. We use the same value, but that actually means Uncached. * * The last two entries are reserved by the hardware. For ICL+ they * should be initialized according to bspec and never used, for older @@ -137,11 +142,13 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = { };#define GEN11_MOCS_ENTRIES \ -/* Base - Uncached (Deprecated) */ \
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 154
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +3
-0+/* Gen11: Base - Uncached (Deprecated) */ \ +/* Gen12+: Base - Error (Reserved for Non-Use) */ \MOCS_ENTRY (I915_MOCS_UNCACHED , \LE_1_UC |LE_TC_1_LLC , \L3_1_UC ), \/* Base - L3 + LeCC:PAT (Deprecated) */ \ +/* Gen12+: Base - Reserved */ \MOCS_ENTRY (I915_MOCS_PTE , \LE_0_PAGETABLE |LE_TC_1_LLC , \ L3_3_WB), \
I've double-checked the specs and noticed that they now say that MOCS 0 and 1 should be set to all zeros for Gen12 (possibly just to highlight the fact that they're deprecated/reserved). These are not supposes to be used so programming them to different values shouldn't matter, but it might be worth sticking to the specs and add a separate Gen12 table.
I've confirmed all the other entries in the gen11 table are kept the same in the TGL one, and the ones added below match the table as well.
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +7
-0@@ -233,6 +240,30 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = {MOCS_ENTRY (23 , \LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ) |LE_RSC (1 ) |LE_SCC (7 ), \L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 + LLC */ \ +MOCS_ENTRY (48 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 */ \ + MOCS_ENTRY(49, \ + LE_1_UC | LE_TC_1_LLC, \
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 259
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +10
-0+ L3_3_WB), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + LLC */ \ +MOCS_ENTRY (50 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_1_UC ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 */ \ +MOCS_ENTRY (51 , \ +LE_1_UC |LE_TC_1_LLC , \ + L3_1_UC), \ +/* Gen12+: HW Reserved - HW Special Case (CCS) */ \
Entries 60 and 61 are not reserved for HW usage but are special cases that trigger implicit behaviors. I'd drop the "HW Reserved" tag and leave just "HW Special Case"
Daniele
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 269
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +7
-0+MOCS_ENTRY (60 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_1_UC ), \ +/* Gen12+: HW Reserved - HW Special Case (Displayable) */ \ +MOCS_ENTRY (61 , \ +LE_1_UC |LE_TC_1_LLC |LE_SCF (1 ), \ +L3_3_WB ), \/* HW Reserved - SW program but never use */ \ MOCS_ENTRY(62, \ LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/4] drm/i915/tgl: Define MOCS entries for Tigerlake
Quoted 61 lines · Daniele Ceraolo Spurio
Quoted 58 lines · Lucas De Marchi
From: Tomasz Lis <[email protected]>
The MOCS table is published as part of bspec, and versioned. Entries are supposed to never be modified, but new ones can be added. Adding entries increases table version. The patch includes version 1 entries.
Two of the 3 legacy entries used for gen9 are no longer expected to work. Although we are changing the gen11 table, those changes are supposed to be backward compatible since we are only touching previously undefined entries.
v2: Add the missing entries in 49-51 range and replace "HW reserved"
terminology to what it actually is: L1 is implicitly enabled (from Daniele)Cc Joonas Lahtinen <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Tomasz Lis <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_mocs.c | 37 +++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +9
-3@@ -62,6 +62,10 @@ struct drm_i915_mocs_table {#define GEN11_NUM_MOCS_ENTRIES 64/* 63-64 are reserved, but configured. */ /* (e)LLC caching options */ +/* +* Note: LE_0_PAGETABLE works only up to Gen11; for newer gens it means +* the same as LE_UC +*/ #define LE_0_PAGETABLE _LE_CACHEABILITY(0)#define LE_1_UC _LE_CACHEABILITY(1)#define LE_2_WT _LE_CACHEABILITY(2)@@ -100,8 +104,9 @@ struct drm_i915_mocs_table {* of bspec. * * Entries not part of the following tables are undefined as far as -* userspace is concerned and shouldn't be relied upon. For the time -* being they will be initialized to PTE. +* userspace is concerned and shouldn't be relied upon. For Gen < 12 +* they will be initialized to PTE. Gen >= 12 onwards don't have a setting for +* PTE. We use the same value, but that actually means Uncached. * * The last two entries are reserved by the hardware. For ICL+ they * should be initialized according to bspec and never used, for older @@ -137,11 +142,13 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = { };#define GEN11_MOCS_ENTRIES \ -/* Base - Uncached (Deprecated) */ \ +/* Gen11: Base - Uncached (Deprecated) */ \ +/* Gen12+: Base - Error (Reserved for Non-Use) */ \ MOCS_ENTRY(I915_MOCS_UNCACHED, \ LE_1_UC | LE_TC_1_LLC, \ L3_1_UC), \
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 154
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +1
-0/* Base - L3 + LeCC:PAT (Deprecated) */ \ +/* Gen12+: Base - Reserved */ \MOCS_ENTRY (I915_MOCS_PTE , \LE_0_PAGETABLE |LE_TC_1_LLC , \ L3_3_WB), \I've double-checked the specs and noticed that they now say that MOCS 0 and 1 should be set to all zeros for Gen12 (possibly just to highlight the fact that they're deprecated/reserved). These are not supposes to be used so programming them to different values shouldn't matter, but it might be worth sticking to the specs and add a separate Gen12 table.
I noticed that too, but while implementing the IGT tests. These are 0, but they are RO, it doesn't matter what we write on them.
I could add a comment here and change the IGT test to check they are in fact 0 (rather than setting them as unused). Would this cover your concern? I feel reluctant to add a big table like this per platform if there's a wayto avoid it.
Quoted 18 lines
I've confirmed all the other entries in the gen11 table are kept the same in the TGL one, and the ones added below match the table as well.
Quoted 15 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +11
-0@@ -233,6 +240,30 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = {MOCS_ENTRY (23 , \LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ) |LE_RSC (1 ) |LE_SCC (7 ), \L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 + LLC */ \ +MOCS_ENTRY (48 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + L3 */ \ +MOCS_ENTRY (49 , \ +LE_1_UC |LE_TC_1_LLC , \ +L3_3_WB ), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 + LLC */ \ + MOCS_ENTRY(50, \ + LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 259
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +6
-0+ L3_1_UC), \ +/* Gen12+: Implicitly enable L1 - HDC:L1 */ \ +MOCS_ENTRY (51 , \ +LE_1_UC |LE_TC_1_LLC , \ + L3_1_UC), \ +/* Gen12+: HW Reserved - HW Special Case (CCS) */ \Entries 60 and 61 are not reserved for HW usage but are special cases that trigger implicit behaviors. I'd drop the "HW Reserved" tag and leave just "HW Special Case"
ok
thanks
Lucas De Marchi
Quoted 14 lines
Daniele
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 269
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +7
-0+MOCS_ENTRY (60 , \ +LE_3_WB |LE_TC_1_LLC |LE_LRUM (3 ), \ +L3_1_UC ), \ +/* Gen12+: HW Reserved - HW Special Case (Displayable) */ \ +MOCS_ENTRY (61 , \ +LE_1_UC |LE_TC_1_LLC |LE_SCF (1 ), \ +L3_3_WB ), \/* HW Reserved - SW program but never use */ \ MOCS_ENTRY(62, \ LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/4] drm/i915/tgl: Define MOCS entries for Tigerlake
Quoted 73 lines · Lucas De Marchi
Quoted 63 lines · Daniele Ceraolo Spurio
Quoted 60 lines · Lucas De Marchi
From: Tomasz Lis <[email protected]>
The MOCS table is published as part of bspec, and versioned. Entries are supposed to never be modified, but new ones can be added. Adding entries increases table version. The patch includes version 1 entries.
Two of the 3 legacy entries used for gen9 are no longer expected to work. Although we are changing the gen11 table, those changes are supposed to be backward compatible since we are only touching previously undefined entries.
v2: Add the missing entries in 49-51 range and replace "HW reserved" terminology to what it actually is: L1 is implicitly enabled (from Daniele)
Cc Joonas Lahtinen <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Tomasz Lis <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>---
drivers/gpu/drm/i915/gt/intel_mocs.c | 37 +++++++++++++++++++++++++---1 file changed, 34 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +6
-2@@ -62,6 +62,10 @@ struct drm_i915_mocs_table { #define GEN11_NUM_MOCS_ENTRIES 64 /* 63-64 are reserved, but configured. */ /* (e)LLC caching options */ +/* + * Note: LE_0_PAGETABLE works only up to Gen11; for newer gens it means + * the same as LE_UC + */ #define LE_0_PAGETABLE _LE_CACHEABILITY(0) #define LE_1_UC _LE_CACHEABILITY(1) #define LE_2_WT _LE_CACHEABILITY(2)@@ -100,8 +104,9 @@ struct drm_i915_mocs_table { * of bspec. * * Entries not part of the following tables are undefined as far as - * userspace is concerned and shouldn't be relied upon. For the time - * being they will be initialized to PTE. + * userspace is concerned and shouldn't be relied upon. For Gen < 12 + * they will be initialized to PTE. Gen >= 12 onwards don't have asetting for
+ * PTE. We use the same value, but that actually means Uncached. *
* The last two entries are reserved by the hardware. For ICL+ they
* should be initialized according to bspec and never used, for olderdrivers/gpu/drm/i915/gt/intel_mocs.c +2
-1@@ -137,11 +142,13 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = { }; #define GEN11_MOCS_ENTRIES \ - /* Base - Uncached (Deprecated) */ \ + /* Gen11: Base - Uncached (Deprecated) */ \ + /* Gen12+: Base - Error (Reserved for Non-Use) */ \ MOCS_ENTRY(I915_MOCS_UNCACHED, \ LE_1_UC | LE_TC_1_LLC, \ L3_1_UC), \Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 154
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +1
-0/* Base - L3 + LeCC:PAT (Deprecated) */ \ + /* Gen12+: Base - Reserved */ \ MOCS_ENTRY(I915_MOCS_PTE, \ LE_0_PAGETABLE | LE_TC_1_LLC, \ L3_3_WB), \I've double-checked the specs and noticed that they now say that MOCS 0 and 1 should be set to all zeros for Gen12 (possibly just to highlight the fact that they're deprecated/reserved). These are not supposes to be used so programming them to different values shouldn't matter, but it might be worth sticking to the specs and add a separate Gen12 table.
Quoted 8 lines
I noticed that too, but while implementing the IGT tests. These are 0, but they are RO, it doesn't matter what we write on them.
I could add a comment here and change the IGT test to check they are in fact 0 (rather than setting them as unused). Would this cover your concern? I feel reluctant to add a big table like this per platform if there's a wayto avoid it.
Yes, that works for me.
Daniele
Quoted 29 lines
Quoted 20 lines
I've confirmed all the other entries in the gen11 table are kept the same in the TGL one, and the ones added below match the table as well.
Quoted 16 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +11
-0@@ -233,6 +240,30 @@ static const struct drm_i915_mocs_entry broxton_mocs_table[] = { MOCS_ENTRY(23, \ LE_3_WB | LE_TC_1_LLC | LE_LRUM(3) | LE_RSC(1) | LE_SCC(7), \ L3_3_WB), \ + /* Gen12+: Implicitly enable L1 - HDC:L1 + L3 + LLC */ \ + MOCS_ENTRY(48, \ + LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \ + L3_3_WB), \ + /* Gen12+: Implicitly enable L1 - HDC:L1 + L3 */ \ + MOCS_ENTRY(49, \ + LE_1_UC | LE_TC_1_LLC, \ + L3_3_WB), \ + /* Gen12+: Implicitly enable L1 - HDC:L1 + LLC */ \ + MOCS_ENTRY(50, \ + LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_mocs.c static const struct drm_i915_mocs_entry broxton_mocs_table[] = { · line 259
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +6
-0+ L3_1_UC), \ + /* Gen12+: Implicitly enable L1 - HDC:L1 */ \ + MOCS_ENTRY(51, \ + LE_1_UC | LE_TC_1_LLC, \ + L3_1_UC), \ + /* Gen12+: HW Reserved - HW Special Case (CCS) */ \Entries 60 and 61 are not reserved for HW usage but are special cases that trigger implicit behaviors. I'd drop the "HW Reserved" tag and leave just "HW Special Case"
Quoted 19 lines
ok
thanks
Lucas De MarchiQuoted 14 lines
Daniele
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +7
-0+ MOCS_ENTRY(60, \ + LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), \ + L3_1_UC), \ + /* Gen12+: HW Reserved - HW Special Case (Displayable) */ \ + MOCS_ENTRY(61, \ + LE_1_UC | LE_TC_1_LLC | LE_SCF(1), \ + L3_3_WB), \ /* HW Reserved - SW program but never use */ \ MOCS_ENTRY(62, \
LE_3_WB|LE_TC_1_LLC|LE_LRUM(3), \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 drm/i915/tgl: Tigerlake only has global MOCS registers
In reply to Lucas De MarchiFrom: Michel Thierry <[email protected]>
Until Icelake, each engine had its own set of 64 MOCS registers. In order to simplify, Tigerlake moves to only 64 Global MOCS registers, which are no longer part of the engine context. Since these registers are now global, they also only need to be initialized once.
From Gen12 onwards, MOCS must specify the target cache (3:2) and LRU management (5:4) fields and cannot be programmed to 'use the value from Private PAT', because these fields are no longer part of the PPAT. Also cacheability control (1:0) field has changed, 00 no longer means 'use controls from page table', but uncacheable (UC).
v2: Move the changes to the fault registers to a separate commit - the old ones
overlap with the range used by the new global MOCS (requested by Daniele)
--- drivers/gpu/drm/i915/gt/intel_mocs.c | 47 ++++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 2 + drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 6 ++- drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 8 files changed, 60 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +47 -0
@@ -377,6 +377,10 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)unsigned int index;u32 unused_value; +/* Platforms with global MOCS do not need per-engine initialization. */ +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; +/* Called under a blanket forcewake */ assert_forcewakes_active (uncore,FORCEWAKE_ALL );
@@ -401,6 +405,46 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } +/** +* intel_mocs_init_global() - program the global mocs registers +* gt: pointer to struct intel_gt +* +* This function initializes the MOCS global registers. +*/ +void intel_mocs_init_global (struct intel_gt *gt) +{ +struct intel_uncore *uncore = gt->uncore; +struct drm_i915_mocs_table table; +unsigned int index; + +if (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; + +if (!get_mocs_settings (gt, &table)) +return ; + +if (GEM_DEBUG_WARN_ON (table.size > table.n_entries)) +return ; + +for (index =0 ; index < table.size; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[index].control_value); + +/* +* Ok, now set the unused entries to uncached. These entries +* are officially undefined and no contract for the contents +* and settings is given for these entries. +* +* Entry 0 in the table is uncached - so we are just writing +* that value to all the used entries. +*/ +for (; index < table.n_entries; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[0 ].control_value); +} +/** * emit_mocs_control_table() - emit the mocs control table * @rq: Request to set up the MOCS table for.
@@ -604,6 +648,9 @@ int intel_rcs_context_init_mocs(struct i915_request *rq)struct drm_i915_mocs_table t;int ret; +if (HAS_GLOBAL_MOCS_REGISTERS (rq->i915)) +return 0 ; +if (get_mocs_settings (rq->engine->gt, &t)) {/* Program the RCS control registers */ ret =emit_mocs_control_table (rq, &t);
drivers/gpu/drm/i915/gt/intel_mocs.h +1 -0
@@ -56,6 +56,7 @@ struct intel_gt;int intel_rcs_context_init_mocs (struct i915_request *rq);void intel_mocs_init_l3cc_table (struct intel_gt *gt); +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);#endif
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -2280,6 +2280,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_POOLED_EU (dev_priv) (INTEL_INFO(dev_priv)->has_pooled_eu) +#define HAS_GLOBAL_MOCS_REGISTERS (dev_priv) (INTEL_INFO(dev_priv)->has_global_mocs) +#define INTEL_PCH_DEVICE_ID_MASK 0xff80#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00#define INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00
drivers/gpu/drm/i915/i915_gem.c +1 -0
@@ -1252,6 +1252,7 @@ int i915_gem_init_hw(struct drm_i915_private *i915) goto out; } +intel_mocs_init_global (gt);intel_mocs_init_l3cc_table (gt);intel_engines_set_scheduler_caps (i915);
drivers/gpu/drm/i915/i915_gpu_error.c +4 -2
@@ -1524,8 +1524,10 @@ static void capture_reg_state(struct i915_gpu_state *error)if (INTEL_GEN (i915) >=6 ) { error->derrmr =intel_uncore_read (uncore,DERRMR ); - error->error =intel_uncore_read (uncore,ERROR_GEN6 ); - error->done_reg =intel_uncore_read (uncore,DONE_REG ); +if (INTEL_GEN (i915) <12 ) { + error->error =intel_uncore_read (uncore,ERROR_GEN6 ); + error->done_reg =intel_uncore_read (uncore,DONE_REG ); + } }if (INTEL_GEN (i915) >=5 )
drivers/gpu/drm/i915/i915_pci.c +2 -1
@@ -783,7 +783,8 @@ static const struct intel_device_info intel_elkhartlake_info = { [TRANSCODER_D] = TRANSCODER_D_OFFSET, \ [TRANSCODER_DSI_0] = TRANSCODER_DSI0_OFFSET, \ [TRANSCODER_DSI_1 ] =TRANSCODER_DSI1_OFFSET , \ - } + }, \ + .has_global_mocs = 1static const struct intel_device_info intel_tigerlake_12_info = {GEN12_FEATURES ,
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -11210,6 +11210,8 @@ enum skl_power_gate {#define PMFLUSH_GAPL3UNBLOCK (1 << 21)#define PMFLUSHDONE_LNEBLK (1 << 22) +#define GEN12_GLOBAL_MOCS (i) _MMIO(0x4000 + (i) * 4)/* Global MOCS regs */ +/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)#define GEN8_L3_LRA_1_GPGPU_DEFAULT_VALUE_BDW 0x67F1427F/* max/min for LRA1/2 */
drivers/gpu/drm/i915/intel_device_info.h +1 -0
@@ -112,6 +112,7 @@ enum intel_ppgtt_type {func (gpu_reset_clobbers_display); \func (has_reset_engine); \func (has_fpga_dbg); \ +func (has_global_mocs); \func (has_gt_uc); \func (has_l3_dpf); \func (has_llc); \
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/4] drm/i915/tgl: Tigerlake only has global MOCS registers
Quoted 80 lines · Lucas De Marchi
From: Michel Thierry <[email protected]>
Until Icelake, each engine had its own set of 64 MOCS registers. In order to simplify, Tigerlake moves to only 64 Global MOCS registers, which are no longer part of the engine context. Since these registers are now global, they also only need to be initialized once.
From Gen12 onwards, MOCS must specify the target cache (3:2) and LRU
management (5:4) fields and cannot be programmed to 'use the value from Private PAT', because these fields are no longer part of the PPAT. Also cacheability control (1:0) field has changed, 00 no longer means 'use controls from page table', but uncacheable (UC).v2: Move the changes to the fault registers to a separate commit - the old ones
overlap with the range used by the new global MOCS (requested by Daniele)Cc Daniele Ceraolo Spurio <[email protected]>Cc Tomasz Lis <[email protected]>Signed-off-by Michel Thierry <[email protected]>Signed-off-by Tvrtko Ursulin <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_mocs.c | 47 ++++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 2 + drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 6 ++- drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 8 files changed, 60 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +32
-0@@ -377,6 +377,10 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)unsigned int index;u32 unused_value; +/* Platforms with global MOCS do not need per-engine initialization. */ +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; +/* Called under a blanket forcewake */ assert_forcewakes_active (uncore,FORCEWAKE_ALL );@@ -401,6 +405,46 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } +/** +* intel_mocs_init_global() - program the global mocs registers +* gt: pointer to struct intel_gt +* +* This function initializes the MOCS global registers. +*/ +void intel_mocs_init_global (struct intel_gt *gt) +{ +struct intel_uncore *uncore = gt->uncore; +struct drm_i915_mocs_table table; +unsigned int index; + +if (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; + +if (!get_mocs_settings (gt, &table)) +return ; + +if (GEM_DEBUG_WARN_ON (table.size > table.n_entries)) +return ; + +for (index =0 ; index < table.size; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[index].control_value); + +/* +* Ok, now set the unused entries to uncached. These entries
drivers/gpu/drm/i915/gt/intel_mocs.c void intel_mocs_init_engine(struct intel_engine_cs *engine) · line 445
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +10
-0+* are officially undefined and no contract for the contents +* and settings is given for these entries. +* +* Entry 0 in the table is uncached - so we are just writing +* that value to all the used entries. +*/ +for (; index < table.n_entries; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[0 ].control_value);
While get_mocs_settings() can return a table with less than 64 entries, it will never be the case for platforms supporting global MOCS. So this for() is actually a dead code.. but removing it could cause harm in case this is forgotten and modifications are made, so I'd leave it as is.
R-b: Tomasz Lis <[email protected]>
-Tomasz
Quoted 101 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +5
-0+} +/** * emit_mocs_control_table() - emit the mocs control table * @rq: Request to set up the MOCS table for. @@ -604,6 +648,9 @@ int intel_rcs_context_init_mocs(struct i915_request *rq)struct drm_i915_mocs_table t;int ret; +if (HAS_GLOBAL_MOCS_REGISTERS (rq->i915)) +return 0 ; +if (get_mocs_settings (rq->engine->gt, &t)) {/* Program the RCS control registers */ ret =emit_mocs_control_table (rq, &t);drivers/gpu/drm/i915/gt/intel_mocs.h +1
-0@@ -56,6 +56,7 @@ struct intel_gt;int intel_rcs_context_init_mocs (struct i915_request *rq);void intel_mocs_init_l3cc_table (struct intel_gt *gt); +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);#endif drivers/gpu/drm/i915/i915_drv.h +2
-0@@ -2280,6 +2280,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_POOLED_EU (dev_priv) (INTEL_INFO(dev_priv)->has_pooled_eu) +#define HAS_GLOBAL_MOCS_REGISTERS (dev_priv) (INTEL_INFO(dev_priv)->has_global_mocs) +#define INTEL_PCH_DEVICE_ID_MASK 0xff80#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00#define INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00drivers/gpu/drm/i915/i915_gem.c +1
-0@@ -1252,6 +1252,7 @@ int i915_gem_init_hw(struct drm_i915_private *i915) goto out; } +intel_mocs_init_global (gt);intel_mocs_init_l3cc_table (gt);intel_engines_set_scheduler_caps (i915);drivers/gpu/drm/i915/i915_gpu_error.c +4
-2@@ -1524,8 +1524,10 @@ static void capture_reg_state(struct i915_gpu_state *error)if (INTEL_GEN (i915) >=6 ) { error->derrmr =intel_uncore_read (uncore,DERRMR ); - error->error =intel_uncore_read (uncore,ERROR_GEN6 ); - error->done_reg =intel_uncore_read (uncore,DONE_REG ); +if (INTEL_GEN (i915) <12 ) { + error->error =intel_uncore_read (uncore,ERROR_GEN6 ); + error->done_reg =intel_uncore_read (uncore,DONE_REG ); + } }if (INTEL_GEN (i915) >=5 )drivers/gpu/drm/i915/i915_pci.c +2
-1@@ -783,7 +783,8 @@ static const struct intel_device_info intel_elkhartlake_info = { [TRANSCODER_D] = TRANSCODER_D_OFFSET, \ [TRANSCODER_DSI_0] = TRANSCODER_DSI0_OFFSET, \ [TRANSCODER_DSI_1 ] =TRANSCODER_DSI1_OFFSET , \ - } + }, \ + .has_global_mocs = 1static const struct intel_device_info intel_tigerlake_12_info = {GEN12_FEATURES ,drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -11210,6 +11210,8 @@ enum skl_power_gate {#define PMFLUSH_GAPL3UNBLOCK (1 << 21)#define PMFLUSHDONE_LNEBLK (1 << 22) +#define GEN12_GLOBAL_MOCS (i) _MMIO(0x4000 + (i) * 4)/* Global MOCS regs */ +/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)#define GEN8_L3_LRA_1_GPGPU_DEFAULT_VALUE_BDW 0x67F1427F/* max/min for LRA1/2 */ drivers/gpu/drm/i915/intel_device_info.h +0
-0
drivers/gpu/drm/i915/intel_device_info.h enum intel_ppgtt_type { · line 118
Quoted 7 lines
drivers/gpu/drm/i915/intel_device_info.h +1
-0@@ -112,6 +112,7 @@ enum intel_ppgtt_type {func (gpu_reset_clobbers_display); \func (has_reset_engine); \func (has_fpga_dbg); \ +func (has_global_mocs); \func (has_gt_uc); \func (has_l3_dpf); \func (has_llc); \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/4] drm/i915/tgl: Tigerlake only has global MOCS registers
In reply to Lucas De MarchiQuoted 80 lines · Lucas De Marchi
From: Michel Thierry <[email protected]>
Until Icelake, each engine had its own set of 64 MOCS registers. In order to simplify, Tigerlake moves to only 64 Global MOCS registers, which are no longer part of the engine context. Since these registers are now global, they also only need to be initialized once.
From Gen12 onwards, MOCS must specify the target cache (3:2) and LRU
management (5:4) fields and cannot be programmed to 'use the value from Private PAT', because these fields are no longer part of the PPAT. Also cacheability control (1:0) field has changed, 00 no longer means 'use controls from page table', but uncacheable (UC).v2: Move the changes to the fault registers to a separate commit - the old ones
overlap with the range used by the new global MOCS (requested by Daniele)Cc Daniele Ceraolo Spurio <[email protected]>Cc Tomasz Lis <[email protected]>Signed-off-by Michel Thierry <[email protected]>Signed-off-by Tvrtko Ursulin <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_mocs.c | 47 ++++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 2 + drivers/gpu/drm/i915/i915_gem.c | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 6 ++- drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 8 files changed, 60 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +32
-0@@ -377,6 +377,10 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)unsigned int index;u32 unused_value; +/* Platforms with global MOCS do not need per-engine initialization. */ +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; +/* Called under a blanket forcewake */ assert_forcewakes_active (uncore,FORCEWAKE_ALL );@@ -401,6 +405,46 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine) unused_value); } +/** +* intel_mocs_init_global() - program the global mocs registers +* gt: pointer to struct intel_gt +* +* This function initializes the MOCS global registers. +*/ +void intel_mocs_init_global (struct intel_gt *gt) +{ +struct intel_uncore *uncore = gt->uncore; +struct drm_i915_mocs_table table; +unsigned int index; + +if (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +return ; + +if (!get_mocs_settings (gt, &table)) +return ; + +if (GEM_DEBUG_WARN_ON (table.size > table.n_entries)) +return ; + +for (index =0 ; index < table.size; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[index].control_value); + +/* +* Ok, now set the unused entries to uncached. These entries
drivers/gpu/drm/i915/gt/intel_mocs.c void intel_mocs_init_engine(struct intel_engine_cs *engine) · line 445
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +10
-0+* are officially undefined and no contract for the contents +* and settings is given for these entries. +* +* Entry 0 in the table is uncached - so we are just writing +* that value to all the used entries. +*/ +for (; index < table.n_entries; index++) +intel_uncore_write (uncore, +GEN12_GLOBAL_MOCS (index), + table.table[0].control_value) > +}
If we end up setting entry 0 to zero then the value here we should probably use a different entry (or just say we're setting everything to the invalid entry).
Quoted 56 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +4
-0+/** * emit_mocs_control_table() - emit the mocs control table * @rq: Request to set up the MOCS table for. @@ -604,6 +648,9 @@ int intel_rcs_context_init_mocs(struct i915_request *rq)struct drm_i915_mocs_table t;int ret; +if (HAS_GLOBAL_MOCS_REGISTERS (rq->i915)) +return 0 ; +if (get_mocs_settings (rq->engine->gt, &t)) {/* Program the RCS control registers */ ret =emit_mocs_control_table (rq, &t);drivers/gpu/drm/i915/gt/intel_mocs.h +1
-0@@ -56,6 +56,7 @@ struct intel_gt;int intel_rcs_context_init_mocs (struct i915_request *rq);void intel_mocs_init_l3cc_table (struct intel_gt *gt); +void intel_mocs_init_global (struct intel_gt *gt);void intel_mocs_init_engine (struct intel_engine_cs *engine);#endif drivers/gpu/drm/i915/i915_drv.h +2
-0@@ -2280,6 +2280,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_POOLED_EU (dev_priv) (INTEL_INFO(dev_priv)->has_pooled_eu) +#define HAS_GLOBAL_MOCS_REGISTERS (dev_priv) (INTEL_INFO(dev_priv)->has_global_mocs) +#define INTEL_PCH_DEVICE_ID_MASK 0xff80#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00#define INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00drivers/gpu/drm/i915/i915_gem.c +1
-0@@ -1252,6 +1252,7 @@ int i915_gem_init_hw(struct drm_i915_private *i915) goto out; } +intel_mocs_init_global (gt);intel_mocs_init_l3cc_table (gt);intel_engines_set_scheduler_caps (i915);drivers/gpu/drm/i915/i915_gpu_error.c +0
-0
drivers/gpu/drm/i915/i915_gpu_error.c static void capture_reg_state(struct i915_gpu_state *error) · line 1530
Quoted 9 lines
drivers/gpu/drm/i915/i915_gpu_error.c +4
-2@@ -1524,8 +1524,10 @@ static void capture_reg_state(struct i915_gpu_state *error)if (INTEL_GEN (i915) >=6 ) { error->derrmr =intel_uncore_read (uncore,DERRMR ); - error->error =intel_uncore_read (uncore,ERROR_GEN6 ); - error->done_reg =intel_uncore_read (uncore,DONE_REG ); +if (INTEL_GEN (i915) <12 ) { + error->error =intel_uncore_read (uncore,ERROR_GEN6 ); + error->done_reg =intel_uncore_read (uncore,DONE_REG ); + }
Apologies for missing this in the previous review, but this looks like it could be split out as well, with an explanation that the registers have been removed on gen12. We should probably also stop printing them in the error state.
Daniele
Quoted 36 lines
drivers/gpu/drm/i915/i915_gpu_error.c +0
-0}if (INTEL_GEN (i915) >=5 )drivers/gpu/drm/i915/i915_pci.c +2
-1@@ -783,7 +783,8 @@ static const struct intel_device_info intel_elkhartlake_info = { [TRANSCODER_D] = TRANSCODER_D_OFFSET, \ [TRANSCODER_DSI_0] = TRANSCODER_DSI0_OFFSET, \ [TRANSCODER_DSI_1 ] =TRANSCODER_DSI1_OFFSET , \ - } + }, \ + .has_global_mocs = 1static const struct intel_device_info intel_tigerlake_12_info = {GEN12_FEATURES ,drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -11210,6 +11210,8 @@ enum skl_power_gate {#define PMFLUSH_GAPL3UNBLOCK (1 << 21)#define PMFLUSHDONE_LNEBLK (1 << 22) +#define GEN12_GLOBAL_MOCS (i) _MMIO(0x4000 + (i) * 4)/* Global MOCS regs */ +/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)#define GEN8_L3_LRA_1_GPGPU_DEFAULT_VALUE_BDW 0x67F1427F/* max/min for LRA1/2 */ drivers/gpu/drm/i915/intel_device_info.h +0
-0
drivers/gpu/drm/i915/intel_device_info.h enum intel_ppgtt_type { · line 118
Quoted 7 lines
drivers/gpu/drm/i915/intel_device_info.h +1
-0@@ -112,6 +112,7 @@ enum intel_ppgtt_type {func (gpu_reset_clobbers_display); \func (has_reset_engine); \func (has_fpga_dbg); \ +func (has_global_mocs); \func (has_gt_uc); \func (has_l3_dpf); \func (has_llc); \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 drm/i915: Move MOCS setup to intel_mocs.c
In reply to Lucas De MarchiFrom: Tvrtko Ursulin <[email protected]>
Hide the details of MOCS setup from i915_gem by moving both current calls into one in intel_mocs_init.
--- drivers/gpu/drm/i915/gt/intel_mocs.c | 15 +++++++++++---- drivers/gpu/drm/i915/gt/intel_mocs.h | 3 +-- drivers/gpu/drm/i915/i915_gem.c | 3 +-- 3 files changed, 13 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +11 -4
@@ -411,14 +411,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)* * This function initializes the MOCS global registers. */ -void intel_mocs_init_global (struct intel_gt *gt) +static void intel_mocs_init_global (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table;unsigned int index; -if (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) -return ; +GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));if (!get_mocs_settings (gt, &table))return ;
@@ -587,7 +586,7 @@ static int emit_mocs_l3cc_table(struct i915_request *rq,* * Return: Nothing. */ -void intel_mocs_init_l3cc_table (struct intel_gt *gt) +static void intel_mocs_init_l3cc_table (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table;
@@ -665,3 +664,11 @@ int intel_rcs_context_init_mocs(struct i915_request *rq)return 0 ; } + +void intel_mocs_init (struct intel_gt *gt) +{ +intel_mocs_init_l3cc_table (gt); + +if (HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) +intel_mocs_init_global (gt); +}
drivers/gpu/drm/i915/gt/intel_mocs.h +1 -2
@@ -55,8 +55,7 @@ struct intel_engine_cs;struct intel_gt ;int intel_rcs_context_init_mocs (struct i915_request *rq); -void intel_mocs_init_l3cc_table (struct intel_gt *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);#endif
drivers/gpu/drm/i915/i915_gem.c +1 -2
@@ -1252,8 +1252,7 @@ int i915_gem_init_hw(struct drm_i915_private *i915) goto out; } -intel_mocs_init_global (gt); -intel_mocs_init_l3cc_table (gt); +intel_mocs_init (gt);intel_engines_set_scheduler_caps (i915);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/4] drm/i915: Move MOCS setup to intel_mocs.c
Quoting Lucas De Marchi (2019-07-26 01:12:08)
Quoted 47 lines
From: Tvrtko Ursulin <[email protected]>
Hide the details of MOCS setup from
i915_gemby moving both current calls into one inintel_mocs_init.Cc Stuart Summers <[email protected]>Signed-off-by Tvrtko Ursulin <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>Reviewed-by Stuart Summers <[email protected]>--- drivers/gpu/drm/i915/gt/intel_mocs.c | 15 +++++++++++---- drivers/gpu/drm/i915/gt/intel_mocs.h | 3 +-- drivers/gpu/drm/i915/i915_gem.c | 3 +-- 3 files changed, 13 insertions(+), 8 deletions(-)drivers/gpu/drm/i915/gt/intel_mocs.c +3
-4@@ -411,14 +411,13 @@ void intel_mocs_init_engine(struct intel_engine_cs *engine)* * This function initializes the MOCS global registers. */ -void intel_mocs_init_global (struct intel_gt *gt) +static void intel_mocs_init_global (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table;unsigned int index; -if (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915)) -return ; +GEM_BUG_ON (!HAS_GLOBAL_MOCS_REGISTERS (gt->i915));if (!get_mocs_settings (gt, &table))return ;@@ -587,7 +586,7 @@ static int emit_mocs_l3cc_table(struct i915_request *rq,* * Return: Nothing. */ -void intel_mocs_init_l3cc_table (struct intel_gt *gt) +static void intel_mocs_init_l3cc_table (struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;struct drm_i915_mocs_table table;
drivers/gpu/drm/i915/gt/intel_mocs.c int intel_rcs_context_init_mocs(struct i915_request *rq) · line 668
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_mocs.c +2
-0@@ -665,3 +664,11 @@ int intel_rcs_context_init_mocs(struct i915_request *rq)return 0 ; } + +void intel_mocs_init (struct intel_gt *gt)
* quietly mutters intel_gt_init_mocs() (to be called from intel_gt_init() [or better name], formerly known as i915_gem_init_hw). -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for Tiger Lake: MOCS table handling
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Tiger Lake: MOCS table handling
URL : https://patchwork.freedesktop.org/series/64275/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
80a9b7285063 drm/i915/tgl: Move fault registers to their new offset
9efbb1606638 drm/i915/tgl: Define MOCS entries for Tigerlake
-:16: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#16:
terminology to what it actually is: L1 is implicitly enabled (from Daniele)total: 0 errors, 1 warnings, 0 checks, 65 lines checked169b3fd24700 drm/i915/tgl: Tigerlake only has global MOCS registers
-:17: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #17:
v2: Move the changes to the fault registers to a separate commit - the old ones
total: 0 errors, 1 warnings, 0 checks, 123 lines checked f17795a44dfc drm/i915: Move MOCS setup to intel_mocs.c
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for Tiger Lake: MOCS table handling
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Tiger Lake: MOCS table handling
URL : https://patchwork.freedesktop.org/series/64275/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6557 -> Patchwork_13766
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/
Known issues
------------
Here are the changes found in Patchwork_13766 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload-with-fault-injection:
- fi-snb-2520m: [PASS][1] -> [INCOMPLETE][2] ([fdo#105411])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-snb-2520m/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-snb-2520m/igt@[email protected]
* igt@kms_chamelium@hdmi-crc-fast:
- fi-icl-u2: [PASS][3] -> [FAIL][4] ([fdo#109635 ])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_exec@basic:
- fi-icl-u3: [DMESG-WARN][5] ([fdo#107724]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-u3/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-icl-dsi: [DMESG-FAIL][7] ([fdo#110899]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-dsi/igt@i915_selftest@live_blt.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-dsi/igt@i915_selftest@live_blt.html
* igt@kms_busy@basic-flip-a:
- fi-kbl-7567u: [SKIP][9] ([fdo#109271] / [fdo#109278]) -> [PASS][10] +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-kbl-7567u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-kbl-7567u/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- {fi-icl-u4}: [FAIL][11] ([fdo#109485]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-u4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-u4/igt@[email protected]
#### Warnings ####
* igt@i915_module_load@reload:
- fi-icl-u3: [TIMEOUT][13] ([fdo#109673] / [fdo#111214]) -> [TIMEOUT][14] ([fdo#111214])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-u3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-u3/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-icl-dsi: [INCOMPLETE][15] ([fdo#107713] / [fdo#108569]) -> [DMESG-FAIL][16] ([fdo#111144])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/fi-icl-dsi/igt@i915_selftest@live_hangcheck.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/fi-icl-dsi/igt@i915_selftest@live_hangcheck.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#109673]: https://bugs.freedesktop.org/show_bug.cgi?id=109673
[fdo#110899]: https://bugs.freedesktop.org/show_bug.cgi?id=110899
[fdo#111144]: https://bugs.freedesktop.org/show_bug.cgi?id=111144
[fdo#111214]: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Participating hosts (53 -> 44)
------------------------------
Additional (1): fi-pnv-d510
Missing (10): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-apl-guc fi-cfl-8109u fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6557 -> Patchwork_13766
CI-20190529: 20190529
CI_DRM_6557: 2ebd69f583d23b295265832f168e39427a8bd863 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5112: 7e4d10507088055413769a020dd674f52b4bc1b0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13766: f17795a44dfc9451d3c550ab014ffacacf8e28f7 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
f17795a44dfc drm/i915: Move MOCS setup to intel_mocs.c 169b3fd24700 drm/i915/tgl: Tigerlake only has global MOCS registers 9efbb1606638 drm/i915/tgl: Define MOCS entries for Tigerlake 80a9b7285063 drm/i915/tgl: Move fault registers to their new offset
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for Tiger Lake: MOCS table handling
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Tiger Lake: MOCS table handling
URL : https://patchwork.freedesktop.org/series/64275/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6557_full -> Patchwork_13766_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_13766_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_13766_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_13766_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_mocs_settings@mocs-reset-ctx-render:
- shard-iclb: [PASS][1] -> [FAIL][2] +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb1/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_13766_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108566])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-apl4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-apl6/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-ytiled:
- shard-skl: [PASS][5] -> [FAIL][6] ([fdo#103184] / [fdo#103232]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl9/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [PASS][7] -> [FAIL][8] ([fdo#103167]) +2 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([fdo#108566])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-kbl3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-kbl6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#109642] / [fdo#111068])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb2/igt@kms_psr2_su@page_flip.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb6/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#108341])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb3/igt@kms_psr@no_drrs.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb1/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#109441]) +4 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb3/igt@kms_psr@psr2_sprite_plane_move.html
#### Possible fixes ####
* igt@gem_eio@in-flight-suspend:
- shard-kbl: [DMESG-WARN][17] ([fdo#108566]) -> [PASS][18] +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-kbl6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-kbl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: [INCOMPLETE][19] ([fdo#110741]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl1/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-render-xtiled:
- shard-skl: [FAIL][21] ([fdo#103184] / [fdo#103232]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl9/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl10/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank:
- shard-glk: [FAIL][23] ([fdo#105363]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-glk8/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-glk3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-skl: [INCOMPLETE][25] ([fdo#109507]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl4/igt@[email protected]
- shard-apl: [DMESG-WARN][27] ([fdo#108566]) -> [PASS][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-apl8/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-apl5/igt@[email protected]
* igt@kms_flip@modeset-vs-vblank-race:
- shard-glk: [FAIL][29] ([fdo#103060]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-glk9/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-glk5/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- shard-iclb: [FAIL][31] ([fdo#103167]) -> [PASS][32] +6 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-skl: [INCOMPLETE][33] ([fdo#104108]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][35] ([fdo#108145]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl8/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb1/igt@kms_psr@psr2_cursor_mmap_cpu.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@perf_pmu@busy-hang-bcs0:
- shard-iclb: [FAIL][39] -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb1/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb1/igt@[email protected]
* igt@perf_pmu@rc6-runtime-pm-long:
- shard-iclb: [FAIL][41] ([fdo#105010]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-iclb6/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-iclb6/igt@[email protected]
#### Warnings ####
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc:
- shard-skl: [FAIL][43] ([fdo#103167]) -> [FAIL][44] ([fdo#108040])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6557/shard-skl9/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13766/shard-skl10/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html
[fdo#103060]: https://bugs.freedesktop.org/show_bug.cgi?id=103060
[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#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105010]: https://bugs.freedesktop.org/show_bug.cgi?id=105010
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110741]: https://bugs.freedesktop.org/show_bug.cgi?id=110741
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
Participating hosts (9 -> 9)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6557 -> Patchwork_13766
CI-20190529: 20190529
CI_DRM_6557: 2ebd69f583d23b295265832f168e39427a8bd863 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5112: 7e4d10507088055413769a020dd674f52b4bc1b0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13766: f17795a44dfc9451d3c550ab014ffacacf8e28f7 @ 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_13766/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx