Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp962794lqe; Sun, 7 Apr 2024 11:48:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzmLPKYZhXMy6Cukg5td8qWdzJFdQXVOORcfALWduAfnRFdSVhGJyObGJeurKhiwYt7E+LX+5Rx0xu1qv2Qbpy0nXa+/1M6Mt2w1YGUA== X-Google-Smtp-Source: AGHT+IE0OOT+OpWlbRt2YlDoMxiFjqvKywTc1j0MAh4uIeKorkqqP9Hvj5HWlAbQDFV2tClAlczt X-Received: by 2002:a17:902:ce06:b0:1e3:f6dd:b16c with SMTP id k6-20020a170902ce0600b001e3f6ddb16cmr2342859plg.22.1712515725381; Sun, 07 Apr 2024 11:48:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712515725; cv=pass; d=google.com; s=arc-20160816; b=iha0jpRrcpEMNqcouB00zoOP6Jvqz1QEB0SbYmoD+6OUqwks3CphrVBhOyCdUFCCsh UDd+XjtGsBSnM5OVA5aGQ5MN7O+BKtE+wcE4RlcD12uQkvdOd+Ln4MenEscpzsyKHlDe Om/ysD+/tnXbWE4RbzewcCYOB4imBdD0UZwTxBqs1tHKxOO3F+w7cQvVaGAmra6ncUW2 4LuMk1lkmLB01io00rbLmFus1GRVsQZRsjA8vUwdv8WKvoNBaw/WW9577I9kGA2gsYc1 pvRTXpJ/MNeG1ZA9pFxtYaoCnhlvCMN4H5A58OphYDvXBq9jpYgmGgtQwXyBebHknYzv Ju4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=db6lSjrTWn0WLIptVs5z4sHyZ3I2pPxQhXTVknPZr9g=; fh=DkwlaGLB574523+gtyn/OpkSFQuk29wGoA7FPgK6ojs=; b=Fokv/Ikfm54Ay/Jb9WInTizYnb8qY6F3SWnBgXyN/6YHQ78Zref1ICV3jbku6SsIW9 C0Yfiu3CfPwZVkwoHguEs+crBok9BOAvGzsBykzVJZKl1+K11aEp5V2Bzxk+bYwZV+FH w85/J3JMcc3zPLV264+YJkt15x8ABhiYg0tquRogJPkUe8zyBO6PUp3Brr0Ebw0PiNKy /Ql1WQtorBjpdEksUCuW8svADwmH9PSQjHKNDcrUmrxajKIYhwH5rYz6lTLiBAmyueBn Dcqbhf6L4F/PtxIvMreNYNY/vkiz0IoEkecOCf8NtmSO+XhNPpeaTz5kEJRXEaHwlr3+ 6f9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pyl6UNvI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a13-20020a170902ee8d00b001e2a5d98c4bsi4806734pld.396.2024.04.07.11.48.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 11:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pyl6UNvI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 10BBE2826AC for ; Sun, 7 Apr 2024 18:48:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D302F3D0C2; Sun, 7 Apr 2024 18:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pyl6UNvI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E9E2B3BBFE; Sun, 7 Apr 2024 18:48:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712515718; cv=none; b=gofvjAdxHOqLqNj+0w1gG3jGPGjnDDDLrOS1enDyC7uFW+vSAVL44rMabG6Q2iydarqd0M1AH2Qdl6mcEPKJ9M20nALCAA74sNvoN37tXbB4tcdF5gvtCyxBISyckFkGTqzBfOHt573aQ3JGVlPrzQ7OMiKsRKSGRF5pZ4soVBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712515718; c=relaxed/simple; bh=YGFL1rkFv9aHtvgb46NeWxJpN7qYol8+cNvtNhFDkCk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AGyQErEzweMi/1AP5fNz9gF6jAeVroUd3W++ava0sfnPzxveWIsJ5yKC4JA0mQJ2I1gqBVgURNEVcAActrfcgpZQHTxhhshbmjEOuza2/FLFaXimMqH8czi1HgWdwkUsVwR6/7snB2t8zqdipbJuLM2pMlXScMcYyVHBBVP9fLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pyl6UNvI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E9CCC433C7; Sun, 7 Apr 2024 18:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712515717; bh=YGFL1rkFv9aHtvgb46NeWxJpN7qYol8+cNvtNhFDkCk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pyl6UNvIbYI3c4IpK/hoKJTP/kgWHmMsvZ1wbHIcTFpvfe6hQNnVhV4PCE4mh14W1 YebkZ3hZy4p7pIFeRykLxhZ3wYBVEv1OaFf+Jb8fmfmz6ItLA/WBTJ/RXPDrZYiO8U UdKWyXxVqBwO2N9t65LfWwJFZc82BoklTIb0/ZCD6SVztRkuSLBtIGZzXRKisPeoq9 wVOh4Bx8iUnXk27FE0DwVLBBw4Txb0bRlxFuadNJhX43ppfumwtWATCxEzmL+Mw8Kt 7wLrrPBVCSofKJhXXSpqYTUaZ2Ut3c8vTHOiLWabRZZJlhd8BVNzb6Qrq2GpvQFKit aJW8RejIGGZnA== Date: Sun, 7 Apr 2024 13:48:34 -0500 From: Bjorn Andersson To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Kuogee Hsieh , dri-devel@lists.freedesktop.org, seanpaul@chromium.org, swboyd@chromium.org, quic_jesszhan@quicinc.com, quic_bjorande@quicinc.com, johan@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drm/msm/dp: call dp_hpd_plug_handle()/unplug_handle() directly for external HPD Message-ID: References: <20240406031548.25829-1-quic_abhinavk@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240406031548.25829-1-quic_abhinavk@quicinc.com> On Fri, Apr 05, 2024 at 08:15:47PM -0700, Abhinav Kumar wrote: > From: Kuogee Hsieh [..] > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c > index d80f89581760..bfb6dfff27e8 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -1665,7 +1665,7 @@ void dp_bridge_hpd_notify(struct drm_bridge *bridge, > return; > > if (!dp_display->link_ready && status == connector_status_connected) > - dp_add_event(dp, EV_HPD_PLUG_INT, 0, 0); > + dp_hpd_plug_handle(dp, 0); If I read the code correctly, and we get an external connect event inbetween a previous disconnect and the related disable call, this should result in a PLUG_INT being injected into the queue still. Will that not cause the same problem? Regards, Bjorn > else if (dp_display->link_ready && status == connector_status_disconnected) > - dp_add_event(dp, EV_HPD_UNPLUG_INT, 0, 0); > + dp_hpd_unplug_handle(dp, 0); > } > -- > 2.43.2 >