Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1204073lql; Tue, 12 Mar 2024 10:02:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUidgeueIy0SwJj7PlrTgk2MSvBSS4iyBSRioNkYUm86SpqUil72JrdTrQ/foK8w/fa6I4BkMYehSnaZjTlJS/DwJEoLJ1uivc9BZ5KhQ== X-Google-Smtp-Source: AGHT+IFPNNkvBeFQrirdCRJsWz569UBgeefRoQuBA71Hk8kLCl9PSvGI+O8XFNvoyMpIKXCbgsa1 X-Received: by 2002:a05:6a20:8417:b0:1a1:8aa7:ecb4 with SMTP id c23-20020a056a20841700b001a18aa7ecb4mr4362706pzd.42.1710262974661; Tue, 12 Mar 2024 10:02:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710262974; cv=pass; d=google.com; s=arc-20160816; b=oSroVm05tNpRn0/fHtmp3LGAqG4Cq1p7jF2WoLlaZQZN69g/HkHljgu9+7jNd2dGU7 T+KW7DfLxbYW2LFp5lAlAVuJZW3a5kz7Ase9awd3Vz1n00Uls1L98wzhTMZGx/WVOTmR pdN6lOCzcCHdGA3M5sIuDd2TYcdU8crmiYz3LngRW1xBoW+cADhw7qlPH1LzpHD8PuAT aqyGH5ufT3TSmQdau/iJ2OOZM+ycy7DWDTH0H2ld4uZMR8hA0CQ7ifYk2db8FUq2Yc8w QJkh6WicbvOSynwtAx2u/NmFvjTV8m++N9KfIkXIq41N2+rEbv8FgHOM3Rgy9/fUB1Ai XEaw== 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=jnSgvgC1rvZTKpdj3OAbqU+XWpJ688RJJe3nnodQOfY=; fh=/Tvl+uDAQ0HiiOTkl8shMIh6FPVPcGwJkfACwg8QSrE=; b=vOFQs3sT/xgEXvmcyyBp0tFaSUBL3jjjOgxurfaJ8YkigrEQ4B9udguZtiHmI4bNM0 1P2loZHnulxIohaGc6YCeqjOrBm5rFfL4+HPh39i1EGfV1bO1onponjXBzjiq9fZgQ49 4wnWBFo8gf/ThKXZmN8sMM0Kz+8OIoeui5eLVQw0jnFTS2flZZIbfMlFH+VP5qgbqJUc Vvp9aBSA3fYpescgpINf+GJKaMvQuj+h1pNrCVBhuTUQvmIJudGEJgHi9MeG6Y17rHpN NS8Nnp3na0e88Vlfwa3++Qt6VCMKZMVYK6MnWEKK84A8nKl53QJk9q3YY/fBafxXzRAy 6VZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WxoRalM4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y39-20020a056a00182700b006e66f850a22si7509467pfa.248.2024.03.12.10.02.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 10:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WxoRalM4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100553-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 35F80B22023 for ; Tue, 12 Mar 2024 17:00:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7320137C3C; Tue, 12 Mar 2024 16:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WxoRalM4" 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 D829D137937; Tue, 12 Mar 2024 16:59:50 +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=1710262790; cv=none; b=FFDGZDj2uop6FdVq8+xUJyoRnSQl8Y8nACuwM4Xmuh3R3MJ0W7bECmz4s7em1A/mqtbPNivZ0YltcKkVmOny7Bd/OEFDtKmGk7jBo0Sueu+PX/h/2qzxIekRLLw8JfHcBtMg6XQOV1FhIILOAlRN4L4oPOE1oIdheL4bTZWfrHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710262790; c=relaxed/simple; bh=FSXZZfDNrd7UxykRlFzm59PWeSEaNKZ1Vv92FRdyvbg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XQ9bxRgaaJbPnS3xUDBMabz3zFg2oIzgfNeFgWrHBz1S8NFplu9Cw/jTc9MlUrH8oojfddRp1uCfOORFQq7EX8t3YyjOUf4i+Xm6uHKCV2mwJh1MwY9qblAZbIaLtVqkD63+yLfbLqQP5spLioDh74CgPdn55vTH761LoUI6kIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WxoRalM4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6565BC433F1; Tue, 12 Mar 2024 16:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710262790; bh=FSXZZfDNrd7UxykRlFzm59PWeSEaNKZ1Vv92FRdyvbg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WxoRalM4CEDvFeUEfC+bcww4xWbVK/OEUIkpGV3walVZXYmVRDvxLSpkwNMXpv24M hxtsYbP9eiWdngP109yto1HIFUlA8W7VJQq792SuiCsmLMBNIw+0m5C1vfzae5PtIl nNZxLQZz3W+1GVimGGxISe5Ftwf9gNrZ7pu2l/ID6uo9e574LGggcBOc6aKPzF5OA5 JhQN0fdSDF/yiz25TCm4dqsBuAQxlYO5wWW7VdAxmr2aQ6pObkO/jKIPKgapD786+1 hY0XsfomZjHNGdARdQuBoDfKxtNi9MEs9cHf/fksvRmPZaLAwVnHx0k02oEs7Uu/lx MA5jr7ic3xN4w== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rk5To-000000005qR-3wEe; Tue, 12 Mar 2024 17:59:56 +0100 Date: Tue, 12 Mar 2024 17:59:56 +0100 From: Johan Hovold 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, swboyd@chromium.org, quic_jesszhan@quicinc.com, quic_parellan@quicinc.com, quic_bjorande@quicinc.com, Rob Clark , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread Message-ID: References: <20240308214532.1404038-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: On Tue, Mar 12, 2024 at 05:41:23PM +0100, Johan Hovold wrote: > On Tue, Mar 12, 2024 at 11:09:11AM +0100, Johan Hovold wrote: > > On Fri, Mar 08, 2024 at 01:45:32PM -0800, Abhinav Kumar wrote: > > > > @@ -466,6 +466,8 @@ static int dp_display_notify_disconnect(struct device *dev) > > > { > > > struct dp_display_private *dp = dev_get_dp_display_private(dev); > > > > > > + dp->dp_display.link_ready = false; > > > > As I also pointed out in the other thread, setting link_ready to false > > here means that any spurious connect event (during physical disconnect) > > will always be processed, something which can currently lead to a leaked > > runtime pm reference. > > > > Wasting some power is of course preferred over crashing the machine, but > > please take it into consideration anyway. > > > > Especially if your intention with this patch was to address the resets > > we saw with sc8280xp which are gone since the HPD notify revert (which > > fixed the hotplug detect issue that left the bridge in a > > half-initialised state). > > Heh. This is getting ridiculous. I just tried running with this patch > and it again breaks hotplug detect in a VT console and in X (where I > could enable a reconnected external display by running xrandr twice > before). > > So, please, do not apply this one. To make things worse, I indeed also hit the reset when disconnecting after such a failed hotplug. Johan