drm/i915: Create stolen memory region from local memory
Subsystems (2)
PATCH 1/5 drm/i915: Create stolen memory region from local memory
From: CQ Tang <[email protected]>
Add "REGION_STOLEN" device info to dg1, create stolen memory region from upper portion of local device memory, starting from DSMBASE.
v2:
- s/drm_info/drm_dbg; userspace likely doesn't care about stolen.
- mem->type is only setup after the region probe, so setting the name as stolen-local or stolen-system based on this value won't work. Split system vs local stolen setup to fix this.
- kill all the region->devmem/is_devmem stuff. We already differentiate the different types of stolen so such things shouldn't be needed anymore.
v3:
- split stolen lmem vs smem ops(Tvrtko)
- add shortcut for stolen region in i915(Tvrtko)
- sanity check dsm base vs bar size(Xinyun)
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 137 ++++++++++++++++++--- drivers/gpu/drm/i915/i915_drv.h | 7 ++ drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_memory_region.c | 8 ++ drivers/gpu/drm/i915/intel_memory_region.h | 5 +- 6 files changed, 140 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +119 -18
@@ -10,6 +10,7 @@#include <drm/drm_mm.h> #include <drm/i915_drm.h> +#include "gem/i915_gem_lmem.h" #include "gem/i915_gem_region.h" #include "i915_drv.h" #include "i915_gem_stolen.h"
@@ -121,6 +122,14 @@ static int i915_adjust_stolen(struct drm_i915_private *i915, } } +/* +* With device local memory, we don't need to check the address range, +* this is device memory physical address, could overlap with system +* memory. +*/ +if (HAS_LMEM (i915)) +return 0 ; +/* * Verify that nothing else uses this physical address. Stolen * memory should be reserved by the BIOS and hidden from the
@@ -374,8 +383,9 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, } } -static int i915_gem_init_stolen (struct drm_i915_private *i915) +static int i915_gem_init_stolen (struct intel_memory_region *mem) { +struct drm_i915_private *i915 = mem->i915;struct intel_uncore *uncore = &i915->uncore;resource_size_t reserved_base, stolen_top;resource_size_t reserved_total, reserved_size;
@@ -396,10 +406,10 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915)return 0 ; } -if (resource_size (&intel_graphics_stolen_res) ==0 ) +if (resource_size (&mem->region) ==0 )return 0 ; - i915->dsm = intel_graphics_stolen_res; + i915->dsm = mem->region;if (i915_adjust_stolen (i915, &i915->dsm))return 0 ;
@@ -688,39 +698,130 @@ struct drm_i915_gem_object * i915_gem_object_create_stolen(struct drm_i915_private *i915, resource_size_t size) { -return i915_gem_object_create_region (i915->mm.regions[INTEL_REGION_STOLEN_SMEM ], +return i915_gem_object_create_region (i915->mm.stolen_region, size,I915_BO_ALLOC_CONTIGUOUS ); } -static int init_stolen (struct intel_memory_region *mem) +static int init_stolen_smem (struct intel_memory_region *mem) { -intel_memory_region_set_name (mem,"stolen" ); -/* * Initialise stolen early so that we may reserve preallocated * objects for the BIOS to KMS transition. */ -return i915_gem_init_stolen (mem->i915); +return i915_gem_init_stolen (mem); +} + +static void release_stolen_smem (struct intel_memory_region *mem) +{ +i915_gem_cleanup_stolen (mem->i915); +} + +static const struct intel_memory_region_ops i915_region_stolen_smem_ops = { + .init = init_stolen_smem, + .release = release_stolen_smem, + .init_object = _i915_gem_object_stolen_init, +}; + +static int init_stolen_lmem (struct intel_memory_region *mem) +{ +int err; + +if (GEM_WARN_ON (resource_size (&mem->region) ==0 )) +return -ENODEV ; + +if (!io_mapping_init_wc (&mem->iomap, + mem->io_start, +resource_size (&mem->region))) +return -EIO ; + +/* +* For stolen lmem we mostly just care about populating the dsm related +* bits and setting up the drm_mm allocator for the range. +*/ + err =i915_gem_init_stolen (mem); +if (err) + goto err_fini; + +return 0 ; + +err_fini: +io_mapping_fini (&mem->iomap); +return err; } -static void release_stolen (struct intel_memory_region *mem) +static void release_stolen_lmem (struct intel_memory_region *mem) { +io_mapping_fini (&mem->iomap);i915_gem_cleanup_stolen (mem->i915); } -static const struct intel_memory_region_ops i915_region_stolen_ops = { - .init = init_stolen, - .release = release_stolen, +static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { + .init = init_stolen_lmem, + .release = release_stolen_lmem, .init_object = _i915_gem_object_stolen_init, }; +static struct intel_memory_region * +setup_lmem_stolen (struct drm_i915_private *i915) +{ +struct intel_uncore *uncore = &i915->uncore; +struct pci_dev *pdev = i915->drm.pdev; +struct intel_memory_region *mem; +resource_size_t io_start; +resource_size_t lmem_size; +u64 lmem_base; + +if (!IS_DGFX (i915)) +return ERR_PTR (-ENODEV ); + + lmem_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (GEM_WARN_ON (lmem_base >=pci_resource_len (pdev,2 ))) +return ERR_PTR (-ENODEV ); + + lmem_size =pci_resource_len (pdev,2 ) - lmem_base; + io_start =pci_resource_start (pdev,2 ) + lmem_base; + + mem =intel_memory_region_create (i915, lmem_base, lmem_size, +I915_GTT_PAGE_SIZE_4K , io_start, + &i915_region_stolen_lmem_ops); +if (IS_ERR (mem)) +return mem; + +drm_dbg (&i915->drm,"Stolen Local memory IO start: %pa\n" , + &mem->io_start); + +intel_memory_region_set_name (mem,"stolen-local" ); + +return mem; +} + +static struct intel_memory_region * +setup_smem_stolen (struct drm_i915_private *i915) +{ +struct intel_memory_region *mem; + + mem =intel_memory_region_create (i915, + intel_graphics_stolen_res.start, +resource_size (&intel_graphics_stolen_res), +PAGE_SIZE ,0 , + &i915_region_stolen_smem_ops); +if (IS_ERR (mem)) +return mem; + +intel_memory_region_set_name (mem,"stolen-system" ); + +return mem; +} +struct intel_memory_region *i915_gem_stolen_setup (struct drm_i915_private *i915) { -return intel_memory_region_create (i915, - intel_graphics_stolen_res.start, -resource_size (&intel_graphics_stolen_res), -PAGE_SIZE ,0 , - &i915_region_stolen_ops); +struct intel_memory_region *mem; + + mem =setup_lmem_stolen (i915); +if (mem ==ERR_PTR (-ENODEV )) + mem =setup_smem_stolen (i915); + +return mem; } struct drm_i915_gem_object *
@@ -728,7 +829,7 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, resource_size_t stolen_offset, resource_size_t size) { -struct intel_memory_region *mem = i915->mm.regions[INTEL_REGION_STOLEN_SMEM ]; +struct intel_memory_region *mem = i915->mm.stolen_region;struct drm_i915_gem_object *obj;struct drm_mm_node *stolen;int ret;
drivers/gpu/drm/i915/i915_drv.h +7 -0
@@ -514,6 +514,13 @@ struct intel_l3_parity { };struct i915_gem_mm { +/* +* Shortcut for the stolen region. This points to either +* INTEL_REGION_STOLEN_SMEM for integrated platforms, or +* INTEL_REGION_STOLEN_LMEM for discrete, or NULL if the device doesn't +* support stolen. +*/ +struct intel_memory_region *stolen_region;/** Memory allocator for GTT stolen memory */ struct drm_mm stolen;/** Protects the usage of the GTT stolen memory allocator. This is
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -908,7 +908,7 @@ static const struct intel_device_info rkl_info = { };#define DGFX_FEATURES \ - .memory_regions = REGION_SMEM | REGION_LMEM, \ + .memory_regions = REGION_SMEM | REGION_LMEM | REGION_STOLEN_LMEM, \ .has_master_unit_irq = 1, \ .has_llc = 0, \ .has_snoop = 1, \
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -12191,6 +12191,7 @@ enum skl_power_gate {#define GEN12_GLOBAL_MOCS (i) _MMIO(0x4000 + (i) * 4)/* Global MOCS regs */ #define GEN12_GSMBASE _MMIO(0x108100) +#define GEN12_DSMBASE _MMIO(0x1080C0)/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)
drivers/gpu/drm/i915/intel_memory_region.c +8 -0
@@ -22,6 +22,10 @@ static const struct { .class = INTEL_MEMORY_STOLEN_SYSTEM, .instance = 0, }, + [INTEL_REGION_STOLEN_LMEM] = { + .class = INTEL_MEMORY_STOLEN_LOCAL, + .instance = 0, + }, }; struct intel_memory_region *
@@ -278,8 +282,12 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915)case INTEL_MEMORY_SYSTEM : mem =i915_gem_shmem_setup (i915);break ; +case INTEL_MEMORY_STOLEN_LOCAL : + fallthrough;case INTEL_MEMORY_STOLEN_SYSTEM : mem =i915_gem_stolen_setup (i915); +if (!IS_ERR (mem)) + i915->mm.stolen_region = mem;break ;default :continue ;
drivers/gpu/drm/i915/intel_memory_region.h +4 -1
@@ -26,18 +26,21 @@ enum intel_memory_type {INTEL_MEMORY_SYSTEM =0 ,INTEL_MEMORY_LOCAL ,INTEL_MEMORY_STOLEN_SYSTEM , + INTEL_MEMORY_STOLEN_LOCAL, };enum intel_region_id {INTEL_REGION_SMEM =0 ,INTEL_REGION_LMEM ,INTEL_REGION_STOLEN_SMEM , +INTEL_REGION_STOLEN_LMEM ,INTEL_REGION_UNKNOWN ,/* Should be last */ };#define REGION_SMEM BIT(INTEL_REGION_SMEM)#define REGION_LMEM BIT(INTEL_REGION_LMEM)#define REGION_STOLEN_SMEM BIT(INTEL_REGION_STOLEN_SMEM) +#define REGION_STOLEN_LMEM BIT(INTEL_REGION_STOLEN_LMEM)#define I915_ALLOC_MIN_PAGE_SIZE BIT(0)#define I915_ALLOC_CONTIGUOUS BIT(1)
@@ -82,7 +85,7 @@ struct intel_memory_region {u16 type;u16 instance;enum intel_region_id id; -char name[8 ]; +char name[16 ];struct list_head reserved;
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/5 drm/i915/stolen: treat stolen local as normal local memory
Underneath it's the same stuff, so things like the PTE_LM bits for the GTT should just keep working as-is.
--- drivers/gpu/drm/i915/gem/i915_gem_lmem.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_lmem.c +4 -1
@@ -19,7 +19,10 @@ const struct drm_i915_gem_object_ops i915_gem_lmem_obj_ops = {bool i915_gem_object_is_lmem (struct drm_i915_gem_object *obj) { -return obj->ops == &i915_gem_lmem_obj_ops; +struct intel_memory_region *mr = obj->mm.region; + +return mr && (mr->type ==INTEL_MEMORY_LOCAL || + mr->type ==INTEL_MEMORY_STOLEN_LOCAL ); } struct drm_i915_gem_object *
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/5 drm/i915/stolen: enforce the min_page_size contract
In reply to Matthew AuldFrom: CQ Tang <[email protected]>
Since stolen can now be device local-memory underneath, we should try to enforce any min_page_size restrictions when allocating pages.
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +4 -3
@@ -677,7 +677,8 @@ static int _i915_gem_object_stolen_init(struct intel_memory_region *mem,if (!stolen)return -ENOMEM ; - ret =i915_gem_stolen_insert_node (i915, stolen, size,4096 ); + ret =i915_gem_stolen_insert_node (i915, stolen, size, + mem->min_page_size);if (ret) goto err_free;
@@ -843,8 +844,8 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915,/* KISS and expect everything to be page-aligned */ if (GEM_WARN_ON (size ==0 ) || -GEM_WARN_ON (!IS_ALIGNED (size,I915_GTT_PAGE_SIZE )) || -GEM_WARN_ON (!IS_ALIGNED (stolen_offset,I915_GTT_MIN_ALIGNMENT ))) +GEM_WARN_ON (!IS_ALIGNED (size, mem->min_page_size)) || +GEM_WARN_ON (!IS_ALIGNED (stolen_offset, mem->min_page_size)))return ERR_PTR (-EINVAL ); stolen =kzalloc (sizeof (*stolen),GFP_KERNEL );
Signature · 6 lines
2.26.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/5 drm/i915/stolen: pass the allocation flags
In reply to Matthew AuldFrom: CQ Tang <[email protected]>
Stolen memory is always allocated as physically contiguous pages, mark the object flags as such.
v2: move setting I915_BO_ALLOC_CONTIGUOUS into create_stolen
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +12 -5
@@ -633,14 +633,21 @@ static const struct drm_i915_gem_object_ops i915_gem_object_stolen_ops = {static int __i915_gem_object_create_stolen (struct intel_memory_region *mem,struct drm_i915_gem_object *obj, -struct drm_mm_node *stolen) +struct drm_mm_node *stolen, +unsigned int flags) {static struct lock_class_key lock_class;unsigned int cache_level;int err; +/* +* Stolen objects are always physically contiguous since we just +* allocate one big block underneath using the drm_mm range allocator. +*/ + flags |=I915_BO_ALLOC_CONTIGUOUS ; +drm_gem_private_object_init (&mem->i915->drm, &obj->base, stolen->size); -i915_gem_object_init (obj, &i915_gem_object_stolen_ops, &lock_class,0 ); +i915_gem_object_init (obj, &i915_gem_object_stolen_ops, &lock_class, flags); obj->stolen = stolen; obj->read_domains =I915_GEM_DOMAIN_CPU |I915_GEM_DOMAIN_GTT ;
@@ -682,7 +689,7 @@ static int _i915_gem_object_stolen_init(struct intel_memory_region *mem,if (ret) goto err_free; - ret =__i915_gem_object_create_stolen (mem, obj, stolen); + ret =__i915_gem_object_create_stolen (mem, obj, stolen, flags);if (ret) goto err_remove;
@@ -700,7 +707,7 @@ i915_gem_object_create_stolen(struct drm_i915_private *i915, resource_size_t size) {return i915_gem_object_create_region (i915->mm.stolen_region, - size,I915_BO_ALLOC_CONTIGUOUS ); + size,0 ); }static int init_stolen_smem (struct intel_memory_region *mem)
@@ -866,7 +873,7 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, goto err_stolen; } - ret =__i915_gem_object_create_stolen (mem, obj, stolen); + ret =__i915_gem_object_create_stolen (mem, obj, stolen,0 );if (ret) goto err_object_free;
Signature · 6 lines
2.26.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/5 drm/i915/lmem: Fail driver init if LMEM training failed
In reply to Matthew AuldFrom: Matt Roper <[email protected]>
Boot firmware performs memory training and health assessment during startup. If the memory training fails, the firmware will consider the GPU unusable and will instruct the punit to keep the GT powered down. If this happens, our driver will be unable to communicate with the GT (all GT registers will read back as 0, forcewake requests will timeout, etc.) so we should abort driver initialization if this happens. We can confirm that LMEM was initialized successfully via sgunit register GU_CNTL.
Bspec: 53111
--- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_uncore.c | 12 ++++++++++++ 2 files changed, 15 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +3 -0
@@ -487,6 +487,9 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define GAB_CTL _MMIO(0x24000)#define GAB_CTL_CONT_AFTER_PAGEFAULT (1 << 8) +#define GU_CNTL _MMIO(0x101010) +#define LMEM_INIT REG_BIT(7) +#define GEN6_STOLEN_RESERVED _MMIO(0x1082C0)#define GEN6_STOLEN_RESERVED_ADDR_MASK (0xFFF << 20)#define GEN7_STOLEN_RESERVED_ADDR_MASK (0x3FFF << 18)
drivers/gpu/drm/i915/intel_uncore.c +12 -0
@@ -1917,6 +1917,18 @@ int intel_uncore_init_mmio(struct intel_uncore *uncore)if (ret)return ret; +/* +* The boot firmware initializes local memory and assesses its health. +* If memory training fails, the punit will have been instructed to +* keep the GT powered down; we won't be able to communicate with it +* and we should not continue with driver initialization. +*/ +if (IS_DGFX (i915) && + !(__raw_uncore_read32 (uncore,GU_CNTL ) &LMEM_INIT )) { +drm_err (&i915->drm,"LMEM not initialized by firmware\n" ); +return -ENODEV ; + } +if (INTEL_GEN (i915) >5 && !intel_vgpu_active (i915)) uncore->flags |=UNCORE_HAS_FORCEWAKE ;
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 45 lines · Matthew Auld
From: CQ Tang <[email protected]>
Add "
REGION_STOLEN" device info to dg1, create stolen memory region from upper portion of local device memory, starting from DSMBASE.v2:
- s/drm_info/drm_dbg; userspace likely doesn't care about stolen.
-mem->typeis only setup after the region probe, so setting the name as stolen-local or stolen-system based on this value won't work. Split system vs local stolen setup to fix this.
- kill all the region->devmem/is_devmem stuff. We already differentiate the different types of stolen so such things shouldn't be needed anymore.
v3:
- split stolen lmem vs smem ops(Tvrtko)
- add shortcut for stolen region in i915(Tvrtko)
- sanity check dsm base vs bar size(Xinyun)Signed-off-by CQ Tang <[email protected]>Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Xinyun Liu <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 137 ++++++++++++++++++--- drivers/gpu/drm/i915/i915_drv.h | 7 ++ drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_memory_region.c | 8 ++ drivers/gpu/drm/i915/intel_memory_region.h | 5 +- 6 files changed, 140 insertions(+), 20 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0@@ -10,6 +10,7 @@#include <drm/drm_mm.h> #include <drm/i915_drm.h> +#include "gem/i915_gem_lmem.h" #include "gem/i915_gem_region.h" #include "i915_drv.h" #include "i915_gem_stolen.h"
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int i915_adjust_stolen(struct drm_i915_private *i915, · line 131
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +7
-0@@ -121,6 +122,14 @@ static int i915_adjust_stolen(struct drm_i915_private *i915, } } +/* +* With device local memory, we don't need to check the address range, +* this is device memory physical address, could overlap with system +* memory. +*/ +if (HAS_LMEM (i915)) +return 0 ;
The grammar in the comment is a bit hard to parse for me, but more importantly, this is now not on the device stolen path, right?
[Comes back later, hm no, still called okay at least there is a comment now explaining which are the relevant bits.]
Quoted 68 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +28
-8+/* * Verify that nothing else uses this physical address. Stolen * memory should be reserved by the BIOS and hidden from the @@ -374,8 +383,9 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, } } -static int i915_gem_init_stolen (struct drm_i915_private *i915) +static int i915_gem_init_stolen (struct intel_memory_region *mem) { +struct drm_i915_private *i915 = mem->i915;struct intel_uncore *uncore = &i915->uncore;resource_size_t reserved_base, stolen_top;resource_size_t reserved_total, reserved_size;@@ -396,10 +406,10 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915)return 0 ; } -if (resource_size (&intel_graphics_stolen_res) ==0 ) +if (resource_size (&mem->region) ==0 )return 0 ; - i915->dsm = intel_graphics_stolen_res; + i915->dsm = mem->region;if (i915_adjust_stolen (i915, &i915->dsm))return 0 ;@@ -688,39 +698,130 @@ struct drm_i915_gem_object * i915_gem_object_create_stolen(struct drm_i915_private *i915, resource_size_t size) { -return i915_gem_object_create_region (i915->mm.regions[INTEL_REGION_STOLEN_SMEM ], +return i915_gem_object_create_region (i915->mm.stolen_region, size,I915_BO_ALLOC_CONTIGUOUS ); } -static int init_stolen (struct intel_memory_region *mem) +static int init_stolen_smem (struct intel_memory_region *mem) { -intel_memory_region_set_name (mem,"stolen" ); -/* * Initialise stolen early so that we may reserve preallocated * objects for the BIOS to KMS transition. */ -return i915_gem_init_stolen (mem->i915); +return i915_gem_init_stolen (mem); +} + +static void release_stolen_smem (struct intel_memory_region *mem) +{ +i915_gem_cleanup_stolen (mem->i915); +} + +static const struct intel_memory_region_ops i915_region_stolen_smem_ops = { + .init = init_stolen_smem, + .release = release_stolen_smem, + .init_object = _i915_gem_object_stolen_init, +}; + +static int init_stolen_lmem (struct intel_memory_region *mem) +{ +int err; + +if (GEM_WARN_ON (resource_size (&mem->region) ==0 )) +return -ENODEV ; +
drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 741
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+if (!io_mapping_init_wc (&mem->iomap, + mem->io_start, +resource_size (&mem->region))) +return -EIO ; + +/* +* For stolen lmem we mostly just care about populating the dsm related +* bits and setting up the drm_mm allocator for the range. +*/ + err =i915_gem_init_stolen (mem);
Ideally we would be able to split this into two so there would be no further smem/lmem stolen forking inside it. That way we would also avoid the "mostly" and reach total clarity but okay, can leave for later.
Quoted 28 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +15
-4+if (err) + goto err_fini; + +return 0 ; + +err_fini: +io_mapping_fini (&mem->iomap); +return err; } -static void release_stolen (struct intel_memory_region *mem) +static void release_stolen_lmem (struct intel_memory_region *mem) { +io_mapping_fini (&mem->iomap);i915_gem_cleanup_stolen (mem->i915); } -static const struct intel_memory_region_ops i915_region_stolen_ops = { - .init = init_stolen, - .release = release_stolen, +static const struct intel_memory_region_ops i915_region_stolen_lmem_ops = { + .init = init_stolen_lmem, + .release = release_stolen_lmem, .init_object = _i915_gem_object_stolen_init, }; +static struct intel_memory_region * +setup_lmem_stolen (struct drm_i915_private *i915)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 775
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+{ +struct intel_uncore *uncore = &i915->uncore; +struct pci_dev *pdev = i915->drm.pdev; +struct intel_memory_region *mem; +resource_size_t io_start; +resource_size_t lmem_size; +u64 lmem_base; + +if (!IS_DGFX (i915)) +return ERR_PTR (-ENODEV );
Is this check needed? Looks like the caller will only call this based on HAS_REGION. GEM_DEBUG_WARN_ON(!IS_DGFX())?
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +6
-0+ + lmem_base =intel_uncore_read64 (uncore,GEN12_DSMBASE ); +if (GEM_WARN_ON (lmem_base >=pci_resource_len (pdev,2 ))) +return ERR_PTR (-ENODEV ); + + lmem_size =pci_resource_len (pdev,2 ) - lmem_base;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 791
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+ io_start =pci_resource_start (pdev,2 ) + lmem_base; + + mem =intel_memory_region_create (i915, lmem_base, lmem_size, +I915_GTT_PAGE_SIZE_4K , io_start, + &i915_region_stolen_lmem_ops); +if (IS_ERR (mem)) +return mem; + +drm_dbg (&i915->drm,"Stolen Local memory IO start: %pa\n" , + &mem->io_start);
Printouts I'd prefer if they were done by the common code which calls region->init(). Afterwards it could generically print all the region data with common formatting and using the set region name. Optional, later, is fine.
drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 793
Quoted 2 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-0+ +intel_memory_region_set_name (mem,"stolen-local" );
Should the name just be passed in to intel_memory_region_create or there is a good reason for it to be a follow up step?
Quoted 24 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +22
-0+ +return mem; +} + +static struct intel_memory_region * +setup_smem_stolen (struct drm_i915_private *i915) +{ +struct intel_memory_region *mem; + + mem =intel_memory_region_create (i915, + intel_graphics_stolen_res.start, +resource_size (&intel_graphics_stolen_res), +PAGE_SIZE ,0 , + &i915_region_stolen_smem_ops); +if (IS_ERR (mem)) +return mem; + +intel_memory_region_set_name (mem,"stolen-system" ); + +return mem; +} +struct intel_memory_region *i915_gem_stolen_setup (struct drm_i915_private *i915) {
drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 822
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-5-return intel_memory_region_create (i915, - intel_graphics_stolen_res.start, -resource_size (&intel_graphics_stolen_res), -PAGE_SIZE ,0 , - &i915_region_stolen_ops); +struct intel_memory_region *mem; + + mem =setup_lmem_stolen (i915); +if (mem ==ERR_PTR (-ENODEV )) + mem =setup_smem_stolen (i915);
This helper is possibly not needed any more since the caller is a switch statement with a fallthrough. So eliminate the falltrough and call the correct setup directly from there? There is the i915->mm.stolen assignment to be duplicated in that case so up to you.
Quoted 113 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3
-1+ +return mem; } struct drm_i915_gem_object *@@ -728,7 +829,7 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, resource_size_t stolen_offset, resource_size_t size) { -struct intel_memory_region *mem = i915->mm.regions[INTEL_REGION_STOLEN_SMEM ]; +struct intel_memory_region *mem = i915->mm.stolen_region;struct drm_i915_gem_object *obj;struct drm_mm_node *stolen;int ret;drivers/gpu/drm/i915/i915_drv.h +7
-0@@ -514,6 +514,13 @@ struct intel_l3_parity { };struct i915_gem_mm { +/* +* Shortcut for the stolen region. This points to either +* INTEL_REGION_STOLEN_SMEM for integrated platforms, or +* INTEL_REGION_STOLEN_LMEM for discrete, or NULL if the device doesn't +* support stolen. +*/ +struct intel_memory_region *stolen_region;/** Memory allocator for GTT stolen memory */ struct drm_mm stolen;/** Protects the usage of the GTT stolen memory allocator. This is drivers/gpu/drm/i915/i915_pci.c +1
-1@@ -908,7 +908,7 @@ static const struct intel_device_info rkl_info = { };#define DGFX_FEATURES \ - .memory_regions = REGION_SMEM | REGION_LMEM, \ + .memory_regions = REGION_SMEM | REGION_LMEM | REGION_STOLEN_LMEM, \ .has_master_unit_irq = 1, \ .has_llc = 0, \ .has_snoop = 1, \drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -12191,6 +12191,7 @@ enum skl_power_gate {#define GEN12_GLOBAL_MOCS (i) _MMIO(0x4000 + (i) * 4)/* Global MOCS regs */ #define GEN12_GSMBASE _MMIO(0x108100) +#define GEN12_DSMBASE _MMIO(0x1080C0)/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)drivers/gpu/drm/i915/intel_memory_region.c +8
-0@@ -22,6 +22,10 @@ static const struct { .class = INTEL_MEMORY_STOLEN_SYSTEM, .instance = 0, }, + [INTEL_REGION_STOLEN_LMEM] = { + .class = INTEL_MEMORY_STOLEN_LOCAL, + .instance = 0, + }, }; struct intel_memory_region *@@ -278,8 +282,12 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915)case INTEL_MEMORY_SYSTEM : mem =i915_gem_shmem_setup (i915);break ; +case INTEL_MEMORY_STOLEN_LOCAL : + fallthrough;case INTEL_MEMORY_STOLEN_SYSTEM : mem =i915_gem_stolen_setup (i915); +if (!IS_ERR (mem)) + i915->mm.stolen_region = mem;break ;default :continue ;drivers/gpu/drm/i915/intel_memory_region.h +3
-0@@ -26,18 +26,21 @@ enum intel_memory_type {INTEL_MEMORY_SYSTEM =0 ,INTEL_MEMORY_LOCAL ,INTEL_MEMORY_STOLEN_SYSTEM , + INTEL_MEMORY_STOLEN_LOCAL, };enum intel_region_id {INTEL_REGION_SMEM =0 ,INTEL_REGION_LMEM ,INTEL_REGION_STOLEN_SMEM , +INTEL_REGION_STOLEN_LMEM ,INTEL_REGION_UNKNOWN ,/* Should be last */ };#define REGION_SMEM BIT(INTEL_REGION_SMEM)#define REGION_LMEM BIT(INTEL_REGION_LMEM)#define REGION_STOLEN_SMEM BIT(INTEL_REGION_STOLEN_SMEM) +#define REGION_STOLEN_LMEM BIT(INTEL_REGION_STOLEN_LMEM)#define I915_ALLOC_MIN_PAGE_SIZE BIT(0)#define I915_ALLOC_CONTIGUOUS BIT(1)
drivers/gpu/drm/i915/intel_memory_region.h struct intel_memory_region { · line 91
Quoted 8 lines
drivers/gpu/drm/i915/intel_memory_region.h +1
-1@@ -82,7 +85,7 @@ struct intel_memory_region {u16 type;u16 instance;enum intel_region_id id; -char name[8 ]; +char name[16 ];struct list_head reserved;
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/5] drm/i915/stolen: pass the allocation flags
In reply to Matthew AuldQuoted 43 lines · Matthew Auld
From: CQ Tang <[email protected]>
Stolen memory is always allocated as physically contiguous pages, mark the object flags as such.
v2: move setting
I915_BO_ALLOC_CONTIGUOUSintocreate_stolenSigned-off-by CQ Tang <[email protected]>Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +9
-2@@ -633,14 +633,21 @@ static const struct drm_i915_gem_object_ops i915_gem_object_stolen_ops = {static int __i915_gem_object_create_stolen (struct intel_memory_region *mem,struct drm_i915_gem_object *obj, -struct drm_mm_node *stolen) +struct drm_mm_node *stolen, +unsigned int flags) {static struct lock_class_key lock_class;unsigned int cache_level;int err; +/* +* Stolen objects are always physically contiguous since we just +* allocate one big block underneath using the drm_mm range allocator. +*/ + flags |=I915_BO_ALLOC_CONTIGUOUS ; +drm_gem_private_object_init (&mem->i915->drm, &obj->base, stolen->size); -i915_gem_object_init (obj, &i915_gem_object_stolen_ops, &lock_class,0 ); +i915_gem_object_init (obj, &i915_gem_object_stolen_ops, &lock_class, flags); obj->stolen = stolen; obj->read_domains =I915_GEM_DOMAIN_CPU |I915_GEM_DOMAIN_GTT ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int _i915_gem_object_stolen_init(struct intel_memory_region *mem, · line 692
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -682,7 +689,7 @@ static int _i915_gem_object_stolen_init(struct intel_memory_region *mem,if (ret) goto err_free; - ret =__i915_gem_object_create_stolen (mem, obj, stolen); + ret =__i915_gem_object_create_stolen (mem, obj, stolen, flags);
Hm odd that previously the flags were ignored in here. I guess no callers were passing any when creating stolen objects. If none are supported should we add a GEM_BUG_ON to check for that?
Regards,
Tvrtko
Quoted 14 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1if (ret) goto err_remove;@@ -700,7 +707,7 @@ i915_gem_object_create_stolen(struct drm_i915_private *i915, resource_size_t size) {return i915_gem_object_create_region (i915->mm.stolen_region, - size,I915_BO_ALLOC_CONTIGUOUS ); + size,0 ); }static int init_stolen_smem (struct intel_memory_region *mem)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, · line 879
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -866,7 +873,7 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, goto err_stolen; } - ret =__i915_gem_object_create_stolen (mem, obj, stolen); + ret =__i915_gem_object_create_stolen (mem, obj, stolen,0 );if (ret) goto err_object_free;
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915: Create stolen memory region from local memory
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/i915: Create stolen memory region from local memory
URL : https://patchwork.freedesktop.org/series/89262/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
479d6127dcdd drm/i915: Create stolen memory region from local memory
-:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#13:
as stolen-local or stolen-system based on this value won't work. Splittotal: 0 errors, 1 warnings, 0 checks, 274 lines checked 429b51540817 drm/i915/stolen: treat stolen local as normal local memory d50cd7bfdf05 drm/i915/stolen: enforce the min_page_size contract fc7a0ee878a8 drm/i915/stolen: pass the allocation flags 83ae59c4c9ab drm/i915/lmem: Fail driver init if LMEM training failed
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [1/5] drm/i915: Create stolen memory region from local memory
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/i915: Create stolen memory region from local memory
URL : https://patchwork.freedesktop.org/series/89262/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gem/i915_gem_shrinker.c:102: warning: Function parameter or member 'ww' not described in 'i915_gem_shrink' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'jump_whitelist' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'shadow_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'batch_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser'
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/i915: Create stolen memory region from local memory
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/i915: Create stolen memory region from local memory
URL : https://patchwork.freedesktop.org/series/89262/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9988 -> Patchwork_19956
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/index.html
Known issues
------------
Here are the changes found in Patchwork_19956 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@semaphore:
- fi-icl-y: NOTRUN -> [SKIP][1] ([fdo#109315]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@amdgpu/[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-icl-y: NOTRUN -> [SKIP][2] ([i915#2190])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][3] -> [INCOMPLETE][4] ([i915#2782])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/fi-snb-2600/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-icl-y: NOTRUN -> [SKIP][5] ([fdo#109284] / [fdo#111827]) +8 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-y: NOTRUN -> [SKIP][6] ([fdo#109285])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-icl-y: NOTRUN -> [SKIP][7] ([fdo#109278])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@[email protected]
* igt@kms_psr@primary_mmap_gtt:
- fi-icl-y: NOTRUN -> [SKIP][8] ([fdo#110189]) +3 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@kms_psr@primary_mmap_gtt.html
* igt@prime_vgem@basic-userptr:
- fi-icl-y: NOTRUN -> [SKIP][9] ([i915#3301])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/fi-icl-y/igt@[email protected]
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
Participating hosts (41 -> 40)
------------------------------
Additional (1): fi-icl-y
Missing (2): fi-bsw-cyan fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_9988 -> Patchwork_19956
CI-20190529: 20190529
CI_DRM_9988: 431bd0cbb466ae58900e298116cda861dd7fd860 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6071: d293ad78a035dcf681345ca15e0256e0c3b1e7bb @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19956: 83ae59c4c9ab8ccccf7b6e0ee3f51a7eef0c07a2 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
83ae59c4c9ab drm/i915/lmem: Fail driver init if LMEM training failed fc7a0ee878a8 drm/i915/stolen: pass the allocation flags d50cd7bfdf05 drm/i915/stolen: enforce the min_page_size contract 429b51540817 drm/i915/stolen: treat stolen local as normal local memory 479d6127dcdd drm/i915: Create stolen memory region from local memory
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/5] drm/i915: Create stolen memory region from local memory
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/i915: Create stolen memory region from local memory
URL : https://patchwork.freedesktop.org/series/89262/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9988_full -> Patchwork_19956_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_19956_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_19956_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_19956_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-tglb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
Known issues
------------
Here are the changes found in Patchwork_19956_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@drm_mm@all@insert:
- shard-skl: [PASS][3] -> [INCOMPLETE][4] ([i915#2485] / [i915#2502])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl4/igt@drm_mm@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl8/igt@drm_mm@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#1099]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-snb5/igt@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-glk: [PASS][6] -> [FAIL][7] ([i915#2842])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-glk7/igt@gem_exec_fair@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-glk1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][8] -> [FAIL][9] ([i915#2842]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl4/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl7/igt@gem_exec_fair@[email protected]
- shard-apl: [PASS][10] -> [FAIL][11] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-apl2/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-tglb: [PASS][12] -> [FAIL][13] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-tglb8/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][14] ([i915#2842])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-snb: NOTRUN -> [SKIP][15] ([fdo#109271]) +260 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-snb5/igt@[email protected]
* igt@gem_set_tiling_vs_blt@tiled-to-untiled:
- shard-skl: [PASS][16] -> [DMESG-WARN][17] ([i915#1982])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl4/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl8/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#3323])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-skl: NOTRUN -> [DMESG-WARN][19] ([i915#3002]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl8/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-snb: NOTRUN -> [FAIL][20] ([i915#2724])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-snb7/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][21] ([i915#3318])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl3/igt@[email protected]
* igt@gem_vm_create@destroy-race:
- shard-tglb: [PASS][22] -> [TIMEOUT][23] ([i915#2795])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-tglb6/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-tglb1/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-snb: [PASS][24] -> [INCOMPLETE][25] ([i915#2880])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-snb7/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-snb6/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-apl: NOTRUN -> [SKIP][26] ([fdo#109271]) +88 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl7/igt@[email protected]
* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [PASS][27] -> [FAIL][28] ([i915#2574])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-tglb2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-tglb7/igt@[email protected]
* igt@kms_ccs@pipe-c-bad-aux-stride:
- shard-skl: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111304]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl1/igt@[email protected]
* igt@kms_chamelium@hdmi-audio-edid:
- shard-kbl: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +13 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +11 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl3/igt@[email protected]
* igt@kms_chamelium@vga-hpd-for-each-pipe:
- shard-skl: NOTRUN -> [SKIP][32] ([fdo#109271] / [fdo#111827]) +5 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-negative:
- shard-snb: NOTRUN -> [SKIP][33] ([fdo#109271] / [fdo#111827]) +13 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-snb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-max-size-onscreen:
- shard-kbl: NOTRUN -> [SKIP][34] ([fdo#109271]) +130 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-32x10-rapid-movement:
- shard-iclb: NOTRUN -> [SKIP][35] ([fdo#109278])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#109274] / [fdo#109278])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-toggle:
- shard-skl: [PASS][37] -> [INCOMPLETE][38] ([i915#3254])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl2/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [PASS][39] -> [FAIL][40] ([i915#2346] / [i915#533])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl10/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@2x-flip-vs-suspend-interruptible:
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#109274])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [PASS][42] -> [FAIL][43] ([i915#79])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl6/igt@kms_flip@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-apl: NOTRUN -> [DMESG-WARN][44] ([i915#180])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@b-edp1:
- shard-skl: [PASS][45] -> [FAIL][46] ([i915#2122]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl6/igt@kms_flip@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-dp1:
- shard-kbl: [PASS][47] -> [FAIL][48] ([i915#2122])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl3/igt@kms_flip@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-apl: NOTRUN -> [FAIL][49] ([i915#2641])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl7/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#2672])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-skl: NOTRUN -> [SKIP][51] ([fdo#109271]) +49 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-gtt:
- shard-tglb: NOTRUN -> [SKIP][52] ([fdo#111825])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-tglb6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-gtt.html
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: NOTRUN -> [FAIL][53] ([i915#1188])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-kbl: [PASS][54] -> [DMESG-WARN][55] ([i915#180])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl2/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl1/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#533]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][57] ([fdo#108145] / [i915#265])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-kbl: NOTRUN -> [FAIL][58] ([fdo#108145] / [i915#265])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][59] ([i915#265]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: NOTRUN -> [FAIL][60] ([fdo#108145] / [i915#265]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][61] -> [FAIL][62] ([fdo#108145] / [i915#265]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl7/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl9/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-kbl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#658]) +4 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-3:
- shard-skl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#658]) +2 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#658]) +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl3/igt@[email protected]
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][66] -> [SKIP][67] ([fdo#109441]) +2 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb8/igt@kms_psr@psr2_cursor_render.html
* igt@kms_sysfs_edid_timing:
- shard-kbl: NOTRUN -> [FAIL][68] ([IGT#2])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@kms_sysfs_edid_timing.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [PASS][69] -> [DMESG-WARN][70] ([i915#180] / [i915#295])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-apl2/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl8/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-skl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#2437])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-skl: [PASS][72] -> [FAIL][73] ([i915#1542])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl10/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl4/igt@[email protected]
* igt@perf@polling-small-buf:
- shard-skl: [PASS][74] -> [FAIL][75] ([i915#1722])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl2/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl9/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-iclb: NOTRUN -> [SKIP][76] ([fdo#109289])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@sysfs_clients@split-10:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#2994])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl7/igt@[email protected]
* igt@sysfs_clients@split-50:
- shard-kbl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#2994]) +3 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl3/igt@[email protected]
#### Possible fixes ####
* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][79] ([i915#658]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb5/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-apl: [FAIL][81] ([i915#2842]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-apl2/igt@gem_exec_fair@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-iclb: [FAIL][83] ([i915#2842]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb1/igt@gem_exec_fair@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: [SKIP][85] ([fdo#109271]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl4/igt@gem_exec_fair@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-kbl: [FAIL][87] ([i915#2842]) -> [PASS][88] +2 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl4/igt@gem_exec_fair@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][89] ([i915#2849]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb8/igt@gem_exec_fair@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-xy:
- shard-iclb: [FAIL][91] ([i915#2428]) -> [PASS][92] +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb6/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb7/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-glk: [FAIL][93] ([i915#307]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-glk2/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-glk7/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-skl: [DMESG-WARN][95] ([i915#1436] / [i915#716]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl9/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl1/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-skl: [DMESG-WARN][97] ([i915#1982]) -> [PASS][98] +2 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl6/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-skl: [FAIL][99] ([i915#2346]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl8/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-dp1:
- shard-apl: [FAIL][101] ([i915#79]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-apl8/igt@kms_flip@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][103] ([i915#180]) -> [PASS][104] +7 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl7/igt@kms_flip@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl6/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][105] ([i915#1188]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl9/igt@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [SKIP][107] ([fdo#109441]) -> [PASS][108] +1 similar issue
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb5/igt@kms_psr@psr2_primary_page_flip.html
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@prime_vgem@coherency-blt:
- shard-skl: [INCOMPLETE][109] -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl6/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
* igt@prime_vgem@sync@rcs0:
- shard-iclb: [INCOMPLETE][111] ([i915#409]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb5/igt@prime_vgem@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@prime_vgem@[email protected]
#### Warnings ####
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: [FAIL][113] ([i915#2842]) -> [FAIL][114] ([i915#2852])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb5/igt@gem_exec_fair@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][115] ([i915#1804] / [i915#2684]) -> [WARN][116] ([i915#2681] / [i915#2684])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb6/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb8/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][117] ([i915#2684]) -> [WARN][118] ([i915#2681] / [i915#2684])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb2/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-iclb: [SKIP][119] ([i915#2920]) -> [SKIP][120] ([i915#658]) +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb2/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb6/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-3:
- 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_9988/shard-iclb8/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][123], [FAIL][124], [FAIL][125], [FAIL][126], [FAIL][127], [FAIL][128], [FAIL][129], [FAIL][130]) ([i915#180] / [i915#1814] / [i915#2505] / [i915#3002]) -> ([FAIL][131], [FAIL][132], [FAIL][133]) ([i915#1814] / [i915#3002])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl1/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl1/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl7/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl3/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl1/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl1/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-kbl6/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl2/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl1/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-kbl3/igt@[email protected]
- shard-iclb: ([FAIL][134], [FAIL][135], [FAIL][136]) ([i915#2426] / [i915#3002] / [i915#409]) -> ([FAIL][137], [FAIL][138]) ([i915#3002])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb5/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb7/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-iclb1/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb4/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-iclb4/igt@[email protected]
- shard-skl: ([FAIL][139], [FAIL][140]) ([i915#1436] / [i915#2029]) -> ([FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144]) ([i915#1814] / [i915#2029] / [i915#3002])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl2/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9988/shard-skl9/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl8/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl2/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/shard-skl7/igt@[email protected]
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#111304]: https://bugs.freedesktop.org/show_bug.cgi?id=111304
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1804]: https://gitlab.freedesktop.org/drm/intel/issues/1804
[i915#1814]: https://gitlab.freedesktop.org/drm/intel/issues/1814
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2428]: https://gitlab.freedesktop.org/dr
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19956/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 134 lines · Tvrtko Ursulin
Quoted 45 lines · Matthew Auld
From: CQ Tang <[email protected]>
Add "
REGION_STOLEN" device info to dg1, create stolen memory region from upper portion of local device memory, starting from DSMBASE.v2:
- s/drm_info/drm_dbg; userspace likely doesn't care about stolen.
-mem->typeis only setup after the region probe, so setting the name as stolen-local or stolen-system based on this value won't work. Split system vs local stolen setup to fix this.
- kill all the region->devmem/is_devmem stuff. We already differentiate the different types of stolen so such things shouldn't be needed anymore.
v3:
- split stolen lmem vs smem ops(Tvrtko)
- add shortcut for stolen region in i915(Tvrtko)
- sanity check dsm base vs bar size(Xinyun)Signed-off-by CQ Tang <[email protected]>Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Xinyun Liu <[email protected]>---
drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 137 ++++++++++++++++++---drivers/gpu/drm/i915/i915_drv.h | 7 ++ drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_memory_region.c | 8 ++ drivers/gpu/drm/i915/intel_memory_region.h | 5 +- 6 files changed, 140 insertions(+), 20 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0@@ -10,6 +10,7 @@ #include <drm/drm_mm.h> #include <drm/i915_drm.h> +#include "gem/i915_gem_lmem.h" #include "gem/i915_gem_region.h" #include "i915_drv.h" #include "i915_gem_stolen.h"@@ -121,6 +122,14 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int i915_adjust_stolen(struct · line 132
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +7
-0} } + /* + * With device local memory, we don't need to check the address range, + * this is device memory physical address, could overlap with system + * memory. + */ + if (HAS_LMEM(i915)) + return 0;The grammar in the comment is a bit hard to parse for me, but more importantly, this is now not on the device stolen path, right?
[Comes back later, hm no, still called okay at least there is a comment now explaining which are the relevant bits.]
Quoted 72 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-0+ /** Verify that nothing else uses this physical address. Stolen * memory should be reserved by the BIOS and hidden from the
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +32
-8@@ -374,8 +383,9 @@ static void icl_get_stolen_reserved(struct drm_i915_private *i915, } } -static int i915_gem_init_stolen (struct drm_i915_private *i915) +static int i915_gem_init_stolen (struct intel_memory_region *mem) { + struct drm_i915_private *i915 = mem->i915; struct intel_uncore *uncore = &i915->uncore; resource_size_t reserved_base, stolen_top; resource_size_t reserved_total, reserved_size;@@ -396,10 +406,10 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915) return 0; } - if (resource_size(&intel_graphics_stolen_res) == 0) + if (resource_size(&mem->region) == 0) return 0; - i915->dsm = intel_graphics_stolen_res; + i915->dsm = mem->region; if (i915_adjust_stolen(i915, &i915->dsm)) return 0;@@ -688,39 +698,130 @@ struct drm_i915_gem_object * i915_gem_object_create_stolen(struct drm_i915_private *i915, resource_size_t size) { - returni915_gem_object_create_region (i915->mm.regions[INTEL_REGION_STOLEN_SMEM ], + return i915_gem_object_create_region(i915->mm.stolen_region, size, I915_BO_ALLOC_CONTIGUOUS); } -static int init_stolen (struct intel_memory_region *mem) +static int init_stolen_smem(struct intel_memory_region *mem) { - intel_memory_region_set_name(mem, "stolen"); - /* * Initialise stolen early so that we may reserve preallocated * objects for the BIOS to KMS transition. */ - return i915_gem_init_stolen(mem->i915); + return i915_gem_init_stolen(mem); +} + +static void release_stolen_smem(struct intel_memory_region *mem) +{ + i915_gem_cleanup_stolen(mem->i915); +} + +static const struct intel_memory_region_ops i915_region_stolen_smem_ops = { + .init = init_stolen_smem, + .release = release_stolen_smem, + .init_object = _i915_gem_object_stolen_init, +}; + +static int init_stolen_lmem (struct intel_memory_region *mem) +{ + int err; + + if (GEM_WARN_ON(resource_size(&mem->region) == 0)) + return -ENODEV; + + if (!io_mapping_init_wc(&mem->iomap, + mem->io_start, + resource_size(&mem->region))) + return -EIO; +
Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-0+ /* +* For stolen lmem we mostly just care about populating the dsm related
+ * bits and setting up thedrm_mmallocator for the range. + */
+ err =i915_gem_init_stolen(mem);Ideally we would be able to split this into two so there would be no further smem/lmem stolen forking inside it. That way we would also avoid the "mostly" and reach total clarity but okay, can leave for later.
I'll add a TODO comment :)
Quoted 50 lines
Quoted 27 lines
+ if (err)
+ gotoerr_fini;drivers/gpu/drm/i915/gem/i915_gem_stolen.c +6
-0+ + return 0; + +err_fini: + io_mapping_fini(&mem->iomap); + return err;}
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1-static void release_stolen (struct intel_memory_region *mem) +static void release_stolen_lmem (struct intel_memory_region *mem){
+io_mapping_fini(&mem->iomap);
i915_gem_cleanup_stolen(mem->i915);
}drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-3-static const struct intel_memory_region_ops i915_region_stolen_ops = { - .init = init_stolen, - .release = release_stolen, +static const struct intel_memory_region_ops
i915_region_stolen_lmem_ops= {
+ .init =init_stolen_lmem,
+ .release =release_stolen_lmem, .init_object =_i915_gem_object_stolen_init, };drivers/gpu/drm/i915/gem/i915_gem_stolen.c +2
-0+static struct intel_memory_region * +setup_lmem_stolen (struct drm_i915_private *i915)drivers/gpu/drm/i915/gem/i915_gem_stolen.c struct drm_i915_gem_object * · line 775
Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+{ + struct intel_uncore *uncore = &i915->uncore; + struct pci_dev *pdev = i915->drm.pdev; + struct intel_memory_region *mem; + resource_size_t io_start; + resource_size_t lmem_size; + u64 lmem_base; + + if (!IS_DGFX(i915)) + return ERR_PTR(-ENODEV);Is this check needed? Looks like the caller will only call this based on
HAS_REGION. GEM_DEBUG_WARN_ON(!IS_DGFX())?Quoted 10 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +10
-0+ + lmem_base = intel_uncore_read64(uncore, GEN12_DSMBASE); + if (GEM_WARN_ON(lmem_base >= pci_resource_len(pdev, 2))) + return ERR_PTR(-ENODEV); + + lmem_size = pci_resource_len(pdev, 2) - lmem_base; + io_start = pci_resource_start(pdev, 2) + lmem_base; + + mem = intel_memory_region_create(i915, lmem_base, lmem_size, + I915_GTT_PAGE_SIZE_4K, io_start,
Quoted 8 lines
Quoted 6 lines
+
&i915_region_stolen_lmem_ops); + if (IS_ERR(mem))
+ return mem;
+
+drm_dbg(&i915->drm, "Stolen Local memory IO start: %pa\n", + &mem->io_start);Printouts I'd prefer if they were done by the common code which calls
region->init(). Afterwards it could generically print all the region data with common formatting and using the set region name. Optional, later, is fine.
Yeah, having a common helper to print everything interesting in intel_memory_region might be quite nice. I'll add a TODO.
Quoted 5 lines
Quoted 3 lines
+
+intel_memory_region_set_name(mem, "stolen-local");Should the name just be passed in to
intel_memory_region_createor there is a good reason for it to be a follow up step?
I don't see a good reason, so yeah it looks like we can just pass it along. I don't have a strong opinion here.
Quoted 29 lines
Quoted 29 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +22
-0+ + return mem; +} + +static struct intel_memory_region * +setup_smem_stolen (struct drm_i915_private *i915) +{ + struct intel_memory_region *mem; + + mem = intel_memory_region_create(i915, + intel_graphics_stolen_res.start, + resource_size(&intel_graphics_stolen_res), + PAGE_SIZE, 0, + &i915_region_stolen_smem_ops); + if (IS_ERR(mem)) + return mem; + + intel_memory_region_set_name(mem, "stolen-system"); + + return mem; +} +struct
intel_memory_region*i915_gem_stolen_setup(structdrm_i915_private*i915) {
- return intel_memory_region_create(i915,
- intel_graphics_stolen_res.start,
-resource_size(&intel_graphics_stolen_res),
-PAGE_SIZE, 0,
Quoted 8 lines
Quoted 6 lines
-
&i915_region_stolen_ops);
+ structintel_memory_region*mem;
+
+ mem =setup_lmem_stolen(i915);
+ if (mem ==ERR_PTR(-ENODEV))
+ mem =setup_smem_stolen(i915);This helper is possibly not needed any more since the caller is a switch statement with a fallthrough. So eliminate the falltrough and call the correct setup directly from there? There is the
i915->mm.stolenassignment to be duplicated in that case so up to you.
Yes, let's go with that.
Quoted 117 lines
Quoted 108 lines
+
+ return mem;
}
structdrm_i915_gem_object*drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -728,7 +829,7 @@ i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, resource_size_t stolen_offset, resource_size_t size) { - struct intel_memory_region *mem = i915->mm.regions[INTEL_REGION_STOLEN_SMEM]; + struct intel_memory_region *mem = i915->mm.stolen_region; struct drm_i915_gem_object *obj;struct
drm_mm_node*stolen;
int ret;drivers/gpu/drm/i915/i915_drv.h +4
-0@@ -514,6 +514,13 @@ struct intel_l3_parity { }; struct i915_gem_mm { + /* +* Shortcut for the stolen region. This points to either +* INTEL_REGION_STOLEN_SMEM for integrated platforms, or +* INTEL_REGION_STOLEN_LMEM for discrete, or NULL if the device doesn't
+ * support stolen.
+ */
+ structintel_memory_region*stolen_region;
/** Memory allocator for GTT stolen memory */
structdrm_mmstolen;
/** Protects the usage of the GTT stolen memory allocator. This isdrivers/gpu/drm/i915/i915_pci.c +1
-1@@ -908,7 +908,7 @@ static const struct intel_device_info rkl_info = { }; #define DGFX_FEATURES \ - .memory_regions = REGION_SMEM | REGION_LMEM, \ + .memory_regions = REGION_SMEM | REGION_LMEM | REGION_STOLEN_LMEM, \ .has_master_unit_irq = 1, \ .has_llc = 0, \ .has_snoop = 1, \drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -12191,6 +12191,7 @@ enum skl_power_gate { #define GEN12_GLOBAL_MOCS(i) _MMIO(0x4000 + (i) * 4) /* Global MOCS regs */ #define GEN12_GSMBASE _MMIO(0x108100) +#define GEN12_DSMBASE _MMIO(0x1080C0) /* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)drivers/gpu/drm/i915/intel_memory_region.c +4
-0@@ -22,6 +22,10 @@ static const struct { .class = INTEL_MEMORY_STOLEN_SYSTEM, .instance = 0, }, + [INTEL_REGION_STOLEN_LMEM] = { + .class = INTEL_MEMORY_STOLEN_LOCAL, + .instance = 0, + }, };struct
intel_memory_region*drivers/gpu/drm/i915/intel_memory_region.c +0
-0@@ -278,8 +282,12 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915)case
INTEL_MEMORY_SYSTEM:
mem =i915_gem_shmem_setup(i915); break;
+ caseINTEL_MEMORY_STOLEN_LOCAL:
+ fallthrough;
caseINTEL_MEMORY_STOLEN_SYSTEM:
mem =i915_gem_stolen_setup(i915);
+ if (!IS_ERR(mem))
+i915->mm.stolen_region= mem; break;
default:
continue;drivers/gpu/drm/i915/intel_memory_region.h +2
-0@@ -26,18 +26,21 @@ enum intel_memory_type { INTEL_MEMORY_SYSTEM = 0, INTEL_MEMORY_LOCAL, INTEL_MEMORY_STOLEN_SYSTEM, + INTEL_MEMORY_STOLEN_LOCAL, }; enum intel_region_id { INTEL_REGION_SMEM = 0, INTEL_REGION_LMEM, INTEL_REGION_STOLEN_SMEM, + INTEL_REGION_STOLEN_LMEM,
INTEL_REGION_UNKNOWN, /* Should be last */ };
#define REGION_SMEMBIT(INTEL_REGION_SMEM)#define REGION_LMEMBIT(INTEL_REGION_LMEM)#define REGION_STOLEN_SMEMBIT(INTEL_REGION_STOLEN_SMEM)+#define REGION_STOLEN_LMEMBIT(INTEL_REGION_STOLEN_LMEM)#define I915_ALLOC_MIN_PAGE_SIZE BIT(0)
#define I915_ALLOC_CONTIGUOUS BIT(1)drivers/gpu/drm/i915/intel_memory_region.h struct intel_memory_region { · line 90
Quoted 7 lines
drivers/gpu/drm/i915/intel_memory_region.h +1
-1@@ -82,7 +85,7 @@ struct intel_memory_region { u16 type; u16 instance; enum intel_region_id id; - char name[8]; + char name[16]; struct list_head reserved;Regards,
Quoted 1 line
Tvrtko
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 4/5] drm/i915/stolen: pass the allocation flags
In reply to Tvrtko UrsulinQuoted 45 lines · Tvrtko Ursulin
Quoted 43 lines · Matthew Auld
From: CQ Tang <[email protected]>
Stolen memory is always allocated as physically contiguous pages, mark the object flags as such.
v2: move setting
I915_BO_ALLOC_CONTIGUOUSintocreate_stolenSigned-off-by CQ Tang <[email protected]>Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>---
drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 17 ++++++++++++-----1 file changed, 12 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_stolen.c +5
-1@@ -633,14 +633,21 @@ static const struct drm_i915_gem_object_ops i915_gem_object_stolen_ops = { static int __i915_gem_object_create_stolen(struct intel_memory_region *mem, struct drm_i915_gem_object *obj, - struct drm_mm_node *stolen) + struct drm_mm_node *stolen, + unsigned int flags) { static struct lock_class_key lock_class; unsigned int cache_level; int err; + /* +* Stolen objects are always physically contiguous since we just +* allocate one big block underneath using the drm_mm range allocator.
+ */
+ flags |=I915_BO_ALLOC_CONTIGUOUS;
+
drm_gem_private_object_init(&mem->i915->drm, &obj->base, stolen->size); -i915_gem_object_init(obj, &i915_gem_object_stolen_ops, &lock_class, 0);
+i915_gem_object_init(obj, &i915_gem_object_stolen_ops, &lock_class, flags);
obj->stolen= stolen;
obj->read_domains=I915_GEM_DOMAIN_CPU|I915_GEM_DOMAIN_GTT;
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c static int _i915_gem_object_stolen_init(struct · line 692
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1@@ -682,7 +689,7 @@ static int _i915_gem_object_stolen_init(structintel_memory_region *mem, if (ret) goto err_free; - ret = __i915_gem_object_create_stolen(mem, obj, stolen); + ret = __i915_gem_object_create_stolen(mem, obj, stolen, flags);Hm odd that previously the flags were ignored in here. I guess no callers were passing any when creating stolen objects. If none are supported should we add a
GEM_BUG_ONto check for that?
I think this it's is still reachable for via object_create_region(), but yeah maybe just leave for later, if we do really need it.
Quoted 17 lines
Regards,
Tvrtko
Quoted 12 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1if (ret) goto err_remove;@@ -700,7 +707,7 @@ i915_gem_object_create_stolen(structdrm_i915_private *i915, resource_size_t size) { return i915_gem_object_create_region(i915->mm.stolen_region, - size, I915_BO_ALLOC_CONTIGUOUS); + size, 0); } static int init_stolen_smem(struct intel_memory_region *mem)@@ -866,7 +873,7 @@
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, · line 879
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +1
-1i915_gem_object_create_stolen_for_preallocated(struct drm_i915_private *i915, goto err_stolen; } - ret = __i915_gem_object_create_stolen(mem, obj, stolen); + ret = __i915_gem_object_create_stolen(mem, obj, stolen, 0); if (ret) goto err_object_free;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel