Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2229415lqt; Mon, 22 Apr 2024 05:30:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVDe0Lzg3rqe1UvBNhoNurto/FbUBOLYdPpBrsKbyU9IjPBzCUk1RPRZ/U/Ak2xcJoMuFLt5ewaNUxXgp+Pr1s8AB2YIICDBB+a00oxA== X-Google-Smtp-Source: AGHT+IE2yiU0b6UF62Y79z8AmvFM5PUJwDoKf2+/ZZ1iwyuaALnkAVm1FjmLEcS0eKLaej/UPjM+ X-Received: by 2002:a67:fd82:0:b0:47b:ccc5:eb8d with SMTP id k2-20020a67fd82000000b0047bccc5eb8dmr11355699vsq.16.1713789049351; Mon, 22 Apr 2024 05:30:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713789049; cv=pass; d=google.com; s=arc-20160816; b=k4L24IR5tTFjz3/ag4MVY4V3r3WCyvRj94paFEATon0cgDGuqrU5c92obtX8Ktwu0x tzIwqBx3TOjkJk0k1o2qq5iCFnzyykw8gxVDnlT4Xz87grV4j0ojG6MN9Fj5JAcnwkZ0 SjYodnG8bZRg5b0wOD3kesz4g2520sVEePBHuZvzZhjm4XrtVJ5ZyOutgHuH9w66ilg7 yC5H3XnY0en6fEKLN4ukBsJcXWAU7zAEo6/wv7ZMxgRnXWcfmVNwQMRirnvppMpgWfwV Mpp5eKfXyRn5U1ITHXtC8/uIref3jP1FfvtSWUFDRYYAZcrKc/dOVaouL/FrtetRvPXL twKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=8ugVFk+ZkcD//rYYfTG6/QQI1nngqkt6LSHTwxmvrd0=; fh=AGy8YRMow1hex02z0C7MZ6xMazpsJ31Xyrc6K7E4hYs=; b=wIh63nyszyZ7RpR0ht6GOqr0AQ+jZ52NGuC/osAQfs16LMI5RcBHnPYbiaaB3B3eMg UUiXqG/wLY01BjcxHzyOjlRnJmHonjZpG7bpks14JMtWfWMmThDxnpwjN8W4q5zYn5w1 QTroVg1OrGhSd0HY3gIc6TwI21B1acfQffu6kgaD4Zmf1YpU6ZFA5yIFK81hsxPCvaqm 77vPa6PhkeNoY/VfdWLQz1uSlSXW7yDFT+qqId1144IQlmla4sgCqmnR+Nq3MuGgPNXK zXlSNOH8748/iytQg7Us3j+k0jBxFicVQSI5X1tsXVYvBtkO8j3LGAboB2GRPOmrDqtF 8fTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=L7klJsWN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=W6VpGQiw; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-153333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k4-20020a0561023f0400b0047b8dd15b31si1577167vsv.340.2024.04.22.05.30.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=L7klJsWN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=W6VpGQiw; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-153333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 064F81C20E16 for ; Mon, 22 Apr 2024 12:30:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D6043AC0; Mon, 22 Apr 2024 12:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="L7klJsWN"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="W6VpGQiw" Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 429641E485; Mon, 22 Apr 2024 12:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713789042; cv=none; b=pakidO12nxNKbcZmdzFMwEbbaAuHO7ADEZd4OBAxciRV+w12UloaZymvsRKJrWZOxs4laoJJgVR6CyvItQ/f2AT0rada5li0Z2WCRMoO0ZnbTloBFONemCe2CQ/rYGy9tg33Fk2HesDmEWjwAOBJQNrZC9AXqZfndZLGJ8Pxv/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713789042; c=relaxed/simple; bh=sD2ON1CQL6WsL62It2B98FvxtE3K8xXYq2rJQ4OJEEc=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=K2CajCm1WlQNV3Wvch/In9xmEpmK40wH5sAXB/7ZHtDb0vgXBs2gM9mN+4ZoizzNlyS8fbzeE3aadJCMpU/hAVlR2aHIo4ipxSK0d/95SMA4FuEBiDVgmqHPCMAXT3YsdTVMfXT0ISmNuvFjgDWspSqxWyqQAGB+tluLznNfsKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=L7klJsWN; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=W6VpGQiw; arc=none smtp.client-ip=64.147.123.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 971321C00144; Mon, 22 Apr 2024 08:30:39 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 22 Apr 2024 08:30:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1713789039; x=1713875439; bh=8ugVFk+Zkc D//rYYfTG6/QQI1nngqkt6LSHTwxmvrd0=; b=L7klJsWNtidH6l7sSU7XBax2QE kssLsGQ9VOkRGD3D33MwEvbCJszjBEcdxhvvjvzd2NQ8Gkuskuv9Ykg91djjRZ/E Ha4PSfm6AlUoWRwlDjubByrDZ3W7jXhlI+hgwCeswy1Rg24Tttc9k74ZyhkGeXO9 V19PeC3E/76Oh18YtdtCoyW8Q38CMsTUvKkU/oddWrEJD/ejyUvLUicLZ/mTukBg +xQllc490tqb/44vzn5wlZKVY85aH1+QHg/xetyjhR1BuDDGb2oYlZRLJZsNuAn8 ZL9AY8OkefLcNHiF+GdEvON1jf7LvLj1ryVwtcn2uOpWulh56uKvVEBsbn6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713789039; x=1713875439; bh=8ugVFk+ZkcD//rYYfTG6/QQI1nng qkt6LSHTwxmvrd0=; b=W6VpGQiwUHgeYJhs+GX+FE50swdWYFDJ+eNVUu4aCAQC gPGTkpQd0EXQEe7O/pDeBcxmDVIGvrQ8oeMw5SjrZrWyVgMm56MzSVgdbCJwa7VB uoU0krJfz2aKfYziqx5nuNZBUjhdJkt63sZQIg17ss5LRzyOXqYQcdldCZX9h8a6 mDcHOpYPt6HGjaoXQ6PdXI6bhJT10isoK+yoIpxVgu22anAegQI4LKCI1zHs4ayB VkXn3xH3E314DkQknMEgkmSyJEYbxrrsEJc79h4mobA90ZWAXbhv1RA+RC4PKHHT xSF5rOhxjSV2MNCN4hFzyOnHqfyCF/ZOV3HN8RfS1g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekledgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B204BB6008F; Mon, 22 Apr 2024 08:30:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <87il09ty4u.fsf@intel.com> References: <87il09ty4u.fsf@intel.com> Date: Mon, 22 Apr 2024 14:30:18 +0200 From: "Arnd Bergmann" To: "Jani Nikula" , "Geert Uytterhoeven" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Dave Airlie" , "Daniel Vetter" Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linux-Renesas Subject: Re: [PATCH 00/11] drm: Restore helper usability Content-Type: text/plain On Mon, Apr 22, 2024, at 13:50, Jani Nikula wrote: > On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: >> Hi all, >> >> As discussed on IRC with Maxime and Arnd, this series reverts the >> conversion of select to depends for various DRM helpers in series >> "[PATCH v3 00/13] drm/display: Convert helpers Kconfig symbols to >> depends on"[1], and various fixes for it. This conversion introduced a >> big usability issue when configuring a kernel and enabling DRM drivers >> that use DRM helper code: as drivers now depend on helpers, the user >> needs to know which helpers to enable, before the driver he is >> interested even becomes visible. The user should not need to know that, >> and drivers should select the helpers they need. >> >> Hence revert back to what we had before, where drivers selected the >> helpers (and any of their dependencies, if they can be met) they need. >> In general, when a symbol selects another symbol, it should just make >> sure the dependencies of the target symbol are met, which may mean >> adding dependencies to the source symbol. Thanks for doing this. Acked-by: Arnd Bergmann > I still disagree with this, because fundamentally the source symbol > really should not have to care about the dependencies of the target > symbol. Sorry you missed the IRC discussion on #armlinux, we should have included you as well since you applied the original patch. I think the reason for this revert is a bit more nuanced than just the usability problem. Sorry if I'm dragging this out too much, but I want to be sure that two points come across: 1. There is a semantic problem that is mostly subjective, but with the naming as "helper", I generally expect it as a hidden symbol that gets selected by its users, while calling same module "feature" would be something that is user-enabled and that other modules depend on. Both ways are commonly used in the kernel and are not mistakes on their own. 2. Using "select" on user visible symbols that have dependencies is a common source for bugs, and this is is a problem in drivers/gpu/drm more than elsewhere in the kernel, as these drivers traditionally select entire subsystems or drivers (I2C, VIRTIO, INPUT, ACPI_WMI, BACKLIGHT_CLASS_DEVICE, POWER_SUPPLY, SND_PCM, INTERCONNECT, ...). This regularly leads to circular dependencies and we should fix all of them. The display helpers however don't have this problem because they do not have any dependencies outside of drivers/gpu/ Arnd