Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp567690pxb; Tue, 15 Feb 2022 22:20:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJDnl3fNBEFR5ROLzLx95oKY2WpYthwLIQhP/cNEXG+YubmQlV0c09/OkjpjsV182QH2u5 X-Received: by 2002:a17:90b:4d84:b0:1b9:4109:7118 with SMTP id oj4-20020a17090b4d8400b001b941097118mr64912pjb.119.1644992399828; Tue, 15 Feb 2022 22:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992399; cv=none; d=google.com; s=arc-20160816; b=IsJYViyfh6xV+rq21yap5TcJU5iM9eN4fnlJRMQbT5K+Pn/n6Angt9Q1sFPP9Rb0pQ 5noz9JpLsWoCyNzcaxSUwDFFf7k1EsTrxPP7f8F02zP7LyrzlhDbitqgYK5xtI27vtYJ 7qEfs+rVR4D8qTjxT8f2rbb6BgvwfOgdqqswScFX9o4mJmhyx4Ddp0qZD7Om/w1rchMj u0RoR0qGfJCQWwhmNL5igeC/C9jlBnASkaaWwi9+JWeSMzUjNuh1mQ5s0/rqLw/8rlaG 43V1eKtHCp81l4awhRc1Px+wWZ9dm+CXJ+0VZ77RBucnDdgj5NF9JEQSayz7Pfn3H6zC an3w== 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=fyU/OTkUyEuUQG4MRg7zhhXJejHomtDIZYMm7FS8VaQ=; b=lI2IphH8p5nuUxoi1gJL951n8TF2or4t9LMwbqQX2YcFd8YebvaR/sAslVoN89bnUl hLDPo3O/PJ8lE3cu05c1cZpLGnGsYyn0eBv40EP93KgLMgh8+tDX5wpevYlIsqPh9faE xvqw22UK2v4bhyWEyf8V2kTxJW9QP3cyfV9QC6c3I+7FZOerxLOetPTlnysywtgQlTCI 84XwoeApe+ea7nr6hXB2vNQmZaJl96OdpilpKfr45PI4JQsLQs4b8OlBUIw4PXYNRRAy wji1SzMW0vTFTriMefF4gw0671coZOv7cAAAMXMLHgGdmbDEL+pYdxIGOoooMbTvqRCT nD7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdpEypAR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n9si14643455plh.384.2022.02.15.22.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:19:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdpEypAR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63E68198D90; Tue, 15 Feb 2022 22:18:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343505AbiBPCDb (ORCPT + 99 others); Tue, 15 Feb 2022 21:03:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245754AbiBPCDa (ORCPT ); Tue, 15 Feb 2022 21:03:30 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD08EB93AD for ; Tue, 15 Feb 2022 18:03:18 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id z24so967155oib.6 for ; Tue, 15 Feb 2022 18:03:18 -0800 (PST) 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=fyU/OTkUyEuUQG4MRg7zhhXJejHomtDIZYMm7FS8VaQ=; b=SdpEypARxFwWHtRMsHtdq0Eh50pLyZ/m1DbxP1ydnXK5nbGGgQv6yWoDNeAtpo1R+6 f7iIqoFs8ZfQesNEFnwNAq2WjSV9cX7L4Hz8KqUZ4vqqtXwYDh/M0dIaTILiymxjILzw /0DVa6p4+LvWkiE2IeHH4Du1IHnlfrqLL31RiS3t1hk7VFgzPxFzUpawof3GJC7CA2Jj LEkVHrDkmB2zt5eeHJ7QfQ1wp7RRp7e4Epa0lIYAHWqJq39lmqdgLoXGq3D9irtMR7YG +PL9f/jVwtVFul+w3ZOONOqWccFB8aRCjtCbpA1fUOkOoPELkL4C52tRbqnwGNNU9d9a at7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fyU/OTkUyEuUQG4MRg7zhhXJejHomtDIZYMm7FS8VaQ=; b=Mur0cUYKJHw+C+/gNZ2Xw2BmGZoe92B9mCjZgBIaMVJKQ9NNbVCug2jd4ylBGZMuH6 GZVRjB0Ks47VdRzg0TbssDzplcELGuJfPH++UDfGsaRM7ipARBcYvM8Y8Njz1S64nRWd wGY2xTsLtkGjT3pj4IWSv1z3aswpxK4xU+nJGWJXjOoX03O7K2WQLGKaN2PsWsTdgaYt DVVeFZ/5QLaK5R84dHUUY1Hd12ZUV+1YDblGRdXL6zA5y6wFceeRif44ArvB2Lx8bJA1 S3RKfsV4aAPak5/IZmZ2uuuOl1PeD6trk5tZAEe5ErujRnZ5ShQN/hoY7YvC57gdOobn 2iIg== X-Gm-Message-State: AOAM530DXjJw3ZFVn+OqSz8q6O3yUe8lv+4b7sLHDgue2OWGTaWj++La MaWUtKJINOaD99rza2Z2eTDs2Mz9O0kc5w== X-Received: by 2002:aca:2112:0:b0:2d3:ffce:90c4 with SMTP id 18-20020aca2112000000b002d3ffce90c4mr296649oiz.62.1644976997189; Tue, 15 Feb 2022 18:03:17 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id q28sm702657ots.76.2022.02.15.18.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 18:03:16 -0800 (PST) Date: Tue, 15 Feb 2022 20:03:14 -0600 From: Bjorn Andersson To: Abhinav Kumar Cc: Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: Re: [PATCH v2 2/2] drm/msm/dpu: Add SC8180x to hw catalog Message-ID: References: <20220215043353.1256754-1-bjorn.andersson@linaro.org> <20220215043353.1256754-2-bjorn.andersson@linaro.org> <6a3ef247-b26b-d505-cd85-92fb277163dd@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue 15 Feb 19:34 CST 2022, Abhinav Kumar wrote: > > > On 2/15/2022 4:20 PM, Dmitry Baryshkov wrote: > > On Tue, 15 Feb 2022 at 23:21, Abhinav Kumar wrote: > > > On 2/15/2022 10:42 AM, Dmitry Baryshkov wrote: > > > > On Tue, 15 Feb 2022 at 20:42, Abhinav Kumar wrote: > > > > > On 2/15/2022 9:28 AM, Bjorn Andersson wrote: > > > > > > On Tue 15 Feb 11:14 CST 2022, Abhinav Kumar wrote: > > > > > > > On 2/14/2022 8:33 PM, Bjorn Andersson wrote: > > > > > > > > From: Rob Clark [..] > > > > (thus leading us to cases when someone would forget to add INTF_EDP > > > > next to INTF_DP) > > > > > > > > Also, if we are switching from INTF_DP to INTF_EDP, should we stop > > > > using end-to-end numbering (like MSM_DP_CONTROLLER_2 for INTF_5) and > > > > add a separate numbering scheme for INTF_EDP? > > > > > > > We should change the controller ID to match what it actually is. > > > > > > Now that you pointed this out, this looks even more confusing to me to > > > say that MSM_DP_CONTROLLER_2 is actually a EDP controller because > > > fundamentally and even hardware block wise they are different. > > > > So, do we split msm_priv->dp too? It's indexed using > > MSM_DP_CONTROLLER_n entries. > > Do we want to teach drm/msm/dp code that there are priv->dp[] and > > priv->edp arrays? > > ok so now priv->dp and priv->edp arrays are also in the picture here :) > > Actually all these questions should have probably come when we were figuring > out how best to re-use eDP and DP driver. > > Either way atleast, its good we are documenting all these questions on this > thread so that anyone can refer this to know what all was missed out :) > > priv->dp is of type msm_dp. When re-using DP driver for eDP and since > struct msm_dp is the shared struct between dpu and the msm/dp, I get your > point of re-using MSM_DP_CONTROLLER_* as thats being use to index. > > So MSM_DP_CONTROLLER_* is more of an index into the DP driver and not really > a hardware indexing scheme. > > If we split into two arrays, we need more changes to dpu_encoder too. > > Too instrusive a change at this point, even though probably correct. > I'm sorry, but performing such a split would create a whole bunch of duplication and I don't see the reasons yet. Can you please give me an example of when the DPU _code_ would benefit from being specifically written for EDP vs DP? Things where it doesn't make sense to enable certain features in runtime - but really have different implementation for the two interface types. > But are you seeing more changes required even if we just change INTF_DP to > INTF_eDP for the eDP entries? What are the challenges there? > What are the benefits? Regards, Bjorn