Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1198729pxv; Fri, 23 Jul 2021 02:20:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDN1yPdtS5wvMx8ISeYt3EIXIKAefwenKwrvztmxn79Wy6nhxK7SBcfvBXgjkE0fviFfKF X-Received: by 2002:a05:6602:198:: with SMTP id m24mr3184716ioo.144.1627032057346; Fri, 23 Jul 2021 02:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627032057; cv=none; d=google.com; s=arc-20160816; b=xOR71h7wVRI8Y64eRPxCcwv2SsWJs+ZDTdCcgrW615WQIfX8zrk5We0+FtUlLlLVQm /CA9DxOVvYqgUI5f2v2J/Kyziiwju3g+H5NnALD54e70gTv+WhEWD+9jUFxQaX2kF54s 2jmEnUd6dXl6iY070ejPp+MmC0Ih+vD208zOKWCW5yWGHDUeHnfMwgxGEcUR7kljrbMS dbWeBKbnCw/uaNS4ERxLWU35Cck/6N+z7/XcW26Fdl8aZ+VWpEFREy3mUCtWbCD0pFM0 +RRu4FTC6fyQYygg9ohzjZm9eydgUfyIfgMbgSRM55Ozatyzru+7zJFg5e8O4UssLXW+ 9VKQ== 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:references:cc :to:from:subject:dkim-signature; bh=crMwevUrUiGlxEnhBFj4y4HAHydElCl65A6jne0BeK8=; b=UeId1BvV0C6X0SryikpB4eers6ekF0hZLjXrk9afsAFF0+VqrkCqD1pAhjsUU/ntFe BSYHutlh8OWQA3X/Gqg2O2GFeLXr+VN6USco2HSCNfLUJbc399bDh2nwsmuUqDoxeqKa voDwesIOHFsW7Ayu+RnGdbt6VrFZu5AUj+YyVRBbb+fbdH1tTE/ZafRhPOCoicGjbnNc 9tl8oOPE8TbwzWfB+K4GriYKrUFnibwcI+4yfpfU3Db4fTvEVXjkjrsW96h56D53NSeL FuqvhC010skaY1WUK7lcEU7JL4wSoWUVdmdKxvvJCXEzx+KKMkjm8ex0Gnm0nrQdqQZp F1vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=U7FWPEyc; 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 x16si18194640jas.1.2021.07.23.02.20.46; Fri, 23 Jul 2021 02:20:57 -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=U7FWPEyc; 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 S234289AbhGWIie (ORCPT + 99 others); Fri, 23 Jul 2021 04:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbhGWIiW (ORCPT ); Fri, 23 Jul 2021 04:38:22 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA2E5C061575; Fri, 23 Jul 2021 02:18:55 -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:References:Cc:To:From: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=crMwevUrUiGlxEnhBFj4y4HAHydElCl65A6jne0BeK8=; b=U7FWPEyckNRDPg3f4Yzl94zzgL EcQ+M4oNPMzexdurBMNkRjFHQQd7+Z2QCtjbgemp4hJHU4aMbPEa0VnBnIJ8RyoA5AkFZ0c3oxiwQ HWaAwXR/qhw9sKuhz3tHk4hY6aR6djs6YvbuAFy/Fe+8sY+zK34ddwWkxMx8fv1+lEOmbyPqBkf9Z 7aR2+KWyZTrV4h9oietZAqFCzhk8EBFQ+WePaVeoBrYeN0QTu9jcPBvaY0AkcIQ1iNXx5TfYbi78u iK6UHAdGQ1CWidot3uAPahogxofT9VeM54zIMBMBfJoE4M+R/+5yLPFgfsm8qa1HoH//tcqby8//J Dzu/vDlA==; 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 1m6rKY-0006sm-7H; Fri, 23 Jul 2021 12:18:54 +0300 Subject: Re: [PATCH] gpu: host1x: select CONFIG_SYNC_FILE From: Mikko Perttunen 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: <20210723091424.1682193-1-arnd@kernel.org> <0f4d1f0a-c313-a60e-6a72-fd4b0c757bc3@kapsi.fi> Message-ID: Date: Fri, 23 Jul 2021 12:18:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <0f4d1f0a-c313-a60e-6a72-fd4b0c757bc3@kapsi.fi> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 7/23/21 12:17 PM, Mikko Perttunen wrote: > Hi Arnd, > > I think the best fix for this is to just remove that function -- it is > currently not used anywhere. I posted a patch to do that, but Thierry is > currently on vacation so it hasn't been picked up yet. .. and sorry for the top post .. Mikko > > thanks, > Mikko > > On 7/23/21 12:14 PM, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> With the addition of the DMA fence, the host1x driver now fails to >> build without the sync_file helper: >> >> arm-linux-gnueabi-ld: drivers/gpu/host1x/fence.o: in function >> `host1x_fence_create_fd': >> fence.c:(.text+0x624): undefined reference to `sync_file_create' >> >> Fixes: ad0529424def ("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..6f7ea1720a39 100644 >> --- a/drivers/gpu/host1x/Kconfig >> +++ b/drivers/gpu/host1x/Kconfig >> @@ -3,6 +3,7 @@ config TEGRA_HOST1X >>       tristate "NVIDIA Tegra host1x driver" >>       depends on ARCH_TEGRA || (ARM && COMPILE_TEST) >>       select IOMMU_IOVA >> +    select SYNC_FILE >>       help >>         Driver for the NVIDIA Tegra host1x hardware. >>