Re: [PATCH 9/9] drm/i915: Make intel_display_power_put_unchecked() an internal-only function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 30, 2020 at 10:07:01PM +0000, Chris Wilson wrote:
> Quoting Imre Deak (2020-11-30 21:22:00)
> > All the display power domain references are wakeref tracked now, so we
> > can mark intel_display_power_put_unchecked() as an internal function
> > (for suppressing wakeref tracking in non-debug builds).
> > 
> > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Imre Deak <imre.deak@xxxxxxxxx>
> 
> Ok, after all previous patches it will only be called from the header
> after throwing away the wakeref.
> 
> I have a sneaky suspicion you might take another path after reviewing
> the danger caused by the debug build, 

Yes, how about also adding:

+static inline void
+____intel_display_power_put(struct drm_i915_private *i915,
+                           enum intel_display_power_domain domain,
+                           intel_wakeref_t wakeref)
+{
+       intel_display_power_put_unchecked(i915, domain);
+}
+
 static inline void
 intel_display_power_put(struct drm_i915_private *i915,
                        enum intel_display_power_domain domain,
                        intel_wakeref_t wakeref)
 {
-       intel_display_power_put_unchecked(i915, domain);
+       ____intel_display_power_put(i915, domain, wakeref);
 }

(and similar change for intel_display_power_put_async()) ?

> but if you want to keep this patch,

> Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> -Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux