Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1063174lqt; Tue, 19 Mar 2024 11:28:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgkYaryX0JfA8LUJv/hVlxJKH+fd8F3JWuGRyMoo19ObS1qYLXBH7daPznzZBpn2EAHUclAboXSKkSDJYopoh5D5LgtBczdG/umpaw/w== X-Google-Smtp-Source: AGHT+IH5BF2yIKA/JaQlIXxSCmxvBAIZ3P81lAKAi4cISDVY0vwS4Os7MTN8T2DzAKnWdB+RxLEH X-Received: by 2002:a17:903:428f:b0:1e0:2b2a:fe40 with SMTP id ju15-20020a170903428f00b001e02b2afe40mr3012079plb.40.1710872912376; Tue, 19 Mar 2024 11:28:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710872912; cv=pass; d=google.com; s=arc-20160816; b=RD2iAmSGsJfyiTWglEEZTOgoweelNE7iHGlDDHgE9eKYPc6dvaY1FuN0pRpJQaVsZq hUS4QqBk5RBpIlS31nqlSrMrFP8y19i0h7n7vE+Nd0SuO1hRlrrTdPnibNi/LYT68zjy cuhSx6ILFlzYmqFI9fs06kpSoWjAxZ4RIE3tLbtorz1dRDPjNd1PpwO4cm1CKSSY367K VxZlo5FvFC73uMjY7iGkvLClfDtwJooKqZe4mxTaZ/boh1BWb00n+MsXNa9cf+lW+4sq GBynAc60MoIbVrWb0Z+en4iX3J5tujVLY1O1ldNYbo/5cJapuOFHQvoJ0Ku0b/NfOcRT C71A== 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=alFmAYsZPbw5JddF5k6AkS4utotPRXvAreu9oVdJA68=; fh=RP2rjng7u+olCVqTjsaADLhSHgyryCt/Dl5AnQQlVcc=; b=GToXMLOEiGgQI4PS72zdZhKmjgNNBNrvFJ0uhkIeXjx145zyIKRakgOSqLYb6uWYuq YptrolcozPHqgRq8PAswr4AQmFKNvM3B2NsyUCLJ4MXOhfToEDgt7yyaSILGOX0c+ZxG Sm5CloK7cqlaJixeLv98x6YrkCWQIogFnEmcTqYi6CAsbU9lv+8yZWOv2iHM8j7o2f50 aRLLN3Y4XnXw5nkbQEG58LytcsHf1xLCDVb5MYVwJFFBtZtHwnKZIusLQgFGsxEsE93A MFvdiumCUtbzlVplbo0jdGGmv6p78n6mGL7J22u0Uc5j+Wl8Idpk9ZfjNIyK+pS0e0ih nkUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AMcAT6xn; 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-108014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c12-20020a170903234c00b001d9859103e0si11743829plh.153.2024.03.19.11.28.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:28:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AMcAT6xn; 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-108014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108014-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EA293283E0D for ; Tue, 19 Mar 2024 18:27:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2855642AA4; Tue, 19 Mar 2024 18:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="AMcAT6xn" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 C222639AFD; Tue, 19 Mar 2024 18:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710872800; cv=none; b=MOxEu8RBYK3XoSAfBlJLCs19Cn4Wk0RuOHI1yZV8e0Gns7/xJ3FgdcHNVQIaGGowQFEk3qHhaLpGhzmGkF7UV7icIAQQmZt2yVRuYkBYVeU22lAOUlTpBsdXfpG01Zs+FkfDtVUW2ISHPmNqJPuxUm5GLKjEC6kS+j1PzUuT64Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710872800; c=relaxed/simple; bh=THGl4he4CJRP+FcRWXnW/XC6j02qDWC1XS56mYKz6Eo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=IOSB9oGgu4U4kzutg67gQwrzCId6PcZv48S32pkm3P21cxFGkxDJdLxkVNzxXtn9NC4r9uyjOx8Fox0v3kWK2xMu1Ps1AvX3f6N7qpyL73Xto/a5ZjL8tfaGZLsmbPtgUkwAV+5ZJKFXV4/7Ti5wpMul8x4oSxtMwaNr6rnqygQ= 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=AMcAT6xn; arc=none smtp.client-ip=205.220.168.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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42JHGW9j022546; Tue, 19 Mar 2024 18:26:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=alFmAYsZPbw5JddF5k6AkS4utotPRXvAreu9oVdJA68=; b=AM cAT6xnIj1d3A7tcfptxf5jLcAEkS9UDhUC++rdcYEbO0ROH/FHVTwx9ZpVhAvSih o3VTmwlFRmUVHCR8kbe0iE18LCuIntUQTeXde1bRVn6yz8kDcC8zBWo2BKOsgY2X MSXd8vwsaHhxcxThhrmIXUVuBH4L2Bt3HeazwFgiydfuchXR1uSpEInciZBV1WEq 54jq2gZqjWc/RkW4yRzMIZJuAzB1Axhfcs4d/hQQe6GXiMix7iw70q1mK89d2yq4 iUW7G8/jhZYwB+UPFOP5xRQBj5bVku+ldlpTsa9jUuQGRvmqJrn+mE+Qy7FrlgmL uEJ/DGrhvzgRkWCH4LHQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wye5n8bjn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Mar 2024 18:26:26 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42JIQPTA032329 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Mar 2024 18:26:25 GMT Received: from [10.110.10.159] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 19 Mar 2024 11:26:21 -0700 Message-ID: Date: Tue, 19 Mar 2024 11:26:19 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] drm/dp: Clarify that wait_hpd_asserted() is not optional for panels Content-Language: en-US To: Douglas Anderson , , Dmitry Baryshkov CC: , Mikko Perttunen , Jonathan Hunter , Thierry Reding , Ankit Nautiyal , Daniel Vetter , David Airlie , Imre Deak , Jani Nikula , Maxime Ripard , References: <20240319111432.1.I521dad0693cc24fe4dd14cba0c7048d94f5b6b41@changeid> From: Abhinav Kumar In-Reply-To: <20240319111432.1.I521dad0693cc24fe4dd14cba0c7048d94f5b6b41@changeid> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: l2PEpOBPlSb-BRXUAn949UeppIZTCmv2 X-Proofpoint-ORIG-GUID: l2PEpOBPlSb-BRXUAn949UeppIZTCmv2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-19_08,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1011 mlxlogscore=999 mlxscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403190140 On 3/19/2024 11:14 AM, Douglas Anderson wrote: > In response to my patch removing the "wait for HPD" logic at the > beginning of the MSM DP transfer() callback [1], we had some debate > about what the "This is an optional function" meant in the > documentation of the wait_hpd_asserted() callback. Let's clarify. > > As talked about in the MSM DP patch [1], before wait_hpd_asserted() > was introduced there was no great way for panel drivers to wait for > HPD in the case that the "built-in" HPD signal was used. Panel drivers > could only wait for HPD if a GPIO was used. At the time, we ended up > just saying that if we were using the "built-in" HPD signal that DP > AUX controllers needed to wait for HPD themselves at the beginning of > their transfer() callback. The fact that the wait for HPD at the > beginning of transfer() was awkward/problematic was the whole reason > wait_hpd_asserted() was added. > > Let's make it obvious that if a DP AUX controller implements > wait_hpd_asserted() that they don't need a loop waiting for HPD at the > start of their transfer() function. We'll still allow DP controllers > to work the old way but mark it as deprecated. > > [1] https://lore.kernel.org/r/20240315143621.v2.3.I535606f6d4f7e3e5588bb75c55996f61980183cd@changeid > > Signed-off-by: Douglas Anderson > --- > I would consider changing the docs to say that implementing > wait_hpd_asserted() is actually _required_ for any DP controllers that > want to support eDP panels parented on the DP AUX bus. The issue is > that one DP controller (tegra/dpaux.c, found by looking for those that > include display/drm_dp_aux_bus.h) does populate the DP AUX bus but > doesn't implement wait_hpd_asserted(). I'm actually not sure how/if > this work on tegra since I also don't see any delay loop for HPD in > tegra's transfer() callback. For now, I've left wait_hpd_asserted() as > optional and described the old/deprecated way things used to work > before wait_hpd_asserted(). > > include/drm/display/drm_dp_helper.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > Thanks for the change, Reviewed-by: Abhinav Kumar