Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp926974imw; Fri, 8 Jul 2022 14:34:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZO3TkPqo6qbtldD+l+8agLbL7eYFcDSTPf936S4zTttzcIwnRIPvoQqoeh142EYaQtiFn X-Received: by 2002:a65:6045:0:b0:399:3a5e:e25a with SMTP id a5-20020a656045000000b003993a5ee25amr5147636pgp.139.1657316071508; Fri, 08 Jul 2022 14:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657316071; cv=none; d=google.com; s=arc-20160816; b=T3S6z+/yKHFPQ722Y8958MdsAV4A6u8qozL5yc+pgpIKamNMO7EOteYIo4O02ergIR CN3+jqb8H9//ZutzSjJ84JpyoucyymVDFhgGjdsTyK25/15N4N8SUbRv7JWA2Yg5xAy0 a73FAGsk8c5HpGDNE4c37KQQM3Jd6CgejqqB1fw2yTv2Xs3i3yKtcDoewBkornDlS11L +2YMYr6uSXKSL1AWTho1xEhB5uhm6GXkkJK1MhrcG4obnvAbKfVtxZpaCXV2IQjFthV+ akusBxLAoxOCn8Pku3QZCD/AHmqbfOOWsZPTCOxSXXZKfsbbiZO0cFa04GiVjwYR23FG 3ZfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JGl9x6k8v5djYyGKx5MXjpUaSuYQZtgM2PHdebhPLrI=; b=UYfIR43+ezGU0g/b7YUvsXFTX4xHFZEZg26rU8cb+d//osQgvINDYUEq9cnW+ulWqt eGpWynV5l1aWjmcA9rP9m0l6dZFI2fQVu6vqyWbtrfKkJRD+EXuDDWmqTJSKzgWszmaA clvb+zEarPWBbm3dnBm2T53UAWOProZFeKqJf16mja0b9hu1IIpmJjvSbQ1PKW+KAKh2 k4BoHdo/OPC4TIbg1sJ9oE6iwRCadL3roJNZ1clhlWxvdQONeNG6YX1PPiLpaGMflFYj MLNbW7Y6KCXlRDwj3lA8nyHDhDVH/O2RRoR9SJ987t+fOdgPSrodazcTmm4tWj4jXmKW M+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YHn+dY/1"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nk23-20020a17090b195700b001efc348685fsi3621417pjb.69.2022.07.08.14.34.19; Fri, 08 Jul 2022 14:34:31 -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=@linaro.org header.s=google header.b="YHn+dY/1"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240396AbiGHU7G (ORCPT + 99 others); Fri, 8 Jul 2022 16:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240048AbiGHU7F (ORCPT ); Fri, 8 Jul 2022 16:59:05 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D36AA for ; Fri, 8 Jul 2022 13:59:03 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id x17so1544152qkh.11 for ; Fri, 08 Jul 2022 13:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JGl9x6k8v5djYyGKx5MXjpUaSuYQZtgM2PHdebhPLrI=; b=YHn+dY/1CDbJhtHksr0WeaOZtcVsTgWN8nKsKQX257vSBDXJG9EJmiFhC8I3V6+R6v hgKR98YDa7L5Aa2THh/5998SSzmcZ3wh36NhXb9Qc/kA6gAS8V274yGocQVC9oPD3v4K rQb/R7X5B+K4i+2eUBFLMFwPWVurbq2LXgbTxrAymvG18LutUVSbYul4//UGzb9zxGUR 4EVSS7O1KymuzP3uvh/GmfDbjBVYhiNnsj2SCtvzuzFEjYAw3lC3IYafZjEROuGANY8u F6u0AbNhLdNtz/FvhwD+LvZ2caCAyDvbmZXc5hflWX7+kKbXAFTGhm56//HbQWE58SxT mv0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JGl9x6k8v5djYyGKx5MXjpUaSuYQZtgM2PHdebhPLrI=; b=kXxK7fvpQu2YHzjBGPDcTTO116k/wH7DEyMjTDW2NudCk7UNgyrf0wNoBEeb9mOxLu wxyAE8Pj6G9tfiCUkhPasrZypxVFh84o/bgOTZdwEJ+wnHRV9WYg3TRf7kc19tuBJsai lHig3Jdk1HW6lkt421ahv6G42MYf0YJaPnwhArJkQbAGPmxq7lKNuONqHB15Ec8YI6Aa bp4kFjhFEMtGaE/ydemG73Oh0EALDvA4wei9SQPg95ScMHdNvmygWhR6JAAVbbutsLiE ZZRKi7/iAfe1TzYpynlZyASH7HjWUGOdrxCr5tclGQomDDn54fTI6OdrslqsWzZQE8gq uJXA== X-Gm-Message-State: AJIora890i6B0Q3B35Y4wBTNOAXgZXnX4EsKnKszhg8tBh/UD/xsN44J PBwIJW1g7SxoeRAVbKX2hiRhTr2Zpo2oaP39luTsdQ== X-Received: by 2002:a05:620a:d5b:b0:6b5:660b:2939 with SMTP id o27-20020a05620a0d5b00b006b5660b2939mr3029175qkl.30.1657313942992; Fri, 08 Jul 2022 13:59:02 -0700 (PDT) MIME-Version: 1.0 References: <20220706191442.1150634-1-swboyd@chromium.org> <60252405-81f2-2465-bc20-5f91a9072031@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Fri, 8 Jul 2022 23:58:51 +0300 Message-ID: Subject: Re: [PATCH] drm/msm/dsi: Set panel orientation when directly connected To: Abhinav Kumar Cc: Doug Anderson , Stephen Boyd , Rob Clark , LKML , patches@lists.linux.dev, Sean Paul , dri-devel , freedreno , Hsin-Yi Wang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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. -- With best wishes Dmitry