Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp773418pxj; Fri, 28 May 2021 15:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTFVJ50mngbnb/8NI9lHWmF11M/W0FhH/d4SQCgPgTxa8e8BrXyzw28sQx0PejUTX95r3d X-Received: by 2002:a92:cec5:: with SMTP id z5mr8951080ilq.110.1622241543865; Fri, 28 May 2021 15:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622241543; cv=none; d=google.com; s=arc-20160816; b=ScCYRFgWmgjnyCCP3n1GD6BbBzhhih7HTl0hJ+UaHET3KJfgaEBwTab8eIs5ZuRSOC 9poXnFyOXAx7MaufVkhQuUQwDrmihiYvy6xzju6cKX6j1aPMxOn+N+wKUpSsNcaT/pBR jtAkyNBgeKcPMhlJA7xpYR4z5BbniRcI/1pDqLDZedre5NBpaU0Ltnmc9VK3GvOrBAnh fecvm8hXS+dQPCf/OWO05YUKLedZCt1vwCfWHaSTHKP71ACi60y6rPVAvgGF0zmF5OoE gq/Q58G7MtiyziySEGH6ybq7p3r0EHzERzyR9PGB2/dUVak074kjoyRrCk4k+V7jGQFp 8iiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=jSJ6ouw7sBSntMFtGhcr7YAwQxKznNopiE0ruE/1CnU=; b=KbD3vc4WAj/XB6joHGgMkSfK8K4sb0ueODZGk9J/D+VFf1iOELHeNzPvGQ0XgDUW9S qNaxwvz9jfRVcG8idDaeJhsZgjs6gcRqhm0950eRjNJbCAuCQSeXlsweusAEy6VsJqxv HQMNFu7wYjCiCRr6DPHW4Cj9QEMhURsNk/uVkB9sKm1N5Lf4GSoZ2D0Utg4oGdVmCJgW +cN7UC9Jcg0RbRn41PtFTaeqkVkPp25ToY4pdzb4GcJ3fTOjqhl5MKfQOe0Wcz2C9Kis VtcOzo7ELVIjSx2VFq0GVqpViT9kWLvsG9JMp/svNwUFK+Q3W1+64jUrm2OKoMfHaXdw 8j3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=de5JLEA5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si8351186jap.36.2021.05.28.15.38.49; Fri, 28 May 2021 15:39:03 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b=de5JLEA5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbhE1Wjw (ORCPT + 99 others); Fri, 28 May 2021 18:39:52 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:15838 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbhE1Wjv (ORCPT ); Fri, 28 May 2021 18:39:51 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1622241496; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=jSJ6ouw7sBSntMFtGhcr7YAwQxKznNopiE0ruE/1CnU=; b=de5JLEA5LONVwL/KRETniqNtWu5UFyeqAmzDrwrlbbmix6jUteX9HDgAFbw4/Ebeqi+FJ8N2 sAshdTH4/IYii6VKSlkI70WV7LzcQRgTP20nG2UQxRZWz9Mf7ED6c4cTVrlqoUWGiGDsXCOn hIiz19o4IPZHpyT4KmX+tQJCgt0= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 60b170c8e27c0cc77ff1df22 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 28 May 2021 22:38:00 GMT Sender: abhinavk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 065A9C4323A; Fri, 28 May 2021 22:38:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: abhinavk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 93241C433F1; Fri, 28 May 2021 22:37:57 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 28 May 2021 15:37:57 -0700 From: abhinavk@codeaurora.org To: Bjorn Andersson Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , sbillaka@codeaurora.org, Tanmay Shah , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Dmitry Baryshkov , freedreno@lists.freedesktop.org, Chandan Uddaraju Subject: Re: [Freedreno] [PATCH 0/4] drm/msm/dp: Add support for SC8180x eDP controller In-Reply-To: <20210519145149.GX2484@yoga> References: <20210511042043.592802-1-bjorn.andersson@linaro.org> <40f6aefd3fa341e2bec2060106389be7@codeaurora.org> <20210519145149.GX2484@yoga> Message-ID: X-Sender: abhinavk@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn On 2021-05-19 07:51, Bjorn Andersson wrote: > On Tue 18 May 22:41 CDT 2021, abhinavk@codeaurora.org wrote: > >> Hi Bjorn >> >> I had a quick glance on the series and before getting to other things >> wanted >> to know how you are initializing two different connectors for >> DP & EDP resp. >> >> The connector type for DP should be DRM_MODE_CONNECTOR_DisplayPort and >> eDP >> should be DRM_MODE_CONNECTOR_eDP. > > As far as I've been able to conclude there is no eDP support in the > upstream DPU driver; an encoder of type DRM_MODE_ENCODER_TMDS will only > attach to INTF_DP. > >> We need both to be created so that both EDP and DP can be supported >> concurrently. >> > > Further more the DP controller driver has a global variable to track > state and the INTF-picker will always pick the interface of index 0 > when > setting up the DP controller. > >> Will these changes work for concurrent eDP and DP case? >> > > The proposed changes are all that I need to get eDP working on my > sc8180x laptop. But the DPU code does not currently support more than a > single DP interface - and that has to be on the first INTF_DP that the > DPU driver knows about. > > But this is a limitation we should fix, rather than claiming that you > can only have one of each. Further more, afaict the sc7280 DP > controller > can do both DP and eDP, so it would make sense not to distinguish the > interfaces as eDP or DP - just because the product in mind will use > eDP. > > > PS. I've currently disabled the eDP interface on my laptop and am > working on trying to get Type-C DP working. Once that's in place I'd > need a better INTF/encoder picker - because the current model of just > picking INTF_DP 0 (or in a sequential fashion) won't work. > > Regards, > Bjorn Yes, we should be able to support eDP + DP concurrently on both sc7280 and sc8180x. Some of the changes we will be posting in the coming weeks should add support for it. Till then, as we spoke on IRC, since your changes dont break existing DP functionality, will continue reviewing rest of the changes. > >> Thanks >> >> Abhinav >> >> On 2021-05-10 21:20, Bjorn Andersson wrote: >> > The first patch in the series is somewhat unrelated to the support, but >> > simplifies reasoning and debugging of timing related issues. >> > >> > The second patch introduces support for dealing with different register >> > block >> > layouts, which is used in the forth patch to describe the hardware >> > blocks found >> > in the SC8180x eDP block. >> > >> > The third patch configures the INTF_CONFIG register, which carries the >> > configuration for widebus handling. As with the DPU the bootloader >> > enables >> > widebus and we need to disable it, or implement support for adjusting >> > the >> > timing. >> > >> > Bjorn Andersson (4): >> > drm/msm/dp: Simplify the mvid/nvid calculation >> > drm/msm/dp: Store each subblock in the io region >> > drm/msm/dp: Initialize the INTF_CONFIG register >> > drm/msm/dp: Add support for SC8180x eDP >> > >> > drivers/gpu/drm/msm/dp/dp_catalog.c | 99 +++++++---------------------- >> > drivers/gpu/drm/msm/dp/dp_display.c | 1 + >> > drivers/gpu/drm/msm/dp/dp_parser.c | 22 +++++++ >> > drivers/gpu/drm/msm/dp/dp_parser.h | 8 +++ >> > 4 files changed, 53 insertions(+), 77 deletions(-)