Fix the debugfs splat from mock selftests
Subsystems (4)
cover Fix the debugfs splat from mock selftests
This patch series fixes a miscellaneous collection of bugs that all add up to all our mock selftests throwing dmesg warnings in CI. As can be seen from "drm/i915: Use a table for i915_init/exit", it's especially fun since those warnings don't always show up in the selftests but can show up in other random IGTs depending on test execution order.
Jason Ekstrand (6):
drm/i915: Call i915_globals_exit() after i915_pmu_exit() drm/i915: Call i915_globals_exit() if pci_register_device() fails drm/i915: Use a table for i915_init/exit
drm/ttm: Force re-init if ttm_global_init() fails drm/ttm: Initialize debugfs from ttm_global_init() drm/i915: Make the kmem slab for i915_buddy_block a global
drivers/gpu/drm/i915/i915_buddy.c | 44 ++++++-- drivers/gpu/drm/i915/i915_buddy.h | 3 +- drivers/gpu/drm/i915/i915_globals.c | 6 +- drivers/gpu/drm/i915/i915_pci.c | 103 ++++++++++++------ drivers/gpu/drm/i915/i915_perf.c | 3 +- drivers/gpu/drm/i915/i915_perf.h | 2 +- drivers/gpu/drm/i915/i915_pmu.c | 4 +- drivers/gpu/drm/i915/i915_pmu.h | 4 +- .../gpu/drm/i915/selftests/i915_selftest.c | 2 +- drivers/gpu/drm/ttm/ttm_device.c | 14 +++ drivers/gpu/drm/ttm/ttm_module.c | 16 --- 11 files changed, 134 insertions(+), 67 deletions(-)
Signature · 1 line
2.31.1
PATCH 1/6 drm/i915: Call i915_globals_exit() after i915_pmu_exit()
We should tear down in the opposite order we set up.
--- drivers/gpu/drm/i915/i915_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -1244,8 +1244,8 @@ static void __exit i915_exit(void)i915_perf_sysctl_unregister ();pci_unregister_driver (&i915_pci_driver); -i915_globals_exit ();i915_pmu_exit (); +i915_globals_exit (); }module_init (i915_init);
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/6 drm/i915: Call i915_globals_exit() if pci_register_device() fails
In reply to Jason EkstrandIn the unlikely event that pci_register_device() fails, we were tearing down our PMU setup but not globals. This leaves a bunch of memory slabs lying around.
--- drivers/gpu/drm/i915/i915_globals.c | 4 ++-- drivers/gpu/drm/i915/i915_pci.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_globals.c +2 -2
@@ -138,7 +138,7 @@ void i915_globals_unpark(void)atomic_inc (&active); } -static void __exit __i915_globals_flush(void) +static void __i915_globals_flush (void ) {atomic_inc (&active);/* skip shrinking */
@@ -148,7 +148,7 @@ static void __exit __i915_globals_flush(void)atomic_dec (&active); } -void __exit i915_globals_exit(void) +void i915_globals_exit (void ) {GEM_BUG_ON (atomic_read (&active));
drivers/gpu/drm/i915/i915_pci.c +1 -0
@@ -1230,6 +1230,7 @@ static int __init i915_init(void) err =pci_register_driver (&i915_pci_driver);if (err) {i915_pmu_exit (); +i915_globals_exit ();return err; }
Signature · 1 line
2.31.1
PATCH 3/6 drm/i915: Use a table for i915_init/exit
In reply to Jason EkstrandIf the driver was not fully loaded, we may still have globals lying around. If we don't tear those down in i915_exit(), we'll leak a bunch of memory slabs. This can happen two ways: use_kms = false and if we've run mock selftests. In either case, we have an early exit from i915_init which happens after i915_globals_init() and we need to clean up those globals.
The mock selftests case is especially sticky. The load isn't entirely a no-op. We actually do quite a bit inside those selftests including allocating a bunch of mock objects and running tests on them. Once all those tests are complete, we exit early from i915_init(). Perviously, i915_init() would return a non-zero error code on failure and a zero error code on success. In the success case, we would get to i915_exit() and check i915_pci_driver.driver.owner to detect if i915_init exited early and do nothing. In the failure case, we would fail i915_init() but there would be no opportunity to clean up globals.
The most annoying part is that you don't actually notice the failure as part of the self-tests since leaking a bit of memory, while bad, doesn't result in anything observable from userspace. Instead, the next time we load the driver (usually for next IGT test), i915_globals_init() gets invoked again, we go to allocate a bunch of new memory slabs, those implicitly create debugfs entries, and debugfs warns that we're trying to create directories and files that already exist. Since this all happens as part of the next driver load, it shows up in the dmesg-warn of whatever IGT test ran after the mock selftests.
While the obvious thing to do here might be to call i915_globals_exit() after selftests, that's not actually safe. The dma-buf selftests call i915_gem_prime_export which creates a file. We call dma_buf_put() on the resulting dmabuf which calls fput() on the file. However, fput() isn't immediate and gets flushed right before syscall returns. This means that all the fput()s from the selftests don't happen until right before the module load syscall used to fire off the selftests returns which is after i915_init(). If we call i915_globals_exit() in i915_init() after selftests, we end up freeing slabs out from under objects which won't get released until fput() is flushed at the end of the module load syscall.
The solution here is to let i915_init() return success early and detect the early success in i915_exit() and only tear down globals and nothing else. This way the module loads successfully, regardless of the success or failure of the tests. Because we've not enumerated any PCI devices, no device nodes are created and it's entirely useless from userspace. The only thing the module does at that point is hold on to a bit of memory until we unload it and i915_exit() is called. Importantly, this means that everything from our selftests has the ability to properly flush out between i915_init() and i915_exit() because there is at least one syscall boundary in between.
In order to handle all the delicate init/exit cases, we convert the whole thing to a table of init/exit pairs and track the init status in the new init_progress global. This allows us to ensure that i915_exit() always tears down exactly the things that i915_init() successfully initialized. We also allow early-exit of i915_init() without failure by an init function returning > 0. This is useful for nomodeset, and selftests. For the mock selftests, we convert them to always return 1 so we get the desired behavior of the driver always succeeding to load the driver and then properly tearing down the partially loaded driver.
--- drivers/gpu/drm/i915/i915_pci.c | 104 ++++++++++++------ drivers/gpu/drm/i915/i915_perf.c | 3 +- drivers/gpu/drm/i915/i915_perf.h | 2 +- drivers/gpu/drm/i915/i915_pmu.c | 4 +- drivers/gpu/drm/i915/i915_pmu.h | 4 +- .../gpu/drm/i915/selftests/i915_selftest.c | 2 +- 6 files changed, 80 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +71 -33
@@ -1185,27 +1185,9 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static struct pci_driver i915_pci_driver = { - .name =DRIVER_NAME , - .id_table = pciidlist, - .probe = i915_pci_probe, - .remove = i915_pci_remove, - .shutdown = i915_pci_shutdown, - .driver.pm = &i915_pm_ops, -}; - -static int __init i915_init (void ) +static int i915_check_nomodeset (void ) {bool use_kms = true; -int err; - - err =i915_globals_init (); -if (err) -return err; - - err =i915_mock_selftests (); -if (err) -return err >0 ?0 : err;/* * Enable KMS by default, unless explicitly overriden by
@@ -1222,31 +1204,87 @@ static int __init i915_init(void)if (!use_kms) {/* Silently fail loading to not upset userspace. */ DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 0 ; +return 1 ; } -i915_pmu_init (); +return 0 ; +} - err =pci_register_driver (&i915_pci_driver); -if (err) { -i915_pmu_exit (); -i915_globals_exit (); -return err; +static struct pci_driver i915_pci_driver = { + .name =DRIVER_NAME , + .id_table = pciidlist, + .probe = i915_pci_probe, + .remove = i915_pci_remove, + .shutdown = i915_pci_shutdown, + .driver.pm = &i915_pm_ops, +}; + +static int i915_register_pci_driver (void ) +{ +return pci_register_driver (&i915_pci_driver); +} + +static void i915_unregister_pci_driver (void ) +{ +pci_unregister_driver (&i915_pci_driver); +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { 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 }, +}; +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 ; + } } -i915_perf_sysctl_register (); + init_progress = i; +return 0 ; } static void __exit i915_exit(void) { -if (!i915_pci_driver.driver.owner) -return ; +int i; -i915_perf_sysctl_unregister (); -pci_unregister_driver (&i915_pci_driver); -i915_pmu_exit (); -i915_globals_exit (); +for (i = init_progress -1 ; i >=0 ; i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } }module_init (i915_init);
drivers/gpu/drm/i915/i915_perf.c +2 -1
@@ -4483,9 +4483,10 @@ static int destroy_config(int id, void *p, void *data)return 0 ; } -void i915_perf_sysctl_register (void ) +int i915_perf_sysctl_register (void ) { sysctl_header =register_sysctl_table (dev_root); +return 0 ; }void i915_perf_sysctl_unregister (void )
drivers/gpu/drm/i915/i915_perf.h +1 -1
@@ -23,7 +23,7 @@ void i915_perf_fini(struct drm_i915_private *i915);void i915_perf_register (struct drm_i915_private *i915);void i915_perf_unregister (struct drm_i915_private *i915);int i915_perf_ioctl_version (void ); -void i915_perf_sysctl_register (void ); +int i915_perf_sysctl_register (void );void i915_perf_sysctl_unregister (void ); int i915_perf_open_ioctl(struct drm_device *dev, void *data,
drivers/gpu/drm/i915/i915_pmu.c +3 -1
@@ -1088,7 +1088,7 @@ static int i915_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node)static enum cpuhp_state cpuhp_slot =CPUHP_INVALID ; -void i915_pmu_init (void ) +int i915_pmu_init (void ) {int ret;
@@ -1101,6 +1101,8 @@ void i915_pmu_init(void) ret); else cpuhp_slot = ret; + +return 0 ; }void i915_pmu_exit (void )
drivers/gpu/drm/i915/i915_pmu.h +2 -2
@@ -147,14 +147,14 @@ struct i915_pmu { };#ifdef CONFIG_PERF_EVENTS -void i915_pmu_init (void ); +int i915_pmu_init (void );void i915_pmu_exit (void );void i915_pmu_register (struct drm_i915_private *i915);void i915_pmu_unregister (struct drm_i915_private *i915);void i915_pmu_gt_parked (struct drm_i915_private *i915);void i915_pmu_gt_unparked (struct drm_i915_private *i915);#else -static inline void i915_pmu_init (void ) {} +static inline int i915_pmu_init (void ) {return 0 ; }static inline void i915_pmu_exit (void ) {}static inline void i915_pmu_register (struct drm_i915_private *i915) {}static inline void i915_pmu_unregister (struct drm_i915_private *i915) {}
drivers/gpu/drm/i915/selftests/i915_selftest.c +1 -1
@@ -187,7 +187,7 @@ int i915_mock_selftests(void) err =run_selftests (mock,NULL );if (err) { i915_selftest.mock = err; -return err; +return 1 ; }if (i915_selftest.mock <0 ) {
Signature · 1 line
2.31.1
Re: [PATCH 3/6] drm/i915: Use a table for i915_init/exit
Quoted 60 lines · Jason Ekstrand
If the driver was not fully loaded, we may still have globals lying around. If we don't tear those down in
i915_exit(), we'll leak a bunch of memory slabs. This can happen two ways:use_kms= false and if we've run mock selftests. In either case, we have an early exit fromi915_initwhich happens afteri915_globals_init()and we need to clean up those globals.The mock selftests case is especially sticky. The load isn't entirely a no-op. We actually do quite a bit inside those selftests including allocating a bunch of mock objects and running tests on them. Once all those tests are complete, we exit early from
i915_init(). Perviously,i915_init()would return a non-zero error code on failure and a zero error code on success. In the success case, we would get toi915_exit()and check i915_pci_driver.driver.owner to detect ifi915_initexited early and do nothing. In the failure case, we would faili915_init()but there would be no opportunity to clean up globals.The most annoying part is that you don't actually notice the failure as part of the self-tests since leaking a bit of memory, while bad, doesn't result in anything observable from userspace. Instead, the next time we load the driver (usually for next IGT test),
i915_globals_init()gets invoked again, we go to allocate a bunch of new memory slabs, those implicitly create debugfs entries, and debugfs warns that we're trying to create directories and files that already exist. Since this all happens as part of the next driver load, it shows up in the dmesg-warn of whatever IGT test ran after the mock selftests.While the obvious thing to do here might be to call
i915_globals_exit()after selftests, that's not actually safe. The dma-buf selftests calli915_gem_prime_exportwhich creates a file. We calldma_buf_put()on the resulting dmabuf which callsfput()on the file. However,fput()isn't immediate and gets flushed right before syscall returns. This means that all the fput()s from the selftests don't happen until right before the module load syscall used to fire off the selftests returns which is afteri915_init(). If we calli915_globals_exit()ini915_init()after selftests, we end up freeing slabs out from under objects which won't get released untilfput()is flushed at the end of the module load syscall.The solution here is to let
i915_init()return success early and detect the early success ini915_exit()and only tear down globals and nothing else. This way the module loads successfully, regardless of the success or failure of the tests. Because we've not enumerated any PCI devices, no device nodes are created and it's entirely useless from userspace. The only thing the module does at that point is hold on to a bit of memory until we unload it andi915_exit()is called. Importantly, this means that everything from our selftests has the ability to properly flush out betweeni915_init()andi915_exit()because there is at least one syscall boundary in between.In order to handle all the delicate init/exit cases, we convert the whole thing to a table of init/exit pairs and track the init status in the new
init_progressglobal. This allows us to ensure thati915_exit()always tears down exactly the things thati915_init()successfully initialized. We also allow early-exit ofi915_init()without failure by an init function returning > 0. This is useful for nomodeset, and selftests. For the mock selftests, we convert them to always return 1 so we get the desired behavior of the driver always succeeding to load the driver and then properly tearing down the partially loaded driver.
Quoted 3 lines
Signed-off-by Jason Ekstrand <[email protected]>Cc Daniel Vetter <[email protected]>Cc Tvrtko Ursulin <[email protected]>
g.l.o.r.i.o.u.s.
Quoted 232 lines
--- drivers/gpu/drm/i915/i915_pci.c | 104 ++++++++++++------ drivers/gpu/drm/i915/i915_perf.c | 3 +- drivers/gpu/drm/i915/i915_perf.h | 2 +- drivers/gpu/drm/i915/i915_pmu.c | 4 +- drivers/gpu/drm/i915/i915_pmu.h | 4 +- .../gpu/drm/i915/selftests/i915_selftest.c | 2 +- 6 files changed, 80 insertions(+), 39 deletions(-)drivers/gpu/drm/i915/i915_pci.c +71
-33@@ -1185,27 +1185,9 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static struct pci_driver i915_pci_driver = { - .name =DRIVER_NAME , - .id_table = pciidlist, - .probe = i915_pci_probe, - .remove = i915_pci_remove, - .shutdown = i915_pci_shutdown, - .driver.pm = &i915_pm_ops, -}; - -static int __init i915_init (void ) +static int i915_check_nomodeset (void ) {bool use_kms = true; -int err; - - err =i915_globals_init (); -if (err) -return err; - - err =i915_mock_selftests (); -if (err) -return err >0 ?0 : err;/* * Enable KMS by default, unless explicitly overriden by @@ -1222,31 +1204,87 @@ static int __init i915_init(void)if (!use_kms) {/* Silently fail loading to not upset userspace. */ DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 0 ; +return 1 ; } -i915_pmu_init (); +return 0 ; +} - err =pci_register_driver (&i915_pci_driver); -if (err) { -i915_pmu_exit (); -i915_globals_exit (); -return err; +static struct pci_driver i915_pci_driver = { + .name =DRIVER_NAME , + .id_table = pciidlist, + .probe = i915_pci_probe, + .remove = i915_pci_remove, + .shutdown = i915_pci_shutdown, + .driver.pm = &i915_pm_ops, +}; + +static int i915_register_pci_driver (void ) +{ +return pci_register_driver (&i915_pci_driver); +} + +static void i915_unregister_pci_driver (void ) +{ +pci_unregister_driver (&i915_pci_driver); +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { 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 }, +}; +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 ; + } } -i915_perf_sysctl_register (); + init_progress = i; +return 0 ; } static void __exit i915_exit(void) { -if (!i915_pci_driver.driver.owner) -return ; +int i; -i915_perf_sysctl_unregister (); -pci_unregister_driver (&i915_pci_driver); -i915_pmu_exit (); -i915_globals_exit (); +for (i = init_progress -1 ; i >=0 ; i--) { +if (init_funcs[i].exit) + init_funcs[i].exit (); + } }module_init (i915_init);drivers/gpu/drm/i915/i915_perf.c +2
-1@@ -4483,9 +4483,10 @@ static int destroy_config(int id, void *p, void *data)return 0 ; } -void i915_perf_sysctl_register (void ) +int i915_perf_sysctl_register (void ) { sysctl_header =register_sysctl_table (dev_root); +return 0 ; }void i915_perf_sysctl_unregister (void )drivers/gpu/drm/i915/i915_perf.h +1
-1@@ -23,7 +23,7 @@ void i915_perf_fini(struct drm_i915_private *i915);void i915_perf_register (struct drm_i915_private *i915);void i915_perf_unregister (struct drm_i915_private *i915);int i915_perf_ioctl_version (void ); -void i915_perf_sysctl_register (void ); +int i915_perf_sysctl_register (void );void i915_perf_sysctl_unregister (void ); int i915_perf_open_ioctl(struct drm_device *dev, void *data,drivers/gpu/drm/i915/i915_pmu.c +3
-1@@ -1088,7 +1088,7 @@ static int i915_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node)static enum cpuhp_state cpuhp_slot =CPUHP_INVALID ; -void i915_pmu_init (void ) +int i915_pmu_init (void ) {int ret;@@ -1101,6 +1101,8 @@ void i915_pmu_init(void) ret); else cpuhp_slot = ret; + +return 0 ; }void i915_pmu_exit (void )drivers/gpu/drm/i915/i915_pmu.h +2
-2@@ -147,14 +147,14 @@ struct i915_pmu { };#ifdef CONFIG_PERF_EVENTS -void i915_pmu_init (void ); +int i915_pmu_init (void );void i915_pmu_exit (void );void i915_pmu_register (struct drm_i915_private *i915);void i915_pmu_unregister (struct drm_i915_private *i915);void i915_pmu_gt_parked (struct drm_i915_private *i915);void i915_pmu_gt_unparked (struct drm_i915_private *i915);#else -static inline void i915_pmu_init (void ) {} +static inline int i915_pmu_init (void ) {return 0 ; }static inline void i915_pmu_exit (void ) {}static inline void i915_pmu_register (struct drm_i915_private *i915) {}static inline void i915_pmu_unregister (struct drm_i915_private *i915) {}drivers/gpu/drm/i915/selftests/i915_selftest.c +1
-1@@ -187,7 +187,7 @@ int i915_mock_selftests(void) err =run_selftests (mock,NULL );if (err) { i915_selftest.mock = err; -return err; +return 1 ; }if (i915_selftest.mock <0 ) {Signature · 1 line
2.31.1
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/6] drm/i915: Use a table for i915_init/exit
In reply to Jason EkstrandQuoted 164 lines · Jason Ekstrand
If the driver was not fully loaded, we may still have globals lying around. If we don't tear those down in
i915_exit(), we'll leak a bunch of memory slabs. This can happen two ways:use_kms= false and if we've run mock selftests. In either case, we have an early exit fromi915_initwhich happens afteri915_globals_init()and we need to clean up those globals.The mock selftests case is especially sticky. The load isn't entirely a no-op. We actually do quite a bit inside those selftests including allocating a bunch of mock objects and running tests on them. Once all those tests are complete, we exit early from
i915_init(). Perviously,i915_init()would return a non-zero error code on failure and a zero error code on success. In the success case, we would get toi915_exit()and check i915_pci_driver.driver.owner to detect ifi915_initexited early and do nothing. In the failure case, we would faili915_init()but there would be no opportunity to clean up globals.The most annoying part is that you don't actually notice the failure as part of the self-tests since leaking a bit of memory, while bad, doesn't result in anything observable from userspace. Instead, the next time we load the driver (usually for next IGT test),
i915_globals_init()gets invoked again, we go to allocate a bunch of new memory slabs, those implicitly create debugfs entries, and debugfs warns that we're trying to create directories and files that already exist. Since this all happens as part of the next driver load, it shows up in the dmesg-warn of whatever IGT test ran after the mock selftests.While the obvious thing to do here might be to call
i915_globals_exit()after selftests, that's not actually safe. The dma-buf selftests calli915_gem_prime_exportwhich creates a file. We calldma_buf_put()on the resulting dmabuf which callsfput()on the file. However,fput()isn't immediate and gets flushed right before syscall returns. This means that all the fput()s from the selftests don't happen until right before the module load syscall used to fire off the selftests returns which is afteri915_init(). If we calli915_globals_exit()ini915_init()after selftests, we end up freeing slabs out from under objects which won't get released untilfput()is flushed at the end of the module load syscall.The solution here is to let
i915_init()return success early and detect the early success ini915_exit()and only tear down globals and nothing else. This way the module loads successfully, regardless of the success or failure of the tests. Because we've not enumerated any PCI devices, no device nodes are created and it's entirely useless from userspace. The only thing the module does at that point is hold on to a bit of memory until we unload it andi915_exit()is called. Importantly, this means that everything from our selftests has the ability to properly flush out betweeni915_init()andi915_exit()because there is at least one syscall boundary in between.In order to handle all the delicate init/exit cases, we convert the whole thing to a table of init/exit pairs and track the init status in the new
init_progressglobal. This allows us to ensure thati915_exit()always tears down exactly the things thati915_init()successfully initialized. We also allow early-exit ofi915_init()without failure by an init function returning > 0. This is useful for nomodeset, and selftests. For the mock selftests, we convert them to always return 1 so we get the desired behavior of the driver always succeeding to load the driver and then properly tearing down the partially loaded driver.Signed-off-by Jason Ekstrand <[email protected]>Cc Daniel Vetter <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 104 ++++++++++++------ drivers/gpu/drm/i915/i915_perf.c | 3 +- drivers/gpu/drm/i915/i915_perf.h | 2 +- drivers/gpu/drm/i915/i915_pmu.c | 4 +- drivers/gpu/drm/i915/i915_pmu.h | 4 +- .../gpu/drm/i915/selftests/i915_selftest.c | 2 +- 6 files changed, 80 insertions(+), 39 deletions(-)drivers/gpu/drm/i915/i915_pci.c +46
-26@@ -1185,27 +1185,9 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static struct pci_driver i915_pci_driver = { - .name =DRIVER_NAME , - .id_table = pciidlist, - .probe = i915_pci_probe, - .remove = i915_pci_remove, - .shutdown = i915_pci_shutdown, - .driver.pm = &i915_pm_ops, -}; - -static int __init i915_init (void ) +static int i915_check_nomodeset (void ) {bool use_kms = true; -int err; - - err =i915_globals_init (); -if (err) -return err; - - err =i915_mock_selftests (); -if (err) -return err >0 ?0 : err;/* * Enable KMS by default, unless explicitly overriden by @@ -1222,31 +1204,87 @@ static int __init i915_init(void)if (!use_kms) {/* Silently fail loading to not upset userspace. */ DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 0 ; +return 1 ; } -i915_pmu_init (); +return 0 ; +} - err =pci_register_driver (&i915_pci_driver); -if (err) { -i915_pmu_exit (); -i915_globals_exit (); -return err; +static struct pci_driver i915_pci_driver = { + .name =DRIVER_NAME , + .id_table = pciidlist, + .probe = i915_pci_probe, + .remove = i915_pci_remove, + .shutdown = i915_pci_shutdown, + .driver.pm = &i915_pm_ops, +}; + +static int i915_register_pci_driver (void ) +{ +return pci_register_driver (&i915_pci_driver); +} + +static void i915_unregister_pci_driver (void ) +{ +pci_unregister_driver (&i915_pci_driver); +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { 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 }, +}; +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 ();
drivers/gpu/drm/i915/i915_pci.c static int __init i915_init(void) · line 1264
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +10
-0+ } +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);
I'm not completely happy with the subtlety of where the knowledge of who needs the module to remain loaded and why ends up. It's partly in the change of return code from i915_mock_selftests and partly here. But I don't have any better ideas, which wouldn't have downsides of their own, on how to express this cleanly so just passing grumbling.
I mean ideally it should be only that specific dma buf test case which sends out a specific return value requesting not to unload, when it knows it has used fput. But that would need the i915 selftests runner to accept the positive error and no idea if that would have some other consequences without going very deep.
Quoted 17 lines
drivers/gpu/drm/i915/i915_pci.c +10
-1+ +/* +* We don't want to advertise devices with an only +* partially initialized driver. +*/ +WARN_ON (i915_pci_driver.driver.owner); +break ; + } } -i915_perf_sysctl_register (); + init_progress = i; +return 0 ; } static void __exit i915_exit(void)
drivers/gpu/drm/i915/i915_pci.c static int __init i915_init(void) · line 1284
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +2
-6{ -if (!i915_pci_driver.driver.owner) -return ; +int i; -i915_perf_sysctl_unregister (); -pci_unregister_driver (&i915_pci_driver); -i915_pmu_exit (); -i915_globals_exit (); +for (i = init_progress -1 ; i >=0 ; i--) {
Perhaps GEM_BUG_ON(i >= ARRAY_SIZE(init_funcs)) here just in case?
Quoted 83 lines
drivers/gpu/drm/i915/i915_pci.c +3
-0+if (init_funcs[i].exit) + init_funcs[i].exit (); + } }module_init (i915_init);drivers/gpu/drm/i915/i915_perf.c +2
-1@@ -4483,9 +4483,10 @@ static int destroy_config(int id, void *p, void *data)return 0 ; } -void i915_perf_sysctl_register (void ) +int i915_perf_sysctl_register (void ) { sysctl_header =register_sysctl_table (dev_root); +return 0 ; }void i915_perf_sysctl_unregister (void )drivers/gpu/drm/i915/i915_perf.h +1
-1@@ -23,7 +23,7 @@ void i915_perf_fini(struct drm_i915_private *i915);void i915_perf_register (struct drm_i915_private *i915);void i915_perf_unregister (struct drm_i915_private *i915);int i915_perf_ioctl_version (void ); -void i915_perf_sysctl_register (void ); +int i915_perf_sysctl_register (void );void i915_perf_sysctl_unregister (void ); int i915_perf_open_ioctl(struct drm_device *dev, void *data,drivers/gpu/drm/i915/i915_pmu.c +3
-1@@ -1088,7 +1088,7 @@ static int i915_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node)static enum cpuhp_state cpuhp_slot =CPUHP_INVALID ; -void i915_pmu_init (void ) +int i915_pmu_init (void ) {int ret;@@ -1101,6 +1101,8 @@ void i915_pmu_init(void) ret); else cpuhp_slot = ret; + +return 0 ; }void i915_pmu_exit (void )drivers/gpu/drm/i915/i915_pmu.h +2
-2@@ -147,14 +147,14 @@ struct i915_pmu { };#ifdef CONFIG_PERF_EVENTS -void i915_pmu_init (void ); +int i915_pmu_init (void );void i915_pmu_exit (void );void i915_pmu_register (struct drm_i915_private *i915);void i915_pmu_unregister (struct drm_i915_private *i915);void i915_pmu_gt_parked (struct drm_i915_private *i915);void i915_pmu_gt_unparked (struct drm_i915_private *i915);#else -static inline void i915_pmu_init (void ) {} +static inline int i915_pmu_init (void ) {return 0 ; }static inline void i915_pmu_exit (void ) {}static inline void i915_pmu_register (struct drm_i915_private *i915) {}static inline void i915_pmu_unregister (struct drm_i915_private *i915) {}drivers/gpu/drm/i915/selftests/i915_selftest.c +0
-0
drivers/gpu/drm/i915/selftests/i915_selftest.c int i915_mock_selftests(void) · line 190
Quoted 5 lines
drivers/gpu/drm/i915/selftests/i915_selftest.c +1
-1@@ -187,7 +187,7 @@ int i915_mock_selftests(void) err =run_selftests (mock,NULL );if (err) { i915_selftest.mock = err; -return err; +return 1 ;
I checked igt_kselftest_execute and it looks like it will handle this change in behaviour so that's fine.
drivers/gpu/drm/i915/selftests/i915_selftest.c int i915_mock_selftests(void) · line 193
Quoted 4 lines
drivers/gpu/drm/i915/selftests/i915_selftest.c +0
-0}if (i915_selftest.mock <0 ) {
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/6] drm/i915: Use a table for i915_init/exit
Quoted 175 lines · Tvrtko Ursulin
Quoted 172 lines · Jason Ekstrand
If the driver was not fully loaded, we may still have globals lying around. If we don't tear those down in
i915_exit(), we'll leak a bunch of memory slabs. This can happen two ways:use_kms= false and if we've run mock selftests. In either case, we have an early exit fromi915_initwhich happens afteri915_globals_init()and we need to clean up those globals.The mock selftests case is especially sticky. The load isn't entirely a no-op. We actually do quite a bit inside those selftests including allocating a bunch of mock objects and running tests on them. Once all those tests are complete, we exit early from
i915_init(). Perviously,i915_init()would return a non-zero error code on failure and a zero error code on success. In the success case, we would get toi915_exit()and check i915_pci_driver.driver.owner to detect ifi915_initexited early and do nothing. In the failure case, we would faili915_init()but there would be no opportunity to clean up globals.The most annoying part is that you don't actually notice the failure as part of the self-tests since leaking a bit of memory, while bad, doesn't result in anything observable from userspace. Instead, the next time we load the driver (usually for next IGT test),
i915_globals_init()gets invoked again, we go to allocate a bunch of new memory slabs, those implicitly create debugfs entries, and debugfs warns that we're trying to create directories and files that already exist. Since this all happens as part of the next driver load, it shows up in the dmesg-warn of whatever IGT test ran after the mock selftests.While the obvious thing to do here might be to call
i915_globals_exit()after selftests, that's not actually safe. The dma-buf selftests calli915_gem_prime_exportwhich creates a file. We calldma_buf_put()on the resulting dmabuf which callsfput()on the file. However,fput()isn't immediate and gets flushed right before syscall returns. This means that all the fput()s from the selftests don't happen until right before the module load syscall used to fire off the selftests returns which is afteri915_init(). If we calli915_globals_exit()ini915_init()after selftests, we end up freeing slabs out from under objects which won't get released untilfput()is flushed at the end of the module load syscall.The solution here is to let
i915_init()return success early and detect the early success ini915_exit()and only tear down globals and nothing else. This way the module loads successfully, regardless of the success or failure of the tests. Because we've not enumerated any PCI devices, no device nodes are created and it's entirely useless from userspace. The only thing the module does at that point is hold on to a bit of memory until we unload it andi915_exit()is called. Importantly, this means that everything from our selftests has the ability to properly flush out betweeni915_init()andi915_exit()because there is at least one syscall boundary in between.In order to handle all the delicate init/exit cases, we convert the whole thing to a table of init/exit pairs and track the init status in the new
init_progressglobal. This allows us to ensure thati915_exit()always tears down exactly the things thati915_init()successfully initialized. We also allow early-exit ofi915_init()without failure by an init function returning > 0. This is useful for nomodeset, and selftests. For the mock selftests, we convert them to always return 1 so we get the desired behavior of the driver always succeeding to load the driver and then properly tearing down the partially loaded driver.Signed-off-by Jason Ekstrand <[email protected]>Cc Daniel Vetter <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 104 ++++++++++++------ drivers/gpu/drm/i915/i915_perf.c | 3 +- drivers/gpu/drm/i915/i915_perf.h | 2 +- drivers/gpu/drm/i915/i915_pmu.c | 4 +- drivers/gpu/drm/i915/i915_pmu.h | 4 +- .../gpu/drm/i915/selftests/i915_selftest.c | 2 +- 6 files changed, 80 insertions(+), 39 deletions(-)drivers/gpu/drm/i915/i915_pci.c +54
-26@@ -1185,27 +1185,9 @@ static void i915_pci_shutdown(struct pci_dev *pdev)i915_driver_shutdown (i915); } -static struct pci_driver i915_pci_driver = { - .name =DRIVER_NAME , - .id_table = pciidlist, - .probe = i915_pci_probe, - .remove = i915_pci_remove, - .shutdown = i915_pci_shutdown, - .driver.pm = &i915_pm_ops, -}; - -static int __init i915_init (void ) +static int i915_check_nomodeset (void ) {bool use_kms = true; -int err; - - err =i915_globals_init (); -if (err) -return err; - - err =i915_mock_selftests (); -if (err) -return err >0 ?0 : err;/* * Enable KMS by default, unless explicitly overriden by @@ -1222,31 +1204,87 @@ static int __init i915_init(void)if (!use_kms) {/* Silently fail loading to not upset userspace. */ DRM_DEBUG_DRIVER ("KMS disabled.\n" ); -return 0 ; +return 1 ; } -i915_pmu_init (); +return 0 ; +} - err =pci_register_driver (&i915_pci_driver); -if (err) { -i915_pmu_exit (); -i915_globals_exit (); -return err; +static struct pci_driver i915_pci_driver = { + .name =DRIVER_NAME , + .id_table = pciidlist, + .probe = i915_pci_probe, + .remove = i915_pci_remove, + .shutdown = i915_pci_shutdown, + .driver.pm = &i915_pm_ops, +}; + +static int i915_register_pci_driver (void ) +{ +return pci_register_driver (&i915_pci_driver); +} + +static void i915_unregister_pci_driver (void ) +{ +pci_unregister_driver (&i915_pci_driver); +} + +static const struct { +int (*init)(void ); +void (*exit)(void ); +} init_funcs[] = { + { 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 }, +}; +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.
Quoted 8 lines
drivers/gpu/drm/i915/i915_pci.c static int __init i915_init(void) · line 1264
Quoted 2 lines
drivers/gpu/drm/i915/i915_pci.c +2
-0+*/ +WARN_ON (init_funcs[i].exit);I'm not completely happy with the subtlety of where the knowledge of who needs the module to remain loaded and why ends up. It's partly in the change of return code from
i915_mock_selftestsand partly here. But I don't have any better ideas, which wouldn't have downsides of their own, on how to express this cleanly so just passing grumbling.
I can't say I really like it either which is why I threw in this WARN_ON and comment. This really should be a quite exceptional case.
Quoted 28 lines
I mean ideally it should be only that specific dma buf test case which sends out a specific return value requesting not to unload, when it knows it has used fput. But that would need the i915 selftests runner to accept the positive error and no idea if that would have some other consequences without going very deep.
Quoted 22 lines
drivers/gpu/drm/i915/i915_pci.c +11
-3+ +/* +* We don't want to advertise devices with an only +* partially initialized driver. +*/ +WARN_ON (i915_pci_driver.driver.owner); +break ; + } } -i915_perf_sysctl_register (); + init_progress = i; +return 0 ; } static void __exit i915_exit(void) { -if (!i915_pci_driver.driver.owner) -return ; +int i;
Quoted 7 lines
drivers/gpu/drm/i915/i915_pci.c static int __init i915_init(void) · line 1284
Quoted 5 lines
drivers/gpu/drm/i915/i915_pci.c +1
-4-i915_perf_sysctl_unregister (); -pci_unregister_driver (&i915_pci_driver); -i915_pmu_exit (); -i915_globals_exit (); +for (i = init_progress -1 ; i >=0 ; i--) {Perhaps
GEM_BUG_ON(i >= ARRAY_SIZE(init_funcs))here just in case?
Can do.
--Jason
Quoted 100 lines
Quoted 83 lines
drivers/gpu/drm/i915/i915_pci.c +3
-0+if (init_funcs[i].exit) + init_funcs[i].exit (); + } }module_init (i915_init);drivers/gpu/drm/i915/i915_perf.c +2
-1@@ -4483,9 +4483,10 @@ static int destroy_config(int id, void *p, void *data)return 0 ; } -void i915_perf_sysctl_register (void ) +int i915_perf_sysctl_register (void ) { sysctl_header =register_sysctl_table (dev_root); +return 0 ; }void i915_perf_sysctl_unregister (void )drivers/gpu/drm/i915/i915_perf.h +1
-1@@ -23,7 +23,7 @@ void i915_perf_fini(struct drm_i915_private *i915);void i915_perf_register (struct drm_i915_private *i915);void i915_perf_unregister (struct drm_i915_private *i915);int i915_perf_ioctl_version (void ); -void i915_perf_sysctl_register (void ); +int i915_perf_sysctl_register (void );void i915_perf_sysctl_unregister (void ); int i915_perf_open_ioctl(struct drm_device *dev, void *data,drivers/gpu/drm/i915/i915_pmu.c +3
-1@@ -1088,7 +1088,7 @@ static int i915_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node)static enum cpuhp_state cpuhp_slot =CPUHP_INVALID ; -void i915_pmu_init (void ) +int i915_pmu_init (void ) {int ret;@@ -1101,6 +1101,8 @@ void i915_pmu_init(void) ret); else cpuhp_slot = ret; + +return 0 ; }void i915_pmu_exit (void )drivers/gpu/drm/i915/i915_pmu.h +2
-2@@ -147,14 +147,14 @@ struct i915_pmu { };#ifdef CONFIG_PERF_EVENTS -void i915_pmu_init (void ); +int i915_pmu_init (void );void i915_pmu_exit (void );void i915_pmu_register (struct drm_i915_private *i915);void i915_pmu_unregister (struct drm_i915_private *i915);void i915_pmu_gt_parked (struct drm_i915_private *i915);void i915_pmu_gt_unparked (struct drm_i915_private *i915);#else -static inline void i915_pmu_init (void ) {} +static inline int i915_pmu_init (void ) {return 0 ; }static inline void i915_pmu_exit (void ) {}static inline void i915_pmu_register (struct drm_i915_private *i915) {}static inline void i915_pmu_unregister (struct drm_i915_private *i915) {}drivers/gpu/drm/i915/selftests/i915_selftest.c +0
-0drivers/gpu/drm/i915/selftests/i915_selftest.c int i915_mock_selftests(void) · line 190
Quoted 5 lines
drivers/gpu/drm/i915/selftests/i915_selftest.c +1
-1@@ -187,7 +187,7 @@ int i915_mock_selftests(void) err =run_selftests (mock,NULL );if (err) { i915_selftest.mock = err; -return err; +return 1 ;I checked
igt_kselftest_executeand it looks like it will handle this change in behaviour so that's fine.drivers/gpu/drm/i915/selftests/i915_selftest.c int i915_mock_selftests(void) · line 193
Quoted 4 lines
drivers/gpu/drm/i915/selftests/i915_selftest.c +0
-0}if (i915_selftest.mock <0 ) {Regards,
Tvrtko
PATCH 4/6 drm/ttm: Force re-init if ttm_global_init() fails
In reply to Jason EkstrandIf we have a failure, decrement the reference count so that the next call to ttm_global_init() will actually do something instead of assume everything is all set up.
--- drivers/gpu/drm/ttm/ttm_device.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/ttm/ttm_device.c +2 -0
@@ -100,6 +100,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret) + --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);return ret; }
Signature · 1 line
2.31.1
Re: [PATCH 4/6] drm/ttm: Force re-init if ttm_global_init() fails
Am 20.07.21 um 20:13 schrieb Jason Ekstrand:
Quoted 7 lines
If we have a failure, decrement the reference count so that the next call to
ttm_global_init()will actually do something instead of assume everything is all set up.Signed-off-by Jason Ekstrand <[email protected]>Fixes 62b53b37e4b1 ("drm/ttm: use a static ttm_bo_global instance")Reviewed-by Christian König <[email protected]>
I've just pushed this to drm-misc-fixes.
Thanks,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/ttm/ttm_device.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/ttm/ttm_device.c +0
-0
drivers/gpu/drm/ttm/ttm_device.c static int ttm_global_init(void) · line 107
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_device.c +2
-0@@ -100,6 +100,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret) + --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);return ret; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 4/6] drm/ttm: Force re-init if ttm_global_init() fails
Quoted 10 lines · Christian König
Am 20.07.21 um 20:13 schrieb Jason Ekstrand:
Quoted 7 lines
If we have a failure, decrement the reference count so that the next call to
ttm_global_init()will actually do something instead of assume everything is all set up.Signed-off-by Jason Ekstrand <[email protected]>Fixes 62b53b37e4b1 ("drm/ttm: use a static ttm_bo_global instance")Reviewed-by Christian König <[email protected]>I've just pushed this to drm-misc-fixes.
Did you see patch 5/6 here which is also touching ttm? -Daniel
Quoted 26 lines
Thanks,
Christian.Quoted 9 lines
--- drivers/gpu/drm/ttm/ttm_device.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/ttm/ttm_device.c +0
-0drivers/gpu/drm/ttm/ttm_device.c static int ttm_global_init(void) · line 107
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_device.c +2
-0@@ -100,6 +100,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret) + --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);return ret; }_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Re: [Intel-gfx] [PATCH 4/6] drm/ttm: Force re-init if ttm_global_init() fails
Am 21.07.21 um 11:06 schrieb Daniel Vetter:
Quoted 7 lines
Quoted 5 lines · Christian König
Am 20.07.21 um 20:13 schrieb Jason Ekstrand:
Quoted 4 lines
If we have a failure, decrement the reference count so that the next call to
ttm_global_init()will actually do something instead of assume everything is all set up.
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
Signed-off-by Jason Ekstrand <[email protected]>Fixes 62b53b37e4b1 ("drm/ttm: use a static ttm_bo_global instance")Reviewed-by Christian König <[email protected]>I've just pushed this to drm-misc-fixes.
Did you see patch 5/6 here which is also touching ttm?
Nope, neither with my AMD nor with my GMail account.
Looks like something is wrong with the distribution of mails over the mailing list for a few days now.
Going to double check patchwork.
Christian.
Quoted 28 lines
-Daniel
Quoted 24 lines
Thanks,
Christian.Quoted 9 lines
--- drivers/gpu/drm/ttm/ttm_device.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/ttm/ttm_device.c +0
-0drivers/gpu/drm/ttm/ttm_device.c static int ttm_global_init(void) · line 107
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_device.c +2
-0@@ -100,6 +100,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret) + --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);return ret; }_______________________________________________
Intel-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fintel-gfx&data=04%7C01%7Cchristian.koenig%40amd.com%7C05ff233273a54b987b6b08d94c26d0ac%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637624551867495341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=70RYQ49Q58VED5jMpJ%2FW9Vy5imUndghFS0tQWIeD7dk%3D&reserved=0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 4/6] drm/ttm: Force re-init if ttm_global_init() fails
Quoted 11 lines · Christian König
Am 21.07.21 um 11:06 schrieb Daniel Vetter:
Quoted 10 lines
Quoted 8 lines · Christian König
Am 20.07.21 um 20:13 schrieb Jason Ekstrand:
Quoted 7 lines
If we have a failure, decrement the reference count so that the next call to
ttm_global_init()will actually do something instead of assume everything is all set up.Signed-off-by Jason Ekstrand <[email protected]>Fixes 62b53b37e4b1 ("drm/ttm: use a static ttm_bo_global instance")Reviewed-by Christian König <[email protected]>
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
I've just pushed this to drm-misc-fixes.
Did you see patch 5/6 here which is also touching ttm?
Nope, neither with my AMD nor with my GMail account.
Looks like something is wrong with the distribution of mails over the mailing list for a few days now.
Ping admins on #freedesktop on oftc, they can usually chase where mails are stuck. It works all fine for me, but I've seen you complain that you didn't get all the msm patches too, so figured better I highlight in case it's lost.
Quoted 1 line
Going to double check patchwork.
https://lore.kernel.org/dri-devel/[email protected]/
Cheers, Daniel
Quoted 32 lines
Christian.
Quoted 28 lines
-Daniel
Quoted 24 lines
Thanks,
Christian.Quoted 9 lines
--- drivers/gpu/drm/ttm/ttm_device.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/ttm/ttm_device.c +0
-0drivers/gpu/drm/ttm/ttm_device.c static int ttm_global_init(void) · line 107
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_device.c +2
-0@@ -100,6 +100,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret) + --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);return ret; }_______________________________________________
Intel-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fintel-gfx&data=04%7C01%7Cchristian.koenig%40amd.com%7C05ff233273a54b987b6b08d94c26d0ac%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637624551867495341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=70RYQ49Q58VED5jMpJ%2FW9Vy5imUndghFS0tQWIeD7dk%3D&reserved=0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/6 drm/ttm: Initialize debugfs from ttm_global_init()
In reply to Jason EkstrandWe create a bunch of debugfs entries as a side-effect of ttm_global_init() and then never clean them up. This isn't usually a problem because we free the whole debugfs directory on module unload. However, if the global reference count ever goes to zero and then ttm_global_init() is called again, we'll re-create those debugfs entries and debugfs will complain in dmesg that we're creating entries that already exist. This patch fixes this problem by changing the lifetime of the whole TTM debugfs directory to match that of the TTM global state.
--- drivers/gpu/drm/ttm/ttm_device.c | 12 ++++++++++++ drivers/gpu/drm/ttm/ttm_module.c | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-)
drivers/gpu/drm/ttm/ttm_device.c +12 -0
@@ -44,6 +44,8 @@ static unsigned ttm_glob_use_count;struct ttm_global ttm_glob;EXPORT_SYMBOL (ttm_glob); +struct dentry *ttm_debugfs_root; +static void ttm_global_release (void ) {struct ttm_global *glob = &ttm_glob;
@@ -53,6 +55,7 @@ static void ttm_global_release(void) goto out;ttm_pool_mgr_fini (); +debugfs_remove (ttm_debugfs_root);__free_page (glob->dummy_read_page);memset (glob,0 ,sizeof (*glob));
@@ -73,6 +76,13 @@ static int ttm_global_init(void)si_meminfo (&si); + ttm_debugfs_root =debugfs_create_dir ("ttm" ,NULL ); +if (IS_ERR (ttm_debugfs_root)) { + ret =PTR_ERR (ttm_debugfs_root); + ttm_debugfs_root =NULL ; + goto out; + } +/* Limit the number of pages in the pool to about 50% of the total * system memory. */
@@ -100,6 +110,8 @@ static int ttm_global_init(void)debugfs_create_atomic_t ("buffer_objects" ,0444 , ttm_debugfs_root, &glob->bo_count); out: +if (ret && ttm_debugfs_root) +debugfs_remove (ttm_debugfs_root);if (ret) --ttm_glob_use_count;mutex_unlock (&ttm_global_mutex);
drivers/gpu/drm/ttm/ttm_module.c +0 -16
@@ -72,22 +72,6 @@ pgprot_t ttm_prot_from_caching(enum ttm_caching caching, pgprot_t tmp)return tmp; } -struct dentry *ttm_debugfs_root; - -static int __init ttm_init (void ) -{ - ttm_debugfs_root =debugfs_create_dir ("ttm" ,NULL ); -return 0 ; -} - -static void __exit ttm_exit(void) -{ -debugfs_remove (ttm_debugfs_root); -} - -module_init (ttm_init); -module_exit (ttm_exit); -MODULE_AUTHOR ("Thomas Hellstrom, Jerome Glisse" );MODULE_DESCRIPTION ("TTM memory manager subsystem (for DRM device)" );MODULE_LICENSE ("GPL and additional rights" );
Signature · 1 line
2.31.1
PATCH 6/6 drm/i915: Make the kmem slab for i915_buddy_block a global
In reply to Jason EkstrandThere's no reason that I can tell why this should be per-i915_buddy_mm and doing so causes KMEM_CACHE to throw dmesg warnings because it tries to create a debugfs entry with the name i915_buddy_block multiple times. We could handle this by carefully giving each slab its own name but that brings its own pain because then we have to store that string somewhere and manage the lifetimes of the different slabs. The most likely outcome would be a global atomic which we increment to get a new name or something like that.
The much easier solution is to use the i915_globals system like we do for every other slab in i915. This ensures that we have exactly one of them for each i915 driver load and it gets neatly created on module load and destroyed on module unload. Using the globals system also means that its now tied into the shrink handler so we can properly respond to low-memory situations.
--- drivers/gpu/drm/i915/i915_buddy.c | 44 ++++++++++++++++++++++------- drivers/gpu/drm/i915/i915_buddy.h | 3 +- drivers/gpu/drm/i915/i915_globals.c | 2 ++ 3 files changed, 38 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/i915_buddy.c +34 -10
@@ -8,8 +8,14 @@#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 i915_buddy_block *i915_block_alloc(struct i915_buddy_mm *mm, struct i915_buddy_block *parent, unsigned int order,
@@ -19,7 +25,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 (mm->slab_blocks,GFP_KERNEL ); + block =kmem_cache_zalloc (global.slab_blocks,GFP_KERNEL );if (!block)return NULL ;
@@ -34,7 +40,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 (mm->slab_blocks, block); +kmem_cache_free (global.slab_blocks, block); }static void mark_allocated (struct i915_buddy_block *block)
@@ -85,15 +91,11 @@ int i915_buddy_init(struct i915_buddy_mm *mm, u64 size, u64 chunk_size)GEM_BUG_ON (mm->max_order >I915_BUDDY_MAX_ORDER ); - mm->slab_blocks =KMEM_CACHE (i915_buddy_block,SLAB_HWCACHE_ALIGN ); -if (!mm->slab_blocks) -return -ENOMEM ; - mm->free_list =kmalloc_array (mm->max_order +1 ,sizeof (struct list_head ),GFP_KERNEL );if (!mm->free_list) - goto out_destroy_slab; +return -ENOMEM ;for (i =0 ; i <= mm->max_order; ++i)INIT_LIST_HEAD (&mm->free_list[i]);
@@ -145,8 +147,6 @@ int i915_buddy_init(struct i915_buddy_mm *mm, u64 size, u64 chunk_size)kfree (mm->roots); out_free_list:kfree (mm->free_list); -out_destroy_slab: -kmem_cache_destroy (mm->slab_blocks);return -ENOMEM ; }
@@ -161,7 +161,6 @@ void i915_buddy_fini(struct i915_buddy_mm *mm)kfree (mm->roots);kfree (mm->free_list); -kmem_cache_destroy (mm->slab_blocks); } static int split_block(struct i915_buddy_mm *mm,
@@ -410,3 +409,28 @@ int i915_buddy_alloc_range(struct i915_buddy_mm *mm,#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )#include "selftests/i915_buddy.c" #endif + +static void i915_global_buddy_shrink (void ) +{ +kmem_cache_shrink (global.slab_blocks); +} + +static void i915_global_buddy_exit (void ) +{ +kmem_cache_destroy (global.slab_blocks); +} + +static struct i915_global_buddy global = { { + .shrink = i915_global_buddy_shrink, + .exit = i915_global_buddy_exit, +} }; + +int __init i915_global_buddy_init (void ) +{ + global.slab_blocks =KMEM_CACHE (i915_buddy_block,0 ); +if (!global.slab_blocks) +return -ENOMEM ; + +i915_global_register (&global.base); +return 0 ; +}
drivers/gpu/drm/i915/i915_buddy.h +2 -1
@@ -47,7 +47,6 @@ struct i915_buddy_block {* i915_buddy_alloc* and i915_buddy_free* should suffice. */ struct i915_buddy_mm { -struct kmem_cache *slab_blocks;/* Maintain a free list for each order. */ struct list_head *free_list;
@@ -130,4 +129,6 @@ 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 ); +#endif
drivers/gpu/drm/i915/i915_globals.c +2 -0
@@ -8,6 +8,7 @@#include <linux/workqueue.h> #include "i915_active.h" +#include "i915_buddy.h" #include "gem/i915_gem_context.h" #include "gem/i915_gem_object.h" #include "i915_globals.h"
@@ -87,6 +88,7 @@ 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, i915_global_objects_init,
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Fix the debugfs splat from mock selftests (rev2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: Fix the debugfs splat from mock selftests (rev2)
URL : https://patchwork.freedesktop.org/series/92729/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 531e0b47d229 drm/i915: Call i915_globals_exit() after i915_pmu_exit() ae1ccb8d0035 drm/i915: Call i915_globals_exit() if pci_register_device() fails 580e7d3f4cb5 drm/i915: Use a table for i915_init/exit -:140: WARNING:LEADING_SPACE: please, no spaces at the start of a line #140: FILE: drivers/gpu/drm/i915/i915_pci.c:1233: + int (*init)(void);$
-:141: WARNING:LEADING_SPACE: please, no spaces at the start of a line #141: FILE: drivers/gpu/drm/i915/i915_pci.c:1234:
+ void (*exit)(void);$
-:150: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #150: FILE: drivers/gpu/drm/i915/i915_pci.c:1243:
+};
+static int init_progress;
total: 0 errors, 2 warnings, 1 checks, 188 lines checked 79c110dc83b7 drm/ttm: Force re-init if ttm_global_init() fails 59dff2f3d2db drm/ttm: Initialize debugfs from ttm_global_init() 54ab43a0264b drm/i915: Make the kmem slab for i915_buddy_block a global
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Fix the debugfs splat from mock selftests (rev2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: Fix the debugfs splat from mock selftests (rev2)
URL : https://patchwork.freedesktop.org/series/92729/
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:1896:21: expected struct i915_vma *[assigned] vma +drivers/gpu/drm/i915/display/intel_display.c:1896:21: got void [noderef] __iomem *[assigned] iomem +drivers/gpu/drm/i915/display/intel_display.c:1896:21: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gem/i915_gem_context.c:1412:34: expected struct i915_address_space *vm +drivers/gpu/drm/i915/gem/i915_gem_context.c:1412:34: got struct i915_address_space [noderef] __rcu *vm +drivers/gpu/drm/i915/gem/i915_gem_context.c:1412: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:1396: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:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/ttm/ttm_device.c:144:5: warning: context imbalance in 'ttm_device_swapout' - wrong count at exit +./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
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for Fix the debugfs splat from mock selftests (rev2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: Fix the debugfs splat from mock selftests (rev2)
URL : https://patchwork.freedesktop.org/series/92729/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'jump_whitelist' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'shadow_map' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'batch_map' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Function parameter or member 'trampoline' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'jump_whitelist' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'shadow_map' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1436: warning: Excess function parameter 'batch_map' description in 'intel_engine_cmd_parser'
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Fix the debugfs splat from mock selftests (rev2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: Fix the debugfs splat from mock selftests (rev2)
URL : https://patchwork.freedesktop.org/series/92729/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10358 -> Patchwork_20655
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/index.html
Known issues
------------
Here are the changes found in Patchwork_20655 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@semaphore:
- fi-bsw-nick: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/fi-bsw-nick/igt@amdgpu/[email protected]
* igt@gem_exec_gttfill@basic:
- fi-bsw-n3050: NOTRUN -> [SKIP][2] ([fdo#109271])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/fi-bsw-n3050/igt@[email protected]
* igt@gem_exec_suspend@basic-s3:
- fi-bsw-n3050: NOTRUN -> [INCOMPLETE][3] ([i915#3159])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/fi-bsw-n3050/igt@[email protected]
* igt@runner@aborted:
- fi-bdw-5557u: NOTRUN -> [FAIL][4] ([i915#1602] / [i915#2029])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/fi-bdw-5557u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [INCOMPLETE][5] ([i915#2782] / [i915#2940]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/fi-bsw-nick/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/fi-bsw-nick/igt@i915_selftest@[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
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3159]: https://gitlab.freedesktop.org/drm/intel/issues/3159
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541
Participating hosts (37 -> 35)
------------------------------
Additional (1): fi-bsw-n3050
Missing (3): fi-ilk-m540 fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_10358 -> Patchwork_20655
CI-20190529: 20190529
CI_DRM_10358: 76ff1f71cd0e2e203003b84881e41bf7be9f0e82 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6146: 6caef22e4aafed275771f564d4ea4cab09896ebc @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20655: 54ab43a0264bebb78d6ce070d197572bc2cdc7c1 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
54ab43a0264b drm/i915: Make the kmem slab for i915_buddy_block a global 59dff2f3d2db drm/ttm: Initialize debugfs from ttm_global_init() 79c110dc83b7 drm/ttm: Force re-init if ttm_global_init() fails 580e7d3f4cb5 drm/i915: Use a table for i915_init/exit ae1ccb8d0035 drm/i915: Call i915_globals_exit() if pci_register_device() fails 531e0b47d229 drm/i915: Call i915_globals_exit() after i915_pmu_exit()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/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 Fix the debugfs splat from mock selftests (rev2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: Fix the debugfs splat from mock selftests (rev2)
URL : https://patchwork.freedesktop.org/series/92729/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10358_full -> Patchwork_20655_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20655_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20655_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_20655_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_ctx_freq@sysfs:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb7/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20655_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@feature_discovery@display-4x:
- shard-tglb: NOTRUN -> [SKIP][3] ([i915#1839])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb6/igt@[email protected]
* igt@gem_ctx_persistence@engines-mixed:
- shard-snb: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#1099]) +4 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-snb2/igt@[email protected]
* igt@gem_ctx_persistence@many-contexts:
- shard-tglb: [PASS][5] -> [FAIL][6] ([i915#2410])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [PASS][7] -> [FAIL][8] ([i915#2846])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl7/igt@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [PASS][9] -> [FAIL][10] ([i915#2842]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl2/igt@gem_exec_fair@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb6/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk7/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_schedule@smoketest-all:
- shard-glk: [PASS][15] -> [DMESG-WARN][16] ([i915#118] / [i915#95])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk5/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk2/igt@[email protected]
* igt@gem_exec_suspend@basic-s3:
- shard-kbl: [PASS][17] -> [DMESG-WARN][18] ([i915#180]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl3/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-odd:
- shard-iclb: [PASS][19] -> [FAIL][20] ([i915#307])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb7/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb1/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-iclb: NOTRUN -> [WARN][21] ([i915#2658])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-apl: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl1/igt@[email protected]
* igt@gem_render_copy@y-tiled-to-vebox-linear:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#768])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-iclb: NOTRUN -> [FAIL][24] ([i915#3318])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@[email protected]
- shard-tglb: NOTRUN -> [FAIL][25] ([i915#3318])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][26] ([i915#3318])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl9/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#3777])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-skl: NOTRUN -> [FAIL][28] ([i915#3722])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl4/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-iclb: NOTRUN -> [SKIP][29] ([fdo#110723])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
- shard-tglb: NOTRUN -> [SKIP][30] ([fdo#111615])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs:
- shard-snb: NOTRUN -> [SKIP][31] ([fdo#109271]) +360 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-snb2/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs.html
* igt@kms_chamelium@dp-hpd-for-each-pipe:
- shard-apl: NOTRUN -> [SKIP][32] ([fdo#109271] / [fdo#111827]) +17 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl7/igt@[email protected]
* igt@kms_chamelium@vga-hpd-after-suspend:
- shard-iclb: NOTRUN -> [SKIP][33] ([fdo#109284] / [fdo#111827]) +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-0-25:
- shard-tglb: NOTRUN -> [SKIP][34] ([fdo#109284] / [fdo#111827])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes:
- shard-skl: NOTRUN -> [SKIP][35] ([fdo#109271] / [fdo#111827]) +3 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl4/igt@[email protected]
- shard-snb: NOTRUN -> [SKIP][36] ([fdo#109271] / [fdo#111827]) +20 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-snb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-32x10-sliding:
- shard-tglb: NOTRUN -> [SKIP][37] ([i915#3359])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x64-random:
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#109278]) +19 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][39] ([fdo#109274] / [fdo#109278])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [PASS][40] -> [INCOMPLETE][41] ([i915#180])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-apl3/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl2/igt@[email protected]
* igt@kms_flip@2x-flip-vs-modeset-vs-hang:
- shard-iclb: NOTRUN -> [SKIP][42] ([fdo#109274])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-dp1:
- shard-kbl: [PASS][43] -> [FAIL][44] ([i915#79])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl6/igt@kms_flip@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-apl: [PASS][45] -> [DMESG-WARN][46] ([i915#180]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-apl8/igt@kms_flip@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@b-edp1:
- shard-skl: [PASS][47] -> [INCOMPLETE][48] ([i915#146] / [i915#198])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl6/igt@kms_flip@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-apl: NOTRUN -> [DMESG-WARN][49] ([i915#180]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl6/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check@a-edp1:
- shard-skl: [PASS][50] -> [FAIL][51] ([i915#2122])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl8/igt@kms_flip@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-msflip-blt:
- shard-tglb: NOTRUN -> [SKIP][52] ([fdo#111825]) +6 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-move:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109280]) +10 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [PASS][54] -> [FAIL][55] ([i915#1188])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl9/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl7/igt@[email protected]
* igt@kms_hdr@static-toggle-suspend:
- shard-iclb: NOTRUN -> [SKIP][56] ([i915#1187])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#533]) +2 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][58] ([fdo#108145] / [i915#265]) +3 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][59] ([i915#265]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][60] -> [FAIL][61] ([fdo#108145] / [i915#265]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl2/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl2/igt@[email protected]
* igt@kms_plane_lowres@pipe-b-tiling-none:
- shard-iclb: NOTRUN -> [SKIP][62] ([i915#3536])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-skl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#658])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-1:
- shard-apl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#658]) +4 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl1/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-iclb: NOTRUN -> [SKIP][65] ([fdo#109441])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@kms_psr@psr2_primary_mmap_gtt.html
* igt@kms_psr@psr2_sprite_blt:
- shard-tglb: NOTRUN -> [FAIL][66] ([i915#132] / [i915#3467])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][67] -> [SKIP][68] ([fdo#109441]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb8/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_vblank@pipe-d-wait-forked-hang:
- shard-apl: NOTRUN -> [SKIP][69] ([fdo#109271]) +205 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl6/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-apl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#2437]) +1 similar issue
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl7/igt@[email protected]
* igt@nouveau_crc@pipe-d-ctx-flip-detection:
- shard-skl: NOTRUN -> [SKIP][71] ([fdo#109271]) +54 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl8/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-apl: [PASS][72] -> [FAIL][73] ([i915#1542])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-apl2/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl3/igt@[email protected]
* igt@prime_vgem@coherency-gtt:
- shard-tglb: NOTRUN -> [SKIP][74] ([fdo#111656])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][75] ([fdo#109292])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@[email protected]
* igt@sysfs_clients@fair-1:
- shard-apl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2994]) +1 similar issue
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl7/igt@[email protected]
* igt@sysfs_clients@sema-10:
- shard-iclb: NOTRUN -> [SKIP][77] ([i915#2994])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb7/igt@[email protected]
* igt@sysfs_clients@sema-25:
- shard-skl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#2994])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl4/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_persistence@legacy-engines-hang@bsd:
- {shard-rkl}: [FAIL][79] ([i915#2410]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@gem_ctx_persistence@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@gem_ctx_persistence@[email protected]
* igt@gem_eio@reset-stress:
- {shard-rkl}: [FAIL][81] ([i915#3115]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][83] ([i915#2369] / [i915#3063] / [i915#3648]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb5/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb1/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][85] ([i915#2846]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk1/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk4/igt@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-glk: [FAIL][87] ([i915#2842]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk4/igt@gem_exec_fair@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [FAIL][89] ([i915#2842]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl7/igt@gem_exec_fair@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][91] ([i915#2842]) -> [PASS][92] +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb5/igt@gem_exec_fair@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@i915_module_load@reload:
- shard-skl: [DMESG-WARN][93] ([i915#1982]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl4/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl9/igt@[email protected]
* igt@i915_selftest@mock@dmabuf:
- shard-iclb: [DMESG-WARN][95] ([i915#3746]) -> [PASS][96] +17 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb2/igt@i915_selftest@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb3/igt@i915_selftest@[email protected]
* igt@i915_selftest@mock@hugepages:
- {shard-rkl}: [DMESG-WARN][97] ([i915#3746]) -> [PASS][98] +17 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-6/igt@i915_selftest@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@i915_selftest@[email protected]
* igt@i915_selftest@mock@objects:
- shard-skl: [DMESG-WARN][99] ([i915#3746]) -> [PASS][100] +17 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl9/igt@i915_selftest@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl7/igt@i915_selftest@[email protected]
- shard-tglb: [DMESG-WARN][101] ([i915#3746]) -> [PASS][102] +17 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-tglb3/igt@i915_selftest@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-tglb2/igt@i915_selftest@[email protected]
* igt@i915_selftest@mock@requests:
- shard-kbl: [DMESG-WARN][103] ([i915#3746]) -> [PASS][104] +17 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-kbl7/igt@i915_selftest@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-kbl1/igt@i915_selftest@[email protected]
* igt@i915_selftest@mock@uncore:
- shard-glk: [DMESG-WARN][105] ([i915#3746]) -> [PASS][106] +17 similar issues
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk6/igt@i915_selftest@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk2/igt@i915_selftest@[email protected]
* igt@i915_selftest@mock@vma:
- shard-snb: [DMESG-WARN][107] ([i915#3746]) -> [PASS][108] +17 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-snb7/igt@i915_selftest@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-snb6/igt@i915_selftest@[email protected]
* igt@kms_big_fb@y-tiled-16bpp-rotate-180:
- {shard-rkl}: [SKIP][109] ([i915#3638]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- {shard-rkl}: [SKIP][111] ([i915#3721]) -> [PASS][112] +1 similar issue
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- {shard-rkl}: [FAIL][113] ([i915#3678]) -> [PASS][114] +3 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_color@pipe-a-ctm-0-75:
- {shard-rkl}: [SKIP][115] ([i915#1149] / [i915#1849]) -> [PASS][116] +2 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-sliding:
- {shard-rkl}: [SKIP][117] ([fdo#112022]) -> [PASS][118] +7 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipa-toggle:
- {shard-rkl}: [SKIP][119] ([fdo#111825]) -> [PASS][120] +3 similar issues
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [FAIL][121] ([i915#2346]) -> [PASS][122]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-skl5/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-skl2/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-mmap-gtt-xtiled:
- {shard-rkl}: [SKIP][123] ([fdo#111314]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-dp1:
- shard-apl: [FAIL][125] ([i915#79]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-apl3/igt@kms_flip@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl2/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [DMESG-WARN][127] ([i915#180]) -> [PASS][128] +2 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-apl8/igt@kms_flip@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_flip@modeset-vs-vblank-race@c-hdmi-a1:
- shard-glk: [FAIL][129] ([i915#407]) -> [PASS][130]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk8/igt@kms_flip@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk4/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-indfb-pgflip-blt:
- {shard-rkl}: [SKIP][131] ([i915#1849]) -> [PASS][132] +16 similar issues
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
- {shard-rkl}: [SKIP][133] ([i915#1849] / [i915#3558]) -> [PASS][134]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][135] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [PASS][136]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb6/igt@kms_psr2_su@page_flip.html
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@primary_render:
- {shard-rkl}: [SKIP][137] ([i915#1072]) -> [PASS][138]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@kms_psr@primary_render.html
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@kms_psr@primary_render.html
* igt@kms_psr@psr2_primary_render:
- shard-iclb: [SKIP][139] ([fdo#109441]) -> [PASS][140]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb6/igt@kms_psr@psr2_primary_render.html
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-iclb2/igt@kms_psr@psr2_primary_render.html
* igt@kms_sequence@get-forked:
- {shard-rkl}: [SKIP][141] ([i915#1845]) -> [PASS][142] +7 similar issues
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-5/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-6/igt@[email protected]
* igt@perf@blocking:
- {shard-rkl}: [FAIL][143] ([i915#1542]) -> [PASS][144]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-rkl-2/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-rkl-1/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-glk: [FAIL][145] ([i915#1542]) -> [PASS][146]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-glk7/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/shard-glk2/igt@[email protected]
- shard-iclb: [FAIL][147] ([i915#1542]) -> [PASS][148]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10358/shard-iclb8/igt@[email protected]
[148]:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20655/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx