Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5242980rwb; Wed, 17 Aug 2022 13:55:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dxg6iBZN6Dh2ph5B5O/CDXtCmpHGhkFO75Nm5O/nmaVJD2QaZtyf7pDv/WjwQOlqnetCE X-Received: by 2002:a17:90b:3144:b0:1f5:829e:cd49 with SMTP id ip4-20020a17090b314400b001f5829ecd49mr5599699pjb.80.1660769732347; Wed, 17 Aug 2022 13:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660769732; cv=none; d=google.com; s=arc-20160816; b=EU5SWblJusd3But4cGBnZfhud5UOzeRx7k7A4xk64+JR9G7xGlH5dOnOtGqjkB3LYP TQ3mb0dMuK1pdg2x3Pz1eoSbNzXq8lvALGtgcnpilD8YKhBvG2FnAmWwJ0ocglGjw+Ww ui9z/fze7D5bba6yftZphzmbjIzEny6Wjx9shTPo7IWSnNaC8asb/LWW/3o8CHUYWUYZ /Axq6T2oPRqr7LmnZo+ddc0QqwUVOOafAnkKAJACYYxIO3WQTEAR0ubPjvDakTbSNAbN ZRESGRLhYzkERlG2sZhHkqDEsfzqh9bZa6ZMNnzqGe4w5POIZylzAvd2XVTD6PXKVAm9 GL3Q== 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=+Cti20S/WWpY7aspWrYZ4xE3P/s0O+PHZV22YRy/CUE=; b=gVXj7C1wAYxiBmmc3LlZ9vBXPV/k2LH8ibbTJRVVrnmI9XBKwqPzwtYCzYL1uI3OI8 xhH5nnKo4qKpuT/q72jBc/lCVmdYbST6m5evm5xuCh8XiQwKR0DzVot9EbtUFmx4wpLf zFjSBfGonxDppJvBRtXy+DsVZgWGA1JAqn8s+po+yiDiKgJteqdS9vOyYqQJeuB43c3M NpJ5Cq2zpy5rh0cC+BqNxlXI6qw+Ei+bxxyOcIX0Ks4Yi8yHz2JmnZelh/v97sLIEpJc CAXXffN9jN3M5c2AWhsNkIt2/Gz01fxPQM+gyQ/Pv+aPxOMDdrMveIkgwqj/DT44ueab iY1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RUY2d9i5; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix17-20020a170902f81100b0016d2ef2b7bfsi523490plb.424.2022.08.17.13.55.21; Wed, 17 Aug 2022 13:55:32 -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=@chromium.org header.s=google header.b=RUY2d9i5; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbiHQUso (ORCPT + 99 others); Wed, 17 Aug 2022 16:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiHQUsm (ORCPT ); Wed, 17 Aug 2022 16:48:42 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CF7A50F8 for ; Wed, 17 Aug 2022 13:48:40 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id c39so4139521edf.0 for ; Wed, 17 Aug 2022 13:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=+Cti20S/WWpY7aspWrYZ4xE3P/s0O+PHZV22YRy/CUE=; b=RUY2d9i5bIklJBMGlj1kJOw47zUbEvxdY1V+2zngZZk1/gVeOIgKDiz2urgv4l6Cpa 4SgbFJshe0t5ZmI808R5aNZoUHqzHaqN3nRZzuaTWbgKyuf30NRCp7q12AdrmxbnSCT3 Hum1AaJKsg24YJxa3NlN8SEYHrrLmnQp1xJAM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=+Cti20S/WWpY7aspWrYZ4xE3P/s0O+PHZV22YRy/CUE=; b=vcqtl1H/7f74Q+ypcx2XV1/V/QzWi9hrQK3U/EcoAIs7Y6A40l4P+LQ/zJa1rNERxZ BCZpQwOMnQkAxcBUDUh7Hr+14eImHrJ8/QoDArW4+55vJQeRyXWAf1pZmIje8A+Daw89 AycuskVqIZFEEm6xndz5ZgtUffJHBh8go2hySFvtUwLRYItcuE+I0dE9hgmDhDa8p3TI xAytQsLgjIWEMDvRcV4pWRWmXt2WksIrPLLNqFCOMuWxnTyGVsRUMBse5cawAyKUgiPE tIrpUJKP+kMfpqALTZadNC894qmEhxTIYaAvPLGwKNs2fp1saDFL5S6iArPM40nhHXw6 Y5Kw== X-Gm-Message-State: ACgBeo2VTSvSTre4JfOFaFUJH64c6r9bY2HYndYFdkqCNhnk62CYi2q2 wlSaSmnqp9Vi99dfYVDQuXgOjGkui8KOl/uq X-Received: by 2002:a05:6402:510c:b0:43e:305c:a4d1 with SMTP id m12-20020a056402510c00b0043e305ca4d1mr23775977edd.35.1660769318676; Wed, 17 Aug 2022 13:48:38 -0700 (PDT) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com. [209.85.221.47]) by smtp.gmail.com with ESMTPSA id op9-20020a170906bce900b0072b810897desm7242568ejb.105.2022.08.17.13.48.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Aug 2022 13:48:37 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id r16so8288857wrm.6 for ; Wed, 17 Aug 2022 13:48:37 -0700 (PDT) X-Received: by 2002:a05:6000:1564:b0:225:17e4:4084 with SMTP id 4-20020a056000156400b0022517e44084mr5308854wrz.617.1660769317514; Wed, 17 Aug 2022 13:48:37 -0700 (PDT) MIME-Version: 1.0 References: <20220706191442.1150634-1-swboyd@chromium.org> In-Reply-To: From: Doug Anderson Date: Wed, 17 Aug 2022 13:48:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/msm/dsi: Set panel orientation when directly connected To: Rob Clark Cc: Stephen Boyd , Abhinav Kumar , Dmitry Baryshkov , 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, On Wed, Jul 20, 2022 at 3:42 PM Doug Anderson wrote: > > Hi, > > On Wed, Jul 20, 2022 at 1:46 PM Rob Clark wrote: > > > > On Fri, Jul 8, 2022 at 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. > > > > > > Thus: > > > > > > Reviewed-by: Douglas Anderson > > > > > > I'll assume that we'll just snooze this commit until drm-misc-next > > > merges into a tree that msm-next is based on, which will probably be > > > the next -rc1. If desired and Acked I could land this in > > > drm-misc-next, but it's probably not worth it? > > > > if you want to land this patch via drm-misc, which might be the > > easier/faster route, then: > > > > Acked-by: Rob Clark > > As per discussion on IRC, I'm not going to apply this to drm-misc-next. > > Given where we are in the cycle landing in drm-misc-next means it > won't be in mainline for a couple versions and I suspect that'll cause > merge conflicts with Dmitry's series [1]. ...and, of course, if > Dmitry's series lands then we don't even need ${SUBJECT} patch... > > So I think the plan is: > > 1. Snooze waiting for the next -rc1 since > drm_connector_set_orientation_from_panel() won't be in mainline until > then. > > 2. If Dmitry's series looks like a long way off, we could land > ${SUBJECT} patch in msm-next as a stopgap fix. > > > [1] https://lore.kernel.org/r/20220711094320.368062-5-dmitry.baryshkov@linaro.org/ Just checking up. What's the latest thinking here? Do we want to land Stephen's change as a stopgap? drm_connector_set_orientation_from_panel() is available in v6.0-rc1. -Doug