Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp113213lqp; Tue, 11 Jun 2024 17:05:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlwfO5VIKfs8TUVHtXuJ2+/51Pm44108JuIMNUR1039SXvlkdpp0owXXxVSyyimyYRY4onI2xZ9D584apEyg5cJ8O29H3cEzYyr6R7nA== X-Google-Smtp-Source: AGHT+IHgrTLoyVtkuJTIQnzmATEIKHNDex1Y4ggvGIua1snG99ocYXzX4H7vQOdixtlvQJuqbPtc X-Received: by 2002:a17:906:d8ab:b0:a6f:2d9a:c956 with SMTP id a640c23a62f3a-a6f47d4eefamr16119566b.3.1718150713637; Tue, 11 Jun 2024 17:05:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718150713; cv=pass; d=google.com; s=arc-20160816; b=p84pVPimmSUEUXeeBWtz3N76+wJznfmKyFCAQd2ttn56wllM1Brsu3XI+Cg46OlsBk 933JqxmmGK65g2rVkgtemDYHlDcO9VlMg88KEwM68jKMbFHNEG5NJQTWL3A8NiWxOpiS kzY/VA5OhUBcyaGqipw6NUqrmTPvOjgvYqZnJ1JIVfPvvC/rO85f3DUkOWatAINhUMI3 hJEeol6MKFyp0S0tZ0AkPkPf943NQQu1SJXNi81Qloo3IzAgcnNCnUbhHQbdhWIsBzUp AbCO7QGszWt5rIW+uaSKqNiVdojBhnk/X0OzZM7/58dPpil4w/sJWNKw6MOKh6bkezuT hC0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NzZWDUzEYH97W8rJBkKtxt30ULIZaPPxoWU3xHJZVyo=; fh=uMVMzA90YS+HimnbIlFeSYL+pOmhxzmT74V2Khioqio=; b=WNcjVkCeUF1hEYiSKJWYrMgfYSiza89nSLPjNQ9XCruerX6WJvESlSAtLgUdicYwmx bZCNgw5+Eg0fRmRwLETs9GtCMjlb5x40kaSn1LJb+AWEQM4Tpsj86nwVrd8KcVEvpOLA rwOE0e3NmDKiKLldPqyeC8X3iuXZStzxeHPJk1G5Rf3nVVL86BM8J36Uo1CaML8YqTSl EApmMwjg7KvOy8PiSjoXHoPiBB/0oxcFpVuS7+Pi3YqnShldGH1+sfIY5doBqd0Apb8O F1BsgcGVeefvciQ9oeWMHOBcNdTUHXVHexceEXT22I+7e+VSWzw5aXoi8aF+t8w5A2SO b1Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IfYGIevV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-210725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0d0318besi373204766b.853.2024.06.11.17.05.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 17:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IfYGIevV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-210725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5DCA71F23F0A for ; Wed, 12 Jun 2024 00:05:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EA3D7E8; Wed, 12 Jun 2024 00:05:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IfYGIevV" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3186917C; Wed, 12 Jun 2024 00:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718150702; cv=none; b=qVmiHikuK675Q2GJ/5BhT89/oJtNcGRKw/RY3cDtqRPLT+Ag0a/+VYEL9jyGwfHPlROxpwcmFju0ikIfiDiYkGFcRuhL5SRIVhq2iyK1uBMPDMCj0VdzyCNPZWKJYtlpepLy6H2rU+zXFYy07G5NKN17zc4MnM2ArcbytHBoyFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718150702; c=relaxed/simple; bh=Ptaq9HoVyJOFyH31HBb6lARmwieao3a5iSUKLd04Tzc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=SJL1u0mcNsZvDk16L3L/4WXHtkV1Wlus0H7W1EeFES/0BvzQt/R3L9mOFjzo9rOhR59teV4fAA+Tkc+NlBdJ07RFyM5jycx6QDWKNQUyd4ZD/YWPFMt7FTpJqU8xoA9Sa44TjpR8SuvL+CkYhxR7m8bPWHvoTOjUxa3OGuzsP9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=IfYGIevV; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45BFMqXH026070; Wed, 12 Jun 2024 00:04:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= NzZWDUzEYH97W8rJBkKtxt30ULIZaPPxoWU3xHJZVyo=; b=IfYGIevVHM6Az9+q zwHoNsuJsck+6l4M7eBr7zBe5bsAdruuG9cVTS0F7VBGJ1Wss9y5TzafMBofz3Lp /FkgY82IJpIjMZ/dmCT4B/rh+HlBrifwQ41qs1W8wP6O524M9j3l6VyzMkz5lsKc XMQKsAFvmKkbWUwoxlZyBrrqM+pucVsRGrvNUtkYebm/S9Q1tXsRf3Z1X0ZWsqNX e2hVBXxpDWTt3gcufhm2vJ6ikFYgR6sSfJ3hLUKvOZDVEpYHmL/10BXEXjEFjyTu 89UkOYmu8ocOye6BwW6sbyFh5Fy17ulBcakZx2V74pEzYQf4XpR+TlU9Z/7kJxY/ efWrEg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yps5x919c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 00:04:53 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45C04qM3016093 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 00:04:52 GMT Received: from [10.71.108.229] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 11 Jun 2024 17:04:52 -0700 Message-ID: <6f51224a-a7cd-4774-827a-967a4f4b38ee@quicinc.com> Date: Tue, 11 Jun 2024 17:04:51 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/14] drm/msm/hdmi: set infoframes on all pre_enable calls Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , "David Airlie" , Daniel Vetter CC: , , , References: <20240522-fd-hdmi-hpd-v2-0-c30bdb7c5c7e@linaro.org> <20240522-fd-hdmi-hpd-v2-4-c30bdb7c5c7e@linaro.org> From: Jessica Zhang In-Reply-To: <20240522-fd-hdmi-hpd-v2-4-c30bdb7c5c7e@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Cp7JDNilM0owFr5HiQ_J0I9CQx2em4ES X-Proofpoint-ORIG-GUID: Cp7JDNilM0owFr5HiQ_J0I9CQx2em4ES X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-11_12,2024-06-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 mlxlogscore=999 spamscore=0 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406110164 On 5/22/2024 3:50 AM, Dmitry Baryshkov wrote: > In consequent modeset calls, the atomic_pre_enable() will be called > several times without calling atomic_post_disable() inbetween. Thus Hi Dmitry, Just wondering, where are you seeing multiple pre_enable() calls without a post_disable() happening? IIRC, the msm commit_tail always calls commit_modeset_disables() before the commit_modeset_enables(). Also, doesn't the pre_enable() and post_disable() only happen once for bringing up/down the bridge? Thanks, Jessica Zhang > 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 >