Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3696181pxb; Mon, 24 Jan 2022 15:37:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuv6ilFGPHfkwCXv0vNFhpyJmfsBvIvwoE0pmi+DAMSUNmXCugP8ylU2QBGRMxTM2lLfnK X-Received: by 2002:a17:902:c412:b0:14b:275d:d2ea with SMTP id k18-20020a170902c41200b0014b275dd2eamr13492353plk.68.1643067451830; Mon, 24 Jan 2022 15:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067451; cv=none; d=google.com; s=arc-20160816; b=A4Mkfgb3scFuuYmgsQWNxt7MjDpaQEDJp32lFNuKTWuYc8Z3xPpIn/7QrKy2DFsjgX +7zSsOp27VLntQCOslFAMF6PEHewuwwczA2O4P/e4wG+m0D4GbjpGiR6B71MPX71nGWD oKuCJoX7mdw+qlMeo9oLSn7XtYqZOMswxIQSjcEx8v1d4xW18aHD6bZ0/r+jObkxHasQ s+HRsm3GN+ImgtZWenDPwBt2NX11nhvl1rD+z8Us2iWya7JBzn/np4T0oK5iLnTHe7Av 2P/K3UGN5QjA2jGiOBVpSAi2SfgR2aqZ8DkfLwyh16GIDQl20OVFYHTld3nzT3SxGLqw XoQw== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=JYiLYol9mvWoC/k9SlBNW3f4S6peoi+xmexnQLDaAHc=; b=CHVQuPti1neNf7B1sqncIIFI5kOw213X+aRubBl09fuZIUmIBZ7axQa9S7GLO7zNE3 aTnOgKYnwecZrbWFISWf3Ax1KqsKiVfbf3WuPq4tWASou4ieQsSjATr/2WOzz9vicjTw JD8eoVvmT6+r27bgxXkxAez+s+Hp1ESWO2OBZKBkQnsG8f6OpgknsHTMzQQOhwpd2U9C 6omrZby6zP7wlWDqvpUvwDGhTPjeuFti9+Qgs4LlQvhmgCZBpmpsFFw1fjkHSYXdosEU nVbbChIBxg/x+OwDUQdI6g00oACJvDmaxIhpBbsf18adNE7wibrWI8okR8UQXGTbEl0J g7yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HsuuTxhs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e186si1321915pgc.200.2022.01.24.15.37.19; Mon, 24 Jan 2022 15:37:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HsuuTxhs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2359422AbiAXXch (ORCPT + 99 others); Mon, 24 Jan 2022 18:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456647AbiAXWjw (ORCPT ); Mon, 24 Jan 2022 17:39:52 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA02C04D61D for ; Mon, 24 Jan 2022 13:04:20 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id s6-20020a0568301e0600b0059ea5472c98so8270024otr.11 for ; Mon, 24 Jan 2022 13:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=JYiLYol9mvWoC/k9SlBNW3f4S6peoi+xmexnQLDaAHc=; b=HsuuTxhscaoAqtQaDrdwBqOr+pYZMN4w2SA8Q7gzbGeDVQlpfcRDDYbqoI1eGaw4HH tqzC8Rw8Wq9AFXlLETHFjUOJ/Kd57+8avtXJcdQl+Zk2xnWWSjvNGfjrKmB1mjc9h3G/ J51AFEegRcmcOXWbI+rmYoSKJy7YCRzp/zMxE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=JYiLYol9mvWoC/k9SlBNW3f4S6peoi+xmexnQLDaAHc=; b=V5JuFevwKvfVhdY0gN82jg4/VfrRxiGjzO8mW9Eoz9h7/g4Il3EXFC9ESIWSA/X++L 8d9rBCDOO/oF0pPDhlmAsEmWsohSWw9tUoANh6U3f209NYSUu1DkvFBje5q4Q6yzsV1d XHDowfBhtrEl2V040tn5CNJblXczGJCRAXnNtAv8EDoGssnRsZK0FVtV4qElbnnnG1+K cTh3qE1QQk6jBS8GmdQz8gnP5/Qf5Gw0rFqZAznjB2qdGlVMicwgDYNP4papy/ZPBFJt nvwzYbQ2CEUiLuP94JIpK6Ocda8eabyDZ+OS7+zcI34YAc3InAC4xj8BdApwXUTsOelH RJfQ== X-Gm-Message-State: AOAM532tokHHmFaROLCnAXDPQ98+8VqfeZCZcBfc42iBRU/IxuyRuqB1 zVmJ2TlsqXb5GiLQVPYPOHeIPoZunAMF5DMS514NPA== X-Received: by 2002:a05:6830:30ba:: with SMTP id g26mr6213128ots.159.1643058259360; Mon, 24 Jan 2022 13:04:19 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 24 Jan 2022 13:04:18 -0800 MIME-Version: 1.0 In-Reply-To: <1643057170-10413-1-git-send-email-quic_khsieh@quicinc.com> References: <1643057170-10413-1-git-send-email-quic_khsieh@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 24 Jan 2022 13:04:18 -0800 Message-ID: Subject: Re: [PATCH] drm/msm/dp: always add fail-safe mode into connector mode list To: Kuogee Hsieh , agross@kernel.org, airlied@linux.ie, bjorn.andersson@linaro.org, daniel@ffwll.ch, dmitry.baryshkov@linaro.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: quic_abhinavk@quicinc.com, aravindh@codeaurora.org, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kuogee Hsieh (2022-01-24 12:46:10) > Some of DP link compliant test expects to return fail-safe mode > if prefer detailed timing mode can not be supported by mainlink's > lane and rate after link training. Therefore add fail-safe mode > into connector mode list as backup mode. This patch fixes test > case 4.2.2.1. > > Signed-off-by: Kuogee Hsieh Any Fixes tag? I also wonder why this isn't pushed into the DP core code somehow. Wouldn't every device need to add a 640x480 mode by default? > --- > drivers/gpu/drm/msm/dp/dp_panel.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c > index 3b02922..7743b45 100644 > --- a/drivers/gpu/drm/msm/dp/dp_panel.c > +++ b/drivers/gpu/drm/msm/dp/dp_panel.c > @@ -221,6 +221,11 @@ int dp_panel_read_sink_caps(struct dp_panel *dp_panel, > if (drm_add_modes_noedid(connector, 640, 480)) > drm_set_preferred_mode(connector, 640, 480); > mutex_unlock(&connector->dev->mode_config.mutex); > + } else { > + /* always add fail-safe mode as backup mode */ > + mutex_lock(&connector->dev->mode_config.mutex); > + drm_add_modes_noedid(connector, 640, 480); > + mutex_unlock(&connector->dev->mode_config.mutex); > } > > if (panel->aux_cfg_update_done) { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >