Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4227613pxj; Tue, 25 May 2021 03:16:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4QsYnIaaJk684XJrhzR2XcVesr3P1oDjhOAdgGIAXHmYn7Udi3umkuoJk/JzWxJlx7t3a X-Received: by 2002:a5e:9907:: with SMTP id t7mr18891724ioj.155.1621937792206; Tue, 25 May 2021 03:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621937792; cv=none; d=google.com; s=arc-20160816; b=i7ii+qGT6syAPr/MKFthlwsaVQt+cDMjz3agNzqXY1kyaoTFqz++Q/Zc23rc7+e2Yz uReTjdXPHQ8JeeZe/m4LCtHPV8rVCDdyPKSfblbt/5PeU9ASNYIOsgThu2PyAEznCWwX fRmeVXznyG1Qrjy43PGvyue1FJkaOyuB4gthiPX1Pbw5GZ17MEaOq/z1N8+FDt2Tc+n1 iTAFOnCBIn97VvJeH5dN1/Sa9r80fX4dQWCItGwddzhtaOTAdnp3iD7qPT8sadZWINAB Ntx0/+TxnhlJ+ZWW9jZgixLbu2IGBmKINil2ev019OsK14ub7xWk+eefohhOqfI7caRP uaUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=ihjrZyupxC2RY6LoFXxJCvJTHQ9fJ9jSbr/clQHZS30=; b=MpetGpMoxswn6oxfKs5XcBzENR7Wy1MmXr5NGpkfBb/P7En4hXDWj1lfI88bu/NPeQ 65epwexUGqT9Z2SuV0LlK8gyD8WvAmoog+O18SCZJimTKhhi0fr6R7N44rTEWiLmmY30 wMDUFvmG4OUZZB8cTVWxM/2lGTTPFgXrpe8tRAYKVse2Mzix4dw4vRtdoyVu7sj33ni1 qBdQjNR9M6+ceNcpPeYN9lci2qyJX5LMaUwXm8bw0ol/hRur3DUdF/4IyCf39CwspMgC y1ABSxY5A+ftHFfpF+dDyLrLjKvEl2nYW8ZvvcTejVPFFNQTruXY2zD7ZslrJBqE4v85 LQ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=pQeXP5AI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dsT1bzI4; 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 f10si19300845ilu.68.2021.05.25.03.16.19; Tue, 25 May 2021 03:16:32 -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=fm2 header.b=pQeXP5AI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dsT1bzI4; 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 S232355AbhEYJMf (ORCPT + 99 others); Tue, 25 May 2021 05:12:35 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:57127 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbhEYJMe (ORCPT ); Tue, 25 May 2021 05:12:34 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 0BFCC9E2; Tue, 25 May 2021 05:11:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 25 May 2021 05:11:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=ihjrZyupxC2RY6LoFXxJCvJTHQ 9fJ9jSbr/clQHZS30=; b=pQeXP5AIk15bBOd/X+o0sOjoccxnmHsiH5psfIdsGm pDrEzLuifnSZoayrcHu5lzOEVDsOMuh4TqqA/khZ9Tvkyb1oDMTXOPVUp9dMPJ5U 1agg5ZzwlIrMwDHUZAXzvvszeZQKG4WcenIe5LkZcXy1LhnuTo550TpoHm2JQNtq Mv0NM+4ZXwwpA2qDIRVAz711fK2ML3xv7kVZbxN6R3Lq0T4uaz/F4K53WVRNsVGb lwUY2FnSbc/AnppofPjVuFIYPx2fUJaojCcSC60hTwQlzqr/pVMzNpRmsOzkVQ0+ HlxzmUTj22XMzJsq5ZcKetamtwQZBkEU3yIvnpPH8Z6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ihjrZy upxC2RY6LoFXxJCvJTHQ9fJ9jSbr/clQHZS30=; b=dsT1bzI4VX4yQaQAdk+pBK Ok9iwk7+5gjLjT7b+G6CpeGZ0dj0DNVHb1ef2Jo1CWN+CX2/pRgEv9bSSUAXJ/dS Z39fNiTKhZQv6CJWCqMnqNpMIwYmkrpw/4s9cylZFU2hon8HP0bo67GtHe3Ne0wn 0MzJ+J+7TnQgrSaOYi05cNPgcsry3MjJaRap9Byi/q85gMjYz0iiRqdsFm0t06b4 gRXMFwBEahGK2Vmji/CzWsdSV7CXdrXfOncQbZXWBaUlEPfStI0rJNHbFS6ZqGBa fRUu8gtmpNTG/nQO2hDGjQdbicKtGGjlMeviOTMpun7lah7rS/jt06zxpId/5OCg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekuddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh 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; Tue, 25 May 2021 05:11:01 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: Daniel Vetter , Boris Brezillon , linux-kernel@vger.kernel.org, Eric Anholt , Emma Anholt , Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , Maxime Ripard Subject: [PATCH 0/3] drm/vc4: Fix for the HDMI detect power state Date: Tue, 25 May 2021 11:10:56 +0200 Message-Id: <20210525091059.234116-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi,=0D =0D This fixes an issue found during a rework on the RPi3 where we would=0D end up with the detect callback of the HDMI connector called while the=0D device would be disabled.=0D =0D This unfortunately results in a complete CPU hang on the RaspberryPi.=0D =0D The documentation doesn't really provide any expectation on the power=0D state for various operations that could be performed while the device is=0D off, so the first patch makes that clear. The next two patches make sure=0D the device is sufficiently powered for detect to run without any issue.=0D =0D Let me know what you think,=0D Maxime=0D =0D Maxime Ripard (3):=0D drm: Mention the power state requirement on side-channel operations=0D drm/vc4: hdmi: Move the HSM clock enable to runtime_pm=0D drm/vc4: hdmi: Make sure the controller is powered in detect=0D =0D drivers/gpu/drm/vc4/vc4_hdmi.c | 45 ++++++++++++++++++++++++++--------=0D include/drm/drm_connector.h | 5 ++++=0D include/drm/drm_dp_helper.h | 4 +++=0D include/drm/drm_mipi_dsi.h | 5 ++++=0D 4 files changed, 49 insertions(+), 10 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D