From: "Souza, Jose" Subject: Re: [PATCH 1/2] drm/i915: Bump skl+ wm blocks to 11 bits Date: Wed, 6 Feb 2019 00:47:26 +0000 Message-ID: <3189c55d5a7ca81f702462eb6afb72212cab0df8.camel@intel.com> References: <20190205205056.30081-1-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0965876431==" Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5725B6E824 for ; Wed, 6 Feb 2019 00:47:29 +0000 (UTC) In-Reply-To: <20190205205056.30081-1-ville.syrjala@linux.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: "ville.syrjala@linux.intel.com" , "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org --===============0965876431== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-4iLBNrRVrr5I1lBU8PeZ" --=-4iLBNrRVrr5I1lBU8PeZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-02-05 at 22:50 +0200, Ville Syrjala wrote: > From: Ville Syrj=C3=A4l=C3=A4 >=20 > On icl the plane watermark blocks field is 11 bits. Bump our define > to > match so that readout won't ignore the extra bit. We can safely do > this > for older platforms too since the unused bits are hardwired to zero. Reviewed-by: Jos=C3=A9 Roberto de Souza >=20 > Cc: Jos=C3=A9 Roberto de Souza > Signed-off-by: Ville Syrj=C3=A4l=C3=A4 > --- > drivers/gpu/drm/i915/i915_reg.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/i915/i915_reg.h > b/drivers/gpu/drm/i915/i915_reg.h > index 12964b0fbc54..2be34e13af78 100644 > --- a/drivers/gpu/drm/i915/i915_reg.h > +++ b/drivers/gpu/drm/i915/i915_reg.h > @@ -6000,7 +6000,7 @@ enum { > #define PLANE_WM_EN (1 << 31) > #define PLANE_WM_LINES_SHIFT 14 > #define PLANE_WM_LINES_MASK 0x1f > -#define PLANE_WM_BLOCKS_MASK 0x3ff > +#define PLANE_WM_BLOCKS_MASK 0x7ff /* skl+: 10 bits, icl+ 11 > bits */ > =20 > #define _CUR_WM_0(pipe) _PIPE(pipe, _CUR_WM_A_0, _CUR_WM_B_0) > #define CUR_WM(pipe, level) _MMIO(_CUR_WM_0(pipe) + ((4) * (level))) --=-4iLBNrRVrr5I1lBU8PeZ 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/mOWkkFAlxaLp0ACgkQVenbO/mO Wklwdwf7BipmVdTwf2nyvfvePqehGknTkoJ8Cv/T++f9YC0W8jGNDxQUZcV9bnOE Frsytg+OlekKPyUt3QOXbRsaLKwb7tFEU6dHwlwc/pXOTezOwYtjhF4iGlXV1eQj zhp8iOx8tyZrvtkYEjDAOyPtVZmQi9v6wNxnAyP4QInJpXuu5P6nyxKKkvQaHUHV cLitHg+5Md8UuDZf9XNg6wuRM5QXM7i1XE30Cyzmoky1+oL/RortkPNYAgKlyB9h SX0+46t5xzMQ2SeGxX0/om11Puo+DjpOm7qlam6V9DS16+kA8ak+j0zKC1s2VSoi efLmQlWOov3MXIQCHk9J6gYiJmJmvQ== =LtuM -----END PGP SIGNATURE----- --=-4iLBNrRVrr5I1lBU8PeZ-- --===============0965876431== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0965876431==--