Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp597239pxb; Thu, 19 Aug 2021 07:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd5RNjLsquTJRXQTAjWGlq/mle24AQsDSyQKSI28HZY9RDnTvz5JhN9Xhotpb+U2V9YRq7 X-Received: by 2002:a05:6638:3b0:: with SMTP id z16mr12787314jap.139.1629381647888; Thu, 19 Aug 2021 07:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629381647; cv=none; d=google.com; s=arc-20160816; b=SYfxzRJS1PY3UYcqd1pNfF6STAAh2atf9wSqxCDDQeoNFDpM9JaHhr60D5/51OcHO2 svYVe3a6QvTF8HtKWbzKjXbM9IdyC+Zsu/pT8gGOy/mtS12Ll/DaxCp2tQF9u5nAm6yZ sOjavZorn+ZxIM4RO5dccnp3s7fZOfWAVzsFJIlEUlhTPGCpbSF2SPGcu0Ot/yTE8z0t JcgqqROpt+ghgT6lXDhCvQXiH0wm+y+Y1JFYNBmWfU0aYvAJmeLTqB/W0zWJ0wrfvQ5A BDPnnlqsYMF92TubSqVJtpIHweYRp195rIkaRjlxtdKCLd5BKSi7FjUlXwHB3hFsme5y zD6A== 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=WeOGVBQq6iP3tN4+YB3IfpyTJFtv7MLMNgGBh0iNUrw=; b=sd37a01RythTNqsclX7BMVF4L4JkFG3EmL9Gr1HRpAbdGWHtgRvCuVEZK1oZiYwkUb mnCxCQzBpisYdrcrlZBXOQn2f297cvoXYwRgioJ7O24v8ZRyaLPVmLPEgnXxTYYyhw7O qwu5hFsJtGTV5ZcT3Gv8BhKCps5yvwD7GCcy4AlbcN9wor/QXbZQSvN+ZFT5IRn/atx8 R8ptDjbCRr4tJfvxeuqJLPKIeVko4ZhQrqdxBTkqVtAxbImbbGodr+wCTNwJWhFqw3Xx IXgm/Ca4ISvyRUb42UfxiK0UDYpQ8CzS28dZjy5/MdLGbKGRMFsYWi1jgmrieRoJhfRF DxqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=2aaGpTxi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=uhONl4JU; 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 h22si3082879jal.57.2021.08.19.07.00.36; Thu, 19 Aug 2021 07:00:47 -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=2aaGpTxi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=uhONl4JU; 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 S240406AbhHSOAP (ORCPT + 99 others); Thu, 19 Aug 2021 10:00:15 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:51715 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240163AbhHSOAP (ORCPT ); Thu, 19 Aug 2021 10:00:15 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id B02042B00560; Thu, 19 Aug 2021 09:59:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 19 Aug 2021 09:59:38 -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=fm3; bh=WeOGVBQq6iP3tN4+YB3IfpyTJF tv7MLMNgGBh0iNUrw=; b=2aaGpTxizbAsJxle2NCopSZUjW+t1R2tPQCX90UHPR rBjqdauhnciKv/4v+Zmo6nOdzMbklGXT2jcPecH6CtYFwDdIqZ2zSbPkvnSh2mXx EjxMPwgb4CL+x0oKyT2MLW/xi8SsIgP/5vwiOhUR+m+c1mpYXQqBHVojs5YuhQLU hLXfrNbdHLweFt5XVnX6TqUjeC6GBnH5OS7Ux6+vCXsteR6cBX1g7aNafV1LQkQR +nF1bDiU9jjnwEVNkwa2+bVUfp66w4PlhrVvY4dU8CAywe2UKw5c2byQT+gsIEkM ZWNDK+Bld35jtahu8j064ducf9N3kaMIuQyR2OmfjoFQ== 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=fm3; bh=WeOGVB Qq6iP3tN4+YB3IfpyTJFtv7MLMNgGBh0iNUrw=; b=uhONl4JUuuJyWSnpApX8Z1 e+KlGicaDkseEJgB+OmMlz3SK32+qAJPcuyYlDg05lmhaEws52kMQMiaBSXnt4bI xy9ZrkEryvi6YHDb1LB2JRkXlfz9QOZWUI2a0h+VbUIo6AnHEZKFvc5EIXaagBeP mQqZhGRIZ6bfV7S9RTOjD3IPAAAjWV/RTYDSO3NnuFpHiTwjyb/jn0l+aNLdeOlf zW2wfHAYREaN645rZCdiIVziu7glIpGgOs7854+hGxXDvRNV0MFGvzCyWSYMJTKw R6maZPTJAnnlTdibmZ3S76qAYCEzW/2KKh2VL1BROxdytAGEfh5gEGxa1Njdlz5Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleejgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Aug 2021 09:59:34 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: linux-kernel@vger.kernel.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , Boris Brezillon , linux-rpi-kernel@lists.infradead.org, Hans Verkuil , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Nicolas Saenz Julienne , Maxime Ripard Subject: [PATCH v3 0/6] drm/vc4: hdmi: Fix CEC access while disabled Date: Thu, 19 Aug 2021 15:59:25 +0200 Message-Id: <20210819135931.895976-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 series aims at fixing a complete and silent hang when one tries to use= CEC=0D while the display output is off.=0D =0D This can be tested with:=0D =0D echo off > /sys/class/drm/card0-HDMI-A-1/status=0D cec-ctl --tuner -p 1.0.0.0=0D cec-compliance=0D =0D This series addresses it by making sure the HDMI controller is powered up a= s=0D soon as the CEC device is opened by the userspace.=0D =0D Let me know what you think,=0D Maxime=0D =0D Changes from v2:=0D - Rebased on top of drm-misc-fixes=0D - Fixed a build error=0D =0D Changes from v1:=0D - More fixes=0D - Added a big warning if we try to access a register while the device is= =0D disabled.=0D - Fixed the pre_crtc_configure error path=0D =0D Maxime Ripard (6):=0D drm/vc4: select PM=0D drm/vc4: hdmi: Make sure the controller is powered up during bind=0D drm/vc4: hdmi: Rework the pre_crtc_configure error handling=0D drm/vc4: hdmi: Split the CEC disable / enable functions in two=0D drm/vc4: hdmi: Make sure the device is powered with CEC=0D drm/vc4: hdmi: Warn if we access the controller while disabled=0D =0D drivers/gpu/drm/vc4/Kconfig | 1 +=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 125 ++++++++++++++++++----------=0D drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 6 ++=0D 3 files changed, 90 insertions(+), 42 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D