Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2966752lqp; Mon, 25 Mar 2024 14:57:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7pxg+RRr7qttztLhFH9pUzjF09vZvZJd6jd8YwV3st7Mx60N1qTuGcVV2ofdnVKsgsu75ec7ouSIW1bJQyrUGAgOkWq+Bb7rZhQODKQ== X-Google-Smtp-Source: AGHT+IEDsfVYDXe/7Oe0gKJKnYv5EcIECgd/cZgre1fL9oTlWU4anAuBusdifn08Yc5ZPkBFnDJ2 X-Received: by 2002:a17:906:1401:b0:a47:398f:1a06 with SMTP id p1-20020a170906140100b00a47398f1a06mr5541470ejc.1.1711403855099; Mon, 25 Mar 2024 14:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711403855; cv=pass; d=google.com; s=arc-20160816; b=iJN20wFyosSotdn1ZEc6ZLc8GwxWShhhtOwC//hEM1F2waCFJnQZB6NNr9asmfAdkq 3QHH4Adxe6fLOPv3nakdLehjts4tuqJj1r888+mH9hXLVZb1xX8/KMKvQVHvBIcCLWDy 9ZZXLCX5xBKjycvvQK7pZb8uPuLvxeYx46hC4WAQF+jhNVsGscf8KadcBKxnL337g+wV q9kqSp9yG/ZSitZCAz0lpijPdRjl+4ml0PLKo5slMwaGfu7UrlLZD8IsZO2aq0s4vZ6b n5iVbGXBqQk7+HcYSeVAsvu2KUv3ybD74REhZ4WlqF99dLnAEZsTJczJ/7Nd1cq0TXm9 rCpQ== 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:subject:cc:to :from:dkim-signature; bh=UR7sFSEYjP8BO01JVRD78Toou7R7NTsnLZcSYy9yMLk=; fh=2ccmNMprxKDkVJ0/V+9uUcmZ+l2/jHx4qx3V7MhvKKo=; b=tM5+eXUDQu0iHlAMlRN+KqCEBVAmSxeNfikiRgNbPK0Wd5jKCMFjKTj+Jjdug1xNoY 6n7ukvbMJxUmN3+C9Gswk7h4viN6Z+m1x1fSeAMNIEkUpltZT+OJyBzErkfZgMb5bTfb hqGqKHQ0MkJQGabkQhy0cLFUX5eSKdVACwhNk6KeSQXULim06c85YvfoWS6yMhJXB4mI cN9veQ4KC3iY7PH4MPvEpmgM2fLhMKUhRWIkNvOeGcb83anTIEptG7do6x5pCoWAvEqR FrDYMrxjd3V+i8gXZi4G9Ii2AdJgQpKYGdmyiKxMHMJZ1Elj4TcJdFmyPj+H43lKRI1r /9MA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OmCdKPSK; 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-118068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118068-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 j25-20020a1709066dd900b00a43ffa272b2si2731989ejt.402.2024.03.25.14.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 14:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118068-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=OmCdKPSK; 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-118068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118068-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 06A541F230EE for ; Mon, 25 Mar 2024 21:57:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEB5A6F533; Mon, 25 Mar 2024 21:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="OmCdKPSK" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 7E3D86F525 for ; Mon, 25 Mar 2024 21:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711403820; cv=none; b=FX8kT1OcpkZgroiXvLdqxBsXcctE8FGRVSDqzHbDtIvCgsz/az5PTPOMNRm6R+D5lX4P9BsUxFanHET2imbhL6KYTRRwNDMqZsOHdJWaNZUSit7DNw6n7cFj3qbNlWtjd4jGR4aQ7cUVhRvRc5wpbIgEU4uQOKJg3muqAPq5PXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711403820; c=relaxed/simple; bh=yULUuFpaQi4mHiQRsxtWHLwt0K5+xxOrBTrFegQ3W+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n9+GGqRx9dWrgugq/qpqpGUQFllAWo5zWVMGSXLhQiXwjMHOSviBeaPJV3iCqumTlqNX4yu70WjHHdDUEhLutAbSolU1jrox+DmuFX+rkRe3N+tl9kI0hvyd2TODZKC77bDX5o3mwND7TY9eZ6Ui4lLTq2j3nfEuwJX3k42u/qk= 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=OmCdKPSK; arc=none smtp.client-ip=209.85.215.178 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-pg1-f178.google.com with SMTP id 41be03b00d2f7-5f034b4dcecso2439748a12.1 for ; Mon, 25 Mar 2024 14:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711403818; x=1712008618; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UR7sFSEYjP8BO01JVRD78Toou7R7NTsnLZcSYy9yMLk=; b=OmCdKPSK50QeT2a9kcn82Gl3bMDJ1m+IhSg8ywsH66zN+u8/XOUGmDBDhmKpqqmYFe 6a3JvCumtCUIL9yKAIMDT8/kO5edOZR9k0ZGvoxUo4m3AxIPUbkQmVu3dltoi+Q5gl3I z8nLWvYEE3vN1YyWr1nY/f9JJ3FOezvm68CRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711403818; x=1712008618; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UR7sFSEYjP8BO01JVRD78Toou7R7NTsnLZcSYy9yMLk=; b=YVG7wERpJO+WxANg5hUEwLOzDKHTPW6aabsjD2GinvYQkMPq79s5VWEUudDYUqh+MK fzitR0y6ieOUP3nD7VRni8rI6UopbrnJ1LblaCbT6rssKwS3aVZYARX9LmolXionBWF4 xev777aSQitgYEDsFXj3ea3VUr4BOqADYVABlIR0OX/JRGMBdP1L6k2u4RDB6zF1fE3G bsGmcyopF+d0PU2JGxICiKfcB89PeYVfvEJqIe9vtQSxjBcFwkBXwjS/08wh01WqHp4A pAdPDrFnl2zq5Z9kbYVr5qj3cfWPUn6SKapxip0g0Tn2diqHameoMyv/qlHMN5nu3yma Ychw== X-Forwarded-Encrypted: i=1; AJvYcCXBKJzjMWUnpxk5GnfqlUG7bzhjJbufARQYu6q/RU78YBoEzYaJwlx/6P+B3nZBsHpq5RlF614L4jhp8t5JiBSwLz10UyvmJQqimgfh X-Gm-Message-State: AOJu0YxXt0UVDd6yy0XY3kba50PmlgHWyGQOLbb707FN11vh9/Csxc6C iCADvIrkgh+yd6yrtmOXTEO1hEeh+3D1HXh34lHpUfCon/vr5pjg01bslLBRIGmA+eshAoljufk = X-Received: by 2002:a17:902:ec8f:b0:1e0:73d:9172 with SMTP id x15-20020a170902ec8f00b001e0073d9172mr10772950plg.23.1711403817749; Mon, 25 Mar 2024 14:56:57 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:f21b:7dde:93cc:b987]) by smtp.gmail.com with ESMTPSA id n6-20020a170902e54600b001def0897284sm5207866plf.76.2024.03.25.14.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 14:56:57 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org Cc: Pin-yen Lin , Prahlad Kilambi , Hsin-Yi Wang , Douglas Anderson , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] drm-panel: Don't make failures quite so fatal Date: Mon, 25 Mar 2024 14:56:24 -0700 Message-ID: <20240325215631.3804796-1-dianders@chromium.org> X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series is born out of the observation that after several Chromebooks transitioned over to the generic "edp-panel" compatible string that we received a number of in-the-field reports of the primary graphics device for the Chromebook not coming up. The current belief is that these Chromebooks are actually suffering from a true hardware failure and the panel is either fully disconnected or it has some type of intermittent connection. While we can't solve that problem, digging showed that we actually dealt with this situation better _before_ switching to the generic "edp-panel" compatible string. Before switching to "edp-panel", devices using eDP would finish their probe and would actually not show any failure until you tried to turn the panel on. That was a _good_ thing. The component model used by many DRM devices means that if the panel doesn't finish probing that the rest of the DRM device doesn't probe. In turn, that means that any other display adapters (like ones that would allow hooking up an external display) don't probe. The end result was that a device with a broken panel that could have continued to be a useful computer by hooking up an external display became e-waste. I won't say that this series is the most elegant/wonderful thing in the world. Ideally we could fail the probe of the panel and still use the external display. That's a pretty serious re-design, though. DRM devices work like they do with the component model because of some of their inherent complexities. Douglas Anderson (3): drm/panel-edp: Abstract out function to set conservative timings drm/panel-edp: If we fail to powerup/get EDID, use conservative timings drm-panel: If drm_panel_dp_aux_backlight() fails, don't fail panel probe drivers/gpu/drm/panel/panel-edp.c | 60 +++++++++++-------- .../gpu/drm/panel/panel-samsung-atna33xc20.c | 9 ++- 2 files changed, 41 insertions(+), 28 deletions(-) -- 2.44.0.396.g6e790dbe36-goog