From: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] [PATCH 2/4] drm/i915: Add a dummy notrace version of intel_de_read64_2x32
Date: Tue, 13 Jun 2023 14:52:43 -0700 [thread overview]
Message-ID: <20230613215245.1551145-3-radhakrishna.sripada@intel.com> (raw)
In-Reply-To: <20230613215245.1551145-1-radhakrishna.sripada@intel.com>
intel_de_read64_2x32 and hence intel_uncore_read64_2x32 do not use any
of the tracing api's. It is however important to distinguish between the
tracing and non tracing versions to avoid nesting of tracing events.
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
---
drivers/gpu/drm/i915/display/intel_de.h | 7 +++++++
drivers/gpu/drm/i915/intel_uncore.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_de.h b/drivers/gpu/drm/i915/display/intel_de.h
index 786211121ce2..25d6f3317eca 100644
--- a/drivers/gpu/drm/i915/display/intel_de.h
+++ b/drivers/gpu/drm/i915/display/intel_de.h
@@ -22,6 +22,13 @@ intel_de_read8(struct drm_i915_private *i915, i915_reg_t reg)
return intel_uncore_read8(&i915->uncore, reg);
}
+static inline u64
+intel_de_read64_2x32_notrace(struct drm_i915_private *i915,
+ i915_reg_t lower_reg, i915_reg_t upper_reg)
+{
+ return intel_uncore_read64_2x32_notrace(&i915->uncore, lower_reg, upper_reg);
+}
+
static inline u64
intel_de_read64_2x32(struct drm_i915_private *i915,
i915_reg_t lower_reg, i915_reg_t upper_reg)
diff --git a/drivers/gpu/drm/i915/intel_uncore.h b/drivers/gpu/drm/i915/intel_uncore.h
index 9ea1f4864a3a..a189953957ef 100644
--- a/drivers/gpu/drm/i915/intel_uncore.h
+++ b/drivers/gpu/drm/i915/intel_uncore.h
@@ -484,6 +484,8 @@ intel_uncore_read64_2x32(struct intel_uncore *uncore,
return (u64)upper << 32 | lower;
}
+#define intel_uncore_read64_2x32_notrace(...) intel_uncore_read64_2x32(__VA_ARGS__)
+
static inline int intel_uncore_write_and_verify(struct intel_uncore *uncore,
i915_reg_t reg, u32 val,
u32 mask, u32 expected_val)
--
2.34.1
next prev parent reply other threads:[~2023-06-13 21:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 21:52 [Intel-gfx] [PATCH 0/4] Use non traceable api in display trace code Radhakrishna Sripada
2023-06-13 21:52 ` [Intel-gfx] [PATCH 1/4] drm/i915: Add a notrace version of intel_de_read_fw Radhakrishna Sripada
2023-06-13 21:52 ` Radhakrishna Sripada [this message]
2023-06-13 21:52 ` [Intel-gfx] [PATCH 3/4] drm/i915: Make intel_crtc_get_vblank_counter use no trace hw reads Radhakrishna Sripada
2023-06-22 19:41 ` Lucas De Marchi
2023-06-22 21:50 ` Sripada, Radhakrishna
2023-06-13 21:52 ` [Intel-gfx] [PATCH 4/4] drm/i915: Make intel_get_crtc_scanline " Radhakrishna Sripada
2023-06-14 1:02 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Use non traceable api in display trace code Patchwork
2023-06-14 1:04 ` philly j
2023-06-14 1:05 ` philly j
2023-06-14 1:16 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-06-14 7:37 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230613215245.1551145-3-radhakrishna.sripada@intel.com \
--to=radhakrishna.sripada@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox