Rename IS_ACTIVE() and move to kconfig.h
Subsystems (2)
v2 cover Rename IS_ACTIVE() and move to kconfig.h
As we try to reduce our i915-only helpers, let's try to improve IS_ACTIVE() logic and move to kconfig.h.
I'm not 100% happy with the name, but it's the best I could come up with, hopefully a little better than trying to add IS_ACTIVE() to be used broadly.
v2: now with Cc/To list fixed up - no changes to the patches.
Lucas De Marchi (3):
drm/i915: rename IS_ACTIVE
drm/i915/utils: do not depend on config being defined Move IS_CONFIG_NONZERO() to kconfig.h
drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +- .../gpu/drm/i915/gt/intel_execlists_submission.c | 2 +- .../gpu/drm/i915/gt/selftest_engine_heartbeat.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 14 +++++++------- drivers/gpu/drm/i915/i915_config.c | 2 +- drivers/gpu/drm/i915/i915_request.c | 2 +- drivers/gpu/drm/i915/i915_utils.h | 13 ------------- include/linux/kconfig.h | 16 ++++++++++++++-- 12 files changed, 32 insertions(+), 33 deletions(-)
Signature · 1 line
2.33.0
PATCH v2 1/3 drm/i915: rename IS_ACTIVE
It took me some time to understand the need for IS_ACTIVE and why we couldn't use kconfig.h. Rename it to something else that would be more suitable to include in kconfig.h and shared with other subsystems rather than maintaining it only in i915.
Name here is pretty open for suggestions, but I think this is slightly better than "active".
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +- .../gpu/drm/i915/gt/intel_execlists_submission.c | 2 +- .../gpu/drm/i915/gt/selftest_engine_heartbeat.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 14 +++++++------- drivers/gpu/drm/i915/i915_config.c | 2 +- drivers/gpu/drm/i915/i915_request.c | 2 +- drivers/gpu/drm/i915/i915_utils.h | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +1 -1
@@ -761,7 +761,7 @@ static int intel_context_set_gem(struct intel_context *ce, intel_engine_has_semaphores(ce->engine))__set_bit (CONTEXT_USE_SEMAPHORES , &ce->flags); -if (IS_ACTIVE (CONFIG_DRM_I915_REQUEST_TIMEOUT ) && +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_REQUEST_TIMEOUT ) && ctx->i915->params.request_timeout_ms) {unsigned int timeout_ms = ctx->i915->params.request_timeout_ms;
drivers/gpu/drm/i915/gem/i915_gem_mman.c +1 -1
@@ -395,7 +395,7 @@ static vm_fault_t vm_fault_gtt(struct vm_fault *vmf)/* Track the mmo associated with the fenced vma */ vma->mmo = mmo; -if (IS_ACTIVE (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND )) +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND ))intel_wakeref_auto (&i915->ggtt.userfault_wakeref,msecs_to_jiffies_timeout (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND ));
drivers/gpu/drm/i915/gt/intel_engine.h +2 -2
@@ -273,7 +273,7 @@ static inline bool intel_engine_uses_guc(const struct intel_engine_cs *engine)static inline bool intel_engine_has_preempt_reset (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return false;return intel_engine_has_preemption (engine);
@@ -300,7 +300,7 @@ intel_virtual_engine_has_heartbeat(const struct intel_engine_cs *engine)static inline bool intel_engine_has_heartbeat (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return false;if (intel_engine_is_virtual (engine))
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +1 -1
@@ -207,7 +207,7 @@ static void heartbeat(struct work_struct *wrk)void intel_engine_unpark_heartbeat (struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return ;next_heartbeat (engine);
drivers/gpu/drm/i915/gt/intel_engine_types.h +1 -1
@@ -556,7 +556,7 @@ intel_engine_has_semaphores(const struct intel_engine_cs *engine)static inline bool intel_engine_has_timeslices (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return false;return engine->flags &I915_ENGINE_HAS_TIMESLICES ;
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +1 -1
@@ -3339,7 +3339,7 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine) engine->flags |=I915_ENGINE_HAS_SEMAPHORES ;if (can_preempt (engine)) { engine->flags |=I915_ENGINE_HAS_PREEMPTION ; -if (IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION )) engine->flags |=I915_ENGINE_HAS_TIMESLICES ; } }
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c +2 -2
@@ -290,7 +290,7 @@ static int live_heartbeat_fast(void *arg)int err =0 ;/* Check that the heartbeat ticks at the desired rate. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return 0 ;for_each_engine (engine, gt, id) {
@@ -352,7 +352,7 @@ static int live_heartbeat_off(void *arg)int err =0 ;/* Check that we can turn off heartbeat and not interrupt VIP */ -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return 0 ;for_each_engine (engine, gt, id) {
drivers/gpu/drm/i915/gt/selftest_execlists.c +7 -7
@@ -992,7 +992,7 @@ static int live_timeslice_preempt(void *arg)* need to preempt the current task and replace it with another * ready task. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ; obj =i915_gem_object_create_internal (gt->i915,PAGE_SIZE );
@@ -1122,7 +1122,7 @@ static int live_timeslice_rewind(void *arg)* but only a few of those requests, forcing us to rewind the * RING_TAIL of the original request. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ;for_each_engine (engine, gt, id) {
@@ -1299,7 +1299,7 @@ static int live_timeslice_queue(void *arg)* ELSP[1] is already occupied, so must rely on timeslicing to * eject ELSP[0] in favour of the queue.) */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ; obj =i915_gem_object_create_internal (gt->i915,PAGE_SIZE );
@@ -1420,7 +1420,7 @@ static int live_timeslice_nopreempt(void *arg)* We should not timeslice into a request that is marked with * I915_REQUEST_NOPREEMPT. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ;if (igt_spinner_init (&spin, gt))
@@ -2260,7 +2260,7 @@ static int __cancel_hostile(struct live_preempt_cancel *arg)int err;/* Preempt cancel non-preemptible spinner in ELSP0 */ -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (arg->engine->gt))
@@ -2316,7 +2316,7 @@ static int __cancel_fail(struct live_preempt_cancel *arg)struct i915_request *rq;int err; -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (engine->gt))
@@ -3375,7 +3375,7 @@ static int live_preempt_timeout(void *arg)* Check that we force preemption to occur by cancelling the previous * context if it refuses to yield the GPU. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (gt))
drivers/gpu/drm/i915/i915_config.c +1 -1
@@ -8,7 +8,7 @@unsigned long i915_fence_context_timeout (const struct drm_i915_private *i915,u64 context) { -if (context &&IS_ACTIVE (CONFIG_DRM_I915_FENCE_TIMEOUT )) +if (context &&IS_CONFIG_NONZERO (CONFIG_DRM_I915_FENCE_TIMEOUT ))return msecs_to_jiffies_timeout (CONFIG_DRM_I915_FENCE_TIMEOUT );return 0 ;
drivers/gpu/drm/i915/i915_request.c +1 -1
@@ -1852,7 +1852,7 @@ long i915_request_wait(struct i915_request *rq,* completion. That requires having a good predictor for the request * duration, which we currently lack. */ -if (IS_ACTIVE (CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT ) && +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT ) &&__i915_spin_request (rq, state)) goto out;
drivers/gpu/drm/i915/i915_utils.h +1 -1
@@ -469,6 +469,6 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_ACTIVE (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ((config) != 0)#endif /* !__I915_UTILS_H */
Signature · 1 line
2.33.0
Jani Nikula
maintainerRe: [PATCH v2 1/3] drm/i915: rename IS_ACTIVE
Quoted 2 lines · Lucas De Marchi
It took me some time to understand the need for
IS_ACTIVEand why we couldn't usekconfig.h.
For anyone else wondering, the clues are in babaab2f4738 ("drm/i915:
Encapsulate kconfig constant values inside boolean predicates").
But this series tries to take it further; we currently don't have a need for checking whether the config is defined or not. It always is. I mean it's probably a useful feature, but not the original problem we had.
BR,
Jani.
Quoted 236 lines
Rename it to something else that would be more
suitable to include inkconfig.hand shared with other subsystems rather than maintaining it only in i915.Name here is pretty open for suggestions, but I think this is slightly better than "active".
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +- .../gpu/drm/i915/gt/intel_execlists_submission.c | 2 +- .../gpu/drm/i915/gt/selftest_engine_heartbeat.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 14 +++++++------- drivers/gpu/drm/i915/i915_config.c | 2 +- drivers/gpu/drm/i915/i915_request.c | 2 +- drivers/gpu/drm/i915/i915_utils.h | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1@@ -761,7 +761,7 @@ static int intel_context_set_gem(struct intel_context *ce, intel_engine_has_semaphores(ce->engine))__set_bit (CONTEXT_USE_SEMAPHORES , &ce->flags); -if (IS_ACTIVE (CONFIG_DRM_I915_REQUEST_TIMEOUT ) && +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_REQUEST_TIMEOUT ) && ctx->i915->params.request_timeout_ms) {unsigned int timeout_ms = ctx->i915->params.request_timeout_ms;drivers/gpu/drm/i915/gem/i915_gem_mman.c +1
-1@@ -395,7 +395,7 @@ static vm_fault_t vm_fault_gtt(struct vm_fault *vmf)/* Track the mmo associated with the fenced vma */ vma->mmo = mmo; -if (IS_ACTIVE (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND )) +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND ))intel_wakeref_auto (&i915->ggtt.userfault_wakeref,msecs_to_jiffies_timeout (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND ));drivers/gpu/drm/i915/gt/intel_engine.h +2
-2@@ -273,7 +273,7 @@ static inline bool intel_engine_uses_guc(const struct intel_engine_cs *engine)static inline bool intel_engine_has_preempt_reset (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return false;return intel_engine_has_preemption (engine);@@ -300,7 +300,7 @@ intel_virtual_engine_has_heartbeat(const struct intel_engine_cs *engine)static inline bool intel_engine_has_heartbeat (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return false;if (intel_engine_is_virtual (engine))drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +1
-1@@ -207,7 +207,7 @@ static void heartbeat(struct work_struct *wrk)void intel_engine_unpark_heartbeat (struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return ;next_heartbeat (engine);drivers/gpu/drm/i915/gt/intel_engine_types.h +1
-1@@ -556,7 +556,7 @@ intel_engine_has_semaphores(const struct intel_engine_cs *engine)static inline bool intel_engine_has_timeslices (const struct intel_engine_cs *engine) { -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return false;return engine->flags &I915_ENGINE_HAS_TIMESLICES ;drivers/gpu/drm/i915/gt/intel_execlists_submission.c +1
-1@@ -3339,7 +3339,7 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine) engine->flags |=I915_ENGINE_HAS_SEMAPHORES ;if (can_preempt (engine)) { engine->flags |=I915_ENGINE_HAS_PREEMPTION ; -if (IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION )) engine->flags |=I915_ENGINE_HAS_TIMESLICES ; } }drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c +2
-2@@ -290,7 +290,7 @@ static int live_heartbeat_fast(void *arg)int err =0 ;/* Check that the heartbeat ticks at the desired rate. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return 0 ;for_each_engine (engine, gt, id) {@@ -352,7 +352,7 @@ static int live_heartbeat_off(void *arg)int err =0 ;/* Check that we can turn off heartbeat and not interrupt VIP */ -if (!IS_ACTIVE (CONFIG_DRM_I915_HEARTBEAT_INTERVAL )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_HEARTBEAT_INTERVAL ))return 0 ;for_each_engine (engine, gt, id) {drivers/gpu/drm/i915/gt/selftest_execlists.c +7
-7@@ -992,7 +992,7 @@ static int live_timeslice_preempt(void *arg)* need to preempt the current task and replace it with another * ready task. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ; obj =i915_gem_object_create_internal (gt->i915,PAGE_SIZE );@@ -1122,7 +1122,7 @@ static int live_timeslice_rewind(void *arg)* but only a few of those requests, forcing us to rewind the * RING_TAIL of the original request. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ;for_each_engine (engine, gt, id) {@@ -1299,7 +1299,7 @@ static int live_timeslice_queue(void *arg)* ELSP[1] is already occupied, so must rely on timeslicing to * eject ELSP[0] in favour of the queue.) */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ; obj =i915_gem_object_create_internal (gt->i915,PAGE_SIZE );@@ -1420,7 +1420,7 @@ static int live_timeslice_nopreempt(void *arg)* We should not timeslice into a request that is marked with * I915_REQUEST_NOPREEMPT. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_TIMESLICE_DURATION )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_TIMESLICE_DURATION ))return 0 ;if (igt_spinner_init (&spin, gt))@@ -2260,7 +2260,7 @@ static int __cancel_hostile(struct live_preempt_cancel *arg)int err;/* Preempt cancel non-preemptible spinner in ELSP0 */ -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (arg->engine->gt))@@ -2316,7 +2316,7 @@ static int __cancel_fail(struct live_preempt_cancel *arg)struct i915_request *rq;int err; -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (engine->gt))@@ -3375,7 +3375,7 @@ static int live_preempt_timeout(void *arg)* Check that we force preemption to occur by cancelling the previous * context if it refuses to yield the GPU. */ -if (!IS_ACTIVE (CONFIG_DRM_I915_PREEMPT_TIMEOUT )) +if (!IS_CONFIG_NONZERO (CONFIG_DRM_I915_PREEMPT_TIMEOUT ))return 0 ;if (!intel_has_reset_engine (gt))drivers/gpu/drm/i915/i915_config.c +1
-1@@ -8,7 +8,7 @@unsigned long i915_fence_context_timeout (const struct drm_i915_private *i915,u64 context) { -if (context &&IS_ACTIVE (CONFIG_DRM_I915_FENCE_TIMEOUT )) +if (context &&IS_CONFIG_NONZERO (CONFIG_DRM_I915_FENCE_TIMEOUT ))return msecs_to_jiffies_timeout (CONFIG_DRM_I915_FENCE_TIMEOUT );return 0 ;drivers/gpu/drm/i915/i915_request.c +1
-1@@ -1852,7 +1852,7 @@ long i915_request_wait(struct i915_request *rq,* completion. That requires having a good predictor for the request * duration, which we currently lack. */ -if (IS_ACTIVE (CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT ) && +if (IS_CONFIG_NONZERO (CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT ) &&__i915_spin_request (rq, state)) goto out;drivers/gpu/drm/i915/i915_utils.h +1
-1@@ -469,6 +469,6 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_ACTIVE (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ((config) != 0)#endif /* !__I915_UTILS_H */
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [PATCH v2 1/3] drm/i915: rename IS_ACTIVE
Quoted 6 lines · Jani Nikula
Quoted 2 lines · Lucas De Marchi
It took me some time to understand the need for
IS_ACTIVEand why we couldn't usekconfig.h.For anyone else wondering, the clues are in
babaab2f4738("drm/i915:
Encapsulate kconfig constant values inside boolean predicates").
yeah, I had added that info on the third patch when I try to move the macro to kconfig.h since it would give information for kconfig developers on why the macro is being used.
Quoted 4 lines
But this series tries to take it further; we currently don't have a need for checking whether the config is defined or not. It always is. I mean it's probably a useful feature, but not the original problem we had.
yep, not trying to push hard on that direction... just tried to have the same thing the other macros on kconfig.h have.
thanks
Lucas De Marchi
PATCH v2 2/3 drm/i915/utils: do not depend on config being defined
In reply to Lucas De MarchiLike the IS_ENABLED() counterpart, we can make IS_CONFIG_NONZERO() to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.
The trick here is that macro names can't start with a number or dash, so we stringify the argument and check that the first char is a number != 0 (or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.
Taking CONFIG_DRM_I915_REQUEST_TIMEOUT in drivers/gpu/drm/i915/gem/i915_gem_context.c as example, we have the following output of the preprocessor:
old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&
New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.old
--- drivers/gpu/drm/i915/i915_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_utils.h +5 -1
@@ -28,6 +28,7 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>
@@ -469,6 +470,9 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ + __stringify_1(config)[0] == '-' \ +)#endif /* !__I915_UTILS_H */
Signature · 1 line
2.33.0
Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined
W dniu 29.09.2021 o 20:33, Lucas De Marchi pisze:
Quoted 44 lines
Like the
IS_ENABLED()counterpart, we can makeIS_CONFIG_NONZERO()to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.The trick here is that macro names can't start with a number or dash, so we stringify the argument and check that the first char is a number != 0 (or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.
Taking
CONFIG_DRM_I915_REQUEST_TIMEOUTindrivers/gpu/drm/i915/gem/i915_gem_context.cas example, we have the following output of the preprocessor:old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.oldSigned-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_utils.h +1
-0@@ -28,6 +28,7 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>
drivers/gpu/drm/i915/i915_utils.h static inline bool timer_expired(const struct timer_list *t) · line 476
Quoted 8 lines
drivers/gpu/drm/i915/i915_utils.h +4
-1@@ -469,6 +470,9 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ + __stringify_1(config)[0] == '-' \ +)
Quite clever trick, but I see two issues:
- gcc < 8.1 treats expressions with string indices (ex. "abc"[0]) as non-constant expressions, so they cannot be used everywhere, for example in global variable initializations,
- it does not work with hex (0x1) or octal values (01)
It is probably OK for private macro, but it can hurt in kconfig.h, especially the 2nd issue
Regards
Andrzej
Quoted 2 lines
drivers/gpu/drm/i915/i915_utils.h +0
-0#endif /* !__I915_UTILS_H */
Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined
Quoted 58 lines · Andrzej Hajda
W dniu 29.09.2021 o 20:33, Lucas De Marchi pisze:
Quoted 44 lines
Like the
IS_ENABLED()counterpart, we can makeIS_CONFIG_NONZERO()to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.The trick here is that macro names can't start with a number or dash, so we stringify the argument and check that the first char is a number != 0 (or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.
Taking
CONFIG_DRM_I915_REQUEST_TIMEOUTindrivers/gpu/drm/i915/gem/i915_gem_context.cas example, we have the following output of the preprocessor:old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.oldSigned-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_utils.h +1
-0@@ -28,6 +28,7 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h> drivers/gpu/drm/i915/i915_utils.h static inline bool timer_expired(const struct timer_list *t) · line 476
Quoted 8 lines
drivers/gpu/drm/i915/i915_utils.h +4
-1@@ -469,6 +470,9 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ + __stringify_1(config)[0] == '-' \ +)Quite clever trick, but I see two issues:
Quoted 3 lines
- gcc < 8.1 treats expressions with string indices (ex. "abc"[0]) as non-constant expressions, so they cannot be used everywhere, for example in global variable initializations,
ugh, that would kill the idea - having the strings and additional runtime checks would not be good. Maybe if we check with __builtin_constant_p() and do the simpler expansion if it's not constant?
Quoted 2 lines
- it does not work with hex (
0x1) or octal values (01)
indeed, but I guess that would be fixable by checking (s[0] == '0' && s[1] == '\0')? However, it seems kconfig doesn't support setting int options to hex or octal.
If I try an hex value in menuconfig it says "You have made an invalid entry." If I try editing .config or setting via scripts/config --set-val, it just gets reset when trying to generate include/generated/autoconf.h
Lucas De Marchi
Quoted 11 lines
It is probably OK for private macro, but it can hurt in
kconfig.h, especially the 2nd issueRegards
Andrzej
Quoted 2 lines
drivers/gpu/drm/i915/i915_utils.h +0
-0#endif /* !__I915_UTILS_H */
Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined
W dniu 30.09.2021 o 00:54, Lucas De Marchi pisze:
Quoted 67 lines · Andrzej Hajda
Quoted 66 lines
W dniu 29.09.2021 o 20:33, Lucas De Marchi pisze:
Quoted 50 lines
Like the
IS_ENABLED()counterpart, we can makeIS_CONFIG_NONZERO()to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.The trick here is that macro names can't start with a number or dash, so
we stringify the argument and check that the first char is a number != 0
(or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.Taking
CONFIG_DRM_I915_REQUEST_TIMEOUTindrivers/gpu/drm/i915/gem/i915_gem_context.cas example, we have the following output of the preprocessor:old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.oldSigned-off-by Lucas De Marchi <[email protected]>---
drivers/gpu/drm/i915/i915_utils.h| 6 +++++-1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_utils.h +1
-0@@ -28,6 +28,7 @@ #include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>drivers/gpu/drm/i915/i915_utils.h static inline bool timer_expired(const struct · line 478
Quoted 10 lines
drivers/gpu/drm/i915/i915_utils.h +4
-1@@ -469,6 +470,9 @@ static inline bool timer_expired(const structtimer_list *t) * * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ + __stringify_1(config)[0] == '-' \ +)Quite clever trick, but I see two issues:
Quoted 8 lines
Quoted 3 lines
- gcc < 8.1 treats expressions with string indices (ex. "abc"[0]) as non-constant expressions, so they cannot be used everywhere, for example in global variable initializations,
ugh, that would kill the idea - having the strings and additional runtime checks would not be good. Maybe if we check with
__builtin_constant_p()and do the simpler expansion if it's not constant?
I think it is just matter of disallowing such construct in places where compiler expects constant expression.
If accepted, the expression is apparently evaluated in compile time. See [1].
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960#c18
Quoted 8 lines
Quoted 3 lines
- it does not work with hex (
0x1) or octal values (01)indeed, but I guess that would be fixable by checking (s[0] == '0' && s[1] == '\0')?
However, it seems kconfig doesn't support setting int options to hex or octal.
I've spotted in include/generated/autoconf.h following line:
#define CONFIG_ILLEGAL_POINTER_VALUE 0xdead000000000000
It corresponds to following kconfig entry:
config ILLEGAL_POINTER_VALUE
hex
default 0 if X86_32
default 0xdead000000000000 if X86_64
Grepping shows more: grep -r --include=Kconfig -3 -P '^\s*hex' .
Anyway do you really need to handle undefined case? If not, the macro can stay simple, w/o hacky constructs.
Regards
Andrzej
Quoted 20 lines
If I try an hex value in menuconfig it says "You have made an invalid entry."
If I try editing .config or setting viascripts/config--set-val, it just gets reset when trying to generateinclude/generated/autoconf.hLucas De Marchi
Quoted 11 lines
It is probably OK for private macro, but it can hurt in
kconfig.h, especially the 2nd issueRegards
Andrzej
Quoted 2 lines
#endif /* !__I915_UTILS_H */
Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined
In reply to Lucas De MarchiQuoted 44 lines · Lucas De Marchi
Like the
IS_ENABLED()counterpart, we can makeIS_CONFIG_NONZERO()to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.The trick here is that macro names can't start with a number or dash, so we stringify the argument and check that the first char is a number != 0 (or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.
Taking
CONFIG_DRM_I915_REQUEST_TIMEOUTindrivers/gpu/drm/i915/gem/i915_gem_context.cas example, we have the following output of the preprocessor:old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.oldSigned-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_utils.h +1
-0@@ -28,6 +28,7 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>
drivers/gpu/drm/i915/i915_utils.h static inline bool timer_expired(const struct timer_list *t) · line 474
Quoted 6 lines
drivers/gpu/drm/i915/i915_utils.h +2
-1@@ -469,6 +470,9 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \
Shouldn't this be "<= '9'". Otherwise numbers starting with a 9 are not "non zero".
Steve
Quoted 5 lines
drivers/gpu/drm/i915/i915_utils.h +2
-0+ __stringify_1(config)[0] == '-' \ +)#endif /* !__I915_UTILS_H */
Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined
Quoted 44 lines · Steven Price
Quoted 43 lines · Lucas De Marchi
Like the
IS_ENABLED()counterpart, we can makeIS_CONFIG_NONZERO()to return the right thing when the config is not defined rather than a build error, with the limitation that it can't be used on preprocessor context.The trick here is that macro names can't start with a number or dash, so we stringify the argument and check that the first char is a number != 0 (or starting with a dash to cover negative numbers). Except for -O0 builds the strings are all eliminated.
Taking
CONFIG_DRM_I915_REQUEST_TIMEOUTindrivers/gpu/drm/i915/gem/i915_gem_context.cas example, we have the following output of the preprocessor:old:
if (((20000) != 0) &&
new:
if (( ("20000"[0] > '0' && "20000"[0] < '9') || "20000"[0] == '-' ) &&New one looks worse, but is also eliminated from the object:
$ size drivers/gpu/drm/i915/gem/i915_gem_context.o.* text data bss dec hex filename 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.oldSigned-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_utils.h +1
-0@@ -28,6 +28,7 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>
Quoted 10 lines
drivers/gpu/drm/i915/i915_utils.h static inline bool timer_expired(const struct timer_list *t) · line 474
Quoted 7 lines
drivers/gpu/drm/i915/i915_utils.h +2
-1@@ -469,6 +470,9 @@ static inline bool timer_expired(const struct timer_list *t)* * Returns 0 if @config is 0, 1 if set to any value. */ -#define IS_CONFIG_NONZERO (config) ((config) != 0) +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \Shouldn't this be "<= '9'". Otherwise numbers starting with a 9 are not "non zero".
yes! thanks for catching it. However from the other discussion it seems we can either
a) just remove the macro, or
b) use the simpler version that doesn't cover undefined values
I will investigate those options.
Lucas De Marchi
PATCH v2 3/3 Move IS_CONFIG_NONZERO() to kconfig.h
In reply to Lucas De MarchiThe check for config value doesn't really belong to i915_utils.h - we are trying to eliminate that utils helper and share them when possible with other drivers and subsystems.
Rationale for having such macro is in commitbabaab2f4738 ("drm/i915: Encapsulate kconfig constant values inside boolean predicates") whereas later it is improved to not break the build if used with
undefined configs. The caveat is detailed in the documentation: unlike IS_ENABLED(): it's not preprocessor-only logic so can't be used for
things like #if IS_CONFIG_NONZERO(...)
--- drivers/gpu/drm/i915/i915_utils.h | 17 ----------------- include/linux/kconfig.h | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/i915_utils.h +0 -17
@@ -28,7 +28,6 @@#include <linux/list.h> #include <linux/overflow.h> #include <linux/sched.h> -#include <linux/stringify.h> #include <linux/types.h> #include <linux/workqueue.h>
@@ -459,20 +458,4 @@ static inline bool timer_expired(const struct timer_list *t) return timer_active(t) && !timer_pending(t); } -/* -* This is a lookalike for IS_ENABLED() that takes a kconfig value, -* e.g. CONFIG_DRM_I915_SPIN_REQUEST, and evaluates whether it is non-zero -* i.e. whether the configuration is active. Wrapping up the config inside -* a boolean context prevents clang and smatch from complaining about potential -* issues in confusing logical-&& with bitwise-& for constants. -* -* Sadly IS_ENABLED() itself does not work with kconfig values. -* -* Returns 0 if @config is 0, 1 if set to any value. -*/ -#define IS_CONFIG_NONZERO (config) ( \ - (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ - __stringify_1(config)[0] == '-' \ -) -#endif /* !__I915_UTILS_H */
include/linux/kconfig.h +14 -2
@@ -2,6 +2,7 @@#ifndef __LINUX_KCONFIG_H#define __LINUX_KCONFIG_H +#include <linux/stringify.h> #include <generated/autoconf.h> #ifdef CONFIG_CPU_BIG_ENDIAN
@@ -26,8 +27,8 @@#define ____or (arg1_or_junk, y) __take_second_arg(arg1_or_junk 1, y)/* -* Helper macros to use CONFIG_ options in C/CPP expressions. Note that -* these only work with boolean and tristate options. +* Helper macros to use CONFIG_ options in C/CPP expressions. Note that except +* for IS_CONFIG_NONZERO, these only work with boolean and tristate options. */ /*
@@ -72,4 +73,15 @@*/ #define IS_ENABLED (option) __or(IS_BUILTIN(option), IS_MODULE(option)) +/* +* This is a lookalike for IS_ENABLED(), but works with int kconfig options +* with the caveat that it can't be used on preprocessor checks. +* +* Returns 0 if @config is 0 or undefined, 1 if set to any value. +*/ +#define IS_CONFIG_NONZERO (config) ( \ + (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \ + __stringify_1(config)[0] == '-' \ +) +#endif /* __LINUX_KCONFIG_H */
Signature · 1 line
2.33.0
Re: [PATCH v2 3/3] Move IS_CONFIG_NONZERO() to kconfig.h
Quoted 5 lines · Lucas De Marchi
The check for config value doesn't really belong to
i915_utils.h- we are trying to eliminate that utils helper and share them when possible with other drivers and subsystems.
Quoted 8 lines
Rationale for having such macro is in commit
babaab2f4738("drm/i915: Encapsulate kconfig constant values inside boolean predicates") whereas later it is improved to not break the build if used with
undefined configs. The caveat is detailed in the documentation: unlikeIS_ENABLED(): it's not preprocessor-only logic so can't be used for
things like#if IS_CONFIG_NONZERO(...)Signed-off-by Lucas De Marchi <[email protected]>
Hypothetical "it would be nice to have ..." is really unneeded.
if (context && CONFIG_DRM_I915_FENCE_TIMEOUT > 0)
returnmsecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
is enough, and much cleaner.
This warning is shown only when a constant is used together with '&&'.
Most of IS_ACTIVE can go away.
Given that, there are not many places where the IS_ACTIVE macro is useful, even in the i915 driver.
For a few sources of the warnings,
replacing it with != 0 or > 0 is just fine.
Of course, such an ugly macro is not worth being moved to <linux/kconfig.h>
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH v2 3/3] Move IS_CONFIG_NONZERO() to kconfig.h
Quoted 31 lines · Masahiro Yamada
Quoted 5 lines · Lucas De Marchi
The check for config value doesn't really belong to
i915_utils.h- we are trying to eliminate that utils helper and share them when possible with other drivers and subsystems.Quoted 8 lines
Rationale for having such macro is in commit
babaab2f4738("drm/i915: Encapsulate kconfig constant values inside boolean predicates") whereas later it is improved to not break the build if used with
undefined configs. The caveat is detailed in the documentation: unlikeIS_ENABLED(): it's not preprocessor-only logic so can't be used for
things like#if IS_CONFIG_NONZERO(...)Signed-off-by Lucas De Marchi <[email protected]>Hypothetical "it would be nice to have ..." is really unneeded.
if (context && CONFIG_DRM_I915_FENCE_TIMEOUT > 0) return
msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);is enough, and much cleaner.
This warning is shown only when a constant is used together with '&&'.
Quoted 7 lines
Most of
IS_ACTIVEcan go away.Given that, there are not many places where the
IS_ACTIVEmacro is useful, even in the i915 driver.For a few sources of the warnings,
replacing it with != 0 or > 0 is just fine.
humn... maybe. Let me do a conversion in that direction and see what is the outcome.
My original intention was to make IS_ENABLED() even uglier to cover the int case, but after some tries it seems impossible to do on preprocessor context, so I thought maybe it would be ok as a separate one.
Quoted 2 lines
Of course, such an ugly macro is not worth being moved to <
linux/kconfig.h>
if we don't handle the undefined case and only worry about encapsulating it inside a boolean predicate, the macro would be very simple. Would that be worth having in kconfig.h maybe?
thanks
Lucas De Marchi
Re: [PATCH v2 3/3] Move IS_CONFIG_NONZERO() to kconfig.h
Quoted 49 lines · Lucas De Marchi
Quoted 31 lines · Masahiro Yamada
Quoted 5 lines · Lucas De Marchi
The check for config value doesn't really belong to
i915_utils.h- we are trying to eliminate that utils helper and share them when possible with other drivers and subsystems.Quoted 8 lines
Rationale for having such macro is in commit
babaab2f4738("drm/i915: Encapsulate kconfig constant values inside boolean predicates") whereas later it is improved to not break the build if used with
undefined configs. The caveat is detailed in the documentation: unlikeIS_ENABLED(): it's not preprocessor-only logic so can't be used for
things like#if IS_CONFIG_NONZERO(...)Signed-off-by Lucas De Marchi <[email protected]>Hypothetical "it would be nice to have ..." is really unneeded.
if (context && CONFIG_DRM_I915_FENCE_TIMEOUT > 0) return
msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);is enough, and much cleaner.
This warning is shown only when a constant is used together with '&&'.
Quoted 7 lines
Most of
IS_ACTIVEcan go away.Given that, there are not many places where the
IS_ACTIVEmacro is useful, even in the i915 driver.For a few sources of the warnings,
replacing it with != 0 or > 0 is just fine.humn... maybe. Let me do a conversion in that direction and see what is the outcome.
My original intention was to make
IS_ENABLED()even uglier to cover the int case, but after some tries it seems impossible to do on preprocessor context, so I thought maybe it would be ok as a separate one.Quoted 1 line
Quoted 5 lines
Quoted 1 line
Of course, such an ugly macro is not worth being moved to <
linux/kconfig.h>if we don't handle the undefined case and only worry about encapsulating it inside a boolean predicate, the macro would be very simple. Would that be worth having in
kconfig.hmaybe?
I do not think so.
#define IS_CONFIG_NONZERO(config) ((config) != 0)
seems like a stupid macro.
What is bad about writing the direct code?
if (x && CONFIG_FOO > 0)
....Quoted 4 lines
thanks
Lucas De Marchi
Signature · 2 lines
Best Regards Masahiro Yamada
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Rename IS_ACTIVE() and move to kconfig.h
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Rename IS_ACTIVE() and move to kconfig.h
URL : https://patchwork.freedesktop.org/series/95229/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 700a1ad38302 drm/i915: rename IS_ACTIVE 74e2f2ef0ee5 drm/i915/utils: do not depend on config being defined -:29: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #29: 52021 1070 232 53323 d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new
-:51: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'config' - possible side-effects? #51: FILE: drivers/gpu/drm/i915/i915_utils.h:473:
+#define IS_CONFIG_NONZERO(config) ( \
+ (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \
+ __stringify_1(config)[0] == '-' \
+)
total: 0 errors, 1 warnings, 1 checks, 17 lines checkedc3464f46082b Move IS_CONFIG_NONZERO() to kconfig.h
-:11: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #11:babaab2f4738 ("drm/i915: Encapsulate kconfig constant values inside boolean predicates")
-:85: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'config' - possible side-effects? #85: FILE: include/linux/kconfig.h:82:
+#define IS_CONFIG_NONZERO(config) ( \
+ (__stringify_1(config)[0] > '0' && __stringify_1(config)[0] < '9') || \
+ __stringify_1(config)[0] == '-' \
+)
total: 0 errors, 1 warnings, 1 checks, 59 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Rename IS_ACTIVE() and move to kconfig.h
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Rename IS_ACTIVE() and move to kconfig.h
URL : https://patchwork.freedesktop.org/series/95229/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10660 -> Patchwork_21193
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/index.html
Changes
-------
No changes found
Participating hosts (33 -> 29)
------------------------------
Missing (4): fi-bsw-cyan bat-jsl-1 bat-dg1-6 bat-adlp-4
Build changes
-------------
* Linux: CI_DRM_10660 -> Patchwork_21193
CI-20190529: 20190529
CI_DRM_10660: 05888a7b7b4aec560d6692e5e9173adc7e76c0df @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6227: 6ac2da7fd6b13f04f9aa0ec10f86b831d2756946 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21193: c3464f46082bfe80c44da890b292d50b27344688 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
c3464f46082b Move IS_CONFIG_NONZERO() to kconfig.h 74e2f2ef0ee5 drm/i915/utils: do not depend on config being defined 700a1ad38302 drm/i915: rename IS_ACTIVE
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for Rename IS_ACTIVE() and move to kconfig.h
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Rename IS_ACTIVE() and move to kconfig.h
URL : https://patchwork.freedesktop.org/series/95229/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10660_full -> Patchwork_21193_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_21193_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_21193_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_21193_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_flip@blocking-absolute-wf_vblank-interruptible@d-edp1:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2] +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb1/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb7/igt@kms_flip@[email protected]
Known issues
------------
Here are the changes found in Patchwork_21193_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@fbdev@unaligned-read:
- shard-glk: [PASS][3] -> [FAIL][4] ([i915#4218])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk3/igt@[email protected]
* igt@gem_ctx_persistence@hostile:
- shard-tglb: [PASS][5] -> [FAIL][6] ([i915#2410])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb8/igt@[email protected]
* igt@gem_ctx_sseu@engines:
- shard-tglb: NOTRUN -> [SKIP][7] ([i915#280])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@gem_ctx_sseu@invalid-args:
- shard-apl: NOTRUN -> [SKIP][8] ([fdo#109271]) +205 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@[email protected]
* igt@gem_eio@in-flight-suspend:
- shard-apl: [PASS][9] -> [DMESG-WARN][10] ([i915#180])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl6/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-skl: NOTRUN -> [TIMEOUT][11] ([i915#2369] / [i915#3063])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: NOTRUN -> [FAIL][12] ([i915#2846])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-skl: NOTRUN -> [SKIP][13] ([fdo#109271]) +133 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@gem_exec_fair@[email protected]
- shard-tglb: NOTRUN -> [FAIL][14] ([i915#2842])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@rcs0:
- shard-glk: [PASS][15] -> [FAIL][16] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk6/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][17] -> [FAIL][18] ([i915#2842]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl6/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-iclb: [PASS][19] -> [FAIL][20] ([i915#2842])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb1/igt@gem_exec_fair@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-tglb: [PASS][21] -> [FAIL][22] ([i915#2842])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb5/igt@gem_exec_fair@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_pread@exhaustion:
- shard-kbl: NOTRUN -> [WARN][23] ([i915#2658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl2/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: NOTRUN -> [DMESG-WARN][24] ([i915#180])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@[email protected]
* igt@gen9_exec_parse@bb-start-param:
- shard-tglb: NOTRUN -> [SKIP][25] ([i915#2856])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb3/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#1937])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@i915_pm_lpsp@[email protected]
* igt@i915_suspend@forcewake:
- shard-kbl: NOTRUN -> [DMESG-WARN][27] ([i915#180])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][28] -> [FAIL][29] ([i915#2521])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl3/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl1/igt@[email protected]
* igt@kms_async_flips@crc:
- shard-skl: NOTRUN -> [FAIL][30] ([i915#4224])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl7/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][31] ([fdo#111614])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-skl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#3777])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-skl: NOTRUN -> [FAIL][33] ([i915#3722]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl6/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#3777]) +2 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl1/igt@[email protected]
* igt@kms_ccs@pipe-a-random-ccs-data-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][35] ([i915#3689]) +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@kms_ccs@pipe-a-random-ccs-data-yf_tiled_ccs.html
* igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][36] ([i915#3689] / [i915#3886])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][37] ([fdo#109271] / [i915#3886]) +5 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][38] ([fdo#109271] / [i915#3886]) +4 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3886]) +13 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl1/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_chamelium@hdmi-audio-edid:
- shard-tglb: NOTRUN -> [SKIP][40] ([fdo#109284] / [fdo#111827])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_chamelium@vga-edid-read:
- shard-apl: NOTRUN -> [SKIP][41] ([fdo#109271] / [fdo#111827]) +18 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-kbl: NOTRUN -> [SKIP][42] ([fdo#109271] / [fdo#111827]) +7 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-max:
- shard-skl: NOTRUN -> [SKIP][43] ([fdo#109271] / [fdo#111827]) +10 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl7/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][44] ([i915#1319]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-32x10-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][45] ([i915#3359])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][46] ([fdo#109279] / [i915#3359]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-kbl: NOTRUN -> [SKIP][47] ([fdo#109271]) +90 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-single-bo:
- shard-kbl: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#533])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_flip@flip-vs-absolute-wf_vblank@b-edp1:
- shard-skl: [PASS][49] -> [FAIL][50] ([i915#2122]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl4/igt@kms_flip@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl9/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-skl: [PASS][51] -> [FAIL][52] ([i915#79])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl10/igt@kms_flip@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a1:
- shard-glk: [PASS][53] -> [FAIL][54] ([i915#79]) +1 similar issue
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk5/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@a-edp1:
- shard-tglb: [PASS][55] -> [INCOMPLETE][56] ([i915#2411] / [i915#4173] / [i915#456])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb3/igt@kms_flip@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb7/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- shard-glk: [PASS][57] -> [DMESG-WARN][58] ([i915#118] / [i915#95]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk6/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk9/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-mmap-wc:
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#111825]) +6 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-mmap-wc.html
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-skl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#533])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d-frame-sequence:
- shard-apl: NOTRUN -> [SKIP][61] ([fdo#109271] / [i915#533]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl3/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
- shard-kbl: [PASS][62] -> [DMESG-WARN][63] ([i915#180]) +3 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl1/igt@kms_plane@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl3/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][64] ([fdo#108145] / [i915#265]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [PASS][65] -> [FAIL][66] ([fdo#108145] / [i915#265])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl8/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-kbl: NOTRUN -> [FAIL][67] ([fdo#108145] / [i915#265])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-1:
- shard-kbl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#658]) +1 similar issue
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#658]) +4 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-skl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#658]) +2 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-tglb: NOTRUN -> [SKIP][71] ([i915#2920]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb3/igt@[email protected]
* igt@kms_psr@psr2_dpms:
- shard-tglb: NOTRUN -> [FAIL][72] ([i915#132] / [i915#3467])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@kms_psr@psr2_dpms.html
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [PASS][73] -> [SKIP][74] ([fdo#109441]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb8/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90:
- shard-tglb: NOTRUN -> [SKIP][75] ([fdo#111615]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_sysfs_edid_timing:
- shard-skl: NOTRUN -> [FAIL][76] ([IGT#2])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl6/igt@kms_sysfs_edid_timing.html
* igt@kms_vblank@pipe-d-ts-continuation-suspend:
- shard-tglb: [PASS][77] -> [INCOMPLETE][78] ([i915#3896])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb1/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb7/igt@[email protected]
* igt@kms_vrr@flip-suspend:
- shard-tglb: NOTRUN -> [SKIP][79] ([fdo#109502])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-kbl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2437])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl2/igt@[email protected]
* igt@nouveau_crc@pipe-d-ctx-flip-skip-current-frame:
- shard-tglb: NOTRUN -> [SKIP][81] ([i915#2530])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@sysfs_clients@fair-1:
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#2994]) +3 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl3/igt@[email protected]
* igt@sysfs_clients@fair-3:
- shard-skl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2994])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@sysfs_clients@sema-50:
- shard-kbl: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2994]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-tglb: [INCOMPLETE][85] ([i915#1373]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb7/igt@gem_ctx_isolation@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb3/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-iclb: [FAIL][87] ([i915#2842]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb1/igt@gem_exec_fair@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [FAIL][89] ([i915#2842]) -> [PASS][90] +1 similar issue
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl6/igt@gem_exec_fair@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][91] ([i915#2849]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb4/igt@gem_exec_fair@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@dr1-dirt:
- shard-skl: [DMESG-WARN][93] ([i915#1982]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl4/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl8/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [SKIP][95] ([i915#2190]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb7/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb3/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [FAIL][97] ([i915#644]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk6/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk9/igt@[email protected]
* igt@gem_softpin@noreloc-s3:
- shard-kbl: [DMESG-WARN][99] ([i915#180]) -> [PASS][100] +2 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl1/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-skl: [INCOMPLETE][101] ([i915#198] / [i915#4173]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl2/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl6/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [DMESG-WARN][103] ([i915#1436] / [i915#716]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl9/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-tglb: [INCOMPLETE][105] ([i915#456]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-tglb7/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-0:
- shard-glk: [DMESG-WARN][107] ([i915#118] / [i915#95]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-glk4/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-glk5/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [FAIL][109] ([i915#2346] / [i915#533]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl10/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@flip-vs-suspend-interruptible@b-dp1:
- shard-apl: [DMESG-WARN][111] ([i915#180]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl3/igt@kms_flip@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl7/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:
- shard-skl: [FAIL][113] ([i915#2122]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl6/igt@kms_flip@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][115] ([i915#1188]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl6/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][117] ([fdo#108145] / [i915#265]) -> [PASS][118] +1 similar issue
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl7/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl3/igt@[email protected]
* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: [SKIP][119] ([fdo#109441]) -> [PASS][120]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb3/igt@kms_psr@psr2_cursor_plane_move.html
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html
* igt@perf@polling-parameterized:
- shard-skl: [FAIL][121] ([i915#1542]) -> [PASS][122]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-skl3/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-skl1/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][123] ([i915#1804] / [i915#2684]) -> [WARN][124] ([i915#2684])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb6/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-2:
- shard-iclb: [SKIP][125] ([i915#658]) -> [SKIP][126] ([i915#2920])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb4/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-4:
- shard-iclb: [SKIP][127] ([i915#2920]) -> [SKIP][128] ([i915#658]) +2 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-iclb2/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-iclb8/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][129], [FAIL][130], [FAIL][131], [FAIL][132], [FAIL][133]) ([i915#180] / [i915#1814] / [i915#3002] / [i915#3363]) -> ([FAIL][134], [FAIL][135], [FAIL][136], [FAIL][137], [FAIL][138], [FAIL][139]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl1/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl1/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl4/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl4/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-kbl6/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl3/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl1/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl3/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl1/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-kbl4/igt@[email protected]
- shard-apl: ([FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143]) ([i915#180] / [i915#1814] / [i915#3002] / [i915#3363]) -> ([FAIL][144], [FAIL][145], [FAIL][146]) ([fdo#109271] / [i915#1610] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl3/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl3/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl6/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10660/shard-apl8/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl6/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl2/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/shard-apl6/igt@[email protected]
- shard-skl: ([FAIL][147], [FAIL][148], [FAIL][149], [FAIL][150]) ([i915#1436] / [i915#2029] / [i915#3002] / [i915#3363]) -> ([FAIL][151], [FAIL][152]) ([i91
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21193/index.html