Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3846483pxb; Mon, 27 Sep 2021 04:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7LeMSzykxJPWBWYojmfvRSyYR9FGC7yi0l28GIgvdU6fPIw0VvyrFq6hhKegAgMoXGgjX X-Received: by 2002:a65:5643:: with SMTP id m3mr15818067pgs.224.1632740790404; Mon, 27 Sep 2021 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632740790; cv=none; d=google.com; s=arc-20160816; b=zl4EpMyeDeRJ5kdqYZZ2EEO3vNyl5JcvR8Gtq+cDSuzDYuyUryDdRY5F9GfSmue9wi eSJMJf17CrKCX2Sf7p4vOoWJQ+pdbaSE5p26oPtrb4ToX0nDSrglqBiRxWDkyU/Wemsb hJiA+0hmFeKhtc+fGhtpOAtTKXcA8iW1T8MPkY84tiY4u+IEZQQQ7SiYYX6GxoizguSv Mt2xIn10WOgoQ/9dS/xJtEIZWjPUPk0Z6DGHzJmR52ofzpse1fhsIzPSq/Yg4nVc8vQh 6Wzu0Lh3xZnBjBVy01pI9dwajtS+9/iZ3wQw0W4NojMK15VkvgnnCLhGTqIBrpECR/7r QoIg== 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:from:references :cc:to:subject:dkim-signature; bh=nJQ1BkmcJgtaIwRlKcokXRfC6gNMO5CdBJPnyuOf53w=; b=PhlCvTzgOQodn68kCF1K/MxaJzRO+7v1vUU2R/V7u81jNudxfnz4UoLHzFixwARhRl NLe/dygBw1L8ZdDTXMhwQQ4lIykK84YEAJVVrdNkdAKv/d2P0Thw/Nu9VBpCM+hkh6+l 79sV0rFGatLNjikD3rVE6iwWFlEozHG5O7A18UHFiAqmNp8LxSQpuA0vVEZJ1SN9Or4W WlELwgy1wKFH4Tlk4SKNzl367qIDcf3JO3r4VJu8rgK1boRdXz4984YEeGVJK5uwlWjO 9d+FzzS00O1sWTRlNc3D4KCJMSDG589zz4XV4GCjd041nPRhc7eH+UgmFHqwkUYQuHQV 9c0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=ETGI5ST7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si6876226pjv.101.2021.09.27.04.06.07; Mon, 27 Sep 2021 04:06:30 -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=fail header.i=@kapsi.fi header.s=20161220 header.b=ETGI5ST7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233932AbhI0LGl (ORCPT + 99 others); Mon, 27 Sep 2021 07:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233897AbhI0LGk (ORCPT ); Mon, 27 Sep 2021 07:06:40 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2AFAC061575; Mon, 27 Sep 2021 04:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nJQ1BkmcJgtaIwRlKcokXRfC6gNMO5CdBJPnyuOf53w=; b=ETGI5ST7Fk0Ca0VBgc+bUlOMve ngBRm0m+VxplDf0ax2M+3bhEZkfEw7kciX1JZUA8CUrGrSojBSHqFmK4GjVcKrDYWfcW0tME/dczI Ik6+QEIf2aFB5yJauyZyp8HwZs7ozW450pqDDgH1kJArySYY1/+okkFQ8l0beK/HxOhzRkAjcmW/M 7vpNjvGFpvoXmI1w/SH2kjyhki3RwHZWbp+rSN25hMtQCqcT7BecwU77TBqvtAzWF6qMCDbPM0WhL eI9jNib9gvE8PuVmv/nFCrUmJ0zMHl6s5qLWUV9nYeTlPzF9vSy5Dd9CK1VeYNrOlU2oS9RrBcjz5 BCdra1ag==; Received: from dsl-hkibng22-54f986-236.dhcp.inet.fi ([84.249.134.236] helo=[192.168.1.10]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mUoRO-0004rX-Ow; Mon, 27 Sep 2021 14:04:58 +0300 Subject: Re: [PATCH] gpu: host1x: select CONFIG_DMA_SHARED_BUFFER To: Arnd Bergmann , Thierry Reding , Mikko Perttunen Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210927093705.458573-1-arnd@kernel.org> From: Mikko Perttunen Message-ID: <84acd54f-ba9b-576c-8a49-da6245f063b2@kapsi.fi> Date: Mon, 27 Sep 2021 14:04:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210927093705.458573-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 84.249.134.236 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/27/21 12:36 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > Linking fails when dma-buf is disabled: > > ld.lld: error: undefined symbol: dma_fence_release >>>> referenced by fence.c >>>> gpu/host1x/fence.o:(host1x_syncpt_fence_enable_signaling) in archive drivers/built-in.a >>>> referenced by fence.c >>>> gpu/host1x/fence.o:(host1x_fence_signal) in archive drivers/built-in.a >>>> referenced by fence.c >>>> gpu/host1x/fence.o:(do_fence_timeout) in archive drivers/built-in.a > > Fixes: 687db2207b1b ("gpu: host1x: Add DMA fence implementation") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/host1x/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig > index 6dab94adf25e..6815b4db17c1 100644 > --- a/drivers/gpu/host1x/Kconfig > +++ b/drivers/gpu/host1x/Kconfig > @@ -2,6 +2,7 @@ > config TEGRA_HOST1X > tristate "NVIDIA Tegra host1x driver" > depends on ARCH_TEGRA || (ARM && COMPILE_TEST) > + select DMA_SHARED_BUFFER > select IOMMU_IOVA > help > Driver for the NVIDIA Tegra host1x hardware. > Thanks! Reviewed-by: Mikko Perttunen