From: "Souza, Jose" Subject: Re: [PATCH v2 5/6] drm/i915: Add PSR2 selective update status registers and bits definitions Date: Thu, 10 Jan 2019 22:45:20 +0000 Message-ID: References: <20190103142107.18304-1-jose.souza@intel.com> <20190103142107.18304-5-jose.souza@intel.com> <9bb3140c8b8a2d717b34fe3d8cfe6e006101f465.camel@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2070443942==" Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1944B6E0DE for ; Thu, 10 Jan 2019 22:45:22 +0000 (UTC) In-Reply-To: <9bb3140c8b8a2d717b34fe3d8cfe6e006101f465.camel@intel.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "intel-gfx@lists.freedesktop.org" , "Pandiyan, Dhinakaran" Cc: "Vivi, Rodrigo" List-Id: intel-gfx@lists.freedesktop.org --===============2070443942== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-wvKhUWF+JGymd+cbAN7P" --=-wvKhUWF+JGymd+cbAN7P Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-01-09 at 18:18 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2019-01-03 at 06:21 -0800, Jos=C3=A9 Roberto de Souza wrote: > > 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=20 > I suppose you mean 'polling'. Exacly that, thanks for catching this up. >=20 > > flip > > can show that the expected values are set for the current frame and > > the > > previous ones too. > The values correspond to the last 8 frames actually. changed >=20 > > v2: Improved macros(Dhinakaran) > Reviewed-by: Dhinakaran Pandiyan Thanks >=20 > > Cc: Rodrigo Vivi > > Cc: Dhinakaran Pandiyan > > Signed-off-by: Jos=C3=A9 Roberto de Souza > > --- > > drivers/gpu/drm/i915/i915_reg.h | 9 +++++++++ > > 1 file changed, 9 insertions(+) > >=20 > > 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 > > =20 > > +#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) --=-wvKhUWF+JGymd+cbAN7P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEVNG051EijGa0MiaQVenbO/mOWkkFAlw3yv0ACgkQVenbO/mO WklkZQgAgaLJGJKn9OsfvVqWlRPCcjp7+e6sXdUJJQjH90nEEWtI62u0icKjxVP7 61Mz1+489MQ4PUB558XbjfLAPtIjzeEpRR/gRLjFMrj99BEpLzQcFq+g7BrxpNBC qvEW0f8LxhBUIzuEk1UcXvDRe248+N6ABfE7TqXoAmqRUwWDLrzOMsehYqomfej9 JY8DuRhE3VLNnQ1DDjxLOv+P9y8p+w+sJc5Dq/9pxzbZ5/PooheMRDRRC1bT4V8j pS+o4tc/TzfUw2Md4tKaE0tVzl9ozAd2lsh39W8pzAbpD4QrNBrDp94/R7mlPR7X cTjUowVhp6r0ONc8FJOUzEi2grrNrA== =vsE6 -----END PGP SIGNATURE----- --=-wvKhUWF+JGymd+cbAN7P-- --===============2070443942== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============2070443942==--