Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	stable@vger.kernel.org
Subject: [PATCH 1/5] drm/xe: Read out rawclk_freq for display
Date: Mon, 19 Aug 2024 13:32:50 +0200	[thread overview]
Message-ID: <20240819113254.82286-2-maarten.lankhorst@linux.intel.com> (raw)
In-Reply-To: <20240819113254.82286-1-maarten.lankhorst@linux.intel.com>

Failing to read out rawclk makes it impossible to read out backlight,
which results in backlight not working when the backlight is off during
boot, or when reloading the module.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 44e694958b95 ("drm/xe/display: Implement display support")
Cc: <stable@vger.kernel.org> # v6.8+
---
 drivers/gpu/drm/xe/display/xe_display.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
index ca4468c820788..65d7a5040270e 100644
--- a/drivers/gpu/drm/xe/display/xe_display.c
+++ b/drivers/gpu/drm/xe/display/xe_display.c
@@ -157,6 +157,9 @@ int xe_display_init_noirq(struct xe_device *xe)
 
 	intel_display_device_info_runtime_init(xe);
 
+	RUNTIME_INFO(xe)->rawclk_freq = intel_read_rawclk(xe);
+	drm_dbg(&xe->drm, "rawclk rate: %d kHz\n", RUNTIME_INFO(xe)->rawclk_freq);
+
 	err = intel_display_driver_probe_noirq(xe);
 	if (err) {
 		intel_opregion_cleanup(xe);
-- 
2.45.2


  reply	other threads:[~2024-08-19 11:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 11:32 [PATCH 0/5] drm/xe/display: Fixes to make kexec work Maarten Lankhorst
2024-08-19 11:32 ` Maarten Lankhorst [this message]
2024-08-19 11:32 ` [PATCH 2/5] drm/xe/display: Match i915 driver suspend/resume sequences better Maarten Lankhorst
2024-08-19 11:32 ` [PATCH 3/5] drm/xe/display: Make display suspend/resume work on discrete Maarten Lankhorst
2024-08-19 11:32 ` [PATCH 4/5] drm/xe: Wire up device shutdown handler Maarten Lankhorst
2024-08-19 11:32 ` [PATCH 5/5] CI-only: Test if FLR is disabled? Maarten Lankhorst
2024-08-19 11:39 ` ✗ CI.Patch_applied: failure for drm/xe/display: Fixes to make kexec work 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=20240819113254.82286-2-maarten.lankhorst@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=stable@vger.kernel.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