From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15A9EC433B4 for ; Thu, 8 Apr 2021 16:46:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9107061131 for ; Thu, 8 Apr 2021 16:46:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9107061131 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2221E6B0085; Thu, 8 Apr 2021 12:46:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F8AC6B0087; Thu, 8 Apr 2021 12:46:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 09A656B0088; Thu, 8 Apr 2021 12:46:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0084.hostedemail.com [216.40.44.84]) by kanga.kvack.org (Postfix) with ESMTP id DF7F06B0085 for ; Thu, 8 Apr 2021 12:46:14 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A3861183D9815 for ; Thu, 8 Apr 2021 16:46:14 +0000 (UTC) X-FDA: 78009777468.03.1D216DF Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by imf26.hostedemail.com (Postfix) with ESMTP id 6F93A40002C8 for ; Thu, 8 Apr 2021 16:46:11 +0000 (UTC) Received: by mail-qk1-f171.google.com with SMTP id g20so2882458qkk.1 for ; Thu, 08 Apr 2021 09:46:13 -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=PMMhtN7mRQgteoyJEp4/AN3HYGLjQY2jADxbmuX5F2tVzvIOXtyMB+ABeXy/gdJXss D8dYGGi1frC1q9Q9WJF0lzBKKavy9aPXugPi9LMuJ8EbZKtePrz/0tTFhB3p2c9uGA9Y 4tluGsjSg0v5n7K5Sb3Jspsy12HmJOBeKa3BvyRh57rWx3BavcczaKcPvsaQ1hsLA7eG cfmGlAKQXw7RY8qzRyAFrj9TWqU3zy0Yiw6TxualtI0Ig3wx/z79zBueLYbA8tPd5XZh mLcyYaFoEu0DlEeYxI5xUEwyGutx6MulfKLo0jgZk8VoK4j9VdTosblnbMwOkMJqjdep 0eoA== X-Gm-Message-State: AOAM530Adta1CAJcD/zDXentOM/DS2kfhs8GfmRe+6k8EzETW4JQ2gge EODrtABrXA8Z6ZbVLxRer7ICTg== X-Google-Smtp-Source: ABdhPJzbDYutSfn+FmJJZIAbAHyE8DAfowirb1kwOsQfAUvjL2fOsMnXGxO5fiM2OyXlWuyJctyzMw== 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: X-Stat-Signature: xfq6b3xh8y5u93pidnjiaadmchxj4n54 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 6F93A40002C8 Received-SPF: none (ziepe.ca>: No applicable sender policy available) receiver=imf26; identity=mailfrom; envelope-from=""; helo=mail-qk1-f171.google.com; client-ip=209.85.222.171 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617900371-768780 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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