diff mbox series

[1/4] drm/i915: Add a notrace version of intel_de_read_fw

Message ID 20230613215245.1551145-2-radhakrishna.sripada@intel.com (mailing list archive)
State New, archived
Headers show
Series Use non traceable api in display trace code | expand

Commit Message

Sripada, Radhakrishna June 13, 2023, 9:52 p.m. UTC
Around the tracing infrastructure, certain registers are being
read resulting in nested traces. Introduce the no trace version
of intel_de_read_fw to be used in such scenarios.

Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
---
 drivers/gpu/drm/i915/display/intel_de.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_de.h b/drivers/gpu/drm/i915/display/intel_de.h
index 42552d8c151e..786211121ce2 100644
--- a/drivers/gpu/drm/i915/display/intel_de.h
+++ b/drivers/gpu/drm/i915/display/intel_de.h
@@ -93,6 +93,16 @@  intel_de_wait_for_clear(struct drm_i915_private *i915, i915_reg_t reg,
  * therefore generally be serialised, by either the dev_priv->uncore.lock or
  * a more localised lock guarding all access to that bank of registers.
  */
+static inline u32
+intel_de_read_fw_notrace(struct drm_i915_private *i915, i915_reg_t reg)
+{
+	u32 val;
+
+	val = intel_uncore_read_fw(&i915->uncore, reg);
+
+	return val;
+}
+
 static inline u32
 intel_de_read_fw(struct drm_i915_private *i915, i915_reg_t reg)
 {