Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1757234pxj; Wed, 19 May 2021 13:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmN/x7dID/QNA7AKXSqRea616obAcFKzANVpgCiz74I2OsT7LKo2lBRmG/VmLUf/GtvJop X-Received: by 2002:a5d:9744:: with SMTP id c4mr1479212ioo.76.1621455142657; Wed, 19 May 2021 13:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455142; cv=none; d=google.com; s=arc-20160816; b=lh/CpB+feu5oItNPggsmHXlLMpRjsp6iHw3kXzDaEkn/LOfqMZdfVznajlluzQlM0s G84+T1yANwx6JqqGS5uMjFF02ev2oTt9ZOyl0ioOpq9AMKjJ6cn+G28sQLgguW6edOd/ XPQU9wBJQ7BHDx9MOnt6qhQ8eSRIAp+9Cb4ooSqssdytfRD9CRFhjlnz1fIsIYHbEpOe nLAYu3qsya+ejCFReBBW+8YBROM9QJAC/EZJcKwiY5eDkbctBdk60kwzCxwVash6NwU6 +UUIyNkl3o6+cwKQ2RFN3z8BlPo5VBm+OH0SPtmMn4/SgpOJYj/ZeYiUJeb5/H+VX5G2 xJzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FTJFgBVyDmUOEWvTRev7q14+qgObUW0H7ne5i0Gbe6Y=; b=KOGRjDNUD2zJnS6oMniym3X6QCzJPFTkVwfzELbwBT7RyrDY0Wjuk4IM2Ixf2d6EIo rqr6Lp16Z6V2nTeHN6NAtx+R2gheKam8aJR/aYW9d2T5I6cNpTTAcm16yy6Vp4wvCZU1 aJyslDS8iAvhPMatxOAwZkGOu7IqoxdhYmHfQEIB+RjVerfVHJXMiV+vt9x3faX0eY7u JVLSZfWg0fqRfk0jX4zhgBORxe5ZHJlaRxYqx9uWaM5ZayPf3s77vBljOHvZSzn3ude5 wR3LoOXrTQSbEhH7Jf/nkXP34joODIU3bkWGS7+jemwjCloARVf+lIKPjWXssNmehV// x/Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S9tVdEtr; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si583559ilo.155.2021.05.19.13.12.09; Wed, 19 May 2021 13:12:22 -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=@linaro.org header.s=google header.b=S9tVdEtr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244049AbhESOxN (ORCPT + 99 others); Wed, 19 May 2021 10:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354196AbhESOxM (ORCPT ); Wed, 19 May 2021 10:53:12 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81D9C061760 for ; Wed, 19 May 2021 07:51:52 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so11981489otg.2 for ; Wed, 19 May 2021 07:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FTJFgBVyDmUOEWvTRev7q14+qgObUW0H7ne5i0Gbe6Y=; b=S9tVdEtrJGHa2o7lEkJCl4ciWBJIW+7y7XAxPg2JtJRWL8oEtOofCj7Kd+s7C/rIBr X/N8xkmpWtnyWt1DKO7+61sttUWb96XaXea/B1XI7p/WQnRVkFodqInkdzVDOGszpRe4 bpJLlyQD9AEUc4m7DCFI/fKCMPXeM+YTcp1d73LC5Eq2i6Zs/OdFoDQ388kT3FuKiZDB dsyJ9WRYzho23HSpVRA74CioM2IFz/p6ya/SE2EPNaHHGbHjx6SKcHx+OuMx087PBb3/ MqM61FpRqZKf8ve9BqJGm1gC0KM3eQ3qrqTWLKksOYf2pqrZGeeweNHmboD1YyD6ExZR Wt4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FTJFgBVyDmUOEWvTRev7q14+qgObUW0H7ne5i0Gbe6Y=; b=liHIDUGv55CJv0q5iTgI2Ux7Hs+uu1No+93x/60QExuLFW4WunL7xJ+apYrb4q+BCP C3YB8WXVnBGEUn9jvIL+xwa4iCPKFlAqmZ3BiEqA9JsXQ1XNHsFH6Q8Kzj152G/SIQbT V7eAmrCXWw7Nb+QEFAre0tHlF8D+Q9wyQo9affSH8PBlLxKzjX+f1DDPhdfpTIwMxPrk 36/V+kPoEpppeYwcsyLyR5+pD/gThB3ZRLXpjyLkmyYFnkghwS4Ea2YysSZJHc3Nzb96 CsUDQaxCT0w3OTSehopxjeizp0jGvEyJPIhOjAKjX419zoA+UBT43NlWjhniNTFCwxMc 20pg== X-Gm-Message-State: AOAM533602ORejyMjAV1BpvVPMJTjJEWXxzl19x4w1V0RoanIS5GtOSu I3hD1llNvl5aAyYLzjSluVtfdg== X-Received: by 2002:a05:6830:1594:: with SMTP id i20mr9168662otr.279.1621435911905; Wed, 19 May 2021 07:51:51 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 67sm4571702otp.68.2021.05.19.07.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 07:51:51 -0700 (PDT) Date: Wed, 19 May 2021 09:51:49 -0500 From: Bjorn Andersson To: abhinavk@codeaurora.org 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 Message-ID: <20210519145149.GX2484@yoga> References: <20210511042043.592802-1-bjorn.andersson@linaro.org> <40f6aefd3fa341e2bec2060106389be7@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40f6aefd3fa341e2bec2060106389be7@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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(-)