Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp361786rdb; Thu, 15 Feb 2024 02:25:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcQ7X7m1N7Y2yRmsh3xUWUoRsSC93yFsFsmUhFwmghZg0K3M/b0JSr6f2WYFX+cswglw7QlgkciE4E2BcMcldSWBHiO3p579et0WHqHg== X-Google-Smtp-Source: AGHT+IHBrMeTC/RxBZsJBoQsS0PbMSET8i8XQ4p0ZINFQwgt8EqFby7NwZ2JrrkNNmIWg+o13YTn X-Received: by 2002:a17:906:3e09:b0:a3d:1cdf:19eb with SMTP id k9-20020a1709063e0900b00a3d1cdf19ebmr939438eji.11.1707992706552; Thu, 15 Feb 2024 02:25:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707992706; cv=pass; d=google.com; s=arc-20160816; b=1BGZ3y+wkSqdx0eQLtyvkINzgd8EXB09wSJtAOKLysf76+hVoMZmZUHmoZMj7HNrfF hPkgIUkPkw/u0YDhQZBeP2RmX5293p2o/VnEMm9GOMyNnSQ++LF2jG81BjqD0Ex6YMeZ k0EV7hx1QL2+zCsuVFpFdP4gz2hTjAuMgiXKSG3DlLnt7IMN0B0rC/rsNYMHTasAkBC1 pgbAzv1eLv4bUaZU7LcIkWenohz2Wh0jZiXJ8GSOx7YukcKa5H6nhxsvKWvHI3NTn0uT NzGFUcEDba1eIbTZhyRe8hWPimEt5ueZSIHHt/5rORaMIQeIYW560xZckiDl02bDhyUg uD3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=EwTmMAAMBHJ/7Fdsm8CudM1CTIgpHEqpKsIwBjpniro=; fh=q4xJgJ7OQeFOo3PNp0RluqwiYWlaeiIIlQRU71B/pjU=; b=l3EL3J4oTN99/eVc0wBXodOlMv+G7PSi2WHpcfblp9fqTpU+nFUS7fp8/SXycGGM5w yFrI4ikLHVz0+P7laVHX7xIhuq7XlTsZpSO+72E5kzhX//abgu+ztpwdBFX4gURRuN2p MjbQISBtyyPK2bb2oyzM2u3+RpODP6aBi5UO8tw8vcPqsslZmppBAXXyLQ+BTaVu5JAB nEBqh3dpzEmXknLLdYgI4wdIsGwrVSTShFVNbISp0OTR6/Z7KnXajC+cBohv3ASHOp94 an8iZwly+cFowXnzlA5hXy6CANklcDdrr9+SfzqjdGanyo9W/TBp/7F0XNrrZL+9YEQS Q+uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lYrNatWY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id va6-20020a17090711c600b00a3d200e8db2si513132ejb.150.2024.02.15.02.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 02:25:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lYrNatWY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4E8221F255C2 for ; Thu, 15 Feb 2024 10:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B8BA6996F; Thu, 15 Feb 2024 10:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lYrNatWY" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 3922F67E7C for ; Thu, 15 Feb 2024 10:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707992699; cv=none; b=kpTZCXuiH0VBmp2G8P46q7PHvp4eUOz/DhCB5Jh0Y17tfHSyg/LIqSzPuFAwAB5P+JAbntdCf6iyXGY1ioJwpjadsTKV9qAfAu2Z5SUox371ErVg8sKpMCVChNbxNOvQkkfOtIl5/Ob+DMZ55rDhOZE0qK5/KbJ1gwbR4F5FS+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707992699; c=relaxed/simple; bh=EwTmMAAMBHJ/7Fdsm8CudM1CTIgpHEqpKsIwBjpniro=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AfnUfOZclpeo7w01t65F5IlvM5ljxITO2tEW4iLJGQlaaGzsBl8fSXigfEmaGKdjiMjUcQxY65zdqvEwUq8b0ojh12VQgjH899bIoDLKyVWKviykynWsjnloTvI25eVTNc0Wx9Lr+okZxkS1GlgpI0G5+IVNs8Md//URuzLdJyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lYrNatWY; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707992696; x=1739528696; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=EwTmMAAMBHJ/7Fdsm8CudM1CTIgpHEqpKsIwBjpniro=; b=lYrNatWYojyWa0L3+yXdk2WRb6YcZt0xkyvQ/OiA6MvZcj3TeHsYu78d fWpCs3MTsG8qxXbfMOLzi467oqoUcMqEbZPCazKLzxg7DId+B378Dkszc iEZaL6+927oxSAs1BjTlALM1D1pmmO6mU35aUn7FZvBoBMAPeDQWtx4vI 8BCPcGvwu/f+ciA/AuEhZxhbdPTMDCHYtRAbhGYBhWOLCeR1IPY99sQE5 3OCr67EXbJDnf2RA4BixSFujch305daCsRl/rLerx3FAU2jmw6719Lvhi oMhvWJ5r5FE4mCPKzEirfpU+VbUCiRrhOKmqglfd19a/UNOh8iaoA5Giw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="5846383" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="5846383" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 02:24:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="8207115" Received: from kraszkow-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.44.13]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 02:24:50 -0800 From: Jani Nikula To: Doug Anderson , Hsin-Yi Wang Cc: dri-devel@lists.freedesktop.org, eizan@chromium.org, Ankit Nautiyal , Daniel Vetter , David Airlie , Heiner Kallweit , Imre Deak , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Stanislav Lisovskiy , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/dp: Don't attempt AUX transfers when eDP panels are not powered In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240202141109.1.I24277520ac754ea538c9b14578edc94e1df11b48@changeid> Date: Thu, 15 Feb 2024 12:24:47 +0200 Message-ID: <87sf1u58k0.fsf@intel.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=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, 14 Feb 2024, Doug Anderson wrote: > Hi, > > On Tue, Feb 13, 2024 at 10:25=E2=80=AFPM Hsin-Yi Wang wrote: >> >> On Wed, Feb 14, 2024 at 2:23=E2=80=AFPM Douglas Anderson wrote: >> > >> > If an eDP panel is not powered on then any attempts to talk to it over >> > the DP AUX channel will timeout. Unfortunately these attempts may be >> > quite slow. Userspace can initiate these attempts either via a >> > /dev/drm_dp_auxN device or via the created i2c device. >> > >> > Making the DP AUX drivers timeout faster is a difficult proposition. >> > In theory we could just poll the panel's HPD line in the AUX transfer >> > function and immediately return an error there. However, this is >> > easier said than done. For one thing, there's no hard requirement to >> > hook the HPD line up for eDP panels and it's OK to just delay a fixed >> > amount. For another thing, the HPD line may not be fast to probe. On >> > parade-ps8640 we need to wait for the bridge chip's firmware to boot >> > before we can get the HPD line and this is a slow process. >> > >> > The fact that the transfers are taking so long to timeout is causing >> > real problems. The open source fwupd daemon sometimes scans DP busses >> > looking for devices whose firmware need updating. If it happens to >> > scan while a panel is turned off this scan can take a long time. The >> > fwupd daemon could try to be smarter and only scan when eDP panels are >> > turned on, but we can also improve the behavior in the kernel. >> > >> > Let's let eDP panels drivers specify that a panel is turned off and >> > then modify the common AUX transfer code not to attempt a transfer in >> > this case. >> > >> > Signed-off-by: Douglas Anderson >> > --- >> >> Reviewed-by: Hsin-Yi Wang > > Thanks for the review! > > Given that this touches core DRM code and that I never got > confirmation that Jani's concerns were addressed with my previous > response, I'm still going to wait a little while before applying. I'm > on vacation for most of next week, but if there are no further replies > between now and then I'll plan to apply this to "drm-misc-next" the > week of Feb 26th. If someone else wants to apply this before I do then > I certainly won't object. Jani: if you feel this needs more discussion > or otherwise object to this patch landing then please yell. Likewise > if anyone else in the community wants to throw in their opinion, feel > free. Sorry for dropping the ball after my initial response. I simply have not had the time to look into this. It would be great to get, say, drm-misc maintainer ack on this before merging. It's not fair for me to stall this any longer, I'll trust their judgement. Reasonable? BR, Jani. --=20 Jani Nikula, Intel