From patchwork Sat Dec 4 17:46:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 520966 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp4469172imb; Mon, 6 Dec 2021 02:28:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXkPppXPPnmDKxNQJ1xPLIpA2NQe9TWoPqiQ3aY/zNpB534Y7uY9dDzeF5WoRHtFAVyXrE X-Received: by 2002:a17:902:b581:b0:144:e601:de7 with SMTP id a1-20020a170902b58100b00144e6010de7mr42716162pls.71.1638786486816; Mon, 06 Dec 2021 02:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638786486; cv=none; d=google.com; s=arc-20160816; b=S0UfHJp3a6aCnvUUqgiHPgf2HPiptGmLrinnGtJUkzSZeSLcFt1+1fcl1GZwsUeOxO 83lzRumire0t9EBWuU9+oTfj3BijJgraUrbXioUESBF7uY7ILAmuQvMS1yHP9wGy5nE9 yILvKUrVPDgg7iOIZNfV3tg2/ZZLpObiENcasoYWFmPMT4pxreao+zXpdambyLkn7x9H XrrIc9qoS5r0D1tpjspvXyLoaD3CfB8vCYjLXv2TIHJ5L4nwoOIN6mlbFUWa5ZuIZl43 KdwYWu0/l5qnnOlefmis5uMVIUs1GK5tgnvHnzWCrmcg0Ig1i0OhHBJ+H/DnVeqYhPID SWeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=kOgZazHuTSHwrxfEusQXxMMaWrZzZxsQ5vrlVG9vTxw=; b=yVjhoSAq39Dd5PrdaQVc7g7e2zCwN+uqW3jtQuAjKJbyYswew6Pkfu2NjkmFe9SQc2 rWZzQC20cBn2V1Ii5uSN5r/vUmpKlvkLLBvpeSQAY5asInTodUywmiTd93Yj4NHovYvD n1lmedDnh1jZi+BHUINfqa2fkoOxmWRUUvIx6vPC9P1PwcCZeGybcOKJ26tsXBFjd/h4 iGwS/gt604YAOlszWZPSUGNry8YHugaU6JfCwKc/pdDzk2Xcj/0X7EMjcoCuygyhHiBD v+NFdDDuGsp1imwBIMNL4Yskpqe4fEtJ+KaI2MpL0QAljimd1PgvyBN1upHbHwoSGXYt jhpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=rC7Zy9oK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id d129si14046430pgc.666.2021.12.06.02.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 02:28:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=rC7Zy9oK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 443B87ACC9; Mon, 6 Dec 2021 10:20:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 576 seconds by postgrey-1.36 at gabe; Sat, 04 Dec 2021 17:56:19 UTC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id A067C6FBB6 for ; Sat, 4 Dec 2021 17:56:19 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97E4360ED7; Sat, 4 Dec 2021 17:46:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC333C341C2; Sat, 4 Dec 2021 17:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638640012; bh=m53DYrzONUqXySnuyI8Iv8xHXEMmcTWjOknPMtQWpbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rC7Zy9oKyV5tet0TB29vkn49q0Ijv3HDdkSoK40B0JTRJvQO1WfXJgismeFAJGFRD wKn32hfbg+EMbHeOgQ7V3FgZA1aiGIkS2sGYzDlOE6NPJenvuASa5VD7Y8E85+Gp3x k4p2Eru1hUBJkF3YD1MOwhSYjJKFqNad0GDEjjlZQIQJ4+gwRPJ6MO3oc+zcWiqPGp 6YzacJ9jFjVb2s/W0R+wdcaymfnflDIyEu9Kn41L5y7SEVX0+GsHZi8a0vE+Tl4f/0 9UlQ+KHAOi0XeAWAWX8O209zBA6Si2l9X+RFsnf/mi81NbgeFYbOP+HDcVChZuvGir dAv1HFpi7txug== From: Arnd Bergmann To: Joel Stanley , David Airlie , Daniel Vetter , Thomas Zimmermann Subject: [PATCH 2/2] drm: aspeed: select CONFIG_DRM_GEM_CMA_HELPER Date: Sat, 4 Dec 2021 18:46:23 +0100 Message-Id: <20211204174637.1160725-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211204174637.1160725-1-arnd@kernel.org> References: <20211204174637.1160725-1-arnd@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-aspeed@lists.ozlabs.org, Andrew Jeffery , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The aspeed driver uses the gem_cma_helper code, but does noto enforce enabling this through Kconfig: x86_64-linux-ld: drivers/gpu/drm/aspeed/aspeed_gfx_drv.o:(.rodata+0x2c8): undefined reference to `drm_gem_cma_prime_import_sg_table' x86_64-linux-ld: drivers/gpu/drm/aspeed/aspeed_gfx_drv.o:(.rodata+0x2d8): undefined reference to `drm_gem_cma_dumb_create' x86_64-linux-ld: drivers/gpu/drm/aspeed/aspeed_gfx_crtc.o: in function `aspeed_gfx_pipe_update': aspeed_gfx_crtc.c:(.text+0xe5): undefined reference to `drm_fb_cma_get_gem_obj' Add the same 'select' that is used in other such drivers. Fixes: 09717af7d13d ("drm: Remove CONFIG_DRM_KMS_CMA_HELPER option") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/aspeed/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/aspeed/Kconfig b/drivers/gpu/drm/aspeed/Kconfig index 36c4a7e86981..024ccab14f88 100644 --- a/drivers/gpu/drm/aspeed/Kconfig +++ b/drivers/gpu/drm/aspeed/Kconfig @@ -5,6 +5,7 @@ config DRM_ASPEED_GFX depends on (COMPILE_TEST || ARCH_ASPEED) depends on MMU select DRM_KMS_HELPER + select DRM_GEM_CMA_HELPER select DMA_CMA if HAVE_DMA_CONTIGUOUS select CMA if HAVE_DMA_CONTIGUOUS select MFD_SYSCON