Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4375515ioa; Wed, 27 Apr 2022 02:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU0oE8t2EBlDGGU7A6C6KI24W1kOcsp0rpj/L0LGU/WcB7nJCvVstN//urT3nE11nfk4d4 X-Received: by 2002:a62:15d1:0:b0:50d:3db1:babd with SMTP id 200-20020a6215d1000000b0050d3db1babdmr15712540pfv.19.1651051251249; Wed, 27 Apr 2022 02:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651051251; cv=none; d=google.com; s=arc-20160816; b=hsIp4rq9Mq9X/jEPec+lGo4p7VDxgerxJVkYB2EzESjX425iGryZNn2PV3pwp7NMYG f4f+8ugQ4wkdoIXoA+g3zwR2wAyMjb+Mfj1XGYvApNwf2vfS2z4Uso4eHTMLhEAYLQOW zuhtiRt8rHZ4ZydaygtwqADb2U0015fgpe7TsYH5IhTPbcIX9ih+UHNr38Ox00xQdWtn blw0qZ3f1HJUD6dRNfJrLawYo2oAseMhuOfbBJUT8+hkwsbc4nbmcZ6SE5nn1aTxOR62 wCaUwIAP2wSpD/itTIbbm8wH4gY2cR8+1Mk1tNt7S8de58BUDGQAtR0Jip4fZyR1Nd8L rb0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fi4UID/HmFece7oTL/UhSNA9qggnqUU7Xw1cgGW6Rg0=; b=iRWjJBV6m9saw74alkJH7xldNLZ7PL5T5s8Iu9B+CQn4YtuIVXH4qLlbE5BW2kBH/h VOCfN7/KwqbNARebKulUVaLRVvPFtFzKUDOK8aLSnrWLAnbQylupaNqwq048w0zViFMB 8nSp0JGce3J94IvF0syzPFdy4XyYb1upj+hpYYjajq79zG1+gMfWHXxghM71GvilXtSe PjVMX0D0Z1N6OvQJBBgBIXBUrBfzKtn1e6MP186tJ5fyhVSRwwPgw0LmeMd7BzvF8cFv 6lKmz1fNrhJpLrDMlMfBOEtoyT7U6cLj0Y3cikcCoGofUIKE6SRVSSSrI84fLr6GhAFf 5CSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aqWjLkdH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rj14-20020a17090b3e8e00b001c6a62efe0dsi1281326pjb.89.2022.04.27.02.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aqWjLkdH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C0082220F8; Wed, 27 Apr 2022 02:06:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352806AbiDZSve (ORCPT + 99 others); Tue, 26 Apr 2022 14:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352680AbiDZSv3 (ORCPT ); Tue, 26 Apr 2022 14:51:29 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B99A92319 for ; Tue, 26 Apr 2022 11:48:21 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id m20so17171368ejj.10 for ; Tue, 26 Apr 2022 11:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fi4UID/HmFece7oTL/UhSNA9qggnqUU7Xw1cgGW6Rg0=; b=aqWjLkdHqdOFB49iwf5Y4RQwk+Ttcp7/V4Ed9GhbY0FJtH/LOgxkMwi6yimmLKCDKQ b15sUfrqFb4zKv92ew4D5gnVulyEv3XWxOqsnWuf7A7Hsv9YkfsB0yJ+Jq3GnUix8T92 OhjiEgYtIeKLE63VdPnbE878TJT/VB/AdbkpM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fi4UID/HmFece7oTL/UhSNA9qggnqUU7Xw1cgGW6Rg0=; b=JEQS9uCnKHwrNCCls/jefWNm+DhL1uT3C13k5/eswkfMVOyAzUDFo6FCJcoJ8N6gkz MmJCknXBhNuxc+MFKsAZoRQ7koD4HNz9K0QDuPQI3jTTmsf6kbVOdMdYofNrdyJhLqu2 Io4E8iWQvUoeco25/cAU5Z69bdupX822pytBiTtWSeywCEZAAnJoYTqUDLZ1zlyscJkA UykpBi4XlOXErVZA/uMSqdS3DBBi7PSsvm8YP0wk8wRzuq48rLVDrg+tnHypdPoTJB25 QN2k44RL12FpxWPyW5/ceZWuZKX4pD7jCCyhA2wOCJTKYb3Jnq9OLjAAIiEUnG0JuVy1 yA9A== X-Gm-Message-State: AOAM5304aAUz+A7OiyUyOi5vthZgcA5MFMRZaL71hfZxBokQX3SZzixm uMgU0/QT3DDeZNAsB2gQNgJxptspYjUpf+528Ow= X-Received: by 2002:a17:907:7f1d:b0:6f3:b3e9:e484 with SMTP id qf29-20020a1709077f1d00b006f3b3e9e484mr3817114ejc.322.1650998899303; Tue, 26 Apr 2022 11:48:19 -0700 (PDT) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com. [209.85.128.50]) by smtp.gmail.com with ESMTPSA id lz12-20020a170906fb0c00b006f3a36a9807sm2133820ejb.19.2022.04.26.11.48.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Apr 2022 11:48:19 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id a14-20020a7bc1ce000000b00393fb52a386so1452016wmj.1 for ; Tue, 26 Apr 2022 11:48:17 -0700 (PDT) X-Received: by 2002:a05:600c:3c99:b0:392:b49c:7b79 with SMTP id bg25-20020a05600c3c9900b00392b49c7b79mr22469790wmb.199.1650998895809; Tue, 26 Apr 2022 11:48:15 -0700 (PDT) MIME-Version: 1.0 References: <1650671124-14030-1-git-send-email-quic_khsieh@quicinc.com> <3b9588d2-d9f6-c96f-b316-953b56b59bfe@linaro.org> <73e2a37e-23db-d614-5f5c-8120f1869158@quicinc.com> <9b331b16-8d1b-4e74-8fee-d74c4041f8d7@quicinc.com> <9b4ccdef-c98a-b907-c7ee-a92456dc5bba@quicinc.com> In-Reply-To: From: Doug Anderson Date: Tue, 26 Apr 2022 11:48:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Freedreno] [PATCH] drm/msm/dp: move add fail safe mode to dp_connector_get_mode() To: Abhinav Kumar Cc: freedreno , Sankeerth Billakanti , David Airlie , linux-arm-msm , LKML , dri-devel , Kuogee Hsieh , Vinod Koul , Andy Gross , Bjorn Andersson , Dmitry Baryshkov , "Aravind Venkateswaran (QUIC)" , Stephen Boyd , Sean Paul Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Hi, On Tue, Apr 26, 2022 at 8:37 AM Abhinav Kumar wrote: > > > Can you provide the exact EDID from the failing test case? Maybe that > > will help shed some light on what's going on. I looked at the original > > commit and it just referred to 4.2.2.1, which I assume is "EDID Read > > upon HPD Plug Event", but that doesn't give details that seem relevant > > to the discussion here. > > Yes so it is 4.2.2.1 and 4.2.2.6. > > That alone wont give the full picture. > > So its a combination of things. > > While running the test, the test equipment published only one mode. > But we could not support that mode because of 2 lanes. > Equipment did not add 640x480 to the list of modes. > DRM fwk will also not add it because count_modes is not 0 ( there was > one mode ). > So we ended up making these changes. Ah! This is useful context and makes tons of sense. This really feels like something that could be handled in the core. OK, See: https://lore.kernel.org/r/20220426114627.2.I4ac7f55aa446699f8c200a23c10463256f6f439f@changeid > > I guess maybe what's happening is that the test case is giving an EDID > > where all the modes are not supportable by the current clock rate / > > lanes? ...and then somehow we're not falling back to 640x480. It's > > always possible that this is a userspace problem. > > > > In any case, would you object to a revert of the patches in the short term? > > Not sure, if you saw this change kuogee posted last night. > https://patchwork.freedesktop.org/patch/483415/ > We did decided to remove all the code related to these test cases and > handle them in IGT. I hadn't seen it yet and I wasn't CCed. :( I'll take a look now.