Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp634135pxf; Thu, 8 Apr 2021 09:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBradK/bYN8eHThWijB9+/Sa629CR8uJ2bBc2pqS1rx6p6xyG4ffunbg8mv7ea2VN7anNX X-Received: by 2002:a17:906:8293:: with SMTP id h19mr1153478ejx.217.1617900549704; Thu, 08 Apr 2021 09:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617900549; cv=none; d=google.com; s=arc-20160816; b=QprBzKVmQm3qko2LypwFXVpfl2lGzVM3QFpSnovkpX/K7bY/atVa9z4avV0Tu2p+KM NYGcp6YCqlb0xZe8s/lcfcyMEAJoH3+/IRjfobgEcDKgW/0iT80YMNm1j7OfOxM7qZL4 7rWJvc8ZftXRWRtiWQugnBHw7AwmGhlPJe5hHYQ9+l776vYz81IxvXlcMHXWMmHQ0ltb i8dk3oLnkcdxfNonmbBJXVp+xRlJzLiMdhLJm9Vjeb8YetGbRx9utnsjJwXGyBnDTtnL rT2WYFUYVbNqbgEbjuBsauVBiWNV7ssdcf7gVrOvqZl390/fWAOykWNG5vBVO/pY0oJH crgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=P9Dutpry47e9G1LsI+esYplVO+0VII6tEqAJFfWkRFs=; b=m9X5p4U30sCovnoCnmyOBHD7kmyiglnTbrHftAhVG2kuWY2OGe+YGGlWnZbAkraQjj NiNyuf7DfnWuvfrVHeTqvr95GcIPO5iMDnE86qTSJYIK2HS87x5Y6YaHaQXndKHvLe1t VfE1wsd3Ic7YXzrmLY6fIpdN7lROhXa2jp7AzL7/tnvq0+5OFZbJhoYNItzm5DQblSjy eau9QeI3ZcLfDi6CaK1QmbUn6GDbHtrEvm0yeDuoELwCmCknwwptD93vnXAr0AuMsY/V KwW9lfF0vmq4nReJSf/1lKhDStsmD0Wo2TfmcK0byKg4wJ075BLYQiDgmhya0+/kBaZY 2LTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=YgqR7cly; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si14719132edq.454.2021.04.08.09.48.46; Thu, 08 Apr 2021 09:49:09 -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=@ziepe.ca header.s=google header.b=YgqR7cly; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232372AbhDHQq0 (ORCPT + 99 others); Thu, 8 Apr 2021 12:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbhDHQqZ (ORCPT ); Thu, 8 Apr 2021 12:46:25 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4205DC061761 for ; Thu, 8 Apr 2021 09:46:14 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id y5so2848657qkl.9 for ; Thu, 08 Apr 2021 09:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P9Dutpry47e9G1LsI+esYplVO+0VII6tEqAJFfWkRFs=; b=YgqR7clyk2k4fwdMNax1iDXb2sF/XnKNGxf0wo1TO8GFWHr9fn3olwvZRTnhLiG401 Mg74Akp1RiWZym/qucXFCGV+PA7tE9GSB1FxRXUa12JWocy5RCT3AKfLOF0rPbKAp8zK QDz77Rezb71XzcRKjk67GImEAzjs/v2nKZ80axmwHu/PYnVK5lGGWeP6MQm0qGM8cjbc CePlxVevLaG+j2FEa/lmwKvJRXnHCFMMOtqfpLtAmxzzonEYQ4xP8e4P3F42nXwP39SP QBVuP3x8MHGGhx7X6YmAx60QXV9mNcADixygvhUrdhGe5SJSv9lS4wXFKSFMCma9xIw7 TuxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P9Dutpry47e9G1LsI+esYplVO+0VII6tEqAJFfWkRFs=; b=IpzpwxJLWIDZmsin8aIiNpD3DZQEYfIET/uUfKAqeX/VuGXPVoBhb+CvvVIX4CHpmX HyCqneze7OJw8ehme/jo+Z05uZoWHx57j5GBFkTw7/Zf5QV/K1lz6GEUgIb67qow85h/ WsS4EdlW35+0Nhd5kPaVHO2pf1+0wX8+lPj1WeMsEzocsrPvfjR4Np9c5R3/LFHmpaNh lZyel24n8SWoMj1YpxgLvBe8rulLx2CPV93O6/tLhjRv7zGdm8cyVWmhEamAQdHWat9m 5b27kisBHd9hQA5vJkZtVjY8Hzci+F9lsDGxqiFCWysxoonY7k0zIoCA8C57DOKOntOW Ei/Q== X-Gm-Message-State: AOAM530F8bkEFyGaChxTuc/7vt29sSh/lqC3SKqgtOSIJ4a0lCdHr7q7 SkMT63uml8xppNRzwfhm+mTd2A== X-Received: by 2002:a37:6c01:: with SMTP id h1mr9726497qkc.182.1617900373391; Thu, 08 Apr 2021 09:46:13 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id p5sm21412244qkj.35.2021.04.08.09.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 09:46:12 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lUXnI-002nMT-BD; Thu, 08 Apr 2021 13:46:12 -0300 Date: Thu, 8 Apr 2021 13:46:12 -0300 From: Jason Gunthorpe To: Arnd Bergmann , David Hildenbrand , Linux Kernel Mailing List , Linux-MM , Joel Stanley , David Airlie , Andrew Jeffery , Lucas Stach , Russell King , Christian Gmeiner , Mike Rapoport , Bartlomiej Zolnierkiewicz , Linus Walleij , Michal Simek , Masahiro Yamada , Randy Dunlap , Peter Collingbourne , linux-aspeed , dri-devel , Linux ARM , The etnaviv authors , Linux Fbdev development list Subject: Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv Message-ID: <20210408164612.GD227011@ziepe.ca> References: <20210408092011.52763-1-david@redhat.com> <20210408092011.52763-3-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 01:38:17PM +0200, Daniel Vetter wrote: > If you want to change this, we need automatic conflict resolution like apt > and other package managers have, with suggestions how to fix the config if > you want to enable a driver, but some of its requirements are missing. The > current approach of hiding driver symbols complete if any of their > dependencies are off is really not great. +1 to this.. Though Kconfig is basically already unusuable unless you have hours to carefully craft the kconfig you need to get out. I'm not sure trying to optimize this by abusing the existing language rules is such a good idea. I gave a very half hearted go at a simple heuristic solution solve for kconfig a while ago. It is good enough to sometimes automate a kconfig task, but it is not so nice. I use it to do things like "turn on all RDMA drivers" which is quite a hard to do by hand. It looks liked heursitics need a lot of fine tuning as the conditionals are complex enough that it is hard to guess which branch is going to yield a success. Jason