Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1063227lqt; Tue, 19 Mar 2024 11:28:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7q/f4tBBTs6yhdghu6BXnPO/LzPW9GlJbCVgOGhyod39mWCvOZZ4aAGAk804r+en257On/T4jJJyMadEdbQGBw4O99gA+coWhAP9mHw== X-Google-Smtp-Source: AGHT+IF86umgQ8FgRMi1QArR6L1fR0KgCkpND/XSMHXQf70ZnQdXh8UFX8H/vVZ4yXfOzUkuCWeU X-Received: by 2002:a05:622a:8d:b0:430:b9d5:3de4 with SMTP id o13-20020a05622a008d00b00430b9d53de4mr3806502qtw.60.1710872917233; Tue, 19 Mar 2024 11:28:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710872917; cv=pass; d=google.com; s=arc-20160816; b=BcPfJEQ0TRpL42/QN5tEwdAxtij3KMQw4LM2Vo1TerkoPxRudHlwJ6XP19y1VCF6RM Hx2fclcCzP7hawjOnA9T6PAuSG8Yk0XHOYVZp7tCqfc5NsVYtBBLNuhJBiEJzz7NttGX GPHNB+b95Mwvr8OIpPk/HJ2UiwujA+EO/IaM3BQYQ2v+2as84XAnHtean/V1uL+7oggR GOtjHVDKh1wXTC1eQyDX1/1p+5fy7oVTelymOCFKooXycXLwBVbEk62GOO8EYwwH6kG+ x6BcB1LfXSed01c85zZwM4+0YjYQ+FSs9/Hgjn9F9As7lgZ5iWC407R9/2VvJ2QLArjc GW8g== 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=lrM5iCYsYQcepW3Ml6eTEfI3q3rWCXgbzBMB5LNHyFI=; fh=0Xjlpt6RAO12z8suLodw2fjGQuKmfvRyzWiJWuyjaxY=; b=dh9TFoRvUmet05FZKbR9yaVJwsqGBW4PWWsiR9hEXrvJUWNAflQd3be4ohzXT/JYM6 Q5bJFQskmGqiRuW2TZdYnSE73nwRr9aV+Nbd/qEaRbashM2ENEjFFunbmdbUHZwmiBNz +G2bpgAmORUdUjznZFkuNSMtd43igbfrQ3/RlgNvbS1Thz88gBMAkMbxSuiLL2+zYeaR iTA26VgKGHRH6RGHqGWtKT80yCXl9CMLcz/ciwV44teSTMx6+B3H+B7iK9HIUdrPdc5z +Oe+qB2CCp/3ZJIepB3EUwPyzyMwokgekknSwR+NlkJTNnLK8H0nSZFomh9d9Ir8DelQ 512A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UNRh8UTB; 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-108016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t22-20020a05622a01d600b00430b9982ee2si8201347qtw.338.2024.03.19.11.28.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UNRh8UTB; 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-108016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108016-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C7A771C2238D for ; Tue, 19 Mar 2024 18:28:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC11B3770D; Tue, 19 Mar 2024 18:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="UNRh8UTB" 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 4DFAA2D051; Tue, 19 Mar 2024 18:28:02 +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=1710872883; cv=none; b=OGYNB0HQnMM6QAQWz1Lf4Y3qeXE4BH9Oub8HGZ86tc7t5a82t3iY23qPony/5c14bE6lcOlDarbdF5DLzvwTM01q/9jgSg6+LePMIjuhd7jJeM9Xq7CUORChhRPnAkNVqztFXAvZjiUwlgtAKaPdMfPVPk/6+pTE2OmIFT6e4GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710872883; c=relaxed/simple; bh=dGPqNhQT2LyFkJBy0yibhnT8MPXG/MtIacLsPHEaSkM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=EUaQsgVDSDUuh2dvEq/rL4nwbXa4rDI39rUfm0s/vJkLID4LzCylzlo3kcrGSjPheQIysmijAkLfHiyBZmgO5puta3n6x6BPartaa9JHHSHfi43vG4Lt/Qkm8ikk30KSMRI6LeNcE7Xga1+VwVDaZ5/zRUMh2crlKjawBcv2JJE= 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=UNRh8UTB; 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 42JHGheX022789; Tue, 19 Mar 2024 18:27:50 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=lrM5iCYsYQcepW3Ml6eTEfI3q3rWCXgbzBMB5LNHyFI=; b=UN Rh8UTBXpAg2ol3SfFkYVQ/eYQ1FmDEQzlVhrdQNUwn+yot7f0IF5BIZLHroVK92V AaEudiSerVtQBu3It2cnT4nTt81v4H68SQoOYF4fVEurqkbIvcOeXPSHyUn3yVCr Hiu/jyT3K5OhmUWDSetjAlfzQm1R/SYfOYfOMzeC4CfYwqbCfKcGft9zpYamAD40 wPOlOceet2J2dbVeN1d01FgdLbV1QkfkR22v70ueDjw+Nv38og5bILNxZYk/dCr1 elvIqWE5o5JYfeVPmlTr/mLV5NQNzvQAlgJS21j032TlNAwchKkpfuDnAlKQm/Js 6UwMlFw8L7sK3LzEJ8kw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wye5n8bsa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Mar 2024 18:27:50 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42JIRnCc021855 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Mar 2024 18:27:49 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:27:45 -0700 Message-ID: <591d1c33-df3d-7ab6-9cb7-1422784a8e51@quicinc.com> Date: Tue, 19 Mar 2024 11:27:43 -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 v2 3/4] drm/msm/dp: Delete the old 500 ms wait for eDP HPD in aux transfer Content-Language: en-US To: Doug Anderson , Dmitry Baryshkov CC: Rob Clark , Daniel Vetter , "David Airlie" , Kuogee Hsieh , "Marijn Suijten" , Sean Paul , , , , , "Bjorn Andersson" , Johan Hovold References: <20240315213717.1411017-1-dianders@chromium.org> <20240315143621.v2.3.I535606f6d4f7e3e5588bb75c55996f61980183cd@changeid> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: z58_Rk1BEtCbOiC1XWt1f-Zh2r70tjax X-Proofpoint-ORIG-GUID: z58_Rk1BEtCbOiC1XWt1f-Zh2r70tjax 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=1015 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:15 AM, Doug Anderson wrote: > Hi, > > On Tue, Mar 19, 2024 at 10:27 AM Dmitry Baryshkov > wrote: >> >> On Tue, 19 Mar 2024 at 19:13, Abhinav Kumar wrote: >>> >>> >>> >>> On 3/18/2024 5:55 PM, Dmitry Baryshkov wrote: >>>> On Tue, 19 Mar 2024 at 02:19, Abhinav Kumar wrote: >>>>> >>>>> +bjorn, johan as fyi for sc8280xp >>>>> >>>>> On 3/15/2024 2:36 PM, Douglas Anderson wrote: >>>>>> Before the introduction of the wait_hpd_asserted() callback in commit >>>>>> 841d742f094e ("drm/dp: Add wait_hpd_asserted() callback to struct >>>>>> drm_dp_aux") the API between panel drivers and DP AUX bus drivers was >>>>>> that it was up to the AUX bus driver to wait for HPD in the transfer() >>>>>> function. >>>>>> >>>>>> Now wait_hpd_asserted() has been added. The two panel drivers that are >>>>>> DP AUX endpoints use it. See commit 2327b13d6c47 ("drm/panel-edp: Take >>>>>> advantage of wait_hpd_asserted() in struct drm_dp_aux") and commit >>>>>> 3b5765df375c ("drm/panel: atna33xc20: Take advantage of >>>>>> wait_hpd_asserted() in struct drm_dp_aux"). We've implemented >>>>>> wait_hpd_asserted() in the MSM DP driver as of commit e2969ee30252 >>>>>> ("drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()"). There is >>>>>> no longer any reason for long wait in the AUX transfer() function. >>>>>> Remove it. >>>>>> >>>>>> NOTE: the wait_hpd_asserted() is listed as "optional". That means it's >>>>>> optional for the DP AUX bus to implement. In the case of the MSM DP >>>>>> driver we implement it so we can assume it will be called. >>>>>> >>>>> >>>>> How do we enforce that for any new edp panels to be used with MSM, the >>>>> panels should atleast invoke wait_hpd_asserted()? >>>>> >>>>> I agree that since MSM implements it, even though its listed as >>>>> optional, we can drop this additional wait. So nothing wrong with this >>>>> patch for current users including sc8280xp, sc7280 and sc7180. >>>>> >>>>> But, does there need to be some documentation that the edp panels not >>>>> using the panel-edp framework should still invoke wait_hpd_asserted()? >>>>> >>>>> Since its marked as optional, what happens if the edp panel driver, >>>>> skips calling wait_hpd_asserted()? >>>> >>>> It is optional for the DP AUX implementations, not for the panel to be called. >>>> >>> >>> Yes, I understood that part, but is there anything from the panel side >>> which mandates calling wait_hpd_asserted()? >>> >>> Is this documented somewhere for all edp panels to do: >>> >>> if (aux->wait_hpd_asserted) >>> aux->wait_hpd_asserted(aux, wait_us); >> >> That's obviously not true, e.g. if panel-edp.c handled HPD signal via >> the GPIO pin. >> >> But the documentation explicitly says that the host will be powered up >> automatically, but the caller must ensure that the panel is powered >> on. `It's up to the caller of this code to make sure that the panel is >> powered on if getting an error back is not OK.' > > It wouldn't hurt to send out a documentation patch that makes this > more explicit. OK, I sent: > > https://lore.kernel.org/r/20240319111432.1.I521dad0693cc24fe4dd14cba0c7048d94f5b6b41@changeid > > -Doug Thanks, with that in place, this is Reviewed-by: Abhinav Kumar