drm/i915: Check for nomodeset in i915_init() first
Subsystems (2)
PATCH v2 1/11 drm/i915: Check for nomodeset in i915_init() first
When modesetting (aka the full pci driver, which has nothing to do with disable_display option, which just gives you the full pci driver without the display driver) is disabled, we load nothing and do nothing.
So move that check first, for a bit of orderliness. With Jason's module init/exit table this now becomes trivial.
--- drivers/gpu/drm/i915/i915_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -1293,9 +1293,9 @@ static const struct {int (*init)(void );void (*exit)(void ); } init_funcs[] = { + { i915_check_nomodeset, NULL }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, - { i915_check_nomodeset, NULL }, { i915_pmu_init, i915_pmu_exit }, { i915_register_pci_driver, i915_unregister_pci_driver }, { i915_perf_sysctl_register, i915_perf_sysctl_unregister },
Signature · 1 line
2.32.0
PATCH v2 2/11 drm/i915: move i915_active slab to direct module init/exit
With the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_cache to just a slab_cache.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/i915_active.c | 31 ++++++++++------------------- drivers/gpu/drm/i915/i915_active.h | 3 +++ drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_globals.h | 1 - drivers/gpu/drm/i915/i915_pci.c | 2 ++ 5 files changed, 16 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/i915_active.c +11 -20
@@ -13,7 +13,6 @@#include "i915_drv.h" #include "i915_active.h" -#include "i915_globals.h" /* * Active refs memory management
@@ -22,10 +21,7 @@* they idle (when we know the active requests are inactive) and allocate the * nodes from a local slab cache to hopefully reduce the fragmentation. */ -static struct i915_global_active { -struct i915_global base; -struct kmem_cache *slab_cache; -} global; +static struct kmem_cache *slab_cache;struct active_node {struct rb_node node;
@@ -174,7 +170,7 @@ __active_retire(struct i915_active *ref)/* Finally free the discarded timeline tree */ rbtree_postorder_for_each_entry_safe (it, n, &root, node) {GEM_BUG_ON (i915_active_fence_isset (&it->base)); -kmem_cache_free (global.slab_cache, it); +kmem_cache_free (slab_cache, it); } }
@@ -322,7 +318,7 @@ active_instance(struct i915_active *ref, u64 idx)* XXX: We should preallocate this before i915_active_ref() is ever * called, but we cannot call into fs_reclaim() anyway, so use GFP_ATOMIC. */ - node =kmem_cache_alloc (global.slab_cache,GFP_ATOMIC ); + node =kmem_cache_alloc (slab_cache,GFP_ATOMIC );if (!node) goto out;
@@ -788,7 +784,7 @@ void i915_active_fini(struct i915_active *ref)mutex_destroy (&ref->mutex);if (ref->cache) -kmem_cache_free (global.slab_cache, ref->cache); +kmem_cache_free (slab_cache, ref->cache); }static inline bool is_idle_barrier (struct active_node *node,u64 idx)
@@ -908,7 +904,7 @@ int i915_active_acquire_preallocate_barrier(struct i915_active *ref, node =reuse_idle_barrier (ref, idx);rcu_read_unlock ();if (!node) { - node =kmem_cache_alloc (global.slab_cache,GFP_KERNEL ); + node =kmem_cache_alloc (slab_cache,GFP_KERNEL );if (!node) goto unwind;
@@ -956,7 +952,7 @@ int i915_active_acquire_preallocate_barrier(struct i915_active *ref,atomic_dec (&ref->count);intel_engine_pm_put (barrier_to_engine (node)); -kmem_cache_free (global.slab_cache, node); +kmem_cache_free (slab_cache, node); }return -ENOMEM ; }
@@ -1176,21 +1172,16 @@ struct i915_active *i915_active_create(void)#include "selftests/i915_active.c" #endif -static void i915_global_active_exit (void ) +void i915_active_module_exit (void ) { -kmem_cache_destroy (global.slab_cache); +kmem_cache_destroy (slab_cache); } -static struct i915_global_active global = { { - .exit = i915_global_active_exit, -} }; - -int __init i915_global_active_init (void ) +int __init i915_active_module_init (void ) { - global.slab_cache =KMEM_CACHE (active_node,SLAB_HWCACHE_ALIGN ); -if (!global.slab_cache) + slab_cache =KMEM_CACHE (active_node,SLAB_HWCACHE_ALIGN ); +if (!slab_cache)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/i915_active.h +3 -0
@@ -247,4 +247,7 @@ static inline int __i915_request_await_exclusive(struct i915_request *rq, return err; } +void i915_active_module_exit (void ); +int i915_active_module_init (void ); +#endif /* _I915_ACTIVE_H_ */
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -7,7 +7,6 @@#include <linux/slab.h> #include <linux/workqueue.h> -#include "i915_active.h" #include "i915_buddy.h" #include "gem/i915_gem_context.h" #include "gem/i915_gem_object.h"
@@ -34,7 +33,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_active_init, i915_global_buddy_init, i915_global_context_init, i915_global_gem_context_init,
drivers/gpu/drm/i915/i915_globals.h +0 -1
@@ -23,7 +23,6 @@ int i915_globals_init(void);void i915_globals_exit (void );/* constructors */ -int i915_global_active_init (void );int i915_global_context_init (void );int i915_global_gem_context_init (void );int i915_global_objects_init (void );
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -30,6 +30,7 @@#include "display/intel_fbdev.h" +#include "i915_active.h" #include "i915_drv.h" #include "i915_perf.h" #include "i915_globals.h"
@@ -1294,6 +1295,7 @@ static const struct {void (*exit)(void ); } init_funcs[] = { { i915_check_nomodeset, NULL }, + { i915_active_module_init, i915_active_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
Signature · 6 lines
2.32.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 3/11 drm/i915: move i915_buddy slab to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_blocks to just a slab_blocks.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/i915_buddy.c | 25 ++++++++----------------- drivers/gpu/drm/i915/i915_buddy.h | 3 ++- drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_pci.c | 2 ++ 4 files changed, 12 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/i915_buddy.c +8 -17
@@ -8,13 +8,9 @@#include "i915_buddy.h" #include "i915_gem.h" -#include "i915_globals.h" #include "i915_utils.h" -static struct i915_global_buddy { -struct i915_global base; -struct kmem_cache *slab_blocks; -} global; +static struct kmem_cache *slab_blocks; static struct i915_buddy_block *i915_block_alloc(struct i915_buddy_mm *mm, struct i915_buddy_block *parent,
@@ -25,7 +21,7 @@ static struct i915_buddy_block *i915_block_alloc(struct i915_buddy_mm *mm,GEM_BUG_ON (order >I915_BUDDY_MAX_ORDER ); - block =kmem_cache_zalloc (global.slab_blocks,GFP_KERNEL ); + block =kmem_cache_zalloc (slab_blocks,GFP_KERNEL );if (!block)return NULL ;
@@ -40,7 +36,7 @@ static struct i915_buddy_block *i915_block_alloc(struct i915_buddy_mm *mm,static void i915_block_free (struct i915_buddy_mm *mm,struct i915_buddy_block *block) { -kmem_cache_free (global.slab_blocks, block); +kmem_cache_free (slab_blocks, block); }static void mark_allocated (struct i915_buddy_block *block)
@@ -410,21 +406,16 @@ int i915_buddy_alloc_range(struct i915_buddy_mm *mm,#include "selftests/i915_buddy.c" #endif -static void i915_global_buddy_exit (void ) +void i915_buddy_module_exit (void ) { -kmem_cache_destroy (global.slab_blocks); +kmem_cache_destroy (slab_blocks); } -static struct i915_global_buddy global = { { - .exit = i915_global_buddy_exit, -} }; - -int __init i915_global_buddy_init (void ) +int __init i915_buddy_module_init (void ) { - global.slab_blocks =KMEM_CACHE (i915_buddy_block,0 ); -if (!global.slab_blocks) + slab_blocks =KMEM_CACHE (i915_buddy_block,0 ); +if (!slab_blocks)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/i915_buddy.h +2 -1
@@ -129,6 +129,7 @@ void i915_buddy_free(struct i915_buddy_mm *mm, struct i915_buddy_block *block);void i915_buddy_free_list (struct i915_buddy_mm *mm,struct list_head *objects); -int i915_global_buddy_init (void ); +void i915_buddy_module_exit (void ); +int i915_buddy_module_init (void );#endif
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -7,7 +7,6 @@#include <linux/slab.h> #include <linux/workqueue.h> -#include "i915_buddy.h" #include "gem/i915_gem_context.h" #include "gem/i915_gem_object.h" #include "i915_globals.h"
@@ -33,7 +32,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_buddy_init, i915_global_context_init, i915_global_gem_context_init, i915_global_objects_init,
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -31,6 +31,7 @@#include "display/intel_fbdev.h" #include "i915_active.h" +#include "i915_buddy.h" #include "i915_drv.h" #include "i915_perf.h" #include "i915_globals.h"
@@ -1296,6 +1297,7 @@ static const struct { } init_funcs[] = { { i915_check_nomodeset, NULL }, { i915_active_module_init, i915_active_module_exit }, + { i915_buddy_module_init, i915_buddy_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
Signature · 6 lines
2.32.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 4/11 drm/i915: move intel_context slab to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_ce to just a slab_ce.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/gt/intel_context.c | 25 ++++++++----------------- drivers/gpu/drm/i915/gt/intel_context.h | 3 +++ drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_globals.h | 1 - drivers/gpu/drm/i915/i915_pci.c | 2 ++ 5 files changed, 13 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +8 -17
@@ -7,7 +7,6 @@#include "gem/i915_gem_pm.h" #include "i915_drv.h" -#include "i915_globals.h" #include "i915_trace.h" #include "intel_context.h"
@@ -15,14 +14,11 @@#include "intel_engine_pm.h" #include "intel_ring.h" -static struct i915_global_context { -struct i915_global base; -struct kmem_cache *slab_ce; -} global; +static struct kmem_cache *slab_ce;static struct intel_context *intel_context_alloc (void ) { -return kmem_cache_zalloc (global.slab_ce,GFP_KERNEL ); +return kmem_cache_zalloc (slab_ce,GFP_KERNEL ); }static void rcu_context_free (struct rcu_head *rcu)
@@ -30,7 +26,7 @@ static void rcu_context_free(struct rcu_head *rcu)struct intel_context *ce =container_of (rcu,typeof (*ce), rcu);trace_intel_context_free (ce); -kmem_cache_free (global.slab_ce, ce); +kmem_cache_free (slab_ce, ce); }void intel_context_free (struct intel_context *ce)
@@ -410,22 +406,17 @@ void intel_context_fini(struct intel_context *ce)i915_active_fini (&ce->active); } -static void i915_global_context_exit (void ) +void i915_context_module_exit (void ) { -kmem_cache_destroy (global.slab_ce); +kmem_cache_destroy (slab_ce); } -static struct i915_global_context global = { { - .exit = i915_global_context_exit, -} }; - -int __init i915_global_context_init (void ) +int __init i915_context_module_init (void ) { - global.slab_ce =KMEM_CACHE (intel_context,SLAB_HWCACHE_ALIGN ); -if (!global.slab_ce) + slab_ce =KMEM_CACHE (intel_context,SLAB_HWCACHE_ALIGN ); +if (!slab_ce)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/gt/intel_context.h +3 -0
@@ -30,6 +30,9 @@ void intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine);void intel_context_fini (struct intel_context *ce); +void i915_context_module_exit (void ); +int i915_context_module_init (void ); +struct intel_context *intel_context_create (struct intel_engine_cs *engine);
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -7,7 +7,6 @@#include <linux/slab.h> #include <linux/workqueue.h> -#include "gem/i915_gem_context.h" #include "gem/i915_gem_object.h" #include "i915_globals.h" #include "i915_request.h"
@@ -32,7 +31,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_context_init, i915_global_gem_context_init, i915_global_objects_init, i915_global_request_init,
drivers/gpu/drm/i915/i915_globals.h +0 -1
@@ -23,7 +23,6 @@ int i915_globals_init(void);void i915_globals_exit (void );/* constructors */ -int i915_global_context_init (void );int i915_global_gem_context_init (void );int i915_global_objects_init (void );int i915_global_request_init (void );
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -33,6 +33,7 @@#include "i915_active.h" #include "i915_buddy.h" #include "i915_drv.h" +#include "gem/i915_gem_context.h" #include "i915_perf.h" #include "i915_globals.h" #include "i915_selftest.h"
@@ -1298,6 +1299,7 @@ static const struct { { i915_check_nomodeset, NULL }, { i915_active_module_init, i915_active_module_exit }, { i915_buddy_module_init, i915_buddy_module_exit }, + { i915_context_module_init, i915_context_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
Signature · 1 line
2.32.0
PATCH v2 5/11 drm/i915: move gem_context slab to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_luts to just a slab_luts.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 25 +++++++-------------- drivers/gpu/drm/i915/gem/i915_gem_context.h | 3 +++ drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_globals.h | 1 - drivers/gpu/drm/i915/i915_pci.c | 2 ++ 5 files changed, 13 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +8 -17
@@ -79,25 +79,21 @@#include "gt/intel_ring.h" #include "i915_gem_context.h" -#include "i915_globals.h" #include "i915_trace.h" #include "i915_user_extensions.h" #define ALL_L3_SLICES (dev) (1 << NUM_L3_SLICES(dev)) - 1 -static struct i915_global_gem_context { -struct i915_global base; -struct kmem_cache *slab_luts; -} global; +static struct kmem_cache *slab_luts;struct i915_lut_handle *i915_lut_handle_alloc (void ) { -return kmem_cache_alloc (global.slab_luts,GFP_KERNEL ); +return kmem_cache_alloc (slab_luts,GFP_KERNEL ); }void i915_lut_handle_free (struct i915_lut_handle *lut) { -return kmem_cache_free (global.slab_luts, lut); +return kmem_cache_free (slab_luts, lut); }static void lut_close (struct i915_gem_context *ctx)
@@ -2282,21 +2278,16 @@ i915_gem_engines_iter_next(struct i915_gem_engines_iter *it)#include "selftests/i915_gem_context.c" #endif -static void i915_global_gem_context_exit (void ) +void i915_gem_context_module_exit (void ) { -kmem_cache_destroy (global.slab_luts); +kmem_cache_destroy (slab_luts); } -static struct i915_global_gem_context global = { { - .exit = i915_global_gem_context_exit, -} }; - -int __init i915_global_gem_context_init (void ) +int __init i915_gem_context_module_init (void ) { - global.slab_luts =KMEM_CACHE (i915_lut_handle,0 ); -if (!global.slab_luts) + slab_luts =KMEM_CACHE (i915_lut_handle,0 ); +if (!slab_luts)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/gem/i915_gem_context.h +3 -0
@@ -224,6 +224,9 @@ i915_gem_engines_iter_next(struct i915_gem_engines_iter *it);for (i915_gem_engines_iter_init (&(it), (engines)); \ ((ce) =i915_gem_engines_iter_next (&(it)));) +void i915_gem_context_module_exit(void); +int i915_gem_context_module_init (void ); +struct i915_lut_handle *i915_lut_handle_alloc (void );void i915_lut_handle_free (struct i915_lut_handle *lut);
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -7,7 +7,6 @@#include <linux/slab.h> #include <linux/workqueue.h> -#include "gem/i915_gem_object.h" #include "i915_globals.h" #include "i915_request.h" #include "i915_scheduler.h"
@@ -31,7 +30,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_gem_context_init, i915_global_objects_init, i915_global_request_init, i915_global_scheduler_init,
drivers/gpu/drm/i915/i915_globals.h +0 -1
@@ -23,7 +23,6 @@ int i915_globals_init(void);void i915_globals_exit (void );/* constructors */ -int i915_global_gem_context_init (void );int i915_global_objects_init (void );int i915_global_request_init (void );int i915_global_scheduler_init (void );
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -34,6 +34,7 @@#include "i915_buddy.h" #include "i915_drv.h" #include "gem/i915_gem_context.h" +#include "gem/i915_gem_object.h" #include "i915_perf.h" #include "i915_globals.h" #include "i915_selftest.h"
@@ -1300,6 +1301,7 @@ static const struct { { i915_active_module_init, i915_active_module_exit }, { i915_buddy_module_init, i915_buddy_module_exit }, { i915_context_module_init, i915_context_module_exit }, + { i915_gem_context_module_init, i915_gem_context_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
Signature · 1 line
2.32.0
PATCH v2 6/11 drm/i915: move gem_objects slab to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_objects to just a slab_objects.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 26 +++++++--------------- drivers/gpu/drm/i915/gem/i915_gem_object.h | 3 +++ drivers/gpu/drm/i915/i915_globals.c | 1 - drivers/gpu/drm/i915/i915_globals.h | 1 - drivers/gpu/drm/i915/i915_pci.c | 1 + 5 files changed, 12 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_object.c +8 -18
@@ -30,14 +30,10 @@#include "i915_gem_context.h" #include "i915_gem_mman.h" #include "i915_gem_object.h" -#include "i915_globals.h" #include "i915_memcpy.h" #include "i915_trace.h" -static struct i915_global_object { -struct i915_global base; -struct kmem_cache *slab_objects; -} global; +static struct kmem_cache *slab_objects;static const struct drm_gem_object_funcs i915_gem_object_funcs;
@@ -45,7 +41,7 @@ struct drm_i915_gem_object *i915_gem_object_alloc(void) {struct drm_i915_gem_object *obj; - obj =kmem_cache_zalloc (global.slab_objects,GFP_KERNEL ); + obj =kmem_cache_zalloc (slab_objects,GFP_KERNEL );if (!obj)return NULL ; obj->base.funcs = &i915_gem_object_funcs;
@@ -55,7 +51,7 @@ struct drm_i915_gem_object *i915_gem_object_alloc(void)void i915_gem_object_free (struct drm_i915_gem_object *obj) { -return kmem_cache_free (global.slab_objects, obj); +return kmem_cache_free (slab_objects, obj); } void i915_gem_object_init(struct drm_i915_gem_object *obj,
@@ -658,23 +654,17 @@ void i915_gem_init__objects(struct drm_i915_private *i915)INIT_WORK (&i915->mm.free_work, __i915_gem_free_work); } -static void i915_global_objects_exit (void ) +void i915_objects_module_exit (void ) { -kmem_cache_destroy (global.slab_objects); +kmem_cache_destroy (slab_objects); } -static struct i915_global_object global = { { - .exit = i915_global_objects_exit, -} }; - -int __init i915_global_objects_init (void ) +int __init i915_objects_module_init (void ) { - global.slab_objects = -KMEM_CACHE (drm_i915_gem_object,SLAB_HWCACHE_ALIGN ); -if (!global.slab_objects) + slab_objects =KMEM_CACHE (drm_i915_gem_object,SLAB_HWCACHE_ALIGN ); +if (!slab_objects)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/gem/i915_gem_object.h +3 -0
@@ -48,6 +48,9 @@ static inline bool i915_gem_object_size_2big(u64 size)void i915_gem_init__objects (struct drm_i915_private *i915); +void i915_objects_module_exit (void ); +int i915_objects_module_init (void ); +struct drm_i915_gem_object *i915_gem_object_alloc (void );void i915_gem_object_free (struct drm_i915_gem_object *obj);
drivers/gpu/drm/i915/i915_globals.c +0 -1
@@ -30,7 +30,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_objects_init, i915_global_request_init, i915_global_scheduler_init, i915_global_vma_init,
drivers/gpu/drm/i915/i915_globals.h +0 -1
@@ -23,7 +23,6 @@ int i915_globals_init(void);void i915_globals_exit (void );/* constructors */ -int i915_global_objects_init (void );int i915_global_request_init (void );int i915_global_scheduler_init (void );int i915_global_vma_init (void );
drivers/gpu/drm/i915/i915_pci.c +1 -0
@@ -1302,6 +1302,7 @@ static const struct { { i915_buddy_module_init, i915_buddy_module_exit }, { i915_context_module_init, i915_context_module_exit }, { i915_gem_context_module_init, i915_gem_context_module_exit }, + { i915_objects_module_init, i915_objects_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
Signature · 1 line
2.32.0
PATCH v2 7/11 drm/i915: move request slabs to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_requests|execute_cbs to just a slab_requests|execute_cbs.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_pci.c | 2 ++ drivers/gpu/drm/i915/i915_request.c | 47 ++++++++++++----------------- drivers/gpu/drm/i915/i915_request.h | 3 ++ 4 files changed, 24 insertions(+), 30 deletions(-)
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -8,7 +8,6 @@#include <linux/workqueue.h> #include "i915_globals.h" -#include "i915_request.h" #include "i915_scheduler.h" #include "i915_vma.h"
@@ -30,7 +29,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_request_init, i915_global_scheduler_init, i915_global_vma_init, };
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -35,6 +35,7 @@#include "i915_drv.h" #include "gem/i915_gem_context.h" #include "gem/i915_gem_object.h" +#include "i915_request.h" #include "i915_perf.h" #include "i915_globals.h" #include "i915_selftest.h"
@@ -1303,6 +1304,7 @@ static const struct { { i915_context_module_init, i915_context_module_exit }, { i915_gem_context_module_init, i915_gem_context_module_exit }, { i915_objects_module_init, i915_objects_module_exit }, + { i915_request_module_init, i915_request_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
drivers/gpu/drm/i915/i915_request.c +19 -28
132 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.h +3 -0
@@ -647,4 +647,7 @@ bool i915_request_active_engine(struct i915_request *rq, struct intel_engine_cs **active); +void i915_request_module_exit (void ); +int i915_request_module_init (void ); +#endif /* I915_REQUEST_H */
Signature · 1 line
2.32.0
PATCH v2 8/11 drm/i915: move scheduler slabs to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_dependencies|priorities to just a slab_dependencies|priorities.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/i915_globals.c | 2 -- drivers/gpu/drm/i915/i915_globals.h | 2 -- drivers/gpu/drm/i915/i915_pci.c | 2 ++ drivers/gpu/drm/i915/i915_scheduler.c | 39 +++++++++++---------------- drivers/gpu/drm/i915/i915_scheduler.h | 3 +++ 5 files changed, 20 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/i915_globals.c +0 -2
@@ -8,7 +8,6 @@#include <linux/workqueue.h> #include "i915_globals.h" -#include "i915_scheduler.h" #include "i915_vma.h" static LIST_HEAD (globals);
@@ -29,7 +28,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_scheduler_init, i915_global_vma_init, };
drivers/gpu/drm/i915/i915_globals.h +0 -2
@@ -23,8 +23,6 @@ int i915_globals_init(void);void i915_globals_exit (void );/* constructors */ -int i915_global_request_init (void ); -int i915_global_scheduler_init (void );int i915_global_vma_init (void );#endif /* _I915_GLOBALS_H_ */
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -39,6 +39,7 @@#include "i915_perf.h" #include "i915_globals.h" #include "i915_selftest.h" +#include "i915_scheduler.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \
@@ -1305,6 +1306,7 @@ static const struct { { i915_gem_context_module_init, i915_gem_context_module_exit }, { i915_objects_module_init, i915_objects_module_exit }, { i915_request_module_init, i915_request_module_exit }, + { i915_scheduler_module_init, i915_scheduler_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
drivers/gpu/drm/i915/i915_scheduler.c +15 -24
@@ -7,15 +7,11 @@#include <linux/mutex.h> #include "i915_drv.h" -#include "i915_globals.h" #include "i915_request.h" #include "i915_scheduler.h" -static struct i915_global_scheduler { -struct i915_global base; -struct kmem_cache *slab_dependencies; -struct kmem_cache *slab_priorities; -} global; +static struct kmem_cache *slab_dependencies; +static struct kmem_cache *slab_priorities;static DEFINE_SPINLOCK (schedule_lock);
@@ -93,7 +89,7 @@ i915_sched_lookup_priolist(struct i915_sched_engine *sched_engine, int prio)if (prio ==I915_PRIORITY_NORMAL ) { p = &sched_engine->default_priolist; }else { - p =kmem_cache_alloc (global.slab_priorities,GFP_ATOMIC ); + p =kmem_cache_alloc (slab_priorities,GFP_ATOMIC );/* Convert an allocation failure to a priority bump */ if (unlikely (!p)) { prio =I915_PRIORITY_NORMAL ;/* recurses just once */
@@ -122,7 +118,7 @@ i915_sched_lookup_priolist(struct i915_sched_engine *sched_engine, int prio)void __i915_priolist_free (struct i915_priolist *p) { -kmem_cache_free (global.slab_priorities, p); +kmem_cache_free (slab_priorities, p); }struct sched_cache {
@@ -313,13 +309,13 @@ void i915_sched_node_reinit(struct i915_sched_node *node)static struct i915_dependency *i915_dependency_alloc (void ) { -return kmem_cache_alloc (global.slab_dependencies,GFP_KERNEL ); +return kmem_cache_alloc (slab_dependencies,GFP_KERNEL ); }static void i915_dependency_free (struct i915_dependency *dep) { -kmem_cache_free (global.slab_dependencies, dep); +kmem_cache_free (slab_dependencies, dep); } bool __i915_sched_node_add_dependency(struct i915_sched_node *node,
@@ -475,32 +471,27 @@ i915_sched_engine_create(unsigned int subclass)return sched_engine; } -static void i915_global_scheduler_exit (void ) +void i915_scheduler_module_exit (void ) { -kmem_cache_destroy (global.slab_dependencies); -kmem_cache_destroy (global.slab_priorities); +kmem_cache_destroy (slab_dependencies); +kmem_cache_destroy (slab_priorities); } -static struct i915_global_scheduler global = { { - .exit = i915_global_scheduler_exit, -} }; - -int __init i915_global_scheduler_init (void ) +int __init i915_scheduler_module_init (void ) { - global.slab_dependencies =KMEM_CACHE (i915_dependency, + slab_dependencies =KMEM_CACHE (i915_dependency,SLAB_HWCACHE_ALIGN |SLAB_TYPESAFE_BY_RCU ); -if (!global.slab_dependencies) +if (!slab_dependencies)return -ENOMEM ; - global.slab_priorities =KMEM_CACHE (i915_priolist,0 ); -if (!global.slab_priorities) + slab_priorities =KMEM_CACHE (i915_priolist,0 ); +if (!slab_priorities) goto err_priorities; -i915_global_register (&global.base);return 0 ; err_priorities: -kmem_cache_destroy (global.slab_priorities); +kmem_cache_destroy (slab_priorities);return -ENOMEM ; }
drivers/gpu/drm/i915/i915_scheduler.h +3 -0
@@ -98,4 +98,7 @@ void i915_request_show_with_schedule(struct drm_printer *m,const char *prefix, int indent); +void i915_scheduler_module_exit (void ); +int i915_scheduler_module_init (void ); +#endif /* _I915_SCHEDULER_H_ */
Signature · 6 lines
2.32.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 9/11 drm/i915: move vma slab to direct module init/exit
In reply to Daniel VetterWith the global kmem_cache shrink infrastructure gone there's nothing special and we can convert them over.
I'm doing this split up into each patch because there's quite a bit of noise with removing the static global.slab_vmas to just a slab_vmas.
We have to keep i915_drv.h include in i915_globals otherwise there's nothing anymore that pulls in GEM_BUG_ON.
v2: Make slab static (Jason, 0day)
--- drivers/gpu/drm/i915/i915_globals.c | 3 +-- drivers/gpu/drm/i915/i915_globals.h | 3 --- drivers/gpu/drm/i915/i915_pci.c | 2 ++ drivers/gpu/drm/i915/i915_vma.c | 25 ++++++++----------------- drivers/gpu/drm/i915/i915_vma.h | 3 +++ 5 files changed, 14 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/i915_globals.c +1 -2
@@ -8,7 +8,7 @@#include <linux/workqueue.h> #include "i915_globals.h" -#include "i915_vma.h" +#include "i915_drv.h" static LIST_HEAD (globals);
@@ -28,7 +28,6 @@ static void __i915_globals_cleanup(void) }static __initconst int (*const initfn[])(void ) = { - i915_global_vma_init, };int __init i915_globals_init (void )
drivers/gpu/drm/i915/i915_globals.h +0 -3
@@ -22,7 +22,4 @@ void i915_global_register(struct i915_global *global);int i915_globals_init (void );void i915_globals_exit (void ); -/* constructors */ -int i915_global_vma_init (void ); -#endif /* _I915_GLOBALS_H_ */
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -40,6 +40,7 @@#include "i915_globals.h" #include "i915_selftest.h" #include "i915_scheduler.h" +#include "i915_vma.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \
@@ -1307,6 +1308,7 @@ static const struct { { i915_objects_module_init, i915_objects_module_exit }, { i915_request_module_init, i915_request_module_exit }, { i915_scheduler_module_init, i915_scheduler_module_exit }, + { i915_vma_module_init, i915_vma_module_exit }, { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit },
drivers/gpu/drm/i915/i915_vma.c +8 -17
@@ -34,24 +34,20 @@#include "gt/intel_gt_requests.h" #include "i915_drv.h" -#include "i915_globals.h" #include "i915_sw_fence_work.h" #include "i915_trace.h" #include "i915_vma.h" -static struct i915_global_vma { -struct i915_global base; -struct kmem_cache *slab_vmas; -} global; +static struct kmem_cache *slab_vmas;struct i915_vma *i915_vma_alloc (void ) { -return kmem_cache_zalloc (global.slab_vmas,GFP_KERNEL ); +return kmem_cache_zalloc (slab_vmas,GFP_KERNEL ); }void i915_vma_free (struct i915_vma *vma) { -return kmem_cache_free (global.slab_vmas, vma); +return kmem_cache_free (slab_vmas, vma); }#if IS_ENABLED (CONFIG_DRM_I915_ERRLOG_GEM ) &&IS_ENABLED (CONFIG_DRM_DEBUG_MM )
@@ -1414,21 +1410,16 @@ void i915_vma_make_purgeable(struct i915_vma *vma)#include "selftests/i915_vma.c" #endif -static void i915_global_vma_exit (void ) +void i915_vma_module_exit (void ) { -kmem_cache_destroy (global.slab_vmas); +kmem_cache_destroy (slab_vmas); } -static struct i915_global_vma global = { { - .exit = i915_global_vma_exit, -} }; - -int __init i915_global_vma_init (void ) +int __init i915_vma_module_init (void ) { - global.slab_vmas =KMEM_CACHE (i915_vma,SLAB_HWCACHE_ALIGN ); -if (!global.slab_vmas) + slab_vmas =KMEM_CACHE (i915_vma,SLAB_HWCACHE_ALIGN ); +if (!slab_vmas)return -ENOMEM ; -i915_global_register (&global.base);return 0 ; }
drivers/gpu/drm/i915/i915_vma.h +3 -0
@@ -426,4 +426,7 @@ static inline int i915_vma_sync(struct i915_vma *vma) return i915_active_wait(&vma->active); } +void i915_vma_module_exit (void ); +int i915_vma_module_init (void ); +#endif
Signature · 6 lines
2.32.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 10/11 drm/i915: Remove i915_globals
In reply to Daniel VetterNo longer used.
--- drivers/gpu/drm/i915/Makefile | 1 - drivers/gpu/drm/i915/gt/intel_gt_pm.c | 1 - drivers/gpu/drm/i915/i915_globals.c | 53 --------------------------- drivers/gpu/drm/i915/i915_globals.h | 25 ------------- drivers/gpu/drm/i915/i915_pci.c | 2 - 5 files changed, 82 deletions(-) delete mode 100644 drivers/gpu/drm/i915/i915_globals.c delete mode 100644 drivers/gpu/drm/i915/i915_globals.h
drivers/gpu/drm/i915/Makefile +0 -1
@@ -166,7 +166,6 @@ i915-y += \ i915_gem_gtt.o \ i915_gem_ww.o \ i915_gem.o \ - i915_globals.o \ i915_query.o \ i915_request.o \ i915_scheduler.o \
drivers/gpu/drm/i915/gt/intel_gt_pm.c +0 -1
@@ -6,7 +6,6 @@#include <linux/suspend.h> #include "i915_drv.h" -#include "i915_globals.h" #include "i915_params.h" #include "intel_context.h" #include "intel_engine_pm.h"
drivers/gpu/drm/i915/i915_globals.c deleted +0 -53
53 lines not on this page · raw message
drivers/gpu/drm/i915/i915_globals.h deleted +0 -25
@@ -1,25 +0,0 @@ -/* -* SPDX-License-Identifier: MIT -* -* Copyright © 2019 Intel Corporation -*/ - -#ifndef _I915_GLOBALS_H_ -#define _I915_GLOBALS_H_ - -#include <linux/types.h> - -typedef void (*i915_global_func_t )(void ); - -struct i915_global { -struct list_head link; - -i915_global_func_t exit; -}; - -void i915_global_register (struct i915_global *global); - -int i915_globals_init (void ); -void i915_globals_exit (void ); - -#endif /* _I915_GLOBALS_H_ */
drivers/gpu/drm/i915/i915_pci.c +0 -2
@@ -37,7 +37,6 @@#include "gem/i915_gem_object.h" #include "i915_request.h" #include "i915_perf.h" -#include "i915_globals.h" #include "i915_selftest.h" #include "i915_scheduler.h" #include "i915_vma.h"
@@ -1309,7 +1308,6 @@ static const struct { { i915_request_module_init, i915_request_module_exit }, { i915_scheduler_module_init, i915_scheduler_module_exit }, { i915_vma_module_init, i915_vma_module_exit }, - { i915_globals_init, i915_globals_exit }, { i915_mock_selftests, NULL }, { i915_pmu_init, i915_pmu_exit }, { i915_register_pci_driver, i915_unregister_pci_driver },
Signature · 1 line
2.32.0
PATCH v2 11/11 drm/i915: Extract i915_module.c
In reply to Daniel VetterThe module init code is somewhat misplaced in i915_pci.c, since it needs to pull in init/exit functions from every part of the driver and pollutes the include list a lot.
Extract an i915_module.c file which pulls all the bits together, and allows us to massively trim the include list of i915_pci.c.
The downside is that have to drop the error path check Jason added to catch when we set up the pci driver too early. I think that risk is acceptable for this pretty nice include.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_module.c | 113 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.c | 117 +---------------------------- drivers/gpu/drm/i915/i915_pci.h | 8 ++ 4 files changed, 125 insertions(+), 114 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_module.c create mode 100644 drivers/gpu/drm/i915/i915_pci.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -38,6 +38,7 @@ i915-y += i915_drv.o \ i915_irq.o \ i915_getparam.o \ i915_mitigations.o \ + i915_module.o \ i915_params.o \ i915_pci.o \ i915_scatterlist.o \
drivers/gpu/drm/i915/i915_module.c new file +113 -0
113 lines not on this page · raw message
drivers/gpu/drm/i915/i915_pci.c +3 -114
145 lines not on this page · raw message
drivers/gpu/drm/i915/i915_pci.h new file +8 -0
@@ -0,0 +1,8 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +int i915_register_pci_driver (void ); +void i915_unregister_pci_driver (void );
Signature · 1 line
2.32.0
Re: [PATCH v2 11/11] drm/i915: Extract i915_module.c
Quoted 10 lines · Daniel Vetter
The module init code is somewhat misplaced in
i915_pci.c, since it needs to pull in init/exit functions from every part of the driver and pollutes the include list a lot.Extract an
i915_module.cfile which pulls all the bits together, and allows us to massively trim the include list ofi915_pci.c.The downside is that have to drop the error path check Jason added to catch when we set up the pci driver too early. I think that risk is acceptable for this pretty nice include.
i915_module.c is an improvement and the rest for me is not extremely objectionable by the end of this incarnation, but I also do not see it as an improvement really.
There was a bug to fix relating to mock tests, but that is where the exercise should have stopped for now. After that it IMHO spiraled out of control, not least the unjustifiably expedited removal of cache shrinking. On balance for me it is too churny and boils down to two extremely capable people spending time on kind of really unimportant side fiddles. And I do not intend to prescribe you what to do, just expressing my bewilderment. FWIW... I can only say my opinion as it, not that it matters a lot.
Regards,
Tvrtko
Quoted 310 lines
Cc Jason Ekstrand <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_module.c | 113 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.c | 117 +---------------------------- drivers/gpu/drm/i915/i915_pci.h | 8 ++ 4 files changed, 125 insertions(+), 114 deletions(-)create mode 100644
drivers/gpu/drm/i915/i915_module.ccreate mode 100644drivers/gpu/drm/i915/i915_pci.hdrivers/gpu/drm/i915/Makefile +1
-0@@ -38,6 +38,7 @@ i915-y += i915_drv.o \ i915_irq.o \ i915_getparam.o \ i915_mitigations.o \ + i915_module.o \ i915_params.o \ i915_pci.o \ i915_scatterlist.o \drivers/gpu/drm/i915/i915_module.c new file +113
-0@@ -0,0 +1,113 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +#include <linux/console.h> + +#include "gem/i915_gem_context.h" +#include "gem/i915_gem_object.h" +#include "i915_active.h" +#include "i915_buddy.h" +#include "i915_params.h" +#include "i915_pci.h" +#include "i915_perf.h" +#include "i915_request.h" +#include "i915_scheduler.h" +#include "i915_selftest.h" +#include "i915_vma.h" + +static int i915_check_nomodeset (void ) +{ +bool use_kms = true; + +/* +* Enable KMS by default, unless explicitly overriden by +* either the i915.modeset prarameter or by the +* vga_text_mode_force boot option. +*/ + +if (i915_modparams.modeset ==0 ) + use_kms = false; + +if (vgacon_text_force () && i915_modparams.modeset ==-1 ) + use_kms = false; + +if (!use_kms) { +/* Silently fail loading to not upset userspace. */ +DRM_DEBUG_DRIVER ("KMS disabled.\n" ); +return 1 ; + } + +return 0 ; +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { i915_check_nomodeset,NULL }, + { i915_active_module_init, i915_active_module_exit }, + { i915_buddy_module_init, i915_buddy_module_exit }, + { i915_context_module_init, i915_context_module_exit }, + { i915_gem_context_module_init, i915_gem_context_module_exit }, + { i915_objects_module_init, i915_objects_module_exit }, + { i915_request_module_init, i915_request_module_exit }, + { i915_scheduler_module_init, i915_scheduler_module_exit }, + { i915_vma_module_init, i915_vma_module_exit }, + { i915_mock_selftests,NULL }, + { i915_pmu_init, i915_pmu_exit }, + { i915_register_pci_driver, i915_unregister_pci_driver }, + { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, +}; +static int init_progress; + +static int __init i915_init (void ) +{ +int err, i; + +for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { + err = init_funcs[i].init (); +if (err <0 ) { +while (i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +return err; + }else if (err >0 ) { +/* +* Early-exit success is reserved for things which +* don't have an exit() function because we have no +* idea how far they got or how to partially tear +* them down. +*/ +WARN_ON (init_funcs[i].exit); +break ; + } + } + + init_progress = i; + +return 0 ; +} + +static void __exit i915_exit(void) +{ +int i; + +for (i = init_progress -1 ; i >=0 ; i--) { +GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +} + +module_init (i915_init); +module_exit (i915_exit); + +MODULE_AUTHOR ("Tungsten Graphics, Inc." ); +MODULE_AUTHOR ("Intel Corporation" ); + +MODULE_DESCRIPTION (DRIVER_DESC ); +MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.c +3
-114@@ -22,24 +22,13 @@* */ -#include <linux/console.h> #include <linux/vga_switcheroo.h> #include <drm/drm_drv.h> #include <drm/i915_pciids.h> -#include "display/intel_fbdev.h" - -#include "i915_active.h" -#include "i915_buddy.h" #include "i915_drv.h" -#include "gem/i915_gem_context.h" -#include "gem/i915_gem_object.h" -#include "i915_request.h" -#include "i915_perf.h" -#include "i915_selftest.h" -#include "i915_scheduler.h" -#include "i915_vma.h" +#include "i915_pci.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \@@ -1251,31 +1240,6 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static int i915_check_nomodeset (void ) -{ -bool use_kms = true; - -/* -* Enable KMS by default, unless explicitly overriden by -* either the i915.modeset prarameter or by the -* vga_text_mode_force boot option. -*/ - -if (i915_modparams.modeset ==0 ) - use_kms = false; - -if (vgacon_text_force () && i915_modparams.modeset ==-1 ) - use_kms = false; - -if (!use_kms) { -/* Silently fail loading to not upset userspace. */ -DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 1 ; - } - -return 0 ; -} -static struct pci_driver i915_pci_driver = { .name =DRIVER_NAME , .id_table = pciidlist,@@ -1285,87 +1249,12 @@ static struct pci_driver i915_pci_driver = { .driver.pm = &i915_pm_ops, }; -static int i915_register_pci_driver (void ) +int i915_register_pci_driver (void ) {return pci_register_driver (&i915_pci_driver); } -static void i915_unregister_pci_driver (void ) +void i915_unregister_pci_driver (void ) {pci_unregister_driver (&i915_pci_driver); } - -static const struct { -int (*init)(void ); -void (*exit)(void ); -} init_funcs[] = { - { i915_check_nomodeset,NULL }, - { i915_active_module_init, i915_active_module_exit }, - { i915_buddy_module_init, i915_buddy_module_exit }, - { i915_context_module_init, i915_context_module_exit }, - { i915_gem_context_module_init, i915_gem_context_module_exit }, - { i915_objects_module_init, i915_objects_module_exit }, - { i915_request_module_init, i915_request_module_exit }, - { i915_scheduler_module_init, i915_scheduler_module_exit }, - { i915_vma_module_init, i915_vma_module_exit }, - { i915_mock_selftests,NULL }, - { i915_pmu_init, i915_pmu_exit }, - { i915_register_pci_driver, i915_unregister_pci_driver }, - { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, -}; -static int init_progress; - -static int __init i915_init (void ) -{ -int err, i; - -for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { - err = init_funcs[i].init (); -if (err <0 ) { -while (i--) { -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -return err; - }else if (err >0 ) { -/* -* Early-exit success is reserved for things which -* don't have an exit() function because we have no -* idea how far they got or how to partially tear -* them down. -*/ -WARN_ON (init_funcs[i].exit); - -/* -* We don't want to advertise devices with an only -* partially initialized driver. -*/ -WARN_ON (i915_pci_driver.driver.owner); -break ; - } - } - - init_progress = i; - -return 0 ; -} - -static void __exit i915_exit(void) -{ -int i; - -for (i = init_progress -1 ; i >=0 ; i--) { -GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -} - -module_init (i915_init); -module_exit (i915_exit); - -MODULE_AUTHOR ("Tungsten Graphics, Inc." ); -MODULE_AUTHOR ("Intel Corporation" ); - -MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.h new file +8
-0@@ -0,0 +1,8 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +int i915_register_pci_driver (void ); +void i915_unregister_pci_driver (void );
Jason Ekstrand
Reviewed-byRe: [PATCH v2 11/11] drm/i915: Extract i915_module.c
Quoted 10 lines · Tvrtko Ursulin
Quoted 7 lines · Daniel Vetter
The module init code is somewhat misplaced in
i915_pci.c, since it needs to pull in init/exit functions from every part of the driver and pollutes the include list a lot.Extract an
i915_module.cfile which pulls all the bits together, and allows us to massively trim the include list ofi915_pci.c.
Quoted 7 lines
Quoted 3 lines
The downside is that have to drop the error path check Jason added to catch when we set up the pci driver too early. I think that risk is acceptable for this pretty nice include.
i915_module.cis an improvement and the rest for me is not extremely objectionable by the end of this incarnation, but I also do not see it as an improvement really.
It's not a big improvement to be sure, but I think there are a few ways this is nicer:
1. One less level of indirection to sort through.
2. The init/exit table is generally simpler than the i915_global interface.
3. It's easy to forget i915_global_register but forgetting to put an_exit function in the module init table is a lot more obvious.
None of those are deal-breakers but they're kind-of nice. Anyway, this one is also
--Jason
Quoted 315 lines
There was a bug to fix relating to mock tests, but that is where the exercise should have stopped for now. After that it IMHO spiraled out of control, not least the unjustifiably expedited removal of cache shrinking. On balance for me it is too churny and boils down to two extremely capable people spending time on kind of really unimportant side fiddles. And I do not intend to prescribe you what to do, just expressing my bewilderment. FWIW... I can only say my opinion as it, not that it matters a lot.
Regards,
Tvrtko
Quoted 302 lines
Cc Jason Ekstrand <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_module.c | 113 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.c | 117 +---------------------------- drivers/gpu/drm/i915/i915_pci.h | 8 ++ 4 files changed, 125 insertions(+), 114 deletions(-)create mode 100644
drivers/gpu/drm/i915/i915_module.ccreate mode 100644drivers/gpu/drm/i915/i915_pci.hdrivers/gpu/drm/i915/Makefile +1
-0@@ -38,6 +38,7 @@ i915-y += i915_drv.o \ i915_irq.o \ i915_getparam.o \ i915_mitigations.o \ + i915_module.o \ i915_params.o \ i915_pci.o \ i915_scatterlist.o \drivers/gpu/drm/i915/i915_module.c new file +113
-0@@ -0,0 +1,113 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +#include <linux/console.h> + +#include "gem/i915_gem_context.h" +#include "gem/i915_gem_object.h" +#include "i915_active.h" +#include "i915_buddy.h" +#include "i915_params.h" +#include "i915_pci.h" +#include "i915_perf.h" +#include "i915_request.h" +#include "i915_scheduler.h" +#include "i915_selftest.h" +#include "i915_vma.h" + +static int i915_check_nomodeset (void ) +{ +bool use_kms = true; + +/* +* Enable KMS by default, unless explicitly overriden by +* either the i915.modeset prarameter or by the +* vga_text_mode_force boot option. +*/ + +if (i915_modparams.modeset ==0 ) + use_kms = false; + +if (vgacon_text_force () && i915_modparams.modeset ==-1 ) + use_kms = false; + +if (!use_kms) { +/* Silently fail loading to not upset userspace. */ +DRM_DEBUG_DRIVER ("KMS disabled.\n" ); +return 1 ; + } + +return 0 ; +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { i915_check_nomodeset,NULL }, + { i915_active_module_init, i915_active_module_exit }, + { i915_buddy_module_init, i915_buddy_module_exit }, + { i915_context_module_init, i915_context_module_exit }, + { i915_gem_context_module_init, i915_gem_context_module_exit }, + { i915_objects_module_init, i915_objects_module_exit }, + { i915_request_module_init, i915_request_module_exit }, + { i915_scheduler_module_init, i915_scheduler_module_exit }, + { i915_vma_module_init, i915_vma_module_exit }, + { i915_mock_selftests,NULL }, + { i915_pmu_init, i915_pmu_exit }, + { i915_register_pci_driver, i915_unregister_pci_driver }, + { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, +}; +static int init_progress; + +static int __init i915_init (void ) +{ +int err, i; + +for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { + err = init_funcs[i].init (); +if (err <0 ) { +while (i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +return err; + }else if (err >0 ) { +/* +* Early-exit success is reserved for things which +* don't have an exit() function because we have no +* idea how far they got or how to partially tear +* them down. +*/ +WARN_ON (init_funcs[i].exit); +break ; + } + } + + init_progress = i; + +return 0 ; +} + +static void __exit i915_exit(void) +{ +int i; + +for (i = init_progress -1 ; i >=0 ; i--) { +GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +} + +module_init (i915_init); +module_exit (i915_exit); + +MODULE_AUTHOR ("Tungsten Graphics, Inc." ); +MODULE_AUTHOR ("Intel Corporation" ); + +MODULE_DESCRIPTION (DRIVER_DESC ); +MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.c +3
-114@@ -22,24 +22,13 @@* */ -#include <linux/console.h> #include <linux/vga_switcheroo.h> #include <drm/drm_drv.h> #include <drm/i915_pciids.h> -#include "display/intel_fbdev.h" - -#include "i915_active.h" -#include "i915_buddy.h" #include "i915_drv.h" -#include "gem/i915_gem_context.h" -#include "gem/i915_gem_object.h" -#include "i915_request.h" -#include "i915_perf.h" -#include "i915_selftest.h" -#include "i915_scheduler.h" -#include "i915_vma.h" +#include "i915_pci.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \@@ -1251,31 +1240,6 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static int i915_check_nomodeset (void ) -{ -bool use_kms = true; - -/* -* Enable KMS by default, unless explicitly overriden by -* either the i915.modeset prarameter or by the -* vga_text_mode_force boot option. -*/ - -if (i915_modparams.modeset ==0 ) - use_kms = false; - -if (vgacon_text_force () && i915_modparams.modeset ==-1 ) - use_kms = false; - -if (!use_kms) { -/* Silently fail loading to not upset userspace. */ -DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 1 ; - } - -return 0 ; -} -static struct pci_driver i915_pci_driver = { .name =DRIVER_NAME , .id_table = pciidlist,@@ -1285,87 +1249,12 @@ static struct pci_driver i915_pci_driver = { .driver.pm = &i915_pm_ops, }; -static int i915_register_pci_driver (void ) +int i915_register_pci_driver (void ) {return pci_register_driver (&i915_pci_driver); } -static void i915_unregister_pci_driver (void ) +void i915_unregister_pci_driver (void ) {pci_unregister_driver (&i915_pci_driver); } - -static const struct { -int (*init)(void ); -void (*exit)(void ); -} init_funcs[] = { - { i915_check_nomodeset,NULL }, - { i915_active_module_init, i915_active_module_exit }, - { i915_buddy_module_init, i915_buddy_module_exit }, - { i915_context_module_init, i915_context_module_exit }, - { i915_gem_context_module_init, i915_gem_context_module_exit }, - { i915_objects_module_init, i915_objects_module_exit }, - { i915_request_module_init, i915_request_module_exit }, - { i915_scheduler_module_init, i915_scheduler_module_exit }, - { i915_vma_module_init, i915_vma_module_exit }, - { i915_mock_selftests,NULL }, - { i915_pmu_init, i915_pmu_exit }, - { i915_register_pci_driver, i915_unregister_pci_driver }, - { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, -}; -static int init_progress; - -static int __init i915_init (void ) -{ -int err, i; - -for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { - err = init_funcs[i].init (); -if (err <0 ) { -while (i--) { -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -return err; - }else if (err >0 ) { -/* -* Early-exit success is reserved for things which -* don't have an exit() function because we have no -* idea how far they got or how to partially tear -* them down. -*/ -WARN_ON (init_funcs[i].exit); - -/* -* We don't want to advertise devices with an only -* partially initialized driver. -*/ -WARN_ON (i915_pci_driver.driver.owner); -break ; - } - } - - init_progress = i; - -return 0 ; -} - -static void __exit i915_exit(void) -{ -int i; - -for (i = init_progress -1 ; i >=0 ; i--) { -GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -} - -module_init (i915_init); -module_exit (i915_exit); - -MODULE_AUTHOR ("Tungsten Graphics, Inc." ); -MODULE_AUTHOR ("Intel Corporation" ); - -MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.h new file +1
-0@@ -0,0 +1,8 @@ +/*
Quoted 8 lines
drivers/gpu/drm/i915/i915_pci.h line 8
Quoted 8 lines
drivers/gpu/drm/i915/i915_pci.h new file +7
-0+* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +int i915_register_pci_driver (void ); +void i915_unregister_pci_driver (void );
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v2 11/11] drm/i915: Extract i915_module.c
In reply to Daniel VetterQuoted 7 lines · Daniel Vetter
The module init code is somewhat misplaced in
i915_pci.c, since it needs to pull in init/exit functions from every part of the driver and pollutes the include list a lot.Extract an
i915_module.cfile which pulls all the bits together, and allows us to massively trim the include list ofi915_pci.c.
Quoted 8 lines
The downside is that have to drop the error path check Jason added to catch when we set up the pci driver too early. I think that risk is acceptable for this pretty nice include.
Cc Jason Ekstrand <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Jason Ekstrand <[email protected]>
With gcc and CONFIG_GCC_PLUGIN_RANDSTRUCT=y, this patch results in:
drivers/gpu/drm/i915/i915_module.c:50:11: error:
positional initialization of field in 'struct' declared with 'designated_init' attribute
This is seen for each of the initializers.
Guenter
Quoted 306 lines
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_module.c | 113 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.c | 117 +---------------------------- drivers/gpu/drm/i915/i915_pci.h | 8 ++ 4 files changed, 125 insertions(+), 114 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_module.c create mode 100644 drivers/gpu/drm/i915/i915_pci.hdrivers/gpu/drm/i915/Makefile +1
-0@@ -38,6 +38,7 @@ i915-y += i915_drv.o \ i915_irq.o \ i915_getparam.o \ i915_mitigations.o \ + i915_module.o \ i915_params.o \ i915_pci.o \ i915_scatterlist.o \drivers/gpu/drm/i915/i915_module.c new file +113
-0@@ -0,0 +1,113 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +#include <linux/console.h> + +#include "gem/i915_gem_context.h" +#include "gem/i915_gem_object.h" +#include "i915_active.h" +#include "i915_buddy.h" +#include "i915_params.h" +#include "i915_pci.h" +#include "i915_perf.h" +#include "i915_request.h" +#include "i915_scheduler.h" +#include "i915_selftest.h" +#include "i915_vma.h" + +static int i915_check_nomodeset (void ) +{ +bool use_kms = true; + +/* +* Enable KMS by default, unless explicitly overriden by +* either the i915.modeset prarameter or by the +* vga_text_mode_force boot option. +*/ + +if (i915_modparams.modeset ==0 ) + use_kms = false; + +if (vgacon_text_force () && i915_modparams.modeset ==-1 ) + use_kms = false; + +if (!use_kms) { +/* Silently fail loading to not upset userspace. */ +DRM_DEBUG_DRIVER ("KMS disabled.\n" ); +return 1 ; + } + +return 0 ; +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { i915_check_nomodeset,NULL }, + { i915_active_module_init, i915_active_module_exit }, + { i915_buddy_module_init, i915_buddy_module_exit }, + { i915_context_module_init, i915_context_module_exit }, + { i915_gem_context_module_init, i915_gem_context_module_exit }, + { i915_objects_module_init, i915_objects_module_exit }, + { i915_request_module_init, i915_request_module_exit }, + { i915_scheduler_module_init, i915_scheduler_module_exit }, + { i915_vma_module_init, i915_vma_module_exit }, + { i915_mock_selftests,NULL }, + { i915_pmu_init, i915_pmu_exit }, + { i915_register_pci_driver, i915_unregister_pci_driver }, + { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, +}; +static int init_progress; + +static int __init i915_init (void ) +{ +int err, i; + +for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { + err = init_funcs[i].init (); +if (err <0 ) { +while (i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +return err; + }else if (err >0 ) { +/* +* Early-exit success is reserved for things which +* don't have an exit() function because we have no +* idea how far they got or how to partially tear +* them down. +*/ +WARN_ON (init_funcs[i].exit); +break ; + } + } + + init_progress = i; + +return 0 ; +} + +static void __exit i915_exit(void) +{ +int i; + +for (i = init_progress -1 ; i >=0 ; i--) { +GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +} + +module_init (i915_init); +module_exit (i915_exit); + +MODULE_AUTHOR ("Tungsten Graphics, Inc." ); +MODULE_AUTHOR ("Intel Corporation" ); + +MODULE_DESCRIPTION (DRIVER_DESC ); +MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.c +3
-114@@ -22,24 +22,13 @@* */ -#include <linux/console.h> #include <linux/vga_switcheroo.h> #include <drm/drm_drv.h> #include <drm/i915_pciids.h> -#include "display/intel_fbdev.h" - -#include "i915_active.h" -#include "i915_buddy.h" #include "i915_drv.h" -#include "gem/i915_gem_context.h" -#include "gem/i915_gem_object.h" -#include "i915_request.h" -#include "i915_perf.h" -#include "i915_selftest.h" -#include "i915_scheduler.h" -#include "i915_vma.h" +#include "i915_pci.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \@@ -1251,31 +1240,6 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static int i915_check_nomodeset (void ) -{ -bool use_kms = true; - -/* -* Enable KMS by default, unless explicitly overriden by -* either the i915.modeset prarameter or by the -* vga_text_mode_force boot option. -*/ - -if (i915_modparams.modeset ==0 ) - use_kms = false; - -if (vgacon_text_force () && i915_modparams.modeset ==-1 ) - use_kms = false; - -if (!use_kms) { -/* Silently fail loading to not upset userspace. */ -DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 1 ; - } - -return 0 ; -} -static struct pci_driver i915_pci_driver = { .name =DRIVER_NAME , .id_table = pciidlist,@@ -1285,87 +1249,12 @@ static struct pci_driver i915_pci_driver = { .driver.pm = &i915_pm_ops, }; -static int i915_register_pci_driver (void ) +int i915_register_pci_driver (void ) {return pci_register_driver (&i915_pci_driver); } -static void i915_unregister_pci_driver (void ) +void i915_unregister_pci_driver (void ) {pci_unregister_driver (&i915_pci_driver); } - -static const struct { -int (*init)(void ); -void (*exit)(void ); -} init_funcs[] = { - { i915_check_nomodeset,NULL }, - { i915_active_module_init, i915_active_module_exit }, - { i915_buddy_module_init, i915_buddy_module_exit }, - { i915_context_module_init, i915_context_module_exit }, - { i915_gem_context_module_init, i915_gem_context_module_exit }, - { i915_objects_module_init, i915_objects_module_exit }, - { i915_request_module_init, i915_request_module_exit }, - { i915_scheduler_module_init, i915_scheduler_module_exit }, - { i915_vma_module_init, i915_vma_module_exit }, - { i915_mock_selftests,NULL }, - { i915_pmu_init, i915_pmu_exit }, - { i915_register_pci_driver, i915_unregister_pci_driver }, - { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, -}; -static int init_progress; - -static int __init i915_init (void ) -{ -int err, i; - -for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { - err = init_funcs[i].init (); -if (err <0 ) { -while (i--) { -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -return err; - }else if (err >0 ) { -/* -* Early-exit success is reserved for things which -* don't have an exit() function because we have no -* idea how far they got or how to partially tear -* them down. -*/ -WARN_ON (init_funcs[i].exit); - -/* -* We don't want to advertise devices with an only -* partially initialized driver. -*/ -WARN_ON (i915_pci_driver.driver.owner); -break ; - } - } - - init_progress = i; - -return 0 ; -} - -static void __exit i915_exit(void) -{ -int i; - -for (i = init_progress -1 ; i >=0 ; i--) { -GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -} - -module_init (i915_init); -module_exit (i915_exit); - -MODULE_AUTHOR ("Tungsten Graphics, Inc." ); -MODULE_AUTHOR ("Intel Corporation" ); - -MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.h new file +8
-0@@ -0,0 +1,8 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +int i915_register_pci_driver (void ); +void i915_unregister_pci_driver (void );
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH v2 11/11] drm/i915: Extract i915_module.c
Quoted 17 lines · Guenter Roeck
Quoted 7 lines · Daniel Vetter
The module init code is somewhat misplaced in
i915_pci.c, since it needs to pull in init/exit functions from every part of the driver and pollutes the include list a lot.Extract an
i915_module.cfile which pulls all the bits together, and allows us to massively trim the include list ofi915_pci.c.Quoted 8 lines
The downside is that have to drop the error path check Jason added to catch when we set up the pci driver too early. I think that risk is acceptable for this pretty nice include.
Cc Jason Ekstrand <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Jason Ekstrand <[email protected]>
Quoted 7 lines
With gcc and
CONFIG_GCC_PLUGIN_RANDSTRUCT=y, this patch results in:
drivers/gpu/drm/i915/i915_module.c:50:11: error:
positional initialization of field in 'struct' declared with 'designated_init' attributeThis is seen for each of the initializers.
https://patchwork.freedesktop.org/patch/msgid/[email protected]
BR,
Jani.
Quoted 309 lines
Guenter
Quoted 306 lines
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_module.c | 113 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.c | 117 +---------------------------- drivers/gpu/drm/i915/i915_pci.h | 8 ++ 4 files changed, 125 insertions(+), 114 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_module.c create mode 100644 drivers/gpu/drm/i915/i915_pci.hdrivers/gpu/drm/i915/Makefile +1
-0@@ -38,6 +38,7 @@ i915-y += i915_drv.o \ i915_irq.o \ i915_getparam.o \ i915_mitigations.o \ + i915_module.o \ i915_params.o \ i915_pci.o \ i915_scatterlist.o \drivers/gpu/drm/i915/i915_module.c new file +113
-0@@ -0,0 +1,113 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +#include <linux/console.h> + +#include "gem/i915_gem_context.h" +#include "gem/i915_gem_object.h" +#include "i915_active.h" +#include "i915_buddy.h" +#include "i915_params.h" +#include "i915_pci.h" +#include "i915_perf.h" +#include "i915_request.h" +#include "i915_scheduler.h" +#include "i915_selftest.h" +#include "i915_vma.h" + +static int i915_check_nomodeset (void ) +{ +bool use_kms = true; + +/* +* Enable KMS by default, unless explicitly overriden by +* either the i915.modeset prarameter or by the +* vga_text_mode_force boot option. +*/ + +if (i915_modparams.modeset ==0 ) + use_kms = false; + +if (vgacon_text_force () && i915_modparams.modeset ==-1 ) + use_kms = false; + +if (!use_kms) { +/* Silently fail loading to not upset userspace. */ +DRM_DEBUG_DRIVER ("KMS disabled.\n" ); +return 1 ; + } + +return 0 ; +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { i915_check_nomodeset,NULL }, + { i915_active_module_init, i915_active_module_exit }, + { i915_buddy_module_init, i915_buddy_module_exit }, + { i915_context_module_init, i915_context_module_exit }, + { i915_gem_context_module_init, i915_gem_context_module_exit }, + { i915_objects_module_init, i915_objects_module_exit }, + { i915_request_module_init, i915_request_module_exit }, + { i915_scheduler_module_init, i915_scheduler_module_exit }, + { i915_vma_module_init, i915_vma_module_exit }, + { i915_mock_selftests,NULL }, + { i915_pmu_init, i915_pmu_exit }, + { i915_register_pci_driver, i915_unregister_pci_driver }, + { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, +}; +static int init_progress; + +static int __init i915_init (void ) +{ +int err, i; + +for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { + err = init_funcs[i].init (); +if (err <0 ) { +while (i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +return err; + }else if (err >0 ) { +/* +* Early-exit success is reserved for things which +* don't have an exit() function because we have no +* idea how far they got or how to partially tear +* them down. +*/ +WARN_ON (init_funcs[i].exit); +break ; + } + } + + init_progress = i; + +return 0 ; +} + +static void __exit i915_exit(void) +{ +int i; + +for (i = init_progress -1 ; i >=0 ; i--) { +GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); +if (init_funcs[i].exit) + init_funcs[i].exit (); + } +} + +module_init (i915_init); +module_exit (i915_exit); + +MODULE_AUTHOR ("Tungsten Graphics, Inc." ); +MODULE_AUTHOR ("Intel Corporation" ); + +MODULE_DESCRIPTION (DRIVER_DESC ); +MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.c +3
-114@@ -22,24 +22,13 @@* */ -#include <linux/console.h> #include <linux/vga_switcheroo.h> #include <drm/drm_drv.h> #include <drm/i915_pciids.h> -#include "display/intel_fbdev.h" - -#include "i915_active.h" -#include "i915_buddy.h" #include "i915_drv.h" -#include "gem/i915_gem_context.h" -#include "gem/i915_gem_object.h" -#include "i915_request.h" -#include "i915_perf.h" -#include "i915_selftest.h" -#include "i915_scheduler.h" -#include "i915_vma.h" +#include "i915_pci.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \@@ -1251,31 +1240,6 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static int i915_check_nomodeset (void ) -{ -bool use_kms = true; - -/* -* Enable KMS by default, unless explicitly overriden by -* either the i915.modeset prarameter or by the -* vga_text_mode_force boot option. -*/ - -if (i915_modparams.modeset ==0 ) - use_kms = false; - -if (vgacon_text_force () && i915_modparams.modeset ==-1 ) - use_kms = false; - -if (!use_kms) { -/* Silently fail loading to not upset userspace. */ -DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 1 ; - } - -return 0 ; -} -static struct pci_driver i915_pci_driver = { .name =DRIVER_NAME , .id_table = pciidlist,@@ -1285,87 +1249,12 @@ static struct pci_driver i915_pci_driver = { .driver.pm = &i915_pm_ops, }; -static int i915_register_pci_driver (void ) +int i915_register_pci_driver (void ) {return pci_register_driver (&i915_pci_driver); } -static void i915_unregister_pci_driver (void ) +void i915_unregister_pci_driver (void ) {pci_unregister_driver (&i915_pci_driver); } - -static const struct { -int (*init)(void ); -void (*exit)(void ); -} init_funcs[] = { - { i915_check_nomodeset,NULL }, - { i915_active_module_init, i915_active_module_exit }, - { i915_buddy_module_init, i915_buddy_module_exit }, - { i915_context_module_init, i915_context_module_exit }, - { i915_gem_context_module_init, i915_gem_context_module_exit }, - { i915_objects_module_init, i915_objects_module_exit }, - { i915_request_module_init, i915_request_module_exit }, - { i915_scheduler_module_init, i915_scheduler_module_exit }, - { i915_vma_module_init, i915_vma_module_exit }, - { i915_mock_selftests,NULL }, - { i915_pmu_init, i915_pmu_exit }, - { i915_register_pci_driver, i915_unregister_pci_driver }, - { i915_perf_sysctl_register, i915_perf_sysctl_unregister }, -}; -static int init_progress; - -static int __init i915_init (void ) -{ -int err, i; - -for (i =0 ; i <ARRAY_SIZE (init_funcs); i++) { - err = init_funcs[i].init (); -if (err <0 ) { -while (i--) { -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -return err; - }else if (err >0 ) { -/* -* Early-exit success is reserved for things which -* don't have an exit() function because we have no -* idea how far they got or how to partially tear -* them down. -*/ -WARN_ON (init_funcs[i].exit); - -/* -* We don't want to advertise devices with an only -* partially initialized driver. -*/ -WARN_ON (i915_pci_driver.driver.owner); -break ; - } - } - - init_progress = i; - -return 0 ; -} - -static void __exit i915_exit(void) -{ -int i; - -for (i = init_progress -1 ; i >=0 ; i--) { -GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs)); -if (init_funcs[i].exit) - init_funcs[i].exit (); - } -} - -module_init (i915_init); -module_exit (i915_exit); - -MODULE_AUTHOR ("Tungsten Graphics, Inc." ); -MODULE_AUTHOR ("Intel Corporation" ); - -MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL and additional rights" );drivers/gpu/drm/i915/i915_pci.h new file +8
-0@@ -0,0 +1,8 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2021 Intel Corporation +*/ + +int i915_register_pci_driver (void ); +void i915_unregister_pci_driver (void );
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Jani Nikula
maintainerRe: [PATCH v2 11/11] drm/i915: Extract i915_module.c
In reply to Daniel Vetterdrivers/gpu/drm/i915/i915_module.c line 100
Quoted 6 lines · Daniel Vetter
drivers/gpu/drm/i915/i915_module.c new file +6
-0+static void __exit i915_exit(void) +{ +int i; + +for (i = init_progress -1 ; i >=0 ; i--) { +GEM_BUG_ON (i >=ARRAY_SIZE (init_funcs));
Not introduced by you, but it's kind of silly we're using GEM_BUG_ON() in generic driver code.
BR,
Jani.
Quoted 4 lines
drivers/gpu/drm/i915/i915_module.c new file +4
-0+if (init_funcs[i].exit) + init_funcs[i].exit (); + } +}
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
URL : https://patchwork.freedesktop.org/series/93066/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 526b1246de6a drm/i915: Check for nomodeset in i915_init() first -:32: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 10 lines checked2f47345a0149 drm/i915: move i915_active slab to direct module init/exit
-:177: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 126 lines checkedd56d75be6b62 drm/i915: move i915_buddy slab to direct module init/exit
-:135: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 92 lines checked68a6ff81e0d6 drm/i915: move intel_context slab to direct module init/exit
-:150: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 102 lines checked591b60d8aad3 drm/i915: move gem_context slab to direct module init/exit -:84: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 0) #84: FILE: drivers/gpu/drm/i915/gem/i915_gem_context.h:224:
for (i915_gem_engines_iter_init(&(it), (engines)); \
[...]
+void i915_gem_context_module_exit(void);
-:144: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 2 warnings, 0 checks, 98 lines checkedd8736bba255c drm/i915: move gem_objects slab to direct module init/exit
-:135: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 89 lines checked 9547d213ca53 drm/i915: move request slabs to direct module init/exit -:192: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #192: FILE: drivers/gpu/drm/i915/i915_request.c:2103:
+ slab_execute_cbs = KMEM_CACHE(execute_cb,
SLAB_HWCACHE_ALIGN |
-:218: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 1 checks, 167 lines checked1eefc0331fde drm/i915: move scheduler slabs to direct module init/exit
-:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #10:
noise with removing the static global.slab_dependencies|priorities to just a
-:150: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #150: FILE: drivers/gpu/drm/i915/i915_scheduler.c:483:
+ slab_dependencies = KMEM_CACHE(i915_dependency,
SLAB_HWCACHE_ALIGN |
-:181: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 2 warnings, 1 checks, 132 lines checked2567a687274b drm/i915: move vma slab to direct module init/exit
-:145: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 96 lines checked0d4a676a47a4 drm/i915: Remove i915_globals
-:36: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #36:
deleted file mode 100644
-:144: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 2 warnings, 0 checks, 28 lines checkede3aa4c53ca1e drm/i915: Extract i915_module.c
-:34: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #34:
new file mode 100644
-:39: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #39: FILE: drivers/gpu/drm/i915/i915_module.c:1:
+/*
-:40: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #40: FILE: drivers/gpu/drm/i915/i915_module.c:2:
+ * SPDX-License-Identifier: MIT
-:64: WARNING:TYPO_SPELLING: 'overriden' may be misspelled - perhaps 'overridden'? #64: FILE: drivers/gpu/drm/i915/i915_module.c:26:
+ * Enable KMS by default, unless explicitly overriden by
^^^^^^^^^
-:85: WARNING:LEADING_SPACE: please, no spaces at the start of a line #85: FILE: drivers/gpu/drm/i915/i915_module.c:47:
+ int (*init)(void);$
-:86: WARNING:LEADING_SPACE: please, no spaces at the start of a line #86: FILE: drivers/gpu/drm/i915/i915_module.c:48:
+ void (*exit)(void);$
-:102: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #102: FILE: drivers/gpu/drm/i915/i915_module.c:64:
+};
+static int init_progress;
-:310: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #310: FILE: drivers/gpu/drm/i915/i915_pci.h:1:
+/*
-:311: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #311: FILE: drivers/gpu/drm/i915/i915_pci.h:2:
+ * SPDX-License-Identifier: MIT
-:317: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 9 warnings, 1 checks, 198 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
URL : https://patchwork.freedesktop.org/series/93066/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +drivers/gpu/drm/i915/display/intel_display.c:1900:21: expected struct i915_vma *[assigned] vma +drivers/gpu/drm/i915/display/intel_display.c:1900:21: got void [noderef] __iomem *[assigned] iomem +drivers/gpu/drm/i915/display/intel_display.c:1900:21: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gem/i915_gem_context.c:1409:34: expected struct i915_address_space *vm +drivers/gpu/drm/i915/gem/i915_gem_context.c:1409:34: got struct i915_address_space [noderef] __rcu *vm +drivers/gpu/drm/i915/gem/i915_gem_context.c:1409:34: warning: incorrect type in argument 1 (different address spaces) +drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: expected struct i915_address_space [noderef] __rcu *vm +drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: got struct i915_address_space * +drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: expected struct i915_address_space *vm +drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: got struct i915_address_space [noderef] __rcu *vm +drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: warning: incorrect type in argument 1 (different address spaces) +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1402:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1210:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/i915_perf.c:1443:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1497:15: warning: memset with byte count of 16777216 +./include/asm-generic/bitops/find.h:112:45: warning: shift count is negative (-262080) +./include/asm-generic/bitops/find.h:32:31: warning: shift count is negative (-262080) +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'xehp_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'xehp_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'xehp_fwtable_write8' - different lock contexts for basic block +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +./include/linux/stddef.h:17:9: this was the original definition +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined +/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h:417:9: warning: preprocessor token offsetof redefined
_______________________________________________
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 [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
URL : https://patchwork.freedesktop.org/series/93066/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10404 -> Patchwork_20715
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/index.html
Known issues
------------
Here are the changes found in Patchwork_20715 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@semaphore:
- fi-bdw-5557u: NOTRUN -> [SKIP][1] ([fdo#109271]) +29 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/fi-bdw-5557u/igt@amdgpu/[email protected]
* igt@core_hotunplug@unbind-rebind:
- fi-bdw-5557u: NOTRUN -> [WARN][2] ([i915#3718])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/fi-bdw-5557u/igt@[email protected]
* igt@i915_pm_rpm@basic-rte:
- fi-bdw-5557u: NOTRUN -> [FAIL][3] ([i915#579])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/fi-bdw-5557u/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][4] -> [FAIL][5] ([i915#1372])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/fi-kbl-7500u/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/fi-kbl-7500u/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [SKIP][6] ([fdo#109271] / [fdo#111827]) +8 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/fi-bdw-5557u/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#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#3718]: https://gitlab.freedesktop.org/drm/intel/issues/3718
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
Participating hosts (40 -> 35)
------------------------------
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan bat-jsl-1 fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_10404 -> Patchwork_20715
CI-20190529: 20190529
CI_DRM_10404: 371bd54db63fdd99356a1a3d0fdc9b76616eddcb @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6153: a5dffe7499a2f7189718ddf1ccf49060b7c1529d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20715: e3aa4c53ca1e1c5676978e68a9f6d0125eec7ae9 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
e3aa4c53ca1e drm/i915: Extract i915_module.c0d4a676a47a4 drm/i915: Remove i915_globals2567a687274b drm/i915: move vma slab to direct module init/exit 1eefc0331fde drm/i915: move scheduler slabs to direct module init/exit 9547d213ca53 drm/i915: move request slabs to direct module init/exit d8736bba255c drm/i915: move gem_objects slab to direct module init/exit 591b60d8aad3 drm/i915: move gem_context slab to direct module init/exit 68a6ff81e0d6 drm/i915: move intel_context slab to direct module init/exit d56d75be6b62 drm/i915: move i915_buddy slab to direct module init/exit 2f47345a0149 drm/i915: move i915_active slab to direct module init/exit 526b1246de6a drm/i915: Check for nomodeset in i915_init() first
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/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 [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [v2,01/11] drm/i915: Check for nomodeset in i915_init() first
URL : https://patchwork.freedesktop.org/series/93066/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10404_full -> Patchwork_20715_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20715_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20715_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_20715_full:
### IGT changes ###
#### Possible regressions ####
* igt@sysfs_heartbeat_interval@precise@rcs0:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-tglb1/igt@sysfs_heartbeat_interval@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb6/igt@sysfs_heartbeat_interval@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@pm-tiling:
- shard-iclb: [SKIP][3] ([i915#579]) -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb5/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb7/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- {shard-rkl}: [SKIP][5] ([i915#1845]) -> [DMESG-WARN][6] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@runner@aborted:
- {shard-rkl}: ([FAIL][7], [FAIL][8], [FAIL][9], [FAIL][10]) ([i915#2029] / [i915#3002] / [i915#3810] / [i915#3811]) -> ([FAIL][11], [FAIL][12], [FAIL][13], [FAIL][14], [FAIL][15]) ([i915#2029] / [i915#3002] / [i915#3621] / [i915#3810] / [i915#3811])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-5/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20715_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@engines-hostile-preempt:
- shard-snb: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#1099]) +2 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-snb6/igt@[email protected]
* igt@gem_eio@in-flight-contexts-immediate:
- shard-tglb: [PASS][17] -> [TIMEOUT][18] ([i915#3063])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-tglb1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb7/igt@[email protected]
* igt@gem_eio@in-flight-suspend:
- shard-kbl: [PASS][19] -> [INCOMPLETE][20] ([i915#155])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-kbl7/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl4/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][21] -> [FAIL][22] ([i915#2846])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-glk1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk1/igt@[email protected]
* igt@gem_exec_fair@basic-none@vcs1:
- shard-kbl: [PASS][23] -> [FAIL][24] ([i915#2842])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-kbl7/igt@gem_exec_fair@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][25] -> [FAIL][26] ([i915#2842]) +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-tglb7/igt@gem_exec_fair@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][27] -> [FAIL][28] ([i915#2842]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-glk5/igt@gem_exec_fair@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [PASS][29] -> [DMESG-WARN][30] ([i915#180]) +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-apl2/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl2/igt@[email protected]
* igt@i915_pm_rpm@fences:
- shard-tglb: NOTRUN -> [SKIP][31] ([i915#579])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb1/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#3777])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
* igt@kms_big_joiner@invalid-modeset:
- shard-iclb: NOTRUN -> [SKIP][33] ([i915#2705])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@[email protected]
* igt@kms_cdclk@mode-transition:
- shard-apl: NOTRUN -> [SKIP][34] ([fdo#109271]) +179 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl2/igt@[email protected]
* igt@kms_chamelium@hdmi-crc-nonplanar-formats:
- shard-glk: NOTRUN -> [SKIP][35] ([fdo#109271] / [fdo#111827]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk6/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-for-each-pipe:
- shard-kbl: NOTRUN -> [SKIP][36] ([fdo#109271] / [fdo#111827]) +3 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@kms_color@pipe-b-ctm-max:
- shard-skl: [PASS][37] -> [DMESG-WARN][38] ([i915#1982])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl10/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-snb: NOTRUN -> [SKIP][39] ([fdo#109271] / [fdo#111827]) +9 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-snb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-apl: NOTRUN -> [SKIP][40] ([fdo#109271] / [fdo#111827]) +13 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-green-to-red:
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-skl: NOTRUN -> [SKIP][42] ([fdo#109271] / [fdo#111827]) +4 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl1/igt@[email protected]
* igt@kms_content_protection@atomic-dpms:
- shard-kbl: NOTRUN -> [TIMEOUT][43] ([i915#1319])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-glk: NOTRUN -> [SKIP][44] ([fdo#109271]) +40 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-apl: NOTRUN -> [DMESG-WARN][45] ([i915#180]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [PASS][46] -> [FAIL][47] ([i915#2346] / [i915#533])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-skl: [PASS][48] -> [FAIL][49] ([i915#2346])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl8/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl6/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [PASS][50] -> [INCOMPLETE][51] ([i915#155] / [i915#180] / [i915#636])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-kbl7/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl7/igt@[email protected]
* igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
- shard-tglb: NOTRUN -> [SKIP][52] ([fdo#111825])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb1/igt@kms_flip@2x-flip-vs-wf_vblank-interruptible.html
* igt@kms_flip@plain-flip-ts-check-interruptible@a-edp1:
- shard-skl: [PASS][53] -> [FAIL][54] ([i915#2122])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl7/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][55] ([fdo#109271] / [i915#2672])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs:
- shard-apl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#2672])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite:
- shard-snb: NOTRUN -> [SKIP][57] ([fdo#109271]) +234 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-snb6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-gtt:
- shard-skl: NOTRUN -> [SKIP][58] ([fdo#109271]) +54 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl3/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-gtt.html
* igt@kms_hdr@bpc-switch:
- shard-skl: NOTRUN -> [FAIL][59] ([i915#1188])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl1/igt@[email protected]
* igt@kms_panel_fitting@legacy:
- shard-kbl: NOTRUN -> [SKIP][60] ([fdo#109271]) +50 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@kms_pipe_b_c_ivb@pipe-b-dpms-off-modeset-pipe-c:
- shard-iclb: NOTRUN -> [SKIP][61] ([fdo#109289])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][62] ([fdo#108145] / [i915#265]) +2 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][63] ([fdo#108145] / [i915#265])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-skl: NOTRUN -> [FAIL][64] ([i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb:
- shard-kbl: NOTRUN -> [FAIL][65] ([fdo#108145] / [i915#265])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@kms_plane_lowres@pipe-b-tiling-none:
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#3536])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> [SKIP][67] ([fdo#109271] / [i915#2733])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl8/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-apl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#658]) +2 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#658])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-glk: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#658])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk6/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-2:
- shard-kbl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#658])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@kms_psr@psr2_primary_render:
- shard-iclb: [PASS][72] -> [SKIP][73] ([fdo#109441])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb2/igt@kms_psr@psr2_primary_render.html
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb5/igt@kms_psr@psr2_primary_render.html
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109441])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_vrr@flip-suspend:
- shard-iclb: NOTRUN -> [SKIP][75] ([fdo#109502])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb6/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-kbl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2437])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
* igt@sysfs_clients@create:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#2994]) +1 similar issue
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
* igt@sysfs_clients@fair-7:
- shard-kbl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#2994])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl3/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@write:
- {shard-rkl}: [SKIP][79] ([i915#2582]) -> [PASS][80] +2 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-skl: [INCOMPLETE][81] ([i915#146] / [i915#198]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl6/igt@gem_ctx_isolation@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl5/igt@gem_ctx_isolation@[email protected]
* igt@gem_eio@in-flight-contexts-immediate:
- {shard-rkl}: [TIMEOUT][83] ([i915#3063]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-2/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][85] ([i915#2369] / [i915#3063] / [i915#3648]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-tglb2/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb6/igt@[email protected]
* igt@gem_exec_endless@dispatch@rcs0:
- shard-iclb: [INCOMPLETE][87] -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb3/igt@gem_exec_endless@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb2/igt@gem_exec_endless@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [FAIL][89] ([i915#2846]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-kbl1/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-kbl7/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-tglb: [FAIL][91] ([i915#2842]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-tglb6/igt@gem_exec_fair@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-tglb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [FAIL][93] ([i915#2842]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-glk6/igt@gem_exec_fair@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- {shard-rkl}: [FAIL][95] ([i915#2842]) -> [PASS][96] +2 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-6/igt@gem_exec_fair@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-scanout@vecs0:
- {shard-rkl}: [SKIP][97] ([i915#3639]) -> [PASS][98] +3 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@gem_exec_reloc@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_whisper@basic-fds-forked-all:
- shard-glk: [DMESG-WARN][99] ([i915#118] / [i915#95]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-glk6/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-glk5/igt@[email protected]
* igt@gem_mmap_wc@set-cache-level:
- {shard-rkl}: [SKIP][101] ([i915#1850]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-skl: [DMESG-WARN][103] ([i915#1982]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl9/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl4/igt@[email protected]
* igt@i915_pm_backlight@basic-brightness:
- {shard-rkl}: [SKIP][105] ([i915#3012]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][107] ([i915#454]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb2/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb5/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- {shard-rkl}: [DMESG-FAIL][109] ([i915#1021]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@i915_selftest@live@gt_pm.html
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-2/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@hangcheck:
- shard-snb: [INCOMPLETE][111] ([i915#2782]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-snb7/igt@i915_selftest@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-snb2/igt@i915_selftest@[email protected]
* igt@i915_suspend@forcewake:
- shard-apl: [DMESG-WARN][113] ([i915#180]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-apl1/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-apl6/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-0:
- {shard-rkl}: [SKIP][115] ([i915#3638]) -> [PASS][116] +4 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0:
- {shard-rkl}: [SKIP][117] ([i915#3721]) -> [PASS][118] +6 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-32bpp-rotate-270:
- {shard-rkl}: [SKIP][119] ([fdo#111614]) -> [PASS][120] +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- {shard-rkl}: [FAIL][121] ([i915#3678]) -> [PASS][122] +12 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_color@pipe-a-ctm-blue-to-red:
- {shard-rkl}: [SKIP][123] ([i915#1149] / [i915#1849]) -> [PASS][124] +1 similar issue
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-128x42-sliding:
- {shard-rkl}: [SKIP][125] ([fdo#112022]) -> [PASS][126] +13 similar issues
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@short-flip-after-cursor-toggle:
- {shard-rkl}: [SKIP][127] ([fdo#111825]) -> [PASS][128] +5 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a:
- shard-iclb: [SKIP][129] ([i915#3788]) -> [PASS][130]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb2/igt@kms_dither@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb5/igt@kms_dither@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-render-untiled:
- {shard-rkl}: [SKIP][131] ([fdo#111314]) -> [PASS][132] +10 similar issues
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-1/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_flip@plain-flip-ts-check@a-edp1:
- shard-skl: [FAIL][133] ([i915#2122]) -> [PASS][134]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl3/igt@kms_flip@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-wc:
- {shard-rkl}: [SKIP][135] ([i915#1849]) -> [PASS][136] +52 similar issues
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-wc.html
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-wc.html
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [FAIL][137] ([i915#1188]) -> [PASS][138]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl9/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl4/igt@[email protected]
* igt@kms_plane@plane-position-hole@pipe-b-planes:
- {shard-rkl}: [SKIP][139] ([i915#3558]) -> [PASS][140] +1 similar issue
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@kms_plane@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][141] ([fdo#108145] / [i915#265]) -> [PASS][142]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-skl10/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-skl9/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-b-tiling-x:
- {shard-rkl}: [SKIP][143] ([i915#1849] / [i915#3558]) -> [PASS][144]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl-5/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][145] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [PASS][146]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-iclb8/igt@kms_psr2_su@page_flip.html
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@cursor_plane_move:
- {shard-rkl}: [SKIP][147] ([i915#1072]) -> [PASS][148] +2 similar issues
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10404/shard-rkl
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20715/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx