Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp440782lqp; Wed, 12 Jun 2024 06:26:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjReikQmcqmY+VWXqBkascqRaknhjJQmHGO3GhQQDXtk6c/JqXYEsCCdpLYjUhW30lO4GtQlrFhU1I9GHg5F14Vx5hhY6FT+YwgeZqLg== X-Google-Smtp-Source: AGHT+IHup6DeCw0rv6qPqIQQ/nf5nOWy7BQzqfzW0tJeu+mHK/LFwjPWf459p0eZW1/ZmQhmTrvL X-Received: by 2002:a17:902:e5c9:b0:1f7:19d6:f9a with SMTP id d9443c01a7336-1f83b523452mr22893125ad.5.1718198782716; Wed, 12 Jun 2024 06:26:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718198782; cv=pass; d=google.com; s=arc-20160816; b=Q7JbvVjXXQyjjciOQRbAlEsP4OK/aduBWahDTelhL53nTgkoYqioDJORz7XACrcYAr 7nKiLby/uKAdhmXUR4yYoJjIzw+G0/Y46NKHdFWojBF8eQ/x6B6SMastFo6Jpbii4H1g ZdsuUZmHI5hLWPsqhickftM8Wjd1RwBJh+JWFBRqfVhKXv00bY5cJoCaR2zU72yHaC4I TwmbAAveF+QG/b1HHvJSgRJdAEOr7+qxO1NcERjfuNYTj9TH2bNp1mqf7m6u34K1So4c /xGv5YqdZP9lnvhPkcIBDAQe/0dodeX1zjqof7QZoU6fKzrwzbvmmkSVwo1tSrwdc36q BbJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=qsoWuzn17VvjikVzQz6+Jyxo7R4j3K1aNLPcDUzQdZE=; fh=lwskACdeERPMA4r+XRDIlxuNZvgmHNGeI/8f0Oavkm0=; b=JXU40+2CuzjD4IM7LBOG4S/QF/FIDB1oka9lnLXPpPdD7tH2tbus8DZhOan64cPIVz 7qgq69qCL2zghmOiVPsfagXMj0U2TD/S6cwB9TYev6KhscSOT8tvjTwo0lPIz0m538K8 Zq2Al75Sm+SfSgF5h6LXoK5sUK2BeIVFiuTEh5MHyEUxybH7nUB6BvJPPRy/FPQDvKFV Yfml+VPn1BQU4NXgKL0rAQJA2yq9p76xPhfnuIPvNz6Hv9hBa5yT0/yGEQpYeDFLGbIZ apGng1ycbvNHYRxjyt0vWxbevEjOYKwoRl6ZI32gyntHpAlWVxnAyzLab13GVOwguG9F aHUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JfE3Nu+l; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-211551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6da5d896esi81094385ad.603.2024.06.12.06.26.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 06:26:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JfE3Nu+l; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-211551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DC79EB21BCE for ; Wed, 12 Jun 2024 13:22:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B39BD17B408; Wed, 12 Jun 2024 13:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JfE3Nu+l" Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F0951791F4 for ; Wed, 12 Jun 2024 13:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718198536; cv=none; b=hAFoJQ31yBawAgahfYLJRlKiFn7xysQyfBnvndyyJ6oLMz3Wx1t40J/4lJpgMmiOiCnsKrxhRi0nSTaG+YIXU4qcY73P7dgKbhjrlhbsQkdn4bu3wo59qjelU+w7GnMYT8nSKAryv+/rOEXU1fOfVL2+aACJDShrdU+ihnaRYMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718198536; c=relaxed/simple; bh=RM/yyON+6lyB6Kj4FOxNNV+NuZ2jFCP1VoFpY0bDmWo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rHAVF3t2YHiSr4I63pZ/BUnzF3X1pyNRnJR/av9QJgcPEOpmgD0V/SC8IXMbVxMqS8x1okxpfgU9Uj/iMzl6M71zkGQoqt/hHDmijMsWfqPREBoTEiJvjpYpr4EXolsuTAX/W6d6uFnp8mOEPt9LOVPlTDs4tJka/k5iVuGQjfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JfE3Nu+l; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-62a08092c4dso24425697b3.0 for ; Wed, 12 Jun 2024 06:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718198534; x=1718803334; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qsoWuzn17VvjikVzQz6+Jyxo7R4j3K1aNLPcDUzQdZE=; b=JfE3Nu+lmQGflisTTxgOBVHAJbnSfMDvQr63ehaSAYORVOR52uudhzIClbDtCANmx4 GYiJqVM4BFGMns809djxKdwe/uCR8iFx/tiR9hD/xyrJFhPEpYJYyi0OGF4Qo9ePE6sS ZXimjFnq+J800ZP6lkvAOTHz7QbAQ3nZGqkaMb1J9oQrtcSPck7Rb9Nm2OyZiWxvh+rT gMDSk6C6k6FWYiy+M8XYDPGr+nLJG0mKRNWSfkrhvoHEaDz3UErKiT96yhWnTJ4FvKdc X0w9N7jApdNqrBSDw53srx3yJH9nonelAeJAt3UHm4wBTbDFAWs3M+RIIJ180LS4stKx yRCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718198534; x=1718803334; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qsoWuzn17VvjikVzQz6+Jyxo7R4j3K1aNLPcDUzQdZE=; b=IFCxjybZw3LdQAATqdEMY44FzBlwrZ998h/0eYhKI6ykhd08gsFmN559NNaJog2cMG HXtPpy0ujnF0/n2kC3ioT5GhFbab7CZd9+9jjzmj+gAYLLxTuAjcJTjqIDhBiXM3CbK9 aPDfhuOEjFFEqM5HvnhL7Jaqt9Y7Nuuju8CLvte3qk9m+yLgpONALgcxSsefo9CuLDsX Iq5SIogjtkyUNvx2Wh3eHGxXsrAyuNLY9dNTVpd8F1xwOjsPVMoIIzLR0juTXllOaxTf JpLQW2/iJc3U2ydNRlDw5GBs4AyQfU+W/r/r9V7S4oDbAisLaUZ8k9VLt3dd8AOHkGY5 9Y6Q== X-Forwarded-Encrypted: i=1; AJvYcCWoIFL4Jej5IR6WvUBy2G7aDUSy+BC4RB3RDKqB/8sAiuAeyeNbLikR6ALPeBYSEvFVJO2YYcUyGMSF1FodetYRpwGYhI3e2jy+V2y9 X-Gm-Message-State: AOJu0YyvHqUIRfWk5k5sehDOA4en/HervWRVXwm3uyCEQY92Nl0DISeU ts6snOViFdKlmTyX/qs70hrf9hQeErAJn+5/e/PuPudTsXlQRWCdGCmnhz07KmITpbwsP8FA+ci cZAsVHe0rMzVWT1Zde1dTc/1O5GHl+elmGTie5A== X-Received: by 2002:a0d:d841:0:b0:62c:e8a2:305 with SMTP id 00721157ae682-62fba375c1fmr16113497b3.41.1718198534271; Wed, 12 Jun 2024 06:22:14 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240522-fd-hdmi-hpd-v2-13-c30bdb7c5c7e@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 12 Jun 2024 16:22:03 +0300 Message-ID: Subject: Re: [PATCH v2 13/14] drm/msm/hdmi: ensure that HDMI is one if HPD is requested To: Markus Elfring Cc: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar , Daniel Vetter , David Airlie , Marijn Suijten , Rob Clark , Sean Paul , LKML , Jessica Zhang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 12 Jun 2024 at 16:01, Markus Elfring wrote: > > =E2=80=A6 > > +++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c > > @@ -117,11 +117,13 @@ static void msm_hdmi_bridge_atomic_pre_enable(str= uct drm_bridge *bridge, > > > > DBG("power up"); > > > > + mutex_lock(&hdmi->state_mutex); > > if (!hdmi->power_on) { > =E2=80=A6 > > } > > + mutex_unlock(&hdmi->state_mutex); > > > > if (hdmi->hdmi_mode) { > > msm_hdmi_config_avi_infoframe(hdmi); > =E2=80=A6 > > Would you become interested to apply a statement like =E2=80=9Cguard(mute= x)(&hdmi->state_mutex);=E2=80=9D? > https://elixir.bootlin.com/linux/v6.10-rc3/source/include/linux/mutex.h#L= 196 I am not. --=20 With best wishes Dmitry