Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp602735rdb; Thu, 22 Feb 2024 13:26:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUW7gO5v2j8zlRSaJGLwJ2NxghbqTGzcg4HTaUV1P6gbeb7rcSXy1lMkTwXxk2OIWFqCBMtBOnW9kYdPRpyZpjATgV2Ls3rD2tkTKDxYQ== X-Google-Smtp-Source: AGHT+IGBUN9fPqarJn+0C1ZHCywQXDkViUNDlJOrFROjC8bCZZl0rzt6MIoorKBH4MfHCuO+Rha1 X-Received: by 2002:a17:906:f80f:b0:a3f:94d2:bdb9 with SMTP id kh15-20020a170906f80f00b00a3f94d2bdb9mr2072248ejb.11.1708637173011; Thu, 22 Feb 2024 13:26:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708637172; cv=pass; d=google.com; s=arc-20160816; b=s8G2LP2YK3dP5DeDW/Z4lgLdL/zEHyWwiUFsg/YsehXsQJNPjTmi4/yGUhi7Dts7NF ZoflpUrOKo7HP7RHzrWo4wtak/Rh2rwL2N+enCMU5ZbCY/XN6BUq7rnDHfE9mFT+yoGb Oi97sJbIZljLiquzfo/5VBbBH2fMEDYobq2/VNnE6fFqb8xQSRKUr4C0br0TLJye13kE ZgO1R7odxWpXzv/Am00t1x3dobDe6rT3l+xjehxEI7QEHarercG/NgVnXtKUIUp5OUN3 cXidv83ZZzkz7BYOJRxM+jLIXhG0WB8/KLwrNgRvDv65b5+ava+1N/iT8/zR5IGTw/0k QC9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=cAL1eQi9fwO5M4iI6CPGCaZqqkkbT0pjcXeRhNKkMT4=; fh=gpZ6TdFu7GtsWc5JH23qu2qWtgz+rs5dhFqmMeFq1w8=; b=ItuvG2G8v48x+KIqMjVlPitcEvYdSqHXyCleRxZYKVyeX8gf9vWr1Bg6t2Aur6ai7T gABydlwnQ/g0F0GyViy8U9fvWevD1sfblxuSE8VysppkVGNCyOKZFUqoG3MnE9JXjurx 3ldmDRTaxexw09ZOnd4UEJ+JdQQv8BktslnrKSuc1ulM8qiJdKxgMSg8IvQEpI+KZGno xuaa8Bh+5iw72U/4eDTwSc3HVTUCatjzuNrh/zp9/DcPPOaWhUEHPP1aRsLBcCBCMCAG lNUjexpINpQhGS4FKLp/RL6ugqBZ5BHuvm3pDSLedK4kfMjenOnsGJLiQqOPXXeCk1EJ 3mVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t1YRLJF1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 s19-20020a056402521300b00564bbec5c5csi3019567edd.449.2024.02.22.13.26.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 13:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77400-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=@linaro.org header.s=google header.b=t1YRLJF1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 93EB31F265D1 for ; Thu, 22 Feb 2024 21:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B371812D1E6; Thu, 22 Feb 2024 21:26:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="t1YRLJF1" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (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 177C173F25 for ; Thu, 22 Feb 2024 21:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708637165; cv=none; b=McoWVQMOfQ7moqN9NpjcYxqzOwWdnOrXpdhAkaKmzrK21A7AcQ4HQfi0RAH/VXMaUxo2JGL9LfPaXpD1EywMn8LVbdvdRXcpnMDa8/C7dM/7geTTmyCk22f4cvMnlcKIuVxNV9DAN8sfMvwN2v5oECfdhoZYkb1emGO0uEVdTgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708637165; c=relaxed/simple; bh=5SguTrEUvfKusWUyCh7Z+X5KDfWptE4n71MYrhnSoa0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gjvXs1Egcux2znoCs3fuYnFb+wIxbU2F34Rj0kiEfvhtNMCVOekj3K8FBImVSsiy6YJeEW/SvX21G+rQN6tBqSMz1c4NfEB6zdDgNMHAHgsIVuYQqT/cmX54pG3GUXmr/E47jxLpZgTHjnBCVbZCKMk3Sp3LPj82ToPX50od6lY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=t1YRLJF1; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dcc71031680so154090276.2 for ; Thu, 22 Feb 2024 13:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708637162; x=1709241962; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cAL1eQi9fwO5M4iI6CPGCaZqqkkbT0pjcXeRhNKkMT4=; b=t1YRLJF1bFnvcvM2fLivmLBoBWKpsWzl7wcKfJMqzc7XKfqNeGZ8kIm9N9pKECU45R sEXJeATCObCGawYHzUNHd1+4AHWe2QZbLpXd8u2nHU4F1c2PggGNs79+2NbWyDxvcRcE dLVgLo46Q7z5DdxmXNHbNazPYX7GkRGUutRGxWisMoeW9S4ga6n9ocMdY0XlUooYkU0e 64Zp/J1t8nzGRPtR2+q8OfzDNRNZol2yRNthHCW6RfP8CWPYbrCFnTNuX02SeSWmTNrh t7qyKoRen4HZD7JHc+R7Ggw64cgCHeODtT9fM9eTbtM09ruI28FTGx73I4l94EH84QBI /GFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708637162; x=1709241962; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cAL1eQi9fwO5M4iI6CPGCaZqqkkbT0pjcXeRhNKkMT4=; b=aD8GkI1zdCNWhWOx0Neizjq4rQaIxKEhL4jHgKRSESbtjBY48FmXiax++j8VgCLDxC YNO1H5OMBn1OY3UfnHJg3NpUn74b+HNq/UuUSiibxNEzcPvbHxhN7SItoXoE5DG0fnf0 rWpZS2Z1FwNupb/W6tuFMevBWjlKqa7kHJoCvHuzEVWLek7FwoqtWZWwmmYPMraQG8gE YH/S/hhILaUL06PnEm6n7cfD74eutMaG4+CKt3xXdcY8ZdfuxMfhB3tkF6yN+LL3Fzle /ibrxeTBQVqCJdLICyPOc1Hi8rIntnaML+M+TPtH/i+kpv63zpas1QwJj8r5O8HibuhE OW/g== X-Forwarded-Encrypted: i=1; AJvYcCXJoCQ4PeVpvlgi93Nl5NOgkMilZDWq5Z66D6INoKuV8J9CsLlxldBNbDvGQKhxseSf+FTIdFFEKKHXxM1mUY0m45E32UPszH6YZPnD X-Gm-Message-State: AOJu0YzzQLKlesMZqw8WOlFAYu5AxNRUIzWlUw1OKC4Xm9YvNvnimqYo 1wUZmwTijrrKFol4mhIQw3kc0g12yjI2CcX094wTfltd1Slsktj2xF14fRhA85MpzTF6wcKKgFV Z0Kd75oK/rBtm8eMfgKRackT0Gvrg5iMjMZc6PQ== X-Received: by 2002:a5b:a49:0:b0:dc6:deca:468f with SMTP id z9-20020a5b0a49000000b00dc6deca468fmr412118ybq.29.1708637161970; Thu, 22 Feb 2024 13:26:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221-rb3gen2-dp-connector-v1-0-dc0964ef7d96@quicinc.com> <20240221-rb3gen2-dp-connector-v1-1-dc0964ef7d96@quicinc.com> <20240222034727.GG2936378@hu-bjorande-lv.qualcomm.com> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 22 Feb 2024 23:25:50 +0200 Message-ID: Subject: Re: [PATCH 1/9] drm/msm/dp: Add DP support to combo instance in SC7280 To: Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Feb 2024 at 06:01, Dmitry Baryshkov wrote: > > On Thu, 22 Feb 2024 at 05:47, Bjorn Andersson wrote: > > > > On Thu, Feb 22, 2024 at 01:38:45AM +0200, Dmitry Baryshkov wrote: > > > On Thu, 22 Feb 2024 at 01:19, Bjorn Andersson wrote: > > > > > > > > When upstreamed the SC7280 DP controllers where described as one being > > > > DP and one eDP, but they can infact both be DP or eDP. > > > > > > > > Extend the list of DP controllers to cover both instances, and rely on > > > > the newly introduced mechanism for selecting which mode they should > > > > operate in. > > > > > > > > Move qcom,sc7280-edp to a dedicated list, to ensure existing DeviceTree > > > > will continue to select eDP. > > > > > > > > Signed-off-by: Bjorn Andersson > > > > --- > > > > drivers/gpu/drm/msm/dp/dp_display.c | 9 +++++++-- > > > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c > > > > index 7b8c695d521a..1792ba9f7259 100644 > > > > --- a/drivers/gpu/drm/msm/dp/dp_display.c > > > > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > > > > @@ -129,7 +129,12 @@ static const struct msm_dp_desc sc7180_dp_descs[] = { > > > > }; > > > > > > > > static const struct msm_dp_desc sc7280_dp_descs[] = { > > > > - { .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .connector_type = DRM_MODE_CONNECTOR_DisplayPort, .wide_bus_en = true }, > > > > + { .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_en = true }, > > > > + { .io_start = 0x0aea0000, .id = MSM_DP_CONTROLLER_1, .wide_bus_en = true }, > > > > > > I think we need to keep .connector_type here, don't we? > > > > > > > No, Abel removes the need for that in his patches - and while that logic > > is slightly broken in the RFC I think it looks good. > > Let's see v2 first. Reviewed-by: Dmitry Baryshkov > > > > > Regards, > > Bjorn > > > > > > + {} > > > > +}; > > > > + > > > > +static const struct msm_dp_desc sc7280_edp_descs[] = { > > > > { .io_start = 0x0aea0000, .id = MSM_DP_CONTROLLER_1, .connector_type = DRM_MODE_CONNECTOR_eDP, .wide_bus_en = true }, > > > > {} > > > > }; > > > > @@ -182,7 +187,7 @@ static const struct msm_dp_desc x1e80100_dp_descs[] = { > > > > static const struct of_device_id dp_dt_match[] = { > > > > { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_descs }, > > > > { .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_descs }, > > > > - { .compatible = "qcom,sc7280-edp", .data = &sc7280_dp_descs }, > > > > + { .compatible = "qcom,sc7280-edp", .data = &sc7280_edp_descs }, > > > > { .compatible = "qcom,sc8180x-dp", .data = &sc8180x_dp_descs }, > > > > { .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_descs }, > > > > { .compatible = "qcom,sc8280xp-dp", .data = &sc8280xp_dp_descs }, > > > > > > > > -- > > > > 2.25.1 > > > > > > > > > > > > > -- > > > With best wishes > > > Dmitry > > > > -- > With best wishes > Dmitry -- With best wishes Dmitry