Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp107642lkm; Wed, 8 Sep 2021 16:00:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1tmRkqQJogeITMAc34XFs/i192A61i7LDd3TuwV7x36fmaak0zXHwOSyMW1/Fcbu6ba7y X-Received: by 2002:a17:906:478d:: with SMTP id cw13mr32183ejc.227.1631142043189; Wed, 08 Sep 2021 16:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631142043; cv=none; d=google.com; s=arc-20160816; b=ArwE53qUJrqNjJnhD560dPDVP640bCMtsCAIQMCLttq4V3TBPk/HeFzIQCpFj3NTqY J0vPRALv1Izo7RianfQ9dFd4R229nBCaRWzsp3E2a16hTI5wA9w77XdAskbr5UFflb+G EXUkPeXJtpU7dNXpI51gQrKelAcZ/wW0bWIqwyz0vT3L/2lBEeIe1RALyOA88jPJVWUa 8mtcs3WIoNeP61FU+eX7Mz7Rd49/JnYnnZY8eJ2BFlIz1a6J2+mRRugkP9e2WtW3hSVa ddzX0R2EohCVVqwPCHA7/ArJq+YDjHOq8O96oFsoDEjV/GymGlTdvz68JYicz536gHPx nj2A== 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=M/dueucM0XzOy1jPT/PQdcqnijwVro2s2Bw0YSR2geg=; b=q0Xlal6GkQS0JJISlMU6n/jftZJ/zVTq2+rBA10WRk89zjN2nBEqEIHGZgHZtRFiE3 rhcw7BZOI6qAzkEO0VYVd6dLaV2YGs74nGzguZA4ZelxbK9yHD2cpqElqPd4cx2ueL5d jcZ3GqYApiHA57/eq0lNHAkTfj8puot0KDu7kGmk6+g/4V6fLxrMQtcDpXElY3yNOPJZ sAEQStVjAFbz0ScmIOeJVAJf7p8/xv4lxPY1jKaHK+qA+aSXxfUc01pIFrcC4q1B3XC0 2Pcgo3XTKuA6iuxJ6ATT+5x9siKsvK6Pw3k+9e/i717K27els7F7puONp1xZKwWER43U LB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LkipFzU3; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si373277ejl.332.2021.09.08.16.00.04; Wed, 08 Sep 2021 16:00:43 -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=@chromium.org header.s=google header.b=LkipFzU3; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235238AbhIHWhh (ORCPT + 99 others); Wed, 8 Sep 2021 18:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbhIHWhg (ORCPT ); Wed, 8 Sep 2021 18:37:36 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5404C061575 for ; Wed, 8 Sep 2021 15:36:27 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id g9so5361110ioq.11 for ; Wed, 08 Sep 2021 15:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M/dueucM0XzOy1jPT/PQdcqnijwVro2s2Bw0YSR2geg=; b=LkipFzU3cjINN/t5kFqm8if/dRpeVPe5N3h3SK1jKCbuJYBNkdOKO1Q1BlRDgpJwkF uecfJZnqLEqB4ptN4xZ93fVt8PEUJA6HkO2/CTlBx2dJELQY0APPZr34AZSYfiKYYUzh uH+J7IHDcQ+Gf9T4yeyACeE7nz4Tz7it+F8Ok= 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=M/dueucM0XzOy1jPT/PQdcqnijwVro2s2Bw0YSR2geg=; b=mS6TR/DfwhwGgIebCCNNAmp8HqxRDUaOOlGBwe0xRvGABQAsAREoNIAkox+wkBb2fq 8AvWOO+w2yFXThLwUIBYBJzBnHncIDOv0kczstytrw6VDtys1yHd62U6yFUvIUlm+XZB cwOTRXx+bmZm0MsZeP7dWJ6twZCH4TzlEscbaqMoccRhdF3kai05t8EzXV2kUDzV+9rF ulZDkUplxGVRar2qfc0zmm4xPh49v2TlcwLaEAWcxPewSafcjTsmDkRgKeJWsLysH9Tg QAGhO0qsuv57ZnrmdzCAtq1bekX3DXWItUz1cxQ6fyBPQYyls+6kH5KWcH9/GekPZCOu LgeQ== X-Gm-Message-State: AOAM531GRm1yoNRQbIof4DnUEB9QSnIi3pw1VC3OAAp1tO1ahYK6i0dz jGNhU3+c6KHagNR4hEeoXHN6PJUY3DYqHQ== X-Received: by 2002:a02:c64a:: with SMTP id k10mr678921jan.112.1631140586890; Wed, 08 Sep 2021 15:36:26 -0700 (PDT) Received: from mail-io1-f54.google.com (mail-io1-f54.google.com. [209.85.166.54]) by smtp.gmail.com with ESMTPSA id p19sm204258ilj.58.2021.09.08.15.36.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 15:36:26 -0700 (PDT) Received: by mail-io1-f54.google.com with SMTP id b10so5367489ioq.9 for ; Wed, 08 Sep 2021 15:36:25 -0700 (PDT) X-Received: by 2002:a5d:8458:: with SMTP id w24mr489939ior.168.1631140574432; Wed, 08 Sep 2021 15:36:14 -0700 (PDT) MIME-Version: 1.0 References: <20210901201934.1084250-1-dianders@chromium.org> <20210901131531.v3.6.I02250cd7d4799661b068bcc65849a456ed411734@changeid> <163070152582.405991.9480635890491684680@swboyd.mtv.corp.google.com> In-Reply-To: <163070152582.405991.9480635890491684680@swboyd.mtv.corp.google.com> From: Doug Anderson Date: Wed, 8 Sep 2021 15:36:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 06/16] ARM: configs: Everyone who had PANEL_SIMPLE now gets PANEL_SIMPLE_EDP To: Stephen Boyd Cc: Olof Johansson , Thierry Reding , Rob Herring , Sam Ravnborg , Maarten Lankhorst , linux-arm-msm , Bjorn Andersson , Linus W , Daniel Vetter , DTML , Steev Klimaszewski , Thomas Zimmermann , Maxime Ripard , David Airlie , DRI mailing list , Al Viro , Alexandre Belloni , Alexandre Torgue , Andreas Kemnade , Andrey Zhizhikin , Anson Huang , Arnd Bergmann , Chen-Yu Tsai , Claudiu Beznea , Codrin Ciubotariu , Core ntin Labbe , Daniel Thompson , Dmitry Osipenko , Emil Velikov , Eugen Hristev , Fabio Estevam , Fabrice Gasnier , Florian Fainelli , Geert Uytterhoeven , Grygorii Strashko , Jernej Skrabec , Joel Stanley , Jonathan Hunter , Kees Cook , Krzysztof Kozlowski , Lionel Debieve , Liviu Dudau , Lorenzo Pieralisi , Ludovic Desroches , Magnus Damm , Manivannan Sadhasivam , Marek Szyprowski , =?UTF-8?Q?Martin_J=C3=BCcker?= , Nicolas Ferre , Olivier Moysan , Otavio Salvador , Pengutronix Kernel Team , Razvan Stefanescu , Robert Richter , Russell King , Sascha Hauer , Shawn Guo , Stefan Wahren , Sudeep Holla , Tony Lindgren , Tudor Ambarus , Viresh Kumar , Vladimir Zapolskiy , Linux ARM Mailing List , Linux Kernel Mailing List , linux-omap , Linux-Renesas , "ARM/SAMSUNG EXYNOS ARM ARCHITECTURES" , linux-sunxi@lists.linux.dev, =?UTF-8?Q?open_list=3ATEGRA_ARCHITECTURE_SUPPORT_=3Clinux=2D_tegra=40vger=2Ekern?= =?UTF-8?Q?el=2Eorg=3E=2C_=C5=81ukasz_Stelmach?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Sep 3, 2021 at 1:38 PM Stephen Boyd wrote: > > Quoting Doug Anderson (2021-09-01 16:10:15) > > Hi, > > > > On Wed, Sep 1, 2021 at 2:12 PM Olof Johansson wrote: > > > > > > On Wed, Sep 1, 2021 at 1:20 PM Douglas Anderson wrote: > > > > > > > > In the patch ("drm/panel-simple-edp: Split eDP panels out of > > > > panel-simple") we split the PANEL_SIMPLE driver in 2. By default let's > > > > give everyone who had the old driver enabled the new driver too. If > > > > folks want to opt-out of one or the other they always can later. > > > > > > > > Signed-off-by: Douglas Anderson > > > > > > Isn't this a case where the new option should just have had the old > > > option as the default value to avoid this kind of churn and possibly > > > broken platforms? > > > > I'm happy to go either way. I guess I didn't do that originally > > because logically there's not any reason to link the two drivers going > > forward. Said another way, someone enabling the "simple panel" driver > > for non-eDP panels wouldn't expect that the "simple panel" driver for > > DP panels would also get enabled by default. They really have nothing > > to do with one another. Enabling by default for something like this > > also seems like it would lead to bloat. I could have sworn that > > periodically people get yelled at for marking drivers on by default > > when it doesn't make sense. > > > > ...that being said, I'm happy to change the default as you suggest. > > Just let me know. > > Having the default will help olddefconfig users seamlessly migrate to > the new Kconfig. Sadly they don't notice that they should probably > disable the previous Kconfig symbol, but oh well. At least with the > default they don't go on a hunt/bisect to figure out that some Kconfig > needed to be enabled now that they're using a new kernel version. > > Maybe the default should have a TODO comment next to it indicating we > should remove the default in a year or two. OK, so I'm trying to figure out how to do this without just "kicking the can" down the road. I guess your idea is that for the next year this will be the default and that anyone who really wants "CONFIG_DRM_PANEL_EDP" will "opt-in" to keep it by adding "CONFIG_DRM_PANEL_EDP=y" to their config? ...and then after a year passes we remove the default? ...but that won't work, will it? Since "CONFIG_DRM_PANEL_EDP" will be the default for the next year then you really can't add it to the "defconfig", at least if you ever "normalize" it. The "defconfig" by definition has everything stripped from it that's already the "default", so for the next year anyone who tries to opt-in will get their preference stripped. Hrm, so let me explain options as I see them. Maybe someone can point out something that I missed. I'll assume that we'll change the config option from CONFIG_DRM_PANEL_SIMPLE_EDP to CONFIG_DRM_PANEL_EDP (remove the "SIMPLE" part). == Where we were before my series: * One config "CONFIG_DRM_PANEL_SIMPLE" and it enables simple non-eDP and eDP drivers. == Option 1: update everyone's configs (this patch) * Keep old config "CONFIG_DRM_PANEL_SIMPLE" but it now only means enable the panel-simple (non-eDP) driver. * Anyone who wants eDP panels must opt-in to "CONFIG_DRM_PANEL_EDP" * Update all configs in mainline; any out-of mainline configs must figure this out themselves. Pros: * no long term baggage Cons: * patch upstream is a bit of "churn" * anyone with downstream config will have to figure out what happened. == Option 2: kick the can down the road + accept cruft * Keep old config "CONFIG_DRM_PANEL_SIMPLE" and it means enable the panel-simple (non-eDP) driver. * Anyone with "CONFIG_DRM_PANEL_SIMPLE" is opted in by default to "CONFIG_DRM_PANEL_EDP" AKA: config DRM_PANEL_EDP default DRM_PANEL_SIMPLE Pros: * no config patches needed upstream at all and everything just works! Cons: * people are opted in to extra cruft by default and need to know to turn it off. * unclear if we can change the default without the same problems. == Option 3: try to be clever * Add _two_ new configs. CONFIG_DRM_PANEL_SIMPLE_V2 and CONFIG_DRM_PANEL_EDP. * Old config "CONFIG_DRM_PANEL_SIMPLE" gets marked as "deprecated". * Both new configs have "default CONFIG_DRM_PANEL_SIMPLE" Now anyone old will magically get both the new config options by default. Anyone looking at this in the future _won't_ set the deprecated CONFIG_DRM_PANEL_SIMPLE but will instead choose if they want either the eDP or "simple" driver. Pros: * No long term baggage. * Everyone is transitioned automatically by default with no cruft patches. Cons: * I can't think of a better name than "CONFIG_DRM_PANEL_SIMPLE_V2" and that name is ugly. == Option 4: shave a yak When thinking about this I came up with a clever idea of stashing the kernel version in a defconfig when it's generated. Then you could do something like: config DRM_PANEL_EDP default DRM_PANEL_SIMPLE if DEFCONFIG_GENERATED_AT <= 0x00050f00 That feels like a good idea to me but who knows what others would think. In general I think this series already shaves enough yaks. This isn't a new problem we're trying to solve so it seems like we should pick one of the options above. == Unless I get an explicit NAK from someone like Olof or Arnd or I hear that everyone loves Option #3 I'll probably just stick with the existing approach since: * Olof's wording didn't make it sound like a strong objection. * From git history it looks as if config patches don't necessarily land through the SoC tree and thus I'd by default follow the suggestions of the DRM folks. Andrzej suggested going with the existing approach as long as I changed the symbol names and re-ordered the patches. Please yell if anything above sounds wrong! I'll probably try to send out a new version tomorrow or the next day, but I won't land it right away to give people time to yell. -Doug