Re: [Intel-gfx] [RFC] drm/i915: GEM_WARN_ON considered harmful

2018-10-11 Thread Lis, Tomasz
So I understand we agree on the change, just waiting for non-RFC version? -Tomasz On 2018-09-24 11:34, Jani Nikula wrote: On Thu, 20 Sep 2018, Tvrtko Ursulin wrote: Ping! Any comments here? Main goal was to allow GEM_WARN_ON as a statement, plus also protect uses in if statements, which the

Re: [Intel-gfx] [RFC] drm/i915: GEM_WARN_ON considered harmful

2018-09-24 Thread Jani Nikula
On Thu, 20 Sep 2018, Tvrtko Ursulin wrote: > Ping! > > Any comments here? > > Main goal was to allow GEM_WARN_ON as a statement, plus also protect > uses in if statements, which there are some who I think don't expect the > branch to completely disappear. I've said before I don't like the condi

Re: [Intel-gfx] [RFC] drm/i915: GEM_WARN_ON considered harmful

2018-09-20 Thread Tvrtko Ursulin
Ping! Any comments here? Main goal was to allow GEM_WARN_ON as a statement, plus also protect uses in if statements, which there are some who I think don't expect the branch to completely disappear. Regards, Tvrtko On 07/09/2018 12:53, Tvrtko Ursulin wrote: From: Tvrtko Ursulin GEM_WAR

[Intel-gfx] [RFC] drm/i915: GEM_WARN_ON considered harmful

2018-09-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin GEM_WARN_ON currently has dangerous semantics where it is completely compiled out on !GEM_DEBUG builds. This can leave users who expect it to be more like a WARN_ON, just without a warning in non-debug builds, in complete ignorance. Another gotcha with it is that it cannot b