Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp256541lqp; Wed, 22 May 2024 03:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJXwAFXTkvzmNZJbqy0v5kmgOgqeyvoo5D3oJ9e97GJOr/XcSExjZTS+8UyYmqS5QZhRitOw8ANdnf6XULQayrixfeNki99BOfU1ea2Q== X-Google-Smtp-Source: AGHT+IGuVPYWo0x5EnvIBJFKuTxBHG1nN8z9oTTyUtPiQMYDTgQ/yRy07cDZnYPs5znEho0z5lOz X-Received: by 2002:a05:6a21:3417:b0:1b1:cce2:51e0 with SMTP id adf61e73a8af0-1b1f8a21f0dmr1627397637.40.1716375173388; Wed, 22 May 2024 03:52:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716375173; cv=pass; d=google.com; s=arc-20160816; b=ZXOMix+LOtiNkMIFYUVnPLPl7m8u4YONZ6ugLLzXBazxeR7q8IZG3Gk+fSIhFSrMzQ 1Br1ryA/gSqchOFyi0BcdayGvdVW+4kh9c9h6K0kT34mhM7OkTbFx+a+tbQtLoWTkLBW Ytkg3+9hPZUReY5wLo/Sp6ZZ8uUMNzg3nCGGQKfIR3BWKiiEJruUkR+0oNXn3q4Pes71 Xqeiooc77ZQ8q2URFSx1l90vegwXpr+4m1hFQHOXiQKtHnf5MBVFvhcZDbSzo07gpvwZ h5SuQrtZHLAuTc6aExK2JF15FVeDkn8E1zBeHop0r6gg/Y+v/36Ne6nBtWxv/HbjGMQV hdjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=/cpewU7AgCBeUcebhA/squE/VnkWqKDOhJWxtD0Wziw=; fh=ai+WbMMMcoapXcgc8MlKYEtp9W7+tv22PKg0XRx8le8=; b=CCL2rNVqR1jT1+zglr4VjGKPqmi7LFKPuke2y1Gdf88/eYrPLYknxkA3AZP4vw8ZWn ICv/HuAsHO89xdeHURvUCRixYoHg3XnFhS+iLFJgEtiHKcgUcxEvyCOWjEOyfjw7ndw9 ZC+vHCZxx14ThlaaTvGk3ORPaIaK91YF9r50k+rInmPYZlSDXjgLblFKtLExombf20LW a30rs45m3apz7SYjU3esfzCQB5pq0K+8DBvl37Ij+j0Zoh8ixjQS1uAKQmeyeO6g3TSE EJlGbsq/yt4kkMG3GPvNQ5uU4D2xG2bIa44p6zgHdpKVsOT0zBzvTiqYyMJHFWxigSXF pE0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oMUeZCxD; 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-186074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186074-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-638b0b3c7bcsi3591126a12.97.2024.05.22.03.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 03:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oMUeZCxD; 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-186074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186074-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 D90D2B22073 for ; Wed, 22 May 2024 10:51:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AEF882491; Wed, 22 May 2024 10:51:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oMUeZCxD" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 174D58249F for ; Wed, 22 May 2024 10:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716375065; cv=none; b=K5byvWjcyW5iHrsyNxlhjfU8NPglkC8Ye3SyCEhmB1nqSuJzXnxO3aWB1NRIU3B5CMpwtxj3+aMjdo1+E3ee3/RagV0INCh9s7OqlkWUQhzT+UXqWsc4OSUtPxeBB9KJ4RSu+4OSaUBdgQQLGli26EEWWsZTHHGD6fTWxOtbjg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716375065; c=relaxed/simple; bh=v9IgZbEVIzCU//v+7Xjr4VR0vD49EBefgZxRpj3Zixc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TeCSqtsBQB8FrbouIEmpGDd01s4g+QGIzHKW9w2Uvs3LKgEbtRBMvsUtiUHwypZZvabKdUSJESsx8+FxAC1SqwhWPI6cpCId521z8CwKAwajRS92qlkZ2EfXz0qALG4/uaaZkGQ/mE4qznU2zbiNtsC1aTLbCBgXDjCdnsYBerU= 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=oMUeZCxD; arc=none smtp.client-ip=209.85.167.43 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-lf1-f43.google.com with SMTP id 2adb3069b0e04-51f74fa2a82so6417427e87.0 for ; Wed, 22 May 2024 03:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716375061; x=1716979861; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/cpewU7AgCBeUcebhA/squE/VnkWqKDOhJWxtD0Wziw=; b=oMUeZCxDlmZY0BipfZBye8cMd7mS1uOpJiXforiOXxfT7WARyXx5lhXfqEeHHmlUzm vZNLRkM70htEyPM9IvXMPITKkFFMs5wcZSbGFOS3bUbaq3B3tadTWrr1zNOZYWk2U8+T J2+pAQp75r807Idmk0Gk0WpTMEfzzXGrlsO9TdHDIoan1tU8BS0J9JaH8yKjbSR6u096 ZKJ/huwiyccSUhQiimk0n/UcSnrpbD7qBUaMCUt6cbkwMU05i6mcVg9doiwLNDhIHPiS b8oCZWEZYWGCW1auJTx6Wat8OElZf9NK/Iuej1m+dxQvepW0EmVHB7ncAjWPc1yc81il HVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716375061; x=1716979861; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/cpewU7AgCBeUcebhA/squE/VnkWqKDOhJWxtD0Wziw=; b=CFT+UiRtsQ6Pl4w0pZg8HuayKeQJgidLy42OQ/eyOXkQJf69oEPDrT4Ir5Ml5Uywba /9UUGxcjuJrjdZpM/kp+qA3mrH1w35LQEZwwM1KeFgy92UXokvT+xXyLqNrvtqjRrtnU dNUyDI50ItpLnudbOuByUhvT8kfem/aoP5tuAXytCHOr7qeRDyp9ZNZNSnJtnRSdD2VN 3EnmAfWPxtQjJRgAh+DQ1ONDOfovu/kWs8RT1Rer3ldLSuUXQ4wSegIbLg5FliTka72D VfEB1pbHgVK0Heji2PwWEIWMXF4tmdfDQmNebRDr+ytyB1Sqx3MDe+yUED9gtQ5c99Ak 5lDg== X-Forwarded-Encrypted: i=1; AJvYcCVkgwQnU2HBwfQ2cEF1/ivZsUSHmBYNq0SQDO0Xz7PO5mQNicyMETmYDSVuSU/Q5nGA5QUwCDdtIWvkYvmyeNFVekUWNtEqITqBpj5E X-Gm-Message-State: AOJu0Yx+15yNREsHG4BS1szT09Y+sjakzHjpqhIDV0BNgGUtKPxDIl1a QreQDYRVlOJ94npgewTgr0GlOSx0Xz/HVBYUYAK/QxlUuV8SDnbiF0Y/MD3wNjs= X-Received: by 2002:a05:6512:2030:b0:51d:1d42:3eef with SMTP id 2adb3069b0e04-526bf82d08bmr1528410e87.29.1716375061315; Wed, 22 May 2024 03:51:01 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52431778ec8sm1279126e87.194.2024.05.22.03.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 03:51:00 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 22 May 2024 13:50:56 +0300 Subject: [PATCH v2 04/14] drm/msm/hdmi: set infoframes on all pre_enable calls Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240522-fd-hdmi-hpd-v2-4-c30bdb7c5c7e@linaro.org> References: <20240522-fd-hdmi-hpd-v2-0-c30bdb7c5c7e@linaro.org> In-Reply-To: <20240522-fd-hdmi-hpd-v2-0-c30bdb7c5c7e@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1133; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=v9IgZbEVIzCU//v+7Xjr4VR0vD49EBefgZxRpj3Zixc=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmTc4PZtDbcPARHAK4vTPyxmPCjneihSIWI/DGZ yc1CddrMImJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZk3ODwAKCRCLPIo+Aiko 1QuwB/9C68k51MnziXzY9cD980CHlYfmEBZfzN3HRPuRudP0j0YzyHWgbm6wN+ZIQY4jaqGVNXV 4T6y6ytqk8N1gNtMxki5EfrFIiQDKRYxXyAYrRgiTzzjI0g6vBAThzSgKlJwXnBzu3LZJ0rNPBD gRrFHl1GehF5mJ64QLav5u/c5z7EuAX5ElXSH0DjRsfdnMsGeTyD73KCyNw94bk7XeeGKf6R/bU 6k5iRyb6YQLYbv3Nkgy173dvexu7PNVkL6FDi3yKAUfCG+i9b0RlqKDbYT8r+VfvR3bMX+n5dt5 wCrGSQLNLCj7cHogLW0nFCKGhkFBzo3TPJ2i9qjyMejciR3l X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A In consequent modeset calls, the atomic_pre_enable() will be called several times without calling atomic_post_disable() inbetween. Thus iframes will not be updated for the next mode. Fix this by setting the iframe outside of the !power_on check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c index 3c6121c57b01..fb99328107dd 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c @@ -133,10 +133,11 @@ static void msm_hdmi_bridge_atomic_pre_enable(struct drm_bridge *bridge, msm_hdmi_phy_resource_enable(phy); msm_hdmi_power_on(bridge); hdmi->power_on = true; - if (hdmi->hdmi_mode) { - msm_hdmi_config_avi_infoframe(hdmi); - msm_hdmi_audio_update(hdmi); - } + } + + if (hdmi->hdmi_mode) { + msm_hdmi_config_avi_infoframe(hdmi); + msm_hdmi_audio_update(hdmi); } msm_hdmi_phy_powerup(phy, hdmi->pixclock); -- 2.39.2