Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp720116lqh; Thu, 28 Mar 2024 14:22:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUJsOnLgcfDL9cDqUKSjWd5tVdkMUtL5QFFnReSK1VdGK7FeJhAneX3W1asonQDjGHj+FzhkGy2e+e2FS8JgZc918Q6aLBwG2X6waQBA== X-Google-Smtp-Source: AGHT+IGl4QF82jryRmKCSp8ddNUUINOa6o1KYqOrhrb0vCMQUO80q3/ZROrJ1miuurvDdt9sMjxf X-Received: by 2002:a05:6a00:1790:b0:6e7:82f4:d904 with SMTP id s16-20020a056a00179000b006e782f4d904mr922006pfg.11.1711660939275; Thu, 28 Mar 2024 14:22:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711660939; cv=pass; d=google.com; s=arc-20160816; b=N4FF+Bh5wdUtSWhS7gHg839U1rKX95JmYQX7nW+oVaNvsNqiPRCfON2oZyYeGMjHW5 ENnTPeJ+DvR0NsrAccb93Adm/8BH8BdhZ5i3dZGRaaJ+n+DZgNyN+la6lC7dVe/+UPvl YK/EqpNdjMHe+uF6b6DJYy+Mh86OEd2mMGQreSwPaYwSoIi3sVPNosEMvNJ4vxqCQnPc sKgKbIz7dT72bo6wpiIPwAdTR5Hi+Gz712+Bgf4cVagRtMBpNT9zfUW7dCkXH43rdiiA LHV+j/2rM1CIu6LM4jSqc1qT8Vxi1sU/4dZT4Ka5ki6iH6rS7h+yf44+R6p41azgvayo 7Q7w== 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=YqluI44oCwIMb2uPkFQarghRCXAwIcfSImWcvajff8o=; fh=aVyumWvEukYF3Vgs220ckYpyK9jEal8RsWyfLfcGmhs=; b=EyXflGOqVre8GvOhgaAsJGBEGbSbjG96+5mwJa3MeGLrAa47ZAiya5ocac7AllGAwq pbtmJQSa4eqZwSBZ2j1Fh4gmR8KlIeTpgdG347FD9g9KtlfbSeQS24iUOPJgWTR/mo8L 2ns9KBLZdU7iF5PAXnZg8f15bNNXTl5G4TBBCvis8zP5EDZiWxE8+0SxUqB3IC7QUQxA R+mQfatKkBFQc5qaCiOcw86QMF+ou2AxXCOurUd5UroEAvomZ3UcQfdVzpEUnIZMmlbr mYKBbaeHvoA0eVHsk8UGQazjfoa1qujvsl4bZgWFOBP6fofvk7Se/c7GCmydFMLmKv8o Gf4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oEHKJdhS; 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-123671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123671-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 t62-20020a638141000000b005ced6c45233si2108209pgd.712.2024.03.28.14.22.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 14:22:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123671-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=oEHKJdhS; 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-123671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123671-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 1AD38290265 for ; Thu, 28 Mar 2024 21:21:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6BD513A414; Thu, 28 Mar 2024 21:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oEHKJdhS" 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 CC1CA2BAE7; Thu, 28 Mar 2024 21:21:33 +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=1711660895; cv=none; b=SfGvEzRXflarlpftHZWUpmoKXrVSkhc+gWb7s1LozfEcI4TZiz1yCb+oNcWme/NI3H8Lb/6O+/5O3UT0OHxC/4Abo9u5+cA+P0+wSNmRoa0RKVUn31UdBDh4ppsmEu0Oif52WHnu0UNlhpsJmc+Tq+L4V1GyZRVdVnfhkaWfZ/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660895; c=relaxed/simple; bh=Zj9xVaW5VxIj77MDr1gWeh7JZ6hMmrUu9YoKUpzwMWo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=tPG27DUAQad+avKXNiR+U6EXE7aEImKnzxCQrkmGW2uLqru/uV/n/TkZs2z7RsJjpKBB2phKrRWXYR4qSAp7R3u384xHz4OPWN4GyRsykvfObvwRYr8Z0bOmR6zl/TmXTmYQgJcp9Gd8sv3PftlQ3/aFXSI7/ioaXI2w2HSG6Bo= 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=oEHKJdhS; 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42SLLN0e030916; Thu, 28 Mar 2024 21:21:23 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=YqluI44oCwIMb2uPkFQarghRCXAwIcfSImWcvajff8o=; b=oE HKJdhSQh3m7dimSMxiQTnAeQomAIRnhX5E2tYs1ZZAaNew9QOsq+nbxKbbiFGjpG 417lUfoVUeheW6K3CLdhDCOe7SvGyOVA6fmxfLSKleG+A5sk8q5eDBgVafa0T4PN kyNgj1T/Fkt89wOfXCnlYDzE8xGzbxV35Fpxzk8mZYhrtRNcTnpvZD4oLNceP6Pm zl9fqkEPrV3tyKSqoVgHvSPLavVP2nEbH87wR0UmNNxeVo4Txv8Gn9Auj6unh3r+ SbzEDSvWu0Q0WKbAjW9qGDcu864R4lu0AOYFfIVcualX/jmJXAGYvnQtjOJW3hIb Ebt0HhTkNo424Ky3O2NQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x562rhuew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 21:21:23 +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 42SLLMEF005080 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 21:21:22 GMT Received: from [10.71.109.81] (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; Thu, 28 Mar 2024 14:21:17 -0700 Message-ID: <23de89e9-3ef3-c52d-7abf-93dc2dbb51a4@quicinc.com> Date: Thu, 28 Mar 2024 14:21:14 -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 v1] drm/msm/dp: use dp_hpd_plug_handle() and dp_hpd_unplug_handle() directly Content-Language: en-US To: Stephen Boyd , Bjorn Andersson , Johan Hovold , Kuogee Hsieh , , , , , , , , , , CC: , , , , , References: <1711656246-3483-1-git-send-email-quic_khsieh@quicinc.com> <1711656246-3483-2-git-send-email-quic_khsieh@quicinc.com> <55debb0a-c7af-ef71-c49a-414c7ab4f59d@quicinc.com> From: Abhinav Kumar In-Reply-To: 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-ORIG-GUID: xSN-cC30vJQgqcjGx3Mjnt0ZAam_B0JM X-Proofpoint-GUID: xSN-cC30vJQgqcjGx3Mjnt0ZAam_B0JM 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-28_17,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280153 On 3/28/2024 1:58 PM, Stephen Boyd wrote: > Quoting Abhinav Kumar (2024-03-28 13:24:34) >> + Johan and Bjorn for FYI >> >> On 3/28/2024 1:04 PM, Kuogee Hsieh wrote: >>> For internal HPD case, hpd_event_thread is created to handle HPD >>> interrupts generated by HPD block of DP controller. It converts >>> HPD interrupts into events and executed them under hpd_event_thread >>> context. For external HPD case, HPD events is delivered by way of >>> dp_bridge_hpd_notify() under thread context. Since they are executed >>> under thread context already, there is no reason to hand over those >>> events to hpd_event_thread. Hence dp_hpd_plug_handle() and >>> dp_hpd_unplug_hanlde() are called directly at dp_bridge_hpd_notify(). >>> >>> Signed-off-by: Kuogee Hsieh >>> --- >>> drivers/gpu/drm/msm/dp/dp_display.c | 5 +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >>> >> >> Fixes: 542b37efc20e ("drm/msm/dp: Implement hpd_notify()") > > Is this a bug fix or an optimization? The commit text doesn't tell me. > I would say both. optimization as it avoids the need to go through the hpd_event thread processing. bug fix because once you go through the hpd event thread processing it exposes and often breaks the already fragile hpd handling state machine which can be avoided in this case. >> >> Looks right to me, >> >> Reviewed-by: Abhinav Kumar