Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp922588imw; Fri, 8 Jul 2022 14:28:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1toLtuH17F4VzHnpNOEZMhyKaBfsw41dzEFP39vPWPe7IP04S6+uekwpc4wP0neb1iU0A5f X-Received: by 2002:a17:907:2cf6:b0:72a:5268:c05e with SMTP id hz22-20020a1709072cf600b0072a5268c05emr5723351ejc.38.1657315718897; Fri, 08 Jul 2022 14:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657315718; cv=none; d=google.com; s=arc-20160816; b=xY7QxZD6R8xO2Rct3SP7VvLbJQ9MYNk4qKfNHNFPHcsTIWRm76nBK6cLr5Ri0z0prT 3XgVOOFEPSo/vza0QVvQ2Vy2+EPcLiSJZapVMFAMKuoWslci0828D1WUsZNbbmko8Cc+ 2dhzjgm5YeaOrPJ267OdyxKvmGAApGQv+ijjUqSnTGmQl4waD/amYmwrx7OVtaV9Hdx9 uNaM+t6dBin/DiTidI9Zrn6wKNfxjqd3BEj1+L/2l8f0Lc23EAro/y3UFnTJTvr7SvtE D4tx+sj48w2SAAhY+W2Nbx8OMBnMss2wyXpZoqKqdC32yol8iJMLkTAa98MhMm4MbD3l reMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Uaw0+e6VdRRhzLG+PpHuDpifABwLHhRV1vkNysKJ3Pk=; b=0QcVW9FyyKaGKLxqvNfmHSO5K6CjVQGSxDh+IqorcSEflvH6/P9x66vRpIVjtK9dyx A08KuWCBEj5ireUeyY5k4WKV+d7dpZOXc7NPRXp+numeDJAfkOyb57L9pa+HSjP2G0Uu Wl5Ld2z5p8JKQK4jznIYegeYX6eHm53M/Uuq4dtjkaD5YexK5t3HkC6K/LeYuxIWkRJN TPdDQyo8C/j484j/2SKAqTyMHT+dO22mR1F0cG05coGC41LpkE4m2+woOqKkb95kUx/S TTXA1GFCV7W6MO+FlMqYykjXrPLWuOCwCDBCi6FfkJotzxJfta9fljT6T8qp6fpQonIM 0c6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=LXD5vj6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a170906111400b0070fe457d158si38720544eja.71.2022.07.08.14.28.13; Fri, 08 Jul 2022 14:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=LXD5vj6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239854AbiGHVRe (ORCPT + 99 others); Fri, 8 Jul 2022 17:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbiGHVRd (ORCPT ); Fri, 8 Jul 2022 17:17:33 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF1D1A07D for ; Fri, 8 Jul 2022 14:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657315052; x=1688851052; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Uaw0+e6VdRRhzLG+PpHuDpifABwLHhRV1vkNysKJ3Pk=; b=LXD5vj6g1VKJne60TchK0Lq76Xh+bUna7ULV4CgiGLvmR0A8kzH9W565 qH9MUcoyTq3nyfO15VaqKc0NmMxhehRXENoLBHyxVP6zO5a7+8nQ3Ulrk VYlosC7gd0xIitN1e7wv7kfnoz7dcyFEkCkY2aQqiW7v1dGVjNvwnfikV E=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 08 Jul 2022 14:17:32 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 14:17:31 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 8 Jul 2022 14:17:31 -0700 Received: from [10.111.160.191] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 8 Jul 2022 14:17:28 -0700 Message-ID: Date: Fri, 8 Jul 2022 14:17:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/msm/dsi: Set panel orientation when directly connected Content-Language: en-US To: Dmitry Baryshkov CC: Doug Anderson , Stephen Boyd , Rob Clark , LKML , , Sean Paul , dri-devel , freedreno , Hsin-Yi Wang References: <20220706191442.1150634-1-swboyd@chromium.org> <60252405-81f2-2465-bc20-5f91a9072031@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 7/8/2022 1:58 PM, Dmitry Baryshkov wrote: > On Fri, 8 Jul 2022 at 22:42, Abhinav Kumar wrote: >> >> >> >> On 7/8/2022 9:00 AM, Abhinav Kumar wrote: >>> >>> >>> On 7/8/2022 8:25 AM, Doug Anderson wrote: >>>> Hi, >>>> >>>> On Wed, Jul 6, 2022 at 12:14 PM Stephen Boyd wrote: >>>>> >>>>> Set the panel orientation in drm when the panel is directly connected, >>>>> i.e. we're not using an external bridge. The external bridge case is >>>>> already handled by the panel bridge code, so we only update the path we >>>>> take when the panel is directly connected/internal. This silences a >>>>> warning splat coming from __drm_mode_object_add() on Wormdingler boards. >>>>> >>>>> Cc: Hsin-Yi Wang >>>>> Cc: Douglas Anderson >>>>> Signed-off-by: Stephen Boyd >>>>> --- >>>>> >>>>> This relies on commit 5e41b01a7808 ("drm/panel: Add an API to allow drm >>>>> to set orientation from panel") which is in drm-misc >>>>> >>>>> drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 ++ >>>>> 1 file changed, 2 insertions(+) >>>> >>>> I don't personally have objections to this, but (to my understanding) >>>> "the future" is that everyone should use panel_bridge. If we made the >>>> move to panel_bridge today then we wouldn't need to do this. In >>>> general I think panel_bridge would end up letting us delete a bunch of >>>> code... >>>> >>>> See commit 4e5763f03e10 ("drm/bridge: ti-sn65dsi86: Wrap panel with >>>> panel-bridge") for when this was done by ti-sn65dsi86. >>>> >>>> Then again, I spent a small amount of time looking into this and it's >>>> definitely non-trivial. Still likely worthwhile, but not worth >>>> blocking a tiny fix like this. It also should be fairly obvious that >>>> we should delete this when we switch to panel_bridge. >>> >>> Right, from what I saw on IRC, panel_bridge is the way forward and >>> dmitry did push a change to do that >>> >>> https://patchwork.freedesktop.org/patch/492585/ >>> >>> But I think we can go ahead with this change because its simple enough. >>> >>> Regarding the panel_bridge migration, I am going to start reviewing that >>> as well. >>> >> >> I did some more digging up on the panel_bridge migration. >> >> Dmitry has posted this towards december last year >> >> https://patches.linaro.org/project/dri-devel/patch/20211207222901.988484-3-dmitry.baryshkov@linaro.org/ >> >> >> and I had given my R-b on this already in Jan. >> >> I am not sure why this change was dropped OR was not part of msm-next >> already. >> >> Dmitry, any reason this change was left out so long and why the R-b was >> not retained and this was reposted? >> >> From what i can see the change looks identical. > > I don't remember if it is identical or not. Basically it was postponed > to allow DSC to flow in. We used drm_panel to pass DSC pps data. And > if we use panel-bridge, we don't get a handle of the panel. > Later on I have posted the series moving DSC pps pointer from > drm_panel to mipi_dsi_device (which is logical anyway, since it's not > only the panel, who can provide the DSC pps info, some bridges can > process DSC-compressed data). But since that time it received no > feedback. Thanks for the details. I will try to review the DRM core bits. But I guess for them to land, we need some of the core maintainers to pitch in on that. > >