From patchwork Sat Dec 4 17:46:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 520963 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp4466168imb; Mon, 6 Dec 2021 02:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgM1bT4oRVYh3yoh/MWysXclmfj8sWTTOPfEHNbMx5nNXjU5utsD3KLp8Ncsy9Z7peyBr7 X-Received: by 2002:aa7:8219:0:b0:4a4:bec7:ef10 with SMTP id k25-20020aa78219000000b004a4bec7ef10mr35902122pfi.37.1638786310801; Mon, 06 Dec 2021 02:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638786310; cv=none; d=google.com; s=arc-20160816; b=qWiPMAIXnKjUINCmnqSg0MdlLFJUySmFB1c1J2+5Dm0iwM24XI2NC3G9MxLT3ezhic FEL44so/iPqFjdN13ooxWssCp+D3bz+A8yf/ShBdNcXp26wvwh/W8taPRtwBR75Z71Ma SNPxd53HFWpJODGBzor57Kn73yt9faI3O9k4kj3L+zxQEpY3AuYz+f9+ZJZz6RivBpZM j2ZELnkNcQ9p37eooCX2rXCGLpijm39yyPWyBtL4zjE99k5w4s5yknKUuj8dlIQnJ+dq JMwC4gsHDwy0NPGFsx+PBRhaCSf/hfsste2BXQLF1D5M2dnRXdK0AIFV2DwMCPpTjhXt IsUA== 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:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=4/SKy3O1fiKVeIPiHHpGEtpZ0CjTSVDwy5U6Dfe9tgk=; b=vYcXfVmLaSjXDo/BQm0Olaia9pemhPJ5as9SuYRB0XyL51U253Z4VUb5C/uhTl6PvW DKmuCKLPPmVi5l1bf0ly15q+vd0LRXm/5yXPDAfxVgtV/1A6NpfpAkiaVf6ELIMHGax7 QXzGn2eLND/IMTOGeZ6SJm6+mODTbgyz9wIuf8Ys+nky370v0+4W9kQmm2tWEDYEZKS+ K8jr/WXG7s71g/WiO2+YfVNr+DjF4F0eJdK4H9i8+oDSkhiZBejH4b7bkQ3pq6eV9aqx 7CAwd0DPdurA5BbhIO+hjh6j5C1+KeVvYKj4Mp3SK250nVKqWrSBge6eyedrkViDqBFJ D6bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="jGyDnhG/"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id n11si4819162pfu.363.2021.12.06.02.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 02:25:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="jGyDnhG/"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 742FD7A384; Mon, 6 Dec 2021 10:20:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA4586FBB7 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 A347D60EAB; Sat, 4 Dec 2021 17:46:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E73BC341C0; Sat, 4 Dec 2021 17:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638640002; bh=EAnoLgALrAeOXq5KyVrK2XeFYH3kKIKVMQ7QLvQb2bQ=; h=From:To:Cc:Subject:Date:From; b=jGyDnhG/s5weEO4MrQD5JIye7fTlFrKmopXpxQgV/4Uuk2TEWjzGg4gx3Oo3uwTgC nxS7y+ZbiKqpxSzFTZKyjlPkFBpx220TaD/avr2H7hCZXYF2fvZcWrJi/Tl3iTnOs6 IsRFvM+zHoa+7zf4Hanzn3ltOiafpDYgQqIvutabAp3u7StBVC/YmIw32JJ46mgE5y mZ2f5F+d6vVFLi//83uz5W5v7ar5EQg5DyFqOgfdCTS7lLqhrXgltAD2fv2pV5GbQi rA9yNi7X5P3S/O+s0HPOGfsjKTWWo8EEeW30qaqQ0L0ojJ7G3IeHDvUBAtdJ7/vHpL +KP1FWG/SrMzA== From: Arnd Bergmann To: Stefan Agner , Alison Wang , David Airlie , Daniel Vetter , Thomas Zimmermann Subject: [PATCH 1/2] drm: fsl-dcu: select CONFIG_DRM_GEM_CMA_HELPER Date: Sat, 4 Dec 2021 18:46:22 +0100 Message-Id: <20211204174637.1160725-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 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: dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The fsl-dcu driver uses the gem_cma_helper code, but does noto enforce enabling this through Kconfig: arm-linux-gnueabi-ld: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.o:(.rodata+0x32c): undefined reference to `drm_gem_cma_prime_import_sg_table' arm-linux-gnueabi-ld: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.o:(.rodata+0x334): undefined reference to `drm_gem_cma_dumb_create' arm-linux-gnueabi-ld: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.o: in function `fsl_dcu_drm_plane_atomic_update': fsl_dcu_drm_plane.c:(.text+0x144): 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/fsl-dcu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/fsl-dcu/Kconfig b/drivers/gpu/drm/fsl-dcu/Kconfig index 2a13ea5c8539..e95e96c565ba 100644 --- a/drivers/gpu/drm/fsl-dcu/Kconfig +++ b/drivers/gpu/drm/fsl-dcu/Kconfig @@ -3,6 +3,7 @@ config DRM_FSL_DCU tristate "DRM Support for Freescale DCU" depends on DRM && OF && ARM && COMMON_CLK select BACKLIGHT_CLASS_DEVICE + select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_PANEL select REGMAP_MMIO 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