Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp460863ybd; Wed, 26 Jun 2019 00:57:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7nnyROtDunvWYq4fCBZ7jtO9/Y8Y0ubgAVn1wci+SUPfUYEL3y9yTHc6meaqjIE6TEIY4 X-Received: by 2002:a17:90a:bd93:: with SMTP id z19mr3143936pjr.49.1561535826792; Wed, 26 Jun 2019 00:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561535826; cv=none; d=google.com; s=arc-20160816; b=T5osiVwTnUXBxYOouL3BTE5iiK0dP3SN+W1BCeeiTSEdX5s7MJPpJaum7oYNWMN7mn MrPgSZ/wzNo327j2XOs/e7O3MJs9VfEEo1MRq/AL9UBlwnFOuDsB/YKqBZNwc1hVcasr +zQ+E+/vaK6up0tq5hmY6u3bn8yNeOk4RrOOfFugFj5az/BC+fl8pgXQIbkDj+e2D8Of EUX28e8WVdAuJds2L/675inROvFqlmxqlZvyPe3flUBpa+D6/G/Ri4J3o6JY9PN4UrT6 zujSRnmfde3tjW4R5g7hqRA2s5N69j26C5vWyGMQTRuLyKQ5JYKGtWhZQRqF5JpUYy3/ k58g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J06sxnotVXUmy2gsp+jNRsdOqVuyZU6RawWZi0ImDV8=; b=StqadnwPgRa2r+8MaDZBWCxYLsaBpzcwmC+jsvhHB3WEg8s7e87AALqmYRgD5+HC3C QAorY8eyb3A/NJY8kUtKKQydbbOZoNdFOSQduga4Gb0vn7S7TJVXvoMf++NKsLWoZ1Wp cFpRHpD0CanJ4p7Aldxnaq/2xGTtoz1awIsqFwgo0DIA9NB4gIOoFEyO4vnIXAu7v1iE 16eakyWFFu0zlRTOhBzCuSHX/hFh4Qnc1SiUo35b9clLVG4EGvQsBsmlle1F8MN+dCUH flysjbYNVpp3ENQNoYvhcSXhW0eOXq0n5kWCZEG8BhwLR/u9NWU0bYvxZIjEkDPnHn2M 0iiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si16420288pfh.29.2019.06.26.00.56.50; Wed, 26 Jun 2019 00:57:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbfFZH4W (ORCPT + 99 others); Wed, 26 Jun 2019 03:56:22 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54846 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbfFZH4W (ORCPT ); Wed, 26 Jun 2019 03:56:22 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3F43180761; Wed, 26 Jun 2019 09:56:09 +0200 (CEST) Date: Wed, 26 Jun 2019 09:56:19 +0200 From: Pavel Machek To: pavel@ucw.cz Cc: linux-kernel@vger.kernel.org, Wen He , Liviu Dudau , Sasha Levin Subject: Re: [PATCH 4.19 55/90] drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times Message-ID: <20190626075619.GB32248@amd> References: <20190624092313.788773607@linuxfoundation.org> <20190624092317.745033085@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline In-Reply-To: <20190624092317.745033085@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-06-24 17:56:45, Greg Kroah-Hartman wrote: > [ Upstream commit 6a88e0c14813d00f8520d0e16cd4136c6cf8b4d4 ] >=20 > This patch trying to fix monitor freeze issue caused by drm error > 'flip_done timed out' on LS1028A platform. this set try is make a loop > around the second setting CVAL and try like 5 times before giveing up. > @@ -204,8 +205,18 @@ static void malidp_atomic_commit_hw_done(struct drm_= atomic_state *state) > drm_crtc_vblank_get(&malidp->crtc); > =20 > /* only set config_valid if the CRTC is enabled */ > - if (malidp_set_and_wait_config_valid(drm) < 0) > + if (malidp_set_and_wait_config_valid(drm) < 0) { > + /* > + * make a loop around the second CVAL setting and > + * try 5 times before giving up. > + */ > + while (loop--) { > + if (!malidp_set_and_wait_config_valid(drm)) > + break; > + } > DRM_DEBUG_DRIVER("timed out waiting for updated configuration\n"); > + } > + We'll still get the debug message even if malidp_set_and_wait_config_valid() suceeded. That does not sound right. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0TJSMACgkQMOfwapXb+vKtAgCeNGi0nFBLE7uq6SZwhkH941Op Fj0AoL5ZjsmX3Egg89O5I9S77t+0Ye5Z =xD1u -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM--