Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp285691pxf; Thu, 8 Apr 2021 03:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx95nJ0PKP+erKsUiHu8VcMZkDe+UCDfQWmncOtTJjk186jukQxDhknfxrP0ojYnVlK4bQl X-Received: by 2002:a63:4924:: with SMTP id w36mr7431623pga.212.1617876425887; Thu, 08 Apr 2021 03:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617876425; cv=none; d=google.com; s=arc-20160816; b=W7o2CVY2LrEz9FvT7ODzfp8o7bu9aMICL4N4NwmgwBunEWZV36YFtcrb3VwT8y84/R Q/2L812aMdXCdEQbmlXw2xUMmk111jjNnIqVY69Qxx9Ax+PTyxb1e0hFflqy/6DcJ6Wk aGmW2iG29MahacsM3KZzH13v1yY7tC6Hqj3q1NWj7Fts+0ZGNDyXn2qo0i9mL9jL0rLP pyJKHVqYk/Oohqcu+bb4/6hQXJbNYK5dkLUYNGgKijd6kWnsNGlJeWAezGOdMiLYicnE 2WFQwvuS7QC5H/U/PabKZALk41FCKUcBk3K3zxNibkr/t6qoQF9LrR1DJF7XTWNNTUJf sKbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z9Dj4SFSaVWyR+8NK+rxi5Rn3YTZvnpfh+Q8YuSQZyo=; b=mKWe8Ldta4Ko85MKGyC7jznSE73pYqfikc5asKm84AC/xTRMJapxeoo8slMAKaiFw1 u/Vza7up2FGOy7Li6N/HHyyGWB25i6Byg36UCNJ09ueY21U+FMdKC7U67Q/WTlfayfAX aY0KmoSpDc1pEJw+h9CM22UYOSbuuX0m0Frr2UcyBnq1kSmayVGml9IenNXSYHSGiZlR WYq8e7s1MdMBv46ghQwb6GiaqLGn2KDhHJqh8Ze3tlVYJEVUhN0H0LFvaG9H1biWlPpr RtUhe3l5DqzReT4wQRQCB0nunlqYoDWvLWc5ZDEd8xaimSh8f0m6+DufsZS4aA5obsfk 3Ssw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gKbEGCQH; 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 l7si6276790plg.169.2021.04.08.03.06.53; Thu, 08 Apr 2021 03:07:05 -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=gKbEGCQH; 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 S231165AbhDHKF6 (ORCPT + 99 others); Thu, 8 Apr 2021 06:05:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24654 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbhDHKF6 (ORCPT ); Thu, 8 Apr 2021 06:05:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617876347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z9Dj4SFSaVWyR+8NK+rxi5Rn3YTZvnpfh+Q8YuSQZyo=; b=gKbEGCQHy2+NtplqI87cTRTMEjWz6fUJLs82hD2VjF/kgzyWi1lsJcgeAjHd2M8AyD9Qqf icMIVajP4YZ2c6H+VW0zAdJDAXDfzCB8p7B2s7ILD2RB1MVnkXIarg1HXqndVmzz8ogskO fGDM2WKF5c/fob7jOSqJ1XhcR8RtYEE= 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-447-OCTmOn1eMs6tx3dNB1cHHg-1; Thu, 08 Apr 2021 06:05:45 -0400 X-MC-Unique: OCTmOn1eMs6tx3dNB1cHHg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D820F6D241; Thu, 8 Apr 2021 10:05:41 +0000 (UTC) Received: from t480s.redhat.com (ovpn-114-231.ams2.redhat.com [10.36.114.231]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9112119D9F; Thu, 8 Apr 2021 10:05:37 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Joel Stanley , David Airlie , Daniel Vetter , Andrew Jeffery , Lucas Stach , Russell King , Christian Gmeiner , Mike Rapoport , Arnd Bergmann , Bartlomiej Zolnierkiewicz , Linus Walleij , Michal Simek , Masahiro Yamada , Randy Dunlap , Peter Collingbourne , linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, etnaviv@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH v2 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv Date: Thu, 8 Apr 2021 12:05:23 +0200 Message-Id: <20210408100523.63356-3-david@redhat.com> In-Reply-To: <20210408100523.63356-1-david@redhat.com> References: <20210408100523.63356-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Random drivers should not override a user configuration of core knobs (e.g., CONFIG_DMA_CMA=n). Use "imply" instead, to still respect dependencies and manual overrides. "This is similar to "select" as it enforces a lower limit on another symbol except that the "implied" symbol's value may still be set to n from a direct dependency or with a visible prompt." Implying DMA_CMA should be sufficient, as that depends on CMA. Note: If this is a real dependency, we should use "depends on DMA_CMA" instead - but I assume the driver can work without CMA just fine -- esp. when we wouldn't have HAVE_DMA_CONTIGUOUS right now. Signed-off-by: David Hildenbrand --- drivers/gpu/drm/aspeed/Kconfig | 3 +-- drivers/gpu/drm/etnaviv/Kconfig | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/aspeed/Kconfig b/drivers/gpu/drm/aspeed/Kconfig index 5e95bcea43e9..b35bb1aa9b91 100644 --- a/drivers/gpu/drm/aspeed/Kconfig +++ b/drivers/gpu/drm/aspeed/Kconfig @@ -6,9 +6,8 @@ config DRM_ASPEED_GFX depends on MMU select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER - select DMA_CMA if HAVE_DMA_CONTIGUOUS - select CMA if HAVE_DMA_CONTIGUOUS select MFD_SYSCON + imply DMA_CMA help Chose this option if you have an ASPEED AST2500 SOC Display Controller (aka GFX). diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig index faa7fc68b009..5f5576b7221a 100644 --- a/drivers/gpu/drm/etnaviv/Kconfig +++ b/drivers/gpu/drm/etnaviv/Kconfig @@ -9,9 +9,8 @@ config DRM_ETNAVIV select THERMAL if DRM_ETNAVIV_THERMAL select TMPFS select WANT_DEV_COREDUMP - select CMA if HAVE_DMA_CONTIGUOUS - select DMA_CMA if HAVE_DMA_CONTIGUOUS select DRM_SCHED + imply DMA_CMA help DRM driver for Vivante GPUs. -- 2.30.2