Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp325224pxf; Thu, 8 Apr 2021 04:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWtphOZBXtn43OwsJLrKdTQ9WhKFtWX6gc7XpfmaNphZOYu30BWgrrm8upAmOLSa1GOExw X-Received: by 2002:a17:90a:c81:: with SMTP id v1mr7610170pja.23.1617879805764; Thu, 08 Apr 2021 04:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617879805; cv=none; d=google.com; s=arc-20160816; b=RORIHgU/Ed+Yn8l3EZo+8a0ZluX0sdCAMZdtlF1yT//sxiumpXWWD6/lflumuzs+bD zNPsr3ChHXAdlL/nWN+i1oeSJ8LvUXUTlXMeJMbmjGbPsbZYtotkmCLylvI9bWOC6R9a reHnpzBv3fx6fX/A2cZml+6eei8V1mkC+iWFfMmRIUDQI3sQjT/hwNHR4gtgIpQAPa5k 561U5fITeTyi0cYBSq+JGxZ1klKuJUgG2qu1OCN02xJuhIpVjTWU4XUWMvuhkGLTCVoy 1jfln70SFQQiirivpEUDOrP3NUe/yBRJbvWuYrooX3k2XJPqYBZzY9qiJ3HWzz0uytG4 qhhQ== 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:subject :organization:from:references:cc:to:dkim-signature; bh=WQhqnjeZkCOh2eK1FDK8AD+p6DMcS/hFEdzGcfPMAFo=; b=GYissf8Ah2PAezAGi9GDr8tjlQCBucWHokDQvNwJhdaWwMZM/EkCdIb/Pe6UwxA157 +THnLXNHBRFRJiYZs99NdJXVX9Dlt0pi5RD2BQhYq3vYnEQCXhUW4NGfrGn7P5pwuSv3 TcXcbAFqeiDkSoRywZtUsjD50mlKAaItkryGVbF5n72/n6noaJXtkeXQE4wR3jBR2qfF nU+6CiFhFsX2fcsdv0lYAkeJDBcBigKcf7IQFePY8XnVcTYtF3d505Pb1+2GVWjCFT2I LMUntPUBnFJ9cUMy1U140x+Q/jpr2EXhbRF8UOTFMG531nF5mMo9A4TNQHXg5dDTKjnb lmIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Vbirf+j5; 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 t2si14911547plb.368.2021.04.08.04.03.12; Thu, 08 Apr 2021 04:03:25 -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=Vbirf+j5; 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 S230501AbhDHLBN (ORCPT + 99 others); Thu, 8 Apr 2021 07:01:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:24732 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbhDHLBM (ORCPT ); Thu, 8 Apr 2021 07:01:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617879660; 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=WQhqnjeZkCOh2eK1FDK8AD+p6DMcS/hFEdzGcfPMAFo=; b=Vbirf+j5/oeKrWyHHsAyReKkCVP8+9mSK+SYEN/DKRbvwPxg7sh293vcSCMuaXwb1GtqPn ho08YQA1oDMqYtSgMTU4su5nfupkCnix8QZuYQ0zG3/1vEIzPzNDNPkr2JoCqKHsaUFMYf FuhK1E8jOpmDnJdFpoRIcG3OmK1d6no= 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-546-cf3ok8EPM6mmTtU9zSKjug-1; Thu, 08 Apr 2021 07:00:57 -0400 X-MC-Unique: cf3ok8EPM6mmTtU9zSKjug-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E56F83DD21; Thu, 8 Apr 2021 11:00:54 +0000 (UTC) Received: from [10.36.114.231] (ovpn-114-231.ams2.redhat.com [10.36.114.231]) by smtp.corp.redhat.com (Postfix) with ESMTP id EF0CA5D9D0; Thu, 8 Apr 2021 11:00:48 +0000 (UTC) To: Arnd Bergmann Cc: Linux Kernel Mailing List , Linux-MM , Joel Stanley , David Airlie , Daniel Vetter , 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 References: <20210408092011.52763-1-david@redhat.com> <20210408092011.52763-3-david@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Subject: Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv Message-ID: <7496ac87-9676-1b4e-3444-c2a662ec376b@redhat.com> Date: Thu, 8 Apr 2021 13:00:47 +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: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> In particular, it does not prevent a configuration with 'DRM_CMA=m' >> >> I assume you meant "DRM_CMA=n" ? DRM_CMA cannot be built as a module. > > Ok, at least that makes it easier. > >>> and 'DRMA_ASPEED_GFX=y', or any build failures from such >>> a configuration. >> >> I don't follow. "DRM_CMA=n" and 'DRMA_ASPEED_GFX=y' is supposed to work >> just fine (e.g., without HAVE_DMA_CONTIGUOUS) or what am I missing? > > I thought you were trying to solve the problem where DRMA_ASPEED_GFX > can optionally link against CMA but would fail to build when the CMA code > is in a loadable module. Yes. I was trying to say: it works with this patch just fine. The issue you described does not seem to apply (DRM_CMA=m). > >> Your example looks more like a NOP - no? >> Or will it have the same effect? > > The example I gave is only meaningful if both are tristate, which is > not the case here as you explain. Okay, thanks. > > It is a somewhat awkward way to say "prevent this symbol from > being =y if the dependency is =m". What would be the right thing to do in the case here then to achieve the "if DRMA_ASPEED_GFX is enabled, also enable DMA_CMA id possible"? One approach could be to have for DMA_CMA default y if DRMA_ASPEED_GFX but it feels like the wrong way to tackle this. Thanks! -- Thanks, David / dhildenb