Message ID | 20221117133655.5.I96ce2a565ff893eddcbee70174c991179311a3ae@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp618147wrr; Thu, 17 Nov 2022 12:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf64bMEL0AXlHJN08k8gBjtknRnLdhZWgE5jTNhLKtTWK5d5Kz7Tt0TEUSVKI1THPMnFeSqH X-Received: by 2002:a17:90a:c596:b0:212:d2be:c821 with SMTP id l22-20020a17090ac59600b00212d2bec821mr4535734pjt.37.1668718736445; Thu, 17 Nov 2022 12:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668718736; cv=none; d=google.com; s=arc-20160816; b=lBTfs8yNYt+Z89CcxJ7sZ0ygxxLvfSSIIqu0g19Z3hxrU4yhGtxFqKCMeyUl0CCl0m GidCdvCfCKoHMGcEb2LuT0Q+vlMGBHs4Ot/F0N3YXtVLfTTCj0xiQ4nYMF8tfSYUNID7 6Uy8UfG2JcdUQwSPzpBeNUvCyAV7GBcFSy8f2h0xWla7rJAp3ajf4lYCvuZg/sBgOsyj St9/8xiq9yRXCucz9xXn+q3JiMSGGGJAcFvllHzVx8+Gz5QjE2YXpGCU2UMaPikahaaB UUWqlNgIwF/Vk3CTdeDYdDFcbTJZKrCiL2paUiYVOFYZ0mRLi20r636nhufv2B+UaIzD McEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CBMrn5FpFpyo6XLLEvcLrJTYaTIQkMIKgkloGnkuSUA=; b=fArpc1XErQiDLKKP30m8vkW5nYRY4QMHjuQaRcLfuz2AAZCrV1m/3D8bFCRV9EPSta t4fVcCtgjlGTN9JcNgK3PsGNO5yaJucsbdJo+qmstBUPZKfMJB5Ii5PLlJcz8qKGWf7u V+137MST5lJ2euSs1MM+qsAq2xVr5oXU3pr0DmOoNuRQnah8S9/QBy6/yDyZc0pQkL+U 4iGGyEWm1EgxdoPUuRwEIid7lvzgkoHX9Lxk7BB+h4lBtcJoWEy6U6edK+u5FR/BrsbV i+eQUvEfUzgEZTEGPsQ5W+k5bLj46AV8MahWR8so5Vpje/A3D1nx2Kb0Q0VQ1Kg144EE muSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Hme4cLCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00084f00b005614fb190e4si2068019pfk.193.2022.11.17.12.58.41; Thu, 17 Nov 2022 12:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Hme4cLCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240478AbiKQUjZ (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 17 Nov 2022 15:39:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234967AbiKQUjR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 15:39:17 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE258CB85 for <linux-kernel@vger.kernel.org>; Thu, 17 Nov 2022 12:39:12 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id bp12so1522804ilb.9 for <linux-kernel@vger.kernel.org>; Thu, 17 Nov 2022 12:39:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CBMrn5FpFpyo6XLLEvcLrJTYaTIQkMIKgkloGnkuSUA=; b=Hme4cLCtXAaX9LqVE8bdNByEHHkvn6cBFTD9Z299bI4A2Aybw7Uz0dM8tg3n3SkkHg x+61Jdtz1YbB0GHTgtPtM66W1lrayEX9ndqwqIDGS4+ZN5QjdDuXuhUUfaB1M/lIUutn awlO9fLKxauHwnc51wZYSBzuaBEwGNr5XJJcQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CBMrn5FpFpyo6XLLEvcLrJTYaTIQkMIKgkloGnkuSUA=; b=zEzE60p7tG8fwUd1uNOkiRmUA2ntjJfHnjIzPAq+GYq7vGzWsJUqGoEdks9RwQ/Lwb xFjGU7irwsyA9Xm5qJjX28r7ArJoCKxalTx3fL2ysgjeKBVGQWSisDD16axDZww7ZxrC Ugp2YIefMm3f0axcvTPlyGOMXjCa/J1NyaDQ8FSHAcNlzv96tgq/vWPLMlwbDElhvkc3 NCEOhWA1H8LBvA76aZFkdI8ntfPPWxaqYrAZjhL6mPrqmpEPTIg44lEQlfk0ESBIpbFh 6ni7ee/PkVCNbTlqsLjHQdcZvwv71zN2ICmMIIKRbhGyW8Uc9/Y22cMD9J54xqJMChKb CPsw== X-Gm-Message-State: ANoB5pne+LrcbttrZSZzMnLL/P8dY2gdkIa/Ngbqj7zwYXn7WH7DnS84 gnKQcuvnusOmewzGp12yHmar5g== X-Received: by 2002:a92:d9cb:0:b0:2fa:12a7:b8c8 with SMTP id n11-20020a92d9cb000000b002fa12a7b8c8mr1990295ilq.286.1668717552319; Thu, 17 Nov 2022 12:39:12 -0800 (PST) Received: from midworld.bld.corp.google.com ([2620:15c:183:200:b285:6808:3f3e:f538]) by smtp.gmail.com with ESMTPSA id d191-20020a0262c8000000b00363da904602sm570192jac.13.2022.11.17.12.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 12:39:11 -0800 (PST) From: Drew Davenport <ddavenport@chromium.org> To: dri-devel@lists.freedesktop.org Cc: dianders@chromium.org, Drew Davenport <ddavenport@chromium.org>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Sam Ravnborg <sam@ravnborg.org>, Thierry Reding <thierry.reding@gmail.com>, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] drm/panel-samsung-atna33xc20: Extend autosuspend delay Date: Thu, 17 Nov 2022 13:38:48 -0700 Message-Id: <20221117133655.5.I96ce2a565ff893eddcbee70174c991179311a3ae@changeid> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221117133655.1.I51639dc112bbbe27259df6bdad56dbabd655d91a@changeid> References: <20221117133655.1.I51639dc112bbbe27259df6bdad56dbabd655d91a@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749778417869420472?= X-GMAIL-MSGID: =?utf-8?q?1749778417869420472?= |
Series |
[1/5] drm/panel-edp: Use ktime_get_boottime for delays
|
|
Commit Message
Drew Davenport
Nov. 17, 2022, 8:38 p.m. UTC
Avoid the panel oscillating on and off during boot. In some cases it
will be more than 1000ms between powering the panel to read the EDID early
during boot, and enabling the panel for display. Extending the
autosuspend delay avoids autosuspending during this interval.
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
---
drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi, On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport <ddavenport@chromium.org> wrote: > > Avoid the panel oscillating on and off during boot. In some cases it > will be more than 1000ms between powering the panel to read the EDID early > during boot, and enabling the panel for display. Extending the > autosuspend delay avoids autosuspending during this interval. > > Signed-off-by: Drew Davenport <ddavenport@chromium.org> > > --- > > drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Douglas Anderson <dianders@chromium.org>
Hi, On Thu, Nov 17, 2022 at 1:15 PM Doug Anderson <dianders@chromium.org> wrote: > > Hi, > > On Thu, Nov 17, 2022 at 12:39 PM Drew Davenport <ddavenport@chromium.org> wrote: > > > > Avoid the panel oscillating on and off during boot. In some cases it > > will be more than 1000ms between powering the panel to read the EDID early > > during boot, and enabling the panel for display. Extending the > > autosuspend delay avoids autosuspending during this interval. > > > > Signed-off-by: Drew Davenport <ddavenport@chromium.org> > > > > --- > > > > drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Douglas Anderson <dianders@chromium.org> Pushed to drm-misc-next: 8d5d063fd669 drm/panel-samsung-atna33xc20: Extend autosuspend delay
diff --git a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c b/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c index f4616f0367846..5703f4712d96e 100644 --- a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c +++ b/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c @@ -310,7 +310,7 @@ static int atana33xc20_probe(struct dp_aux_ep_device *aux_ep) ret = devm_add_action_or_reset(dev, atana33xc20_runtime_disable, dev); if (ret) return ret; - pm_runtime_set_autosuspend_delay(dev, 1000); + pm_runtime_set_autosuspend_delay(dev, 2000); pm_runtime_use_autosuspend(dev); ret = devm_add_action_or_reset(dev, atana33xc20_dont_use_autosuspend, dev); if (ret)