All of lore.kernel.org
 help / color / mirror / Atom feed
From: "José Roberto de Souza" <jose.souza@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: [PATCH v2 5/6] drm/i915: Add PSR2 selective update status registers and bits definitions
Date: Thu,  3 Jan 2019 06:21:06 -0800	[thread overview]
Message-ID: <20190103142107.18304-5-jose.souza@intel.com> (raw)
In-Reply-To: <20190103142107.18304-1-jose.souza@intel.com>

This register contains how many blocks was sent in the past selective
updates.
Those registers are not kept set all the times but pulling it after flip
can show that the expected values are set for the current frame and the
previous ones too.

v2: Improved macros(Dhinakaran)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/i915_reg.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 44958d994bfa..f9712d05314b 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -4272,6 +4272,15 @@ enum {
 #define EDP_PSR2_STATUS_STATE_MASK     (0xf << 28)
 #define EDP_PSR2_STATUS_STATE_SHIFT    28
 
+#define _PSR2_SU_STATUS_0		0x6F914
+#define _PSR2_SU_STATUS_1		0x6F918
+#define _PSR2_SU_STATUS_2		0x6F91C
+#define _PSR2_SU_STATUS(index)		_MMIO(_PICK_EVEN((index), _PSR2_SU_STATUS_0, _PSR2_SU_STATUS_1))
+#define PSR2_SU_STATUS(frame)		(_PSR2_SU_STATUS((frame) / 3))
+#define PSR2_SU_STATUS_SHIFT(frame)	(((frame) % 3) * 10)
+#define PSR2_SU_STATUS_MASK(frame)	(0x3ff << PSR2_SU_STATUS_SHIFT(frame))
+#define PSR2_SU_STATUS_FRAMES		8
+
 /* VGA port control */
 #define ADPA			_MMIO(0x61100)
 #define PCH_ADPA                _MMIO(0xe1100)
-- 
2.20.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2019-01-03 14:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-03 14:21 [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks José Roberto de Souza
2019-01-03 14:21 ` [PATCH v2 2/6] drm/i915: Refactor PSR status debugfs José Roberto de Souza
2019-01-03 16:29   ` Souza, Jose
2019-01-09 22:34   ` Dhinakaran Pandiyan
2019-01-10 15:21     ` Rodrigo Vivi
2019-01-03 14:21 ` [PATCH v2 3/6] drm/i915/psr: Make intel_psr_set_debugfs_mode() only handle PSR mode José Roberto de Souza
2019-01-04  6:53   ` Maarten Lankhorst
2019-01-04 13:28     ` Souza, Jose
2019-01-04 14:35       ` Maarten Lankhorst
2019-01-04 15:52         ` Souza, Jose
2019-01-07 10:53           ` Maarten Lankhorst
2019-01-03 14:21 ` [PATCH v2 4/6] drm/i915/psr: Do not print last attempted entry or exit in PSR debugfs while in PSR2 José Roberto de Souza
2019-01-10  1:24   ` Dhinakaran Pandiyan
2019-01-10 23:00     ` Souza, Jose
2019-01-03 14:21 ` José Roberto de Souza [this message]
2019-01-10  2:18   ` [PATCH v2 5/6] drm/i915: Add PSR2 selective update status registers and bits definitions Dhinakaran Pandiyan
2019-01-10 22:45     ` Souza, Jose
2019-01-03 14:21 ` [PATCH v2 6/6] drm/i915/debugfs: Print PSR selective update status register values José Roberto de Souza
2019-01-10  2:11   ` Dhinakaran Pandiyan
2019-01-10 22:29     ` Souza, Jose
2019-01-03 15:13 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks Patchwork
2019-01-03 15:33 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-01-03 17:16 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev2) Patchwork
2019-01-04 13:30 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev3) Patchwork
2019-01-09 22:05 ` [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks Dhinakaran Pandiyan

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=20190103142107.18304-5-jose.souza@intel.com \
    --to=jose.souza@intel.com \
    --cc=dhinakaran.pandiyan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.