Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3384078ybt; Tue, 30 Jun 2020 01:06:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhcj1diBCYwp0rhIx14j7hcXp+8lIjljdkTzJW9BnUijTUSMUBp+X2c46xBbcerNYGXyph X-Received: by 2002:a17:906:4f82:: with SMTP id o2mr9030743eju.424.1593504376737; Tue, 30 Jun 2020 01:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593504376; cv=none; d=google.com; s=arc-20160816; b=s3m0qfNJcvi24F+yeclTVBRRkqrKzT7cA7zrTWy3n67iqmBM98j5BezXSsoq6n8dlj iTZgrw1RLN6uEuMQX1MjdC9FoG4QjR2MMHlKfVZgGAwseUBaq6oWcB/2AQQ0faqzj8qu YB0YxkfgbpHxpQ/Yddl+/krtw6j437yN6r84GSRud4IiyxpWF7z2JvqhPV6+eoiM3iG4 cTpGn75Y19rglONgwsz0LpOBu4vtbeElH97Mb+nHy94jqxXB//8PZNr/3alSfQ35c7PF UvDu5baSbhGsydM12X1T/GjAaOhZ2QRv1gqqjgd3ibaW+Cx2kP0CQaf49/6LjETgH6XH chiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=lu/WrihdsYQOer+w6h1sKVAQhhhzpgn9ANfbrgSBg08=; b=nySsOJZoIbnuQTZ5H7UUouFWDNOzSjoISoCIyDwCmOtAaciHxkRKX8FY0lhPGl41Hb JpYfFPgL7Dj9G1LYo6V+kI23wG4ixxSN+kVTuajyozaVUy2PXcHqpkg1np/GiaYJPa9Y DWFofYIHXGpTTlwEnkfzHJvEpMOvBL85jgI3wVmLW/Xtu637JiQBtmOX1U7mqwPs8jjN LB8m3lnr6CMYHMG3/6P1jjRSpsn5RCm69s1DTDqug+1TXS9nErxpCtLUJos83qX3mj8c XrBLp/5ENFZ6SBXc2VHjyXaKZ5FJnnEX7amyBJ/qQyvg4veynwMkZTVRQ9ySAK656pLn lp8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="g9qa6/3v"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=IENVijjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nk6si1324059ejb.171.2020.06.30.01.05.54; Tue, 30 Jun 2020 01:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="g9qa6/3v"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=IENVijjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730686AbgF3IDB (ORCPT + 99 others); Tue, 30 Jun 2020 04:03:01 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:39149 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbgF3ICm (ORCPT ); Tue, 30 Jun 2020 04:02:42 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B3F5C252; Tue, 30 Jun 2020 04:02:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 30 Jun 2020 04:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=lu/WrihdsYQOer+w6h1sKVAQhhh zpgn9ANfbrgSBg08=; b=g9qa6/3vky6RpenoRSFz45zMGoY4KA1E6jJ0ZUcRlEV PQcFqd2AKRhgIaYvOf/xP29zscXyHpDGRrWtCl4WxMhPhmbQ+jRrNnBuMAcwCTdI 5f0s03IvSlUqq2Wsb0eyaFpZ4emls8T4KMikrDhjWaYDcU/jbhqkrvBTQ+j/SaDM frRilLO1PAoEStRK4Tpa4AU8+Lird/mo7WTS8GWFDoofnPbkvgp1803YopTt61n6 VYaM2OsbJct65v3QU2aCKXAN7KQbZpUkB/2irR7fA7szGLuzIxb4u8eltpWdx8xi J3TvQIqfNXYrIadNJUyVlUdBjgqNLVjBBkMx3dmyBGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=lu/Wri hdsYQOer+w6h1sKVAQhhhzpgn9ANfbrgSBg08=; b=IENVijjTKHsAo29my84QNt HY8lF7lDEOJ1kLi3ESudeyXEHRivnOWiNwwtK0hFN0ul7TjHAChlcJ9b/UzEhDHo 2eSoaardOH9Tki2+UbX0NcHp8T+t9rF6ldTEmBqXEeD0iRl/n+MqM88uGD/YexL0 i7rEqqodW1Nbz/TEu5c0Ktgyj2ZYvr5Sq8IKPiG+hAT4eIDXqbD+Df4RjhDxytpa HQDi64fBZOLZPdGKuqhLFiD1D3ph99Tl74Payu2AtJc3oLcRgtinz2LfM2+qapUa EhyIrnoGNF/cXhGkxJro55Kk40oA2hXYpU3L8v3v4EGPz5o64hxYzEowPxEE4gTw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvddttddguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeefjeefkeduiefgkefgheefteekueetkeeiueekgedvvdevgfejgfduudei veejieenucffohhmrghinhepshhuphgvrhhushgvrhdrtghomhdprghrmhgsihgrnhdrtg homhenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 04A033280066; Tue, 30 Jun 2020 04:02:38 -0400 (EDT) Date: Tue, 30 Jun 2020 10:02:37 +0200 From: Maxime Ripard To: Chen-Yu Tsai Cc: David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: sun4i: hdmi: Remove extra HPD polling Message-ID: <20200630080237.dsg7umd6ju2oamg4@gilmour.lan> References: <20200629060032.24134-1-wens@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f6hdlqsued72r5t5" Content-Disposition: inline In-Reply-To: <20200629060032.24134-1-wens@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f6hdlqsued72r5t5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Jun 29, 2020 at 02:00:32PM +0800, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai >=20 > The HPD sense mechanism in Allwinner's old HDMI encoder hardware is more > or less an input-only GPIO. Other GPIO-based HPD implementations > directly return the current state, instead of polling for a specific > state and returning the other if that times out. >=20 > Remove the I/O polling from sun4i_hdmi_connector_detect() and directly > return a known state based on the current reading. This also gets rid > of excessive CPU usage by kworker as reported on Stack Exchange [1] and > Armbian forums [2]. >=20 > [1] https://superuser.com/questions/1515001/debian-10-buster-on-cubietru= ck-with-bug-in-sun4i-drm-hdmi > [2] https://forum.armbian.com/topic/14282-headless-systems-and-sun4i_drm= _hdmi-a10a20/ >=20 > Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") > Signed-off-by: Chen-Yu Tsai Applied, thanks for figuring that out Maxime --f6hdlqsued72r5t5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXvrxnQAKCRDj7w1vZxhR xe0/AP9AfcSEFn4bwp+kbpsDasBM88jTsQJiznSvcxSJ4WCaWwEA/XSg2I9jaQuc Vrmg3HbVedQSShsVClRiJer2EomSNgY= =Tbdr -----END PGP SIGNATURE----- --f6hdlqsued72r5t5--