Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1192496lql; Tue, 12 Mar 2024 09:43:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuO9zUsIZs0V7Byzq++S2Dbf8FEdpdRSWUtMAQQDEQRsWSZcRKzhFKyBMAiK906PykRAHld33bO9JResQNdnHFUQ7dTDCFTbwuUSLRNw== X-Google-Smtp-Source: AGHT+IHa7w242EeRlkMSqY3Z12Yj/lx0R3tB3IkTWnD6au0U+XtzYmOugkfuCKdwjkpboE2BWEeV X-Received: by 2002:a17:903:22cb:b0:1dd:8d25:f8a0 with SMTP id y11-20020a17090322cb00b001dd8d25f8a0mr80710plg.24.1710261796220; Tue, 12 Mar 2024 09:43:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710261796; cv=pass; d=google.com; s=arc-20160816; b=nIJvaPX1atWIrZHbprPL5bnyiUtCNexk/CfNsahtaXcGooWHBUljYamgzaO3TTscAU Hom6XBlmMOZ+GvyxQkEUhdq8AgCalFOn25bT3sANA7Jbnj0H4iwC30iG901dWkmVgeBa WVwGGpKH3RTARuAws2UmU7N4evAmkC/7QBMU2fF04WSrFur4enrYfQ1NCU9sWwltqIgm DHCZzpuqYCGu16ceJHOiL926g6E6fIRVYNqjR6g7BXrZ2i9tu7Rut1OB7JeqGq6SUL3/ K0lOFLtnylNqnRtm+QMFFr2pCmodyQka+76lHrehx0HRPFfTKT7e0zqV6ChQqnmwQr8n OKuA== 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=OW0+a3JoMqCdmYD+vIDa5dBWQKYTX/OT3ukv3CC2wr0=; fh=/Tvl+uDAQ0HiiOTkl8shMIh6FPVPcGwJkfACwg8QSrE=; b=AkTbkE3jTHo8uq/bP8nXTTOXm5MFo7mqXwR9rNnbbS/+FY9wsr53PnrXtSIyKj7FJA zrZg3EQVfNEZAXSCPxBx7F+ws/EKe8lsmAUrrYTwtsESaPUObLIOAqjXjltnq38dhdWy nJC3IO/iTmvBoVfCiUNhR9b6gn5kaUnBSBRzVM8TQ2mdqfImk7R3dPh408zAimZ4mlFa 1CBKmhY/XWnXV0w7ebOsWXeziHgFu9/1CHuwTsG/CcxdA5hTTJwtx17xmTx8YJkWs8my 0WCsYDfWhVHoJOEsPmLFPSfb2V9YyAITPjYxiaiYCYDNId1Iwsa0IcTVbB86tJM4hG2V OVBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mCyyrJVi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100528-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 z16-20020a170902d55000b001dda3fa4180si3604771plf.618.2024.03.12.09.43.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 09:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100528-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=mCyyrJVi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100528-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 02B87B22B93 for ; Tue, 12 Mar 2024 16:41:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C98C17E577; Tue, 12 Mar 2024 16:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mCyyrJVi" 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 E94047E114; Tue, 12 Mar 2024 16:41:16 +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=1710261677; cv=none; b=uy9kadAYKvUZadlJ6M4+sMq60SenBuAYNWhjdP4CEOW0/fQ8e5j/lNoYixOQvdK9HYatmRq7nH0E5KUdTxe7Y7AwaJqt1bfFAFpXOXFUw+CdlCNuv+VycDshLAAqecnCYlhgSNxf+gPd1eVVjXmCW9r9IQqgkKuFPvXxX7IYzHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710261677; c=relaxed/simple; bh=0g9LLPvlH5qpBdQAUmu++557crlx9uckDyhZnn5Qxls=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PiigUdyI4QuOzoMmBDv1a0vsIkB0HP1g7VhgCHxESa3EOUqEIHr/uRMzpss4rUXyuz4WS1cyeAFTr2ifwfi5pULdPeV4NpWjNTrt+D/QBpHgl6IqVaPrf0Fu6tT+gptOC5tJNfltqtMg2cNYG0jVFmr4IUEl1hwABAD52VyUj30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mCyyrJVi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FE3EC433F1; Tue, 12 Mar 2024 16:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710261676; bh=0g9LLPvlH5qpBdQAUmu++557crlx9uckDyhZnn5Qxls=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mCyyrJVi8Gfx4GQpxPp/xOYa4x3L/5rtjT+tWPz/oNwV+8ariPs6A9sEHDdmj1DV+ pBmgoR0O1eT9oyW/GOEZBaJj6N2MaF2RlMtTgdBGb/xoHfxC6bjVMD4H9u4DvvU84S hM2T++jhIZ8UkplTr7aH/5Oa8odR3abY9IRzQX9HpeOJfFc67JP7p9fqdLkZMwOzV4 6g+Uo2hgDhS/f//VYHB0rO9DFINzDI9uv89grP2I56yU0nGsgRhhOPj350h3LzPpmY uqBCPQS42VJeYxGVGlmF/1nV7JxtSTHIPYVyGE7VU3ttUfNA7ehckv3NBzURj2+QS/ Vr4xm7r6P6fIw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rk5Bq-000000005fC-2l0B; Tue, 12 Mar 2024 17:41:23 +0100 Date: Tue, 12 Mar 2024 17:41:22 +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 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. Johan