Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp485212rdb; Thu, 1 Feb 2024 14:44:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHE6ctUMSYwBZlVxLIW/eTH5tC6cgb8LeAQcDb3eWPK7hPd1/vdXP2/UTG8zi/tNuqBETEu X-Received: by 2002:a05:6a20:d807:b0:19e:367a:2caa with SMTP id iv7-20020a056a20d80700b0019e367a2caamr278823pzb.8.1706827493143; Thu, 01 Feb 2024 14:44:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706827493; cv=pass; d=google.com; s=arc-20160816; b=gF5/9tOSOuXQh9xOxAv233u32Y3tCJ/7niI+45tPdX4BWUTeQqtLro8v/tbMztQrUp 2CwKGbewfKK6jn+ivwAjRI3gvxnk3dEPmy0VICtbWaYYXLPVH315bf1e38OQXn70UG1z SNGi2PUZXWIB1rN4e+f94F0nihQQFSRAJQWJ8M4epOuZRQo368EHDgJolepyX6DMBI3Q 9SfCis6D3DHyIsoTFoeFbPDFKcjI8Ux3bJnndk0r4nnW1keEgxePSMzW8D3CgyKF/exb 1c/K/SHfTIGe65kHrOeb0j18Bd+6LZ0T3zgUdaEQ++RJcI2PA8Q0nsHbFgvFvYjO0BCZ JI/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=dIIwz+3axs9ofDIOeEvHfTKblaO7IqF1Ngm8UvpUX1Q=; fh=Mvrc6LtpKZ5QVwpFQLPEAPtgUP5mvUl3GYQ3IppUx2M=; b=Xe3BOUGXRCd41FPLZZkZi57OyAVLSTZVAJt6F3yhbIQN2kysK7TPjhdym1kN0y7WJi OOL1r83tLGcOGKsuvXP4vTgsmCSh33r7St6tj9b6jDk6iSJe5lghe0uToKv0Mma33odN WsoX7X4zeiL8apAjmTT3J1VK7yDroJ8TSqsfq0fiNbkDozasMcPacuPfU+aPOOWnSqjA esT9DTrh2N43XbYZv/XSZv5la5xCknwaRLvve4j6KoV3PGYXUDb+l+d1OVS9O6f68o9y KE19ynvvw2txRKNkmpj1bvFM55TyISOo4HQlb+Z6BFvl0JUYJmmnNvfblsOwu9lQIvgq qApA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kUCJFliT; 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-48948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUUWULQ42KkMHXIfvn+Yz1CQ8IHl+dI5u8jiBqQW2u2ZZaDqNZcVAxVpHYs+v7etSvssIUxjLDPS6SNo8rGFX3FLNnNH+dWiv+sBfEI1Q== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s8-20020a632c08000000b005d8b6a84416si419133pgs.534.2024.02.01.14.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:44:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48948-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=kUCJFliT; 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-48948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48948-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 91A5FB22AE5 for ; Thu, 1 Feb 2024 22:33:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4200D40BF0; Thu, 1 Feb 2024 22:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kUCJFliT" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 B3F0C3FB37 for ; Thu, 1 Feb 2024 22:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826829; cv=none; b=UeFcxyCKlmyyR8BTLSFayMx5ydppuWS8rDRXemXny6Cs64afExhUQKa03fm64qYjnZKgHiC5Gy6zE9+0JmT7FirtLEiJJcV6pRWG6DKfl8l1mSxeof+vnvW9kMpOhrY7/2Dj1yvdi3q7nuLZtamSaiEIRIFoLObfN2YJSioU7mE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826829; c=relaxed/simple; bh=KPsuTJp7C2O14rQ/OpkjWMA8klxdzcOuKfmwo10erDg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FYSOoXrpUSaTqCpJaJPrtdQCM2Y3FAlQQRd2coBU2sTUe4Bnhb/ggZwIx+uA7789jdTu+uxzjLVUmdaHfMeGEDA54ucE5Gil9OPnGXEvF2D0r7FgEFMYqjvb7jDtKJ1sJHjYGiiXXa5Png5JOC7LiFBYHCYGa/UIpxOe1GNdJEE= 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=kUCJFliT; arc=none smtp.client-ip=209.85.128.171 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-f171.google.com with SMTP id 00721157ae682-6041779e75eso15952027b3.3 for ; Thu, 01 Feb 2024 14:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706826825; x=1707431625; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dIIwz+3axs9ofDIOeEvHfTKblaO7IqF1Ngm8UvpUX1Q=; b=kUCJFliTr8A6aqTvxw2EKSSABBqpD6stsBEFeqB6syyt1ZGB0ZwNFRMnt3kUP4a6nV NYVTE6DdXwPRdKqHC3RsBUETqP+rzPIQISYS9fCtKv3X3wOLAHXb3dqL1Gsqm0KZocQ8 FXoHf4x6l21jwKfeaftujwUAUYTLfNtdtuBztMrIEEePI0XsGtQiFUtq1tNfJHR/+kz2 x5tmURGLp2HOcR/3K9Uo75zFjrM5fFY8TLOAKjG44l/gZSPPvgRukPH2HTz/SLmxbjPj 8vPa9Z6eku2U83Y+Fu4OCzNAZ5X/q5FqyEcUnMoBpX14xsVPVwx/8H086kWLxg2VzYtK p4Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706826825; x=1707431625; h=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=dIIwz+3axs9ofDIOeEvHfTKblaO7IqF1Ngm8UvpUX1Q=; b=IlBEd1U1bIK8hpY8OLaGaKt6W8q6i/LQ3XEcTpVSqI167G3nXPwu7Z/KL7EmAINt8q EMOCXvphJozUI/QwD9pTt/guOoLnKldDFB91WU7RESpIc3zehxPMHfY1NsccfDrHLvyV 8/PLaxoe367/7tXBHmUKu0N5zstjfx6IVUKE7qo2Zm8MsnBIq2Swl2OLPvC/X+16kLqg drAHW9Qe2Z0ETKuX4gwzkS5T1m5T2+uCJoAe6zEbbNbIQKM2mX3ZUjb9reBH+2jZ0Lsd qwU/pOT4Sydld4/NBnjeAO9bANIN0a4ElsGoSHuh8geAvb1WbR4CrUOoJGRrEIgXOKEE a2wA== X-Gm-Message-State: AOJu0Yzd9mFbLuSybS+oZhXkyIIrDu6qTr7DkRfbIed0Z7qDnO8NNWSW kwHTCA8gA4PEjqjB69HGLagBKW2AD9jvMdbEY6qR47zcXJW/4yKM/vRcL0ZfJ1g81ukxY5oNamU mRHtIBh7WidOuigR9EKvq81tr5RB/YHNFrDQnqQ== X-Received: by 2002:a81:488d:0:b0:5ff:b104:cc74 with SMTP id v135-20020a81488d000000b005ffb104cc74mr640319ywa.2.1706826825581; Thu, 01 Feb 2024 14:33:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240106223951.387067-1-aford173@gmail.com> <20240106223951.387067-2-aford173@gmail.com> In-Reply-To: <20240106223951.387067-2-aford173@gmail.com> From: Ulf Hansson Date: Thu, 1 Feb 2024 23:33:09 +0100 Message-ID: Subject: Re: [PATCH 2/3] pmdomain: imx8mp-blk-ctrl: imx8mp_blk: Add fdcc clock to hdmimix domain To: Adam Ford Cc: linux-pm@vger.kernel.org, Sandor Yu , Jacky Bai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Sat, 6 Jan 2024 at 23:40, Adam Ford wrote: > > According to i.MX8MP RM and HDMI ADD, the fdcc clock is part of > hdmi rx verification IP that should not enable for HDMI TX. > But actually if the clock is disabled before HDMI/LCDIF probe, > LCDIF will not get pixel clock from HDMI PHY and print the error > logs: > > [CRTC:39:crtc-2] vblank wait timed out > WARNING: CPU: 2 PID: 9 at drivers/gpu/drm/drm_atomic_helper.c:1634 drm_atomic_helper_wait_for_vblanks.part.0+0x23c/0x260 > > Add fdcc clock to LCDIF and HDMI TX power domains to fix the issue. > > Signed-off-by: Sandor Yu > Reviewed-by: Jacky Bai > Signed-off-by: Adam Ford Just to let you know, this looks good to me and it seems like the NXP people like this too. What I am waiting for is an ack on the DT patch, then I am ready to queue this up. Kind regards Uffe > --- > The original work was from Sandor on the NXP Down-stream kernel > > diff --git a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c > index e3203eb6a022..a56f7f92d091 100644 > --- a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c > +++ b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c > @@ -55,7 +55,7 @@ struct imx8mp_blk_ctrl_domain_data { > const char *gpc_name; > }; > > -#define DOMAIN_MAX_CLKS 2 > +#define DOMAIN_MAX_CLKS 3 > #define DOMAIN_MAX_PATHS 3 > > struct imx8mp_blk_ctrl_domain { > @@ -457,8 +457,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hdmi_domain_data[] = { > }, > [IMX8MP_HDMIBLK_PD_LCDIF] = { > .name = "hdmiblk-lcdif", > - .clk_names = (const char *[]){ "axi", "apb" }, > - .num_clks = 2, > + .clk_names = (const char *[]){ "axi", "apb", "fdcc" }, > + .num_clks = 3, > .gpc_name = "lcdif", > .path_names = (const char *[]){"lcdif-hdmi"}, > .num_paths = 1, > @@ -483,8 +483,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hdmi_domain_data[] = { > }, > [IMX8MP_HDMIBLK_PD_HDMI_TX] = { > .name = "hdmiblk-hdmi-tx", > - .clk_names = (const char *[]){ "apb", "ref_266m" }, > - .num_clks = 2, > + .clk_names = (const char *[]){ "apb", "ref_266m", "fdcc" }, > + .num_clks = 3, > .gpc_name = "hdmi-tx", > }, > [IMX8MP_HDMIBLK_PD_HDMI_TX_PHY] = { > -- > 2.43.0 >