From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F2743AEF5E for ; Mon, 9 Mar 2026 12:45:40 +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=1773060341; cv=none; b=TD5zVTLQZi38ZKhrca0L6zXN5tkJK3sK7a7ww2+yQDM4r2RY6+x6i7CbdySYmo6y6lB7c7qz0Dbpgc9VVpKVz/EqqZHkdTpjbE12Sbns0vknrZWXxEBQjTR14xwiDNOPNKQ9xoIZ+9W6YdRn6N/relZcU4338jWvwJO4VhpdwbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773060341; c=relaxed/simple; bh=VhvS3kM4wD53xo2G0t/yIpIk2lXGxjaW37wBLGd8sA0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TGw6iM3das0URhUT+vxNmJPK/JFaXIFYMHwDQRrXVhXJdYUN5utQCShmhfsU/2Mpf6JPklV37i6aJV3nT567S9cz9HlshmV4NkkzhSZhoBd5ZtrCftfNIsbp2niHWbvASGVDzHqmWTqQWj2PiQhdiyYnNE4cEj9mpkoxljqHBow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=I9lrZbJ5; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=E2WpKL7l; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="I9lrZbJ5"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="E2WpKL7l" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6298E8al2129848 for ; Mon, 9 Mar 2026 12:45:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= meRktTehSj6qBj9CkXJ7Dg5Ap2sMKM0JeMCDAVB3Dsk=; b=I9lrZbJ5xuE4yeYj H/sCiQNl0nUfZpgLWT9JqRELJ07Hcm9WuzxYVQ4Dwdz7LUe5mq6TknrmjiCgtnvs 0vBOj82WyQh3TufzBVbPbew0ajciS1IKiaLww5aCLY8CMdJ4iTyvPufe3KbB6ClJ ffjSdhD+4VOW1V3mKDeKH/mYzac+1mn9kyb9uMc52GemP9Fn4AU8p4VnKbL/4eWi ahQttQGO03n84ESAbT2v6eEIvl4IFlEld13wjSOqjLlDxDPUydUQqYUWpqkX1vGo i1jeucpxKpHYr58fz0cgeuOKaUXi1HF4WTVduUJNKYWywfxihXKdkNCQGC20IjFr Ip4pXA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4crda9d7qa-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 09 Mar 2026 12:45:39 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8cd8dc8b434so41205885a.3 for ; Mon, 09 Mar 2026 05:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773060339; x=1773665139; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=meRktTehSj6qBj9CkXJ7Dg5Ap2sMKM0JeMCDAVB3Dsk=; b=E2WpKL7lh4mO64XisiQvpSpx8Cmv9oHpfyeUYem+KTa5Upe5vPTz8jIohfzshvimKB /fvPg24wfRhkkwdFICLohVxGuCH8JFnIYOo3j86+KolNUqJfsNgOyXVvMW3R5AvtgsxW H3dXunXU45tgNFEGRIuJHgpiFFI6uLG4Pz0pbgU4iCS+SD8BHtFe+e3TvPMqc4F0QTm7 hIjR/PD5Edgdpsjy3s2Ye7Vs3ntKQekjUlaiXg/NNquoDndhZLt/6ygxOv23w64APccr IjjXL6nodj/MDP8oKpiWXXoEMs7VzSd8tbAfCSR+PHGEuibuxs21W4DULIhA61NWkJOA nBiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773060339; x=1773665139; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=meRktTehSj6qBj9CkXJ7Dg5Ap2sMKM0JeMCDAVB3Dsk=; b=rZNEseUQ5Ws361B5qDlCrXnLZU28eajc/DBFI8pq11gUuJoZhmLOg0YxSB67hdOeR7 Q7EX/NEXNEYm8aFF5SRO3CJwgS0kGMR7jzePI4sLgE/aoo4KsevTX8BzY0p13b2SFOuf KV0sgajpAvP5A/PoGq5DG3js/X+TPMUMYKeu0SiQDFa8TpW3HO+UOVUwqmpzke+75nD6 qyGNE4P9uiDOkN2Y2mU56wVnbuG0LaqUnz0AamteklX7Gm6U4G42/Ufil9Y90wEg7dGb V4FxiW2m25ZL7Y4UsfN8MAjSXTz1JCtLT0ruvI8O+VPhUlWmtm23qtPoQV7hqrIp/BG4 OHkQ== X-Forwarded-Encrypted: i=1; AJvYcCVq4WrNnmkwwgkJoMJ0OeOzuM0xff+KAMIKkREicKHUNKLaaGQ0OCdWHOuZcB7abVA7buNQ7F+oRr9I+4c=@vger.kernel.org X-Gm-Message-State: AOJu0YxyM+YwEbigjPIlo281ktC3SKHFhyWoOOoWAAejMTHslLFrOt7S uB8/XLUGZtDP5ulFlMoFqkKFh7II09U6k6hecElE9iTgQwH8iuFxBIiL6IsPoxPxqr/Z8ow6gIW n8Pob2jjEHYv9dbosNhb+DB6afEhRC4LBM6wh6MCiDCauBuzOoAcGqYUjfrUu3edNh3M= X-Gm-Gg: ATEYQzwe5tFKlUc0TcA4HsAWhbkyxS5yHXLWH2MBWt8vji1I7QEezw3PXsb/a33O9vr 4PYFMJ2FxiH0qha4w6CCaE9gVZVtcVuKwPwoaQj4+1C/OOh9f3+bGdrGIAaO8swoBwwWsnZ/2VT zVeK9C7A/WJpYwzd8rzjq3zrhLFfai7L+jPI/Vj9aOXnSyn4w8jfOfVv0DW7si4ogO7EhvqC+3b LH5aKcvqBIidhavkFR/pMjlAcm8oOMK5fE6ptKH9/4z15/u6R8hcvXOjjqAfwv7aTaXwiYTmuxj O0BRPqNFvoNFIUDP5pnoz/WkZk6ZZtNynHNHBNpgTArjbMjdzg7GQVPZmEfWfYLk/zaHQ3OYCpH Qa7u80zuZNVEbGCa56qo/cN6K5oqrdKx3hm/i3jVQS0RSCkujIcbXNDBQWr7VMKWLj4D5PGw7OV h5QmQ= X-Received: by 2002:a05:620a:1914:b0:8cd:8751:2b19 with SMTP id af79cd13be357-8cd87512f16mr364078985a.7.1773060338686; Mon, 09 Mar 2026 05:45:38 -0700 (PDT) X-Received: by 2002:a05:620a:1914:b0:8cd:8751:2b19 with SMTP id af79cd13be357-8cd87512f16mr364075585a.7.1773060338133; Mon, 09 Mar 2026 05:45:38 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b942ef8c95csm356164166b.21.2026.03.09.05.45.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Mar 2026 05:45:36 -0700 (PDT) Message-ID: Date: Mon, 9 Mar 2026 13:45:34 +0100 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 v4 0/9] drm/msm/dp: Drop the HPD state machine To: Dmitry Baryshkov , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Kuogee Hsieh , Yongxing Mou Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jessica Zhang References: <20260305-hpd-refactor-v4-0-39c9d1fef321@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260305-hpd-refactor-v4-0-39c9d1fef321@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzA5MDExNiBTYWx0ZWRfX0ewFQvzJBnlO EG0HXXKRMo1blNJ1vLL+AvwyJJiFtnujBiy5jch0sxKfAiT6OFenz/E5CaNEM/zeVIz0/y8Uq7y RGBqH5ld+8SUS+sZm8Nx+MbRy54ykiUSM1Na2/LzRVXUToYW/3SkPtzld0lTYhjOQtXXEucCfOS 6r75r8INkvBz/faU1VWg4BxVAyo6PaZKcsoZypHLp68cGluj1bL4/3kgT6r9WqmDdwYg2Pvmivn fvbtc+n6A2nIxClBG77uCXftgF/T57aAdkwhIVW8rR4GYXhGepflF23bRvtBNMipwWXtz9AT5Hg Ia7iWacSdwp8fc5nb38Zfpi5KR5G+XTI5dtwZPlojdQ33jwp0P9LChwS8APMgfh+Q29ozZRaJJP dom0VzW4EVANAi4B88Wf1QqlpHfxQWxoi++0nS5fTwxlSBQzu/6NlSg++WkSSFEzTg7R3Z6F1pA TJzQGgJiDWxOsv5uQ5w== X-Proofpoint-ORIG-GUID: fH_c9tsasS_gJSgdBcOPKkhh-1CKOlf5 X-Authority-Analysis: v=2.4 cv=QZtrf8bv c=1 sm=1 tr=0 ts=69aec0f3 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=e5mUnYsNAAAA:8 a=9ZUI4OZNt3IswVLbaQEA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=Vxmtnl_E_bksehYqCbjh:22 X-Proofpoint-GUID: fH_c9tsasS_gJSgdBcOPKkhh-1CKOlf5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-09_03,2026-03-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603090116 On 3/5/26 3:30 PM, Dmitry Baryshkov wrote: > Currently, all HPD interrupt handling must go through the HPD state > machine. > > This has caused many issues where the DRM framework assumes that DP is > in one state while the state machine is stuck in another state. > > As discussed here [1], this series: > > - Removes the state machine > - Moves link training to atomic_enable() > - Changes the detect() behavior to return true if a display is physically > plugged in (as opposed to if the DP link is ready). > - Remove event queue and move internal HPD handling to hpd_notify() > > Note: eDP is mostly untested. This will be sorted out before the next > iteration, but it will not affect the series in a major way. > > Note 2: there is an issue with the DP connectors using GPIO for HPD > (rather than using the nativate DP HPD pin), the DP will not detect a > display if it is plugged in before the board is booted. This is not an > issue of this series and it will be handled by a separate series to be > posted today or tomorrow. > > [1] https://patchwork.freedesktop.org/patch/656312/?series=142010&rev=2#comment_1201738 > > --- > Changes in v4: > - Fixed PM runtime handling > - Fixed several cases where the HPD machine would loose its state > - Fixed the case where detection was ignoring the plugging in display. - forgot to run b4 trailers -u (no worries though) Konrad