Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1166015lqe; Sun, 7 Apr 2024 23:55:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0DXaJs30UZNXQ8tthNdnHx3+K3WzLxhwYKlo2wAD/i75ebMVv/Qr9PVjt5Vod2exvCMZqDaPE6kV9D+sjRUv0VFRw1Lp5Lo69evK3hg== X-Google-Smtp-Source: AGHT+IEZDcyWQpShtwTxg4C8iym/HRb/oNCpuKSY4D2V2hOm+gD7p29pTz6XwvQXtotdZSCMabWw X-Received: by 2002:a50:cc97:0:b0:56e:2cbc:db77 with SMTP id q23-20020a50cc97000000b0056e2cbcdb77mr6162293edi.33.1712559343748; Sun, 07 Apr 2024 23:55:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712559343; cv=pass; d=google.com; s=arc-20160816; b=saU9LOA4FuGksls2lgc2S2pZOmTWqg6cu9aZSJduBIqlYHcpEdSV1rDTI4SJclnQn6 4UZld5m/4KJWngIUkk7fZu6Z+/36veyrgEZ44fFy7Y6AR7EzDUVnaDgw+GPzKokOZZQF xVEkBNR2VWar3/kMGkQEeJvoqM0U2wRI3RhHa2Iwx4Rd5Eb9ccpLfVLktxthWoXgVC74 wytQqMOSrwrQPYLWOYF02GqF0kkaAZhMH/3kLZ4YXAEJv8KKPKloRRbrRNQtF0JDBV5i QmQottm7Bjj1eiWkE7yaDRGKfQumoduLsnfNJCC8spIhuIqGZReFDMklque2+5KBgbFx bI+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZEnBkTJmawels7rfHs4eisYW0lP9mltDK+Dnyfci/+o=; fh=xa5k0hjxcICcbtre2MiKC/gN+H8smtYxEos+qA4G73c=; b=LGp/ot1avD+VZnkBopKaNEWNR5c5CppAyCdw8ZxaQRzSaWWUN6OSEvQEULk+Bc9umN FMujy+d7W8jWB7jt6lxvaLT7v8vuyljbKrjUvpRmIZ+VEvwTyYVHxY1YJUVd8Dq1SjLr mv9N8eUpm8um18M7qPl0QomuMybicO5YIkpBptmLmyAzSRFg5KLd2tu2cHPkm3q+1HYG M2Gxa7cMlfetwo/CkVS3bPMsA6JBnne31OGv0kmMrmX4BKtmKHT0a/kf+pIUnefZVeQM dYdVpzTF9pvijO6hExPOY0iDXlNlooiV7aMW5j/XEc2tVjrN0oZpGDMxuIH1RnmOjPtX eBWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ishNHKJ7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-134864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c43-20020a509fae000000b0056e23095718si3294201edf.261.2024.04.07.23.55.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134864-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=@chromium.org header.s=google header.b=ishNHKJ7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-134864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6EDC11F2163D for ; Mon, 8 Apr 2024 06:55:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFB632576E; Mon, 8 Apr 2024 06:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ishNHKJ7" Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 370162561D for ; Mon, 8 Apr 2024 06:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712559335; cv=none; b=BeYlrHl2x+9iUlKigwY/4qLnq2gg6i81o7Mz2YHHttme77GSCnWPecJrsr5CdSqnAgAeez+Chgk9rwrQZ5e18Dyk0MV4r8Sp4onP756Cei7IKcVQWRV2ZwxmO8WbQMGoOZFHjj8ZftJ2vBPYT2VtjHufuXz60OpvRMSIoAeEL+c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712559335; c=relaxed/simple; bh=zgDAo289x0U/TZNT9NKJ1VYrGO5gX5wXQdlG/iGGklc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nNO6XZ+GmY2ZQ9QURYNR1OGt8iNyIIU7qWqAf5Ube2UDYBWNLpxKXU0FlGHaD/6CbbNGSGPs3RlPrg0vosv+bI2fy3pH7YvJM1lVi8qmOUVt8ekJs4o+1CwikE1RH54Xs8JCkDXk2ZnNxtT+BpXdloMrIiebbKcDDeqxXOYMsaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ishNHKJ7; arc=none smtp.client-ip=209.85.222.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-78d57b9f3caso127626985a.3 for ; Sun, 07 Apr 2024 23:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712559331; x=1713164131; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZEnBkTJmawels7rfHs4eisYW0lP9mltDK+Dnyfci/+o=; b=ishNHKJ77FOeIvZiwCZCAub2+s8RPQ61ALsnehgDKTPqMllp8OyAl0KUHV9VY89E6K Sw52C552CqcwfbOqK5hPAOh/Y6StbMrhUmtxkT6VjZT5cQayCKplBWGxvSTsVUqew2jc tB3x1U7iXq3OMiNVJSLJfNCQvC0OeiitSvMqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712559331; x=1713164131; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZEnBkTJmawels7rfHs4eisYW0lP9mltDK+Dnyfci/+o=; b=SnXyGtuNPxfaG3/g0JnlPJEizqsDKpEJ6/PiyEUeg6J4FkxuJzC1Zg3San3qqBkloo g4r6/SWTQJEn40oHj0rnehvt/kO/n0HC7pS/m3jL9hrT301JuxLlLFGRPglpcYzAHzH7 24VYSdT0gfHvNRm1ol95nXZTFgdUEmrMluLjscGnE+6EmHSmyanyO2h9pA6qT9nBH76j z2ABr9DYPWQRlmKdrroHGRMIdUUaZotgXhhHFccXHWm42qnkTDwbWay7f4SkGz40s9qY Dot6fo+AsFkvUo3bIbIcUX+ZsP4j8n8Y0zxSr/q6M9uHz1qOi9IC8ztX2s1c56Gl5SEl 6oZw== X-Forwarded-Encrypted: i=1; AJvYcCW9rtcqh2yvfOHH+/cBka/Huv0U1KdKPHZnzC8wEkFsSHne/1+L2hv8Rngvobi9IpttiH8dG3/iMQO2OeMz8MvRSDpcR3NaMXwS6z/h X-Gm-Message-State: AOJu0Yw5IRqofrccuBIVAcvPTqFpyMUp7LYh4jHS8VaupzPTOJZd9f8X DUiNFiT78+Z5Vp0oeSbPqc2uDPnzUTbvlOWCPGuSJ8XFugRvTn72ecLhkB9NcwInbbcy7awU3JR q0g== X-Received: by 2002:a05:622a:15d0:b0:434:bbfc:29d1 with SMTP id d16-20020a05622a15d000b00434bbfc29d1mr249582qty.36.1712559331573; Sun, 07 Apr 2024 23:55:31 -0700 (PDT) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com. [209.85.160.181]) by smtp.gmail.com with ESMTPSA id b3-20020ac844c3000000b00434a165d45asm802896qto.38.2024.04.07.23.55.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 23:55:29 -0700 (PDT) Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-4348110e888so192951cf.1 for ; Sun, 07 Apr 2024 23:55:29 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXeWbsnqgWaLbFMYZc6SYSTINdalck7DXkK7SWGRl2JoZP9eqo01ocTUizThmVNuBWl4F+yQ31bROjfWj8dpgmv0PhOMVtbTo5V+4hK X-Received: by 2002:ac8:5255:0:b0:434:7929:93fd with SMTP id y21-20020ac85255000000b00434792993fdmr175687qtn.3.1712559329181; Sun, 07 Apr 2024 23:55:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325215631.3804796-1-dianders@chromium.org> <20240325145626.2.Ia7a55a9657b0b6aa4644fd497a0bc595a771258c@changeid> In-Reply-To: From: Doug Anderson Date: Sun, 7 Apr 2024 23:55:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] drm/panel-edp: If we fail to powerup/get EDID, use conservative timings To: Hsin-Yi Wang Cc: dri-devel@lists.freedesktop.org, Pin-yen Lin , Prahlad Kilambi , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 25, 2024 at 5:05=E2=80=AFPM Hsin-Yi Wang = wrote: > > On Mon, Mar 25, 2024 at 2:57=E2=80=AFPM Douglas Anderson wrote: > > > > If at boot we fail to power up the eDP panel (most often happens if > > the eDP panel never asserts HPD to us) or if we are unable to read the > > EDID at bootup to figure out the panel's ID then let's use the > > conservative eDP panel powerup/powerdown timings but _not_ fail the > > probe. > > > > It might seem strange to _not_ fail the probe in this case since we > > were unable to powerup the panel and confirm it's there. However, > > there is a reason to do this. Specifically, if we fail to probe the > > panel then it really throws the whole display pipeline for loop. Most > > DRM subsystems are written so that they wait until all components > > (including the panel) have probed before they set everything up. When > > the panel doesn't come up then this never happens. As a side effect of > > not setting everything up then other display adapters don't get > > initialized. As a practical example, I can see that if I open up a > > sc7180-trogdor based Chromebook that's using the generic "edp-panel" > > and unplug the eDP panel that it causes the _external_ DP monitor not > > to function. This is obviously bad because it means that a device with > > a dead eDP panel becomes e-waste when it could instead still be given > > useful life with an external display. > > > > NOTES: > > - When we fail to probe like this, boot is a bit slow because we try > > several times to power the panel up. This doesn't feel horrible > > because it'll eventually work and the retries are known to help > > bring some panels up. > > - In the case where we hit the condition of failing to power up, the > > display will likely _never_ have a chance to work again until > > reboot. Once the panel-edp pm_runtime resume function fails it > > doesn't ever seem to retry. This is probably for the best given that > > we don't have any real timing/modes. eDP isn't expected to be > > "hotplugged" so this makes some sense. > > - It turns out that this makes panel-edp behave more similarly for > > users of the generic "edp-panel" compatible string and the old fixed > > panel compatible string. With the old fixed panel compatible string > > we don't talk to the panel during probe so we'd actually behave much > > the same way that we'll now behave for the generic "edp-panel". > > > > Signed-off-by: Douglas Anderson > > Reviewed-by: Hsin-Yi Wang Pushed to drm-misc-next: ce0ff22388ab drm/panel-edp: If we fail to powerup/get EDID, use conservative timings