Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp630895pxf; Thu, 8 Apr 2021 09:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxge/F5Hs6mP7SBKnkrF2Q5xSGton69SsZLkoQv8a911F/nJ2RwqRkM6nc8ag6i9EOsz15u X-Received: by 2002:a17:90b:8c3:: with SMTP id ds3mr9415093pjb.71.1617900342459; Thu, 08 Apr 2021 09:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617900342; cv=none; d=google.com; s=arc-20160816; b=ySs/jnD0pYyMqEqdaREat02jPTomwT93fWUyxFeRW9/WMQ6YH7m8C9o5eAwNJEsO/S Er/FFNeFNSXUWJM9ygSWm7Nq261SPWYq2B64G8YYoWGhr3/q0+F5REWP5ytTbSnu051t rk+JzN+7tvmqRB36VfzNR1lkFqj9NzbAaVWuqvHZMJV1mh/9Wm8jz7zuMfH51il392wn A8AEvcS7/nJxl9Xm343q6zqUtKhrq16fPkB400CUHaLZs5WJq31IAeDlm9cZLvrdDqZm tbkxJ3JYvHlFD94M1N9gqgwge2t9dGyleXo7VG0jOdwLJyfVrGKNrW0iPvy7xTk6KzsH ccOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=VfhnCQAyCfEthQPScFLk5+XhVK1UjdBG138qICZvuow=; b=Voedc4aE7DdH0mHPKLhxjJznkojU8sUnbhmsx+MlPyplhF8JNOm9VwwUQobfsMCNP8 Ot78ZR107zYnOD/b9CWKT7qGzIRBTofwqA5FSGmmt7hkSYx7FUUa3SnZGfW++oXBOp+M iy+eDd6WSEonO6mkQromUBsyfMyALE7SrG/mLcQ1fInahqn908hYo7RgyqN26Jo/2dLx psI0lMBnYyW+wxKHTST4yVmX6LZnyDyf4ZPG3uGID7zDVZn/xJv4FOs09/XpZBMwZNnW y3gQcqQxIw6bHG1eYrpWOdoAnm6w/VlHE4hv/yzs5HUrN7oMxWR1cGAsxcuroNJOi+jJ rzzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ar0/Ev9C"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si27775927pfj.26.2021.04.08.09.45.30; Thu, 08 Apr 2021 09:45:42 -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=@redhat.com header.s=mimecast20190719 header.b="ar0/Ev9C"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232023AbhDHQou (ORCPT + 99 others); Thu, 8 Apr 2021 12:44:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57810 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbhDHQou (ORCPT ); Thu, 8 Apr 2021 12:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617900278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VfhnCQAyCfEthQPScFLk5+XhVK1UjdBG138qICZvuow=; b=ar0/Ev9C0RCZwi438X39cNfOMLl1aBxWyLAyi6OyKjc/zmU21i8LPN6N//W+yq4FJzONLH 4bNCvaseHH+G98bKUZPu2XxiX4jNnubPWEEZJnpEkiC2wbd0vRl6off2h9mF0ecii+Kn54 wndNFJqgSqM1p/J1PSyOJyr7ZUDhsiY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-153-x1HZ9uJoOgSGPofB8dKw8A-1; Thu, 08 Apr 2021 12:44:34 -0400 X-MC-Unique: x1HZ9uJoOgSGPofB8dKw8A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DA2FB801814; Thu, 8 Apr 2021 16:44:30 +0000 (UTC) Received: from [10.36.113.26] (ovpn-113-26.ams2.redhat.com [10.36.113.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63A0A60636; Thu, 8 Apr 2021 16:44:24 +0000 (UTC) Subject: Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv To: Linus Walleij Cc: Arnd Bergmann , Linux Kernel Mailing List , Linux-MM , Joel Stanley , David Airlie , Daniel Vetter , Andrew Jeffery , Lucas Stach , Russell King , Christian Gmeiner , Mike Rapoport , Bartlomiej Zolnierkiewicz , Michal Simek , Masahiro Yamada , Randy Dunlap , Peter Collingbourne , linux-aspeed , dri-devel , Linux ARM , The etnaviv authors , Linux Fbdev development list References: <20210408092011.52763-1-david@redhat.com> <20210408092011.52763-3-david@redhat.com> <7496ac87-9676-1b4e-3444-c2a662ec376b@redhat.com> <3a2d64a7-8425-8daf-17ee-95b9f0c635f9@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <2ef3b65c-c0ef-7bbe-0e05-39ee8f2bae48@redhat.com> Date: Thu, 8 Apr 2021 18:44:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.21 14:49, Linus Walleij wrote: > On Thu, Apr 8, 2021 at 2:01 PM David Hildenbrand wrote: > >>> This is something you could do using a hidden helper symbol like >>> >>> config DRMA_ASPEED_GFX >>> bool "Aspeed display driver" >>> select DRM_WANT_CMA >>> >>> config DRM_WANT_CMA >>> bool >>> help >>> Select this from any driver that benefits from CMA being enabled >>> >>> config DMA_CMA >>> bool "Use CMA helpers for DRM" >>> default DRM_WANT_CMA >>> >>> Arnd >>> >> >> That's precisely what I had first, with an additional "WANT_CMA" -- but >> looking at the number of such existing options (I was able to spot 1 !) > > If you do this it probably makes sense to fix a few other drivers > Kconfig in the process. It's not just a problem with your driver. > "my" drivers: > :) I actually wanted to convert them to "depends on DMA_CMA" but ran into recursive dependencies ... > drivers/gpu/drm/mcde/Kconfig > drivers/gpu/drm/pl111/Kconfig > drivers/gpu/drm/tve200/Kconfig I was assuming these are "real" dependencies. Will it also work without DMA_CMA? > > certainly needs this as well, and pretty much anything that is > selecting DRM_KMS_CMA_HELPER or > DRM_GEM_CMA_HELPER "wants" DMA_CMA. "wants" as in "desires to use but can life without" or "wants" as in "really needs it". ? -- Thanks, David / dhildenb