From patchwork Tue May 25 09:10:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12278245 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 315B5C2B9F8 for ; Tue, 25 May 2021 09:11:17 +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 D18766141B for ; Tue, 25 May 2021 09:11:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D18766141B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7755B6E817; Tue, 25 May 2021 09:11:11 +0000 (UTC) Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by gabe.freedesktop.org (Postfix) with ESMTPS id 26CDB6E053 for ; Tue, 25 May 2021 09:11:05 +0000 (UTC) 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 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 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Gover , Emma Anholt , Dave Stevenson , Boris Brezillon , linux-kernel@vger.kernel.org, Phil Elwell , Dom Cobley Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This fixes an issue found during a rework on the RPi3 where we would end up with the detect callback of the HDMI connector called while the device would be disabled. This unfortunately results in a complete CPU hang on the RaspberryPi. The documentation doesn't really provide any expectation on the power state for various operations that could be performed while the device is off, so the first patch makes that clear. The next two patches make sure the device is sufficiently powered for detect to run without any issue. Let me know what you think, Maxime Maxime Ripard (3): drm: Mention the power state requirement on side-channel operations drm/vc4: hdmi: Move the HSM clock enable to runtime_pm drm/vc4: hdmi: Make sure the controller is powered in detect drivers/gpu/drm/vc4/vc4_hdmi.c | 45 ++++++++++++++++++++++++++-------- include/drm/drm_connector.h | 5 ++++ include/drm/drm_dp_helper.h | 4 +++ include/drm/drm_mipi_dsi.h | 5 ++++ 4 files changed, 49 insertions(+), 10 deletions(-)