Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06B8BC43603 for ; Wed, 18 Dec 2019 17:31:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBA6320717 for ; Wed, 18 Dec 2019 17:31:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBA6320717 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84DDC6E090; Wed, 18 Dec 2019 17:31:03 +0000 (UTC) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id EFD666E090 for ; Wed, 18 Dec 2019 17:31:01 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2019 09:31:01 -0800 X-IronPort-AV: E=Sophos;i="5.69,330,1571727600"; d="scan'208";a="210154534" Received: from ideak-desk.fi.intel.com ([10.237.72.183]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2019 09:31:00 -0800 Date: Wed, 18 Dec 2019 19:30:37 +0200 From: Imre Deak To: Ville Syrjala Message-ID: <20191218173037.GA30964@ideak-desk.fi.intel.com> References: <20191213133453.22152-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191213133453.22152-1-ville.syrjala@linux.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [Intel-gfx] [PATCH 1/6] drm/i915/fbc: Reject PLANE_OFFSET.y%4!=0 on icl+ too X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: imre.deak@intel.com Cc: intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Fri, Dec 13, 2019 at 03:34:48PM +0200, Ville Syrjala wrote: > From: Ville Syrj=E4l=E4 > = > icl and tgl are still affected by the modulo 4 PLANE_OFFSET.y > underrun issue. Reject such configurations on all gen9+ platforms. > = > Can be reproduced easily with the following sequence of > hardware poking: > while { > write FBC_CTL.enable=3D1 > wait for vblank > = > write PLANE_OFFSET .x=3D0 .y=3D32 > write PLANE_SURF > wait for vblank > = > # if PLANE_OFFSET.y is multiple of 4 the underrun won't happen > write PLANE_OFFSET .x=3D0 .y=3D31 > write PLANE_SURF > wait for vblank > = > # extra vblank wait is required here presumably > # to get FBC into the proper state > wait for vblank > = > write FBC_CTL.enable=3D0 > # underrun happens some time after FBC disable > wait for vblank > } > = > Both 8888 and 565 pixel formats and all tilinga formats > seem affected. Reproduced on KBL/GLK/ICL/TGL. BDW confirmed > not affected. > = > Closes: https://gitlab.freedesktop.org/drm/intel/issues/792 > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/display/intel_fbc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i= 915/display/intel_fbc.c > index 6f1d5c032681..a1048ece541e 100644 > --- a/drivers/gpu/drm/i915/display/intel_fbc.c > +++ b/drivers/gpu/drm/i915/display/intel_fbc.c > @@ -776,7 +776,7 @@ static bool intel_fbc_can_activate(struct intel_crtc = *crtc) > * having a Y offset that isn't divisible by 4 causes FIFO underrun > * and screen flicker. > */ > - if (IS_GEN_RANGE(dev_priv, 9, 10) && > + if (INTEL_GEN(dev_priv) >=3D 9 && > (fbc->state_cache.plane.adjusted_y & 3)) { > fbc->no_fbc_reason =3D "plane Y offset is misaligned"; > return false; > -- = > 2.23.0 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx