drm/i915/mtl: enable local stolen memory
Subsystems (2)
PATCH 1/1 drm/i915/mtl: enable local stolen memory
As an integrated GPU, MTL does not have local memory and HAS_LMEM() returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.
Original-author: CQ Tang
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 + 3 files changed, 100 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +96 -17
@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *i915,mutex_unlock (&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ +if (!HAS_BAR2_SMEM_STOLEN (i915)) { +if (dsm->start ==0 ) +return true; + } + +if (dsm->end <= dsm->start) +return true; + +return false; +} +static int i915_adjust_stolen (struct drm_i915_private *i915,struct resource *dsm) {
@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,struct intel_uncore *uncore = ggtt->vm.gt->uncore;struct resource *r; -if (dsm->start ==0 || dsm->end <= dsm->start) +if (is_dsm_invalid (i915, dsm))return -EINVAL ;/*
@@ -136,7 +149,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* overlaps with the non-stolen system memory range, since lmem is local * to the gpu. */ -if (HAS_LMEM (i915)) +if (HAS_LMEM (i915) ||HAS_BAR2_SMEM_STOLEN (i915))return 0 ;/*
@@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915,drm_dbg (&i915->drm,"GEN6_STOLEN_RESERVED = 0x%016llx\n" , reg_val); - *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; -switch (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ) {case GEN8_STOLEN_RESERVED_1M : *size =1024 *1024 ;
@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, *size =8 *1024 *1024 ;MISSING_CASE (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ); } + +if ((GRAPHICS_VER_FULL (i915) >=IP_VER (12 ,70 )) && !IS_DGFX (i915)) +/* the base is initialized to stolen top so subtract size to get base */ + *base -= *size; +else + *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; }static int i915_gem_init_stolen (struct intel_memory_region *mem)
@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)if (i915_adjust_stolen (i915, &i915->dsm))return 0 ; -GEM_BUG_ON (i915->dsm.start ==0 ); -GEM_BUG_ON (i915->dsm.end <= i915->dsm.start); +GEM_BUG_ON (is_dsm_invalid (i915, &i915->dsm)); stolen_top = i915->dsm.end +1 ; reserved_base = stolen_top;
@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ; +case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe: +return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915) +{ +u32 regions =RUNTIME_INFO (i915)->memory_regions; + +if (regions ®ION_LMEM ) +return false; + +drm_WARN_ON (&i915->drm, (regions ®ION_STOLEN_LMEM ) ==0 ); + +return true; +} +struct intel_memory_region *i915_gem_stolen_lmem_setup (struct drm_i915_private *i915,u16 type,u16 instance)
@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,struct intel_memory_region *mem;resource_size_t io_start, io_size;resource_size_t min_page_size; +int ret;if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); -if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +if (!i915_pci_resource_valid (pdev,GFXMEM_BAR ))return ERR_PTR (-ENXIO ); -/* Use DSM base address instead for stolen memory */ - dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); -if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR ); -if (WARN_ON (lmem_size < dsm_base)) -return ERR_PTR (-ENODEV ); +if (lmembar_is_igpu_stolen (i915) ||IS_DG1 (i915)) { + lmem_size =pci_resource_len (pdev,GFXMEM_BAR ); }else {resource_size_t lmem_range;
@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *=SZ_1G ; } - dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { +if (HAS_BAR2_SMEM_STOLEN (i915)) { +/* +* MTL dsm size is in GGC register, not the bar size. +* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret =get_mtl_gms_size (uncore); +if (ret <0 ) { +drm_err (&i915->drm,"invalid MTL GGC register setting\n" ); +return ERR_PTR (ret); + } + + dsm_base =0 ; + dsm_size = (resource_size_t)(ret *SZ_1M ); + +GEM_BUG_ON (pci_resource_len (pdev,GFXMEM_BAR ) !=256 *SZ_1M ); +GEM_BUG_ON ((dsm_size +8 *SZ_1M ) > lmem_size); + }else { +/* Use DSM base address instead for stolen memory */ + dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (WARN_ON (lmem_size < dsm_base)) +return ERR_PTR (-ENODEV ); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; +if (pci_resource_len (pdev,GFXMEM_BAR ) < dsm_size) { io_start =0 ; io_size =0 ; + }else if (HAS_BAR2_SMEM_STOLEN (i915)) { + io_start =pci_resource_start (pdev,GFXMEM_BAR ) +8 *SZ_1M ; }else { - io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; - io_size = dsm_size; + io_start =pci_resource_start (pdev,GFXMEM_BAR ) + dsm_base; } min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K :
drivers/gpu/drm/i915/gt/intel_ggtt.c +1 -1
@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; -if (!HAS_LMEM (i915)) { +if (!HAS_LMEM (i915) && !HAS_BAR2_SMEM_STOLEN (i915)) {if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR ))return -ENXIO ;
drivers/gpu/drm/i915/i915_drv.h +3 -0
@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct intel_device_info *mkwrite_device_info (struct drm_i915_private *dev_priv)
Signature · 1 line
2.25.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/1] drm/i915/mtl: enable local stolen memory
== Series Details ==
== Series Details ==
Series: series starting with [1/1] drm/i915/mtl: enable local stolen memory
URL : https://patchwork.freedesktop.org/series/108767/
State : warning
== Summary ==
Error: dim checkpatch failed7dfaf4034615 drm/i915/mtl: enable local stolen memory
-:231: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects? #231: FILE: drivers/gpu/drm/i915/i915_drv.h:976:
+#define HAS_BAR2_SMEM_STOLEN(i915) (!HAS_LMEM(i915) && \
+ GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70))
total: 0 errors, 0 warnings, 1 checks, 193 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/1] drm/i915/mtl: enable local stolen memory
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: series starting with [1/1] drm/i915/mtl: enable local stolen memory
URL : https://patchwork.freedesktop.org/series/108767/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Jani Nikula
maintainerQuoted 25 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 + 3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0
drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct drm_i915_private *i915, · line 80
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *i915,mutex_unlock (&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm)
Abstracting this as a separate function looks like a separate patch.
I generally recommend using positive naming, "is dsm valid", to avoid any double negatives that might pop up, now or in the future. !is_dsm_invalid() gets slower for human brains to parse.
BR,
Jani.
Quoted 207 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +95
-17+{ +if (!HAS_BAR2_SMEM_STOLEN (i915)) { +if (dsm->start ==0 ) +return true; + } + +if (dsm->end <= dsm->start) +return true; + +return false; +} +static int i915_adjust_stolen (struct drm_i915_private *i915,struct resource *dsm) {@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,struct intel_uncore *uncore = ggtt->vm.gt->uncore;struct resource *r; -if (dsm->start ==0 || dsm->end <= dsm->start) +if (is_dsm_invalid (i915, dsm))return -EINVAL ;/* @@ -136,7 +149,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* overlaps with the non-stolen system memory range, since lmem is local * to the gpu. */ -if (HAS_LMEM (i915)) +if (HAS_LMEM (i915) ||HAS_BAR2_SMEM_STOLEN (i915))return 0 ;/* @@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915,drm_dbg (&i915->drm,"GEN6_STOLEN_RESERVED = 0x%016llx\n" , reg_val); - *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; -switch (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ) {case GEN8_STOLEN_RESERVED_1M : *size =1024 *1024 ;@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, *size =8 *1024 *1024 ;MISSING_CASE (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ); } + +if ((GRAPHICS_VER_FULL (i915) >=IP_VER (12 ,70 )) && !IS_DGFX (i915)) +/* the base is initialized to stolen top so subtract size to get base */ + *base -= *size; +else + *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; }static int i915_gem_init_stolen (struct intel_memory_region *mem)@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)if (i915_adjust_stolen (i915, &i915->dsm))return 0 ; -GEM_BUG_ON (i915->dsm.start ==0 ); -GEM_BUG_ON (i915->dsm.end <= i915->dsm.start); +GEM_BUG_ON (is_dsm_invalid (i915, &i915->dsm)); stolen_top = i915->dsm.end +1 ; reserved_base = stolen_top;@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ; +case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe: +return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915) +{ +u32 regions =RUNTIME_INFO (i915)->memory_regions; + +if (regions ®ION_LMEM ) +return false; + +drm_WARN_ON (&i915->drm, (regions ®ION_STOLEN_LMEM ) ==0 ); + +return true; +} +struct intel_memory_region *i915_gem_stolen_lmem_setup (struct drm_i915_private *i915,u16 type,u16 instance)@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,struct intel_memory_region *mem;resource_size_t io_start, io_size;resource_size_t min_page_size; +int ret;if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); -if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +if (!i915_pci_resource_valid (pdev,GFXMEM_BAR ))return ERR_PTR (-ENXIO ); -/* Use DSM base address instead for stolen memory */ - dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); -if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR ); -if (WARN_ON (lmem_size < dsm_base)) -return ERR_PTR (-ENODEV ); +if (lmembar_is_igpu_stolen (i915) ||IS_DG1 (i915)) { + lmem_size =pci_resource_len (pdev,GFXMEM_BAR ); }else {resource_size_t lmem_range;@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *=SZ_1G ; } - dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { +if (HAS_BAR2_SMEM_STOLEN (i915)) { +/* +* MTL dsm size is in GGC register, not the bar size. +* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret =get_mtl_gms_size (uncore); +if (ret <0 ) { +drm_err (&i915->drm,"invalid MTL GGC register setting\n" ); +return ERR_PTR (ret); + } + + dsm_base =0 ; + dsm_size = (resource_size_t)(ret *SZ_1M ); + +GEM_BUG_ON (pci_resource_len (pdev,GFXMEM_BAR ) !=256 *SZ_1M ); +GEM_BUG_ON ((dsm_size +8 *SZ_1M ) > lmem_size); + }else { +/* Use DSM base address instead for stolen memory */ + dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (WARN_ON (lmem_size < dsm_base)) +return ERR_PTR (-ENODEV ); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; +if (pci_resource_len (pdev,GFXMEM_BAR ) < dsm_size) { io_start =0 ; io_size =0 ; + }else if (HAS_BAR2_SMEM_STOLEN (i915)) { + io_start =pci_resource_start (pdev,GFXMEM_BAR ) +8 *SZ_1M ; }else { - io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; - io_size = dsm_size; + io_start =pci_resource_start (pdev,GFXMEM_BAR ) + dsm_base; } min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K :drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; -if (!HAS_LMEM (i915)) { +if (!HAS_LMEM (i915) && !HAS_BAR2_SMEM_STOLEN (i915)) {if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR ))return -ENXIO ;drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct intel_device_info *mkwrite_device_info (struct drm_i915_private *dev_priv)
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 29 lines · Jani Nikula
Quoted 28 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 + 3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *i915,mutex_unlock (&i915->mm.stolen_lock); }
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct drm_i915_private *i915, · line 80
Quoted 1 line
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0+static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm)Abstracting this as a separate function looks like a separate patch.
I generally recommend using positive naming, "is dsm valid", to avoid any double negatives that might pop up, now or in the future. !is_dsm_invalid() gets slower for human brains to parse.
sure will change it.
Thanks,
Aravind.
Quoted 213 lines
BR,
Jani.Quoted 207 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +95
-17+{ +if (!HAS_BAR2_SMEM_STOLEN (i915)) { +if (dsm->start ==0 ) +return true; + } + +if (dsm->end <= dsm->start) +return true; + +return false; +} +static int i915_adjust_stolen (struct drm_i915_private *i915,struct resource *dsm) {@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,struct intel_uncore *uncore = ggtt->vm.gt->uncore;struct resource *r; -if (dsm->start ==0 || dsm->end <= dsm->start) +if (is_dsm_invalid (i915, dsm))return -EINVAL ;/* @@ -136,7 +149,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* overlaps with the non-stolen system memory range, since lmem is local * to the gpu. */ -if (HAS_LMEM (i915)) +if (HAS_LMEM (i915) ||HAS_BAR2_SMEM_STOLEN (i915))return 0 ;/* @@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915,drm_dbg (&i915->drm,"GEN6_STOLEN_RESERVED = 0x%016llx\n" , reg_val); - *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; -switch (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ) {case GEN8_STOLEN_RESERVED_1M : *size =1024 *1024 ;@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, *size =8 *1024 *1024 ;MISSING_CASE (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ); } + +if ((GRAPHICS_VER_FULL (i915) >=IP_VER (12 ,70 )) && !IS_DGFX (i915)) +/* the base is initialized to stolen top so subtract size to get base */ + *base -= *size; +else + *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; }static int i915_gem_init_stolen (struct intel_memory_region *mem)@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)if (i915_adjust_stolen (i915, &i915->dsm))return 0 ; -GEM_BUG_ON (i915->dsm.start ==0 ); -GEM_BUG_ON (i915->dsm.end <= i915->dsm.start); +GEM_BUG_ON (is_dsm_invalid (i915, &i915->dsm)); stolen_top = i915->dsm.end +1 ; reserved_base = stolen_top;@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ; +case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe: +return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915) +{ +u32 regions =RUNTIME_INFO (i915)->memory_regions; + +if (regions ®ION_LMEM ) +return false; + +drm_WARN_ON (&i915->drm, (regions ®ION_STOLEN_LMEM ) ==0 ); + +return true; +} +struct intel_memory_region *i915_gem_stolen_lmem_setup (struct drm_i915_private *i915,u16 type,u16 instance)@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,struct intel_memory_region *mem;resource_size_t io_start, io_size;resource_size_t min_page_size; +int ret;if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); -if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +if (!i915_pci_resource_valid (pdev,GFXMEM_BAR ))return ERR_PTR (-ENXIO ); -/* Use DSM base address instead for stolen memory */ - dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); -if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR ); -if (WARN_ON (lmem_size < dsm_base)) -return ERR_PTR (-ENODEV ); +if (lmembar_is_igpu_stolen (i915) ||IS_DG1 (i915)) { + lmem_size =pci_resource_len (pdev,GFXMEM_BAR ); }else {resource_size_t lmem_range;@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *=SZ_1G ; } - dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { +if (HAS_BAR2_SMEM_STOLEN (i915)) { +/* +* MTL dsm size is in GGC register, not the bar size. +* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret =get_mtl_gms_size (uncore); +if (ret <0 ) { +drm_err (&i915->drm,"invalid MTL GGC register setting\n" ); +return ERR_PTR (ret); + } + + dsm_base =0 ; + dsm_size = (resource_size_t)(ret *SZ_1M ); + +GEM_BUG_ON (pci_resource_len (pdev,GFXMEM_BAR ) !=256 *SZ_1M ); +GEM_BUG_ON ((dsm_size +8 *SZ_1M ) > lmem_size); + }else { +/* Use DSM base address instead for stolen memory */ + dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (WARN_ON (lmem_size < dsm_base)) +return ERR_PTR (-ENODEV ); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; +if (pci_resource_len (pdev,GFXMEM_BAR ) < dsm_size) { io_start =0 ; io_size =0 ; + }else if (HAS_BAR2_SMEM_STOLEN (i915)) { + io_start =pci_resource_start (pdev,GFXMEM_BAR ) +8 *SZ_1M ; }else { - io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; - io_size = dsm_size; + io_start =pci_resource_start (pdev,GFXMEM_BAR ) + dsm_base; } min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K :drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; -if (!HAS_LMEM (i915)) { +if (!HAS_LMEM (i915) && !HAS_BAR2_SMEM_STOLEN (i915)) {if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR ))return -ENXIO ;drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct intel_device_info *mkwrite_device_info (struct drm_i915_private *dev_priv)
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/1] drm/i915/mtl: enable local stolen memory
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: series starting with [1/1] drm/i915/mtl: enable local stolen memory
URL : https://patchwork.freedesktop.org/series/108767/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12158 -> Patchwork_108767v1
====================================================
Summary
-------
**WARNING**
Minor unknown changes coming with Patchwork_108767v1 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_108767v1, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/index.html
Participating hosts (42 -> 43)
------------------------------
Additional (5): fi-cml-u2 fi-icl-u2 fi-cfl-guc fi-icl-y bat-dg2-11
Missing (4): fi-ctg-p8600 bat-jsl-3 fi-kbl-guc bat-dg1-5
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_108767v1:
### IGT changes ###
#### Warnings ####
* igt@runner@aborted:
- fi-apl-guc: [FAIL][1] ([i915#6599]) -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-apl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-apl-guc/igt@[email protected]
- fi-skl-guc: [FAIL][3] ([i915#6599]) -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-skl-guc/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-skl-guc/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_108767v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-cml-u2: NOTRUN -> [SKIP][5] ([i915#1208]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-icl-y: NOTRUN -> [SKIP][6] ([i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][7] ([i915#2190])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][8] ([i915#2190])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-cml-u2: NOTRUN -> [SKIP][9] ([i915#4613]) +3 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][10] ([i915#4613]) +3 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
* igt@gem_lmem_swapping@verify-random:
- fi-cfl-guc: NOTRUN -> [SKIP][11] ([fdo#109271] / [i915#4613]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-guc/igt@[email protected]
- fi-icl-y: NOTRUN -> [SKIP][12] ([i915#4613]) +3 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
* igt@i915_module_load@load:
- fi-bdw-gvtdvm: [PASS][13] -> [DMESG-WARN][14] ([i915#6540])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-bdw-gvtdvm/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-bdw-gvtdvm/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [PASS][15] -> [DMESG-FAIL][16] ([i915#62])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-cfl-8109u/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-8109u/igt@[email protected]
* igt@i915_selftest@live:
- fi-cfl-8109u: NOTRUN -> [INCOMPLETE][17] ([i915#6114])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-8109u/igt@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-hsw-4770: NOTRUN -> [SKIP][18] ([fdo#109271] / [fdo#111827])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-hsw-4770/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-cml-u2: NOTRUN -> [SKIP][19] ([fdo#109284] / [fdo#111827]) +8 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-cfl-guc: NOTRUN -> [SKIP][20] ([fdo#109271] / [fdo#111827]) +8 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-guc/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][21] ([fdo#111827]) +8 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
* igt@kms_chamelium@vga-hpd-fast:
- fi-icl-y: NOTRUN -> [SKIP][22] ([fdo#109284] / [fdo#111827]) +8 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-cml-u2: NOTRUN -> [SKIP][23] ([i915#4213])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
- fi-icl-y: NOTRUN -> [SKIP][24] ([i915#4103])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][25] ([i915#4103])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-connector-state:
- fi-icl-u2: NOTRUN -> [WARN][26] ([i915#6008])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
- fi-bdw-gvtdvm: [PASS][27] -> [DMESG-WARN][28] ([i915#5922])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-bdw-gvtdvm/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-bdw-gvtdvm/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-cml-u2: NOTRUN -> [SKIP][29] ([fdo#109285])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
- fi-icl-y: NOTRUN -> [SKIP][30] ([fdo#109285])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][31] ([fdo#109285])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cfl-8109u: [PASS][32] -> [DMESG-WARN][33] ([i915#62]) +12 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-cfl-8109u/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-8109u/igt@[email protected]
- fi-cml-u2: NOTRUN -> [DMESG-WARN][34] ([i915#402])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- fi-icl-y: NOTRUN -> [SKIP][35] ([fdo#110189]) +3 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-icl-y: NOTRUN -> [SKIP][36] ([i915#3555])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][37] ([i915#3555])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][38] ([i915#3555])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-cfl-guc: NOTRUN -> [SKIP][39] ([fdo#109271]) +10 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-guc/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][40] ([fdo#109295] / [i915#3301])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-u2/igt@[email protected]
- fi-icl-y: NOTRUN -> [SKIP][41] ([fdo#109295] / [i915#3301])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-icl-y/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][42] ([fdo#109295] / [i915#3301])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cml-u2/igt@[email protected]
* igt@runner@aborted:
- fi-cfl-8109u: NOTRUN -> [FAIL][43] ([i915#4312])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-cfl-8109u/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [FAIL][44] ([i915#4312])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-bdw-gvtdvm/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@write:
- {fi-tgl-mst}: [SKIP][45] ([i915#2582]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-tgl-mst/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-tgl-mst/igt@[email protected]
* igt@gem_ctx_create@basic-files:
- {fi-tgl-mst}: [DMESG-WARN][47] -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-tgl-mst/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-tgl-mst/igt@[email protected]
* igt@gem_exec_suspend@basic-s0@smem:
- {bat-adlm-1}: [DMESG-WARN][49] ([i915#2867]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/bat-adlm-1/igt@gem_exec_suspend@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/bat-adlm-1/igt@gem_exec_suspend@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [INCOMPLETE][51] ([i915#4785]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-hsw-4770/igt@i915_selftest@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-hsw-4770/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-kefka: [FAIL][53] ([i915#6298]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1208]: https://gitlab.freedesktop.org/drm/intel/issues/1208
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5153]: https://gitlab.freedesktop.org/drm/intel/issues/5153
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5537]: https://gitlab.freedesktop.org/drm/intel/issues/5537
[i915#5828]: https://gitlab.freedesktop.org/drm/intel/issues/5828
[i915#5922]: https://gitlab.freedesktop.org/drm/intel/issues/5922
[i915#6008]: https://gitlab.freedesktop.org/drm/intel/issues/6008
[i915#6114]: https://gitlab.freedesktop.org/drm/intel/issues/6114
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6434]: https://gitlab.freedesktop.org/drm/intel/issues/6434
[i915#6540]: https://gitlab.freedesktop.org/drm/intel/issues/6540
[i915#6596]: https://gitlab.freedesktop.org/drm/intel/issues/6596
[i915#6599]: https://gitlab.freedesktop.org/drm/intel/issues/6599
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#6724]: https://gitlab.freedesktop.org/drm/intel/issues/6724
[i915#6850]: https://gitlab.freedesktop.org/drm/intel/issues/6850
Build changes
-------------
* Linux: CI_DRM_12158 -> Patchwork_108767v1
CI-20190529: 20190529
CI_DRM_12158: 3bde74f15d452bf788ecab8933ee802b2ee9e673 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6656: 24100c4e181c50e3678aeca9c641b8a43555ad73 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_108767v1: 3bde74f15d452bf788ecab8933ee802b2ee9e673 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
9661b9b7576a drm/i915/mtl: enable local stolen memory
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/index.html
Quoted 25 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
---drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 + 3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0
drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct drm_i915_private *i915, · line 82
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *i915,mutex_unlock (&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ +if (!HAS_BAR2_SMEM_STOLEN (i915)) {
I called a similar function as is_dsm_valid() in
https://patchwork.freedesktop.org/series/108620/
sounds weird with "invalid" and the double negation on return early style.
Quoted 23 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +11
-1+if (dsm->start ==0 ) +return true; + } + +if (dsm->end <= dsm->start) +return true; + +return false; +} +static int i915_adjust_stolen (struct drm_i915_private *i915,struct resource *dsm) {@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,struct intel_uncore *uncore = ggtt->vm.gt->uncore;struct resource *r; -if (dsm->start ==0 || dsm->end <= dsm->start) +if (is_dsm_invalid (i915, dsm))return -EINVAL ;/*
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int i915_adjust_stolen(struct drm_i915_private *i915, · line 152
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -136,7 +149,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* overlaps with the non-stolen system memory range, since lmem is local * to the gpu. */ -if (HAS_LMEM (i915)) +if (HAS_LMEM (i915) ||HAS_BAR2_SMEM_STOLEN (i915))
comment above makes no sense when you add this. For this specific case it's still system memory, reserved by the BIOS and that we access by mapping the lmembar
Quoted 13 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-2return 0 ;/* @@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915,drm_dbg (&i915->drm,"GEN6_STOLEN_RESERVED = 0x%016llx\n" , reg_val); - *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; -switch (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ) {case GEN8_STOLEN_RESERVED_1M : *size =1024 *1024 ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static void icl_get_stolen_reserved(struct drm_i915_private *i915, · line 407
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +4
-0@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, *size =8 *1024 *1024 ;MISSING_CASE (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ); } + +if ((GRAPHICS_VER_FULL (i915) >=IP_VER (12 ,70 )) && !IS_DGFX (i915)) +/* the base is initialized to stolen top so subtract size to get base */ + *base -= *size;
that doesn't necessarily holds true. According to the spec the wopcm base is 1MB aligned so even if it is "at the top", it may not mean it is at the very very top that we can just subtract the size.
Quoted 16 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-2+else + *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; }static int i915_gem_init_stolen (struct intel_memory_region *mem)@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)if (i915_adjust_stolen (i915, &i915->dsm))return 0 ; -GEM_BUG_ON (i915->dsm.start ==0 ); -GEM_BUG_ON (i915->dsm.end <= i915->dsm.start); +GEM_BUG_ON (is_dsm_invalid (i915, &i915->dsm)); stolen_top = i915->dsm.end +1 ; reserved_base = stolen_top;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 819
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 ));
??
Quoted 14 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +14
-0+ +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 843
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe: +return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915)
doesn't deserve an inline. lmembar_is_igpu_stolen() doesn't make much sense as the lmembar is never igpu stolen.... you probably mean something else here
Quoted 15 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +11
-0+{ +u32 regions =RUNTIME_INFO (i915)->memory_regions; + +if (regions ®ION_LMEM ) +return false; + +drm_WARN_ON (&i915->drm, (regions ®ION_STOLEN_LMEM ) ==0 ); + +return true; +} +struct
intel_memory_region* i915_gem_stolen_lmem_setup(structdrm_i915_private*i915, u16 type,
u16 instance)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 870
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-1@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,struct intel_memory_region *mem;resource_size_t io_start, io_size;resource_size_t min_page_size; +int ret;if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); -if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +if (!i915_pci_resource_valid (pdev,GFXMEM_BAR ))
at least for MTL, Bspec 63830 still calls this lmembar. So the rename for me is a net loss
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 874
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-6return ERR_PTR (-ENXIO ); -/* Use DSM base address instead for stolen memory */ - dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); -if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR ); -if (WARN_ON (lmem_size < dsm_base)) -return ERR_PTR (-ENODEV ); +if (lmembar_is_igpu_stolen (i915) ||IS_DG1 (i915)) { + lmem_size =pci_resource_len (pdev,GFXMEM_BAR );
this looks confusing, but apparently correct. For DG1 the stolen is on top of lmem. For MTL, it's on the end of lmembar (256M). This works because on DG1 aperture == lmem size.
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 885
Quoted 12 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-2}else {resource_size_t lmem_range;@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *=SZ_1G ; } - dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { +if (HAS_BAR2_SMEM_STOLEN (i915)) { +/* +* MTL dsm size is in GGC register, not the bar size.
it's not exclusive to MTL. it has been there for ages and it was never the BAR size like this comment says. Or at least it doesn't match the else condition that is using the GEN12_DSMBASE register
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 895
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret =get_mtl_gms_size (uncore); +if (ret <0 ) { +drm_err (&i915->drm,"invalid MTL GGC register setting\n" ); +return ERR_PTR (ret); + } + + dsm_base =0 ;
if we stop handling part of the values in the registers as relative to the mapping and rather handle them as we read from the registers (physical addresses), the size calculations should still match and we shouldn't need all the if/else dance. If we pass the right io_start we can then make them relative to the mapping by subtracting it, or if we don't want GTT to be in the mapping we subtract it.
That makes me wonder if choosing the i915_gem_stolen_lmem_setup() for all of this is even the right choice given we are actually talking about system memory that is mapped through the lmembar.
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+ dsm_size = (resource_size_t)(ret *SZ_1M ); + +GEM_BUG_ON (pci_resource_len (pdev,GFXMEM_BAR ) !=256 *SZ_1M ); +GEM_BUG_ON ((dsm_size +8 *SZ_1M ) > lmem_size); + }else { +/* Use DSM base address instead for stolen memory */ + dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (WARN_ON (lmem_size < dsm_base))
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 913
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+return ERR_PTR (-ENODEV ); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; +if (pci_resource_len (pdev,GFXMEM_BAR ) < dsm_size) { io_start =0 ; io_size =0 ; + }else if (HAS_BAR2_SMEM_STOLEN (i915)) { + io_start =pci_resource_start (pdev,GFXMEM_BAR ) +8 *SZ_1M ;
should be the GGSM?
Lucas De Marchi
Quoted 37 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-2}else { - io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; - io_size = dsm_size; + io_start =pci_resource_start (pdev,GFXMEM_BAR ) + dsm_base; } min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K :drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; -if (!HAS_LMEM (i915)) { +if (!HAS_LMEM (i915) && !HAS_BAR2_SMEM_STOLEN (i915)) {if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR ))return -ENXIO ;drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct
intel_device_info*mkwrite_device_info(struct drm_i915_private *dev_priv)Signature · 1 line
2.25.1
Quoted 233 lines · Lucas De Marchi
Quoted 25 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
---drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 + 3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct drm_i915_private *i915, · line 82
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *i915,mutex_unlock (&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ +if (!HAS_BAR2_SMEM_STOLEN (i915)) {I called a similar function as
is_dsm_valid()in
https://patchwork.freedesktop.org/series/108620/sounds weird with "invalid" and the double negation on return early style.
Quoted 23 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +11
-1+if (dsm->start ==0 ) +return true; + } + +if (dsm->end <= dsm->start) +return true; + +return false; +} +static int i915_adjust_stolen (struct drm_i915_private *i915,struct resource *dsm) {@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,struct intel_uncore *uncore = ggtt->vm.gt->uncore;struct resource *r; -if (dsm->start ==0 || dsm->end <= dsm->start) +if (is_dsm_invalid (i915, dsm))return -EINVAL ;/* drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int i915_adjust_stolen(struct drm_i915_private *i915, · line 152
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -136,7 +149,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* overlaps with the non-stolen system memory range, since lmem is local * to the gpu. */ -if (HAS_LMEM (i915)) +if (HAS_LMEM (i915) ||HAS_BAR2_SMEM_STOLEN (i915))comment above makes no sense when you add this. For this specific case it's still system memory, reserved by the BIOS and that we access by mapping the lmembar
Quoted 13 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-2return 0 ;/* @@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915,drm_dbg (&i915->drm,"GEN6_STOLEN_RESERVED = 0x%016llx\n" , reg_val); - *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; -switch (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ) {case GEN8_STOLEN_RESERVED_1M : *size =1024 *1024 ;drivers/gpu/drm/i915/gem/i915_gem_stolen.c static void icl_get_stolen_reserved(struct drm_i915_private *i915, · line 407
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +4
-0@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, *size =8 *1024 *1024 ;MISSING_CASE (reg_val &GEN8_STOLEN_RESERVED_SIZE_MASK ); } + +if ((GRAPHICS_VER_FULL (i915) >=IP_VER (12 ,70 )) && !IS_DGFX (i915)) +/* the base is initialized to stolen top so subtract size to get base */ + *base -= *size;that doesn't necessarily holds true. According to the spec the wopcm base is 1MB aligned so even if it is "at the top", it may not mean it is at the very very top that we can just subtract the size.
Quoted 16 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-2+else + *base = reg_val &GEN11_STOLEN_RESERVED_ADDR_MASK ; }static int i915_gem_init_stolen (struct intel_memory_region *mem)@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)if (i915_adjust_stolen (i915, &i915->dsm))return 0 ; -GEM_BUG_ON (i915->dsm.start ==0 ); -GEM_BUG_ON (i915->dsm.end <= i915->dsm.start); +GEM_BUG_ON (is_dsm_invalid (i915, &i915->dsm)); stolen_top = i915->dsm.end +1 ; reserved_base = stolen_top;drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 819
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 ));??
Quoted 14 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +14
-0+ +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ;drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 843
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe: +return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915)doesn't deserve an inline.
lmembar_is_igpu_stolen()doesn't make much sense as the lmembar is never igpu stolen.... you probably mean something else hereQuoted 15 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +11
-0+{ +u32 regions =RUNTIME_INFO (i915)->memory_regions; + +if (regions ®ION_LMEM ) +return false; + +drm_WARN_ON (&i915->drm, (regions ®ION_STOLEN_LMEM ) ==0 ); + +return true; +} +struct
intel_memory_region* i915_gem_stolen_lmem_setup(structdrm_i915_private*i915, u16 type,
u16 instance)drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 870
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-1@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,struct intel_memory_region *mem;resource_size_t io_start, io_size;resource_size_t min_page_size; +int ret;if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); -if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +if (!i915_pci_resource_valid (pdev,GFXMEM_BAR ))at least for MTL, Bspec 63830 still calls this lmembar. So the rename for me is a net loss
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 874
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-6return ERR_PTR (-ENXIO ); -/* Use DSM base address instead for stolen memory */ - dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); -if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR ); -if (WARN_ON (lmem_size < dsm_base)) -return ERR_PTR (-ENODEV ); +if (lmembar_is_igpu_stolen (i915) ||IS_DG1 (i915)) { + lmem_size =pci_resource_len (pdev,GFXMEM_BAR );this looks confusing, but apparently correct. For DG1 the stolen is on top of lmem. For MTL, it's on the end of lmembar (256M). This works because on DG1 aperture == lmem size.
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 885
Quoted 12 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-2}else {resource_size_t lmem_range;@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *=SZ_1G ; } - dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { +if (HAS_BAR2_SMEM_STOLEN (i915)) { +/* +* MTL dsm size is in GGC register, not the bar size. it's not exclusive to MTL. it has been there for ages and it was never the BAR size like this comment says. Or at least it doesn't match the else condition that is using the
GEN12_DSMBASEregisterdrivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 895
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret =get_mtl_gms_size (uncore); +if (ret <0 ) { +drm_err (&i915->drm,"invalid MTL GGC register setting\n" ); +return ERR_PTR (ret); + } + + dsm_base =0 ;if we stop handling part of the values in the registers as relative to the mapping and rather handle them as we read from the registers (physical addresses), the size calculations should still match and we shouldn't need all the if/else dance. If we pass the right
io_startwe can then make them relative to the mapping by subtracting it, or if we don't want GTT to be in the mapping we subtract it.
Quoted 3 lines
That makes me wonder if choosing the
i915_gem_stolen_lmem_setup()for all of this is even the right choice given we are actually talking about system memory that is mapped through the lmembar.
another approach could be: handle the several coding style issues, function names etc. Since this works for MTL, it's better than the hypothetical solution that is not written and may not work well. I may have missed something in my analysis. So I'd be fine to go with improved version of this patch, and I can add to my todo list to try to clean this up later.
Lucas De Marchi
Quoted 62 lines
Quoted 9 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+ dsm_size = (resource_size_t)(ret *SZ_1M ); + +GEM_BUG_ON (pci_resource_len (pdev,GFXMEM_BAR ) !=256 *SZ_1M ); +GEM_BUG_ON ((dsm_size +8 *SZ_1M ) > lmem_size); + }else { +/* Use DSM base address instead for stolen memory */ + dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (WARN_ON (lmem_size < dsm_base))drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 913
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+return ERR_PTR (-ENODEV ); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; +if (pci_resource_len (pdev,GFXMEM_BAR ) < dsm_size) { io_start =0 ; io_size =0 ; + }else if (HAS_BAR2_SMEM_STOLEN (i915)) { + io_start =pci_resource_start (pdev,GFXMEM_BAR ) +8 *SZ_1M ;should be the GGSM?
Lucas De Marchi
Quoted 37 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-2}else { - io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; - io_size = dsm_size; + io_start =pci_resource_start (pdev,GFXMEM_BAR ) + dsm_base; } min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K :drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; -if (!HAS_LMEM (i915)) { +if (!HAS_LMEM (i915) && !HAS_BAR2_SMEM_STOLEN (i915)) {if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR ))return -ENXIO ;drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct
intel_device_info*mkwrite_device_info(struct drm_i915_private *dev_priv)Signature · 1 line
2.25.1
replying here for earlier comments too.
Quoted 40 lines · Lucas De Marchi
Quoted 39 lines · Lucas De Marchi
Quoted 26 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
---drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 +3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct · line 84
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(structdrm_i915_private *i915, mutex_unlock(&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ + if (!HAS_BAR2_SMEM_STOLEN(i915)) {I called a similar function as
is_dsm_valid()in
https://patchwork.freedesktop.org/series/108620/
Quoted 2 lines
Quoted 2 lines
sounds weird with "invalid" and the double negation on return early style.
sure, will change it hope i can use that from your patch.
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+ if (dsm->start == 0) + return true; + } + + if (dsm->end <= dsm->start) + return true; + + return false; +} + static int i915_adjust_stolen(struct drm_i915_private *i915,struct resource *dsm)
{drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -84,7 +97,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915, struct intel_uncore *uncore = ggtt->vm.gt->uncore; struct resource *r; - if (dsm->start == 0 || dsm->end <= dsm->start) + if (is_dsm_invalid(i915, dsm)) return -EINVAL;
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
/*
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0@@ -136,7 +149,7 @@ static int i915_adjust_stolen(structdrm_i915_private *i915, * overlaps with the non-stolen system memory range, since lmemis local
Quoted 8 lines
Quoted 4 lines
* to the gpu.
*/
- if (HAS_LMEM(i915))
+ if (HAS_LMEM(i915)||HAS_BAR2_SMEM_STOLEN(i915))comment above makes no sense when you add this. For this specific case it's still system memory, reserved by the BIOS and that we access by mapping the lmembar
thanks for catching this.
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
return 0;
/*
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-2@@ -371,8 +384,6 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, drm_dbg(&i915->drm, "GEN6_STOLEN_RESERVED = 0x%016llx\n", reg_val); - *base = reg_val & GEN11_STOLEN_RESERVED_ADDR_MASK; - switch (reg_val & GEN8_STOLEN_RESERVED_SIZE_MASK) {case
GEN8_STOLEN_RESERVED_1M:
*size = 1024 * 1024;drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-0@@ -390,6 +401,12 @@ static void icl_get_stolen_reserved(structdrm_i915_private *i915, *size = 8 * 1024 * 1024; MISSING_CASE(reg_val & GEN8_STOLEN_RESERVED_SIZE_MASK); } + + if ((GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) && !IS_DGFX(i915))
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0+ /* the base is initialized to stolen top so subtract size toget base */
+ *base -= *size;that doesn't necessarily holds true. According to the spec the wopcm base is 1MB aligned so even if it is "at the top", it may not mean it is at the
very very top that we can just subtract the size.
well here the reserved_base is not to the top of the BAR, we got the stolen size from GGC register so base is initialized to end of that stolen size. hence we subtract the reserved size from it.
Quoted 52 lines
Quoted 52 lines
Quoted 19 lines
+ else
+ *base =reg_val&GEN11_STOLEN_RESERVED_ADDR_MASK; }static int
i915_gem_init_stolen(struct intel_memory_region *mem)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-2@@ -423,8 +440,7 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem) if (i915_adjust_stolen(i915, &i915->dsm)) return 0; - GEM_BUG_ON(i915->dsm.start == 0); - GEM_BUG_ON(i915->dsm.end <= i915->dsm.start); + GEM_BUG_ON(is_dsm_invalid(i915, &i915->dsm)); stolen_top = i915->dsm.end + 1;reserved_base =
stolen_top;drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops · line 820
Quoted 9 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0@@ -796,6 +812,46 @@ static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { .init_object = _i915_gem_object_stolen_init, }; +static int get_mtl_gms_size (struct intel_uncore *uncore) +{ + u16 ggc, gms; + + ggc = intel_uncore_read16(uncore, _MMIO(0x108040));??
Quoted 21 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +21
-0+ + /* check GGMS, should be fixed 0x3 (8MB) */ + if ((ggc & 0xc0) != 0xc0) + return -EIO; + + /* return valid GMS value, -EIO if invalid */ + gms = ggc >> 8; + switch (gms) { + case 0x0 ... 0x10: + return gms * 32; + case 0x20: + return 1024; + case 0x30: + return 1536; + case 0x40: + return 2048; + case 0xf0 ... 0xfe: + return (gms - 0xf0 + 1) * 4; + default: + return -EIO; + }
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct drm_i915_private *i915,
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0+} + +static inline bool lmembar_is_igpu_stolen (struct drm_i915_private *i915)doesn't deserve an inline.
lmembar_is_igpu_stolen()doesn't make much sense as the lmembar is never igpu stolen.... you probably mean something else here
here the intent was to check the second BAR which is traditionally LMEM is to be considered STOLEN, if the memory regions consists STOLEN_LMEM and not LMEM. But I think i can rather replace this entire function and just use HAS_LMEM check.
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +11
-0+{ + u32 regions = RUNTIME_INFO(i915)->memory_regions; + + if (regions & REGION_LMEM) + return false; + + drm_WARN_ON(&i915->drm, (regions & REGION_STOLEN_LMEM) == 0); + + return true; +} +struct
intel_memory_region*i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, u16 instance)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0@@ -806,19 +862,16 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, struct intel_memory_region *mem; resource_size_t io_start, io_size; resource_size_t min_page_size; + int ret;
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 870
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1if (WARN_ON_ONCE(instance)) return ERR_PTR(-ENODEV); - if (!i915_pci_resource_valid(pdev, GEN12_LMEM_BAR)) + if (!i915_pci_resource_valid(pdev, GFXMEM_BAR))at least for MTL, Bspec 63830 still calls this lmembar. So the rename for me is a net loss
that is right, will revert this.
Quoted 57 lines
Quoted 52 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 874
Quoted 11 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-6return ERR_PTR(-ENXIO); - /* Use DSM base address instead for stolen memory */ - dsm_base = intel_uncore_read64(uncore, GEN12_DSMBASE); - if (IS_DG1(uncore->i915)) { - lmem_size = pci_resource_len(pdev, GEN12_LMEM_BAR); - if (WARN_ON(lmem_size < dsm_base)) - return ERR_PTR(-ENODEV); + if (lmembar_is_igpu_stolen(i915) || IS_DG1(i915)) { + lmem_size = pci_resource_len(pdev, GFXMEM_BAR);this looks confusing, but apparently correct. For DG1 the stolen is on top of lmem. For MTL, it's on the end of lmembar (256M). This works because on DG1 aperture == lmem size.
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct · line 886
Quoted 13 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-2} else { resource_size_t lmem_range;@@ -827,13 +880,39 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, lmem_size *= SZ_1G; } - dsm_size = lmem_size - dsm_base; - if (pci_resource_len(pdev, GEN12_LMEM_BAR) < lmem_size) { + if (HAS_BAR2_SMEM_STOLEN(i915)) { + /* +* MTL dsm size is in GGC register, not the bar size. it's not exclusive to MTL. it has been there for ages and it was never the BAR size like this comment says. Or at least it doesn't match the else condition that is using the
GEN12_DSMBASEregisterdrivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 895
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+* also MTL uses offset to DSMBASE in ptes, so i915 +* uses dsm_base = 0 to setup stolen region. +*/ + ret = get_mtl_gms_size(uncore); + if (ret < 0) { + drm_err(&i915->drm, "invalid MTL GGC register setting\n"); + return ERR_PTR(ret); + } + + dsm_base = 0;if we stop handling part of the values in the registers as relative to the mapping and rather handle them as we read from the registers (physical addresses), the size calculations should still match and we shouldn't need all the if/else dance. If we pass the right
io_startwe can then make them relative to the mapping by subtracting it, or if we don't want GTT to be in the mapping we subtract it.Quoted 3 lines
That makes me wonder if choosing the
i915_gem_stolen_lmem_setup()for all of this is even the right choice given we are actually talking about system memory that is mapped through the lmembar.
Quoted 6 lines
another approach could be: handle the several coding style issues, function names etc. Since this works for MTL, it's better than the hypothetical solution that is not written and may not work well. I may have missed something in my analysis. So I'd be fine to go with improved version of this patch, and I can add to my todo list to try to clean this up later.
Thanks for that.
Quoted 25 lines
Lucas De Marchi
Quoted 21 lines
Quoted 9 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+ dsm_size = (resource_size_t)(ret * SZ_1M); + + GEM_BUG_ON(pci_resource_len(pdev, GFXMEM_BAR) != 256 * SZ_1M); + GEM_BUG_ON((dsm_size + 8 * SZ_1M) > lmem_size); + } else { + /* Use DSM base address instead for stolen memory */ + dsm_base = intel_uncore_read64(uncore, GEN12_DSMBASE); + if (WARN_ON(lmem_size < dsm_base))drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, · line 913
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8
-0+ return ERR_PTR(-ENODEV); + dsm_size = lmem_size - dsm_base; + } + + io_size = dsm_size; + if (pci_resource_len(pdev, GFXMEM_BAR) < dsm_size) { io_start = 0; io_size = 0; + } else if (HAS_BAR2_SMEM_STOLEN(i915)) { + io_start = pci_resource_start(pdev, GFXMEM_BAR) + 8 * SZ_1M;should be the GGSM?
make sense can be derived from GGC registered.
Thanks,
Aravind.
Quoted 44 lines
Quoted 44 lines
Lucas De Marchi
Quoted 40 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-2} else { - io_start = pci_resource_start(pdev, GEN12_LMEM_BAR) + dsm_base; - io_size = dsm_size; + io_start = pci_resource_start(pdev, GFXMEM_BAR) + dsm_base; }min_page_size =
HAS_64K_PAGES(i915)?I915_GTT_PAGE_SIZE_64K:drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -931,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt) unsigned int size; u16 snb_gmch_ctl; - if (!HAS_LMEM(i915)) { + if (!HAS_LMEM(i915) && !HAS_BAR2_SMEM_STOLEN(i915)) { if (!i915_pci_resource_valid(pdev, GTT_APERTURE_BAR)) return -ENXIO;drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -973,6 +973,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_ONE_EU_PER_FUSE_BIT (i915) (INTEL_INFO(i915)->has_one_eu_per_fuse_bit) +#define HAS_BAR2_SMEM_STOLEN (i915) (!HAS_LMEM(i915) && \ + GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) +/* intel_device_info.c */ static inline struct
intel_device_info*mkwrite_device_info(struct drm_i915_private *dev_priv)--
2.25.1
Quoted 43 lines · Aravind
replying here for earlier comments too.
Quoted 40 lines · Lucas De Marchi
Quoted 39 lines · Lucas De Marchi
Quoted 26 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
---drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 +3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct · line 84
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(structdrm_i915_private *i915, mutex_unlock(&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ + if (!HAS_BAR2_SMEM_STOLEN(i915)) {I called a similar function as
is_dsm_valid()in
https://patchwork.freedesktop.org/series/108620/
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
sounds weird with "invalid" and the double negation on return early style.
sure, will change it hope i can use that from your patch.
that patch is now pushed, so now you can reuse it.
Lucas De Marchi
Quoted 44 lines · Lucas De Marchi
Quoted 43 lines · Aravind
replying here for earlier comments too.
Quoted 40 lines · Lucas De Marchi
Quoted 39 lines · Lucas De Marchi
Quoted 26 lines · Aravind Iddamsetty
As an integrated GPU, MTL does not have local memory and
HAS_LMEM()returns false. However the platform's stolen memory is presented via BAR2 (i.e., the BAR we traditionally consider to be the LMEM BAR) and should be managed by the driver the same way that local memory is on dgpu platforms (which includes setting the "lmem" bit on page table entries). We use the term "local stolen memory" to refer to this model.Cc Matt Roper <[email protected]>Cc Lucas De Marchi <[email protected]>Signed-off-by CQ Tang <[email protected]>Signed-off-by Aravind Iddamsetty <[email protected]>Original-author: CQ Tang
---drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 113 +++++++++++++++++---- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 +3 files changed, 100 insertions(+), 18 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +0
-0drivers/gpu/drm/i915/gem/i915_gem_stolen.c void i915_gem_stolen_remove_node(struct · line 84
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0@@ -77,6 +77,19 @@ void i915_gem_stolen_remove_node(structdrm_i915_private *i915, mutex_unlock(&i915->mm.stolen_lock); } +static bool is_dsm_invalid (struct drm_i915_private *i915,struct resource *dsm) +{ + if (!HAS_BAR2_SMEM_STOLEN(i915)) {I called a similar function as
is_dsm_valid()in
https://patchwork.freedesktop.org/series/108620/
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
sounds weird with "invalid" and the double negation on return early style.
sure, will change it hope i can use that from your patch.
that patch is now pushed, so now you can reuse it.
Thanks for the info and help.
Aravind.
Quoted 2 lines
Lucas De Marchi
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/1] drm/i915/mtl: enable local stolen memory
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: series starting with [1/1] drm/i915/mtl: enable local stolen memory
URL : https://patchwork.freedesktop.org/series/108767/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12158_full -> Patchwork_108767v1_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl
Known issues
------------
Here are the changes found in Patchwork_108767v1_full that come from known issues:
### CI changes ###
#### Issues hit ####
* boot:
- shard-glk: ([PASS][1], [PASS][2], [PASS][3], [PASS][4], [PASS][5], [PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25]) -> ([PASS][26], [PASS][27], [PASS][28], [PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [FAIL][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50]) ([i915#4392])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk1/boot.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk1/boot.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk1/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk3/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk3/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk3/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk5/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk5/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk5/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk7/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk7/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk7/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk8/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk8/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk8/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk9/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk9/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk9/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk5/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk6/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk6/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk6/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk7/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk7/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk7/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk9/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk9/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk9/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk2/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk2/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk2/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk5/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk5/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk3/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk3/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk3/boot.html
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_balancer@parallel:
- shard-iclb: [PASS][51] -> [SKIP][52] ([i915#4525]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb1/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb5/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [PASS][53] -> [FAIL][54] ([i915#2842])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb2/igt@gem_exec_fair@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-uc-set-default:
- shard-apl: [PASS][55] -> [DMESG-FAIL][56] ([i915#6864])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl7/igt@[email protected]
* igt@gem_softpin@evict-single-offset:
- shard-tglb: [PASS][57] -> [FAIL][58] ([i915#4171])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb2/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][59] ([i915#4991])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@[email protected]
* igt@gen7_exec_parse@oacontrol-tracking:
- shard-apl: NOTRUN -> [SKIP][60] ([fdo#109271]) +62 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [PASS][61] -> [DMESG-WARN][62] ([i915#5566] / [i915#716])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk5/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#3886]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_color_chamelium@ctm-red-to-blue:
- shard-apl: NOTRUN -> [SKIP][64] ([fdo#109271] / [fdo#111827]) +2 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@cursor-random-32x10:
- shard-glk: NOTRUN -> [SKIP][65] ([fdo#109271]) +7 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:
- shard-glk: [PASS][66] -> [FAIL][67] ([i915#2346])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/igt@kms_cursor_legacy@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/igt@kms_cursor_legacy@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@bc-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][68] -> [FAIL][69] ([i915#79])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk8/igt@kms_flip@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@b-dp1:
- shard-apl: [PASS][70] -> [DMESG-WARN][71] ([i915#180]) +1 similar issue
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl7/igt@kms_flip@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][72] ([i915#3555]) +2 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][73] ([i915#2587] / [i915#2672]) +2 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling@pipe-a-valid-mode.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1:
- shard-iclb: [PASS][74] -> [SKIP][75] ([i915#5235]) +2 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb6/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
* igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf:
- shard-apl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#658])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_onoff:
- shard-iclb: [PASS][77] -> [SKIP][78] ([fdo#109441]) +2 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb2/igt@kms_psr@psr2_sprite_plane_onoff.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb1/igt@kms_psr@psr2_sprite_plane_onoff.html
* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-tglb: [PASS][79] -> [SKIP][80] ([i915#5519])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb3/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb2/igt@[email protected]
- shard-iclb: [PASS][81] -> [SKIP][82] ([i915#5519])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb3/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb3/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#533])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl6/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-apl: [PASS][84] -> [FAIL][85] ([i915#5639])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl8/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl7/igt@[email protected]
* igt@sysfs_clients@create:
- shard-glk: NOTRUN -> [SKIP][86] ([fdo#109271] / [i915#2994])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/igt@[email protected]
#### Possible fixes ####
* igt@drm_import_export@prime:
- shard-apl: [DMESG-WARN][87] ([i915#6864]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl8/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl7/igt@[email protected]
* igt@gem_ctx_exec@basic-nohangcheck:
- shard-tglb: [FAIL][89] ([i915#6268]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb3/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb2/igt@[email protected]
- {shard-tglu}: [FAIL][91] ([i915#6268]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglu-4/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglu-3/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- {shard-tglu}: [FAIL][93] ([i915#2842]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglu-6/igt@gem_exec_fair@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglu-4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [FAIL][95] ([i915#2842]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl1/igt@gem_exec_fair@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [FAIL][97] ([i915#2842]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk9/igt@gem_exec_fair@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-uc-set-default:
- shard-glk: [DMESG-FAIL][99] ([i915#6864]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/igt@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-apl: [DMESG-WARN][101] ([i915#180]) -> [PASS][102] +1 similar issue
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl6/igt@[email protected]
* igt@i915_pm_dc@dc5-psr:
- shard-iclb: [FAIL][103] ([i915#3989]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb8/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- shard-tglb: [DMESG-WARN][105] ([i915#5591]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb5/igt@i915_selftest@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb3/igt@i915_selftest@[email protected]
* igt@kms_frontbuffer_tracking@fbc-badstride:
- shard-snb: [SKIP][107] ([fdo#109271]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-snb4/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-snb6/igt@[email protected]
* igt@kms_plane_lowres@tiling-y@pipe-c-hdmi-a-1:
- shard-glk: [FAIL][109] ([i915#1888]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/igt@kms_plane_lowres@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk2/igt@kms_plane_lowres@[email protected]
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [SKIP][111] ([fdo#109441]) -> [PASS][112] +1 similar issue
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb6/igt@kms_psr@psr2_sprite_blt.html
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_vblank@pipe-b-accuracy-idle:
- shard-glk: [FAIL][113] ([i915#43]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk9/igt@[email protected]
#### Warnings ####
* igt@gem_exec_balancer@parallel-ordering:
- shard-iclb: [FAIL][115] ([i915#6117]) -> [SKIP][116] ([i915#4525])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb2/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb3/igt@[email protected]
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][117] ([i915#658]) -> [SKIP][118] ([i915#588])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb6/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- shard-iclb: [FAIL][119] ([i915#2684]) -> [WARN][120] ([i915#2684])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb2/igt@i915_pm_rc6_residency@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb3/igt@i915_pm_rc6_residency@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-sf:
- shard-iclb: [SKIP][121] ([i915#658]) -> [SKIP][122] ([i915#2920]) +2 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb7/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-big-fb:
- shard-iclb: [SKIP][123] ([i915#2920]) -> [SKIP][124] ([i915#658])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb1/igt@[email protected]
* igt@kms_psr2_su@page_flip-p010:
- shard-iclb: [SKIP][125] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [FAIL][126] ([i915#5939])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb8/igt@kms_psr2_su@page_flip-p010.html
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb2/igt@kms_psr2_su@page_flip-p010.html
* igt@runner@aborted:
- shard-apl: ([FAIL][127], [FAIL][128], [FAIL][129], [FAIL][130]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#6599]) -> ([FAIL][131], [FAIL][132], [FAIL][133], [FAIL][134], [FAIL][135]) ([i915#180] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#6884])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl8/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl1/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl3/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-apl6/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl2/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl1/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl7/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl3/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-apl8/igt@[email protected]
- shard-tglb: ([FAIL][136], [FAIL][137]) ([i915#3002] / [i915#4312] / [i915#5257] / [i915#6599]) -> ([FAIL][138], [FAIL][139]) ([i915#3002] / [i915#4312] / [i915#5257])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb8/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-tglb1/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb2/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-tglb5/igt@[email protected]
- shard-glk: ([FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143]) ([i915#3002] / [i915#4312] / [i915#5257] / [i915#6599]) -> ([FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147]) ([i915#3002] / [i915#4312] / [i915#5257] / [i915#6884])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk6/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-glk1/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk8/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk9/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk2/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-glk1/igt@[email protected]
- shard-skl: ([FAIL][148], [FAIL][149], [FAIL][150], [FAIL][151], [FAIL][152], [FAIL][153], [FAIL][154], [FAIL][155], [FAIL][156], [FAIL][157], [FAIL][158], [FAIL][159], [FAIL][160], [FAIL][161], [FAIL][162], [FAIL][163], [FAIL][164], [FAIL][165], [FAIL][166], [FAIL][167], [FAIL][168], [FAIL][169], [FAIL][170], [FAIL][171], [FAIL][172]) ([i915#6599]) -> ([FAIL][173], [FAIL][174], [FAIL][175], [FAIL][176], [FAIL][177], [FAIL][178], [FAIL][179], [FAIL][180], [FAIL][181], [FAIL][182], [FAIL][183], [FAIL][184], [FAIL][185], [FAIL][186], [FAIL][187], [FAIL][188], [FAIL][189], [FAIL][190], [FAIL][191], [FAIL][192], [FAIL][193], [FAIL][194], [FAIL][195], [FAIL][196], [FAIL][197]) ([i915#6884])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl1/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl4/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl1/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl10/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl1/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl10/igt@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl10/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl10/igt@[email protected]
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl1/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl10/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl7/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl4/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl6/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl6/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl4/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl6/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl9/igt@[email protected]
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl6/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl7/igt@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl4/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl9/igt@[email protected]
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl7/igt@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl7/igt@[email protected]
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl9/igt@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-skl9/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl9/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl3/igt@[email protected]
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl5/igt@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl10/igt@[email protected]
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl2/igt@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl9/igt@[email protected]
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl7/igt@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl1/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl3/igt@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl1/igt@[email protected]
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl4/igt@[email protected]
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl7/igt@[email protected]
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl6/igt@[email protected]
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl3/igt@[email protected]
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl5/igt@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl6/igt@[email protected]
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl2/igt@[email protected]
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl4/igt@[email protected]
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl7/igt@[email protected]
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl9/igt@[email protected]
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl1/igt@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl10/igt@[email protected]
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl6/igt@[email protected]
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl10/igt@[email protected]
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-skl4/igt@[email protected]
- shard-iclb: ([FAIL][198], [FAIL][199]) ([i915#3002] / [i915#4312] / [i915#5257] / [i915#6599]) -> ([FAIL][200], [FAIL][201]) ([i915#3002] / [i915#4312] / [i915#5257])
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb7/igt@[email protected]
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12158/shard-iclb5/igt@[email protected]
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb4/igt@[email protected]
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_108767v1/shard-iclb8/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1063]: https://gitlab.freedesktop.org/drm/intel/issues/1063
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2410]: https://gitlab.freedesktop.org/drm/intel/issues/2410
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2530]: https://gitlab.freedesktop.org/drm/intel/issues/2530
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2684]: https://gitlab.freedesktop.org/drm/intel/issues/2684
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4171]: https://gitlab.freedesktop.org/drm/intel/issues/4171
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#43]: https://gitlab.freedesktop.org/drm/intel/issues/43
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4392]: https://gitlab.freedesktop.org/drm/intel/issues/4392
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5519]: https://gitlab.freedesktop.org/drm/intel/issues/5519
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#5639]: https://gitlab.freedesktop.org/drm/intel/issues/5639
[i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
[i915#5939]: https://gitlab.freedesktop.org/drm/intel/issues/5939
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6599]: https://gitlab.freedesktop.org/drm/intel/issues/6599
[i915#6864]: https://gitlab.freedesktop.org/drm/intel/issues/6864
[i915#6884]: https://gitlab.freedesktop.org/drm/intel/issues/6884
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* Linux: CI_DRM_12158 -> Patchwork_108767v1
CI-20190529: 20190529
CI_DRM_12158: 3bde74f15d452bf788ecab8933ee802b2ee9e673 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6656: 24100c4e181c50e3678aeca9c641b8a43555ad73 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_108767v1: 3bde74f15d452bf788ecab8933ee802b2ee9e673 @ 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_108767v1/index.html
Hi Aravind,
Quoted 12 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +12
-0+static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 836
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ; +case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe:
just a bit puzzled by the fact that case ranges are not standard and are supported only by GCC, unless, of course, I miss something. Do we still want to use them as they are widely used around the kernel?
Andi
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0+return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +}
Quoted 19 lines · Andi Shyti
Hi Aravind,
Quoted 17 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +17
-0+static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ;
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 836
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0+case 0x30 : +return 1536 ; +case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe:just a bit puzzled by the fact that case ranges are not standard and are supported only by GCC, unless, of course, I miss
clang also supports it and can build the kernel (or a great portion of it).
Lucas De Marchi
Quoted 21 lines · Andi Shyti
Hi Aravind,
Quoted 19 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +19
-0+static int get_mtl_gms_size (struct intel_uncore *uncore) +{ +u16 ggc, gms; + + ggc =intel_uncore_read16 (uncore,_MMIO (0x108040 )); + +/* check GGMS, should be fixed 0x3 (8MB) */ +if ((ggc &0xc0 ) !=0xc0 ) +return -EIO ; + +/* return valid GMS value, -EIO if invalid */ + gms = ggc >>8 ; +switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ;
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 836
Quoted 3 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0+case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe:just a bit puzzled by the fact that case ranges are not standard and are supported only by GCC, unless, of course, I miss something. Do we still want to use them as they are widely used around the kernel?
i915 already has 17 other uses of this notation and the DRM subsystem in general has about 50 today. So it's not super common, but I think it should be okay to use. I believe clang supports this language extension as well and the coding style doc doesn't say anything one way or the other.
Matt
Quoted 8 lines
Andi
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-0+return (gms -0xf0 +1 ) *4 ; +default : +return -EIO ; + } +}
Signature · 4 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation
Hi Matt, Lucas,
thanks for your feedback,
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +7
-0+switch (gms) { + case 0x0 ... 0x10: +return gms *32 ; +case 0x20 : +return 1024 ; +case 0x30 : +return 1536 ;Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { · line 836
Quoted 3 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-0+case 0x40 : +return 2048 ; + case 0xf0 ... 0xfe:just a bit puzzled by the fact that case ranges are not standard and are supported only by GCC, unless, of course, I miss something. Do we still want to use them as they are widely used around the kernel?
Quoted 5 lines
i915 already has 17 other uses of this notation and the DRM subsystem in general has about 50 today. So it's not super common, but I think it should be okay to use. I believe clang supports this language extension as well and the coding style doc doesn't say anything one way or the other.
I thought clang supports it for C++ rather than C, but I'm not a clang expert, so that I might be wrong.
The fact that it is widely used is never a convincing argument and if gcc supports it, then it does it against the standard, both C11 and C17 (this is what puzzles me everytime I see these C tricks offered by gcc).
Anyway, I'm not against it (nor in favour) as the ellipsis is becoming very commonly used. My comment, by the way, did not mean to block the patch, I just wanted to check what other people think about.
Thanks,
Andi