Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp333000rwd; Wed, 14 Jun 2023 17:02:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IMivBgcWupz5jIUwhVpI/f8I46At+/EPpSzB+iB/IwMVN+oim2ChikUscjZsn4gR2xDEV X-Received: by 2002:a2e:7e09:0:b0:2b1:b4e9:4c3 with SMTP id z9-20020a2e7e09000000b002b1b4e904c3mr8377297ljc.2.1686787342717; Wed, 14 Jun 2023 17:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686787342; cv=none; d=google.com; s=arc-20160816; b=dQSz5/ODgB6sWTjYMv8aXZ+tS4K7bq6RyA67Fmhp+yR+uEcwGjSF6nzSt9rWjX3j+j y6enN5XnrWvVHeJ0qmxjAXE4AbRfeK7o8AOGEL2Tc6uUNYX3LWVdr/oxtRXygSDv+24T 4r9m2m3wLPWoWSvMSpY8Inf60+5KF+JmzjKV6A6aKdH8guYVqh4tcrraHpkQq90ydmTY nwIVESJAzEv/nb2VXve880SjkvyucLclZPc6OBJ/BJf1hTpI1E2TKIaBZDV1gAfhtxov 8naMBKucRs77R9oHZRz0eOnz/ivqp13Yt6y6anVbEkenmXxzQ8l8gOHIzC916GmGsNX5 tBKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=/Db8KxnSVPTgowcGe/Isx7RarF8FooosNlupn6FMqKw=; b=ZeScWbIGyQJ0fWk7MUgDJH9VvSAfNph6Yk7SNADA46QA9jPISdY6VZ4XaajwSQviGC byEMtwSL7u/e0lwE9+0i/DOEDWT+MPphmCvkoa58plX6a9Y+5kAzKdw9iZ+49e8kiVa9 4oXH9jjHI02M3n5eAikuSw+Du5Ln+/u7XMh28GdgFv4cD78FMkfbWrdTbSdsEKDV0w1k /sA/om3w+o7NA4jPGz5ToRDmDgeD8Rbf1dBR4GLoOlMHULMV0isPDhpOgFrM5hmgarJc 4MUSWWyabT348XPM+t3zjjW54NZUjk/kI6G/lWn1n1Ri2c299kIckvBW4IcjFDSJsTzo MdQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=68d1A1Ti; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020aa7c6ce000000b005169fffa138si9140636eds.603.2023.06.14.17.01.57; Wed, 14 Jun 2023 17:02:22 -0700 (PDT) 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=@google.com header.s=20221208 header.b=68d1A1Ti; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjFNXzP (ORCPT + 99 others); Wed, 14 Jun 2023 19:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbjFNXzM (ORCPT ); Wed, 14 Jun 2023 19:55:12 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BE871FD4 for ; Wed, 14 Jun 2023 16:55:09 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-65313d304e6so4387378b3a.0 for ; Wed, 14 Jun 2023 16:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686786908; x=1689378908; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=/Db8KxnSVPTgowcGe/Isx7RarF8FooosNlupn6FMqKw=; b=68d1A1Tig/1eII5XPEXfOHqu8vpkYRpuCsx6V036uwEMnTYmARW+qtNlVFv2rP+VWC uo3W/U8U+kL4Jub3FaVUEkCksUs4NZtX/RP/E97McWOR8Hn9ATAfO1iIoNMbi7FoQeXO Oj+lL7ZfXaFg0Mxk72zcyhcrDagaT/KVbr1+/vtcVgKVtwHe/E12VdTqjsHZlSN+UH56 AChyg27Vj4/vL+rUQdhZvLfQ1xpQmGOLlYA+/WL/QWYoctM6tR2XkuEgY8hmPF9idUfP M52HcGC1uy8xT1XxvHFK9K5h+BfR3cnWBw+DZBNt9qZECy7Me42syUKKxmefvPww3pHo HcFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686786908; x=1689378908; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/Db8KxnSVPTgowcGe/Isx7RarF8FooosNlupn6FMqKw=; b=AVaA91cmbt/FGwEH/I1D/yXPZAtt5gZFPBrOcDiPIQh9GYoNS08Dt9VVbeCKip2AuH ATzvUWrakgBNLZfJh6CFOiOy7g2+wTZo9alRh9C84lmAgna+vSkgV9tAaG3LxEklDOUe Csg35u2NR9B0pKCsxWY4beYb4KVBfHZm7hbQUJ8Rjc911j97mDAsOo678R3SKuxoW7+L Kf4OR6NEWDtD1hqHmQovE9KgSpNW0VHdCFjGRvw5cm1B18RQuozvkXP+eVko7T85nOgE ZXO+s4lQLi2kO+/57Wo4e0y1C3VD1H3/aKLmEH5bNpH2kQ9yEIbgflFHux8zJuHGblLp kzaA== X-Gm-Message-State: AC+VfDxafJZIE4V7GBKnKnWdkfSxrwYLVkZccs5lGsFz3EKGfrjgtzuH VgpWfVzJJSPbmHEW27XJNHVyBrl/5KJAc0k= X-Received: from pceballos.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:128c]) (user=pceballos job=sendgmr) by 2002:a05:6a00:1909:b0:64d:2cb0:c623 with SMTP id y9-20020a056a00190900b0064d2cb0c623mr1109527pfi.4.1686786908572; Wed, 14 Jun 2023 16:55:08 -0700 (PDT) Date: Wed, 14 Jun 2023 23:54:52 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230614235452.3765265-1-pceballos@google.com> Subject: [PATCH v2] drm/i915/display/lspcon: Increase LSPCON mode settle timeout From: Pablo Ceballos To: David Airlie , Daniel Vetter Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , "=?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?=" , Sam Ravnborg , Pablo Ceballos , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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: X-Mailing-List: linux-kernel@vger.kernel.org This is to eliminate all cases of "*ERROR* LSPCON mode hasn't settled", followed by link training errors. Intel engineers recommended increasing this timeout and that does resolve the issue. On some CometLake-based device designs the Parade PS175 takes more than 400ms to settle in PCON mode. 100 reboot trials on one device resulted in a median settle time of 440ms and a maximum of 444ms. Even after increasing the timeout to 500ms, 2% of devices still had this error. So this increases the timeout to 800ms. Signed-off-by: Pablo Ceballos --- Changelog since v1: - Added more details in the commit message drivers/gpu/drm/i915/display/intel_lspcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers/gpu/drm/i915/display/intel_lspcon.c index bb3b5355a0d9..d7299fdc43ad 100644 --- a/drivers/gpu/drm/i915/display/intel_lspcon.c +++ b/drivers/gpu/drm/i915/display/intel_lspcon.c @@ -167,7 +167,7 @@ static enum drm_lspcon_mode lspcon_wait_mode(struct intel_lspcon *lspcon, drm_dbg_kms(&i915->drm, "Waiting for LSPCON mode %s to settle\n", lspcon_mode_name(mode)); - wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 400); + wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 800); if (current_mode != mode) drm_err(&i915->drm, "LSPCON mode hasn't settled\n"); -- 2.41.0.162.gfafddb0af9-goog